Skip to content

P3-1: Create test harness for question policy plugin #148

@Cho-Geer

Description

@Cho-Geer

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

Metadata

Metadata

Assignees

Labels

area/framework框架代码(.opencode/)bugSomething isn't workingdocumentationImprovements or additions to documentationp2Priority 2 - Mediumtech-debttesting

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions