Expand description
The credentials supervision turns authenticate with, held in memory alone.
§One credential per run, bound before it exists
A supervision turn’s runs reach the server’s API with a credential minted
for that run: GENERATED_TURN_CREDENTIAL_BYTES bytes from the operating
system’s cryptographically secure random source, bound to the agent class,
the session the run is in and the print the turn is about. The core opens
one turn’s issuer of them at the turn boundary through
TurnAuthority::open, hands it to the supervisor port, and revokes it
when the turn returns — on success, failure and timeout alike, and when the
turn is abandoned, because dropping what was opened revokes too.
§Nothing here is persisted
The registry is a map in this process’s memory, keyed by the SHA-256 of each credential rather than by the credential itself: nothing is written, so a server that restarts admits none of the credentials the one before it minted, and no turn survives a restart for one to be owed to. Looking a presented credential up by its digest takes as long whatever was guessed: what varies is the digest, which says nothing about the credential.
§A turn acknowledges only after it has looked
The registry also notes which turns have taken a look at their print, so the API can refuse an acknowledgement from a turn that judged its event without one: the frames a turn’s context names are already old when it reads them. The note is the turn’s, shared by every run it issues, and goes with the turn’s credentials when it returns.
Structs§
- Turn
Binding - Who one turn credential authenticates as.
- Turn
Credentials - Every live turn credential, by its digest. Cloning it is another handle onto the same registry.
Constants§
- GENERATED_
TURN_ CREDENTIAL_ BYTES - How many random bytes a turn’s credential is drawn from: the same as every credential this program generates.