mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
704d9b6a8f
Operational completion of E6: the incremental miner (E6.2) + its e2e (E6.3) were landed but had never RUN on real logs (anti-cathedral: a miner that never runs makes no contact). mine-all-sessions.sh drives `ao provenance mine-session` over a session dir and appends per-inference provenance events to a LOCAL, gitignored event store (.agents/provenance/mine-events.jsonl), incremental via per-session --state. Proven on the real corpus: 146 sessions -> 17,883 events, 0 failed; re-run is incremental (idempotent via --state). Soundness (cross-family pawl: CONFIRMED rev2 after REFUTED rev1 caught 4 real defects self-review missed): exit 1 on any session failure (no false-green exit 0); rollback removes a newly-created advanced state on failure so a re-run re-mines unstored events (no data loss); stale .bak cleared before snapshot; summary JSON built with jq (escaping); single-writer mkdir lock; deterministic find|sort ordering. Test: tests/scripts/mine-all-sessions.bats (6 cases incl. the failure/rollback data-loss path). Bead: age-membrane-memory-arch-tz2s.6.4