Skip to content

Commit b926d37

Browse files
docs(qa): checklist scratch bodies use the protocol-19 action location words (#38482)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XRLyER3ima3gr7KMGmSaAvw)_ Part of #38046 — this PR does acceptance items 1 and 2. Item 3 (the `git grep` over `docs/qa/**` finds the four words only in prose that names them as retired) stays open: the remaining hits are prose that describes today's placement in the old words, listed under Acceptance notes. Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:平台测试清单里三份送去保存或安装的样例,把动作位置的旧词换成了 19 版的新词,跑清单时这几步不会再被拒。 - 为什么做:动作位置改名(列表与记录两类新词)之后的收尾,清单不再出现假失败。 - 出错会怎样:只改测试清单文本,不碰产品代码;有问题直接撤回即可。 - 要你做什么:无 ## What changes Three bodies under `docs/qa/platform-checklist/areas/` that a checklist runner sends to a door still carried the page-part location words protocol 19 retired. Each now uses the word the 19 rewrite names (the #36495 rulings as `packages/spec/src/conversions/entries/19/action-locations-acted-on.ts` quotes them: `list_item` beside `record_header` → `record`; `record_header` or `record_more` → `record_page`). | Body | Door | Was | Now | |:--|:--|:--|:--| | `records-forms.json` fixtures recipe `qaact-placement-specimen`, step 1 manifest: `qaact_control`, `qaact_visible_throws` | `POST /api/v1/marketplace/install-local` | `["list_item", "record_header"]` | `["record"]` | | `records-forms.action-preflight-panel` fixtures.requires[1]: `qa_pf_probe`, `qa_pf_fail` | `PUT /api/v1/meta/action/…` | `locations: ['record_header']` | `locations: ['record_page']` | | `studio-authoring.action-preflight-authoring-refusals` fixtures.requires[1]: `qa_pf_base` (every variant edits it) | `PUT /api/v1/meta/action/…` | `locations: ['record_header']` | `locations: ['record_page']` | Text that reads those bodies follows them: the recipe's step 2 `expect` (the actions read back as `[record]`), its knownGaps[0] (the control declares no `list` location), and the preflight item's knownGaps[1] (a runtime action at `record_page` is not drawn on the task page). The two items bump `revision` (4 → 5, 1 → 2) with one history row each. The recipe gains knownGaps[2], recording the install verdict below. ## Why At protocol 19 `ActionLocationSchema` refuses the four words with a prescription (`packages/spec/src/ui/action.zod.ts`, `PAGE_PART_LOCATIONS_RETIRED`), and a body sent to the save door is not converted, so these provisioning steps fail before the step they exist for and read like a platform defect. **The install-local recipe (acceptance item 2), measured from source at d89d3e2: it does not replay through the 19 conversion, so it is rewritten.** The install converts a package body forward once (`packages/cloud-connection/src/marketplace-install-local-plugin.ts`, `handleInstall`, `this.convertPackageBodyForward(ctx, manifest)`), and that lands in `packages/objectql/src/engine-package-registration.ts#convertPackageBodyForward`, whose second line is `if (resolveDeclaredRange(body) === null) return body;`. `resolveDeclaredRange` (`packages/metadata-core/src/protocol-handshake.ts`) reads `engines.protocol`, then `engines.platform`, then `engine.objectstack`; the recipe's inline manifest declares none of them, so its body is registered as sent, with the old words. No live install was run. The recorded builds `docs/qa/scenarios/builds/order_to_cash.json` and `travel_expense.json` are not touched: they declare `engines.protocol: ^19`, and the card itself rules them out of scope. ## Tests Docs-only. No test reads these bodies; `pnpm check:platform-checklist` validates the files (JSON shape, revision/history pairing). <details><summary>Gates at f486327 (content identical at the merge head c504263)</summary> `node scripts/pm/dispatch-gates.mjs --commands` derived 17 families; each ran with its exit code captured before any pipe, all exit 0: ``` node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm check:adr-anchors :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:platform-checklist :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:watch-hint-literal :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 (after building @objectstack/lint's closure under os-verify-lock, VERDICT command-exit 0) ``` `--ran` reconciliation: `17 derived, 17 run, 0 NOT-MEASURED, 0 UNRUN`. Control-byte self-scan of both files: no hits. `overlap-check`: `VERDICT clean exit 0` before the push. </details> ## Acceptance notes - **Acceptance item 3 is not met by this PR.** After it, `git grep` over `docs/qa/**` still finds the four words in prose that describes today's placement, not as retired: - `records-forms.json`, the action placement item (lines ~2238–2418): its whole variants matrix is the six page-part locations. Re-pointing it means re-deriving the item against protocol 19 (`record` / `record_page` / `record_row` plus the object's `actionLayout`), a re-derivation rather than a word swap. - Source citations that may now be stale: `access-security.json:3084` (sys_permission_set's actions), `i18n.json:202` (sys_session's `revoke_my_other_sessions`), `ux-conventions.json:233` (Archive's placement), `records-forms.json:6332` and `:7683` (showcase task actions). - History rows (`approvals.json:1084`, `ux-conventions.json:311`, `records-forms.json:7356`) are records of what was true and stay as written. - Not a new defect: the save door already refuses the old words loudly; these were stale checklist text. ## Verification Two-minute check: `git grep -nE "perRecord', locations: \['record_header'\]|^ +\"list_item\",$" -- docs/qa/platform-checklist/areas/` prints nothing; on `origin/main` before this PR it prints four lines (the two preflight fixture lines and the recipe's two manifest actions). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. (none added) - [x] 3. No formatter ran; `pnpm lint` passes. (CI) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (nothing published: `skip-changeset`) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5p5TNvCBS9kf5cu4HS Co-authored-by: Claude <noreply@anthropic.com>
1 parent 65d9617 commit b926d37

2 files changed

Lines changed: 23 additions & 12 deletions

File tree

‎docs/qa/platform-checklist/areas/records-forms.json‎

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@
9090
"type": "url",
9191
"target": "https://example.test/qaact-control",
9292
"locations": [
93-
"list_item",
94-
"record_header"
93+
"record"
9594
]
9695
},
9796
{
@@ -101,8 +100,7 @@
101100
"type": "url",
102101
"target": "https://example.test/qaact-throws",
103102
"locations": [
104-
"list_item",
105-
"record_header"
103+
"record"
106104
],
107105
"visible": "qaact_undeclared_root.flag == true"
108106
},
@@ -122,7 +120,7 @@
122120
{
123121
"step": 2,
124122
"call": "GET /api/v1/meta/object/showcase_task, then GET /api/v1/meta/action",
125-
"expect": "the object's actions[] ends with qaact_control [list_item, record_header], qaact_visible_throws [list_item, record_header] with visible {dialect: 'cel', source: 'qaact_undeclared_root.flag == true'}, and qaact_no_locations with NO `locations` key; /meta/action lists the three. If the object does not carry them, nothing later measures anything (the runtime-authored failure shape)",
123+
"expect": "the object's actions[] ends with qaact_control [record], qaact_visible_throws [record] with visible {dialect: 'cel', source: 'qaact_undeclared_root.flag == true'}, and qaact_no_locations with NO `locations` key; /meta/action lists the three. If the object does not carry them, nothing later measures anything (the runtime-authored failure shape)",
126124
"source": "packages/objectql/src/registry.ts#attachBoundActions (a code package's standalone action whose objectName is this object is attached to every served read of it)"
127125
},
128126
{
@@ -134,8 +132,9 @@
134132
],
135133
"teardown": "DELETE /api/v1/marketplace/install-local/com.objectstack.qaact.specimen → 200 with a cleanups list; showcase_task serves its stock actions again. Mandatory even on a throwaway DB (requires[3]); then stop the boot and the console dev server by their recorded PIDs",
136134
"knownGaps": [
137-
"Task Detail's page:header, its ⋯ overflow and its quick-actions bar render the action ids the page lists (examples/app-showcase/src/ui/pages/task-detail.page.ts), so no bound action reaches them: QA Control is absent there too (measured, #26625), and those three surfaces are no evidence for either half. The specimen's evidence comes from the list row menu and the Project Detail Related-tab row menus, where QA Control renders. The list toolbar showed none of the three, but the control declares no list_toolbar placement, so that surface has no positive control in this recipe",
138-
"Proven by one live run (#26625, main 1708115e2f). The action names carry the namespace prefix (qaact_); an unprefixed name was not measured"
135+
"Task Detail's page:header, its ⋯ overflow and its quick-actions bar render the action ids the page lists (examples/app-showcase/src/ui/pages/task-detail.page.ts), so no bound action reaches them: QA Control is absent there too (measured, #26625), and those three surfaces are no evidence for either half. The specimen's evidence comes from the list row menu and the Project Detail Related-tab row menus, where QA Control renders. The list toolbar showed none of the three, but the control declares no list location (it declares record: the record page and each list row), so that surface has no positive control in this recipe",
136+
"Proven by one live run (#26625, main 1708115e2f). The action names carry the namespace prefix (qaact_); an unprefixed name was not measured",
137+
"The inline manifest declares no engines.protocol, so the install converts nothing: a package body with no declared range is registered as sent, never replayed through the protocol conversions (packages/objectql/src/engine-package-registration.ts#convertPackageBodyForward returns it unchanged). Its action locations are spelled in protocol 19's words (record, where they said list_item beside record_header until 19), and any word this recipe carries must be one the running spec accepts. Read from source at d89d3e23; no live run since the rewrite"
139138
]
140139
},
141140
"qa-crm-import-console": {
@@ -7266,7 +7265,7 @@
72667265
"title": "An action's param dialog runs its declared preflight read: the panel moves from loading to ready with the declared fields, a seeded param is drawn read-only from the answer and submitted as it, and a failed read draws the error panel, leaves the seed empty and holds Confirm",
72677266
"since": "v18.4",
72687267
"status": "active",
7269-
"revision": 4,
7268+
"revision": 5,
72707269
"priority": "P1",
72717270
"surface": "browser",
72727271
"personas": [
@@ -7276,13 +7275,13 @@
72767275
"app": "showcase",
72777276
"requires": [
72787277
"a fresh boot of the showcase: `pnpm dev -- --fresh -p PORT --seed-admin`",
7279-
"two scratch actions on showcase_task, saved before the browser leg. qa_pf_probe: PUT /api/v1/meta/action/qa_pf_probe with { name: 'qa_pf_probe', label: 'QA preflight probe', objectName: 'showcase_task', operation: 'update', execution: 'perRecord', locations: ['record_header'], params: [{ name: 'estimate_hours', label: 'Estimate (h)', type: 'number', required: true }, { name: 'notes', label: 'Notes', type: 'textarea', required: true }], preflight: { read: { url: '/api/v1/data/showcase_task/${ctx.recordId}' }, path: 'record', fields: [{ path: 'title', label: 'Title' }, { path: 'status', label: 'Status' }], seed: [{ param: 'notes', path: 'title' }] } }. qa_pf_fail: the same body named qa_pf_fail, labelled 'QA preflight fail', with read.url '/api/v1/data/showcase_task/qa-missing-${ctx.recordId}' (a record that does not exist, so the read answers 404)",
7278+
"two scratch actions on showcase_task, saved before the browser leg. qa_pf_probe: PUT /api/v1/meta/action/qa_pf_probe with { name: 'qa_pf_probe', label: 'QA preflight probe', objectName: 'showcase_task', operation: 'update', execution: 'perRecord', locations: ['record_page'], params: [{ name: 'estimate_hours', label: 'Estimate (h)', type: 'number', required: true }, { name: 'notes', label: 'Notes', type: 'textarea', required: true }], preflight: { read: { url: '/api/v1/data/showcase_task/${ctx.recordId}' }, path: 'record', fields: [{ path: 'title', label: 'Title' }, { path: 'status', label: 'Status' }], seed: [{ param: 'notes', path: 'title' }] } }. qa_pf_fail: the same body named qa_pf_fail, labelled 'QA preflight fail', with read.url '/api/v1/data/showcase_task/qa-missing-${ctx.recordId}' (a record that does not exist, so the read answers 404)",
72807279
"`path` selects the record in the read's answer: run `GET /api/v1/data/showcase_task/ID` once with curl. GetDataResponseSchema answers `{ object, id, record }`; if the door wraps it in `{ success, data }`, save both actions with path 'data.record' instead of 'record' (packages/spec/src/api/protocol.zod.ts#GetDataResponseSchema)",
72817280
"one seeded showcase_task with a title; record its id, title and estimate_hours"
72827281
],
72837282
"knownGaps": [
72847283
"the panel's `waiting` state (a URL hole on a param not yet filled), a stale answer dropped after the URL moved on, and the seed cleared on a URL change have no live leg here: a `${param.X}` hole needs a query parameter the record read accepts, and GET /api/v1/data/OBJECT/ID refuses every parameter but select and expand (packages/rest/src/rest-server.ts#DATA_RECORD_READ_PARAMS). acceptance[4] scores them from the pins",
7285-
"the two scratch actions draw NO button on a showcase_task record page as stock ships it: that object's default record page is a custom page (examples/app-showcase/src/ui/pages/task-detail.page.ts, isDefault) whose page:header lists its header actions BY ID, so a runtime action declaring location record_header is not drawn there (QA run #32940; #33094 comment 6852480973). The fixture needs the actions on a record page that draws them: an object served by the synthesized default record page (no isDefault page in examples/app-showcase/src/ui/pages), with the read URL, path and fields re-pointed to it, or the task page's header list extended by a metadata overlay for the run and reverted afterwards (the shape the 18.4.0 round 2 run passed on). Record which one the verdict rests on"
7284+
"the two scratch actions draw NO button on a showcase_task record page as stock ships it: that object's default record page is a custom page (examples/app-showcase/src/ui/pages/task-detail.page.ts, isDefault) whose page:header lists its header actions BY ID, so a runtime action declaring location record_page is not drawn there (QA run #32940; #33094 comment 6852480973). The fixture needs the actions on a record page that draws them: an object served by the synthesized default record page (no isDefault page in examples/app-showcase/src/ui/pages), with the read URL, path and fields re-pointed to it, or the task page's header list extended by a metadata overlay for the run and reverted afterwards (the shape the 18.4.0 round 2 run passed on). Record which one the verdict rests on"
72867285
]
72877286
},
72887287
"steps": [
@@ -7369,6 +7368,12 @@
73697368
"date": "2026-11-15",
73707369
"change": "acceptance[4].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969",
73717370
"ref": "#34068"
7371+
},
7372+
{
7373+
"revision": 5,
7374+
"date": "2026-11-29",
7375+
"change": "fixtures.requires[1]'s two scratch bodies (qa_pf_probe, qa_pf_fail) declare locations ['record_page'], and fixtures.knownGaps[1] names that word, where both said record_header. Protocol 19 retired the page-part location words (record_header or record_more became record_page, the 19 conversion action-locations-acted-on), and a body sent to the save door is not converted, so a body that still sends record_header is refused and this item's provisioning fails before the browser leg. Where the actions draw is unchanged. No clause or threshold changed",
7376+
"ref": "#38046"
73727377
}
73737378
]
73747379
},

‎docs/qa/platform-checklist/areas/studio-authoring.json‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5360,7 +5360,7 @@
53605360
"title": "The action save door refuses a contradictory `preflight` at its located path: no params, beside execution 'aggregate', a hole outside the closed set (its own sentence for `${result.*}`), an undeclared param, an unclosed hole, a URL off this origin, a non-GET method, and each seed contradiction",
53615361
"since": "v18.4",
53625362
"status": "active",
5363-
"revision": 1,
5363+
"revision": 2,
53645364
"priority": "P1",
53655365
"surface": "api",
53665366
"personas": [
@@ -5370,7 +5370,7 @@
53705370
"app": "showcase",
53715371
"requires": [
53725372
"a fresh boot of the showcase: `pnpm dev -- --fresh -p PORT --seed-admin` (ephemeral DB; the seeded admin is printed)",
5373-
"the base body every variant edits: { name: 'qa_pf_base', label: 'QA preflight base', objectName: 'showcase_task', operation: 'update', execution: 'perRecord', locations: ['record_header'], params: [{ name: 'estimate_hours', label: 'Estimate (h)', type: 'number', required: true }, { name: 'notes', label: 'Notes', type: 'textarea', required: true }], preflight: { read: { url: '/api/v1/data/showcase_task/${ctx.recordId}' }, path: 'record', fields: [{ path: 'title', label: 'Title' }, { path: 'status', label: 'Status' }], seed: [{ param: 'notes', path: 'title' }] } }. Scratch names only (qa_pf_*), so nothing shipped is touched"
5373+
"the base body every variant edits: { name: 'qa_pf_base', label: 'QA preflight base', objectName: 'showcase_task', operation: 'update', execution: 'perRecord', locations: ['record_page'], params: [{ name: 'estimate_hours', label: 'Estimate (h)', type: 'number', required: true }, { name: 'notes', label: 'Notes', type: 'textarea', required: true }], preflight: { read: { url: '/api/v1/data/showcase_task/${ctx.recordId}' }, path: 'record', fields: [{ path: 'title', label: 'Title' }, { path: 'status', label: 'Status' }], seed: [{ param: 'notes', path: 'title' }] } }. Scratch names only (qa_pf_*), so nothing shipped is touched"
53745374
]
53755375
},
53765376
"steps": [
@@ -5432,6 +5432,12 @@
54325432
"date": "2026-11-10",
54335433
"change": "initial — the spec half of an action's `preflight` read, refused at the save door (#31840). Scoped sweep #32269 (epic #32022 M3, theme 6: action preflight and page bindings), read from source at 9091955b; no live run made",
54345434
"ref": "#32269"
5435+
},
5436+
{
5437+
"revision": 2,
5438+
"date": "2026-11-29",
5439+
"change": "fixtures.requires[1]'s base body qa_pf_base declares locations ['record_page'] where it said record_header. Protocol 19 retired the page-part location words (record_header or record_more became record_page, the 19 conversion action-locations-acted-on), and a body sent to the save door is not converted, so every variant built on the old base body would read a location refusal instead of its own preflight refusal. No clause or threshold changed",
5440+
"ref": "#38046"
54355441
}
54365442
]
54375443
},

0 commit comments

Comments
 (0)