live-tip-20260606175948-api-contract-handler-payload-alignment: API contract drift guard benchmark #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/live-tip-20260606175948-api-contract-handler-payload-alignment"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Assigned idea
API contract: API contract drift guard benchmark
Approach: Edit task/instruction.md and add a regular benchmark with slug live-tip-20260606175948-api-contract-handler-payload-alignment. Add a contract test that compares /api/tasks/:id runtime response shape to the declared API contract and fails on drift.
Verification: test -f task/instruction.md && grep -Fq 'live-tip-20260606175948-api-contract-handler-payload-alignment' task/instruction.md
test -f src/api/contracts/task-contract.ts && grep -Fq 'TaskResponse' src/api/contracts/task-contract.ts && grep -Fq 'GET /tasks/{id}' src/api/contracts/task-contract.ts
test -f src/api/routes/taskRoutes.ts && grep -Fq "router.get('/tasks/:id'" src/api/routes/taskRoutes.ts && grep -Fq 'res.json' src/api/routes/taskRoutes.ts
test -f test/benchmark/api-contract.spec.ts && grep -Fq 'contract matches runtime response' test/benchmark/api-contract.spec.ts
Risk: Live smoke generated task; validate by PR diff and gate result.
Required smoke edit: update task/instruction.md with live-tip-20260606175948-api-contract-handler-payload-alignment.
Agent context
Task slug: live-tip-20260606175948-api-contract-handler-payload-alignment
Branch: task/live-tip-20260606175948-api-contract-handler-payload-alignment
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.