Admission and tenancy scoping¶
Two checks stand between a scheduled assignment and a node acting on it: whether the work is admissible at all, and whether this node is allowed to receive it. This page is both, because a run that stalls with no assignment and a node that pulls and receives nothing are different problems with different answers.
Admission blocks with a named reason¶
Dispatch admission marks work that cannot proceed, rather than leaving it queued without explanation. Five kinds of block are recorded:
| Blocked | Means |
|---|---|
| Build dispatch | A build cannot be dispatched under current conditions |
| Secret-bearing project admission | The exact integration, binding, policy, coverage or assignment-derived grant prerequisites are incomplete |
| Model serve | A model serve assignment cannot be admitted |
| Run, input or output contract | The run's declared inputs or outputs did not satisfy their contract |
| Run, block resolution | A reusable capability block in the run could not be resolved |
A run in one of these states has a reason attached to it. The first question for a run that produced no assignment is which of these is recorded against it.
Scope is enforced in shared mode¶
A deployment running nodes shared between tenants resolves and validates a dispatch scope on every path that touches an assignment:
The three scope checks¶
flowchart LR
subgraph POOL["A DATAPLANE POOL"]
direction TB
N["xratud<br/>its tenant_scope, dataplane_pool"]
end
subgraph CP["CONTROL PLANE"]
direction TB
G1{{"Pull admission"}}
G2{{"Claim admission"}}
G3{{"Report admission"}}
A[("Assignment payload<br/>stamped scope")]
G2 -->|"stamps"| A
G3 -.->|"compares with"| A
end
N -->|"pull"| G1
N -->|"claim"| G2
N -->|"report"| G3
All three of the node's edges land on a check, and the stamp in the middle is written once, at claim. The report check reads the stamp rather than the node, so a node whose scope changed after claiming is judged by the scope it claimed under.
The scope is stamped onto the assignment payload at claim time, so a later report is checked against the scope the work was claimed under rather than against whatever the reporting node currently claims to be.
The mode decides whether scope is required¶
In shared mode scope is required and the check is fail-closed. In dedicated
mode nodes are not shared between tenants, so the paths stay scope-neutral and
require nothing.
That is why the same node configuration behaves differently between two deployments: the mode, not the node, decides whether a missing scope is a refusal.
The four scope refusals¶
| Reason | Condition |
|---|---|
DISPATCH_SCOPE_RUNTIME_IDENTITY_REQUIRED |
The caller presented no runtime identity to resolve a scope from |
DISPATCH_SCOPE_ENROLLMENT_NOT_ACTIVE |
The node's enrollment is not active |
DISPATCH_SCOPE_MISSING |
Shared mode requires a scope and none resolved |
DISPATCH_SCOPE_MISMATCH |
The runtime scope differs from the scope stamped on the assignment |
A node that pulls successfully and receives nothing is usually answered by the first two. A node that pulls work and then fails to report it is usually answered by the last.
One capability owns the decision¶
Scope resolution and validation live in a single dispatch capability, and pull, claim and report all call it. One definition means a node admitted on pull cannot be refused on claim for a different reading of the same rule. See Service domains and ownership boundaries.