Expand description
SRBN kernel adapter (PSP-8 System 2 / Gate A).
perspt-sdk uses the published srbn crate as the canonical SRBN kernel
and srbn_serde for serializing traces that enter the Perspt ledger,
rather than forking the kernel logic. This module is the narrow adapter that
keeps Perspt’s WorkGraph, residual, and capability types outside the SRBN
crate while reusing its stabilize loop, BarrierResult contract, attempt
traces, and terminal statuses.
The authoritative acceptance gate is the measured gate in crate::gate;
srbn supplies the loop scaffolding and the serializable attempt trace.
Structs§
- Agent
Barrier Result - The SDK-side barrier result (PSP-8 adapter type).
Enums§
- Agent
Stabilization Status - Terminal status of an SDK stabilization (PSP-8 adapter enum). Extends the
kernel’s
srbn::Statuswith SDK-specific outcomes.
Functions§
- policy
- Build an
srbn::Policyfrom SDK stability parameters. - stabilize
- Drive the kernel’s
srbn::stabilizeloop over an arbitrary state, with the barrier producing anAgentBarrierResult(mapped to the kernel result). - trace_
to_ json - Serialize a kernel stabilization trace to JSON via
srbn_serdefor the ledger. Requires the state and evidence to be serializable.
Type Aliases§
- Correction
Direction Set - A set of correction directions, the SDK’s
Correctionpayload. - Evidence
- Deterministic string evidence map, matching
srbn::Evidence.