Expand description
Multi-agent coordination opcodes — MULTI_AGENT_PROTOCOL.md, Sentinel bytecode
block 0x70–0x7F (the deontic ISA owns 0x50–0x53; this block is collision-free).
These govern the mechanical ingestion + evaluation of coordination nquins and execute atomically in the Sentinel VM. This module is the decidable core of the three opcodes — the expiry gate, the anti-usury resource contract + circuit breakers, and the fidelity/efficiency arithmetic — as deterministic, zero-heap, tested functions. The non-decidable substrate is passed in as a seam, never stubbed here:
0x70root-delegation signature verification → averifyclosure the daemon backs with the key-vault Root Key (secure enclave);0x71SuspendedTransactionQueueyield → the caller acts onCoordFault::InsufficientGlobalResources;0x72VC minting to the Semantic Shared Context Graph → the caller writes thePerformanceRecordas an nquin; the privileged (daemon-only) gate is the caller’s.
Wiring an operand-stack execution path into webizen_bytecode (today a per-quin
matcher) + the substrate above is the next increment; the semantics are fixed here.
Structs§
- Coord
Context - Host-provided seams the coordination VM cannot decide itself (the daemon backs these).
- Coord
Outcome - What a coordination program produced (besides the operand stack).
- Performance
Record - The performance verdict minted by
0x72— the inputs to the performance-VC nquin written to the Semantic Shared Context Graph. - Resource
Contract - The live resource contract + hardware circuit breakers a granted task runs under
(established by
0x71). Deterministic, zero-heap.
Enums§
- Coord
Fault - Coordination-layer faults. Each dumps the current VM frame.
- Coord
VmError - Coordination VM faults.
Constants§
- COORD_
STACK_ DEPTH - Operand-stack depth — fixed/bounded like the rest of the VM.
- OP_
AUTHORIZATION_ GRANT 0x70— verify cryptographic delegation Human-Root → ephemeral agent.- OP_
PERFORMANCE_ RATING 0x72— privileged: mint the performance VC at task resolution (Sentinel daemon only).- OP_
PUSH_ U64 0x7F— push the next 8 little-endian bytes as au64operand.- OP_
RESOURCE_ DECLARATION 0x71— declare the hard computational boundaries (anti-usury layer) for a task.- PRIORITY_
BASE - Full compute priority of an unfaulted agent.
- PRIORITY_
FLOOR - Redemption floor — an honest agent decaying on fidelity faults never fully starves and can climb back. (Usury bypasses the floor: it quarantines to 0.)
Functions§
- compute_
priority - Darwinian compute priority from an agent’s recent record:
usury_event⇒0(hard quarantine); otherwisePRIORITY_BASE × (1/2)^windowed_faults, clamped atPRIORITY_FLOOR. - eval_
authorization_ grant 0x70OP_AUTHORIZATION_GRANT. Stack:[Agent_DID_Hash, Human_Root_DID_Hash, Metadata_Timestamp]. Pops the timestamp first (expiry gate), then verifies the delegation signature against the active Root Key (theverify_root_delegationseam).- eval_
performance_ rating 0x72OP_PERFORMANCE_RATING (privileged). Stack:[Agent_DID_Hash, Declared_Tokens, Actual_Tokens_Burned, Validation_Boolean]. Computes fidelity + efficiency and flags usury. The VM then mints the VC nquin and pushes its hash; the daemon-only privilege gate is the caller’s (require_privileged).- eval_
resource_ declaration 0x71OP_RESOURCE_DECLARATION. Stack:[Task_ID_Hash, Token_Ceiling, Max_Clock_Cycles]. Allocates the declared bounds to a freshResourceContractand arms its circuit breakers. Errors withInsufficientGlobalResources(→ yield to theSuspendedTransactionQueue) when the declared ceiling exceeds the daemon’s global allowance.- execute_
coordination - Execute a coordination-ISA program against a fresh fixed-depth operand stack.
- perf_
vc_ hash - Deterministic VC identity for a minted performance record — the
nquin_hash0x72pushes to confirm minting. The host writes the fullPerformanceRecordto the context graph. - require_
privileged - Privilege gate for
0x72: only the Sentinel daemon may mint performance VCs.