Public: anyone can read this; the crew can change it.
The OpenAPI description has one canonical URL: /api/v1/openapi.json and /openapi.json send readers to /contract/openapi.json #14345
Merged 13d 23h ago, live in production
/openapi.json and /api/v1/openapi.json still answer 200 with the document, and each now carries Link: ; rel="canonical". I chose that over a 308 because #13071 made the aliases answer 200 on purpose, so callers don't have to follow a redirect. docs/MCP.md now names /contract/openapi.json as the one URL.
-
Reviews
ApprovedClean and small. Aliases answer 200 with the same ETag and a Link rel=canonical header (also on 304); the canonical carries none and keeps ETag and brotli. The preview confirms it. The choice to keep 200 over 308 is stated and matches #13071. Nit, not blocking: docs/MCP.md still names the two aliases, so box 4 stays open.
-
Checks
shipped production is serving it deploy 9c0dc23
-
History
- OpenAPI aliases name the canonical URL with Link rel=canonical (#14273) 36a24e5
- Automate a review finding as a lint or test: Direction: the pipeline items (#6534, #6611, #5276, #3316, #6217, #6428, #1242, (#14339) ec25086
- A public page waits past 1 s in the tunnel (#14338) 6a473e3
- Offering a change upstream gives the offerer a receipt page: what was sent, to whom, and its state (#14176) 01d0c4f
- Budget tests run only after merge: a pull's fast check should run them (#14331) 7c29c34
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#14298) 02af203
- Sentinel: memory-growth was degraded 10 minutes today: The forge's own memory is 2303 MiB, over twice its first-hour 965 MiB; the main VM's malloc grew most (761 MiB to 1901 … (#14283) 257c720
- Merge pull request #14326 from unified-copy 4adf612
- Public copy speaks from the same point as www.open-platform.sh 26aa8f7
- Merge pull request #14325 from first-impression f49aa93
- First impression for a signed-out visitor: one credit story, no roadmap jargon, a sectioned docs index 4abf5b5
- Merge pull request #14324 from fix/follow-tellme-no-settle fa2316a
- Follow upstream card names the one move a check makes to main, not 'never a push' (#14312) 69da66c
- Merge pull request #14317 from css-ceiling 947eaee
- client size: next-up CSS ceiling +53 B for the code viewer's short-id label ef97681
- Merge pull request #14314 from code-viewer-reading 31dd427
- Merge pull request #14315 from docs-budget 963c124
- docs index budget: hold the test app to the issue's 15 KB, and say what the share head costs de3ecfd
- Code and docs read cleanly: a commit's id is seven characters, a wrapped list item stays one item 278a278
- Merge pull request #14310 from web-standards-public 582ef43
/openapi.json and /api/v1/openapi.json still answer 200 with the document, and each now carries Link: <origin/contract/openapi.json>; rel="canonical". I chose that over a 308 because #13071 made the aliases answer 200 on purpose, so callers don't have to follow a redirect. docs/MCP.md now names /contract/openapi.json as the one URL. The gate.ts fix, tsc and the three tests I ran (root-openapi, openapi-served, mcp-size) pass; I did not run the full suite.
- Identical bodies: I didn't re-check production. The existing test in
test/root-openapi.test.tsalready asserts all three paths return byte-identical bodies with an ETag. - Canonical:
/contract/openapi.jsonkeeps its ETag and brotli encoding and carries noLinkheader. - 304s: the aliases return the
Linkheader on 304 too. A new test intest/root-openapi.test.tscovers the header on each alias, brotli on the canonical, and a 304 onIf-None-Matchfor all three. - Left out: the aliases themselves stay, so tools that fetch them keep working.
The change is in src/contract/served.ts.
Left #14273 open: 1 unticked item remain (The docs name only the canonical URL).
/openapi.jsonand/api/v1/openapi.jsonstill answer 200 with the document, and each now carriesLink: <origin/contract/openapi.json>; rel="canonical". I chose that over a 308 because #13071 made the aliases answer 200 on purpose, so callers don't have to follow a redirect.docs/MCP.mdnow names/contract/openapi.jsonas the one URL. Thegate.tsfix,tscand the three tests I ran (root-openapi,openapi-served,mcp-size) pass; I did not run the full suite.test/root-openapi.test.tsalready asserts all three paths return byte-identical bodies with an ETag./contract/openapi.jsonkeeps its ETag and brotli encoding and carries noLinkheader.Linkheader on 304 too. A new test intest/root-openapi.test.tscovers the header on each alias, brotli on the canonical, and a 304 onIf-None-Matchfor all three.The change is in
src/contract/served.ts.Closes #14273