Skip to main content

perspt_agent/turn/
mod.rs

1//! The universal actor turn runner (PSP-10 system 27, Phase 9).
2//!
3//! One turn discipline for every stochastic actor — worker, explorer,
4//! architect, adjudicator, evidence summarizer, and capability probe:
5//! resolve the route, check the resident-context budget before any
6//! transport call (Definition 6: infeasible means no call), send with the
7//! shared sticky failover chain, and record the raw observation as an
8//! actor-tagged `turn_observed` before anything inspects it. The worker's
9//! tool loop keeps its loop policy (budgets, batching, cadence) and shares
10//! the same failure classification.
11
12mod runner;
13
14pub use runner::{
15    chat_turn_with_deadline, route_dialect, transport_failure_kind, ActorKind, ActorTurnRunner,
16    DEFAULT_TURN_DEADLINE_SECS,
17};