diff --git a/docs/qa/platform-checklist/areas/cli.json b/docs/qa/platform-checklist/areas/cli.json index be6426fe49f..3b659fa6a23 100644 --- a/docs/qa/platform-checklist/areas/cli.json +++ b/docs/qa/platform-checklist/areas/cli.json @@ -19,7 +19,7 @@ { "step": 1, "call": "pnpm --filter @objectstack/dogfood exec tsx test/upgrade-harness/cli-prerelease-fixture.ts restore --to /tmp/RUN/n5.db", - "expect": "exit 0, printing 'restored /tmp/RUN/n5.db and /tmp/RUN/n5.telemetry.db — born under @objectstack/cli@18.0.0-next.5 (820fd5aef0d6)'. The telemetry file's name is the one `os dev` derives from the primary's, so OS_DATABASE_URL=file:/tmp/RUN/n5.db under --dev composes both. A second restore to the same path refuses (the files exist): pick a new path", + "expect": "exit 0, printing 'restored /tmp/RUN/n5.db and /tmp/RUN/n5.telemetry.db — born under @objectstack/cli@18.0.0-next.5 (820fd5aef0d6)', then one 're-dated shard sys_activity__r20261027 → sys_activity__rYYYYMMDD' line per rotation shard, YYYYMMDD the day before the run (knownGaps[4]). The telemetry file's name is the one `os dev` derives from the primary's, so OS_DATABASE_URL=file:/tmp/RUN/n5.db under --dev composes both. A second restore to the same path refuses (the files exist): pick a new path", "source": "packages/qa/dogfood/test/upgrade-harness/cli-prerelease-fixture.ts#restore, loading through packages/qa/dogfood/test/upgrade-harness/sqlite-text-dump.ts#loadSqlIntoSqlite" }, { @@ -46,7 +46,7 @@ "the second boot keeps delivering: the mail settings still name the closed port, so it retries the re-pointed sends, and each moved sys_identity_email row's attempt_count and updated_at advance, by as many retries as the boot lives through (2 → 3 in the #26624 re-drive; QA run #33087 read attempt_count 4 and status failed after its second boot): never score the digits, only that they moved. Read 'equal over the columns both tables hold' at the apply, before the second boot, and after it on every column but those two; that the retry reads the row from sys_identity_email is itself evidence the job was re-pointed", "the database carries no sys_http_delivery row: on 18.0.0-next.5 the organization-less declared webhook refuses to fan out an organization's event ('belongs to NO organization … refusing to fan out', QA run #24838), so the ceremony's deliveriesResourced is 0 here and the delivery leg is the post-upgrade PATCH alone", "the restored telemetry sibling holds 9 sys_automation_run rows, two of them showcase_task_follow_up runs paused at the `hold` wait node on the two fixture tasks (status paused, node_type wait; packages/qa/dogfood/test/upgrade-harness/fixture-18.0.0-next.5/telemetry.sql). Their PT1M timers fell due one minute after the dump was generated (hold.waitUntil 2026-10-27T16:43Z; examples/app-showcase/src/automation/flows/index.ts TaskFollowUpFlow), so every boot that serves the restore resumes both, and both fail at the `remind` notify node: the two tasks carry assignee null, and the node's recipient expression then adds no recipient. QA run #28545 (at eeec88d1) read the two paused rows replaced by run_run_ history rows on the second boot: the table's count held 9 → 9 while the two pre-existing ids vanished. Count sys_automation_run like any table; do not expect its paused ids to survive the second boot, and do not score their absence against the apply (cli.organization-ownership-ceremony acceptance[5])", - "the restore does not re-date rotation shards: the telemetry sibling's sys_activity rows sit in shard tables named by the dump's day (sys_activity__r20261027, 66 rows), and sys_activity keeps 14 daily shards with retention maxAge 14d (packages/plugins/plugin-audit/src/objects/sys-activity.object.ts). Once that day is outside the window, the FIRST boot over the restore, the refused one before any plan, drops the shard through driver-sql's rotation retention (packages/drivers/driver-sql/src/sql-driver-rotation.ts#initObjects calls ensureRotation at boot), by design. The dogfood harness re-dates shards for exactly this (packages/qa/dogfood/test/upgrade-harness/fixture-as-of.ts#readFixtureAsOf), but cli-prerelease-fixture.ts restore does not apply it. Take sys_activity's before-count after the refused boot, not from the fresh restore, and do not score the dropped shard against the apply (QA runs #32953 and #33087 read it gone; A-3 of #32102)" + "the restore re-dates rotation shards: the telemetry dump's sys_activity rows sit in a shard table named by the dump's day (sys_activity__r20261027, 66 rows), and restore renames each shard, its indexes and its rows moving with it, to the day before the run, every shard keeping its distance in days from the newest (packages/qa/dogfood/test/upgrade-harness/cli-prerelease-fixture.ts#dumpAsOf over packages/qa/dogfood/test/upgrade-harness/fixture-as-of.ts#shardRenamesAsOf, the re-dating the dogfood harness applies), printing one 're-dated shard' line per shard. sys_activity keeps 14 daily shards with retention maxAge 14d (packages/plugins/plugin-audit/src/objects/sys-activity.object.ts) and driver-sql's rotation retention runs at every boot (packages/drivers/driver-sql/src/sql-driver-rotation.ts#initObjects calls ensureRotation), so the re-dated shard is inside the window and the FIRST boot over the restore, the refused one, drops nothing: QA run #33784 (at a557fa38) read sys_activity__r20261114, 66 rows, after it. The rows' own timestamps stay as the dump recorded them; only the table name moves. A restore older than the window loses the shard on its next boot: restore again rather than reuse an old one" ] } }, @@ -303,7 +303,7 @@ "title": "os migrate: bare command is a read-only plan, apply is safe-by-default, re-runs are idempotent, and --json exits 0 on success (#4873)", "since": "v15", "status": "active", - "revision": 9, + "revision": 10, "priority": "P1", "surface": "cli", "personas": ["operator (local shell)"], @@ -325,7 +325,7 @@ "with the dev server booted and holding the DB, run `os migrate apply --yes; echo $?` (expect the busy refusal, exit 1, without --force) and `os migrate plan` (proceeds with a warning — a plan writes nothing either way)", "run `os migrate apply --json` WITHOUT --yes on a pending change: the payload must say confirmation_required with the pass--yes hint and mutate nothing", "the #4873 pair: on the scratch DB run `os migrate recorded-by --json; echo $?` and `os migrate resume --json; echo $?`", - "the #4873 --json sweep over every subcommand: read the set from the CLI itself, never from a list typed into this item. `os migrate --help` prints it under COMMANDS (oclif pattern strategy: one default-exported Command per non-test file in packages/cli/src/commands/migrate/, index.ts being the bare command); capture that list. For each listed subcommand the steps above did not already run, run its dry-run form `os migrate --json; echo $?` on the scratch DB, adding only what that subcommand's own `os migrate --help` USAGE line marks required (unmapped-columns takes --object ). `meta` without --stored reads the authored config, not a database, and refuses any stored-only flag the operator typed, --database-url included, with exit 1 (packages/cli/src/commands/migrate/meta.ts, STORED_ONLY_FLAGS: apply, yes, force, type, database-url): run its dry run as `os migrate meta --json`, never with the scratch DB's --database-url, and do not score that refusal as a #4873 violation. audit-key-material (#26772) is in the set and takes the same flags as audit-mail-bodies (--apply, --yes, --force, --json), so its dry run is the probe. ⛔ The one exception: duplicates (#8928) is ALWAYS JSON on stdout and has NO --json flag, so run it bare (`os migrate duplicates; echo $?`) and never feed it --json, whose oclif Nonexistent-flag exit 2 is not a #4873 violation (deep coverage at cli.migrate-duplicates-inventory). A subcommand added later joins the sweep through the --help list, with no edit here, unless it too lacks --json" + "the #4873 --json sweep over every subcommand: read the set from the CLI itself, never from a list typed into this item. `os migrate --help` prints it under COMMANDS (oclif pattern strategy: one default-exported Command per non-test file in packages/cli/src/commands/migrate/, index.ts being the bare command); capture that list. For each listed subcommand the steps above did not already run, run its dry-run form `os migrate --json; echo $?` on the scratch DB, adding only what that subcommand's own `os migrate --help` USAGE line marks required (unmapped-columns takes --object ). `meta` without --stored reads the authored config, not a database, and refuses any stored-only flag the operator typed, --database-url included, with exit 1 (packages/cli/src/commands/migrate/meta.ts, STORED_ONLY_FLAGS: apply, yes, force, type, database-url): run its dry run as `os migrate meta --from PREV --json` with PREV the previous protocol major (17 at this revision's base), never with the scratch DB's --database-url, and do not score that refusal as a #4873 violation. `--from` is required without --stored: a bare `os migrate meta --json` exits 1 with error missing_from_major (meta.ts; QA run #33829), the command's own refusal, not its dry run. audit-key-material (#26772) is in the set and takes the same flags as audit-mail-bodies (--apply, --yes, --force, --json), so its dry run is the probe. ⛔ The one exception: duplicates (#8928) is ALWAYS JSON on stdout and has NO --json flag, so run it bare (`os migrate duplicates; echo $?`) and never feed it --json, whose oclif Nonexistent-flag exit 2 is not a #4873 violation (deep coverage at cli.migrate-duplicates-inventory). A subcommand added later joins the sweep through the --help list, with no edit here, unless it too lacks --json" ], "acceptance": [ { @@ -426,6 +426,12 @@ "date": "2026-11-14", "change": "steps[1] and steps[8] re-pointed (stale count and a sweep trap, card #33330, row 64 of the #32908 close-out ledger; QA run #33025 comment 6844741021 on #32908). steps[1]: the plan on a dev-synced DB lists eight lifecycle create_tables at ee9ad834, not seven, and the step now says to read the count from the plan. steps[8]: migrate meta refuses a typed --database-url without --stored, exit 1, by design (packages/cli/src/commands/migrate/meta.ts, STORED_ONLY_FLAGS and storedOnlyFlagsIn), so the sweep runs its dry run without it and does not read that exit 1 as a #4873 violation. No clause changed. Read from source at base 87330e89; the eight is #33025's live reading, not re-driven", "ref": "#33330" + }, + { + "revision": 10, + "date": "2026-11-15", + "change": "steps[8] passes --from to meta's dry run (row 37 of ledger 6896511848 on #33761; QA run #33829 at a557fa38): `os migrate meta --json` with no --from exits 1 missing_from_major, since the authored-source chain requires the major the metadata was written against (packages/cli/src/commands/migrate/meta.ts). No clause changed. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -1007,7 +1013,7 @@ "title": "The documented newcomer verification loop closes on a FRESHLY SCAFFOLDED project: os validate passes and the Console actually paints at /_console/ — the seam between the scaffold item and the showcase boot item", "since": "v17", "status": "active", - "revision": 7, + "revision": 8, "priority": "P1", "surface": "mixed", "personas": ["a brand-new developer following the published docs, with no prior project (content/docs/getting-started/quick-start.mdx carries the validate/dev check but no create-objectstack command; the scaffold line is the scaffolder's own published usage)"], @@ -1053,7 +1059,7 @@ { "clause": "a newcomer can complete the documented visual check, or the run states precisely what stops them — the docs promise 'create a record, watch an action show/hide, confirm the nav and filters' on this project", "oracle": "dom", - "verify": "attempt the documented visual check: sign in with the seeded dev admin and create a record on the scaffold's object (a 201 that reads back). The action/nav half ('watch an action show/hide, confirm the nav and filters') has NOTHING to act on here — a blank scaffold ships no app and no action — so it is a stated LIMIT of this item, recorded as not-applicable and never as a FAIL or a PASS; the in-console continuation that authors an app and lands it in the launcher is studio-authoring.first-run-loop (it does not author an action either). If no identity exists to sign in with on a blank scaffold, that is the finding — record it rather than substituting showcase credentials", + "verify": "attempt the documented visual check: sign in with the seeded dev admin and create a record on the scaffold's object (a 201 that reads back). The nav half is drivable: the blank template ships an app, Main, whose Notes entry opens the note object's 'All Notes' list (packages/create-objectstack/src/templates/blank/src/apps/main.app.ts; `os validate` counts 1 Apps 1 Views; QA runs #33853 and #33914 saw Main with a Notes entry), so confirm the nav, and the list's filters, from it. The action half ('watch an action show/hide') has NOTHING to act on — the template's src/actions/index.ts exports no action — so it is a stated LIMIT of this item, recorded as not-applicable and never as a FAIL or a PASS; the in-console continuation that authors an app and lands it in the launcher is studio-authoring.first-run-loop (it does not author an action either). If no identity exists to sign in with on a blank scaffold, that is the finding — record it rather than substituting showcase credentials", "evidence": "what the newcomer sees, including any sign-in wall, plus the record create + read-back" } ], @@ -1093,6 +1099,12 @@ "date": "2026-10-27", "change": "personas[0] and steps[0] stop saying quick-start.mdx instructs the scaffold; steps[2] says the scaffolder prints `pnpm run dev` after a pnpm install. Checklist-accuracy findings of the 18.2.0 wave 2 (QA run #26456, release-18.2.0-w2-manual-browser, at 756220c4; wave anchor #25807, slice A): content/docs/getting-started/quick-start.mdx carries no create-objectstack command, and the scaffolder told the runner `pnpm run dev`. The run's third line (the published scaffold resolves 18.1.0) is already knownGaps[2]. Re-read at base e4ba846f. No clause changed", "ref": "#25807" + }, + { + "revision": 8, + "date": "2026-11-15", + "change": "acceptance[3].verify re-pointed (rows 90 and 216 of ledger 6896511848 on #33761; QA runs #33853 at a557fa38 and #33914 at b914e724): 'a blank scaffold ships no app' is stale, since the blank template ships src/apps/main.app.ts (app Main, a Notes nav entry), so the nav half is drivable; the action half stays a stated limit, as the template ships no action. No clause weakened. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -1204,7 +1216,7 @@ "title": "os doctor --scan-deprecations: every retired pattern is found with file:line attribution, decoys are skipped, the run warns without gating — and the remediation hint prescribes NO command, routing the operator to the per-finding → replacement instead", "since": "v16", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "cli", "personas": ["operator (local shell)", "upgrading author (pre-major sweep)"], @@ -1225,7 +1237,7 @@ "run `os doctor --scan-deprecations; echo $?` and capture the per-hit rows and the closing hint line verbatim; re-run with `--scan-deprecations --verbose` and capture the replacement prescriptions AND that run's closing hint line too — the hint is a two-branch template (doctor.ts) and the two runs do not print the same sentence", "clean pass: delete the seeds (keep the decoys) and re-run — expect '✓ Deprecation scan No deprecated patterns found' and exit 0", "absent-src probe: run `os doctor --scan-deprecations` from a scratch dir with NO src/ at all and capture that the SAME success line prints", - "record `os codemod --help; echo $?` from the same shell — NOT because the hint prescribes it (it prescribes nothing), but to corroborate the hint's factual claim: no `codemod` command may be registered, oclif exiting nonzero with 'command codemod not found'. A registered codemod would make 'No automated codemod ships with the CLI' the new false statement" + "record `os codemod --help; echo $?` from the same shell — NOT because the hint prescribes it (it prescribes nothing), but to corroborate the hint's factual claim: no `codemod` command may be registered, oclif exiting nonzero with 'Command codemod not found.' (the --help path's wording, @oclif/core's help module; match it case-insensitively). A registered codemod would make 'No automated codemod ships with the CLI' the new false statement" ], "acceptance": [ { @@ -1247,7 +1259,7 @@ "evidence": "both exit codes + summary lines" }, { - "clause": "decoys stay silent, each for its own documented reason: *.test.ts filtered (doctor.ts), node_modules pruned by the walk (— the only anchor revision 2 quoted that did not move), and the.json file never visited because the walk is.ts-only — the.json silence is recorded as a DOCUMENTED BOUNDARY of the scan (retired keys in JSON metadata are out of its reach), never as evidence the metadata is clean", + "clause": "decoys stay silent, each for its own documented reason: *.test.ts filtered (doctor.ts), node_modules pruned by the walk (— the only anchor revision 2 quoted that did not move), and the.json file never visited because the walk is.ts-only — the.json silence is recorded as a DOCUMENTED BOUNDARY of the scan (retired keys in JSON metadata are out of its reach), never as evidence the metadata is clean. The boundary in full: only src/ is walked, and a file is scanned when its name ends in `.ts` and not in `.test.ts`, so a `.tsx` file is never read while `*.spec.ts` and `*.d.ts` files are, comments included, since every line is matched (packages/cli/src/commands/doctor.ts#scanDeprecatedPatterns over #walkDir; QA run #33910)", "oracle": "log", "verify": "no transcript row names legacy.test.ts, node_modules, or meta.json; the run record states the .ts-only boundary explicitly", "evidence": "the transcript + the staged decoy listing" @@ -1288,7 +1300,8 @@ { "revision": 1, "date": "2026-08-20", "change": "new — scoped scan-functionality sweep (扫描功能), found independently by two hunters and re-verified against source: --scan-deprecations had zero coverage of any kind (no test in the repo references it). The 8-entry pattern table was recounted from doctor.ts; brief line-drift corrected during authoring (absent-dir return is not, the scanner body ends not). The dead `objectstack codemod v2-to-v3` prescription is encoded as an expected-fail clause with the docs' own 'not yet available' admission as corroborating source", "ref": "claude/new-session-0pv25p" }, { "revision": 2, "date": "2026-08-21", "change": "corrected the two descriptors that called `os migrate meta` a codemod — the expected-fail clause's 'The real metadata codemod is os migrate meta' and the source list's 'cli.migrate-meta-codemod (the codemod that actually exists)'. It is not one. Re-derived at this base: the command declares exactly from/to/step/out/stored/database-url/apply/yes/force/type/json (commands/migrate/meta.ts) with no --write/--fix/in-place; its only file writes are the two `if (flags.out)`-guarded writeFileSync calls, which emit a JSON snapshot; and its header states the command does not silently rewrite TS config source because that AST rewrite is 'unsafe and lossy'. Both descriptors now say what it is — a chain replayer that PRINTS the mechanical edits for hand application — and name #9591 (v18, pm:on-hold) as the commissioned-but-unbuilt in-place codemod, which was added to `source` so the reference resolves. The clause the item turns on is UNCHANGED and still an expected-fail: the hint at doctor.ts prescribes `objectstack codemod v2-to-v3`, registered nowhere. The clause also now warns that a FIX which merely repoints the hint at `os migrate meta` must describe it as a list, not an auto-fix — otherwise the dead prescription is replaced by a false one. Sibling cli.migrate-meta-codemod was read and deliberately left alone: its revision-3 text (#9733 via PR #10412) already states the print-only contract correctly, and its `-codemod` id is immutable by README lifecycle", "ref": "#10418" }, { "revision": 3, "date": "2026-08-24", "change": "text refresh only, no capability change: #10680 landed the fix revision 2's expected-fail described, so acceptance[5] inverts — but NOT into 'the hint now names a registered command'. The route taken was prescribe-nothing: at this base the hint is a two-branch printInfo (doctor.ts) reading 'Found deprecated pattern(s). No automated codemod ships with the CLI — apply each finding’s replacement by hand (re-run with --verbose to print them).' bare and '… — apply the → replacement shown under each finding above.' under --verbose, so revision 2's assertion 'the hint must name a command os actually registers' was the wrong SHAPE for head, not a fail that merely flipped. The print site's comment records why a repoint at `os migrate meta` was refused, and the clause now cites that comment instead of re-deriving the migrate/meta.ts anchors. Six texts changed beyond the named clause, all re-derived at this base: (a) the title's trailing expected-fail phrase inverted; (b) fixtures.knownGaps — revision 2's 'no test anywhere in the repo references --scan-deprecations' is FALSE at head, #10680 added packages/cli/src/commands/doctor-deprecation-hint-commands.test.ts, and the gap text now states what that pin does and does NOT reach (no decoys, no absent-src probe, two seeded lines rather than eight patterns, in-process Doctor.run rather than the shipped binary — so stale-dist stays this item's to catch), with the test added to source; (c) step 6 repurposed from 'record the command the hint prescribes' into a corroboration probe — `os codemod --help` must STILL be not-found, which is what makes 'No automated codemod ships' true rather than the next false statement; (d) step 3 now demands the closing hint from BOTH runs, since it is not the same sentence; (e) three negatives added for the inverted clause's wrong shapes — an unregistered name returning, a repoint at the registered-but-incapable `os migrate meta`, and the count line vanishing with the prescription; (f) every doctor.ts anchor re-derived by content: #10679 moved the scanner block +76 and #10680's comment pushed the print site to +109, so of the eleven numbers revision 2 quoted only walkDir's node_modules prune still held. Verified accurate at head and deliberately LEFT ALONE: content/docs/protocol/backward-compatibility.mdx (the 'not yet available' admission still reads as quoted — and at head the tool is consistent WITH it), packages/cli/README.md §os doctor, the blank template's src/objects/note.object.ts, #9591 (still open, target:v18, pm:on-hold), sibling cli.migrate-meta-codemod (still revision 3), the DEPRECATED_PATTERNS count of 8, the four original negatives, both personas and both traps. Out of scope and filed instead: FOLLOW-UPS.md §7b still lists this prescription as unfixed and names `os migrate meta` as 'the real path', the repoint #10680 refused (#11628)", "ref": "#11420" }, - { "revision": 4, "date": "2026-11-14", "change": "fixtures.requires[0] and steps[0] re-pointed (stale count and an under-specified fixture, card #33330, row 165 of the #32908 close-out ledger; QA run #33058 comment 6846283471 on #32908). doctor.ts's scan loop pushes one result per line per DEPRECATED_PATTERNS entry, so the retired-lookup entry's two seeded spellings are two hits and the count line reads 9 over 8 entries. The scaffold keeps its dependencies: doctor's Dependencies row is an error when node_modules is absent, and an error row exits 1, which a reader could take for the advisory scan gating. No clause changed. Read from source at base 87330e89, not driven live", "ref": "#33330" } + { "revision": 4, "date": "2026-11-14", "change": "fixtures.requires[0] and steps[0] re-pointed (stale count and an under-specified fixture, card #33330, row 165 of the #32908 close-out ledger; QA run #33058 comment 6846283471 on #32908). doctor.ts's scan loop pushes one result per line per DEPRECATED_PATTERNS entry, so the retired-lookup entry's two seeded spellings are two hits and the count line reads 9 over 8 entries. The scaffold keeps its dependencies: doctor's Dependencies row is an error when node_modules is absent, and an error row exits 1, which a reader could take for the advisory scan gating. No clause changed. Read from source at base 87330e89, not driven live", "ref": "#33330" }, + { "revision": 5, "date": "2026-11-15", "change": "steps[5]'s quote and acceptance[3]'s boundary corrected (rows 48 and 199 of ledger 6896511848 on #33761; QA runs #33829 at a557fa38 and #33910 at b914e724). `os codemod --help` prints 'Command codemod not found.' (capital C, the help path), not the quoted lowercase text. The .ts-only walk also skips .tsx and still reads .spec.ts and .d.ts, comments included (doctor.ts scanDeprecatedPatterns, walkDir); the clause now names that boundary. No clause weakened. Read from source at base 0ac112fc", "ref": "#34004" } ] }, { @@ -1296,7 +1309,7 @@ "title": "os migrate duplicates: a read-only JSON inventory of identifiers minted across partitions — within-partition repeats excluded, nothing written, the live two-counter condition reported, and runnable BEFORE the #8686 repair destroys the evidence", "since": "v17", "status": "active", - "revision": 10, + "revision": 11, "priority": "P1", "surface": "cli", "personas": ["operator (local shell, pre-repair audit)"], @@ -1304,7 +1317,7 @@ "app": "showcase", "requires": [ "a scratch app + persistent sqlite DB whose base schema was synced by ONE prior `os dev` boot (the same recipe cli.migrate-plan-apply-json uses), e.g. -d file:/tmp//dup.db — the app config must declare an org-scoped object with an autonumber (or unique) field", - "direct SQL seeding after that boot (sqlite3 CLI or a node better-sqlite3 one-liner): one identifier value held by a row with organization_id NULL AND a row with organization_id '' (the cross-partition duplicate); the same value twice WITHIN '' on a second identifier (the excluded repeat); and two _objectstack_sequences rows for the same object/field — one __global__ tenant, one org-scoped (the live condition). The stock showcase declares ONE org-scoped identifier (showcase_field_zoo.f_autonumber), so the second identifier the within-partition repeat sits on must be declared in the scratch app (another autonumber, or a field carrying unique). Drop that field's partitioned unique index first — uniq_OBJ_organization_id_FIELD (an autonumber defaults to unique: 'organization'; the SQL driver names the index in packages/drivers/driver-sql/src/schema-drift.ts#buildIndexName) — or the repeat's second insert is refused. After the drop, `os migrate plan` over the same database reports that index as an index_mismatch drift (actual '(absent)'): the staging's own footprint, not a finding of this item" + "direct SQL seeding after that boot (sqlite3 CLI or a node better-sqlite3 one-liner): one identifier value held by a row of organization '' AND a row of a second organization '' (the cross-partition duplicate: the report's question is one identifier held across more than one organization partition, packages/cli/src/commands/migrate/duplicates.ts). ⛔ Not a row with organization_id NULL: a table this release creates holds its tenant column NOT NULL (ADR-0131 D1; packages/drivers/driver-sql/src/sql-driver-column-creation.ts, the tenantColumn branch), so that insert is refused (QA run #33829 used a second organization); the same value twice WITHIN '' on a second identifier (the excluded repeat); and two _objectstack_sequences rows for the same object/field — one __global__ tenant, one org-scoped (the live condition). The stock showcase declares ONE org-scoped identifier (showcase_field_zoo.f_autonumber), so the second identifier the within-partition repeat sits on must be declared in the scratch app (another autonumber, or a field carrying unique). Drop that field's partitioned unique index first — uniq_OBJ_organization_id_FIELD (an autonumber defaults to unique: 'organization'; the SQL driver names the index in packages/drivers/driver-sql/src/schema-drift.ts#buildIndexName) — or the repeat's second insert is refused. After the drop, `os migrate plan` over the same database reports that index as an index_mismatch drift (actual '(absent)'): the staging's own footprint, not a finding of this item" ], "knownGaps": [ "ORDERING IS LOAD-BEARING: do NOT boot the dev server again between seeding and scanning — a #8686-repairing boot backfills organization_id = NULL, which is exactly the evidence this report inventories (the command's own header calls the evidence perishable). The duplicates command itself boots read-only (deferSchemaDdl + readOnlyProbe) and is safe to run any number of times", @@ -1313,7 +1326,7 @@ }, "steps": [ "boot the scratch app once with `os dev -d file:/tmp//dup.db` so the base schema exists; stop it", - "seed via direct SQL per the fixture recipe: the cross-partition duplicate, the within-partition repeat, an organizations row for '', and the paired sequence counters", + "seed via direct SQL per the fixture recipe: the cross-partition duplicate, the within-partition repeat, an organizations row for '' and one for '', and the paired sequence counters", "dump the DB's CONTENT before the run — every user table's rows (sqlite3 '.dump' with the CREATE lines aside, or one ordered SELECT * per table), `SELECT * FROM _objectstack_sequences ORDER BY 1`, and `SELECT type, name, tbl_name, sql FROM sqlite_master ORDER BY name` — and checksum each dump; run `os migrate duplicates > report.json; echo $?`; dump and checksum again and byte-compare the three pairs. ⛔ Do not use the whole-file md5 as the oracle: it is not what the read-only contract promises (rows, counters and schema)", "jq the report: .report/.reportVersion/.generatedAt/.database/.globalPartition/.filter/.counters/.scanned/.skipped/.duplicates/.liveConditions/.runtimeIndexPreflight/.summary", "seed the kernel:ready blocker too (#8725). sys_metadata carries NO organization_id column: the runtime index is idx_sys_metadata_overlay_active ON sys_metadata (type, name, COALESCE(package_id, ''), COALESCE(bundle_member, '')) WHERE state = 'active', and the declared NULL-distinct fallback an untightened install has is UNIQUE (type, name, package_id, bundle_member) (sys-metadata.object.ts). Read the index's current SQL first; if it is the tightened form, put the declared one back (DROP INDEX idx_sys_metadata_overlay_active, then CREATE UNIQUE INDEX idx_sys_metadata_overlay_active ON sys_metadata (type, name, package_id, bundle_member)). Then insert two ACTIVE sys_metadata rows with the SAME type and name and package_id and bundle_member both NULL — legal under the NULL-distinct form, colliding under the COALESCE one — and jq .runtimeIndexPreflight and .summary.runtimeIndexesBlocked. Seed a metadata body the spec accepts for that type — for a view, identity keys alone ({ name, label, object }) are refused 'Not a `view` body: no recognized `view` key' (packages/spec/src/ui/view.zod.ts assertViewIdentity), so carry a container slot such as list: { columns: ['name'] } — or expect a [metadata_spec_invalid] hydration line naming the row on any later boot or plan (the boot reading it, not a report finding)", @@ -1343,7 +1356,7 @@ "evidence": "the three before/after dump-checksum pairs (rows, _objectstack_sequences, sqlite_master)" }, { - "clause": "the kernel:ready pre-flight (#8725) reports the RUNTIME-migration class os migrate plan cannot see: one entry per index the two kernel:ready migrations tighten (three — the overlay migration owns two; the third migration, sys_view_definition's, retired with its table under ADR-0131 D13), each blocked|clear|table-absent|unreadable, a blocked one naming every colliding key group and its row count", + "clause": "the runtime-index pre-flight (#8725) reports the RUNTIME-migration class os migrate plan cannot see: one entry per index the runtime migrations build, SEVEN from six migrations at this revision's base (packages/metadata-protocol/src/migrations/runtime-index-preflight.ts#runtimeIndexProbes): idx_sys_metadata_overlay_active and idx_sys_metadata_overlay_draft (ensureMetadataOverlayIndexes), uniq_sys_setting_organization_id_namespace_key_scope_user_id (ensureSysSettingIdentityIndex), uniq_sys_notification_preference_a22d7d27 (ensureNotificationPreferenceIdentityIndex) and uniq_sys_metadata_activation_packageless (ensureActivationLedgerPackagelessIndex) at kernel:ready, and uniq_sys_user_permission_set_packageless and uniq_sys_connector_connection_packageless at schema sync. Read the count off that list, which grows as migrations join (QA run #33829 read 7 where this clause said three); sys_view_definition's migration retired with its table under ADR-0131 D13. Each entry is blocked|clear|table-absent|unreadable, a blocked one naming every colliding key group and its row count", "oracle": "log", "verify": ".runtimeIndexPreflight names idx_sys_metadata_overlay_active as blocked with one key group carrying the seeded type and name, package_id_key '' and bundle_member_key '', and its row count — and the SAME database run through `os migrate plan` mentions neither the index nor the seeded name in its plan REPORT (the boot's own log lines are not the report. Under `--json`, plan's stdout is the plan document alone and every boot line goes to stderr: '[Registry] Registered view: NAME' for every row it hydrates, preceded by '[Registry] Overwriting view: NAME' where the row lands on a key the registry already holds, as the seeded same-name pair does (QA run #24841 read 'Overwriting view: qa_dup_view'; packages/objectql/src/registry.ts#registerItem). The objectql registry prints both through console.log and bootSchemaStack moves to stderr (packages/cli/src/utils/json-stdout.ts#reserveStdoutForJson), and a [metadata_spec_invalid] line for a body the spec refuses. Only on the human path, without `--json`, do the '[Registry]' lines print on stdout, above the report) (the matched control: the declared-index duplicate above IS reported by plan, this one is not); no entry names sys_view_definition", "evidence": "the pre-flight section beside the plan output for one database" @@ -1425,6 +1438,12 @@ "date": "2026-10-20", "change": "acceptance[3].verify names the Overwriting line, and negative[2] moved to steps[9]. Checklist-accuracy findings of QA run #24841 (18.0 sweep round 4 at 307ce4c4). (1) For the seeded same-name pair the plan printed '[Registry] Overwriting view: qa_dup_view', where the verify named only 'Registered view'. Read at base feb09db14a in registry.ts registerItem: it prints 'Overwriting TYPE: KEY' when the key is already held, and 'Registered TYPE: KEY' at the end of every registration. (2) negative[2] (there is no --json flag, and reading its exit 2 as this command's contract is a runner error) stated a runner rule with no product expectation, so it could only score not-run and held the item at partial. Its text moved, unchanged in substance, to steps[9], and negative[3] is now negative[2]; nothing in the item cites either by index. The record's other finding, that planting the within-partition repeat needs the partitioned unique index dropped first, no longer holds: revision 9 (#24850) put it in fixtures.requires[1] (schema-drift.ts buildIndexName). No clause changed", "ref": "#24963" + }, + { + "revision": 11, + "date": "2026-11-15", + "change": "fixtures.requires[1], steps[1] and acceptance[3].clause re-pointed (row 36 of ledger 6896511848 on #33761; QA run #33829 at a557fa38). (1) The cross-partition duplicate asked for an organization_id NULL row, which a table this release creates cannot hold (the tenant column is NOT NULL, ADR-0131 D1); the run used a second organization, which is the report's own question (one identifier across more than one organization partition). (2) acceptance[3] counted three pre-flight entries; runtimeIndexProbes lists seven from six migrations at base 0ac112fc, and the clause now names them and says to read the count off the list. The duplicates.ts docblock that still says four is code, outside this file. No clause weakened", + "ref": "#34004" } ] }, @@ -1675,14 +1694,14 @@ "title": "os lint: the three-severity vocabulary is closed, exit is 1 exactly on errors, --json is the declared lint shape with duration inside the payload, the #4409 registry keeps lint and build in agreement, and the i18n fold hides platform noise honestly", "since": "v16", "status": "active", - "revision": 1, + "revision": 2, "priority": "P2", "surface": "cli", "personas": ["operator (local shell)", "metadata author (pre-build hygiene)"], "fixtures": { "app": "scaffold", "requires": [ - "a scratch blank scaffold whose config the probes stage: one error-severity finding (a camelCase object name → naming/snake-case, or a missing label → required/label), one warning (a lowercase label → convention/label-case), and one #4409 gating-rule breakage shared with cli.build-own-contract's step (the Approval approver expression that does not parse)", + "a scratch blank scaffold whose config the probes stage: one error-severity finding (an object with no label → required/label; ⛔ not a camelCase object or field name, which ObjectSchema refuses at load through its name pattern and field-key record (packages/spec/src/data/object.zod.ts), so the run reads the load-failure path instead of a naming/snake-case finding, QA run #33829), one warning (a lowercase label → convention/label-case), and one #4409 gating-rule breakage shared with cli.build-own-contract's step (the Approval approver expression that does not parse). For the i18n fold, a second locale in the scaffold's i18n block (e.g. i18n: { defaultLocale: 'en', supportedLocales: ['en', 'zh-CN'] }): translation coverage is judged only against the locales the stack declares, so a project with its default locale alone is checked against nothing and the fold and its disclosure line never appear (packages/cli/src/commands/lint.ts, the translation-coverage step; QA run #33829)", "a throwing config in a second scratch dir for the load-failure probes" ], "knownGaps": [ @@ -1759,7 +1778,8 @@ "sibling item cli.build-own-contract (clause 3 is the build side of the registry-parity pair; its #3782 --json parity clause binds build↔validate, NOT lint)" ], "history": [ - { "revision": 1, "date": "2026-08-20", "change": "new — scoped scan-functionality sweep (扫描功能), authored VERIFY-FIRST as the brief required since the hunter had lower confidence here. Source confirmed the three-severity split and errors-only gating; two sketch claims were corrected against lint.ts before authoring: (1) the --json shape is lint's own {passed,total,errors,warnings,suggestions,issues,duration}, not the os validate #3782 parity shape — the parity lint actually owes is the #4409 shared-registry agreement with os build, encoded as its own clause; (2) the exit contract is 0/1 on both paths (process.exit(1), CliExitCode slot), not build's human-path oclif-2 split. The i18n platform fold with its hiddenPlatform disclosure is covered as the third load-bearing surface", "ref": "claude/new-session-0pv25p" } + { "revision": 1, "date": "2026-08-20", "change": "new — scoped scan-functionality sweep (扫描功能), authored VERIFY-FIRST as the brief required since the hunter had lower confidence here. Source confirmed the three-severity split and errors-only gating; two sketch claims were corrected against lint.ts before authoring: (1) the --json shape is lint's own {passed,total,errors,warnings,suggestions,issues,duration}, not the os validate #3782 parity shape — the parity lint actually owes is the #4409 shared-registry agreement with os build, encoded as its own clause; (2) the exit contract is 0/1 on both paths (process.exit(1), CliExitCode slot), not build's human-path oclif-2 split. The i18n platform fold with its hiddenPlatform disclosure is covered as the third load-bearing surface", "ref": "claude/new-session-0pv25p" }, + { "revision": 2, "date": "2026-11-15", "change": "fixtures.requires[0] re-pointed (row 47 of ledger 6896511848 on #33761; QA run #33829 at a557fa38). A camelCase object or field name is refused by ObjectSchema at load, so it never reaches lint's naming/snake-case rule; the error finding is now the missing label. The i18n fold needs a second declared locale: with the default locale alone the coverage step has nothing to judge and step 5's fold never prints. No clause changed. Read from source at base 0ac112fc", "ref": "#34004" } ] }, { @@ -1909,7 +1929,7 @@ "title": "autoMigrate off|safe: a dev boot self-heals ONLY the safe-categorized drift and reports each applied op, `off` (the driver default) and NODE_ENV=production never touch the schema, and a unique index the stored rows already violate is blocked, never auto-applied", "since": "v15", "status": "active", - "revision": 9, + "revision": 10, "priority": "P1", "surface": "cli", "personas": ["operator (local shell)"], @@ -1922,7 +1942,8 @@ ], "knownGaps": [ "the duplicates-BLOCKED leg (the ADR-0120 D4 duplicate pre-flight on a unique create_index: rows that already violate the declared key → the op BLOCKED, category destructive, an applyLimit naming the conflicting group, no index created) needs duplicate rows under a newly declared unique field — stageable only by writing them into the STOPPED scratch sqlite file before the boot that declares `unique: true`. The block is unit-pinned (sql-driver-25031-blocked-unique-apply-limit.test.ts), but that pin runs initObjects with autoMigrate unset and never boots a safe driver over the blocked op, so 'never auto-applied under safe' is the hand-staged leg's; a run may cite the pin per RUNNER rule 6 for the rest, and must record WHICH route each half rests on. Since ADR-0131 D1 a pre-18 bare (organization_id, COLUMN) unique composite proposes no tightening at all — it is the plain composite new DDL declares (sql-driver-unique-tenancy.test.ts › 'bare composite from a pre-18 database — no tightening proposed (ADR-0131 D1)') — so duplicate NULL-organization rows under it are no blocker and stage nothing here", - "`autoMigrate` is honoured by the native sqlite / postgres / mysql drivers only. A sqlite-wasm datasource REFUSES the key: SqliteWasmConfigSchema (packages/spec/src/data/driver/sqlite.zod.ts) is a strict object whose guidance entry for autoMigrate is the refusal sentence ('`autoMigrate` is honoured by the native sqlite / postgres / mysql drivers only — the wasm driver is constructed without it, so writing it here would change nothing'), so a build that writes it there fails naming the key; it is not accepted and ignored. turso's config declares no such key (standalone-stack.ts). Do not stage the wasm/turso arms expecting behavior" + "`autoMigrate` is honoured by the native sqlite / postgres / mysql drivers only. A sqlite-wasm datasource REFUSES the key: SqliteWasmConfigSchema (packages/spec/src/data/driver/sqlite.zod.ts) is a strict object whose guidance entry for autoMigrate is the refusal sentence ('`autoMigrate` is honoured by the native sqlite / postgres / mysql drivers only — the wasm driver is constructed without it, so writing it here would change nothing'), so a build that writes it there fails naming the key; it is not accepted and ignored. turso's config declares no such key (standalone-stack.ts). Do not stage the wasm/turso arms expecting behavior", + "acceptance[3]'s schemaMode half (safe applies nothing unless schemaMode is 'managed') cannot be staged on a boot: a datasource whose schemaMode is not 'managed' is one the platform is a guest in, and SqlDriver.initObjects refuses its DDL at the gate (packages/drivers/driver-sql/src/sql-driver-class-head.ts#assertSchemaMutable, \"DDL operation … is forbidden: datasource schemaMode=…\") before any drift reconcile runs, so no boot reaches the autoOn conjunction with any other schemaMode. That half is read from source (packages/drivers/driver-sql/src/sql-driver-schema-sync.ts#reconcileAndWarnDrift: autoOn = autoMigrate === 'safe' && schemaMode === 'managed'), as QA runs #33829 and #33910 scored it, and the run record says which route each half rests on; the DESTRUCTIVE half is staged live" ] }, "variants": [ @@ -2016,6 +2037,12 @@ "date": "2026-11-14", "change": "knownGaps[1], negative[3], steps[3] and steps[4] re-pointed (stale wording, card #33330, row 63 of the #32908 close-out ledger; QA run #33025 comment 6844741021 and QA run #33081 comment 6850173588 on #32908). A sqlite-wasm autoMigrate is refused at build, not accepted and ignored: SqliteWasmConfigSchema (packages/spec/src/data/driver/sqlite.zod.ts) is a strictObject and its guidance entry for autoMigrate is the refusal's sentence; negative[3] now fails an ACCEPTED key. The production and non-dev legs export OS_AUTH_SECRET, because generateSecret (plugin-auth auth-manager-database-secret.ts) refuses a non-development boot without it. The production warning is not deduplicated in reconcileAndWarnDrift (driver-sql sql-driver-schema-sync.ts), so the step reads its presence; #33081 read it three times. No clause weakened. Read from source at base 87330e89, not driven live", "ref": "#33330" + }, + { + "revision": 10, + "date": "2026-11-15", + "change": "fixtures.knownGaps gains acceptance[3]'s schemaMode limit (rows 44 and 194 of ledger 6896511848 on #33761; QA runs #33829 at a557fa38 and #33910 at b914e724, both scoring that half from source): a non-managed datasource is refused DDL at assertSchemaMutable before reconcileAndWarnDrift runs, so the autoOn conjunction is unreachable with another schemaMode on any boot. No clause changed. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -2117,7 +2144,7 @@ "title": "`os migrate organization-ownership` upgrades a database 17.x or an 18.0 pre-release (18.0.0-next.*) created (18.x): a bare run writes the reviewed plan and changes nothing; `--apply --plan-file PLAN --backup-taken` runs every step — attribution through the moves, the declared webhook and sharing-rule settlements, the column drops and NOT NULL — and certifies the marker at this release's ownership shape generation; the served boot refuses an uncertified database, naming the command, and boots a certified one; `os migrate apply --allow-destructive` still withholds every organization_id drop the ceremony owns, and `os migrate comment-reactions --apply` stays pinned", "since": "v18", "status": "active", - "revision": 11, + "revision": 12, "priority": "P0", "surface": "cli", "personas": [ @@ -2182,7 +2209,7 @@ { "clause": "an 18.0 pre-release database (one an 18.0.0-next.* release created and served) takes the same path as a v17 one and keeps its data: the served boot refuses it, the reviewed apply completes, and the next boot serves it with its identity mail, its global setting audit, its pending mail jobs and its declared webhook carried over", "oracle": "build", - "verify": "steps[5], each leg read at its own layer. Boot output: the first `os serve` exits 1 before any listening line, opening \"This database carries no organization-ownership marker\" and naming the tables still carrying organization_id (sys_flow_credential and sys_secret on 18.0.0-next.5); a database an 18.0.0-next.3 ceremony already certified at shape generation 0 is refused instead with \"… certified by an organization-ownership ceremony of shape generation 0, and this release requires generation 1 …\". The apply exits 0 with complete true and blocking 0, and the second boot reaches its serving line. Row reads, before the plan and after the second boot: every identity mail row (related_object sys_user, which is the reset and verification mail, and any magic-link mail) is in sys_identity_email under its original id, equal over the columns both tables hold, and gone from sys_email, while organization invitations stay in sys_email (packages/cli/src/utils/organization-ownership-apply.ts#SIBLING_MOVES); every sys_setting_audit row with scope 'global' is in sys_platform_setting_audit and gone from sys_setting_audit; every pending or running email.send.async or email.attachment.reclaim job naming a moved mail carries object sys_identity_email in its payload and metadata, while completed jobs and the organization-invitation job are unchanged; and no row disappears outside the apply report: each pre-existing table's count after equals its count before, less what the report's steps say they moved or deleted. On the cli-18-prerelease-db restore, sys_automation_run in the telemetry sibling keeps its count across the second boot but not two of its ids: the recipe's knownGaps[3] says why, and those two ids are not data the apply lost. On the same restore, the telemetry sibling's sys_activity shard named by the dump's day (sys_activity__r20261027) is dropped by the FIRST, refused boot once that day is outside sys_activity's 14-day retention window: rotation retention at boot, before any plan (the recipe's knownGaps[4]). Take sys_activity's before-count after the refused boot, and do not count the dropped shard as a row the apply lost. The door's answer: each pre-release user signs in with its 18.0 password (200; a wrong one 401); the token read from the moved reset mail resets (200); and the one showcase_task PATCH writes exactly one sys_http_delivery row whose ref_id is declared:com.example.showcase/showcase_task_changed (the declaring package's id, then the name: packages/qa/dogfood/test/upgrade-18x-harness.dogfood.test.ts pins it)", + "verify": "steps[5], each leg read at its own layer. Boot output: the first `os serve` exits 1 before any listening line, opening \"This database carries no organization-ownership marker\" and naming the tables still carrying organization_id (sys_flow_credential and sys_secret on 18.0.0-next.5); a database an 18.0.0-next.3 ceremony already certified at shape generation 0 is refused instead with \"… certified by an organization-ownership ceremony of shape generation 0, and this release requires generation 1 …\". The apply exits 0 with complete true and blocking 0, and the second boot reaches its serving line. Row reads, before the plan and after the second boot: every identity mail row (related_object sys_user, which is the reset and verification mail, and any magic-link mail) is in sys_identity_email under its original id, equal over the columns both tables hold, and gone from sys_email, while organization invitations stay in sys_email (packages/cli/src/utils/organization-ownership-apply.ts#SIBLING_MOVES); every sys_setting_audit row with scope 'global' is in sys_platform_setting_audit and gone from sys_setting_audit; every pending or running email.send.async or email.attachment.reclaim job naming a moved mail carries object sys_identity_email in its payload and metadata, while completed jobs and the organization-invitation job are unchanged; and no row disappears outside the apply report: every row id read before the plan is still in its table after the second boot, except the rows the report's steps say they moved (read in their new table, above) or deleted, whose numbers match the report. A count may grow: the second boot serves this release's composition, whose seed and bookkeeping add rows (on the cli-18-prerelease-db restore, QA runs #33784 and #33909: showcase_invoice_line 5 → 10, sys_user_position 5 → 10, sys_exchange_rate 0 → 4, sys_seed_landed_key 0 → 141, sys_migration 4 → 6, sys_oauth_resource 1 → 2, sys_metadata_activation 0 → 1), and an added row is no loss. On the cli-18-prerelease-db restore, sys_automation_run in the telemetry sibling keeps its count across the second boot but not two of its ids: the recipe's knownGaps[3] says why, and those two ids are not data the apply lost. On the same restore, the telemetry sibling's sys_activity shard is re-dated by the restore to the day before the run, so the first, refused boot keeps it (the recipe's knownGaps[4]) and sys_activity is read like any table. The door's answer: each pre-release user signs in with its 18.0 password (200; a wrong one 401); the token read from the moved reset mail resets (200); and the one showcase_task PATCH writes exactly one sys_http_delivery row whose ref_id is declared:com.example.showcase/showcase_task_changed (the declaring package's id, then the name: packages/qa/dogfood/test/upgrade-18x-harness.dogfood.test.ts pins it)", "evidence": "the refused boot's excerpt and exit code, the apply report's complete and blocking, the serving line; the before and after reads of sys_email, sys_identity_email, sys_setting_audit, sys_platform_setting_audit and the mail jobs, with per-table counts; the sign-in, reset and delivery answers" } ], @@ -2271,6 +2298,12 @@ "date": "2026-11-14", "change": "acceptance[5].verify carves out the restored sys_activity shard (stale fixture assumption, card #33330, rows 18 and 213 of the #32908 close-out ledger; row 213 routed from batch E #33331). QA runs #32953 and #33087 (comment 6850382730 on #32908; A-3 of #32102) read the cli-18-prerelease-db restore's sys_activity__r20261027 shard (66 rows) gone after the first, refused boot. Source agrees that this is designed retention: sys_activity keeps 14 daily shards with retention maxAge 14d (packages/plugins/plugin-audit/src/objects/sys-activity.object.ts), driver-sql's initObjects runs ensureRotation at every boot, and cli-prerelease-fixture.ts restore does not re-date shards the way the harness's fixture-as-of.ts does. 'No row disappears outside the apply report' now takes sys_activity's before-count after the refused boot. The recipe gains knownGaps[4] saying the same, and its knownGaps[1] no longer pins the retry digits (QA run #33087 read attempt_count 4 and status failed, not 2 to 3). No clause weakened: every table the apply touches is still counted. Read from source at base 87330e89, not driven live", "ref": "#33330" + }, + { + "revision": 12, + "date": "2026-11-15", + "change": "acceptance[5].verify re-pointed twice, with the cli-18-prerelease-db recipe it scores on (rows 5, 6 and 186 of ledger 6896511848 on #33761; QA runs #33784 at a557fa38 and #33909 at b914e724). (1) 'Each table's count after equals its count before, less what moved' had no room for the rows this release's own second boot adds (showcase_invoice_line 5 → 10, sys_seed_landed_key 0 → 141 and others, none a duplicate or a loss): the oracle is now that every pre-existing id survives unless the report moved or deleted it, and a count may grow. (2) The carve-out for a sys_activity shard dropped at the first boot is retired: cli-prerelease-fixture.ts restore now re-dates rotation shards to the day before the run (dumpAsOf over fixture-as-of.ts), and QA run #33784 read sys_activity__r20261114, 66 rows, after the refused boot. The recipe's knownGaps[4] and sequence[0].expect say the same. No clause weakened: every pre-existing row is still accounted for. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -2279,7 +2312,7 @@ "title": "CLI authoring commands on v18: `os meta delete|register --package ID` address one package's row (an empty --package is refused before send), `os meta register --force` passes a 409 DESTRUCTIVE_CHANGE, a no-op delete prints \"Nothing deleted\", and `os explain RULE_ID` explains a lint rule (unknown id exits 1)", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "cli", "personas": [ @@ -2295,7 +2328,7 @@ ] }, "steps": [ - "`os meta register view --data qa_view.json --package PKG` with PKG the writable package, the body a ViewItem record named `.` (e.g. showcase_project.qa_view — a standalone ViewItem's name must be dotted, 422 invalid_format otherwise, and a container named qa_view on showcase_project collides with that object's own container); then `os meta delete view showcase_project.qa_view --package \"\"`", + "`os meta register view --data qa_view.json --package PKG` with PKG the writable package, the body a ViewItem record named `.` (e.g. showcase_project.qa_view — a standalone ViewItem's name must be dotted, 422 invalid_format otherwise, and a container named qa_view on showcase_project collides with that object's own container) that carries `object`, `viewKind: 'list'` and a list `config`, e.g. { name: 'showcase_project.qa_view', object: 'showcase_project', label: 'QA view', viewKind: 'list', config: { columns: ['name'] } }: ViewItemSchema is discriminated on viewKind (packages/spec/src/ui/view.zod.ts#ViewItemSchema), and a body without it answers 422 INVALID_METADATA (QA run #33829); then `os meta delete view showcase_project.qa_view --package \"\"`", "`os meta register object --data destructive.json` then with `--force`", "`os meta delete view qa_absent_view`", "`os explain field-no-consumers`, `os explain field-no-consumers --json`, `os explain`, `os explain no_such_rule`" @@ -2359,6 +2392,12 @@ "date": "2026-11-14", "change": "fixtures.requires[2] re-pointed (under-specified fixture, card #33330, row 82 of the #32908 close-out ledger; QA run #33025 comment 6844741021 on #32908). The writable package must declare a dependency on com.example.showcase, or the view save the step makes is refused 422: resolveWritePackageScope (packages/metadata-protocol/src/protocol-write-package-scope.ts) scopes a package write's validation to the written package and its declared dependency closure, and showcase_project lives outside a package that declares none. No clause changed. Read from source at base 87330e89, not driven live", "ref": "#33330" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "steps[0] gives the ViewItem body its viewKind (row 42 of ledger 6896511848 on #33761; QA run #33829 at a557fa38): a body with no viewKind answers 422 INVALID_METADATA, because ViewItemSchema is a union discriminated on viewKind ('list' | 'form'). The example body parses against the built schema at base 0ac112fc. No clause changed", + "ref": "#34004" } ] }, @@ -2700,14 +2739,14 @@ "title": "The address grammar reserves its segments: a bucket 2/3 name led by _ is refused at defineStack and os validate; a namespace that spells a grammar literal is refused by os validate and os build (exit 1, no artifact) and at the running install door, while a package the boot registers keeps booting with a warning; and lint's namespace-prefix rule judges only capabilities and positions", "since": "v18.4", "status": "active", - "revision": 3, + "revision": 4, "priority": "P2", "surface": "mixed", "personas": ["developer at the CLI", "admin (the seeded admin): the install leg"], "fixtures": { "app": "showcase", "requires": [ - "a scratch app that declares a flow named _qa_flow; a scratch app whose manifest namespace is hooks (a NAMESPACE_REFUSED_LITERALS value), and a copy of it whose namespace is triggers (a namespace that only contains a literal); and a scratch app with a flow whose name carries no namespace prefix", + "a scratch app that declares a flow named _qa_flow; a scratch app whose manifest namespace is hooks (a NAMESPACE_REFUSED_LITERALS value), and a copy of it whose namespace is triggers (a namespace that only contains a literal); and a scratch app with a flow whose name carries no namespace prefix. Every hand-written scratch app declares sharingModel on each object it carries (e.g. sharingModel: 'private', as the blank scaffold's note object does): without it validate and build stop at the error-severity security-owd-unset finding (packages/lint/src/validate-security-posture.ts#SECURITY_OWD_UNSET) before the namespace judgement this item reads is visible, which QA run #33853 met on the triggers copy", "for the install leg, an artifact that names the namespace hooks: os build refuses to write one since #31968, so build the hooks app under any other namespace and set manifest.namespace to hooks in its dist/objectstack.json by hand" ] }, @@ -2784,6 +2823,12 @@ "date": "2026-11-14", "change": "steps[3] re-pointed (stale step, card #33330, row 47 of the #32908 close-out ledger; QA run #32940 runner R5 comment 6839694279, C4 and section 6, and QA run #33094 comment 6852480973 on #32908). The boot leg runs on `os serve --dev`: `os dev` compiles by default since #26130, and packages/cli/src/commands/compile.ts runs findNamespaceAddressLiteralRefusals, so the literal namespace is refused at the compile and the boot-warning clause cannot be read there; both runs passed acceptance[3] on serve --dev. No clause changed. Read from source at base 87330e89, not driven live", "ref": "#33330" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "fixtures.requires[0] names the sharingModel every scratch app needs (row 89 of ledger 6896511848 on #33761; QA run #33853 at a557fa38): a hand-written object without it is refused by the error-severity security-owd-unset rule, which hid the namespace verdict on the triggers copy. No clause changed. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, diff --git a/docs/qa/platform-checklist/areas/platform-core.json b/docs/qa/platform-checklist/areas/platform-core.json index 1a64bf457e3..e01f4022740 100644 --- a/docs/qa/platform-checklist/areas/platform-core.json +++ b/docs/qa/platform-checklist/areas/platform-core.json @@ -158,7 +158,7 @@ "title": "Seed integrity: row counts match the authored seed, values land verbatim, replay is idempotent", "since": "v15", "status": "active", - "revision": 7, + "revision": 8, "priority": "P0", "surface": "api", "personas": ["seeded admin (admin@objectos.ai / admin123)"], @@ -170,10 +170,10 @@ }, "steps": [ "after a clean fresh boot, derive the expected per-object row counts from the app's own seed module (examples/app-showcase/src/data/seed/index.ts — count the records arrays; re-derive rather than trusting a stale list if seeds changed)", - "baseline for cross-checking the derivation — all 20 datasets of ShowcaseSeedData, 138 rows, counted at 8523ef9a by importing the module (QA run #32135's boot banner read the same 138 at ff04ad81): showcase_account=14, showcase_contact=32 (8 named + 24 bulk prospects), showcase_inquiry=3, showcase_product=4, showcase_project=5, showcase_task=10, showcase_category=4, showcase_business_unit=9, sys_business_unit=5, showcase_team=2, showcase_project_membership=3, showcase_field_zoo=2, sys_exchange_rate=4 (two rates each for EUR and JPY), showcase_invoice=12, showcase_invoice_line=7, showcase_expense_report=4, showcase_expense_line=13, showcase_preference=1, showcase_announcement=2, showcase_client_brief=2", + "baseline for cross-checking the derivation — all 20 datasets of ShowcaseSeedData, 141 rows, counted at 0ac112fc by importing the module (QA runs #33784 at a557fa38 and #33909 at b914e724 derived the same 141): showcase_account=14, showcase_contact=32 (8 named + 24 bulk prospects), showcase_inquiry=3, showcase_product=4, showcase_project=5, showcase_task=10, showcase_category=4, showcase_business_unit=9, sys_business_unit=5, showcase_team=2, showcase_project_membership=3, showcase_field_zoo=2, sys_exchange_rate=4 (two rates each for EUR and JPY), showcase_invoice=12, showcase_invoice_line=10, showcase_expense_report=4, showcase_expense_line=13, showcase_preference=1, showcase_announcement=2, showcase_client_brief=2", "for each seeded object, GET /api/v1/data/?$top=1 and read the server total; build the expected-vs-actual table", "GET the Field Zoo 'Specimen — Full' row and spot-diff authored values (f_multiselect ['red','green'] as a set, f_lookup resolving to the Northwind account id, f_json nested object intact, f_time in its canonical stored form — authored '14:30', served '14:30:00', which is equal and not a drift; packages/core/src/utils/temporal-storage-form.ts#canonicalTimeOfDay)", - "read the seed outcome: every seed source reports success and none reports a rejection or a partial load. ⚠️ at the default log level (warn) SeedLoader prints NO success line, so a grep for one finds nothing on a healthy boot. Read the ready banner's `Seeds:` row instead — it is immune to the level (packages/runtime/src/seed-summary.ts), e.g. `Seeds: com.example.showcase 138 rows`, and turns yellow with ⚠ and an `N ok / M errors` or `lost links` count when rows were dropped. `--log-level info` additionally prints `[Seeder] Seed loading complete {inserted, updated, skipped, errored}`; a load that dropped records logs `[Seeder] Seed loading completed with N dropped record(s)…` at warn and is visible at either level", + "read the seed outcome: every seed source reports success and none reports a rejection or a partial load. ⚠️ at the default log level (warn) SeedLoader prints NO success line, so a grep for one finds nothing on a healthy boot. Read the ready banner's `Seeds:` row instead — it is immune to the level (packages/runtime/src/seed-summary.ts), e.g. `Seeds: com.example.showcase 141 rows`, and turns yellow with ⚠ and an `N ok / M errors` or `lost links` count when rows were dropped. `--log-level info` additionally prints `[Seeder] Seed loading complete {inserted, updated, skipped, errored}`; a load that dropped records logs `[Seeder] Seed loading completed with N dropped record(s)…` at warn and is visible at either level", "restart the server against the SAME file DB; re-run the count sweep and diff against the first sweep. Every dataset replays create-only: no dataset declares mode 'upsert', so each takes the seed default `ignore` (the seed module's own comment says why), and a replay matches each row by its externalId and leaves it as it is — no row is added, none is rewritten" ], "acceptance": [ @@ -252,6 +252,12 @@ "date": "2026-11-10", "change": "steps[1], steps[4] and steps[5], acceptance[3].clause and negative[1] corrected. Checklist-accuracy findings of QA run #32135 (the maintainer-named full-platform run at ff04ad81; card #32168). (1) steps[1]'s baseline said 19 datasets and 132 rows, and the run's boot read 138: ShowcaseSeedData now carries 20 datasets and 138 rows, because sys_exchange_rate (4 rows) was added and showcase_invoice_line authors 7 lines, not 5. Counted at base 8523ef9a by importing ShowcaseSeedData (examples/app-showcase/src/data/seed/index.ts) and summing each records array; steps[4]'s banner example follows. (2) steps[5], acceptance[3] and negative[1] called the replay an upsert, but no dataset declares mode 'upsert': each takes the seed default `ignore` (create-only), as the seed module's comment says. The assertion is unchanged: a restart changes no count", "ref": "#32168" + }, + { + "revision": 8, + "date": "2026-11-15", + "change": "steps[1]'s baseline re-counted and steps[4]'s banner example follows (rows 1 and 183 of ledger 6896511848 on #33761; QA runs #33784 at a557fa38 and #33909 at b914e724 derived 10 invoice lines and 141 rows, as the step tells a run to). ShowcaseSeedData still carries 20 datasets; showcase_invoice_line now authors 10 lines, not 7, so the total is 141, not 138. Counted at base 0ac112fc by importing examples/app-showcase/src/data/seed/index.ts and summing each records array. No clause changed", + "ref": "#34004" } ] }, @@ -634,7 +640,7 @@ "title": "The built-in apps a stock boot REGISTERS (Setup / Account) render every merged-nav destination; app-level and entry-level gates are enforced, not errored — and Studio's deliberate absence is asserted, never hunted", "since": "v15", "status": "active", - "revision": 14, + "revision": 15, "priority": "P0", "surface": "browser", "personas": [ @@ -657,7 +663,7 @@ "as admin, GET /api/v1/meta/app?id=setup and extract every merged nav destination — Setup is a SHELL of empty group anchors (packages/platform-objects/src/apps/setup.app.ts: group_overview/apps/people_org/access_control/approvals/configuration/diagnostics/integrations/advanced) filled by SETUP_NAV_CONTRIBUTIONS (setup-nav.contributions.ts) plus capability-plugin contributions (plugin-security Positions/Permission Sets, plugin-sharing Sharing Rules/Record Shares, plugin-approvals, plugin-webhooks)", "GET /api/v1/meta/app with NO query first and record the names actually served — a stock boot answers exactly showcase_app, setup, account. Then GET /api/v1/meta/app?id=account (account.app.ts — Profile + Inbox/Security/Developer groups). ⚠️ GET /api/v1/meta/app?id=studio answers 200 {\"items\":[]} on every stock boot and that is the expected result (knownGap): record the absence as an assertion and move on — do NOT install @objectstack/studio to make the step runnable", "as admin, hand-walk each destination in each app. At a window narrower than 1416 px (1280 px included) the console folds the sidebar to its icon rail, and Setup and Account open that way (ui/packages/app-shell/src/layout/consoleSidebarRail.ts CONSOLE_SIDEBAR_RAIL_BELOW_WIDTH, objectstack#27593; QA run #29877 met it at 1280 px): press the sidebar toggle at the app bar's left edge (Ctrl/⌘+B) to unfold it before expanding any group. EXPAND every nav group first: some render collapsed by default — Setup's Advanced group and Account's Developer group declare `expanded: false` (packages/platform-objects/src/apps/setup.app.ts, account.app.ts), and QA run #24557 found Setup's Configuration group collapsed as well — so a walk that never expands them never reaches their entries. Then navigate, wait for render, SCREENSHOT FIRST, then read the DOM — assert no pageerror, no 'failed to load', no blank
, no 'no actions configured' placeholder", - "Setup detail: confirm each settings URL entry (nav_settings_* → /apps/setup/system/settings/) opens the settings namespace form — the 11 namespaces of a stock single-posture boot, localization/company/branding/auth/access_policy/mail/sms/storage/ai/knowledge/lifecycle: the nav_settings_* entries of packages/platform-objects/src/apps/setup-nav.contributions.ts, plus nav_settings_branding, which packages/services/service-settings/src/settings-service-plugin.ts contributes only where no organization wall stands, and Users / Organization / Business Units / Teams / Sessions / OAuth Applications render. User preferences and identity links are not Setup destinations: open a user from Users and confirm the user page's Preferences and Linked Accounts tabs render that user's rows", + "Setup detail: confirm each settings URL entry (nav_settings_* → /apps/setup/system/settings/) opens the settings namespace form — the 11 namespaces of a stock single-posture boot, localization/company/branding/auth/access_policy/mail/sms/storage/ai/knowledge/lifecycle: the nav_settings_* entries of packages/platform-objects/src/apps/setup-nav.contributions.ts, plus nav_settings_branding, which packages/services/service-settings/src/settings-service-plugin.ts contributes only where no organization wall stands, and Users / Organization / Business Units / Teams / Sessions / OAuth Applications render. User preferences and identity links are not Setup destinations: open a user's record page, /_console/apps/setup/sys_user/record/ID (a row click on the Users list opens a side panel at ?recordId=, which is not that page: take the id from the row or the panel), and confirm the user page's Preferences and Linked Accounts tabs (packages/platform-objects/src/pages/sys-user.page.ts#SysUserDetailPage) render that user's rows", "Studio detail is NOT walked from here — the app is not registered on a stock boot (knownGap), so there is no merged nav to render. Its metadata:resource lists and component surfaces (App Builder, All Metadata Types, Packages, API Console, Flow Runs, Public Forms) are reached through the console surface at /_console/studio// and are covered by area studio-authoring. What THIS item asserts about Studio is the absence itself, per clause 6", "Account detail: confirm Profile (account:profile_card), Notifications (sys_inbox_message/mine), Approvals (nav_account_approvals, the approvals:inbox component, served as …/component/approvals/inbox — the Approvals Inbox, not the sys_approval_request grid; account.app.ts), Linked Accounts (sys_account), Active Sessions (sys_session/mine), API Keys (sys_api_key/mine), OAuth Applications (sys_oauth_application/mine) and Connect an Agent (nav_connect_agent) each render — 8 Account destinations and 48 Setup destinations for the admin on a stock single-org showcase boot, as QA runs #32953 (at 5fb79bc0) and #33087 (at 8e3d4a54) read them (GET /api/v1/meta/app leaves, which match the nav source minus its gates). QA run #29877 read 46 at 589049b0, before Access policy (nav_settings_access_policy, the access_policy namespace) joined the Configuration group. Since QA run #28545's reading Setup's Packaged automation page retired under ADR-0146 D11, leaving Packaged Actions (nav_packaged_actions, automation:packaged-actions; #28785), and its unfiltered Packages entry moved to Studio (#29547) (47 for #28927, 50 at eeec88d1 for QA run #28545, 48 re-measured at 3fd80337 for #28338, QA run #27481 read 44 and 8, QA run #24557 read 42 at 5b14b7f3, 45 on 2026-10-01, and #9453 recorded 43 and 7). Recount from the payload each run", "confirm the gated entries resolve to ABSENT-not-erroring for the admin: nav_organizations (requiresService org-scoping) is absent in single-org mode; nav_jwks Signing Keys is ABSENT for EVERY persona, admin included — the entry was removed in #7544 because sys_jwks declares apiEnabled:false, so its list answers OBJECT_API_DISABLED (404) for all callers and no permission gate could prune it; SSO Providers is absent unless OS_SSO_ENABLED (knownGap)", @@ -798,6 +804,12 @@ "date": "2026-11-14", "change": "steps[3] and steps[5] recounted (stale count, card #33330, row 16 of the #32908 close-out ledger). steps[3]: a stock single-posture boot serves 11 settings namespaces, not 10: access_policy (nav_settings_access_policy, 'Access policy', ADR-0069 TL;DR 6) sits in packages/platform-objects/src/apps/setup-nav.contributions.ts's group_configuration beside Authentication with no requiredPermissions. steps[5]: Setup serves 48 destinations, not 46, as QA run #32953 (body section 1) and QA run #33087 (comment 6850382730 on #32908) read them; 46 is kept as #29877's older reading. The step still says recount from the payload each run, and no clause changed. Read from source at base 87330e89; the 48 is the two runs' live reading, not re-driven", "ref": "#33330" + }, + { + "revision": 15, + "date": "2026-11-15", + "change": "steps[3] names the user record URL (row 8 of ledger 6896511848 on #33761; QA run #33784 at a557fa38): a row click on the Setup Users list opens a side panel (?recordId=), and the Preferences and Linked Accounts tabs live on the record page (/apps/setup/sys_user/record/ID, the sys_user_detail page). No clause changed. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -1097,14 +1109,14 @@ "title": "Notification center (bell / InboxPopover): badge counts distinct unread topics + pending approvals, repeats coalesce, per-group and global mark-read drop the badge", "since": "v16", "status": "active", - "revision": 6, + "revision": 7, "priority": "P1", "surface": "mixed", "personas": ["seeded admin (admin@objectos.ai / admin123)"], "fixtures": { "app": "showcase", "requires": [ - "a recurring notification that produces many identical rows, so the topic-coalescing is exercised rather than assumed. The showcase_scheduled_digest flow (once a minute — the exact flood inboxGrouping.ts was written for) fires only on a boot that exports OS_AUTOMATION_SCHEDULED_WORK_ENABLED=1: by default a stock boot leaves packaged schedules unbound by deployment policy, so without the switch no digest row ever lands. Boot with it exported, or coalesce on the repeated rows the stock seed already delivers (QA run #23939 used the three seeded approval.requested rows) and record which", + "a recurring notification that produces many identical rows, so the topic-coalescing is exercised rather than assumed. The showcase_scheduled_digest flow (once a minute — the exact flood inboxGrouping.ts was written for) fires only on a boot that exports OS_AUTOMATION_SCHEDULED_WORK_ENABLED=1: by default a stock boot leaves packaged schedules unbound by deployment policy, so without the switch no digest row ever lands. Boot with it exported, or coalesce on the repeated rows the stock seed already delivers (QA run #23939 used the three seeded approval.requested rows) and record which. ⚠️ The stock seed alone cannot drive acceptance[4]: it holds one topic, so once steps[5] marks that group read nothing unread is left and 'Mark all read' is hidden. Mark the seeded group per steps[5] and take acceptance[4] on the digest rows (QA run #33853 did both on one boot with OS_AUTOMATION_SCHEDULED_WORK_ENABLED=1); a run without the digest records acceptance[4] blocked(fixture), never pass", "at least one pending approval request (a sys_approval_request row in status pending whose approvers include the admin) so the approvals portion of the badge and the Approvals tab have something to show" ], "knownGaps": [ @@ -1177,7 +1189,7 @@ "objectui packages/app-shell/src/layout/inboxGrouping.ts (groupNotifications — (topic,title) coalescing, #2765)", "objectui packages/app-shell/src/layout/AppHeader.tsx (postMarkRead → POST /api/v1/notifications/read[/all]; poll GET /notifications?view=mine)", "packages/runtime/src/route-ledger.ts (GET /notifications, POST /notifications/read, POST /notifications/read/all)", - "packages/runtime/src/domains/notifications.ts#handleNotificationRequest (markRead upserts sys_notification_receipt; empty/mis-keyed ids → 400 — re-pointed #18104: markRead is a PROVIDER METHOD this file only calls off the inbox capability, a member access; the POST /notifications/read branch that validates the body and issues it is in handleNotificationRequest)", + "packages/runtime/src/domains/notifications.ts#handleNotificationRequest (markRead upserts sys_notification_receipt; a body without an `ids` string array (no ids, ids: 'n1', or the key misspelled) → 400 against MarkNotificationsReadRequestSchema (packages/spec/src/api/protocol.zod.ts), while an EMPTY ids array is valid and answers 200 readCount 0 (QA run #33853) — re-pointed #18104: markRead is a PROVIDER METHOD this file only calls off the inbox capability, a member access; the POST /notifications/read branch that validates the body and issues it is in handleNotificationRequest)", "ADR-0030 (sys_inbox_message L5 materialization + sys_notification_receipt); ADR-0103 (receipt object api-method lockdown)", "cross-ref: this is distinct from i18n.notification-localized-and-clears (single-entry localization + clear) and approvals.notification-deep-link (deep-link) — do not double-count their coverage here" ], @@ -1207,6 +1219,12 @@ "date": "2026-11-14", "change": "steps[0], steps[5], fixtures.requires[1] and acceptance[5] name the approvals count's real read (card #33330, row 260 of the #32908 close-out ledger; QA run #33094 comment 6851700388 on #32908). The bell's approvals addend is the `total` of GET /api/v1/approvals/requests?status=pending&approverId=… (ui/packages/app-shell/src/hooks/sharedUserFeeds.ts#useSharedPendingApprovalRequests, approverIdentities), not a sys_approval_request my_pending read, and the run found no door that serves the my_pending count (meta view read 404, ?view= on the list door 400). acceptance[5] keeps its meaning, that the tab's count equals the pending approvals waiting on the user, and its verify now compares against that read, cross-checked with the view's filter over the data API. Read from source at base 87330e89, not driven live", "ref": "#33330" + }, + { + "revision": 7, + "date": "2026-11-15", + "change": "source[4] and fixtures.requires[0] re-pointed (rows 124 and 125 of ledger 6896511848 on #33761; QA run #33853 at a557fa38). source[4] said empty ids answer 400: POST /notifications/read {\"ids\":[]} answers 200 readCount 0, since MarkNotificationsReadRequestSchema takes any string array; a body without ids is the 400. requires[0] offered the stock seed alone as a coalescing fixture, but with one topic nothing is left for mark-all-read after the per-group mark, so acceptance[4] needs the digest flood. No clause changed. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -2323,7 +2341,7 @@ "title": "Marketplace console honesty: nav entries live and die with their capability, the disabled state renders the configuration conclusion (never a red 'failed to load') for every viewer ahead of the admin guard, Installed Apps drives the real same-origin lifecycle, and an enabled runtime turns a non-admin away with access-denied", "since": "v17", "status": "active", - "revision": 7, + "revision": 8, "priority": "P2", "surface": "browser", "personas": [ @@ -2335,7 +2353,7 @@ "requires": [ "the same two boots as platform-core.marketplace-install-local-lifecycle (boot A default cloud arm, boot B OS_CLOUD_URL=off offline arm) — reuse them and its installed CRM artifact for the Installed Apps content", "the marketplace routes are registered by DefaultAppContent in @object-ui/app-shell (system/marketplace, system/marketplace/:packageId), so they exist for every host console", - "boot B's Installed Apps content comes from an install, and install-local caches the manifest under the WORKING DIRECTORY's .objectstack/installed-packages (packages/cloud-connection/src/local-manifest-source.ts#DEFAULT_INSTALLED_PACKAGES_DIR, resolved against process.cwd(); the CLI constructs the plugin with no storageDir). A per-boot OS_HOME and OS_STORAGE_LOCAL_ROOT do NOT redirect it, so a boot started from the shared tree writes examples/app-showcase/.objectstack/installed-packages/ into it. Boot every leg that installs a package from a scratch copy of the app, never from the tree (RUNNER.md environment facts)" + "boot B's Installed Apps content comes from an install, and install-local keeps the manifest in its ledger under OS_HOME/installed-packages when OS_HOME is set, and under the WORKING DIRECTORY's .objectstack/installed-packages only when it is not (packages/cloud-connection/src/local-manifest-source.ts#resolveInstalledPackagesDir; QA run #33853 read the CLI print and use OS_HOME/installed-packages). OS_STORAGE_LOCAL_ROOT does not move it. A boot with OS_HOME set copies a ledger it finds under the working directory into the home once and leaves that one in place, so a boot started from the shared tree adopts, and without OS_HOME writes, examples/app-showcase/.objectstack/installed-packages/. Boot every leg that installs a package from a scratch copy of the app, never from the tree (RUNNER.md environment facts)" ], "knownGaps": [ "rendering the browse CATALOG (boot A) needs the public control plane reachable — on an egress-blocked runner the catalog leg is blocked(environment). The environment it needs is a boot whose process reaches the control plane: the default packages/cloud-connection/src/cloud-url.ts#DEFAULT_CLOUD_URL (https://cloud.objectos.ai), or an OS_CLOUD_URL that answers. No CI job drives this item, and the QA sandbox's egress proxy denies the host (QA run #21782, parked on #22017 row 10); the DISABLED state (boot B) is the leg this item can always prove, and it is the one #5504 was about" @@ -2437,6 +2455,12 @@ "date": "2026-11-14", "change": "steps[4] sends the member legs through an app the member can open (card #33330, row 266 of the #32908 close-out ledger; QA run #33096 comment 6852480973 on #32908, whose member legs used /apps/com.example.showcase/system/marketplace). The Setup app declares requiredPermissions ['setup.access'] (packages/platform-objects/src/apps/setup.app.ts), which a plain member does not hold, while AppContent mounts system/marketplace and system/marketplace/:packageId under every app, so the member's MarketplaceAccessDenied and MarketplaceDisabled reads are reachable only through another app's prefix. No acceptance clause changed. Read from source at base 87330e89, not driven live", "ref": "#33330" + }, + { + "revision": 8, + "date": "2026-11-15", + "change": "fixtures.requires[2] re-pointed (row 110 of ledger 6896511848 on #33761; QA run #33853 at a557fa38): install-local's ledger follows OS_HOME (OS_HOME/installed-packages) and falls back to the working directory's .objectstack/installed-packages only without it, adopting a working-directory ledger once (local-manifest-source.ts resolveInstalledPackagesDir); the text said OS_HOME does not redirect it. The scratch-copy rule stands. No clause changed. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -2541,7 +2565,7 @@ "title": "Docs portal render: /docs lists the installed corpus, a doc body renders with working intra-corpus links, a flat-doc URL redirects to its canonical in-book path, the per-app index scopes to one package, and a lesser persona's rendered tree equals the API's pruned subset — never a blank region", "since": "v16", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "browser", "personas": [ @@ -2561,7 +2585,7 @@ "as admin, open /docs: DocsLayout fetches book + doc once and shares it; the index (DocsIndex) renders the installed corpus grouped by book/package — screenshot first, then diff the rendered entries against GET /api/v1/meta/book + /api/v1/meta/doc", "open a doc through the tree (BookSidebar → /docs//): the body renders; click an intra-corpus cross-reference — it resolves inside the portal viewer, not to a 404 or an external route", "flat-doc permalink: navigate to /docs/ (one segment, not a book slug) — DocsSlug redirects to the canonical /docs// (every doc has a home book; identity stays single-coordinate per ADR-0046 §4/§6)", - "app-scoped index: open /apps//docs — AppDocsIndex lists ONLY that package's docs (grouping derives the package from the name's namespace prefix, doc-groups.ts); open one through it (/apps//docs/)", + "app-scoped index: open /apps//docs — AppDocsIndex lists ONLY that package's docs (grouping derives the package from the name's namespace prefix, doc-groups.ts), one card per book; with ONE book, the showcase's case, it renders no listing and redirects straight into that book's reader (/apps//docs/, ui/apps/console/src/pages/AppDocsIndex.tsx; QA run #33853 landed on /apps//docs/manual/showcase_index), so read the package's listing off that reader's book sidebar; open one through it (/apps//docs/)", "as the plain member: open the top-bar Help menu (the '?' button, aria-label 'Help & Documentation' — AppHeader) and confirm it offers 'All documentation' (→ /docs). This menu is the documentation entry every persona has: /home has no sidebar for anyone (HomeLayout deliberately omits it), and UnifiedSidebar — whose home navigation carries a Documentation item — is mounted only inside ConsoleLayout, which sets the app context. Follow the entry to /docs and capture the rendered tree", "UI-mirror diff: fetch the book tree(s) via the API as the SAME member and diff the member's RENDERED entries against the API's pruned subset — equal sets; then open every entry the member's tree offers: each resolves, none errors (the UI half of platform-core.docs-audience-gate clause 3 — a nav entry that refuses on click is the exact defect the per-entry filter exists to prevent)", "screenshot-first throughout: any empty region is re-checked on a settled reload before being read as missing" @@ -2637,6 +2661,12 @@ "date": "2026-10-20", "change": "line citations re-pointed — the comma-range spelling that round 7 of wave anchor #24579 named (18.0 sweep; round 7's report 6281433885, out_of_scope_findings[1]). source[0] cited lines 176-185 of objectui apps/console AppContent.tsx in the comma-range spelling (authored in 45397edf53 as the list 35-41 and 176-185). At the objectui pin that commit shipped, 9602dc820450, those lines were the app-scoped docs route (DocsLayout with its index, :slug and :slug/:name children); at the shipped pin 12dc7b47c340 that route sits further down in the same file's systemRoutes, which source[0] now names. objectui is read at the shipped pin 12dc7b47c340 and cited in prose, because no objectui anchor resolves in this gate. The spelling is what #13786's strip left when it removed only the first range of a ':A,B' list, and the line-citation limb reads only the colon spellings, so no gate caught it. Where the surrounding words still describe the range the strip removed, the new citation names that code too. No clause's assertion changed", "ref": "#24752" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "steps[3] names the one-book redirect (row 108 of ledger 6896511848 on #33761; QA run #33853 at a557fa38): AppDocsIndex renders a card per book and, with one book, navigates straight into that book's reader, so the listing a run diffs is the reader's book sidebar. No clause changed. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -2761,7 +2791,7 @@ "title": "Keyboard shortcut surface: `?` and ?shortcuts=1 open the dialog and Esc closes it, typing in an input never triggers it, the dialog lists exactly the shortcuts whose handler is mounted and every listed one fires (⌘K, ⌘/Ctrl+B shown as ⌘B, ⌘⇧H, Esc, ?), the five formerly advertised dead accelerators (⌘/, N, R, ⌘E, ⌘D) are neither listed nor bound, and the AI-chat pair ⌘⇧O / ⌘⇧S is listed only on the page that handles it (objectui#11674)", "since": "v16", "status": "active", - "revision": 7, + "revision": 8, "priority": "P2", "surface": "browser", "personas": ["seeded admin (admin@objectos.ai / admin123)"], @@ -2778,7 +2808,7 @@ "steps": [ "press `?` on a settled app page, e.g. an object list (focus NOT in an input; the dialog is mounted only inside app content, ui/packages/app-shell/src/console/AppContent.tsx, so on /_console/home neither `?` nor ?shortcuts=1 opens it and the Home Help menu offers no shortcuts entry) — the shortcuts dialog opens (overlay data-testid overlay:keyboard-shortcuts) and the URL carries ?shortcuts=1; press Esc — it closes and the param clears", "deep-link: open any app route with ?shortcuts=1 cold — the dialog is open on load (URL-addressable, ADR-0054)", - "input guard: focus a text input (on the stock object list, click the toolbar Search icon to open its `Search…` box, which writes uf__search; no text input is visible until then), type `?` — the character lands in the input and NO dialog opens (the handler returns early for INPUT/TEXTAREA/contentEditable)", + "input guard: focus a text input (on the stock object list, click the toolbar Search icon to open its `Search…` box, which writes uf__search; no text input is visible until then), type `?` — the character lands in the input and NO dialog opens (the handler returns early for INPUT/TEXTAREA/contentEditable). ⚠️ The typed term stays: the list carries it as uf__search (ui/packages/app-shell/src/views/userFilterUrlState.ts) and keeps it across navigation and reloads in the same browser context, so a later probe on that list runs on a filtered 'No matching records' list. Clear the box afterwards, or run each probe set in a fresh browser context (QA run #33914)", "inventory the dialog: capture every listed accelerator. The rows are derived from the handlers mounted at that moment (advertisedShortcuts.ts, objectui#11674), so on a stock page at the console pin the dialog lists exactly (read at objectui 1fb1ced36243, and again at daeb77fc84dd by QA run #23939): General — Close dialog/panel `Esc`, Open command palette `⌘ K`, Show keyboard shortcuts `?`; Navigation — Toggle sidebar `⌘ B`, Back to home `⌘ ⇧ H` (GO_HOME_SHORTCUT, advertised by AppHeader's useGoHomeShortcut beside its listener, on app pages only; added by objectui#12605 and read by QA run #33058). No AI-chat group appears off the chat page, and nothing else is listed", "fire the WIRED set: ⌘K (or Ctrl+K) opens the command palette (depth of the palette itself belongs to search.console-global-search — here only that the accelerator fires); ⌘/Ctrl+B toggles the sidebar; ⌘⇧H and Ctrl+Shift+H each navigate to /_console/home; ⌘⇧I is NOT probed here — its gated/entitled matrix belongs to ai.console-ai-surface-gating", "display-equals-binding probe for the sidebar: the dialog shows `⌘ B` (a mod chord), never bare B — press bare B (no modifier) outside any input: NOTHING happens (the handler requires metaKey||ctrlKey); press ⌘B and Ctrl+B: the sidebar toggles each time. Display and binding agree", @@ -2874,6 +2904,12 @@ "date": "2026-11-14", "change": "steps[0] to steps[4] and the title follow the dialog's current inventory and mount point (card #33330, row 175 of the #32908 close-out ledger; QA run #33058 comment 6846283471 on #32908). The Navigation group now also lists Back to home ⌘⇧H: GO_HOME_SHORTCUT in ui/packages/app-shell/src/chrome/advertisedShortcuts.ts, advertised by useGoHomeShortcut in ui/packages/app-shell/src/layout/AppHeader.tsx beside the listener that navigates home, so it joins the inventory and the wired set. KeyboardShortcutsDialog is mounted only in ui/packages/app-shell/src/console/AppContent.tsx, so steps[0] and steps[1] now say an app page or app route. The stock list has no visible text input until the toolbar Search icon opens one (uf__search, ui/packages/app-shell/src/views/userFilterUrlState.ts), so steps[2] says to open it. No acceptance clause changed. Read from source at base 87330e89, not driven live", "ref": "#33330" + }, + { + "revision": 8, + "date": "2026-11-15", + "change": "steps[2] warns that the search term persists (row 214 of ledger 6896511848 on #33761; QA run #33914 at b914e724): the `?` typed into the list search box stays as uf__search across reloads in the same browser context, and later probes there ran on a filtered empty list. No clause changed. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -3568,7 +3604,7 @@ "title": "A v18 server refuses to boot rather than serve wrongly: against a 17.x-shaped database (a physical organization_id on a non-tenant table, no verified ADR-0131 ceremony marker) it stops before listening with ORGANIZATION_OWNERSHIP_MIGRATION_REQUIRED, naming the tables and the ownership ceremony's plan and apply, and with security on but no identity objects it stops with AuthzIdentityObjectsMissingError", "since": "v18", "status": "active", - "revision": 9, + "revision": 10, "priority": "P0", "surface": "cli", "personas": [ @@ -3596,9 +3632,9 @@ "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { - "clause": "the v18 serve against the v17 DB exits 1 before kernel:listening with the organization-ownership refusal, which opens \"This database carries no organization-ownership marker\", names the tables still carrying organization_id, and names the ceremony's two steps spelled for the boot that refused: on a production `os serve` (steps[0]) `os migrate organization-ownership --out PLAN`, then `os migrate organization-ownership --apply --plan-file PLAN --backup-taken`; on a development boot (`os dev`, `os serve --dev`) both carry `--dev` after `organization-ownership`, so the ceremony boots the same way the refused boot did (packages/runtime/src/organization-ownership-boot-guard.ts, ceremonyCommand). It does not tell the operator to stay on 17.x. ORGANIZATION_OWNERSHIP_MIGRATION_REQUIRED is that refusal's `code` (packages/runtime/src/organization-ownership-boot-guard.ts#OrganizationOwnershipBootRefusal) and the boot never prints it — `os serve` prints the refusal's message only — so the code is the pins' evidence (acceptance[0]), not this log's", + "clause": "the v18 serve against the v17 DB exits 1 before kernel:listening with the organization-ownership refusal, which opens \"This database carries no organization-ownership marker\", names the tables still carrying organization_id, and names the ceremony's two steps spelled for the boot that refused: on a production `os serve` (steps[0]) `os migrate organization-ownership --out PLAN`, then `os migrate organization-ownership --apply --plan-file PLAN --backup-taken`; on a development boot (`os serve --dev`) both carry `--dev` after `organization-ownership`, so the ceremony boots the same way the refused boot did (packages/runtime/src/organization-ownership-boot-guard.ts, ceremonyCommand). `os dev` prints neither: its `serve --dev` child hands the refusal to its parent over IPC and exits without printing it (packages/cli/src/commands/serve.ts#announceOrganizationOwnershipRequired), and `os dev` then copies the development database and runs the ceremony itself (packages/cli/src/commands/dev.ts#upgradeRefusedDevelopmentDatabase, the ADR-0131 D10 development exception), so the development spelling is read on a standalone `os serve --dev`. It does not tell the operator to stay on 17.x. ORGANIZATION_OWNERSHIP_MIGRATION_REQUIRED is that refusal's `code` (packages/runtime/src/organization-ownership-boot-guard.ts#OrganizationOwnershipBootRefusal) and the boot never prints it — `os serve` prints the refusal's message only — so the code is the pins' evidence (acceptance[0]), not this log's", "oracle": "log", - "verify": "boot output + exit code + no listening line: the printed refusal opens \"This database carries no organization-ownership marker\", names each table still carrying organization_id, and contains `os migrate organization-ownership --out PLAN` and `--apply --plan-file PLAN --backup-taken` (a development boot's refusal reads `os migrate organization-ownership --dev --out PLAN` and `--dev --apply --plan-file PLAN --backup-taken`; `--dev` missing from a development boot's refusal, or present on a production one, is a FAIL: the operator would run the ceremony against a differently composed boot); the refusal excerpt has 0 hits for `17.x release` and for `fresh installs only`. ⛔ Do not grep the log for the code literal — it is not printed (packages/cli/src/commands/serve.ts prints the refusal's message)", + "verify": "boot output + exit code + no listening line: the printed refusal opens \"This database carries no organization-ownership marker\", names each table still carrying organization_id, and contains `os migrate organization-ownership --out PLAN` and `--apply --plan-file PLAN --backup-taken` (an `os serve --dev` boot's refusal reads `os migrate organization-ownership --dev --out PLAN` and `--dev --apply --plan-file PLAN --backup-taken`; `--dev` missing from a development boot's refusal, or present on a production one, is a FAIL: the operator would run the ceremony against a differently composed boot); the refusal excerpt has 0 hits for `17.x release` and for `fresh installs only`. ⛔ Do not grep the log for the code literal — it is not printed (packages/cli/src/commands/serve.ts prints the refusal's message)", "evidence": "the refusal excerpt" }, { @@ -3685,6 +3721,12 @@ "date": "2026-10-31", "change": "fixtures.requires[1] and acceptance[1] corrected. Checklist-accuracy findings of QA run #27481 (18.3.0 wave 3, parked on anchor #27377; slice S4, #28338): the v17-shaped DB comes from a 17.7.0 blank-scaffold `os dev` boot, since no 17.x showcase was published; and under `os serve --dev` the refusal spells the ceremony with `--dev`, which the clause's literal matched only on a production serve. The clause now pins the spelling to the boot mode (ceremonyCommand). A finding of QA run #27438 on the same anchor asked for the planted-shape recipe, and requires[1] now names it: a copy of this release's DB minus the adr-0131-organization-ownership marker, plus an organization_id column on a tenant-less table. Re-read at 3fd80337", "ref": "#27481" + }, + { + "revision": 10, + "date": "2026-11-15", + "change": "acceptance[1] names `os serve --dev` alone as the development boot that prints the `--dev` spelling (rows 4 and 185 of ledger 6896511848 on #33761; QA runs #33784 at a557fa38 and #33909 at b914e724). Under `os dev` the refused `serve --dev` child announces the refusal to its parent and exits without printing it, and `os dev` runs the ceremony on a copy itself (serve.ts announceOrganizationOwnershipRequired, dev.ts upgradeRefusedDevelopmentDatabase, ADR-0131 D10), so the clause listed a boot that never shows the text. The spelling the clause pins is unchanged. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -3693,7 +3735,7 @@ "title": "Protocol 18 upgrade surfaces: a package declaring engines.protocol \"^17\" is refused 422 OS_PROTOCOL_INCOMPATIBLE naming `os migrate meta --from 17` (\"^18\" is admitted), a stored v17-shaped row is served canonical while a PUT of the same old shape is refused at parse, and a \"^18\" artifact built before a retirement boots with one warn per replayed conversion", "since": "v18", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "mixed", "personas": [ @@ -3712,7 +3754,7 @@ "steps": [ "POST /api/v1/marketplace/install-local (or POST /api/v1/packages) with the ^17 manifest; then the ^18 one", "plant the row into sys_metadata, then reboot on the same DB (or plant with the server stopped), then GET /api/v1/meta/page/PLANTED and compare with the planted body; PUT the planted (old-shape) body back. ⚠️ A row planted under a running server is not what a GET reads: the server answers from its in-memory registry until it reboots (QA run #27438 read the pre-plant body), so a GET before the reboot scores the cache, not the stored-row replay", - "boot (`os start`) a ^18 dist/objectstack.json built before a retirement; read the boot warns. An edited copy of a built artifact must sit where its references resolve: its runtimeModule (objectstack-runtime.HASH.mjs) is resolved relative to the artifact's own directory (packages/runtime/src/load-artifact-bundle.ts#mergeRuntimeModule) and imports from node_modules, so keep the copy beside the original in the app's dist/ and boot it with `--artifact COPY`" + "boot (`os start`) a ^18 dist/objectstack.json built before a retirement; read the boot warns. An edited copy of a built artifact must sit where its references resolve: its runtimeModule (objectstack-runtime.HASH.mjs) is resolved relative to the artifact's own directory (packages/runtime/src/load-artifact-bundle.ts#mergeRuntimeModule) and imports from node_modules, so keep the copy beside the original in the app's dist/ and boot it with `--artifact COPY`. ⚠️ Such a copy boots ALONE: the cwd config joins a boot only when the artifact is its own compiled output (packages/cli/src/utils/artifact-precedence.ts#cwdConfigJoinsBoot), so the config's code plugins drop out, and the showcase's boot aborts after the conversion warns (service-automation refuses connector 'showcase_status_api', provider 'rest': 'Installed providers: [none]'; QA run #33853 at a557fa38, where an unedited copy aborted the same way). The warns print before the abort, so acceptance[3] is read from that log; for a boot that also serves, build the artifact from an app with no code-plugin connector (examples/app-todo). Putting the edited copy at a scratch copy's conventional dist/objectstack.json is no way round it: there the config boots, not the copy, and no conversion warn prints" ], "acceptance": [ { @@ -3736,7 +3778,7 @@ { "clause": "the old artifact boots with one \"converted N site(s) … ID\" warn per conversion", "oracle": "log", - "verify": "boot log grep", + "verify": "boot log grep, read before the abort a showcase copy's boot ends in (steps[2]); that boot's exit is not this clause's evidence", "evidence": "the lines" } ], @@ -3770,6 +3812,12 @@ "date": "2026-10-31", "change": "steps[1] and steps[2] carry the two staging facts. Checklist-accuracy finding of QA run #27438 (18.3.0 wave 3, parked on anchor #27377; slice S4, #28338): a row planted into sys_metadata under a running server is served from the in-memory registry until a reboot, so the GET must follow a reboot on the same DB; and an off-tree artifact copy needs its runtime module beside it (mergeRuntimeModule resolves it against the artifact's directory) and resolvable node_modules. The finding's text is truncated after that; its unread remainder is not acted on here. The clauses are unchanged. Re-read at 3fd80337", "ref": "#27438" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "steps[2] and acceptance[3].verify re-pointed (row 122 of ledger 6896511848 on #33761; QA run #33853 at a557fa38): a named, non-conventional artifact boots alone, without the cwd config (artifact-precedence.ts cwdConfigJoinsBoot), so the showcase copy's code plugins drop out and its boot aborts on the 'showcase_status_api' rest provider after the conversion warns. The clause is read from the warns that precede the abort; a serving boot needs an app with no code-plugin connector. No clause changed. Read from source at base 0ac112fc", + "ref": "#34004" } ] }, @@ -4480,15 +4528,15 @@ "title": "An 18.3.0 database's activation ledger moves to the (metadata_type, package_id, name) key on its first boot: the package-less index is built, each package-less row binds to its one holder, ambiguous and environment rows stay null, a second boot writes nothing, and os migrate plan offers the old index as a safe replacement", "since": "v18.4", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "mixed", "personas": ["operator at the CLI, with direct access to the database file"], "fixtures": { "app": "any", "requires": [ - "an 18.3.0-shaped SQLite file, copied, never the original, by one of two routes. (a) A file a boot of npm `@objectstack/cli@18.3.0` (published; the tree is 18.3.0 plus the unreleased v18.4 work) wrote for a blank scaffold, with the rows the steps name planted through that release's own doors; a blank scaffold, because the showcase is a private workspace package with no published build (QA record #32093 made one with npm `create-objectstack@18.3.0`; copy the file and its telemetry sibling X.telemetry.db together). (b) The planted shape: a copy of a file DB this tree's own boot wrote, in which the step's columns are set back to NULL (and, for the activation ledger, the index uniq_sys_metadata_activation_packageless is dropped), which is what a database an earlier release built holds once this release's schema sync has added the columns. Its sys_metadata_activation holds a package-less row (package_id NULL) for a flow one installed package ships, and a row for a position. On route (a), 18.3.0's door already writes package_id (for a name two packages hold, the first holder), and its position door does too (com.objectstack.plugin-security, QA run #33048), so set the flow row's AND the position row's package_id to NULL by SQL: the backfill never asks about a position row and leaves it as it is (packages/objectql/src/activation-ledger-backfill.ts), so an unplanted route (a) position row keeps 18.3.0's package and the clause's 'stays null' cannot be read. On route (b) it also holds a package-less row for a name two packages hold. An environment item's row is planted by SQL on either route: 18.3.0's door answers 409 for one. Every boot of this tree then logs ERROR \"[security] upgrade impact: 1 activation ledger row(s) for a flow, action or webhook name an item no package ships at this boot …\" for that planted row (packages/plugins/plugin-security/src/upgrade-impact-report.ts, the orphans line): expected for a switch row on an environment item, not a finding", - "a copy of the same file with two package-less rows planted by SQL for one (metadata_type, name), for the conflict leg. On a route (a) file, drop 18.3.0's unique (metadata_type, name) index first, because it forbids the pair" + "an 18.3.0-shaped SQLite file, copied, never the original, by one of two routes. (a) A file a boot of npm `@objectstack/cli@18.3.0` (published; the tree is 18.3.0 plus the unreleased v18.4 work) wrote for a blank scaffold, with the rows the steps name planted through that release's own doors; a blank scaffold, because the showcase is a private workspace package with no published build (QA record #32093 made one with npm `create-objectstack@18.3.0`; copy the file and its telemetry sibling X.telemetry.db together). (b) The planted shape: a copy of a file DB this tree's own boot wrote, in which the step's columns are set back to NULL and sys_metadata_activation's indexes are put back to 18.3.0's: drop uniq_sys_metadata_activation_packageless AND this release's declared uniq_sys_metadata_activation_metadata_type_package_id_name, then recreate 18.3.0's key (CREATE UNIQUE INDEX uniq_sys_metadata_activation_metadata_type_name ON sys_metadata_activation (metadata_type, name); it refuses while two rows share a (metadata_type, name), so plant after it). That is what a database an earlier release built holds once this release's schema sync has added the columns. Dropping the package-less index alone does not reproduce it: with the three-column key standing, no plan offers replace_unique_index and acceptance[3] cannot be read (QA runs #33853 and #33914). The name two packages hold comes from one `os dev` boot of a scratch app of two namespaced packages composed with composeStacks([...], { manifest: 'preserve' }), each declaring a flow of the same name (e.g. qa_sync); no install door is needed. Its sys_metadata_activation holds a package-less row (package_id NULL) for a flow one installed package ships, and a row for a position. On route (a), 18.3.0's door already writes package_id (for a name two packages hold, the first holder), and its position door does too (com.objectstack.plugin-security, QA run #33048), so set the flow row's AND the position row's package_id to NULL by SQL: the backfill never asks about a position row and leaves it as it is (packages/objectql/src/activation-ledger-backfill.ts), so an unplanted route (a) position row keeps 18.3.0's package and the clause's 'stays null' cannot be read. On route (b) it also holds a package-less row for a name two packages hold. An environment item's row is planted by SQL on either route: 18.3.0's door answers 409 for one. Every boot of this tree then logs ERROR \"[security] upgrade impact: 1 activation ledger row(s) for a flow, action or webhook name an item no package ships at this boot …\" for that planted row (packages/plugins/plugin-security/src/upgrade-impact-report.ts, the orphans line): expected for a switch row on an environment item, not a finding", + "a copy of the same file with two package-less rows planted by SQL for one (metadata_type, name), for the conflict leg. On either route, drop the unique (metadata_type, name) index first (18.3.0's on route (a), the recreated one on route (b)), because it forbids the pair" ], "knownGaps": [ "the ambiguous-row leg stays RUNNER-BUILT, by design (maintainer ruling 2026-11-14 on #33351, row 90, option B): it needs one item name held by two installed packages, and no stock boot carries a second package. The showcase cannot grow one: an app package defines at most one app and a suite's other packages are module packages composed beside it (ADR-0019), so a second holder is a separate package, not a seed line. Plant it per requires[0] route (a) or (b). A permanent multi-package fixture, if a later item needs one, extends examples/app-multi-package (two packages composed with composeStacks(…, { manifest: 'preserve' })), not the showcase" @@ -4569,6 +4617,12 @@ "date": "2026-11-14", "change": "fixtures.knownGaps added: the ambiguous-row leg (a name two packages hold) stays runner-built by design (maintainer ruling 2026-11-14 on #33351, row 90, option B; QA run #33048 comment 6846028996 named the gap). Read at base ba35dfd78: ADR-0019 (an app package defines at most one app; measured on #33351 round 1, where a second app in the showcase failed its build), examples/app-multi-package (composeStacks with manifest 'preserve'). No clause changed", "ref": "#33351" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "fixtures.requires[0] route (b) and requires[1] re-pointed (rows 106 and 218 of ledger 6896511848 on #33761; QA runs #33853 at a557fa38 and #33914 at b914e724). Dropping uniq_sys_metadata_activation_packageless alone left this release's three-column key (metadata_type, package_id, name) standing, so plan 1 and plan 2 never showed acceptance[3]'s create_index then replace_unique_index; both runs had to drop that key and recreate 18.3.0's UNIQUE (metadata_type, name) as uniq_sys_metadata_activation_metadata_type_name. Route (b) now says so, requires[1]'s pair needs that recreated index dropped too, and the two-holder name names the composeStacks scratch app both runs used. No clause changed. Index names read at base 0ac112fc (sys-metadata-activation.object.ts, schema-drift.ts buildIndexName)", + "ref": "#34004" } ] }, @@ -4682,14 +4736,14 @@ "title": "An 18.3.0 database's stored references gain the package that holds them on the first boot: grants, binding suggestions, managed sharing rules, queue members, assignment cursors, open approvals, paused runs, flow credentials, connector connections and email templates are bound to their one holder, refused names stay null with one warning per table, dispatch keys are re-keyed by package, and a second boot writes nothing", "since": "v18.4", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "mixed", "personas": ["operator, with direct access to the database file", "admin (the seeded admin): the permission parity read"], "fixtures": { "app": "any", "requires": [ - "an 18.3.0-shaped SQLite file, copied, never the original, by one of two routes. (a) A file a boot of npm `@objectstack/cli@18.3.0` (published; the tree is 18.3.0 plus the unreleased v18.4 work) wrote for a blank scaffold, with the rows the steps name planted through that release's own doors; a blank scaffold, because the showcase is a private workspace package with no published build (QA record #32093 made one with npm `create-objectstack@18.3.0`; copy the file and its telemetry sibling X.telemetry.db together). (b) The planted shape: a copy of a file DB this tree's own boot wrote, in which the step's columns are set back to NULL (and, for the activation ledger, the index uniq_sys_metadata_activation_packageless is dropped), which is what a database an earlier release built holds once this release's schema sync has added the columns. The rows planted: a sys_user_permission_set grant of a set one package holds; a managed sys_sharing_rule row; a paused sys_automation_run of a package flow; a pending sys_approval_request; a sys_email_template row for a platform template; a sys_flow_dispatch row keyed schedule:FLOW:WINDOW_START for a package flow inside 30 days, and one older than 30 days; and a sys_queue_member row naming a queue qa_desk that two installed packages in two namespaces both hold. Planted by SQL on either route: a DECIDED sys_audience_binding_suggestion row naming a set one package holds (R3: status confirmed with its deployment decision recorded, or a pending row for a set the package declares isDefault: true). A pending row whose declaration is gone is pruned by the boot's suggestion sync (packages/plugins/plugin-security/src/suggested-audience-bindings.ts), so a SQL-planted pending suggestion for a set no package declares isDefault vanishes on the first boot and R3 reads nothing (QA run #33090); a sys_flow_credential row for a package flow (R9), a sys_connector_connection row for a package connector (R11) and a sys_assignment_cursor row for a package assignment rule (R13). The app must DECLARE what those two rows name: a connector instance (stack `connectors`) and an assignment rule (stack `assignmentRules`), both keys 18.3.0's stack schema already accepts. A blank create-objectstack scaffold declares neither, so a planted R11 or R13 row has no holder, its package column stays null and the leg reads nothing (QA run #33090 found the fixture without them); add both to the scaffold before 18.3.0's first boot on route (a), or to the app this tree booted on route (b). On route (a), the managed sys_sharing_rule and sys_email_template rows are planted by SQL too, because 18.3.0 has no door that writes them (ADR-0131 D2, D6, D10). A stored sys_sharing_rule row carrying the name of a rule the package also declares makes every boot log ERROR \"[sharing-rule] declared sharing rule 'NAME' arrives over a stored sys_sharing_rule row of the same name …\" (packages/plugins/plugin-sharing/src/sharing-rule-service.ts, reportDeclarationOverAuthoredRow); the backfill still binds the row, so that ERROR is the fixture's shape, not a backfill finding (QA run #33090). The scaffold's requires lists 'approvals', or no sys_approval_request exists. 18.3.0 writes sys_flow_dispatch rows only when it boots with OS_AUTOMATION_SCHEDULED_WORK_ENABLED=true", + "an 18.3.0-shaped SQLite file, copied, never the original, by one of two routes. (a) A file a boot of npm `@objectstack/cli@18.3.0` (published; the tree is 18.3.0 plus the unreleased v18.4 work) wrote for a blank scaffold, with the rows the steps name planted through that release's own doors; a blank scaffold, because the showcase is a private workspace package with no published build (QA record #32093 made one with npm `create-objectstack@18.3.0`; copy the file and its telemetry sibling X.telemetry.db together). (b) The planted shape: a copy of a file DB this tree's own boot wrote, in which the step's columns are set back to NULL, which is what a database an earlier release built holds once this release's schema sync has added the columns. No row below is an activation-ledger row, so the ledger's own plant (its indexes put back to 18.3.0's) belongs to platform-core.activation-ledger-package-key-upgrade, and no clause here reads it. The rows planted: a sys_user_permission_set grant of a set one package holds; a managed sys_sharing_rule row; a paused sys_automation_run of a package flow; a pending sys_approval_request; a sys_email_template row for a platform template; a sys_flow_dispatch row keyed schedule:FLOW:WINDOW_START for a package flow inside 30 days, and one older than 30 days; and a sys_queue_member row naming a queue qa_desk that two installed packages in two namespaces both hold. Planted by SQL on either route: a DECIDED sys_audience_binding_suggestion row naming a set one package holds (R3: status confirmed with its deployment decision recorded, or a pending row for a set the package declares isDefault: true). A pending row whose declaration is gone is pruned by the boot's suggestion sync (packages/plugins/plugin-security/src/suggested-audience-bindings.ts), so a SQL-planted pending suggestion for a set no package declares isDefault vanishes on the first boot and R3 reads nothing (QA run #33090); a sys_flow_credential row for a package flow (R9), a sys_connector_connection row for a package connector (R11) and a sys_assignment_cursor row for a package assignment rule (R13). The app must DECLARE what those two rows name: a connector instance (stack `connectors`) and an assignment rule (stack `assignmentRules`), both keys 18.3.0's stack schema already accepts. A blank create-objectstack scaffold declares neither, so a planted R11 or R13 row has no holder, its package column stays null and the leg reads nothing (QA run #33090 found the fixture without them); add both to the scaffold before 18.3.0's first boot on route (a), or to the app this tree booted on route (b). On route (a), the managed sys_sharing_rule and sys_email_template rows are planted by SQL too, because 18.3.0 has no door that writes them (ADR-0131 D2, D6, D10). A stored sys_sharing_rule row carrying the name of a rule the package also declares makes every boot log ERROR \"[sharing-rule] declared sharing rule 'NAME' arrives over a stored sys_sharing_rule row of the same name …\" (packages/plugins/plugin-sharing/src/sharing-rule-service.ts, reportDeclarationOverAuthoredRow); the backfill still binds the row, so that ERROR is the fixture's shape, not a backfill finding (QA run #33090). The scaffold's requires lists 'approvals', or no sys_approval_request exists. 18.3.0 writes sys_flow_dispatch rows only when it boots with OS_AUTOMATION_SCHEDULED_WORK_ENABLED=true", "every boot of this tree on the copy leaves scheduled work off (OS_AUTOMATION_SCHEDULED_WORK_ENABLED unset), so no new dispatch row joins the ones being re-keyed", "a fresh install of this tree with the same app, the same grant for the same member and the same ledger switches: clause 4's reference body" ] @@ -4766,6 +4820,12 @@ "date": "2026-11-14", "change": "fixtures.requires[0]: the app must declare a connector instance and an assignment rule for the R11 and R13 rows to have a holder; a blank scaffold declares neither (row 227 of the #32908 close-out ledger, QA run #33090 comment 6850495479 on #32908). Read at base ba35dfd78: stored-reference-package-backfill.ts (R11, sys_connector_connection.connector_name), stored-declaration-package-backfill.ts (R13, sys_assignment_cursor.rule), and the 18.3.0 tag's packages/spec/src/stack.zod.ts (both `connectors` and `assignmentRules` declared). No clause changed", "ref": "#33351" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "fixtures.requires[0] drops the activation-ledger index plant (row 123 of ledger 6896511848 on #33761; QA run #33853 at a557fa38): route (b) said to drop uniq_sys_metadata_activation_packageless, but this item plants no ledger row and no clause reads that table, so the run did not plant it. The plant lives on platform-core.activation-ledger-package-key-upgrade. Route (a) not driven is the run's scope, not item text. No clause changed", + "ref": "#34004" } ] },