21 lines
835 B
Markdown
21 lines
835 B
Markdown
# 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
|
||
|
|
1. Create a post-commit hook at `scripts/git-hooks/post-commit`
|
||
|
|
2. After a commit succeeds, check if autopilot is enabled (.agent.md)
|
||
|
|
3. 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"
|
||
|
|
4. 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
|