Skip to content

test(dogfood): pin the route-generation tombstones on every door, tsc included - #26887

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-0g4hto
Oct 27, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-0g4hto

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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

维护者速读

  • 改了什么:给 api-backend 清单最后一个 PARTIAL 条目 rest-route-generation-tombstones 补钉子:四个已退役的 routes.* 键在真实 RestServer 构造器和插件启动路径上都被拒绝,退役提示指向的替代接口确实存在,TypeScript 编写这些键会在 tsc 报错,空的 routes 块仍可构造;并更新该条目的 automated.ref、revision 和 history。
  • 为什么改:18.2.0 Tier 1 扫描把这条判为 PARTIAL(每个键只测一个值、提示的替代接口和 tsc 报错都无钉子);补上后 qa(checklist): api-backend — pin the Tier 1 clauses the 18.2.0 sweep scored partial at the layer their oracle names (11 items) #26572 的 11 个条目全部在判据层有钉子。
  • 风险与回滚:只加一个测试文件和清单文本,不改任何产品代码;回滚就是 revert 本 PR。
  • 先看: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-tombstones was 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 new rest-route-generation-tombstones.test.ts boots no stack: every clause's oracle is test or build, and the item prescribes a constructed RestServer.

Clause What the pin asserts
acceptance[0] includeObjects, excludeObjects, nameTransform at both former values ('none' and 'plural'), and overrides each refuse at construction on a real RestServer. Each refusal names RouteGenerationConfigSchema and "`routes.KEY` was removed in @objectstack/spec 17".
acceptance[1] / negative[0] The same five refusals happen through createRestApiPlugin(...).start(), beside a control that boots.
acceptance[2] Each prescription names a surface that exists. enable.apiEnabled / enable.apiMethods are declared on the strict ObjectCapabilities, and an undeclared key there is refused. crud.dataPrefix moves a real server's data routes. The data routes take :object as the path segment. object_operation parses as a declarative endpoint type. The 404/405 enforcement itself is second-object-exposure.dogfood.test.ts's, over HTTP.
acceptance[3] Each key, authored as a RestServerConfig in a scratch TypeScript file, fails tsc with an error on the key's own line naming [REMOVED] Key retired. An empty block beside it type-checks clean.
acceptance[4] routes: {} constructs and normalizes to {}, and an unknown key inside routes is stripped rather than refused.

The item's automated.ref names the pin and what it asserts, automated.kind is dogfood, revision is bumped and a history row 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-contract knownGaps), 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:

pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 test/rest-route-generation-tombstones.test.ts
 Test Files  1 passed (1)
      Tests  10 passed (10)

Every expectation was first measured against the live answer (the refusal texts, a tsc run 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

  • The tsc leg writes its scratch files to a temporary directory with @objectstack/spec linked into a local node_modules, the pattern declarative-endpoint-authoring-refusal.dogfood.test.ts uses for the CLI. It runs the dogfood package's own typescript bin, so nothing is written into the repository tree.
  • RestServer and createRestApiPlugin come through @objectstack/runtime's re-export, as in slice 2. @objectstack/rest is not a dogfood dependency, and adding one would move pnpm-lock.yaml.
  • The file is named *.test.ts, not *.dogfood.test.ts, because it boots no app. It runs in the isolated project 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).
  • 55 derived commands on merge head a4e98b2 (main at 95f818d merged) after a closure rebuild: all 55 exit 0. On the first pass, pnpm --filter @objectstack/dogfood run typecheck caught a TS2339 in the new pin (.then on start()'s void | 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.
  • After merging the next main (1a8b7eb), the derived list was unchanged. The closure was rebuilt, and check-platform-checklist, the dogfood typecheck and the test file were re-run on bbe0f12, all exit 0.

No changeset: @objectstack/dogfood is private and docs/qa/** ships in no package, so this PR carries skip-changeset.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (eslint over the touched file)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset. (nothing publishes)
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JQwxbWUpGqdpDRiD79LqXV


Generated by Claude Code

… 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
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing 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): node scripts/docs-audit/affected-docs.mjs --json e78d7057d547e7d57b64e551432b018f2453e322 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

维护者速读

  • 改了什么:api-backend 区最后一条 PARTIAL 清单项 rest-route-generation-tombstones,新增 1 个不启动整栈的 dogfood 测试文件:四个已退役的 routes.* 键(nameTransform 两个旧值都测)在真实 RestServer 构造器和插件启动路径上都被拒绝,退役提示指向的替代接口确实存在,用 TypeScript 写这些键 tsc 会在该键所在行报错,空 routes 块仍能构造;清单项的 automated、修订号和历史行已更新。
  • 为什么改:18.2.0 Tier 1 扫描把这条判为 PARTIAL(每个键只测一个值、没断言「spec 17 移除」这半句、提示的替代接口和 tsc 报错都没钉子);补上后 qa(checklist): api-backend — pin the Tier 1 clauses the 18.2.0 sweep scored partial at the layer their oracle names (11 items) #26572 的 11 条全部在判据层有钉子。
  • 风险与回滚:只加一个测试文件和清单文字,不改产品代码,不动依赖和 lockfile。回滚 = revert 本 PR。
  • 先看:packages/qa/dogfood/test/rest-route-generation-tombstones.test.ts 的 acceptance[3](临时目录里跑 tsc,断言报错落在第 3 行)。
  • 两分钟验证:node scripts/check-platform-checklist.mjs,退出 0。
  • 需要你做的:无,席位落地。合并后 qa(checklist): api-backend — pin the Tier 1 clauses the 18.2.0 sweep scored partial at the layer their oracle names (11 items) #26572 关闭。
  • 席位意见:tsc 用例每个约 1.1 秒,远低于 vitest 默认 5 秒超时,CI 慢机也有余量。

席位核对

ACCEPT · domain:devx#1 · session_01JQwxbaFpnMwgpCgneKe2qS · head bbe0f12f56 · 2026-10-27T20:05Z

  1. Shape: 2 files, +247/−3: docs/qa/platform-checklist/areas/api-backend.json and the new packages/qa/dogfood/test/rest-route-generation-tombstones.test.ts. Not governed (check-governed-merges --pr 26887, 250 lines ≤ 3000). File surface as in claim 6445168911; Fixes #26572 (slice 3, the last). No package.json or lockfile change: typescript, @objectstack/runtime and @objectstack/spec are already dogfood dependencies.
  2. Read by the seat: the whole diff. acceptance[0] and [1] drive all five key/value pairs (nameTransform at 'none' and 'plural') through the constructor and through createRestApiPlugin(...).start(), beside a control that boots, and match the full "routes.KEY was removed in @objectstack/spec 17" sentence. acceptance[2] parses the strict ObjectCapabilities both ways, moves a real server's data routes by crud.dataPrefix and parses an object_operation endpoint. acceptance[3] writes each key into a scratch .ts under a mkdtemp directory, removes the file in finally, and asserts file(3,N): error TS… plus [REMOVED] Key retired, beside a clean control. acceptance[4] reads config.routes back as {} for both the empty and the unknown-key block. The file sits in isolated and writes nothing outside its temp directory.
  3. Gates: head check-runs on bbe0f12f56: 35 success, 16 skipped, 0 failing; check-expected-skips --pr 26887: OK, all 16 in main's roster; mergeable clean. Thread's local run: 10/10; dispatch-gates 55/55 exit 0, dual-build-cjs-loads measured; a TS2339 in the new pin was caught by the gate pass and fixed in a4e98b24. Per-case timings at the seat's ask: tsc cases 1006–1191 ms, others 4–16 ms. Report 6452073863.
  4. Accepted deviations: RestServer and createRestApiPlugin come through @objectstack/runtime's re-export rather than @objectstack/rest, so the lockfile does not move (as slice 2). The dogfood battery does not run on pull_request or merge_group, so this pin first runs on main's next full battery; a red there is main-red and this seat stanches it.
  5. Out of scope: across the card, only what the items already record as having no stock door stays unpinned: the activation door's metadata-plane 503 and its 501/503 arms. Procedural clauses are outside the card. Skills-docs: not owed.
  6. Landing: not governed, CI green on this head, mergeable clean ⇒ the seat readies it and arms auto-merge through the relay. At merge qa(checklist): api-backend — pin the Tier 1 clauses the 18.2.0 sweep scored partial at the layer their oracle names (11 items) #26572 closes and leaves pm:dispatched.

Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 27, 2026 20:06
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 27, 2026 20:06
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 247a088 Oct 27, 2026
52 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-0g4hto branch October 27, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

qa(checklist): api-backend — pin the Tier 1 clauses the 18.2.0 sweep scored partial at the layer their oracle names (11 items)

2 participants