Commit Graph

2 Commits

Author SHA1 Message Date
bo 922be8541c fix(automation): preflight ignores tool-auto-mutated paths in dirty-tree check
The preflight's own `ao goals measure` and `bd ready` calls mutate
.agents/ao/last-processed and .agents/findings/registry.jsonl, causing the
dirty-tree check to fail after the other 9 checks already passed. The
kickoff script (overnight-evolve.sh) still does its own strict dirty-tree
check, so this is purely a preflight ergonomics fix.
2026-05-02 12:18:55 -04:00
bo 5baf0592da feat(automation): overnight ao evolve loop — kickoff + preflight + Wave-1.5 seed
OE-1: seed 8 Wave-1.5 polish items into .agents/rpi/next-work.jsonl
  - awk portability fix (high)
  - lib/finding-compiler-helpers.sh extraction (medium)
  - doc-index entry for eval-verdict-pipeline (low)
  - 9-marker test extension (medium)
  - --reconcile mode stub (low)
  - SCHEMA.md content_hash recompute (low)
  - cross-vendor Codex review (medium)
  - Wave 2 starter: capture-sidecar privacy doc (medium)

OE-2: scripts/overnight-evolve.sh
  Wraps gtimeout 8h ao evolve --quality --max-cycles=10 --test-first.
  Pre-flight refuses dirty tree. Tees output to ~/.agents/overnight/<DATE>/run.log.
  Writes morning summary.md on exit (any cause): commits made, files changed,
  fitness deltas, kill-switch state, exit code interpretation.
  Kill switch: file at $AGENTOPS_OVERNIGHT_KILL_SWITCH (each cycle's pre-flight
  checks; clean exit if present).

OE-3: scripts/overnight-evolve-preflight.sh
  10-check verification: git clean, ao+claude+gtimeout on PATH, ao goals
  measure runs, bd ready works, ~/.agents/overnight writable, seed JSONL
  valid, kickoff script +x, shellcheck clean.

Plan: .agents/plans/2026-05-01-overnight-evolve-loop.md
Packet: .agents/rpi/runs/overnight-evolve-2026-05-01/execution-packet.json

Pre-mortem (inline --quick): PASS, 8 council FAIL patterns assessed,
0 blockers. Safety rails: 8h hard timeout (gtimeout SIGTERM), --max-cycles=10
suspenders, regression breaker (validation FAIL halts), kill-switch file.
No remote push during overnight (branch-only mutation surface). Pre-Wave-1
baseline tag (pre-wave-1-baseline-eval-corpus-2026-05-01) is the rollback
anchor.

Kickoff: bash scripts/overnight-evolve.sh
Kill: touch $AGENTOPS_OVERNIGHT_KILL_SWITCH (set by kickoff)
Morning: cat ~/.agents/overnight/$(ls -t ~/.agents/overnight/ | head -1)/summary.md
2026-05-02 12:18:55 -04:00