4 Commits

Author SHA1 Message Date
Boden Fuller 4747c797d3 fix(ci): eliminate 5 CI toil sources from v2.35.0 post-mortem
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.
2026-04-07 18:43:26 -04:00
Boshu2 d11b1563d7 fix(hooks): fix CI failures for edit-knowledge-surface hook
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.
2026-03-21 00:18:53 -04:00
Boshu2 83ce8597b0 fix(flywheel): improve edit hook precision and archive reliability
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.
2026-03-21 00:06:55 -04:00
Boshu2 a550d43064 feat(flywheel): add edit knowledge hook and research archive script
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.
2026-03-20 23:58:52 -04:00