live-tip-20260606181638-api-contract-version-header: Enforce required request header in API contract and runtime #3

Open
std-bot wants to merge 1 commit from task/live-tip-20260606181638-api-contract-version-header into main
First-time contributor

Assigned idea

API contract: Enforce required request header in API contract and runtime

Approach: Add an API contract requirement for a request header named x-client-version on GET /v1/status, update runtime routing to validate it, and add a contract test that expects a 400 response when the header is missing. Update task/instruction.md to include the slug live-tip-20260606181638-api-contract-version-header.

Verification: Assert task/instruction.md contains the exact text live-tip-20260606181638-api-contract-version-header
Assert api/openapi.yaml contains the exact text x-client-version
Assert src/api/routes/status.ts contains the exact text x-client-version
Assert test/api-contract-status-header.test.ts contains the exact text expects 400 when x-client-version is missing

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

Required smoke edit: update task/instruction.md with live-tip-20260606181638-api-contract-version-header.

Agent context

Task slug: live-tip-20260606181638-api-contract-version-header
Branch: task/live-tip-20260606181638-api-contract-version-header

## Assigned idea API contract: Enforce required request header in API contract and runtime Approach: Add an API contract requirement for a request header named x-client-version on GET /v1/status, update runtime routing to validate it, and add a contract test that expects a 400 response when the header is missing. Update task/instruction.md to include the slug live-tip-20260606181638-api-contract-version-header. Verification: Assert task/instruction.md contains the exact text live-tip-20260606181638-api-contract-version-header Assert api/openapi.yaml contains the exact text x-client-version Assert src/api/routes/status.ts contains the exact text x-client-version Assert test/api-contract-status-header.test.ts contains the exact text expects 400 when x-client-version is missing Risk: Live smoke generated task; validate by PR diff and gate result. Required smoke edit: update task/instruction.md with live-tip-20260606181638-api-contract-version-header. ## Agent context Task slug: live-tip-20260606181638-api-contract-version-header Branch: task/live-tip-20260606181638-api-contract-version-header <!-- 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-20260606181638-api-contract-version-header:task/live-tip-20260606181638-api-contract-version-header
git switch task/live-tip-20260606181638-api-contract-version-header

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-20260606181638-api-contract-version-header
git switch task/live-tip-20260606181638-api-contract-version-header
git rebase main
git switch main
git merge --ff-only task/live-tip-20260606181638-api-contract-version-header
git switch task/live-tip-20260606181638-api-contract-version-header
git rebase main
git switch main
git merge --no-ff task/live-tip-20260606181638-api-contract-version-header
git switch main
git merge --squash task/live-tip-20260606181638-api-contract-version-header
git switch main
git merge --ff-only task/live-tip-20260606181638-api-contract-version-header
git switch main
git merge task/live-tip-20260606181638-api-contract-version-header
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-20260606181638!3
No description provided.