Skip to content

test(dogfood): pin five more api-backend checklist items at their oracle's layer - #26829

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

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

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread
Refs #26572 (slice 2 of about 3, items: packaged-action-disabled-dispatch, action-activation-door-contract, rest-crud-config-contract, rest-batch-config-contract, rest-metadata-config-contract)

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:给 api-backend 清单里又 5 个被 18.2.0 Tier 1 扫描判为 PARTIAL 的条目补钉子:动作停用与激活门在真实 HTTP、MCP 和冷重启上验证,三个 REST 配置契约的默认挂载在启动的服务上验证、非默认配置在真实 RestServer 上验证;并更新这 5 条的 automated.ref、verify、revision 和 history。
  • 为什么改:这些条款的判据在 HTTP 层或真实 RestServer 上,旧钉子只到单元层或根本没有,每次发版扫描都要人工补跑;现在变成常驻、可重跑的证明。
  • 风险与回滚:只加测试、一个 scratch fixture 和清单文本,不改任何产品代码;回滚就是 revert 本 PR。dogfood 只在 main 的定时/推送批次跑,不进 PR 和合并队列。
  • 先看:packages/qa/dogfood/test/packaged-action-disabled-dispatch-live.dogfood.test.ts(MCP 与冷重启)、packages/qa/dogfood/test/rest-config-contract-harness.test.ts(真实 RestServer 的路由表与缓存分支)、docs/qa/platform-checklist/areas/api-backend.json。
  • 两分钟验证:pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 test/rest-config-contract-harness.test.ts,预期 7 个用例全绿。
  • 需要你做的:无,席位落地。

What changes

Five more api-backend checklist items that the release-18.2.0 Tier 1 sweep (#26468) scored PARTIAL now carry pins at the layer their oracle names. The api legs drive a booted stack through @objectstack/verify's real HTTP surface (Hono request injection), plus the live MCP transport and a cold boot on one database file. The test legs construct a real RestServer, which is the method the three config items prescribe because no shipped boot path authors a RestServerConfig (the #15543 posture).

Item Clauses pinned Pin
api-backend.packaged-action-disabled-dispatch acceptance[0]–[6], negative[0]–[2]: exact 409 ACTION_DISABLED and sentence with the task re-read unchanged, the param-gallery 409/400 ordering pair, the byte-identical 403s, a live POST /api/v1/mcp run_action refusal carrying the REST door's exact message, the flow-type action's own switch, the anonymous 401, and the cold-boot durability leg packaged-action-disabled-dispatch-live.dogfood.test.ts (new)
api-backend.action-activation-door-contract acceptance[0]–[6], negative[0]–[2]: authority before body and lookup, the 2-/4-segment shapes against the routing-404 control, the fields[0] codes, {} enabling, zero ledger rows after refusals, exactly one row updated in place, and the ambiguity arm live action-activation-door-live.dogfood.test.ts + fixtures/activation-ambiguity-fixture.ts (new)
api-backend.rest-crud-config-contract acceptance[0] (six default mounts vs the control), [2] (live OBJECT_API_DISABLED body vs the control, and the switched-off route absent), [3] (the whole table re-based at dataPrefix: '/records'), [4] (both tombstones' schema and prescription) rest-config-contract-live.dogfood.test.ts, rest-config-contract-harness.test.ts (new)
api-backend.rest-batch-config-contract acceptance[0] (four bulk doors and /batch vs the control), [4] (201 records → 400 BATCH_TOO_LARGE max 200, nothing created), [5] (both tombstones' schema and replacement) same two files
api-backend.rest-metadata-config-contract acceptance[0] (default /meta mounts vs the control), [1] (whole table re-based at prefix: '/metadata'), [3] (the client_liaison member's served showcase_project schema omits budget, spent and budget_remaining), [4] (enableCache and each of its carve-outs), [5] (both tombstones' schema and replacement) same two files

Each item's automated.ref names the new pins and what they assert. The verify texts that said "unit only" or "no pin" now name the pin that carries the clause, revision is bumped and a history row cites #26572. action-activation-door-contract's fixtures.knownGaps[0] gains one sentence saying the colliding scratch package now exists. 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. Slice 1 landed as #26787. This is slice 2, the next five items in card order. rest-route-generation-tombstones is left for slice 3.

Tests

The touched test files on head 14a3213 (after merging main and rebuilding the dogfood closure), under the verify lock:

pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 test/rest-config-contract-harness.test.ts test/rest-config-contract-live.dogfood.test.ts test/action-activation-door-live.dogfood.test.ts test/packaged-action-disabled-dispatch-live.dogfood.test.ts
 Test Files  4 passed (4)
      Tests  29 passed (29)

Every expectation was first measured against the live answer on a probe boot, then checked against the clause text before it was written down. No ablation was run: the diff changes no tested behaviour, it only adds pins over behaviour that already holds.

Acceptance notes

  • Dogfood runs only in main's scheduled and push battery (Dogfood Regression Gate's if: excludes pull_request and merge_group), so the PR's CI does not run these files. The local run above is their evidence until the next main battery.
  • The harness file imports RestServer through @objectstack/runtime's re-export. @objectstack/rest is not a dogfood dependency, and adding one would move pnpm-lock.yaml, which is outside this card's file surface.
  • The MCP leg composes MCPServerPlugin the way showcase-mcp-http-identity.dogfood.test.ts does. showcase_portfolio_snapshot is the only stock ai.exposed action, so the MCP refusal is read on it, and the REST door's message for the same action is compared byte for byte.
  • The cold-boot leg stops the stack and boots it again on the same databaseFile, the shape automation-authoring-doors-durable.dogfood.test.ts uses.
  • The ambiguity fixture declares actamb_archive inside two objects' own actions. The door refuses from either object, names both, writes no row, and the action still dispatches afterwards.
  • Still not covered, as the items already record: the activation door's metadata-plane 503 and its 501/503 durability arms (no stock door).

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 at 37105b7 (measured on the identical tree before its message was reworded): 54 exit 0; 1 exit 3 (prerequisite not met, nothing measured): pnpm check:dual-build-cjs-loads, which reads built output of packages outside the dogfood closure. It runs in CI's Lint & Repo Gates.
  • After merging main (0ea90c7), the derived list is unchanged. The gates whose scripts the merge moved, plus the checklist gate, were re-run on the merge head: check-closing-keyword-parity (and --self-test), check:platform-checklist, check-issue-citations, all exit 0.
  • pnpm --filter @objectstack/dogfood run typecheck: exit 0.
  • eslint over the five touched TypeScript files: exit 0.
  • dispatch-gates --ran: 55 derived families accounted for, 54 run, 1 NOT-MEASURED, 0 unrun.

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 files)
  • 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

…cle's layer

The release-18.2.0 Tier 1 sweep (#26468) scored these items PARTIAL: their
pins stopped above the HTTP layer the api oracle names, or no pin asserted
the clause at all.

- packaged-action-disabled-dispatch-live.dogfood.test.ts: the REST door, the
  live MCP run_action transport and a cold boot on one database file.
- action-activation-door-live.dogfood.test.ts: every arm of the activation
  door over HTTP, and the ambiguity arm on a new scratch fixture declaring
  one action name on two objects.
- rest-config-contract-live.dogfood.test.ts: the default crud, batch and
  metadata mounts against the routing-404 control, the live batch cap, the
  OBJECT_API_DISABLED body and the client_liaison schema diff.
- rest-config-contract-harness.test.ts: the test-oracle legs on a real
  RestServer (re-based route tables, the enableCache carve-outs, the
  tombstone refusal texts).

Each 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
@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 0ea90c7a18504e5b67f137aefe7d3e7bb0b7157b → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

维护者速读

  • 改了什么:api-backend 区第二批 5 条清单项(停用打包动作的派发、动作启停门契约、REST crud / batch / metadata 三份配置契约),新增 4 个 dogfood 测试文件和 1 个冲突动作名的小夹具;5 条清单项的 automated.ref、修订号和历史行已更新。
  • 为什么改:18.2.0 Tier 1 扫描把这些条款判为 PARTIAL,以前只有基于假对象的单元测试,接口层、MCP 和冷启动这几条腿没人断言。
  • 风险与回滚:只加测试和清单文字,不改产品代码,不加 CI 通道,也不动依赖和 lockfile。回滚 = revert 本 PR。
  • 先看:packaged-action-disabled-dispatch-live.dogfood.test.ts(REST 与 MCP 的拒绝句子是同一个来源,冷启动后开关仍在),再看 action-activation-door-live.dogfood.test.ts 的权限先于请求体校验。
  • 两分钟验证:node scripts/check-platform-checklist.mjs,退出 0。
  • 需要你做的:无,席位落地。余下条目由第 3 片派发。
  • 席位意见:每个「不存在」判断都和一个路由 404 对照体逐字节比较,不会把没挂载误判成挂载。

席位核对

ACCEPT · domain:devx#1 · session_01JQwxbaFpnMwgpCgneKe2qS · head 14a3213a25 · 2026-10-27T18:15Z

  1. Shape: 6 files, +978/−22: docs/qa/platform-checklist/areas/api-backend.json, four new files under packages/qa/dogfood/test/ (three *.dogfood.test.ts and rest-config-contract-harness.test.ts) and test/fixtures/activation-ambiguity-fixture.ts. Not governed (check-governed-merges --pr 26829, 1000 lines ≤ 3000). File surface as in claim 6445168911; Refs #26572 (slice 2). No package.json or lockfile change: @objectstack/mcp and @objectstack/runtime are already dogfood dependencies.
  2. Read by the seat: the disabled-dispatch file, the activation-door file, the live config file and the fixture; the harness file's header and doubles. Every refusal reads the ledger or the record back (the task is not written, no refused probe leaves a row, the 201-record batch creates nothing beside a one-record control that does). Absence verdicts are scored against a routing-404 control body, never a bare status. The MCP leg compares the tool's sentence to the REST door's byte for byte. The cold-boot leg reuses the same database file and the same ledger row id. All new files sit in isolated; the fixture matches no test include.
  3. Gates: head check-runs on 14a3213a25: 35 success, 16 skipped, 0 failing, including the CJS dual-build check the thread could not measure locally; check-expected-skips --pr 26829: OK, all 16 in main's roster; mergeable clean. Thread's local run: 29/29 after merging main, dispatch-gates 54/55 exit 0 with dual-build-cjs-loads NOT MEASURED (missing dist), now measured green by CI. Report 6449452307.
  4. Accepted deviations: the test-oracle legs construct a real RestServer imported through @objectstack/runtime rather than @objectstack/rest, so the lockfile does not move. The dogfood battery does not run on pull_request or merge_group, so these pins first run in CI on main's next full battery; a red there is main-red and this seat stanches it.
  5. Out of scope: rest-route-generation-tombstones goes to slice 3. acceptance[4]'s metadata-plane 503 arm and acceptance[7]'s 501/503 arms of the activation-door item stay recorded without a stock door. 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. The card stays pm:dispatched for the next slice.

Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xl 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.

2 participants