Skip to main content

Crate ainl_agent_snapshot

Crate ainl_agent_snapshot 

Source
Expand description

Bounded agent graph snapshot + deterministic plan types for the planner protocol.

Shared between ArmaraOS and ainl-inference-server via path or published crate dependency.

Structs§

AgentSnapshot
DeterministicPlan
GraphWrite
PlanStep
PolicyCaps
RepairContext
SnapshotPolicy

Enums§

GraphWriteError
OnErrorPolicy
PlanStepError
Typed tool-step failure for escalation without string parsing.
SnapshotError

Constants§

DEFAULT_MAX_REPLAN_CALLS
Default max LocalPatch replans per plan execution.
DEFAULT_MAX_WALL_MS
Default total plan wall-clock cap (ms).
DEFAULT_NON_EPISODIC_WINDOW_SECS
Lookup window (seconds) for non-episodic snapshot types (semantic, procedural, persona). 30 days is the default; operators can override via [runtime_limits] snapshot_non_episodic_window_secs.
SNAPSHOT_SCHEMA_VERSION
Schema version for AgentSnapshot::snapshot_version; server rejects unknown versions.
STRUCTURED_KIND_DETERMINISTIC_PLAN
JSON discriminator for structured planner output (InferOutput.structured).
STRUCTURED_KIND_PLANNER_INVALID_PLAN
Structured response when server-side plan validation fails after repair attempt.

Functions§

apply_graph_writes
Map planner graph writes to concrete memory nodes for GraphMemory::write_node.
build_snapshot
Build a bounded AgentSnapshot using typed recall queries (not full export).
deterministic_plan_from_procedure
Project a portable procedure into the deterministic planner protocol.
procedure_execution_plan_from_artifact