Parent Epic
#138 — Sub-Agent Question Propagation Fix
Phase 1 — Option B: Runtime Guard (Sub-task of P1-1)
Task
Implement structured Log Central event emission for the question policy plugin.
Required Events (from §7 Phase 1)
SUBAGENT-QUESTION-BLOCKED — when subagent question call is blocked
SUBAGENT-QUESTION-RECORDED — when question payload is persisted
PRIMARY-QUESTION-ALLOWED — when Orchestrator primary question is allowed
QUESTION-POLICY-DETECTION-WARN — when subagent detection is ambiguous
Implementation
- Use
writeLog() from log-manager.ts
- Each event must include: sessionID, agent, taskId, question payload (if available), timestamp, detection method
Reference
docs/review/framework-refactor/sub-agent-question-propagation-issue.md §7 Phase 1
Parent Epic
#138 — Sub-Agent Question Propagation Fix
Phase 1 — Option B: Runtime Guard (Sub-task of P1-1)
Task
Implement structured Log Central event emission for the question policy plugin.
Required Events (from §7 Phase 1)
SUBAGENT-QUESTION-BLOCKED— when subagent question call is blockedSUBAGENT-QUESTION-RECORDED— when question payload is persistedPRIMARY-QUESTION-ALLOWED— when Orchestrator primary question is allowedQUESTION-POLICY-DETECTION-WARN— when subagent detection is ambiguousImplementation
writeLog()fromlog-manager.tsReference
docs/review/framework-refactor/sub-agent-question-propagation-issue.md§7 Phase 1