Expand description
Value codecs. Structured values are serde_json behind a leading
version byte (CODEC_V1); refs are the raw 32-byte id and integers
are raw big-endian. Decoding an unknown version, a wrong length or a
value that fails validation is StoreError::Corrupt.
Structs§
- Backlog
- Terminal outcome backlog. Relay rows are excluded.
- Backup
State V1 - The last consistent Worker snapshot of one partition. A zero export time and empty key mark a timer that has been seeded but has not fired yet.
- Epoch
Lease - The ref shard’s durable copy of its coordinator epoch lease.
- Lease
Recovery - Declared coordinator recovery, retained until a later recovery overwrites it.
- Leased
Shard - The coordinator’s durable lease grant and installation acknowledgement.
- Namespace
Record - The namespace coordinator record. The first configuration version is 1.
- Outcome
Ref - A ref changed by a committed reservation.
- Relay
Scan V1 - Source-local scan progress. Every retained row at or below
cursorbelongs to a blocked target; new rows beyondcycle_endwait for the next cycle. The relay checkpoints this row under a guard on its prior value, atomically deleting delivered queue rows. Timer rescheduling is separate. - RelayV1
- An idempotent relay of upserts and deletes to one partition.
- Repo
Record - The repository coordinator record.
- Repo
Visibility V1 - A repository’s stored visibility (SPEC-WRITE-GRANTS §9.1). A missing
rvrow inherits the deployment default; the row may exist beforerrdoes. - Ticket
V1 - An open upload ticket. Its audience is bound by the shard’s deployment.
Enums§
- Abort
Reason - The hooks protocol’s terminal abort reasons.
- Pending
Op - The operation a pending reservation will settle.
- Reservation
V1 - The one durable reservation arbiter, replaced under an Equals guard.
- Stored
Visibility - The visibility values a
rvrow stores.
Constants§
- CODEC_
V1 - Version byte of every structured value this binary writes.
- MAX_
BLOCKED_ TARGETS - Maximum retained targets in a persistent relay scan cycle.
Functions§
- decode_
backlog - Decode the terminal outcome backlog.
- decode_
backup_ state - Decode a per-partition Worker backup state.
- decode_
block_ entry - Decode a blocklist entry.
- decode_
epoch_ lease - Decode an epoch lease; namespace configuration versions start at 1.
- decode_
hold - Decode a
ContentIndexGC hold’s expiry. - decode_
holder - Decode a
ContentIndexholder row. - decode_
lease_ recovery - Decode a declared lease-table recovery marker.
- decode_
leased_ shard - Decode a coordinator lease-table row.
- decode_
namespace_ record - Decode a namespace coordinator record. Configuration version zero is invalid: the namespace’s first version is 1.
- decode_
namespace_ usage - Decode a fixed-width namespace counter, rejecting malformed rows.
- decode_
namespace_ view - Decode a view and reject a contribution larger than the aggregate.
- decode_
object_ index - Decode and validate a repository object-index value.
- decode_
object_ state - Decode a
ContentIndexobject state. - decode_
quota_ state - Decode a quota window’s usage.
- decode_
ref_ id - Decode a ref value.
- decode_
relay - Decode a relay target and its bounded idempotent operations.
- decode_
relay_ scan - Decode source relay scan progress, rejecting malformed or unbounded state.
- decode_
replay_ record - Decode a replay record.
- decode_
repo_ record - Decode a repository coordinator record.
- decode_
repo_ visibility - Decode a repository visibility row. The statement id is canonical: 64 lowercase hexadecimal digits.
- decode_
reservation - Decode a reservation; unknown states, identities and malformed outcomes fail closed.
- decode_
ticket - Decode an upload ticket, validating ref, reservation, geometry and lifetime.
- decode_
u32 - Decode a be32 integer.
- decode_
u64 - Decode a be64 integer.
- encode_
backlog - Encode the terminal outcome backlog.
- encode_
backup_ state - Encode a per-partition Worker backup state.
- encode_
block_ entry - Encode a blocklist entry.
- encode_
epoch_ lease - Encode a ref shard epoch lease.
- encode_
hold - Encode a
ContentIndexGC hold: its expiry, Unix ms. - encode_
holder - Encode a
ContentIndexholder row (R-131). - encode_
lease_ recovery - Encode a declared lease-table recovery marker.
- encode_
leased_ shard - Encode a coordinator lease-table row.
- encode_
namespace_ record - Encode a namespace coordinator record.
- encode_
namespace_ usage - Two big-endian u64 counters, ops then bytes. Used by qs, qc and qt.
- encode_
namespace_ view - Three usage fields and a read timestamp, each big-endian u64.
- encode_
object_ index - Encode a repository object-index value. All integers are big-endian. Layout: version, frame offset/length (u64 each), wire type (u8), decoded size (u64), chain depth (u32), base-present (u8), optional base id.
- encode_
object_ state - Encode a
ContentIndexobject state. - encode_
quota_ state - Encode a quota window’s usage.
- encode_
ref_ id - A ref value: the raw 32-byte id.
- encode_
relay - Encode idempotent relay operations. A malformed target returns Invalid.
- encode_
relay_ scan - Encode bounded, canonical source relay scan progress.
- encode_
replay_ record - Encode a replay record.
- encode_
repo_ record - Encode a repository coordinator record.
- encode_
repo_ visibility - Encode a repository visibility row.
- encode_
reservation - Encode a pending, ticket-backed, or terminal reservation.
- encode_
ticket - Encode an upload ticket.
- encode_
u32 - A be32 integer (the layout version).
- encode_
u64 - A be64 integer (the grant epoch).
- validate_
ticket - Validate ticket semantics before opening or after decoding a row.