Files
kandev/docs/plans/workflow-empty-prompt-dedup/task-02-correct-plan-tool-names.md
T
2026-09-03 10:21:55 +00:00

2.3 KiB

id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
id title status wave depends_on plan requirements acceptance_criteria system_design
02-correct-plan-tool-names Correct plan-tool names done 1
plan.md
REQ-TASKS-MCP-TOOL-NAMES-001
AC-TASKS-MCP-TOOL-NAMES-001.3
../../specs/tasks/system-design/mcp-tool-name-stability.md

Task 02: Correct Plan-Tool Names

Summary

Correct the two canonical MCP names in active-plan context. Add focused coverage for the model-facing instruction.

In scope

  • Replace plan_get with get_task_plan_kandev.
  • Replace plan_update with update_task_plan_kandev.
  • Add a pure-helper unit test for both names.

Out of scope

  • MCP registration and transport behavior.
  • User-interface copy or localization catalogs.
  • Backend prompt composition.

Acceptance

  • Active-plan context names only registered canonical plan tools.
  • The focused test rejects the two obsolete names.

Verification

(cd apps && pnpm --filter @kandev/web test -- --run hooks/use-message-handler.test.ts)
(cd apps/web && pnpm run typecheck)
(cd apps/web && pnpm exec eslint hooks/use-message-handler.ts hooks/use-message-handler.test.ts)
(cd apps/web && pnpm run i18n:check)
(cd apps/web && pnpm run i18n:ratchet)

Files likely touched

  • apps/web/hooks/use-message-handler.ts
  • apps/web/hooks/use-message-handler.test.ts

Dependencies

None.

Risks

  • Exporting the helper increases the module surface. Keep the export limited to the existing pure function.

Parallelism

sequential

Inputs

  • REQ-TASKS-MCP-TOOL-NAMES-001
  • Prompt consistency in the MCP tool-name system design.
  • Canonical names in apps/backend/config/prompts/plan-mode.md.

Results

  • Corrected the active-plan context to name get_task_plan_kandev and update_task_plan_kandev.
  • Exported the existing pure context builder only for focused unit coverage; no user-facing copy or localization changed.
  • cd apps && pnpm --filter @kandev/web test -- --run hooks/use-message-handler.test.ts passed with 27 tests.
  • cd apps/web && pnpm run typecheck passed.
  • cd apps/web && pnpm exec eslint hooks/use-message-handler.ts hooks/use-message-handler.test.ts passed.
  • cd apps/web && pnpm run i18n:check passed.
  • cd apps/web && pnpm run i18n:ratchet passed with 0 added violations.