You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prompt execution policy leaks across CLI and MCP adapters. The CLI validates task existence and emits scan-first warnings with FORERUNNER_SCAN_DONE; the MCP server validates tool names, checks task existence, tracks scan state, and blocks non-exempt tasks until scan is called. The bundle module is pure, but task ordering and session policy are duplicated at adapter edges.
Solution
Add a Prompt Session module that owns task lookup, scan-first enforcement, scan state, and bundle resolution. CLI and MCP should act as adapters to the Prompt Session rather than each reimplementing task ordering rules.
Problem Statement
Prompt execution policy leaks across CLI and MCP adapters. The CLI validates task existence and emits scan-first warnings with
FORERUNNER_SCAN_DONE; the MCP server validates tool names, checks task existence, tracks scan state, and blocks non-exempt tasks until scan is called. The bundle module is pure, but task ordering and session policy are duplicated at adapter edges.Solution
Add a Prompt Session module that owns task lookup, scan-first enforcement, scan state, and bundle resolution. CLI and MCP should act as adapters to the Prompt Session rather than each reimplementing task ordering rules.
Implementation Decisions
bundle.pyshould remain focused on prompt text resolution.FORERUNNER_SCAN_DONEunless there is a deliberate migration plan.Testing Decisions
scanandinit-agent-onboarding.Out of Scope
Origin
This Deepening Opportunity came from
/improve-codebase-architecture. It is the second candidate after Task Registry (#45).