Assignment delivery and replay¶
The assignment ledger joins control-plane desired state to the data-plane pull loop. A node claims immutable envelopes from its admitted workspace scope and uses a revision cursor to recover after a missed watch position.
Delivery structure¶
flowchart TB
subgraph CP["CONTROL PLANE"]
direction TB
DES[("Desired state")]
PUB["Assignment-family publishers"]
LED[("Assignment ledger<br/>lease, fence, revision")]
REC["Recovery contract<br/>snapshot and delta"]
DES --> PUB --> LED
LED --> REC
end
subgraph DP["DATA PLANE NODE"]
direction TB
PULL["Authenticated pull"]
CUR[("Watch cursor")]
RECQ["Reconciliation"]
PULL --> RECQ --> CUR
end
LED -->|"claimed envelopes"| PULL
REC -->|"active snapshot and next revision"| RECQ
The publisher for each assignment family constructs its own sealed payload. Common admission checks the authenticated registration, workspace target, available assignment capacity and quota window. A successful claim records its lease and fence before the envelope is returned to the node.
Bounded pull¶
Each pull declares a maximum assignment count. Quota admission can reduce that count or suppress the response for a blocked scope. The response records the workspace targets considered and the targets that produced assignments, which lets an operator distinguish an empty scope from an admission refusal.
The node finalises every claimed assignment through its owning route. Build and deployment assignments report lifecycle evidence to the ledger. Kernel operator assignments carry operational intent. Kernel application execution uses the Application ABI after the project runtime is deployed.
Replay from a cursor gap¶
The recovery contract returns the active assignments for a registration at a
specific snapshot_revision, plus delta_start_revision for the resumed watch.
The active set contains assignments in assigned, acked or running state.
The node replaces its current assignment view with the snapshot and continues
from the next revision.
CURSOR_GAP_DETECTED and CURSOR_CORRUPTED select this recovery path. The
ledger remains the authority during recovery, so replay preserves existing
leases and does not author duplicate work.
See Assignment claim protocol for the claim fields and Recovery contracts for the snapshot admission rules.