live-tip-20260606183709-api-contract-ready-packet: Lock the review packet ready-response contract #2

Open
std-bot wants to merge 1 commit from task/live-tip-20260606183709-api-contract-ready-packet into main
First-time contributor

Assigned idea

API contract: Edit task/instruction.md and set this task slug to live-tip-20260606183709-api-contract-ready-packet. Define a typed contract for GET /api/review-packets/:id/ready and update handler responses to always match it, including ordered artifact metadata fields.

Approach: Edit task/instruction.md and set this task slug to live-tip-20260606183709-api-contract-ready-packet. Define a typed contract for GET /api/review-packets/:id/ready and update handler responses to always match it, including ordered artifact metadata fields.

Verification: {"file":"src/api/contracts/review-packets.ts","assertion":"The file must define a ReviewPacketReadyResponse type/object shape and include packetId, status, and an artifacts array in that response."}
{"file":"test/contracts/review-packet-ready.contract.test.ts","assertion":"The contract test must assert that the response JSON contains status, packetId, and each artifact entry has name and sizeBytes."}

Risk: Live smoke generated task; validate by PR diff and gate result.

Required smoke edit: update task/instruction.md with live-tip-20260606183709-api-contract-ready-packet.

Agent context

Task slug: live-tip-20260606183709-api-contract-ready-packet
Branch: task/live-tip-20260606183709-api-contract-ready-packet

## Assigned idea API contract: Edit task/instruction.md and set this task slug to live-tip-20260606183709-api-contract-ready-packet. Define a typed contract for `GET /api/review-packets/:id/ready` and update handler responses to always match it, including ordered artifact metadata fields. Approach: Edit task/instruction.md and set this task slug to live-tip-20260606183709-api-contract-ready-packet. Define a typed contract for `GET /api/review-packets/:id/ready` and update handler responses to always match it, including ordered artifact metadata fields. Verification: {"file":"src/api/contracts/review-packets.ts","assertion":"The file must define a `ReviewPacketReadyResponse` type/object shape and include `packetId`, `status`, and an `artifacts` array in that response."} {"file":"test/contracts/review-packet-ready.contract.test.ts","assertion":"The contract test must assert that the response JSON contains `status`, `packetId`, and each artifact entry has `name` and `sizeBytes`."} Risk: Live smoke generated task; validate by PR diff and gate result. Required smoke edit: update task/instruction.md with live-tip-20260606183709-api-contract-ready-packet. ## Agent context Task slug: live-tip-20260606183709-api-contract-ready-packet Branch: task/live-tip-20260606183709-api-contract-ready-packet <!-- std-ts:idea-pr-body -->
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin task/live-tip-20260606183709-api-contract-ready-packet:task/live-tip-20260606183709-api-contract-ready-packet
git switch task/live-tip-20260606183709-api-contract-ready-packet

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.

git switch main
git merge --no-ff task/live-tip-20260606183709-api-contract-ready-packet
git switch task/live-tip-20260606183709-api-contract-ready-packet
git rebase main
git switch main
git merge --ff-only task/live-tip-20260606183709-api-contract-ready-packet
git switch task/live-tip-20260606183709-api-contract-ready-packet
git rebase main
git switch main
git merge --no-ff task/live-tip-20260606183709-api-contract-ready-packet
git switch main
git merge --squash task/live-tip-20260606183709-api-contract-ready-packet
git switch main
git merge --ff-only task/live-tip-20260606183709-api-contract-ready-packet
git switch main
git merge task/live-tip-20260606183709-api-contract-ready-packet
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
snorkel/root-live-tip-workflow-smoke-20260606183709!2
No description provided.