1. Add CHANGELOG sync check (check 36) to pre-push-gate.sh — fails if
root CHANGELOG.md differs from docs/CHANGELOG.md
2. Add 250-line limit guard to edit-knowledge-surface.sh for SKILL.md
files — warns at 240, errors at 250
3. Add TestMain to cli/cmd/ao/ that clears AGENTOPS_RPI_RUNTIME* env
vars so per-test t.Setenv is unnecessary
4. Broaden CLI docs parity check (24b) to trigger on any cmd/ao/*.go
change, not just go build changes
5. Wire --fast flag into .githooks/pre-push for faster push-time gates
Bonus: fix pre-existing pipefail bug in flywheel health check (35) that
silently killed all subsequent checks.
Use bare hookEventName "PreToolUse" (not "PreToolUse:Edit") to pass
the valid event name cross-check. Add hook to bats cross-check map.
Add 4 integration tests: kill switch, non-Edit tool exit, missing
file_path exit, and hooks.json wiring verification.
Move edit-knowledge-surface hook from PostToolUse to PreToolUse so
learnings surface before the edit, not after. Fix false positives by
matching relative path first, falling back to filename only when no
path match. Fix archive script to use YYYY-MM-DD from filenames
instead of mtime, which gets reset by ao mine.
Add PostToolUse:Edit hook that surfaces relevant learnings when editing
files mentioned in .agents/learnings/ (48ms, grep-based). Add
scripts/archive-research.sh to move stale research files to archive
and reduce search noise. Register hook in hooks.json with 3s timeout.