Expand description
Fundamental types: Role / Verb / RoleVerbGate / CapToken / IDs.
Structs§
- CapToken
- Capability token.
max_usespicks between OneTime / Session / Limited. - Role
Verb Gate - Role × Verb gate table. Const-style storage.
- Session
Id - Opaque session identifier, e.g.
S-<hex>. SeeTaskIdfor the newtype rationale. - TaskId
- Opaque task identifier, e.g.
T-<hex>. Newtype overStringso task, session, and worker ids can’t be swapped by accident at call sites. - Token
Signer - Server-side machinery for minting and verifying tokens.
- Worker
Id - Opaque worker identifier, e.g.
W-<hex>. SeeTaskIdfor the newtype rationale. - Worker
Payload - Response body for
HTTP /v1/worker/prompt— the shape that lets a SubAgent pull its task input in a single round-trip.
Enums§
- CapToken
Decode Error - Error returned when
CapToken::decodefails. - Role
- The four participant roles in the swarm. Every
Verba caller wants to invoke must be allow-listed for its role in aRoleVerbGate. - Verb
- Every action a participant can request. Grouped by the
Rolethat typically performs it (see the// operator/// worker/ … section comments below); the grouping is documentation only — actual authorization is decided byRoleVerbGate::is_allowed.
Constants§
- OBSERVER_
VERBS - Verbs an Observer may invoke — strictly read-only (event subscription and trace/state reads, no mutation).
- OPERATOR_
VERBS - Verbs an Operator may invoke — covers task lifecycle, session, and senior interactions.
- SENIOR_
VERBS - Verbs a Senior may invoke — human/oversight actions: answering queries, overriding verdicts, and pausing/resuming/injecting into the dispatch loop.
- WORKER_
LEAF_ VERBS - The Worker verbs shared across all workers — the minimum a leaf
needs, with no sub-task spawning. If we introduce
Role::WorkerLeafin the future, that role gets allowed against this slice. - WORKER_
SWARM_ VERBS - Worker verbs for recursive swarming: sub-task spawn and
observation. When
Role::WorkerSwarmsplits out in the future, that role gets allowed againstWORKER_LEAF_VERBSplus this slice. The safety valves areEngineCfg.max_spawn_depthtoday, and a task-ownership gate down the line.
Functions§
- default_
role_ verb_ table - The default Role × Verb table.
- secure_
hex - OS-RNG hex, safe for bearer credentials.
- uid_hex
- In-process-unique, restart-decorrelated hex id.