Admission gates¶
Six gates stand between a document being submitted and the control plane recording it. Each owns one question, each answers with its own reason, and a document that passes all six is admitted. This page is what each gate checks, so a refusal can be traced to the gate that produced it.
The six gates¶
| Gate | Checks |
|---|---|
| Manifest | A reusable capability block's governance metadata and execution contract |
| Package | A package tag is a valid semantic version |
| Flow | A workflow's block references and its input and output bindings |
| Policy | A policy document's structure and recovery mode |
| Execution | A compiled plan's execution semantics against the manifests it calls |
| Mutability | A version being written does not already exist with different content |
Manifest admission¶
A block's manifest declares how it behaves, and the values are closed sets rather than free text:
support tier tier-1, tier-2, tier-3
lifecycle state draft, active, deprecated, retired
side effect class read_only, idempotent_write, non_idempotent_write
output stability stable, bounded_nondeterministic, non_deterministic
io contract reusable_capability_block.io.v1
Declaring these at publish time lets the execution gate reason about a plan later, without inspecting any code.
Execution admission is the gate with teeth¶
The execution gate walks every node of a compiled plan, finds the manifest for the block it calls, and checks the plan against what that block declared. Five conditions are errors:
| Code | Condition |
|---|---|
INVALID_OR_MISSING_EXECUTION_CONTRACT_SIDE_EFFECT |
The block's side effect class is missing or outside the closed set |
INVALID_OR_MISSING_EXECUTION_CONTRACT_OUTPUT_STABILITY |
The block's output stability is missing or outside the closed set |
INVALID_OR_MISSING_EXECUTION_CONTRACT_IDEMPOTENCY |
The block's idempotency requirement is missing or not a boolean |
MISSING_NODE_IDEMPOTENCY_KEY |
The block requires an idempotency key and the node supplies none |
UNSAFE_RETRY_NON_IDEMPOTENT_WRITE |
A node retries more than once against a non_idempotent_write block |
The last one is the gate most worth knowing before you meet it: a step that writes non-idempotently cannot be given a retry budget, because retrying it would repeat the write.
Two conditions are warnings rather than refusals, and both concern replay. A
non_deterministic output feeding a conditional branch raises
NON_DETERMINISTIC_CONDITIONAL_FANOUT, and a non_deterministic node carrying
a retry budget raises NON_DETERMINISTIC_RETRY.
Each error and warning names the node, the block, the interface and export ordinal, and the values that produced it, so a plan with several problems reports all of them rather than the first.
Mutability admission¶
The mutability gate compares an incoming version against a recorded one. An identical write is accepted silently, which makes a retried submission safe. A different one is refused:
Where the gates run¶
flowchart LR
DOC["Submitted document"]
subgraph GATES["ADMISSION, in order"]
direction TB
S{{"1 Structural<br/>manifest, package, policy"}}
R{{"2 Relational<br/>flow references,<br/>execution semantics"}}
M{{"3 Mutability"}}
S --> R --> M
end
subgraph ST["STORE"]
direction TB
MAN[("Admitted manifests<br/>and blocks")]
VER[("Existing versions")]
NEW[("New immutable version")]
end
DOC --> S
R -.->|"reads"| MAN
M -.->|"reads"| VER
M --> NEW
Structural gates read only the document. Relational gates read what it names, from records already admitted. The mutability gate runs last and reads the versions already stored, because whether a write is allowed depends on the content that passed the earlier gates.