Skip to main content

Crate agent_runtime

Crate agent_runtime 

Source
Expand description

agent-runtime CLI library. Render / install / doctor / audit-drift for graysurf/agent-runtime-kit.

§Determinism contract (Resolved Decision #9)

Render output must be a pure function of the source-root contents: no wall-clock time, no hash-randomized iteration. The crate-wide #![deny(...)] attribute below pairs with clippy.toml to make std::collections::HashMap, std::time::SystemTime::now, and chrono::Utc::now build failures. The single sanctioned time value is render::time::source_commit_timestamp(). Helpers under render::helpers are the only sanctioned HashMap site — Tera’s Function trait forces the signature, and the lint is silenced exactly there.

Source: agent-runtime-kit/docs/source/inventory-target-architecture.md → Resolved Decision #9.

Modules§

audit_drift
Minimal audit-drift body covering the four blocking classes the Phase 2 reporting POC depends on. See agent-runtime-kit/docs/source/inventory-target-architecture.md for the class definitions and Resolved Decisions #5 (no $AGENT_HOME) and #9 (determinism / per-product docs-home).
commands
doctor
Read-only agent-runtime doctor probes. Plan 04 Sprint 3.
gc_backups
agent-runtime gc-backups body. Plan 04 Sprint 2 Task 2.4.
install
agent-runtime install body. Plan 04 Sprint 1 Tasks 1.2 / 1.3.
live_surface
Shared live runtime-home surface helpers.
managed_block
Managed-block helper for paired install markers.
prune_stale
agent-runtime prune-stale body.
purge_state
agent-runtime purge-state body. Plan 04 Sprint 2 Task 2.3.
render
restore_backups
agent-runtime restore-backups body. Plan 04 Sprint 2 Task 2.2.
uninstall
agent-runtime uninstall body. Plan 04 Sprint 2 Task 2.1.

Structs§

Cli

Enums§

Command

Functions§

run