Parent Epic
#138 — Sub-Agent Question Propagation Fix
Phase 3 — Harness and Regression Tests
Task
Add tests that validate the question-policy-before.ts plugin behavior.
Required Tests (from §7 Phase 3)
| Test |
Expected |
@Coder-BE subagent calls question |
Plugin blocks, writes Log Central event, records question payload, error instructs HANDOVER protocol |
@Knowledge-Curator subagent calls question as child of Orchestrator |
Plugin blocks, writes Log Central event |
@Knowledge-Curator subagent calls question as child-of-child from another subagent |
Same block; KC instruction no longer encourages the call |
@Orchestrator primary calls question |
Allowed |
@Super-Admin primary calls question |
Allowed for destructive confirmation |
Dispatched @Super-Admin calls question |
Blocked/escalated to parent |
Subagent HANDOVER includes ## Questions for User |
Orchestrator approval flow reads and relays |
Implementation
- Can be added to
framework-self-test.ts as new checks
- Or added as a separate harness script in
.opencode/scripts/
- Must validate both the plugin block behavior AND the HANDOVER protocol workflow
Reference
docs/review/framework-refactor/sub-agent-question-propagation-issue.md §7 Phase 3
Parent Epic
#138 — Sub-Agent Question Propagation Fix
Phase 3 — Harness and Regression Tests
Task
Add tests that validate the question-policy-before.ts plugin behavior.
Required Tests (from §7 Phase 3)
@Coder-BEsubagent callsquestion@Knowledge-Curatorsubagent callsquestionas child of Orchestrator@Knowledge-Curatorsubagent callsquestionas child-of-child from another subagent@Orchestratorprimary callsquestion@Super-Adminprimary callsquestion@Super-Admincallsquestion## Questions for UserImplementation
framework-self-test.tsas new checks.opencode/scripts/Reference
docs/review/framework-refactor/sub-agent-question-propagation-issue.md§7 Phase 3