perspt-agent¶
The governed PSP-9 agent runtime: candidate workspaces, the SRBN tool loop, sandboxed verification, and work-graph dispatch.
Modules¶
Module |
Description |
|---|---|
|
|
|
Deterministic, read-only repository orientation for the runtime |
|
|
|
Persistent grant signing-key resolution |
|
|
|
|
|
|
|
Descriptor-relative workspace promotion |
|
|
|
|
|
|
|
|
|
|
|
Universal actor turn runner shared by every stochastic actor (PSP-10) |
|
Governed verifier sandbox: compiler/test/lint processes run behind a deny-network profile and a read allow-list; an explicit reduced-isolation policy is available on hosts without a backend |
Key Types¶
Psp9ModelRoutes - Explicit model-plane routes for one PSP-9 session:
pub struct Psp9ModelRoutes {
pub primary: Option<String>,
pub actuator: Option<String>,
pub explorer: Option<String>,
pub adjudicator: Option<String>,
pub fallbacks: Vec<String>,
}
Psp9RunSummary - Terminal outcome of one run:
pub struct Psp9RunSummary {
pub session_id: String,
pub node_id: String,
pub outcome: NodeTerminalOutcome,
pub turns_used: u32,
pub ledger_head: String,
pub promoted_paths: Vec<String>,
}
Usage¶
let runtime = Psp9AgentRuntime::from_config(workdir, &config, routes, run_config)?
.with_database_path(db_path);
let summary = runtime.run(task).await?;