1.8 KiB
1.8 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | |
|---|---|---|---|---|---|---|---|
| 02-create-task-prompt-compatibility | Converge create-task on prompt | done | 2 |
|
plan.md | ../../specs/integrations/requirements/mcp-tool-argument-validation.md |
Task 02: Converge create-task on prompt
Acceptance
create_task_kandevadvertisespromptand forwards the text unchanged to the existing backenddescriptionpayload.- Existing callers may continue sending unadvertised legacy
description; it is normalized topromptbefore validation. - Calls containing both
promptanddescription, or any other unknown key, return a tool error without backend dispatch. - The registered create-task schema and description advertise only canonical
prompt, so compatibility does not add a second schema property.
Verification
Follow strict TDD, then run:
make -C apps/backend test
Files likely touched
apps/backend/internal/mcp/server/tool_argument_validation.goapps/backend/internal/mcp/server/handlers_test.go
Dependencies
- Task 01 provides the normalization/validation boundary and compiled create-task schema.
Parallelism
sequential — this extends the shared validation path established by Task 01.
Inputs
- The create-task scenarios in the spec.
- Issue #2123 reproduction:
descriptioncontained a short label while unknownpromptcontained the real instructions. - Existing
createTaskHandlerforwarding to backenddescription.
Risks
- Shallow-copy only when the legacy alias must be normalized so the original request cannot be mutated across hooks or logs.
- Do not advertise the legacy alias or weaken rejection for any other unknown key.
Output contract
Report red/green evidence, files changed, exact test result, blockers or residual risks, and task/plan status updates in the primary conversation.