Repository navigation
Commit 9db729f
docs(qa): re-point 19 checklist items and the cli-18-prerelease-db recipe in platform-core and cli (#34004)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9B6gStEwzhNnXcvLnqyJAFR)_
Fixes #33965
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:平台测试清单里 19 个条目和 1 个测试数据配方的文字(platform-core 10 个、cli 9 个,外加
cli-18-prerelease-db 配方),每个条目 revision +1 并加一行 history。
- 为什么改:18.5.0 发版测试时跑手按原文走不通或读错的地方(锚卡 #33761 账本批次 C),比如种子行数已从 138 变成
141、`os dev` 不再打印所有权拒绝而是自动升级、恢复脚本已会重新标日期,不改下一轮跑手会重复踩坑。
- 风险与回滚:只动 docs/qa 下两个 JSON 文本,不动产品代码;回滚就是 revert 本 PR。
- 先看:cli.json 的 organization-ownership-ceremony
acceptance[5].verify(判据从「计数相等」改为「旧行按 id 都在」,改动最实质)、cli.json 的
cli-18-prerelease-db 配方 knownGaps[4]、platform-core.json 的
activation-ledger-package-key-upgrade fixtures。
- 两分钟验证:`pnpm check:platform-checklist`,预期最后一行
`check-platform-checklist: OK — 16 areas, 429 items`。
- 需要你做的:无,席位落地。
## What changes
Batch C of the v18.5.0 close-out ledger (comment 6896511848 on #33761):
the item-text re-point rows for `platform-core.json` and `cli.json`,
with the `cli-18-prerelease-db` recipe. The card's 28 rows cover 19
items and the recipe; a row repeated across rounds is one edit. Each row
was re-read at `origin/main` `0ac112fc` (PRs #33931 and #33929 in, and
neither of their items touched) and the edit starts from the residue
measured there, not the parked wording. No acceptance `clause` was
weakened; three were corrected or extended (rows 4, 36, 199). Every
edited item has `revision` +1 and one `history` row with ref
`#PENDING-33965`, replaced by this PR's number in a second commit. The
recipe carries no revision of its own, so its change is recorded in
`cli.organization-ownership-ceremony`'s history, the item that scores on
it (as revision 6 did). The area files were edited as text spans by a
script and never re-serialised.
| Ledger row(s) | Item | Clause edited | What changed, and the reading
behind it |
|:--|:--|:--|:--|
| 1, 183 | platform-core.seed-integrity | steps[1], steps[4] | Baseline
138 rows / invoice_line=7 → 141 / 10. Measured at `0ac112fc` by
importing `ShowcaseSeedData` and summing each records array: 20
datasets, 141 rows, `showcase_invoice_line=10`; every other count
unchanged. steps[4]'s banner example follows |
| 4, 185 | platform-core.v18-boot-refusals | acceptance[1].clause,
.verify | The `--dev` spelling is printed by a standalone `os serve
--dev` only. Under `os dev`, the refused `serve --dev` child sends the
refusal to its parent over IPC and exits without printing it (`serve.ts`
`announceOrganizationOwnershipRequired`), and `os dev` copies the DB and
runs the ceremony itself (`dev.ts` `upgradeRefusedDevelopmentDatabase`,
ADR-0131 D10). The pinned spelling is unchanged |
| 5 | cli-18-prerelease-db (recipe) | knownGaps[4], sequence[0].expect |
"the restore does not re-date shards" is false:
`cli-prerelease-fixture.ts` `restore` runs `dumpAsOf` →
`fixture-as-of.ts` `shardRenamesAsOf`, renaming each rotation shard to
the day before the run and printing a `re-dated shard` line per shard.
QA run #33784 read `sys_activity__r20261114`, 66 rows, after the refused
boot |
| 6, 186 (and 5's consequence) | cli.organization-ownership-ceremony |
acceptance[5].verify | (1) "count after equals count before, less what
moved" left no room for the rows this release's own second boot adds
(invoice_line 5→10, sys_seed_landed_key 0→141, …); the oracle is now
that every pre-existing id survives unless the report moved or deleted
it, and a count may grow. (2) The sys_activity dropped-shard carve-out
is retired, since the restore now re-dates the shard (row 5) |
| 8 | platform-core.builtin-apps-nav-render | steps[3] | "open a user
from Users" lands on a side panel (`?recordId=`); the step names the
record URL `/_console/apps/setup/sys_user/record/ID`, where the
`sys_user_detail` page carries the Preferences and Linked Accounts tabs
|
| 36 | cli.migrate-duplicates-inventory | fixtures.requires[1],
steps[1], acceptance[3].clause | (1) A NULL-organization row cannot be
seeded: a table this release creates holds its tenant column NOT NULL
(ADR-0131 D1, `sql-driver-column-creation.ts` `tenantColumn`); the
duplicate is held by two organizations, which is the report's own
question. (2) acceptance[3] said three pre-flight entries;
`runtimeIndexProbes` lists seven from six migrations at `0ac112fc`, now
named, with "read the count off the list" |
| 37 | cli.migrate-plan-apply-json | steps[8] | meta's dry run is `os
migrate meta --from PREV --json`: `--from` is required without
`--stored`, and a bare `--json` exits 1 `missing_from_major` (`meta.ts`)
|
| 42 | cli.meta-package-flags-and-explain | steps[0] | The ViewItem body
carries `viewKind: 'list'` and a `config`. Probed against the built
`ViewItemSchema` at `0ac112fc`: without `viewKind` → "Invalid
discriminator value. Expected 'list' \| 'form'"; the example body parses
|
| 44, 194 | cli.dev-automigrate-policy | fixtures.knownGaps (new [2]) |
The schemaMode half of acceptance[3] cannot be staged: a non-managed
datasource is refused DDL at `assertSchemaMutable` before
`reconcileAndWarnDrift` runs, so no boot reaches `autoOn` with another
schemaMode; that half is read from source, as both rounds did |
| 47 | cli.lint-severity-exit-contract | fixtures.requires[0] | A
camelCase object or field name is refused by `ObjectSchema` at load
(probed: name pattern; "Invalid key in record" for a field key), so the
error finding is the missing label; the i18n fold needs a second
declared locale, since coverage is judged only against the stack's
locales |
| 48, 199 | cli.doctor-deprecation-scan | steps[5], acceptance[3].clause
| `os codemod --help` prints "Command codemod not found." (`@oclif/core`
help module); the clause names the full scan boundary: `src/` only,
names ending `.ts` minus `.test.ts`, so `.tsx` is skipped while
`.spec.ts` and `.d.ts` are read, comments included
(`scanDeprecatedPatterns`, `walkDir`) |
| 89 | cli.address-grammar-reserved-names | fixtures.requires[0] | Every
hand-written scratch app declares `sharingModel`; without it the
error-severity `security-owd-unset` finding stops validate/build before
the namespace verdict |
| 90, 216 | cli.scaffold-console-first-paint | acceptance[3].verify | "a
blank scaffold ships no app" is stale: the blank template ships
`src/apps/main.app.ts` (app Main, a Notes entry), so the nav half is
drivable; the action half stays a stated limit (`src/actions/index.ts`
exports nothing) |
| 106, 218 | platform-core.activation-ledger-package-key-upgrade |
fixtures.requires[0], requires[1] | Route (b) puts
sys_metadata_activation's indexes back to 18.3.0's: drop the
package-less index AND this release's
`uniq_sys_metadata_activation_metadata_type_package_id_name`, recreate
`uniq_sys_metadata_activation_metadata_type_name` on (metadata_type,
name). Dropping the package-less index alone leaves no
`replace_unique_index` to plan. requires[1] drops the recreated index
too; the two-holder name names the `composeStacks` scratch app the runs
used |
| 108 | platform-core.docs-portal-render | steps[3] | With one book,
`AppDocsIndex` renders no listing and navigates into that book's reader
(`AppDocsIndex.tsx`, `cards.length === 1`); the listing is read off the
reader's book sidebar |
| 110 | platform-core.marketplace-console-honesty | fixtures.requires[2]
| install-local's ledger follows `OS_HOME`
(`OS_HOME/installed-packages`) and falls back to the working directory
only without it (`local-manifest-source.ts`
`resolveInstalledPackagesDir`); the text said OS_HOME does not redirect
it. The scratch-copy rule stands |
| 122 | platform-core.protocol-18-handshake-and-stored-replay |
steps[2], acceptance[3].verify | A `--artifact COPY` boots alone
(`artifact-precedence.ts` `cwdConfigJoinsBoot`), so the showcase copy
loses its code plugins and aborts after the conversion warns; the clause
is read from those warns, and a serving boot needs an app with no
code-plugin connector (`examples/app-todo`) |
| 123 | platform-core.stored-reference-package-backfill-upgrade |
fixtures.requires[0] | The activation-ledger index plant is removed from
this item's route (b): no row here is a ledger row and no clause reads
that table. Route (a) not driven is run scope, not item text |
| 124, 125 | platform-core.notification-center | source[4],
fixtures.requires[0] | `{"ids":[]}` is valid
(`MarkNotificationsReadRequestSchema` takes any string array) and
answers 200 readCount 0; a body without `ids` is the 400. The
stock-seed-only fixture cannot drive acceptance[4] (one topic, nothing
left for mark-all-read), so acceptance[4] needs the digest flood |
| 214 | platform-core.keyboard-shortcut-surface | steps[2] | The typed
search term persists as `uf__search` across reloads in one browser
context; clear it or use a fresh context per probe set |
Every row of the card was edited; none was already right at the base,
and none moved to another carrier.
Forced test changes: none.
## Tests
No code changed. `pnpm check:platform-checklist` and the 16 gate
families `node scripts/pm/dispatch-gates.mjs --commands` derives for
this diff were run on the merged head; each exited 0, and `--ran`
reconciles 16 derived, 16 run, 0 NOT-MEASURED. The commands and exit
codes are in the os-dev-report comment on #33965.
## Acceptance notes
- `cli.lint-severity-exit-contract` acceptance[2] lists lint's `--json`
keys without `strict`, `failing` and `conversions`, which the payload
now carries (QA run #33829). That residue was in the QA record but not
on this card's ledger rows, so it is not edited here.
- `packages/cli/src/commands/migrate/duplicates.ts`'s docblock still
calls the pre-flight "four fixed platform indexes" (seven at this base).
It is code, outside this card's file surface.
- Structural proof: the span editor parsed each area file before and
after, applied the declared edits to the parsed `origin/main` document,
and asserted the result equals the edited file's parse. Every non-edited
item is value-equal; each edited item changes only the fields in the
table plus `revision` and one appended `history` row.
## Verification
- `pnpm check:platform-checklist` → `check-platform-checklist: OK — 16
areas, 429 items (421 active, 3 planned)`.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmSRMKC6zBNQF7KazbL)_
<!-- signed: domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z
-->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 240e9ab commit 9db729f
2 files changed
Lines changed: 155 additions & 50 deletions
0 commit comments