Skip to content

Commit e35cf03

Browse files
docs(qa): seed-mode-matrix scores the three live seed modes; retired insert and replace are refused at the draft save (#35580)
Fixes #35297 repo:objectstack#1 · os-sales · session_01L6bhgTvfMcASUnKeoEVUo7 Refs #34975 (items 1, 2) Clause-②: no Metadata-protocol: none ## 维护者速读 1. 用户能看到什么变化:用户无感;只改内部质检清单里"示例数据写入方式"这条测试项,以及另一条测试项里的一步。 2. 为什么做:示例数据的两种旧写入方式已经下线,清单仍按旧的五种方式写,每日质检巡检因此在主干上报红。 3. 出错会怎样:写错只会让质检人员按错误步骤测试,不影响产品;只动文档,可直接撤回。 4. 要你做什么:无。 ## What changes - `docs/qa/platform-checklist/areas/platform-core.json` · `platform-core.seed-mode-matrix` rev 8 → 9. `SeedMode` is now `enumWithRetiredValues(SEED_MODE_VALUES, SEED_MODE_RETIRED)` with no bracket list of its own, so the `enumSource` pin read 0 members against 5. The pin now names `SEED_MODE_VALUES` (expect 3). Title, steps[4] to [6], acceptance[3] to [5], variants, knownGaps, fixtures.requires[1] and source[0] to [1] are revised to the three live modes; the INSERT and REPLACE probes become "refused at the draft save" steps and clauses (#34975 item 1's remedy text). The two knownGaps about insert-mode duplication are dropped with the mode; one gap records that the stored-dataset refusal (refused alone at load) is scored from its unit pin, because the draft save refuses both modes first. - `docs/qa/platform-checklist/areas/access-security.json` · `access-security.agent-ceiling-set-assignment-refusal` rev 2 → 3. Its seed step declared `mode: 'insert'`; it is rekeyed to the default mode plus `externalId: ['user_id', 'permission_set']` (the junction's natural key, the shape the retirement's prescription names). - `docs/qa/platform-checklist/FOLLOW-UPS.md` · K6 marked done in its last cell, pointing at #34791 and #34613 (append, the row text kept). The checklist data is revised because the platform surface changed (two modes retired), not to green the gate: every live-mode clause and verdict is unchanged. ## Tests The expected answer for the retired modes was measured, not assumed: at base `b65488a8`, the save door's own suite (`packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts`, the retired-mode case) was run with a temporary log line (restored, `git diff HEAD` empty, blob hash equal to HEAD). Both a draft with mode insert and one with mode replace answer code `INVALID_METADATA`, status 422, one issue `{path: mode, code: invalid_value}` whose message is the mode's prescription. That is an in-process reading of the protocol call, not an HTTP run. <details><summary>Gate readings at head 1ad833b</summary> - `pnpm check:platform-checklist` (full chain, self-tests included) exit 0: `check-platform-checklist: OK — 16 areas, 433 items (425 active, 3 planned)`. At base it exited 1 with the one VARIANTS STALE problem. - The 17 families `node scripts/pm/dispatch-gates.mjs --commands` derives for this diff, each exit 0; `--ran` reconciliation: `17 run, 0 NOT-MEASURED (a DERIVED zero)`. - `node scripts/pm/overlap-check.mjs`: origin/main merges cleanly; #34223 shares platform-core.json, but its hunks sit at lines 640 to 1000 (this diff is at 3208 to 3350) and GitHub already reports it `mergeable: false` against main. </details> ## Acceptance notes - The suggested extractor guard (refuse a declaration with no bracket list of its own) is not in this PR. `extractEnumMembers` has no self-test battery, so the guard and its row would need a new battery, a roster entry, the floor bump and both dispatch legs, which is more than the diff it would guard. The failure it prevents was already loud (red), just badly worded ("0 members"). - No changeset: the diff touches only `docs/qa/**`, which no package's `files[]` ships; `skip-changeset` is set with this create. ## Verification Read first: the seed-mode-matrix item's steps[4] and [5] and acceptance[3] and [4] (the new refusal wording), then the access-security seed step. Two-minute check: `pnpm check:platform-checklist` prints `check-platform-checklist: OK` and exits 0. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgTvfMcASUnKeoEVUo7)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3957126 commit e35cf03

3 files changed

Lines changed: 34 additions & 25 deletions

File tree

‎docs/qa/platform-checklist/FOLLOW-UPS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ records actual behavior instead of ticking green.
446446
| K3 | **`fieldGroups[].visibleWhen` is inert in the console one day after landing.** #13030 (2026-08-29) shipped the key with "declared = enforced on day one", but BOTH objectui fieldGroups adapters drop it, so the object-level section predicate never reaches the renderer; a separate fail-direction drift exists between the spec (fail-closed) and the view-section renderer (fail-open). | spec commit 53dc739 vs objectui `plugin-form/src/fieldGroups.ts`, `plugin-detail/src/synth/buildDefaultPageSchema.ts`; `object.zod.ts` vs `TabbedForm.tsx` | records-forms.field-group-visible-when (console clause expected-fail at the exact adapter sites) | correctness — safe to file |
447447
| K4 | **objectui external-datasource error UX drifted from the server.** The Setup federation UI's 503-detector matches the retired pre-#3843 string body while the server answers the sendError envelope (its own test pins the stale shape); and ValidationPanel's `DIFF_LABEL` covers 9 of 10 `SchemaDiffEntryKind`s — `'unreachable'` (emitted at `external-datasource-service.ts`) has no label. The #4115 class recurring until the next objectui spec-pin bump. | objectui `metadata-admin/external/api.ts` + `api.test.ts`; framework `external-datasource-routes.ts` | integration-system.external-schema-browser-ui (expected-fail + knownGaps) | correctness — safe to file |
448448
| K5 | **Three raw-`getRawApp` route registrars remain unledgered** (D6/D22 class, and structurally invisible to the #7526 reverse-parity gate): the `/auth/me/permissions` + `/auth/me/localization` + `/me/apps` trio, `/api/v1/approvals/act`, and `/api/v1/webhooks/redeliver`. The trigger-api/metadata precedent (#11863/#11882) gives each such registrar a per-package ledger + conformance guard; these three never got one. (D22's `/automation/:name/clone` re-verified still unledgered at head.) | `plugin-hono-server/src/current-user-endpoints.ts,877,902`; `plugin-approvals/src/approvals-plugin.ts`; `plugin-webhooks/src/webhook-outbox-plugin.ts` | items now cover the routes' semantics (access-security.me-permissions-aggregation-parity, approvals.email-action-token-door, webhook-lifecycle rev 5); the ledger gap itself is this row | low — internal discipline |
449-
| K6 | **Seed mode `replace` is declared≠implemented.** The spec sells it as "Delete ALL records, then insert" but the write arm is a bare insert whose comment says "caller should have cleared the table" — and no clearing caller exists anywhere. An ADR-0049 shape on the most dangerous member of the enum. | `packages/spec/src/data/seed.zod.ts` vs `packages/metadata-protocol/src/seed-loader.ts,2106` | platform-core.seed-mode-matrix (expected-posture clause — a run must not tick "deletion correctly scoped") | correctness — safe to file |
449+
| K6 | **Seed mode `replace` is declared≠implemented.** The spec sells it as "Delete ALL records, then insert" but the write arm is a bare insert whose comment says "caller should have cleared the table" — and no clearing caller exists anywhere. An ADR-0049 shape on the most dangerous member of the enum. | `packages/spec/src/data/seed.zod.ts` vs `packages/metadata-protocol/src/seed-loader.ts,2106` | platform-core.seed-mode-matrix (expected-posture clause — a run must not tick "deletion correctly scoped") | correctness — safe to file · **RESOLVED by #34791 (#34613):** `replace` and `insert` are retired at the schema — a parse refuses both with a prescription, and a load refuses a stored dataset carrying one alone; seed-mode-matrix rev 9 scores the refusal |
450450

451451
Two design postures recorded inside items rather than as defect rows: scheduled-report
452452
dispatch is wired **fail-closed** at head (`reports-plugin.ts` passes

‎docs/qa/platform-checklist/areas/access-security.json‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5313,7 +5313,7 @@
53135313
"title": "The MCP agent ceiling sets (mcp_agent_data_read, mcp_agent_data_write, mcp_agent_restricted) reach no person through any door: a direct grant, a position definition saved at the metadata door (active or draft), a position assignment, a seed and the deployment baseline are each refused 400 VALIDATION_FAILED at the field that named the set, and an ordinary set passes every one of them",
53145314
"since": "v18.4",
53155315
"status": "active",
5316-
"revision": 2,
5316+
"revision": 3,
53175317
"priority": "P1",
53185318
"surface": "api",
53195319
"personas": [
@@ -5338,7 +5338,7 @@
53385338
"PUT /api/v1/meta/position/qa_ceiling_pos {\"name\": \"qa_ceiling_pos\", \"label\": \"QA ceiling\", \"permissionSets\": [\"showcase_auditor\", \"mcp_agent_data_read\"]}; then PUT /api/v1/meta/position/qa_ceiling_pos?mode=draft&package=com.qa.ceil with the same body; then GET /api/v1/meta/position/qa_ceiling_pos",
53395339
"control: PUT /api/v1/meta/position/qa_person_pos {\"name\": \"qa_person_pos\", \"label\": \"QA person\", \"permissionSets\": [\"showcase_auditor\"]}, then POST /api/v1/data/sys_user_position {\"user_id\": P, \"position\": \"qa_person_pos\"}",
53405340
"POST /api/v1/data/sys_user_position {\"user_id\": P, \"position\": \"qa_declared_ceiling\"}; read P's sys_user_position rows",
5341-
"seed: PUT /api/v1/meta/seed/qa_ceiling_seed?mode=draft&package=com.qa.ceil {\"object\": \"sys_user_permission_set\", \"mode\": \"insert\", \"records\": [{\"user_id\": P, \"permission_set\": \"mcp_agent_restricted\"}]} and PUT /api/v1/meta/seed/qa_person_seed?mode=draft&package=com.qa.ceil with permission_set showcase_ops; POST /api/v1/packages/com.qa.ceil/publish-drafts {}; read P's sys_user_permission_set rows",
5341+
"seed: PUT /api/v1/meta/seed/qa_ceiling_seed?mode=draft&package=com.qa.ceil {\"object\": \"sys_user_permission_set\", \"externalId\": [\"user_id\", \"permission_set\"], \"records\": [{\"user_id\": P, \"permission_set\": \"mcp_agent_restricted\"}]} and PUT /api/v1/meta/seed/qa_person_seed?mode=draft&package=com.qa.ceil with permission_set showcase_ops; POST /api/v1/packages/com.qa.ceil/publish-drafts {}; read P's sys_user_permission_set rows",
53425342
"as P: GET /api/v1/auth/me/permissions"
53435343
],
53445344
"acceptance": [
@@ -5409,6 +5409,12 @@
54095409
"date": "2026-11-14",
54105410
"change": "fixtures.knownGaps[0] re-pointed (card #33332; QA run #33081 comment 6850173588): the gap worried that installing qa_decl might itself be refused, leaving the assignment leg no position. The run built and installed it without a refusal, and source agrees: no lint or build rule judges a position's permissionSets against the MCP agent ceiling (mcp_agent_data_read is only named in packages/spec/src/ai/mcp.zod.ts and judged at grant time). The gap now states the measured admit and keeps the blocked(fixture) fallback for a future refusal. No clause changed. Read from source at base fca5f89c",
54115411
"ref": "#33332"
5412+
},
5413+
{
5414+
"revision": 3,
5415+
"date": "2026-11-19",
5416+
"change": "steps[4] rekeyed: the seed drafts declared `mode: 'insert'`, which #34791 (#34613) retired, so their save is refused 422 INVALID_METADATA before the ceiling rule this leg scores could run. They now take the default mode (ignore) and `externalId: ['user_id', 'permission_set']`, the junction's natural key, as the retirement's prescription says. No clause changed",
5417+
"ref": "#34975"
54125418
}
54135419
]
54145420
},

0 commit comments

Comments
 (0)