fix(delegation): decouple plan agent from prometheus - remove aliasing

Remove 'prometheus' from PLAN_AGENT_NAMES so isPlanAgent() no longer
matches prometheus. The only remaining connection is model inheritance
via buildPlanDemoteConfig() in plan-model-inheritance.ts.

- Remove 'prometheus' from PLAN_AGENT_NAMES array
- Update self-delegation error message to say 'plan agent' not 'prometheus'
- Update tests: prometheus is no longer treated as a plan agent
- Update task permission: only plan agents get task tool, not prometheus
This commit is contained in:
YeonGyu-Kim
2026-02-08 13:42:15 +09:00
parent b88a868173
commit 72cf908738
2 changed files with 123 additions and 100 deletions

View File

@@ -538,7 +538,7 @@ export function buildPlanAgentSystemPrepend(
* List of agent names that should be treated as plan agents.
* Case-insensitive matching is used.
*/
export const PLAN_AGENT_NAMES = ["plan", "prometheus", "planner"]
export const PLAN_AGENT_NAMES = ["plan", "planner"]
/**
* Check if the given agent name is a plan agent.