Repository navigation
test(dogfood): pin five more api-backend checklist items at their oracle's layer - #26829
Merged
Merged
Conversation
…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
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 was referenced Oct 27, 2026
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
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
维护者速读
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
apilegs 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. Thetestlegs construct a realRestServer, which is the method the three config items prescribe because no shipped boot path authors aRestServerConfig(the #15543 posture).api-backend.packaged-action-disabled-dispatchACTION_DISABLEDand sentence with the task re-read unchanged, the param-gallery 409/400 ordering pair, the byte-identical 403s, a livePOST /api/v1/mcprun_actionrefusal carrying the REST door's exact message, the flow-type action's own switch, the anonymous 401, and the cold-boot durability legpackaged-action-disabled-dispatch-live.dogfood.test.ts(new)api-backend.action-activation-door-contractfields[0]codes,{}enabling, zero ledger rows after refusals, exactly one row updated in place, and the ambiguity arm liveaction-activation-door-live.dogfood.test.ts+fixtures/activation-ambiguity-fixture.ts(new)api-backend.rest-crud-config-contractOBJECT_API_DISABLEDbody vs the control, and the switched-off route absent), [3] (the whole table re-based atdataPrefix: '/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/batchvs the control), [4] (201 records → 400BATCH_TOO_LARGEmax 200, nothing created), [5] (both tombstones' schema and replacement)api-backend.rest-metadata-config-contract/metamounts vs the control), [1] (whole table re-based atprefix: '/metadata'), [3] (theclient_liaisonmember's servedshowcase_projectschema omits budget, spent and budget_remaining), [4] (enableCacheand each of its carve-outs), [5] (both tombstones' schema and replacement)Each item's
automated.refnames 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,revisionis bumped and ahistoryrow cites #26572.action-activation-door-contract'sfixtures.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-tombstonesis left for slice 3.Tests
The touched test files on head 14a3213 (after merging
mainand rebuilding the dogfood closure), under the verify lock: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
main's scheduled and push battery (Dogfood Regression Gate'sif:excludespull_requestandmerge_group), so the PR's CI does not run these files. The local run above is their evidence until the nextmainbattery.RestServerthrough@objectstack/runtime's re-export.@objectstack/restis not a dogfood dependency, and adding one would movepnpm-lock.yaml, which is outside this card's file surface.MCPServerPluginthe wayshowcase-mcp-http-identity.dogfood.test.tsdoes.showcase_portfolio_snapshotis the only stockai.exposedaction, so the MCP refusal is read on it, and the REST door's message for the same action is compared byte for byte.databaseFile, the shapeautomation-authoring-doors-durable.dogfood.test.tsuses.actamb_archiveinside two objects' ownactions. The door refuses from either object, names both, writes no row, and the action still dispatches afterwards.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 check:dual-build-cjs-loads, which reads built output of packages outside the dogfood closure. It runs in CI'sLint & Repo Gates.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.dispatch-gates --ran: 55 derived families accounted for, 54 run, 1 NOT-MEASURED, 0 unrun.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 files)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