[Grid agent] Record structured observability, audit, metrics, and replay data #127
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Make the agent's externally visible decision process, world actions, and failures inspectable without exposing secrets or claiming access to hidden model reasoning.
Event and storage model
Acceptance criteria
Debugrepresentations.Dependencies
Depends on architecture and control-plane event contracts. Every later feature must add its event coverage before completion.
Implemented and pushed as commit
8658c04.This adds the versioned structured event schema and stable lifecycle/message/session/inference/model/tool/policy/approval/behavior/job/control/shutdown families; pseudonymous correlations and redacted Debug surfaces; a bounded memory ring and slow-subscriber/gap handling; an optional bounded rotating JSONL journal with torn-tail recovery, durable non-reused event IDs, hard retention limits, and nonblocking producer behavior; fixed-cardinality health, latency, outcome, rate, and drop metrics exposed through the control plane; unified policy audit mirroring; live session/interaction/perception/behavior/control wiring; content-free diagnostic envelopes; and deterministic data-only replay. Documentation and golden/redaction/rotation/recovery/overflow/correlation/replay tests are included.
Verified on this host:
I am intentionally leaving #127 open for the larger-machine handoff. The mandatory build against the real monolithic libremetaverse crate still receives SIGKILL on this 7.6 GiB host with no swap, including single-job/debug-disabled and reduced-rustc-memory attempts. On the larger machine, rerun: CARGO_PROFILE_DEV_DEBUG=0 CARGO_INCREMENTAL=0 cargo build --locked -j 1 -p metacrate-grid-agent --features live-grid --bin metacrate-grid-agent. Close #127 only after that real build succeeds.
Larger-machine handoff completed on commit
e99ee0f.Closure evidence:
cargo build --locked --offline -p metacrate-grid-agent --features live-grid --bin metacrate-grid-agent.grid agent completed one supervised login/logout cycle.-D warningsfor all targets withlive-grid.-D warningsandlive-grid.The prior monolithic-build blocker is resolved, all acceptance criteria are verified, and the worktree is clean.