Skip to main content
Version: 0.4.0

Admission

The single gate between a running process and a participant.

The four inputs​

InputSaysIs about
the requestwhat this process claims nowa claim being made
the Manifest, as read at this startwhat the binary claims of itselfthe binary
the Registrywhat this host permitsthe binary
the bootstrap tokenthat this Core launched this process, for this unit, just nowthe launch

The token proves provenance. It proves neither identity nor permission.

What the request claims​

FieldGates admissionHolds
the plugin identityyeswhich binary this claims to be
the unit identityyeswhich copy
the bootstrap tokenyesprovenance
the protocol versionyesthe 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, occurrencesyeswhat 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.

#StageAsksMay refuse
1structuraldoes the request decode, with the required fields present?yes
2identityis the plugin known to the Registry, and is the unit one this deployment composes?yes
3administrative stateis the plugin enabled?yes
4authenticationis the token valid, unexpired and unspent?yes
5compatibilityis the protocol version present and supported?yes
6declaration consistencydoes the process describe itself as its Manifest does?yes
7authorisationof what is declared, what is permitted?never
8unit conflictis this unit already live?yes
9session preparationcan 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 atThe token isRecovery
stages 1–3unspenta retry, once the cause is fixed
stage 4spent if it was valid, untouched if nota relaunch
stages 5–9spenta relaunch, never a retry

An SDK does not retry an admission on the author's behalf.

Three outcomes​

OutcomeMeans
acceptedthe full declared scope
accepted with restrictionsa reduced scope, every withheld item listed
refusedtotal: 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.
CaseWhat happensReported to
declared, not authorisedwithheldthe unit, item by item
authorised, not declaredinertnobody 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​

DestinationCarries
a log entrythe unit and its incarnation, the outcome, and whether the scope was narrowed and by how many items
an eventthe 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.