Commit Graph

1 Commits

Author SHA1 Message Date
Boden Fuller 1374cfb357 feat(ci): context-map drift gate + pre-push integration
Adds scripts/validate-context-map-drift.sh — runs the context-map
generator into a temp location, diffs against the committed map,
fails on drift with a helpful "To fix:" message and a trap-based
restore so a failed drift check leaves the working tree clean
(prevents accidental "git add" of a regenerated map).

Wires the check into two places per pre-mortem Fix 3:
1. scripts/pre-push-gate.sh — new section 29b, conditionally
   runs the check when skills/*/SKILL.md, the generator, the
   drift script itself, or the context-map are in the diff.
2. .github/workflows/validate.yml — new validate-context-map-drift
   job, registered in summary.needs and the result-echo block.
   AGENTS.md CI-jobs table updated to keep parity invariant green.

Issue #5 of the DDD+Hexagonal v1 plan, applying
finding-2026-05-07-ci-parity-as-wave-acceptance and pre-mortem Fix 3.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 10:49:48 -04:00