docs(openapi): add /auth/exchange — closes the gap that hid 2026-05-30 outage#203
Merged
Conversation
…-05-30 outage The 2026-05-30 prod-login outage chained 3 failures along /auth/exchange (client missing, preflight rejected, ACAC missing). Even with the new contract-CI gate (api #202), the bug class wasn't catchable because /auth/exchange was literally NOT in the OpenAPI spec — agents and the typed-client codegen pipeline had no contract to enforce. Adds the path with the full CORS contract documented in the description so any future regression to the headers / preflight rules is visible in the diff that breaks the snapshot-drift gate. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…tion That error code was emitted by an unreachable defence-in-depth arm that landed in api#201 and was removed before merge (requireName already rejects empty/whitespace name upstream of the redeploy branch). The DeployRequest description still mentioned it; tidied + clarified the upstream-rejection path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The 2026-05-30 prod-login outage chained 3 failures along
/auth/exchange:Accept: application/json→ preflight rejected (web test(coverage): db/cache/nosql local providers to >=95% via source seams #151)Access-Control-Allow-Credentials: true(api fix(cors): AllowCredentials:true on api so dashboard /auth/exchange works (P0 follow-up) #198)Even with the new contract-CI gate (api #202), the bug class wasn't catchable because
/auth/exchangewas literally NOT in the OpenAPI spec — agents had no contract to enforce.What
Adds the
POST /auth/exchangepath with the full CORS contract in the description (Allow-Origin, Allow-Credentials, no-preflight, response shape). Snapshot regenerated.Any future regression to those headers / preflight rules is now visible in the diff that breaks the snapshot-drift gate.
Coverage
OpenAPI-spec text addition.
TestOpenAPI_*tests pass locally.