CI / build (push) Has been cancelled
- Pre-commit hook: warns when autopilot is enabled and non-terminal tasks exist - Post-commit hook: after commit, prints non-terminal task summary if autopilot on - Post-commit exits 0 always (informational only, never blocks) - Both hooks read .agent.md to detect Autopilot: Enabled
835 B
835 B
SPEC: Add Post-Commit Autopilot Driver Reminder
Problem
When autopilot is enabled, tasks can be left hanging after commits. There's no automated reminder to drive them to completion.
Requirements
- Create a post-commit hook at
scripts/git-hooks/post-commit - After a commit succeeds, check if autopilot is enabled (.agent.md)
- If autopilot is enabled and non-terminal tasks exist, output a summary:
- Number of non-terminal tasks
- Their current phases
- Clear instruction: "Run the orchestrator to drive them to completion"
- Exit 0 always (informational only, never blocks)
Acceptance Criteria
- Post-commit hook exists and is executable
- Hook output is silent when no work remains or autopilot is off
- Hook prints actionable summary when work exists and autopilot is on
- bash -n passes syntax check