Status lifecycle and reporting¶
A node tells the control plane three things about an assignment it works on: that it has it, how it is going, and how it ended. Each report carries the fence and generation the assignment arrived with, and each one is split on the way out: its full body goes to your bucket and only its metadata goes to the control plane. This page is the three reports, what stamps each, and where each part of a report ends up.
Where one status report goes¶
flowchart LR
subgraph XD["XRATUD"]
direction TB
SR{{"Status report<br/>ack, progress or complete"}}
ENV["Envelope<br/>assignment.status.action"]
AU[("Audit spool<br/>metadata record")]
OB[("Status channel<br/>in the outbox")]
SR --> ENV
ENV --> AU
ENV --> OB
end
BK[("Your bucket<br/>assignment_status_envelope")]
CP["Control plane<br/>report ingest"]
ENV ==>|"body, under the node's infra identity"| BK
OB -->|"status with payload_ref and digest"| CP
One report becomes three records. The body is written to your bucket, the audit spool records its metadata, and the status channel carries the report to the control plane with a reference to the body rather than the body itself.
Three reports¶
| Report | Means | Also |
|---|---|---|
ack |
The node holds the assignment | Flushes the status channel at once |
progress |
The assignment is running | Carries the policy snapshot digest and decision stage pre |
complete |
The assignment ended, with a result or an error | Carries the digest and decision stage post, and closes the execution record |
Every report is stamped with three values from the processing context before it is staged:
assignment_key
fence_token from the claim the assignment arrived under
observed_generation the assignment's generation, at least 1
A value already present in the report is kept, and a missing one is filled from
the context. The control plane checks fence_token and observed_generation on
every report, so a report from a node that has been displaced is refused on its
fence. See The assignment ledger.
An ack flushes the status channel immediately rather than waiting for the
cycle's completion phase, so the control plane learns the node has taken the
assignment in the same cycle.
What happens to each report¶
- The trace context is bound, and a workspace missing from the report is taken from it.
- The report is serialised as an envelope of type
assignment.status.<action>. See Event log envelopes. - The envelope is written to the observability bucket as an
assignment_status_envelopeobject, under the node's infrastructure identity, and the report takes the object'spayload_ref,payload_digest,payload_size_bytesandpayload_content_type. - A metadata record of the envelope is appended to the audit spool.
- The metric
xratud.assignment.status.emitis counted with the action. - The report is staged on the status channel for delivery, and on the status ack record until the control plane acknowledges it. See Status ack runtime.
A reader reaches the body in your bucket later through a payload-access request; the report the control plane holds names the body by reference and digest. See The tenant byte rule.
Completion closes the execution record¶
A complete report also records the execution's outcome under its execution
key. A later delivery of the same assignment finds that record terminal and is
reported as a replay. See
Idempotency and dedupe contracts.