Skip to main content

Module coord_seams

Module coord_seams 

Source
Expand description

R8: Concrete wiring of CoordHostSeams to daemon infrastructure.

The coordination ISA (governance/coordination.rs) defines host seams that it cannot decide itself:

  • verify_root_delegation — is an agent’s delegation signed by the root key?
  • yield_to_suspended_queue — enqueue a suspended transaction
  • mint_performance_vc — mint a performance Verifiable Credential to the graph

The default seams (default_seams()) are fail-closed: verify returns false, yield is a no-op, mint returns 0. This module provides daemon_seams() which wires these to the actual daemon infrastructure:

  • verify_root_delegation → checks a delegation table backed by crdt::DelegatedAccess
  • yield_to_suspended_queue → crdt::SuspendedTransactionQueue::push
  • mint_performance_vc → daemon_graph::extend_with_ontology_quins_slice with a performance VC quin, returns the perf_vc_hash

Functions§

daemon_seams
Create daemon-backed coordination seams (R8).
init_daemon_seams
Initialize the daemon-backed coordination seams (R8).
register_delegation
Register a delegation for an agent (R8). Allows verify_root_delegation to return true for this agent. The agent_did_hash is derived from the first 8 bytes of the delegate’s DID.
reset_daemon_seams
Clear the suspended queue and delegation table (for testing).
suspended_queue_len
Get the number of suspended transactions (for diagnostics/testing).