Context
Ran a 24-hour parallel session with two agents in separate git worktrees, each using a SpecFlow playbook. The workflow has natural review points where human judgment is needed before proceeding. Currently, auto-run skips past these because there's no pause-notify-resume mechanism.
The Problem
In interactive mode, review gates happen naturally (you're watching). In auto-run, they get skipped. The agents completed full cycles without human input:
- Specs were created → agents immediately proceeded to implementation
- Plans were drafted → agents immediately started coding
- No opportunity for "wait, that's not quite right" before significant work was done
Natural Review Points (Skipped in Auto-Run)
- After spec is written → Human should review spec before implementation begins
- After architecture is planned → Human should approve approach
- After implementation → Human should review code before verification
- After tests pass → Human should validate before marking complete
Two Possible Approaches
Option A: Playbook-Level HITL Markers
Playbook documents could declare HITL gates:
## Step 5: Review Specification
<!-- MAESTRO:HITL reason="Spec ready for review" artifact=".maestro/outputs/SPEC.md" -->
- [ ] Human has reviewed and approved the specification
Maestro pauses at the marker, sends notification with reason/artifact, waits for approval.
Option B: Agent-to-Maestro Signaling
The agent (or underlying tool like SpecFlow) could signal Maestro:
maestro signal --pause --reason "Spec ready for review" --artifact "SPEC.md"
Or via file convention that Maestro monitors.
This would allow integration between workflow tools (like SpecFlow) and Maestro's control loop.
Related
Context
Ran a 24-hour parallel session with two agents in separate git worktrees, each using a SpecFlow playbook. The workflow has natural review points where human judgment is needed before proceeding. Currently, auto-run skips past these because there's no pause-notify-resume mechanism.
The Problem
In interactive mode, review gates happen naturally (you're watching). In auto-run, they get skipped. The agents completed full cycles without human input:
Natural Review Points (Skipped in Auto-Run)
Two Possible Approaches
Option A: Playbook-Level HITL Markers
Playbook documents could declare HITL gates:
Maestro pauses at the marker, sends notification with reason/artifact, waits for approval.
Option B: Agent-to-Maestro Signaling
The agent (or underlying tool like SpecFlow) could signal Maestro:
Or via file convention that Maestro monitors.
This would allow integration between workflow tools (like SpecFlow) and Maestro's control loop.
Related