perspt-agent¶
The SRBN orchestrator and all supporting subsystems.
Modules¶
Module |
Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Key Traits¶
Agent — Per-tier LLM interaction:
#[async_trait]
pub trait Agent: Send + Sync {
async fn process(&self, node: &SRBNNode, ctx: &AgentContext)
-> Result<AgentMessage>;
fn name(&self) -> &str;
fn can_handle(&self, node: &SRBNNode) -> bool;
fn model(&self) -> &str;
fn build_prompt(&self, node: &SRBNNode, ctx: &AgentContext) -> String;
}
TestRunnerTrait — Plugin-driven verification:
#[async_trait]
pub trait TestRunnerTrait: Send + Sync {
async fn run_syntax_check(&self) -> Result<TestResults>;
async fn run_tests(&self) -> Result<TestResults>;
async fn run_build_check(&self) -> Result<TestResults>;
async fn run_lint(&self) -> Result<TestResults>;
async fn run_stage(&self, stage: VerifierStage) -> Result<TestResults>;
fn name(&self) -> &str;
}
Ledger Types¶
Type |
Description |
|---|---|
|
commit_id, session_id, node_id, merkle_root, parent_hash, energy, stable |
|
Snapshot of node state for ledger commit |
|
total_sessions, total_commits, db_size_bytes |
|
Energy history, escalations, seals, provenance for a single node |
|
Aggregate stats: total/completed/failed/escalated, branches, review outcomes |
|
Full session state for resume: node_details, edges, branches, escalations |