Files
automaton/tasks/add-post-commit-autopilot-driver/SPEC.md
T
gitea 1d36c0e4ad
CI / build (push) Has been cancelled
Add autopilot-aware pre-commit warnings + post-commit driver reminder
- 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
2026-06-16 12:44:21 -04:00

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

  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