Repository navigation
test(dogfood): pin the route-generation tombstones on every door, tsc included - #26887
Merged
Merged
Conversation
… included The release-18.2.0 Tier 1 sweep (#26468) scored api-backend.rest-route-generation-tombstones PARTIAL: its pin authored one value per retired key and never the release-naming half, and nothing checked the prescriptions, ran tsc over an authored key, or stripped an unknown key inside `routes`. rest-route-generation-tombstones.test.ts drives every retired key, at every former value, through a real RestServer and through createRestApiPlugin(...).start(); checks each prescription against the shipped spec and server; type-checks each authored key in a scratch TypeScript file (an error on the key's own line, beside a clean control); and holds the empty-block and unknown-key controls. The item's automated.ref, revision and history follow; no clause changed and no product code changed. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbWUpGqdpDRiD79LqXV
…pe-checks start() is typed void | Promise<void>; chaining .then on it is a TS2339. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbWUpGqdpDRiD79LqXV
Contributor
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
Contributor
Author
维护者速读
席位核对ACCEPT ·
Generated by Claude Code |
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.
Requested by Warren · project thread
Fixes #26572 (slice 3, the last, item: rest-route-generation-tombstones; slices 1 and 2 landed as #26787 and #26829)
Clause-②: no
Metadata-protocol: none
维护者速读
packages/qa/dogfood/test/rest-route-generation-tombstones.test.ts(构造器、插件路径、tsc 子进程),docs/qa/platform-checklist/areas/api-backend.json。pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 test/rest-route-generation-tombstones.test.ts,预期 10 个用例全绿。What changes
api-backend.rest-route-generation-tombstoneswas the last of the 11 items the release-18.2.0 Tier 1 sweep (#26468) scored PARTIAL on this card. It now carries a pin at each clause's oracle layer. The newrest-route-generation-tombstones.test.tsboots no stack: every clause's oracle istestorbuild, and the item prescribes a constructedRestServer.includeObjects,excludeObjects,nameTransformat both former values ('none'and'plural'), andoverrideseach refuse at construction on a realRestServer. Each refusal namesRouteGenerationConfigSchemaand "`routes.KEY` was removed in @objectstack/spec 17".createRestApiPlugin(...).start(), beside a control that boots.enable.apiEnabled/enable.apiMethodsare declared on the strictObjectCapabilities, and an undeclared key there is refused.crud.dataPrefixmoves a real server's data routes. The data routes take:objectas the path segment.object_operationparses as a declarative endpoint type. The 404/405 enforcement itself issecond-object-exposure.dogfood.test.ts's, over HTTP.RestServerConfigin a scratch TypeScript file, failstscwith an error on the key's own line naming[REMOVED] Key retired. An empty block beside it type-checks clean.routes: {}constructs and normalizes to{}, and an unknown key insideroutesis stripped rather than refused.The item's
automated.refnames the pin and what it asserts,automated.kindisdogfood,revisionis bumped and ahistoryrow cites #26572. No clause text changed. No product code changed.Why
The card's ruled scope (triage 6437722483) is to pin the 11 api-backend Tier 1 clauses the 18.2.0 sweep scored PARTIAL at the layer their oracle names. The pins go in
packages/qa/dogfood/**, with the checklist item revisions bumped, in slices of about five items, and with no new CI lane. Slices 1 (#26787) and 2 (#26829) pinned ten items, and this slice pins the eleventh, so no item is left and this PR closes the card. What stays unpinned is what the items themselves already record as having no stock door: the activation door's metadata-plane 503 and its 501/503 durability arms (api-backend.action-activation-door-contractknownGaps), and the procedural scoring clauses the card excludes.Tests
The touched test file on head bbe0f12, after merging
main(1a8b7eb) and rebuilding the dogfood closure, under the verify lock:Every expectation was first measured against the live answer (the refusal texts, a
tscrun over an authored key), then checked against the clause text before it was written down. No ablation was run: the diff changes no tested behaviour.Acceptance notes
@objectstack/speclinked into a localnode_modules, the patterndeclarative-endpoint-authoring-refusal.dogfood.test.tsuses for the CLI. It runs the dogfood package's owntypescriptbin, so nothing is written into the repository tree.RestServerandcreateRestApiPlugincome through@objectstack/runtime's re-export, as in slice 2.@objectstack/restis not a dogfood dependency, and adding one would movepnpm-lock.yaml.*.test.ts, not*.dogfood.test.ts, because it boots no app. It runs in theisolatedproject like the package's other non-boot conformance tests.Verification
Gates (dispatch-gates --commands, reconciled with --ran)
node scripts/check-platform-checklist.mjs: exit 0,OK — 16 areas, 329 items (324 active, 1 planned).pnpm --filter @objectstack/dogfood run typecheckcaught a TS2339 in the new pin (.thenonstart()'svoid | Promise<void>). It was fixed in a4e98b2, and the second pass was all green.pnpm --filter @objectstack/dogfood run typecheck: exit 0. eslint over the touched file: exit 0.dispatch-gates --ran: 55 derived families accounted for, 55 run, 0 NOT-MEASURED, 0 unrun.main(1a8b7eb), the derived list was unchanged. The closure was rebuilt, andcheck-platform-checklist, the dogfood typecheck and the test file were re-run on bbe0f12, all exit 0.No changeset:
@objectstack/dogfoodis private anddocs/qa/**ships in no package, so this PR carriesskip-changeset.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (eslint over the touched file)main, one pull request.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01JQwxbWUpGqdpDRiD79LqXV
Generated by Claude Code