Admission
The single gate between a running process and a participant.
The four inputs
| Input | Says | Is about |
|---|---|---|
| the request | what this process claims now | a claim being made |
| the Manifest, as read at this start | what the binary claims of itself | the binary |
| the Registry | what this host permits | the binary |
| the bootstrap token | that this Core launched this process, for this unit, just now | the launch |
The token proves provenance. It proves neither identity nor permission.
What the request claims
| Field | Gates admission | Holds |
|---|---|---|
| the plugin identity | yes | which binary this claims to be |
| the unit identity | yes | which copy |
| the bootstrap token | yes | provenance |
| the protocol version | yes | the version of this surface the process speaks |
| the artifact's version | — | recorded and reported |
| the language and SDK line | — | recorded and reported |
| the declared surface — capabilities, streams, commands, queries | yes | what the Manifest declares, restated at runtime |
Both identities are required: the token was issued for the pair.
Not in the request: an address, since the unit's socket derives from its identity; a Session identity, since admission creates it; a state; an incarnation.
The nine stages
Evaluated in this order, stopping at the first failure.
| # | Stage | Asks | May refuse |
|---|---|---|---|
| 1 | structural | does the request decode, with the required fields present? | yes |
| 2 | identity | is the plugin known to the Registry, and is the unit one this deployment composes? | yes |
| 3 | administrative state | is the plugin enabled? | yes |
| 4 | authentication | is the token valid, unexpired and unspent? | yes |
| 5 | compatibility | is the protocol version present and supported? | yes |
| 6 | declaration consistency | does the process describe itself as its Manifest does? | yes |
| 7 | authorisation | of what is declared, what is permitted? | never |
| 8 | unit conflict | is this unit already live? | yes |
| 9 | session preparation | can the acceptance become an enforceable Session? | yes |
- A disabled plugin is refused at stage 3, before its token is examined — so before it is spent.
- Stage 7 never refuses. A plugin that declares more than policy permits is admitted with less.
- Stage 8 is about a unit, not a plugin: four copies of one binary are the ordinary case.
The stage travels with the refusal
A refusal carries the stage it reached, and the stage says what happened to the token.
| Refused at | The token is | Recovery |
|---|---|---|
| stages 1–3 | unspent | a retry, once the cause is fixed |
| stage 4 | spent if it was valid, untouched if not | a relaunch |
| stages 5–9 | spent | a relaunch, never a retry |
An SDK does not retry an admission on the author's behalf.
Three outcomes
| Outcome | Means |
|---|---|
| accepted | the full declared scope |
| accepted with restrictions | a reduced scope, every withheld item listed |
| refused | total: no partial or probationary admission |
- A restricted acceptance is a valid acceptance. What the unit does with it — exit, run with less — is the unit's to decide.
- Attempting a withheld operation is refused by the Core; it is not a protocol violation.
- Restricted is not degraded: a restriction is decided by policy at admission and does not change while the Session lives.
| Case | What happens | Reported to |
|---|---|---|
| declared, not authorised | withheld | the unit, item by item |
| authorised, not declared | inert | nobody at admission |
The grant
The granted scope is what is both declared and authorised, computed per surface, once, at admission.
- The unit learns its scope up front.
- The Core enforces membership in a fixed set.
- The scope does not change under a running Session. A policy change reaches a unit at its next admission: restart the unit — not the instance — to apply it.
- Authorisation is held per plugin and admission happens per unit, so four copies compute four grants from one policy.
What admission records
| Destination | Carries |
|---|---|
| a log entry | the unit and its incarnation, the outcome, and whether the scope was narrowed and by how many items |
| an event | the same, at the same instant |
- The token is never written anywhere.
- A refused request's declarations are not kept.
- Refusals are recorded like acceptances; those that reached the token are marked as such.
The development waiver
A process started by hand has no token. An instance started with --admit-unlaunched admits one.
- It relaxes stage 4 and nothing else: the unit must still be composed, its plugin known and enabled, its declaration consistent, and its scope is still the intersection.
- It belongs to the instance's invocation, never to a plugin.
- It is independent of
--unverified, which waives the check of a bundle's integrity. - An instance started without it refuses an unlaunched process outright.