diff --git a/docs/qa/platform-checklist/areas/access-security.json b/docs/qa/platform-checklist/areas/access-security.json index 8fb534b98e0..1218174446b 100644 --- a/docs/qa/platform-checklist/areas/access-security.json +++ b/docs/qa/platform-checklist/areas/access-security.json @@ -3782,7 +3782,7 @@ "title": "The anonymous floor answers 401 FIRST on the doors v18 added to it — /notifications (was 501), non-POST /keys (was 405), share-link management (was 501), /openapi.json, every /i18n face and the settings family — while the token faces and the public-form submit stay anonymous and the submit echoes only {id}", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "api", "personas": [ @@ -3811,7 +3811,7 @@ { "clause": "the anonymous floor is the first statement on every listed v18 door and the form submit answers {id} only — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -3886,6 +3886,12 @@ "date": "2026-10-27", "change": "Access-security pin upgrade, slice 3 (#26571; Tier 1 record #26468 scored the item PARTIAL). Pinned at the api oracle's layer (in-process HTTP): acceptance[1]'s error.code on each of steps[0]'s six doors with the admin's served control (new anonymous-floor-v18-doors); acceptance[2]'s admin leg of the retired /docs comparison (showcase-anonymous-deny-surfaces); acceptance[3]'s bogus-token refusal asserted not 401; acceptance[4]'s exact 201 and {id} body with the forged owner_id and status sent. No clause or status changed", "ref": "#26571" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -3894,7 +3900,7 @@ "title": "Under a walled posture (group / isolated) environment metadata and the security catalog belong to the platform operator: an org owner holding manage_metadata is refused 403 on every /meta write verb, every /packages write, install-local of a catalog-carrying package, _migrate-stored and POST /automation — and the single posture is unchanged", "since": "v18", "status": "active", - "revision": 9, + "revision": 10, "priority": "P0", "surface": "api", "personas": [ @@ -3924,7 +3930,7 @@ { "clause": "every environment-metadata and catalog write door refuses a non-operator under a walled posture — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=1 FILE`, one package at a time, never through a bare `--`: RUNNER environment facts hold the Tier 1 vitest pins under this container's memory limit only at --maxWorkers=1); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time, never through a bare `--`: RUNNER environment facts hold the Tier 1 vitest pins under this container's memory limit only at --maxWorkers=1); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -4010,6 +4016,12 @@ "date": "2026-11-14", "change": "Three fixture-text findings re-pointed (card #33332; QA run #32953 R1 comment 6840054712 and #33087 comment 6850382730). knownGaps[0] said no example app declares the multi-org runtime; examples/app-showcase/package.json declares @objectstack/organizations (workspace:*), as RUNNER.md's walled-boot entry already says. personas[0] now names the organization_admin grant the owner holds automatically (auto-org-admin-grant.ts), so a runner does not read it as a stray grant. fixtures.requires[2] notes that a scratch package the operator creates must carry a reverse-domain id (manifest.zod.ts), since a bare id fails quietly downstream. knownGaps[1] (install-local scored from the pins) was already right and is unchanged. No clause changed. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 10, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -4018,7 +4030,7 @@ "title": "/meta read gates added on v18: the authoring-trail doors (history / audit / diff / package commits) refuse a setup.access-only caller, and a list view or dashboard carrying requiredPermissions is withheld from a caller without them on EVERY alternate door", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -4042,7 +4054,7 @@ { "clause": "trail doors demand authoring access and the view/dashboard audience gate holds on every alternate door — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -4098,6 +4110,12 @@ "date": "2026-10-27", "change": "Access-security pin upgrade, slice 3 (#26571; Tier 1 record #26468 scored the item PARTIAL). New dogfood pin meta-view-audience-alternate-doors at the api oracle's layer: acceptance[2]'s list prune and the /published, /layers and ?state=draft refusals for a setup.access-only member, the /history leg for a studio.access member (audience refusal) beside the trail gate's FORBIDDEN, the admin control on every door, and negative[0]'s ETag replay over the real server. No clause or status changed", "ref": "#26571" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -4106,7 +4124,7 @@ "title": "Security-catalog doors new on v18: POST /security/_activation/:type/:name switches a position or permission set off and on (holders lose and regain its grants), and POST /security/permission-sets/:name/clone copies a set with its refusal arms; both take ?package= for a permission set and refuse any other query", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "api", "personas": [ @@ -4132,7 +4150,7 @@ { "clause": "the activation door and the clone door with every refusal arm — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -4211,6 +4229,12 @@ "date": "2026-11-14", "change": "acceptance[4] (clause, verify) re-pointed (stale spec, card #33332; QA run #33081 comment 6850173588): it named the 409's refusal `not-held-by-qualifier` as if on the wire. That is the resolver's internal reason (package-scoped-resolution.ts); the wire body carries RESOURCE_CONFLICT, the sentence naming the holder and details.candidates only (error-response.ts packageScopedCandidatesMember), which is what QA read. The arm's substance is unchanged. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -4219,7 +4243,7 @@ "title": "The security catalog has exactly one holder per name: two packages declaring one permission-set / position name refuse boot (on install-local, 422 PLUGIN_REGISTER_FAILED naming each name and its holder), a body packageId that disagrees with its package is refused, `os migrate security-catalog-overlays` clears environment shadows, and boot reports grants naming undefined catalog entries", "since": "v18", "status": "active", - "revision": 6, + "revision": 7, "priority": "P1", "surface": "mixed", "personas": [ @@ -4243,7 +4267,7 @@ { "clause": "one-holder refusal, owner binding, the overlay migration and the catalog-reference report — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -4321,6 +4345,12 @@ "date": "2026-11-15", "change": "acceptance[1].verify and fixtures.requires[1] re-pointed: a permission set is one name per namespace since ADR-0150 D2/D9, so a manifest with its own namespace redeclaring a showcase set is admitted for the set and the 422 names only the position (QA run #33853, comment 6894307378; ledger 6896511848 of #33761 row 67). The fixture now asks for a manifest with no namespace or the holder's. The clause is unchanged. Read at base bc6b7ffd", "ref": "#34016" + }, + { + "revision": 7, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -4329,7 +4359,7 @@ "title": "Grant-table write contract (sys_user_permission_set / sys_user_position): the retired permission_set_id column is refused, a duplicate grant is 409, an inverted validity window is 400, granted_by is stamped with the caller, and (walled) a grant to a non-member is refused", "since": "v18", "status": "active", - "revision": 8, + "revision": 9, "priority": "P1", "surface": "api", "personas": [ @@ -4357,7 +4387,7 @@ { "clause": "the grant-table write contract — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -4442,6 +4472,12 @@ "date": "2026-10-27", "change": "Access-security pin upgrade, slice 3 (#26571; Tier 1 record #26468 scored the item PARTIAL). Pinned over the REST data door: acceptance[1]'s INVALID_FIELD and UNIQUE_VIOLATION and acceptance[3]'s granted_by read-back (new grant-table-write-contract); acceptance[2]'s authored message, the absent 'unevaluable' constraint and the valid-window 201 control (permission-set-assignment-window). acceptance[4] stays the walled leg. No clause or status changed", "ref": "#26571" + }, + { + "revision": 9, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -4450,7 +4486,7 @@ "title": "Write guards tightened on v18: a walled update cannot null out organization_id, a detail write naming an unreadable header is reference_not_found, a validation rule reading an unreadable header answers like a missing one, and a controlled_by_parent child's attachments / comments / explain follow the master's edit grant", "since": "v18", "status": "active", - "revision": 7, + "revision": 8, "priority": "P1", "surface": "api", "personas": [ @@ -4478,7 +4514,7 @@ { "clause": "organization-removal refusal, unreadable-header parity and the cbp attach/comment/explain gates — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -4558,6 +4594,12 @@ "date": "2026-10-27", "change": "Access-security pin upgrade, slice 4 (#26571; Tier 1 record #26468 scored the item PARTIAL). Pinned over the REST data door: acceptance[1] on a posture-only walled showcase boot (the organization-emptying PATCH refused 403 PERMISSION_DENIED, empty-org inserts stamped); acceptance[2] and negative[0] as the unreadable/nonexistent master comparison, field by field, on a plain master_detail detail, and the same parity on the controlled_by_parent line, where the master-edit gate's 403 answers first (new parent-and-organization-write-guards). No clause or status changed", "ref": "#26571" + }, + { + "revision": 8, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -4566,7 +4608,7 @@ "title": "Seven deployment tables (sys_job, sys_job_run, sys_job_queue, sys_flow_dispatch, sys_migration, sys_migration_journal, sys_presence) carry no organization column on v18 and are readable only with manage_platform_settings — an org admin who is not platform admin is refused even on single", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -4589,7 +4631,7 @@ { "clause": "the seven tables are platform-level and gated by manage_platform_settings — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -4641,6 +4683,12 @@ "date": "2026-10-27", "change": "Access-security pin upgrade, slice 4 (#26571; Tier 1 record #26468 scored the item PARTIAL: no pin drove either door over HTTP). Pinned over the REST data door: acceptance[1]'s org admin 403 PERMISSION_DENIED and platform admin 200 on all seven tables, and acceptance[2]'s 400 INVALID_FIELD on an organization_id filter (new deployment-tables-platform-only). automated.kind unit -> dogfood, since the ref now leads with the dogfood pin. No clause or status changed", "ref": "#26571" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -4649,7 +4697,7 @@ "title": "Share links with two gates combined: signed_in + password answers an anonymous caller 401 SIGN_IN_REQUIRED whatever password is sent, email + password answers a uniform 404 INVALID_OR_EXPIRED, and /messages opens exactly where /resolve opens", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P2", "surface": "api", "personas": [ @@ -4672,7 +4720,7 @@ { "clause": "combined share-link gates and resolve/messages parity — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -4736,6 +4784,12 @@ "date": "2026-10-27", "change": "Access-security pin upgrade, slice 4 (#26571; Tier 1 record #26468 scored the item PARTIAL: the runtime pins drive the route entries with no HTTP). Pinned over HTTP on anonymous calls: acceptance[1] and negative[0]'s byte-identical 401 SIGN_IN_REQUIRED across the password variants, acceptance[2]'s byte-identical 404 INVALID_OR_EXPIRED across the non-entitled variants and the unknown token with the allowlisted 200 control, and acceptance[3]'s resolve/messages pairing (new share-link-combined-gates). automated.kind conformance -> dogfood, since the ref now leads with the dogfood pin. No clause or status changed", "ref": "#26571" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -4744,7 +4798,7 @@ "title": "An organization administrator creates and removes its own members' position and permission-set assignments inside the organization boundary, in all three tenancy postures; an out-of-boundary set answers 403 naming the set and the condition", "since": "v18", "status": "active", - "revision": 2, + "revision": 3, "priority": "P1", "surface": "api", "personas": [ @@ -4770,7 +4824,7 @@ { "clause": "the three-posture matrix passes at the run subject sha (RUNNER rule 6: cite the pin's output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter @objectstack/plugin-security exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter @objectstack/plugin-security exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -4818,6 +4872,12 @@ "date": "2026-10-26", "change": "One checklist-accuracy finding of Tier 1 record #25815 (negative[2]), re-read on main b4199c96: org-admin-assignment-boundary.posture.test.ts exercises only admin_full_access out of boundary in each posture; the rest of negative[2]'s set list is asserted only by the unit gate in delegated-admin-gate.test.ts. automated.ref says so. No clause or status changed", "ref": "#25835" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -4982,7 +5042,7 @@ "title": "A permission set travels as (package, name) from the grant to every request's evaluation: the execution context carries permissionSetAddresses, the evaluator reads each set at its holder, the activation ledger switches a set off per holder, and an OAuth client acting for a user carries none", "since": "v18.4", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "api", "personas": [ @@ -4992,19 +5052,17 @@ "fixtures": { "app": "showcase", "requires": [ - "two scratch packages, each its own scratch app directory (never the shared examples): qa_a (manifest id com.qa.addr-a, namespace qa_a) and qa_b (manifest id com.qa.addr-b, namespace qa_b), each a defineStack({ manifest: { id, namespace, version, type: 'app' }, … }) project compiled with `objectstack build` and installed into the boot with `os package install DIR/dist/objectstack.json` (admin credentials), so the registry holds every item under its package. Neither declares a dependency on the other unless a step says so. qa_a declares the object qa_a_ticket and the permission set qa_a_reader (read on qa_a_ticket, nothing else); qa_b declares one object and no permission set", + "two scratch packages, each its own scratch app directory (never the shared examples): qa_a (manifest id com.qa.addr-a, namespace qa_a) and qa_b (manifest id com.qa.addr-b, namespace qa_b), each a defineStack({ manifest: { id, namespace, version, type: 'app' }, … }) project compiled with `objectstack build` and installed into the boot with `os package install DIR/dist/objectstack.json` (admin credentials), so the registry holds every item under its package. Neither declares a dependency on the other unless a step says so. qa_a declares the object qa_a_ticket and the permission set qa_a_reader (read on qa_a_ticket, nothing else); qa_b declares the object qa_b_note and a permission set of the same name, qa_a_reader (read on qa_b_note, nothing else): one name, two holders in two namespaces. The install door admits the second holder, because two packages whose declared namespaces differ, neither of them a shareable platform namespace, do not meet (packages/core/src/permission-set-holders.ts#permissionSetHoldersMeet, ADR-0150 D2/D9); acceptance[5] scores both installs", "a boot on a file database, as platform-core.activation-ledger-row-contract boots, because two steps stop the server and write the ledger directly", - "a member M (any signed-up person) granted qa_a_reader as admin with POST /api/v1/data/sys_user_permission_set {\"user_id\": M, \"permission_set\": \"qa_a_reader\"}; the grant door stamps permission_set_package (access-security.permission-set-package-resolution); one qa_a_ticket record owned by M (create it as admin with owner_id set to M). qa_a_ticket's declared sharingModel decides who reads a row; on a private object M reads only rows M owns, so a record the admin owns reads as 0 rows for M though the qa_a_reader grant holds" - ], - "knownGaps": [ - "two packages each shipping qa_a_reader is not reachable through install today (#32027's own note), so the cases this change exists for (one name, two holders, each grant reaching only its own) are held by packages/plugins/plugin-security/src/permission-set-address.test.ts, not driven live" + "a member M (any signed-up person) granted com.qa.addr-a's qa_a_reader as admin with POST /api/v1/data/sys_user_permission_set {\"user_id\": M, \"permission_set\": \"qa_a_reader\", \"permission_set_package\": \"com.qa.addr-a\"}: with two holders the grant names its package, which it then holds alone (packages/plugins/plugin-security/src/grant-permission-set-name.ts; access-security.permission-set-package-resolution), and the same POST without the package is refused (acceptance[5]); one qa_a_ticket record owned by M (create it as admin with owner_id set to M). qa_a_ticket's declared sharingModel decides who reads a row; on a private object M reads only rows M owns, so a record the admin owns reads as 0 rows for M though the qa_a_reader grant holds" ] }, "steps": [ "as M: GET /api/v1/auth/me/permissions and GET /api/v1/data/qa_a_ticket. As admin: POST /api/v1/security/explain {\"userId\": M, \"object\": \"qa_a_ticket\", \"operation\": \"read\"}, and read M's grant row (GET /api/v1/data/sys_user_permission_set) for its permission_set_package", - "stop the server. In the database file, INSERT one sys_metadata_activation row: metadata_type 'permission', package_id 'com.qa.addr-b', name 'qa_a_reader', active false, with a fresh id and the audit columns as an existing row carries them. com.qa.addr-b holds no qa_a_reader, so the row's package_id is a stale column: it names no holder of the name. Restart and repeat step 1. Then stop, DELETE that row, restart and repeat step 1", - "as admin: POST /api/v1/security/_activation/permission/qa_a_reader {\"enabled\": false}; read the row it wrote (GET /api/v1/data/sys_metadata_activation); repeat step 1", - "stop the server; UPDATE that row's package_id to NULL (a package-less row, the shape an earlier release wrote); restart and repeat step 1. Then POST /api/v1/security/_activation/permission/qa_a_reader {\"enabled\": true} and repeat step 1 once more" + "stop the server. In the database file, INSERT one sys_metadata_activation row: metadata_type 'permission', package_id 'com.qa.addr-gone', name 'qa_a_reader', active false, with a fresh id and the audit columns as an existing row carries them. No installed package has the id com.qa.addr-gone, so the row's package_id is a stale column: it names no holder of the name. Restart and repeat step 1. Then stop, DELETE that row, restart and repeat step 1", + "as admin: POST /api/v1/security/_activation/permission/qa_a_reader {\"enabled\": false}, naming no package, and read the ledger (GET /api/v1/data/sys_metadata_activation). Then POST /api/v1/security/_activation/permission/qa_a_reader?package=com.qa.addr-a {\"enabled\": false}; read the row it wrote; repeat step 1", + "stop the server; UPDATE that row's package_id to NULL (a package-less row, the shape an earlier release wrote); restart and repeat step 1. Then POST /api/v1/security/_activation/permission/qa_a_reader?package=com.qa.addr-a {\"enabled\": true} and read the ledger. Then stop, DELETE the package-less row, restart and repeat step 1 once more", + "as admin: POST /api/v1/security/_activation/permission/qa_a_reader?package=com.qa.addr-b {\"enabled\": false}; read the ledger; repeat step 1. Then POST the same address with {\"enabled\": true}" ], "acceptance": [ { @@ -5014,38 +5072,51 @@ "evidence": "the effective-permissions body, the data read and the grant row" }, { - "clause": "a ledger row whose package_id names a package holding no set of the name is a stale column: it switches off the holder the name resolves to, never nothing; a real second holder's row switching nothing off for M's is the pin's case", + "clause": "a ledger row whose package_id names a package holding no set of the name is a stale column: it switches the name off, never nothing, and with two holders it switches off every holder of the name", "oracle": "api", - "verify": "after step 2's restart M no longer lists qa_a_reader, the data read no longer returns the record (record its status), and explain carries qa_a_reader 'held — deactivated': the ledger reads a stale package_id by the D3 rule with no caller and keeps disabling the holder that rule answers, here com.qa.addr-a, and a holder outside the stale package's namespace is switched off too, because a switch-off is never read as none (packages/core/src/security/resolve-authz-context.ts#ledgerRowHolders, #31698). After the row is deleted and the server restarted, step 1's answers are back. The case this clause first meant, a real second holder of the name whose row switches nothing off for M's, is not reachable through install (knownGaps): score it from packages/plugins/plugin-security/src/permission-set-address.test.ts, 'a holder of a grant the user does not hold switches nothing off for the one they do', which reports ≥1 test and 0 failed at the run subject sha (packages/core/src/security/resolve-authz-context.ts#permissionSetSwitchedOff, per holder since #32027)", - "evidence": "the three answers after the restart and after the delete, and the pin file's vitest summary line with the subject sha" + "verify": "after step 2's restart M no longer lists qa_a_reader, the data read no longer returns the record (record its status), and explain carries qa_a_reader 'held — deactivated': the ledger reads a stale package_id by the D3 rule with no caller, and with two holders that rule picks none, so the row switches off every holder of the name, com.qa.addr-a's included, because a switch-off is never read as none (packages/core/src/security/resolve-authz-context.ts#ledgerRowHolders, #31698). After the row is deleted and the server restarted, step 1's answers are back. While such a row stands the door refuses to switch any holder back on (packages/runtime/src/domains/permission-set-package-doors.test.ts, 'a row naming a package that no longer serves the name keeps both holders off too')", + "evidence": "the three answers after the restart and after the delete" }, { - "clause": "the holder's own row switches the set off, and explain names it deactivated", + "clause": "the holder's own row switches the set off, and explain names it deactivated; the door switches a holder only by its package, because the bare name has two", "oracle": "api", - "verify": "the door's row carries package_id com.qa.addr-a and active false; M's effective permissions no longer list qa_a_reader and the data read no longer returns the record (record its status); explain's principal layer carries the contributor {kind: 'permission_set', name: 'qa_a_reader', via: 'held — deactivated', state: 'deactivated'} (packages/plugins/plugin-security/src/explain-engine.ts, which judges dropped grants per holder)", - "evidence": "the ledger row and the three answers" + "verify": "the bare POST answers 409 RESOURCE_CONFLICT, its error.details.candidates naming com.qa.addr-a and com.qa.addr-b, and the ledger holds no qa_a_reader row after it (packages/runtime/src/domains/catalog-activation.ts, the ?package= qualifier). The ?package=com.qa.addr-a POST answers 200, and its row carries package_id com.qa.addr-a and active false. M's effective permissions no longer list qa_a_reader and the data read no longer returns the record (record its status); explain's principal layer carries the contributor {kind: 'permission_set', name: 'qa_a_reader', via: 'held — deactivated', state: 'deactivated'} (packages/plugins/plugin-security/src/explain-engine.ts, which judges dropped grants per holder)", + "evidence": "the 409 body, the two ledger reads and the three answers" }, { - "clause": "a package-less row switches every holder of the name off, and re-enabling restores the grant", + "clause": "a package-less row switches every holder of the name off, and no holder's own switch outvotes it: switching com.qa.addr-a back on is refused until that row is deleted", "oracle": "api", - "verify": "with package_id NULL, step 1's answers are those of the previous clause (packages/core/src/security/resolve-authz-context.ts#readDisabledCatalogNames); after {\"enabled\": true} M lists qa_a_reader again and reads the record", - "evidence": "both sets of answers" + "verify": "with package_id NULL, step 1's answers are those of the previous clause (packages/core/src/security/resolve-authz-context.ts#readDisabledCatalogNames: a row naming no package, on a name two packages hold, switches every holder off). The ?package=com.qa.addr-a {\"enabled\": true} POST answers 409 RESOURCE_CONFLICT naming the row that names no package, and the ledger read after it is unchanged: nothing was written. After that row is deleted and the server restarted, M lists qa_a_reader again and reads the record", + "evidence": "both sets of answers, the 409 body and the ledger reads" }, { "clause": "an OAuth client acting for a user carries no address; an AI service account carries its own", "oracle": "test", "verify": "packages/core/src/security/assemble-execution-context.ts#assembleExecutionContext sets permissionSetAddresses to undefined on the OAuth agent arm: its permissions are the scope-derived ceiling names, which resolve by D3 with no caller, as #32027's comment on the line states. The AI service account (ADR-0151) is the account arm, not that one, and carries authz.permissionSetAddresses. ⚠️ No pin tells the arms apart: assemble-execution-context.test.ts's 'decided but not yet filled' case asserts the agent context has no key, but its authz fixture carries no addresses either. Score this clause from the source reading and say so in the run record (FOLLOW-UPS §16b)", "evidence": "the source lines read, and the run record's note" + }, + { + "clause": "a second package of another namespace holds the same name: both install, a grant naming no package is refused naming both holders, and the grant naming com.qa.addr-a holds that package's set alone", + "oracle": "api", + "verify": "qa_b's install succeeds beside qa_a's (packages/core/src/permission-set-holders.ts#permissionSetHoldersMeet). As admin, POST /api/v1/data/sys_user_permission_set {\"user_id\": M, \"permission_set\": \"qa_a_reader\"} answers 409 RESOURCE_CONFLICT, its error.details.candidates naming com.qa.addr-a and com.qa.addr-b, and writes no row (packages/plugins/plugin-security/src/grant-permission-set-name.ts; packages/rest/src/data-package-scoped-refusal-candidates.test.ts). The fixture's grant naming com.qa.addr-a lands, and in step 1 M reads the qa_a_ticket record while GET /api/v1/data/qa_b_note returns M no row (record its status)", + "evidence": "the two install answers, the refused and the landed grant, and M's two reads" + }, + { + "clause": "a real second holder's row switches only that holder off: M's set keeps granting", + "oracle": "api", + "verify": "after step 5's switch-off the ledger row carries package_id com.qa.addr-b and active false, and M still lists qa_a_reader, still reads the record, and explain carries no deactivated contributor for qa_a_reader: the ledger is judged per holder (packages/core/src/security/resolve-authz-context.ts#permissionSetSwitchedOff, per holder since #32027). The same case is pinned in packages/plugins/plugin-security/src/permission-set-address.test.ts, 'a holder of a grant the user does not hold switches nothing off for the one they do'", + "evidence": "the ledger row and the three answers" } ], "negative": [ - "the stale row of step 2 leaving M's set granting is a FAIL: a row naming a package that holds no set of the name is read by the D3 rule, never as no switch-off. A real second holder's row switching M's set off is a FAIL too (the pin's case): the ledger is judged per holder", - "⛔ leaving step 2's foreign row in place before step 3 makes the door switch that row instead of writing com.qa.addr-a's: setActive finds its row by (metadata_type, name) (packages/core/src/utils/metadata-activation-store.ts, FOLLOW-UPS §16b). That is a fixture error, never a verdict on this item" + "the stale row of step 2 leaving M's set granting is a FAIL: a row naming a package that holds no set of the name is read by the D3 rule, never as no switch-off. A real second holder's row switching M's set off (step 5) is a FAIL too: the ledger is judged per holder", + "⛔ leaving step 2's stale row in place before step 3 keeps every holder off whatever the door then writes: with two holders the door never re-addresses such a row, each holder writing its own (packages/runtime/src/domains/catalog-activation.ts#PERMISSION_LEDGER_ADDRESSING), so step 3's answers would be the stale row's. That is a fixture error, never a verdict on this item", + "a grant or an activation switch naming qa_a_reader without a package answering 200 is a FAIL: with two holders the bare name picks none (ADR-0150 D3), so the write would land on a holder nobody named" ], "traps": ["cache-staleness", "wrong-persona"], "automated": { "kind": "unit", - "ref": "packages/plugins/plugin-security/src/permission-set-address.test.ts and packages/core/src/security/request-execution-context.test.ts; no live spec drives the ledger per holder" + "ref": "packages/plugins/plugin-security/src/permission-set-address.test.ts and packages/core/src/security/request-execution-context.test.ts; for the two-holder doors packages/runtime/src/domains/permission-set-package-doors.test.ts (the activation door), packages/plugins/plugin-security/src/grant-permission-set-package.test.ts (the grant door) and packages/objectql/src/protocol-permission-set-name-registry-reading.test.ts (the install door admitting a second namespace's holder); no live spec drives the ledger per holder" }, "source": [ "packages/core/src/security/assemble-execution-context.ts#assembleExecutionContext (permissionSetAddresses: agent ? undefined : authz.permissionSetAddresses)", @@ -5054,7 +5125,9 @@ "packages/plugins/plugin-security/src/permission-evaluator.ts#permissionSetRequestsFor (the evaluator reads each set at its address)", "packages/plugins/plugin-security/src/explain-engine.ts (dropped grants per holder)", "packages/spec/src/kernel/execution-context.zod.ts#PermissionSetAddressSchema (declared by #31978)", - "#32027 (part of #31971), #31698 (permission-set family narrowing, open)" + "#32027 (part of #31971), #31698 (the permission-set family's narrowing to the namespace)", + "packages/core/src/permission-set-holders.ts#permissionSetHoldersMeet (two packages of two namespaces may each hold one set name)", + "packages/runtime/src/domains/catalog-activation.ts#PERMISSION_LEDGER_ADDRESSING (the activation door's ?package= qualifier and one ledger row per holder)" ], "history": [ { @@ -5080,6 +5153,12 @@ "date": "2026-11-15", "change": "fixtures.requires[2] says the qa_a_ticket record is owned by M: on a private scratch object a row the admin owns reads 0 rows for M, which hides the grant the item reads (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 24). No clause changed. Read at base bc6b7ffd", "ref": "#34016" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "knownGaps[0] closed: since the permission-set narrowing (#31698, ADR-0150 D2/D9) two packages of two namespaces each install a set of one name (packages/core/src/permission-set-holders.ts#permissionSetHoldersMeet), so the two-holder case is driven live. qa_b now ships its own qa_a_reader, and the fixture's grant names its package. steps[1]'s stale column names a package id nothing installs; steps[2] meets the bare door's 409 first and switches com.qa.addr-a's own row by ?package=; steps[3]'s re-enable is refused 409 while the package-less row stands, and the row is deleted instead (acceptance[3] rewritten). New steps[4] with acceptance[6] drives a real second holder's row, until now scored from the pin only; new acceptance[5] scores both installs and the refused bare grant. negative[1] rewritten: the permission ledger is addressed by (package, name). Read at main 159757ab, and measured there: the four pins (permission-set-address 24 tests, grant-permission-set-package 25, permission-set-package-doors 40, protocol-permission-set-name-registry-reading 18, 0 failed) and a throwaway resolver probe (on a name two packages hold, a stale row naming an unknown package, or an installed package holding no set, switches the granted holder off; a real second holder's row does not). Seat scope addition 6897734692 on card #33969", + "ref": "#34068" } ] }, @@ -5332,6 +5411,193 @@ "ref": "#33332" } ] + }, + { + "id": "access-security.cbp-master-read-opt-in", + "title": "A controlled_by_parent detail that declares sharing.controlledByParent.writeRequiresMasterRead lets whoever reads its master insert, update and delete it under the detail's own grants; without read on the master an insert is refused 403 and a stored row is hidden 404; a detail without the key still asks edit on the master; and the save door refuses the key off a detail or beside ownerMayEdit", + "since": "v18.5", + "status": "active", + "revision": 1, + "priority": "P2", + "surface": "api", + "personas": [ + "admin (the seeded admin, admin@objectos.ai): authors the fixture and makes every admin call", + "reader: a member holding a set with read and View All on the master and full CRUD on both details; reads the master row and cannot edit it", + "blind: a member holding full CRUD on both details and no grant on the master object", + "hidden: a member holding read without View All on the master, whose private OWD hides the admin's master row, and full CRUD on both details", + "looker: a member who reads the master (read and View All) and holds READ alone on the opted-in detail" + ], + "fixtures": { + "app": "showcase", + "requires": [ + "a scratch copy of the showcase (never the shared example), compiled into its own dist and booted from it, adding: a master object with a private OWD (e.g. showcase_qa_contract) and one admin-owned row C1; an opted-in detail (sharingModel 'controlled_by_parent', one required master_detail field to the master, sharing: { controlledByParent: { writeRequiresMasterRead: true } }, e.g. showcase_qa_milestone) with one admin-owned row under C1; and a CONTROL detail identical but without the key (e.g. showcase_qa_step) with one admin-owned row under C1. The recipe QA run #33785 drove at a557fa38 (record comment 6893194178)", + "one permission set and one member per persona above: create each member as admin with POST /api/v1/auth/admin/create-user and change its password (the session lands held until then), then grant its set with POST /api/v1/data/sys_user_permission_set", + "for acceptance[5]: a package the metadata save door can address, the scratch app's own or one authored with POST /api/v1/packages" + ] + }, + "steps": [ + "as reader: GET the master row C1, then PATCH it", + "as reader on the opted-in detail: POST /api/v1/data/DETAIL naming C1, then POST /api/v1/data/DETAIL/createMany with two rows under C1; PATCH and DELETE the admin-owned row by id. Read the detail back as admin", + "as blind, then as hidden, on the opted-in detail: POST a row naming C1, and PATCH and DELETE the admin-owned row by id. Read that row back as admin", + "as looker on the opted-in detail: POST, PATCH and DELETE as in step 2", + "as reader on the CONTROL detail: POST a row naming C1, and PATCH and DELETE its admin-owned row by id", + "as reader: POST /api/v1/security/explain for an update of the opted-in admin-owned row and for an update of the CONTROL row", + "as admin through the save door (PUT /api/v1/meta/object/NAME?package=PKG): an object declaring the key under sharingModel 'private'; a controlled_by_parent detail declaring the key beside ownerMayEdit: true; and a controlled_by_parent detail declaring the key alone" + ], + "acceptance": [ + { + "clause": "the opt-in's admit side, its refusals by door, explain's answer and the parse refusals — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", + "oracle": "test", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time, never through a bare `--`; `--reporter=tree` prints the one line per file this clause is scored on, RUNNER.md's environment facts); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "evidence": "the vitest summary line per pin file, with the package name and the subject sha" + }, + { + "clause": "a master reader writes the opted-in detail with no edit on the master: an insert, a batch insert, and an update and a delete of a row the reader neither owns nor created all land", + "oracle": "api", + "verify": "step 1's PATCH of C1 answers 403 PERMISSION_DENIED, while the single POST answers 201, /createMany 201 with two rows, and the by-id PATCH and DELETE 200; the admin's read-back holds exactly those rows. On an opted-in hop the gate asks READ on the master in place of the three edit legs (packages/plugins/plugin-security/src/security-plugin-cbp-write-gate.ts#assertControlledByParentChainEditable)", + "evidence": "each status line and the admin read-back" + }, + { + "clause": "without read on the master every write of the opted-in detail is refused, and the door decides the status: an insert meets the master gate (403, asking READ), a by-id update or delete meets the read door (404), and the stored row is unchanged", + "oracle": "api", + "verify": "blind's and hidden's inserts each answer 403 PERMISSION_DENIED whose message asks for read access to the master, never edit access; their by-id PATCH and DELETE each answer 404 RECORD_NOT_FOUND, because a detail's rows are read through its master (ADR-0055 §2), so the row is hidden before the gate runs; the admin read-back shows the row as seeded", + "evidence": "the six refusal bodies and the read-back" + }, + { + "clause": "the detail's own grants still decide: a master reader holding READ alone on the detail is refused insert, update and delete", + "oracle": "api", + "verify": "looker's three writes each answer 403 PERMISSION_DENIED with the object-permission refusal, not the master gate's sentence", + "evidence": "the three bodies" + }, + { + "clause": "a detail without the key asks edit on the master as before, and explain answers what the write path does", + "oracle": "api", + "verify": "reader's three writes on the CONTROL detail each answer 403 PERMISSION_DENIED whose message asks for edit access to the master. Explain reports the opted-in row writable (its PATCH answered 200) and the CONTROL row excluded by sharing on the object_permission leg (its PATCH answered 403) (packages/plugins/plugin-security/src/explain-engine.ts; packages/spec/src/contracts/security-service.ts#ControlledByParentWriteDenialLeg)", + "evidence": "the CONTROL bodies and both explain answers beside their PATCH status" + }, + { + "clause": "the save door refuses the key where nothing reads it: off a controlled_by_parent detail, and beside ownerMayEdit", + "oracle": "api", + "verify": "the 'private' object answers 422 INVALID_METADATA at path sharing.controlledByParent.writeRequiresMasterRead; the detail with both keys answers 422 at path sharing.controlledByParent.ownerMayEdit, naming that key to delete; the detail with the key alone saves 200 (packages/spec/src/data/object.zod.ts#refuseControlledByParentWriteRequiresMasterReadMisplaced)", + "evidence": "the three save answers" + } + ], + "negative": [ + "a 403 for reader on an opted-in write (the edit question asked anyway) is a FAIL, and so is any write landing for blind, hidden or looker", + "an insert naming the unreadable C1 and one naming a master id that exists nowhere answering different bodies is an existence-oracle FAIL: both are the one 403 (access-security.parent-and-organization-write-guards negative[0])" + ], + "traps": [ + "wrong-persona" + ], + "automated": { + "kind": "unit", + "ref": "packages/plugins/plugin-security/src/controlled-by-parent-owner-may-edit.test.ts + packages/plugins/plugin-security/src/explain-controlled-by-parent-write.test.ts + packages/spec/src/data/controlled-by-parent-owner-may-edit.test.ts + packages/lint/src/validate-security-posture-owner-may-edit.test.ts. The plugin-security files are engine pins (a real ObjectQL over SqlDriver with the security wiring; their '[#33250]' describes carry this opt-in); the spec and lint files are schema and rule units" + }, + "source": [ + "packages/plugins/plugin-security/src/security-plugin-cbp-relation.ts#resolveCbpRelation (reads the key onto the detail's resolved relation)", + "packages/plugins/plugin-security/src/security-plugin-cbp-write-gate.ts#assertControlledByParentChainEditable (the one hop where the master question becomes READ)", + "packages/spec/src/data/object.zod.ts#refuseControlledByParentWriteRequiresMasterReadMisplaced", + "packages/spec/src/contracts/security-service.ts#ControlledByParentWriteDenialLeg", + "#33250 (fix PR #33369; ADR-0055 §3 as amended), driven live by QA run #33785" + ], + "history": [ + { + "revision": 1, + "date": "2026-11-15", + "change": "initial — new coverage for the #33250 opt-in (ledger 6896511848 of #33761, rows 11 and 16): no item drove writeRequiresMasterRead, and security-plugin-cbp-relation.ts had no exact citer, so `checklist-select file:` fell back to its directory. Steps and answers follow QA run #33785's live run at a557fa38 (comment 6893194178); sources re-read at main 159757ab. Card #33969", + "ref": "#34068" + } + ] + }, + { + "id": "access-security.position-renamed-holder-carry", + "title": "A position renamed with renamedFrom carries its holders to the new name on a hot install or upgrade and on the per-item publish door, with no restart: the holders keep their access, a holder of an untouched position stays as it was, a repeat is idempotent, and a package never claims another package's position holders", + "since": "v18.5", + "status": "active", + "revision": 1, + "priority": "P2", + "surface": "api", + "personas": [ + "admin (the seeded admin, admin@objectos.ai): authors the fixture and makes every admin call", + "pu1: a member holding the position the upgrade renames", + "pu2: a member holding the CONTROL position, which no release renames", + "pu3: a member holding the authored package's position for the publish-door leg" + ], + "fixtures": { + "app": "showcase", + "requires": [ + "a scratch package sent to the install-local door, POST /api/v1/marketplace/install-local with admin credentials (the body `os package install` sends). POST /api/v1/packages cannot carry it: ManifestSchema declares no positions key, so that door refuses the manifest 400 naming its keys. v1 ships one object, two permission sets (one granting read and create on the object, one granting read) and two positions, P_old (the first set) and P_ctl (the second, the CONTROL); v2 ships P_new { renamedFrom: ['P_old'] } with the first set, and the same P_ctl. The recipe QA run #33785 drove at a557fa38 (com.qa.posren, record comment 6893194178)", + "pu1 holding P_old and pu2 holding P_ctl, each given its position as admin with POST /api/v1/data/sys_user_position after v1 installs", + "for steps[3]: an authored package (POST /api/v1/packages) and pu3; for steps[4]: a third scratch package whose position declares renamedFrom naming P_ctl, a name another package holds" + ], + "knownGaps": [ + "a rename saved through the metadata save door's default ACTIVE mode does not carry its holders until a restart (#33788, open): only a draft and its publish announce the reload. steps[3] drives the draft and publish door; an active-save reading belongs to that card, never to a verdict here" + ] + }, + "steps": [ + "install v1 through install-local. As pu1 GET and POST the object; as pu2 POST it", + "install v2 through install-local in the same server process. Read pu1's and pu2's sys_user_position rows (GET /api/v1/data/sys_user_position), GET /api/v1/auth/me/permissions as pu1, then as pu1 GET and POST the object again; GET /api/v1/meta/position", + "send v2 to install-local again; read both holder rows' updated_at", + "in the authored package: save a position P_a (PUT /api/v1/meta/position/P_a?package=PKG) and give pu3 that position; DELETE P_a; save P_b { renamedFrom: ['P_a'] } as a draft and publish it (POST /api/v1/meta/position/P_b/publish). Read pu3's row and drive pu3's write the position grants", + "install the third package through install-local; read pu2's row and the served log" + ], + "acceptance": [ + { + "clause": "the carry at boot, on a hot install and on the publish door, and its refusals — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", + "oracle": "test", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time, never through a bare `--`; `--reporter=tree` prints the one line per file this clause is scored on, RUNNER.md's environment facts); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "evidence": "the vitest summary line per pin file, with the package name and the subject sha" + }, + { + "clause": "a hot upgrade that renames a position carries its holders, with no restart", + "oracle": "api", + "verify": "v2 answers success with hotLoaded true; pu1's row now names P_new, its updated_at moved; me/permissions lists P_new and still the first set; pu1's GET answers 200 and POST 201 in the same process; GET /api/v1/meta/position serves P_new and P_ctl and no P_old (packages/plugins/plugin-security/src/position-renamed-holder-carry.ts#carryRenamedPositionHolders)", + "evidence": "the install answer, both holder rows, the permissions body and pu1's two writes" + }, + { + "clause": "a holder of an untouched position stays as it was, and a repeat changes nothing", + "oracle": "api", + "verify": "pu2's row still names P_ctl with its updated_at unchanged, and pu2's POST still answers 403; the repeated install answers success and neither row's updated_at moves", + "evidence": "the rows' updated_at before and after, and pu2's answer" + }, + { + "clause": "the per-item publish door carries the holders too", + "oracle": "api", + "verify": "after the publish pu3's row names P_b and pu3's write lands", + "evidence": "pu3's row and the write's answer" + }, + { + "clause": "a package never claims another package's position holders", + "oracle": "log", + "verify": "the third package installs; the served log carries one warning that the rename of P_ctl was not carried, naming it held by another package (the 'held-by-other' refusal of position-renamed-holder-carry.ts); pu2's row is unchanged", + "evidence": "the log line and pu2's row" + } + ], + "negative": [ + "pu1 losing access across the upgrade, or keeping only P_old until a restart, on the install-local or the publish door is a FAIL; the active-save door is knownGaps[0]", + "the third package moving pu2 to its own position is a FAIL" + ], + "traps": [ + "cache-staleness", + "wrong-persona" + ], + "automated": { + "kind": "unit", + "ref": "packages/plugins/plugin-security/src/position-renamed-holder-carry.test.ts + packages/cloud-connection/src/marketplace-install-local-hot-resync.test.ts + packages/runtime/src/domains/packages-reload-announce.test.ts. The plugin-security file boots a real ObjectKernel over SqlDriver with SecurityPlugin; the cloud-connection file drives the real install-local route handler over a real kernel; the runtime file drives HttpDispatcher over a real kernel" + }, + "source": [ + "packages/plugins/plugin-security/src/position-renamed-holder-carry.ts#carryRenamedPositionHolders (the hot carry, its report and its refusals)", + "packages/plugins/plugin-security/src/position-renamed-holder-carry.ts#carryRenamedPositionHoldersAtBoot", + "#33238 (fix PR #33245, completed by #33448, #33473 and #33304), driven live by QA run #33785" + ], + "history": [ + { + "revision": 1, + "date": "2026-11-15", + "change": "initial — new coverage for the #33238 renamedFrom holder carry (ledger 6896511848 of #33761, row 12): no item covered it, at boot or hot. Steps and answers follow QA run #33785's live run at a557fa38 (comment 6893194178); its active-save finding is #33788 (knownGaps[0]). Sources re-read at main 159757ab. Card #33969", + "ref": "#34068" + } + ] } ] } \ No newline at end of file diff --git a/docs/qa/platform-checklist/areas/ai.json b/docs/qa/platform-checklist/areas/ai.json index 5d544f804fb..87536513102 100644 --- a/docs/qa/platform-checklist/areas/ai.json +++ b/docs/qa/platform-checklist/areas/ai.json @@ -916,7 +916,7 @@ "title": "MCP on v18: a coded refusal on the data tools, list_actions and the record resource renders {error:{code,message,status}} (not the bare message), both MCP doors honour a runtime-authored object's apiEnabled:false including after a restart, and run_action withholds PERMISSION_DENIED details", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P2", "surface": "api", "personas": [ @@ -940,7 +940,7 @@ { "clause": "coded MCP refusals and runtime-object exposure — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -986,7 +986,8 @@ }, { "revision": 3, "date": "2026-10-26", "change": "automated.ref extended — checklist-accuracy findings of the 18.2.0 sweep, Tier 1 record #25815 at 6679644a (wave anchor #25807). acceptance[1]: mcp-coded-refusal.test.ts asserts the clause at plugin-unit layer but was not in the ref. acceptance[2]: the record found no pin driving query_records on an apiEnabled false runtime object across a restart; re-read on main at b4199c96, packages/qa/dogfood/test/mcp-stdio-runtime-object-exposure.test.ts does, on the stdio door at engine layer, so it joins the ref and the ref now names each pin's layer. No clause changed, no status changed", "ref": "#25836" }, { "revision": 4, "date": "2026-10-31", "change": "fixtures.requires[3] and steps[2] name acceptance[3]'s producer. Checklist-accuracy finding of QA run #27409 (18.3.0 sweep, wave 3, Tier 1 half A, at c4c515ad; sweep anchor #27377): the fixtures named no recipe for the PERMISSION_DENIED arm, and the run staged it with a runtime declarative update action on showcase_task, ai-exposed, run as auditor.demo. Re-read at base 488b3ed0: packages/runtime/src/action-execution.ts (the declarative update writes as the caller), packages/spec/src/ui/action.zod.ts (ai.exposed requires a description). The clause is unchanged", "ref": "#27409" }, - { "revision": 5, "date": "2026-11-14", "change": "acceptance[1].verify names the door (stale spec, QA run #33025, comment 6844741021; ledger row 70 of #32908): the bare 'tool result body' named none, and the coded refusal holds on the HTTP /mcp face that mcp-coded-refusal.test.ts drives. The clause is unchanged. Read at base 82838e83", "ref": "#33328" } + { "revision": 5, "date": "2026-11-14", "change": "acceptance[1].verify names the door (stale spec, QA run #33025, comment 6844741021; ledger row 70 of #32908): the bare 'tool result body' named none, and the coded refusal holds on the HTTP /mcp face that mcp-coded-refusal.test.ts drives. The clause is unchanged. Read at base 82838e83", "ref": "#33328" }, + { "revision": 6, "date": "2026-11-15", "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", "ref": "#34068" } ] }, { @@ -1135,7 +1136,7 @@ "title": "MCP serves the governed datasets: list_datasets lists each dataset this caller may query with its members and reports which terms match which member, and query_dataset answers rows with provenance, a row count and a truncation fact, never SQL", "since": "v18.4", "status": "active", - "revision": 1, + "revision": 2, "priority": "P1", "surface": "api", "personas": [ @@ -1203,7 +1204,7 @@ { "clause": "the pins pass at the run subject sha: a dataset this caller may not query answers the same NOT_FOUND as a missing one, a degraded read answers 503, and a token without data:read registers neither tool", "oracle": "test", - "verify": "run each file in automated.ref with its package's vitest; each reports ≥1 test and 0 failed", + "verify": "run each file in automated.ref with its package's vitest and `--reporter=tree`, which prints one line per file (RUNNER.md's environment facts); each reports ≥1 test and 0 failed", "evidence": "the vitest summary line per file, with the subject sha" } ], @@ -1234,6 +1235,12 @@ "date": "2026-11-10", "change": "initial — ADR-0149 D2, the dataset pair on MCP. Scoped sweep #32269 (epic #32022 M3, theme 7: AI data tools and MCP), read from source at 9091955b; no live run made", "ref": "#32269" + }, + { + "revision": 2, + "date": "2026-11-15", + "change": "acceptance[7].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -1242,7 +1249,7 @@ "title": "read_file answers the text of a PDF and a Word document with its facts, stops a long extraction at the CPU-time budget with a note, refuses past the concurrent-reading cap with a retryable 503, and a malformed budget variable fails the boot naming it", "since": "v18.4", "status": "active", - "revision": 2, + "revision": 3, "priority": "P1", "surface": "api", "personas": [ @@ -1298,7 +1305,7 @@ { "clause": "the pins pass at the run subject sha: over OS_MCP_READ_FILE_MAX_CONCURRENT readings the call answers SERVICE_UNAVAILABLE 503 with details.retryAfterSeconds, a file over the 10 MiB cap answers its facts and the link only, and a scanned PDF says it has no text layer", "oracle": "test", - "verify": "run each file in automated.ref with its package's vitest; each reports ≥1 test and 0 failed", + "verify": "run each file in automated.ref with its package's vitest and `--reporter=tree`, which prints one line per file (RUNNER.md's environment facts); each reports ≥1 test and 0 failed", "evidence": "the vitest summary line per file, with the subject sha" } ], @@ -1333,6 +1340,12 @@ "date": "2026-11-13", "change": "assertion-defect correction of acceptance[3] (with fixtures.requires[2] and [3], steps[0] and steps[2]). At OS_MCP_READ_FILE_CPU_BUDGET_MS=1 the budget is spent before the first page, so pdfAnswer's empty arm answers content 'none' with the budget note and no truncated (packages/mcp/src/file-content.ts#pdfAnswer); at 60 the clause's shape appears. The fixture budget is raised to 60, the clause names the zero-page shape as a fixture signal to re-read at a higher budget, and leaves open whether a stopped read must always carry truncated true (if ruled so, that is a product defect in pdfAnswer's empty arm, not this item's). The receipt field is on showcase_invoice_line, not showcase_invoice (examples/app-showcase/src/data/objects/invoice.object.ts), so the fixture and steps name the invoice line. Found by the 18.4.0 acceptance run #32940 (F-4 to F-8 and its R4/R5 comments; wave anchor #32908). Re-read at main cf1b55c0. Card #32945", "ref": "#32945" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "acceptance[5].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -1341,7 +1354,7 @@ "title": "A host-installed MCP tool-call interceptor sees every call with its door, transport, name and principal, may deny one with a coded refusal the tool never runs past, is told of a call to an unregistered name, and a verdict it cannot render refuses the call as a server fault", "since": "v18.4", "status": "active", - "revision": 2, + "revision": 3, "priority": "P2", "surface": "api", "personas": [ @@ -1400,7 +1413,7 @@ { "clause": "the pins pass at the run subject sha: with no interceptor every call runs untouched, a throw refuses the call with its code, and both servers route their calls through the seam", "oracle": "test", - "verify": "run each file in automated.ref with its package's vitest; each reports ≥1 test and 0 failed", + "verify": "run each file in automated.ref with its package's vitest and `--reporter=tree`, which prints one line per file (RUNNER.md's environment facts); each reports ≥1 test and 0 failed", "evidence": "the vitest summary line per file, with the subject sha" } ], @@ -1434,6 +1447,12 @@ "date": "2026-11-14", "change": "knownGaps[0], steps[4] and acceptance[4].verify re-pointed (stale spec, QA runs #33025 and #33089, comments 6844741021 and 6850460138; ledger row 72 of #32908). The inline interceptor plugin has been booted and all five legs held, so knownGaps[0] no longer says it was not; the typed-config cast is named. The stdio call waits for readiness. No clause changed. Read at base 82838e83", "ref": "#33328" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "acceptance[5].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, diff --git a/docs/qa/platform-checklist/areas/api-backend.json b/docs/qa/platform-checklist/areas/api-backend.json index bf8723847d8..44f79cf711a 100644 --- a/docs/qa/platform-checklist/areas/api-backend.json +++ b/docs/qa/platform-checklist/areas/api-backend.json @@ -3079,7 +3079,7 @@ "title": "Every read that reaches a NON-addressed object asks that object's own `enable` block (nested-relation filter → 404/405, $expand withheld to the bare id, search skips it), and an `internal: true` field is refused 400 INVALID_FIELD in every evaluate position (filter, sort, groupBy, aggregate, $expand where/orderBy)", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -3105,7 +3105,7 @@ { "clause": "second-object exposure and internal-field refusal at the protocol and engine — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -3168,6 +3168,12 @@ "date": "2026-11-14", "change": "automated.ref re-pointed (stale ref, QA run #33081 acceptance[0], card #33086 item 2): packages/metadata-protocol/src/protocol.data-door-internal-field-positions.test.ts no longer exists, and acceptance[0].verify says a missing file is not a pass. The data door's internal-field evaluate refusal moved into the engine, and its position pin with it, to packages/objectql/src/protocol-data-door-internal-field-positions.test.ts; the door's own half (that it asks the engine's gate, with what, before what) is packages/metadata-protocol/src/protocol.data-door-internal-field-delegation.test.ts, which the ref now names beside it. The move is b388cfeca6 (#29003), read from the commit listing of both paths; the card named bca2a515 (#32128), which touches neither file. No clause changed. Read at base e540baf8", "ref": "#33086" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -3176,7 +3182,7 @@ "title": "Request-shape gates on v18: a /data write with a null / array / scalar body or an empty version token is refused 400 (never an unguarded 200), a repeated single-valued query name is refused 400 on the dispatcher doors (a doubled keepData no longer drops tables), and a stale If-Match on an unreadable row answers 404", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -3201,7 +3207,7 @@ { "clause": "request-schema gate, empty-token refusal, dispatcher query arity and conflict caller visibility — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -3270,6 +3276,12 @@ "date": "2026-10-27", "change": "acceptance[1]–[4] are pinned at the layer their oracle names (the release-18.2.0 Tier 1 sweep #26468 scored a1–a4 and n0 partial: every pin stopped above the Hono adapter). The new data-request-shape-live.dogfood.test.ts drives each step through the HTTP stack of its own showcase boot (the destructive keepData probe runs on that throwaway stack) and automated.ref names it with what it asserts. Measured at base 74db43ef. No clause changed", "ref": "#26572" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -3278,7 +3290,7 @@ "title": "/meta read doors on v18: GET /meta/app/PACKAGE_ID returns that package's app, `?member=` selects one bundle member on by-name doors, an unknown query parameter on any by-name door is refused 400, `?package=all` folds to the no-parameter answer, and the object definition marks an FLS-denied field unsortable for that caller", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P2", "surface": "api", "personas": [ @@ -3303,7 +3315,7 @@ { "clause": "app-by-package-id, member selector, closed query sets, package=all fold and caller-FLS sortability — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -3375,6 +3387,12 @@ "date": "2026-11-04", "change": "fixtures.requires[1] corrected: the bare PUT of a zh-CN member onto the shipped showcase_task_done_email is package-less, which ADR-0146 D11 refuses 403 NOT_OVERRIDABLE. The member is now authored into com.example.showcase.custom with no `overrides`, the shape meta-read-doors-live.dogfood.test.ts already uses. Measured on a fresh showcase boot at base 232d3bb5ef: package-less PUT 403; pair PUT with overrides 403 (the base ships no zh-CN member); pair PUT without overrides 200, then ?member=zh-CN serves it and ?member=en-US the shipped member. No clause changed", "ref": "#30129" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -3383,7 +3401,7 @@ "title": "Error answers made honest on v18: a hook refusal on a hand-built write route answers 400 with the hook's own sentence, a crash answers a generic 500 that withholds the caught message, and a unique-constraint refusal is 409 UNIQUE_VIOLATION with details at the action door, MCP and sandboxed bodies too", "since": "v18", "status": "active", - "revision": 9, + "revision": 10, "priority": "P2", "surface": "api", "personas": [ @@ -3406,7 +3424,7 @@ { "clause": "hook-refusal sentences, withheld 500 text and the unique-violation wire code — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -3493,6 +3511,12 @@ "date": "2026-11-14", "change": "acceptance[2] (clause, verify) and automated.ref re-pointed to the widened details (stale spec, QA run #33025 acceptance[2], card #33032 item 2; the same clause #33086 lists as still open, done once here). 28a15270 (#32935) made the 409 UNIQUE_VIOLATION details for a duplicate in an organization-scoped unique field {developerMessage, field, object}: the composite key (organization_id, FIELD) now names FIELD (packages/types/src/unique-violation.ts#uniqueViolationField). r8 expected exactly developerMessage and object, no field. Both pins already assert the new set: packages/qa/dogfood/test/error-sentences-live.dogfood.test.ts ('details exactly { developerMessage, field, object }', field 'email') and packages/runtime/src/dispatcher-unique-violation-wire-code.test.ts. Status, code and the row keeping its email are unchanged. Read at base e540baf8", "ref": "#33032" + }, + { + "revision": 10, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, diff --git a/docs/qa/platform-checklist/areas/approvals.json b/docs/qa/platform-checklist/areas/approvals.json index 93b67034998..bd351c1653c 100644 --- a/docs/qa/platform-checklist/areas/approvals.json +++ b/docs/qa/platform-checklist/areas/approvals.json @@ -1413,7 +1413,7 @@ "title": "The anonymous /approvals/act door: a minted one-tap token renders a confirm page and one POST decides as exactly the bound approver — every dead-token shape is a designed refusal page with no state change", "since": "v16", "status": "active", - "revision": 10, + "revision": 11, "priority": "P1", "surface": "api", "personas": ["dev admin (submitter of the seeded invoice request — remind is submitter-only). Since PR #24620 the remind fan-out mints no token, so the admin drives only the live legs: the reminder at-rest read and the server reads beside the anonymous probes", "the ANONYMOUS bearer of an action link: a clean HTTP client holding NO session cookie and NO bearer token"], @@ -1432,7 +1432,7 @@ "steps": [ "boot the showcase on its own port and DB (dogfood §0); sign in as the dev admin", "at-rest leg: POST /api/v1/approvals/requests/:id/remind on the admin-submitted invoice request — the answer's notified is positive and GET /:id/actions gains one remind row (notified counts the reminders handed over, ONE per distinct concrete address on pending_approvers: an approver the slate lists twice — a per_group slate keeps one slot per group they resolved into — is reminded once and counted once, a position:* literal adds nothing, and a user id and the same account's email are two addresses, counted twice exactly as at the opening. approval-service.ts remind; pinned by remind-notified-per-person.integration.test.ts. So expect notified to equal the number of distinct concrete addresses, never the slot count: QA run #27409 read notified:1 for the admin listed twice); then GET /api/v1/data/sys_notification (topic approval.reminder, source_id = the request id) as the admin and confirm each reminder payload carries NO actions list and no /api/v1/approvals/act URL — only its title, its body and the /system/approvals deep link. ⛔ Do NOT read sys_approval_token through the data API: since PR #22633 the object is apiEnabled: false with apiMethods: [], so GET /api/v1/data/sys_approval_token answers 404 OBJECT_API_DISABLED for every caller (the administrator included) — that 404 is the designed answer, not a finding", - "the live-token legs — the per-approver mint (one approve + one reject row per concrete pending approver, SHA-256 at rest, FORBIDDEN for a non-pending approver), the confirm page that never mutates, the redemption as the bound approver (comment 'Via action link'), the replay, the dead-slot and expired shapes and the bearer probe — need a raw token no stock door mints (knownGaps[0]): run the pins in automated.ref and cite each file's summary line, per clause as each verify names them", + "the live-token legs — the per-approver mint (one approve + one reject row per concrete pending approver, SHA-256 at rest, FORBIDDEN for a non-pending approver), the confirm page that never mutates, the redemption as the bound approver (comment 'Via action link'), the replay, the dead-slot and expired shapes and the bearer probe — need a raw token no stock door mints (knownGaps[0]): run the pins in automated.ref with `--reporter=tree`, which prints one line per file (RUNNER.md's environment facts), and cite each file's summary line, per clause as each verify names them", "switch to a CLEAN anonymous client (no cookies, no Authorization header — prove it: GET /api/v1/approvals/requests from the same client answers 401); GET and then POST (form body token=garbage) /api/v1/approvals/act?token=garbage — both answer the 'Invalid link · 链接无效' page, 200 text/html, with no request summary rows, and the admin's before/after reads of the invoice request show no change. It is the one dead-token shape a live boot can still produce without a minted token", "expiry: no live door on this build (see knownGaps) — cite the pinned unit test's 'expired' reason and the RESULT_COPY.expired page copy ('Link expired · 链接已过期'), and record the leg as blocked(fixture)" ], @@ -1507,7 +1507,8 @@ { "revision": 7, "date": "2026-10-20", "change": "fixtures.knownGaps[0] and knownGaps[2] score each live-token leg at its own clause's layer. PR #24891's carried finding (round 15's acceptance notes: legs scored from pins, mixed clause oracles), read under RUNNER rule 6. Read at base feb09db14a: acceptance[0]–[3] are test-oracle clauses and their pins are their oracle; acceptance[4] is a network clause, and action-page-member.integration.test.ts renders its invalid, expired and consumed pages through the plugin's page member and mount on a started kernel (driver-sql over in-memory SQLite, a real Hono app), while its not_pending / not_approver pages and acceptance[5]'s bearer probe have no pin at their door. knownGaps[0] said every such leg is scored from the pins, and knownGaps[2] scored the expired shape from the service test; both now say this, as acceptance[4].verify already did. No clause changed", "ref": "#24963" }, { "revision": 8, "date": "2026-10-20", "change": "steps[0] respelled: 'boot showcase isolated' → 'boot the showcase on its own port and DB'. Round 12's out-of-scope finding (landing record 6287983829 on wave anchor #24579): the phrase 'showcase isolated' named the dogfood §0 own-port boot, and a runner read it as the `isolated` tenancy posture (OS_TENANCY_POSTURE=isolated). The new spelling names that boot by what it is, in RUNNER.md's own words for it (the trap table's counter: own port/DB, skill §0), and names no posture. Read at base e4d604efd3. No clause changed", "ref": "#25003" }, { "revision": 9, "date": "2026-10-26", "change": "three checklist-accuracy findings of the 18.2.0 sweep's QA run #25815, Tier 1 set, at framework 6679644a (findings card #25838, wave anchor #25807): acceptance[0]'s FORBIDDEN arm is pinned with 'stranger', no approver at all, not a non-pending approver, and its live at-rest sys_notification read stays a run leg; acceptance[1]'s pins read status pending and no decisions, not the byte-identity of the actions timeline or the token's consumed_at; acceptance[3]'s 'a decide that fails still burns it' has no named pin. Each verify now names its unpinned half, and automated.ref and knownGaps[0] no longer call acceptance[0], [1] and [3] fully pinned. Pins re-read at base 9753d163. No clause changed", "ref": "#26116" }, - { "revision": 10, "date": "2026-10-31", "change": "steps[1] said notified counts pending SLOTS, a slot listed twice counting twice. QA run #27409 read notified:1 with the admin listed twice in pending_approvers. remind() now counts one reminder per distinct concrete address (approval-service.ts remind: a Set over pending_approvers, position:* literals not counted), pinned by remind-notified-per-person.integration.test.ts. The step now states that count, which is more precise than 'a positive count'. No clause changed: no clause asserts notified. Read from source at base 22ce3d13. Wave anchor #27377, wave-3 accuracy slice S5 (#28339); finding parked in anchor comment 6488948228", "ref": "#27409" } + { "revision": 10, "date": "2026-10-31", "change": "steps[1] said notified counts pending SLOTS, a slot listed twice counting twice. QA run #27409 read notified:1 with the admin listed twice in pending_approvers. remind() now counts one reminder per distinct concrete address (approval-service.ts remind: a Set over pending_approvers, position:* literals not counted), pinned by remind-notified-per-person.integration.test.ts. The step now states that count, which is more precise than 'a positive count'. No clause changed: no clause asserts notified. Read from source at base 22ce3d13. Wave anchor #27377, wave-3 accuracy slice S5 (#28339); finding parked in anchor comment 6488948228", "ref": "#27409" }, + { "revision": 11, "date": "2026-11-15", "change": "steps[2] names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", "ref": "#34068" } ] }, { @@ -1826,7 +1827,7 @@ "title": "Approval requests on v18: the request record page serves record:approval_decision and a Reply action that lands in its timeline, `enable.approvalsVisibleToReaders` lets a plain record reader see the record's requests read-only (and only then), the generic /data door serves request rows by approvals visibility, and titles shown to a reader use only what that reader may read", "since": "v18", "status": "active", - "revision": 8, + "revision": 9, "priority": "P1", "surface": "mixed", "personas": [ @@ -1854,7 +1855,7 @@ { "clause": "request page, reply, reader opt-in, generic-door read gate and reader-scoped titles — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -1944,6 +1945,12 @@ "date": "2026-11-15", "change": "acceptance[2].verify names the stock recipe for the 403 leg's external member (invite-member with role external, sign-up with invitationId, accept-invitation) where it said to record the leg not exercised (QA run #33853, comment 6894307378; ledger 6896511848 of #33761 row 69). The clause is unchanged. Read at base bc6b7ffd", "ref": "#34016" + }, + { + "revision": 9, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -1952,7 +1959,7 @@ "title": "Approvals on v18: the email action door /approvals/act works through the dispatcher exactly as the self-hosted mount (GET renders, POST redeems, a PUT neither door claims an ordinary 404 miss with no Allow header, a dead link a 200 page, a policy-held session not 403'd before the token), and an approval over an unstaffed position opens on the org administrators as ordinary approvers", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "api", "personas": [ @@ -1975,7 +1982,7 @@ { "clause": "the dispatcher act door and the admin_rescue slate — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2031,6 +2038,12 @@ "date": "2026-10-28", "change": "automated.ref says which 404 arm is pinned. Checklist-accuracy finding of the 18.2.0 wave 2 (QA run #26468, Tier 1 half A, at 756220c4; wave anchor #25807, slice B): the ref is accurate, and the run noted that approvals-act.test.ts asserts PUT → 404 ROUTE_NOT_FOUND through the real dispatcher while the self-hosted ENDPOINT_NOT_FOUND arm has no pin. Re-read at base fd246c22: grep ENDPOINT_NOT_FOUND over the ref's five files, no hit. No clause changed", "ref": "#25807" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] } diff --git a/docs/qa/platform-checklist/areas/attachments-storage.json b/docs/qa/platform-checklist/areas/attachments-storage.json index 05126459a39..93aec4b5fe1 100644 --- a/docs/qa/platform-checklist/areas/attachments-storage.json +++ b/docs/qa/platform-checklist/areas/attachments-storage.json @@ -1180,7 +1180,7 @@ "title": "Upload contract on v18: a declared size over the limit (100 MiB default, moved live by the max_upload_mb setting) is 413 with nothing written, an unknown scope is 400 naming the allowed values (public is retired), only the uploader may complete or poll an upload, an unclaimed private file is 401 to anonymous, and a file id copied from another record hydrates as {id, metadataRefused:true}", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -1205,7 +1205,7 @@ { "clause": "limits, scope vocabulary, uploader-only doors, unclaimed-download floor and file hydration — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -1281,6 +1281,12 @@ "date": "2026-10-31", "change": "acceptance[5] and steps[4] say how the copied-id state is reached and for whom. QA run #27409 noted that a data-API write of a copied file id is copy-on-write, so only a driver-level write reaches the state, and that a reader holding sys_file read sees the foreign file in full. file-reference-lifecycle.ts copies a file another record owns on claim (copyOwnedFile). engine-file-reference-hydration.ts mints {id, metadataRefused:true} only on the refused-sys_file-read arm, judged per record. The step plants the id below the hooks and reads the column back. The reader is one refused sys_file read, as the run drove it (reader D: qa_shared read, no sys_file). Stronger, not weaker: the raw read rules out a minted copy passing as the planted id. Read from source at base 22ce3d13fe. Wave anchor #27377, wave-3 accuracy slice S7 (#28341)", "ref": "#27409" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -1289,7 +1295,7 @@ "title": "Chunked upload integrity on v18: complete with a missing chunk is 409 with details.missingChunks and the session stays in_progress, a re-sent chunk counts once, parallel chunks all record, and an org switch mid-upload answers 409 on chunk and complete, and on progress only once the session's expiry stamp is due", "since": "v18", "status": "active", - "revision": 9, + "revision": 10, "priority": "P2", "surface": "api", "personas": [ @@ -1315,7 +1321,7 @@ { "clause": "chunk accounting and the missing-chunk refusal — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand). The org-switch guard of acceptance[3] is pinned at the chunked doors by storage-upload-organization-change.wall.test.ts (knownGaps[0])", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -1399,6 +1405,12 @@ "date": "2026-11-08", "change": "fixtures.knownGaps gains acceptance[3]'s second-organization fixture gap and the group boot that would serve it. Coverage gap of QA run #31486 (owed:weekly, at 0647dabb). Read at base 4894cfe1", "ref": "#31499" + }, + { + "revision": 10, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, diff --git a/docs/qa/platform-checklist/areas/automation.json b/docs/qa/platform-checklist/areas/automation.json index cae29f68b6f..3cd96689a3c 100644 --- a/docs/qa/platform-checklist/areas/automation.json +++ b/docs/qa/platform-checklist/areas/automation.json @@ -2558,7 +2558,7 @@ "title": "A stored flow the engine refused to register no longer reads as running: GET /meta/flow/:name carries registration {state:\"refused\", reason} beside the authored status, the list carries registrations keyed by name, and a good flow reads registered", "since": "v18", "status": "active", - "revision": 2, + "revision": 3, "priority": "P1", "surface": "api", "personas": [ @@ -2580,7 +2580,7 @@ { "clause": "the registration verdict on the flow read and list — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2617,6 +2617,12 @@ "date": "2026-10-19", "change": "fixtures.requires[1] names a refused flow that can be stored — checklist-accuracy finding of the 18.0 QA sweep (QA run #24545, automation.flow-registration-verdict-on-read fixtures; wave anchor #24579 §3): the suggested contract-refused builtin node config is refused at parse, and a refused re-registration keeps reading registered. Re-derived at base 9a7838edf5 (packages/services/service-automation/src/engine.ts: recordFlowRefusal ignores a name the engine holds; registerFlow refuses an api flow with no secret after the parse accepts it). Left alone from the same finding: the OS_METADATA_WRITABLE=flow half (flow declares allowRuntimeCreate: true, so a new flow needs no hatch). No clause changed", "ref": "#24649" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2625,7 +2631,7 @@ "title": "Flow authoring contract on v18, refused at `os validate` — and at PUT /meta/flow for every flow-body arm but the CEL root scope, which only `os validate` judges: single-brace {…} value tokens (CEL only; text slots use {{ }}), $-prefixed bound variable names, builtin node config keys/values the executor does not declare, dangling or repeated edges, `record`/`user.id` roots a flow cannot bind, retryPolicy.maxRetry, and an anonymous endpoint targeting a runAs:\"system\" flow", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "cli", "personas": [ @@ -2648,7 +2654,7 @@ { "clause": "every flow authoring refusal at the spec and lint layers — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2709,7 +2715,8 @@ "change": "automated.ref narrowed per clause — checklist-accuracy finding C8 of QA run #24786 (wave anchor #24579 round 12, round 6's theme-B rule): the ref listed nine spec and lint unit pins with no clause qualifier, though acceptance[1]–[3] need the CLI or the PUT door. The pins are acceptance[0]'s own subject, so `automated` stays, narrowed to it. No clause changed", "ref": "#24824" }, - { "revision": 5, "date": "2026-10-31", "change": "acceptance[2] and steps[1] say the endpoint arm needs a tenant flow name. Checklist-accuracy finding of QA run #27409 (18.3.0 sweep, wave 3, Tier 1 half A, at c4c515ad; sweep anchor #27377): a PUT of the runAs:'system' body under a packaged flow's name answered 403 NOT_OVERRIDABLE before the door judged it, so the arm never reached its 422 until the endpoint named a flow no package ships. Re-read at base 488b3ed0: packages/metadata-protocol/src/protocol.ts (a package-shipped item answers NOT_OVERRIDABLE at the meta write door). The 422 assertion is unchanged", "ref": "#27409" } + { "revision": 5, "date": "2026-10-31", "change": "acceptance[2] and steps[1] say the endpoint arm needs a tenant flow name. Checklist-accuracy finding of QA run #27409 (18.3.0 sweep, wave 3, Tier 1 half A, at c4c515ad; sweep anchor #27377): a PUT of the runAs:'system' body under a packaged flow's name answered 403 NOT_OVERRIDABLE before the door judged it, so the arm never reached its 422 until the endpoint named a flow no package ships. Re-read at base 488b3ed0: packages/metadata-protocol/src/protocol.ts (a package-shipped item answers NOT_OVERRIDABLE at the meta write door). The 422 assertion is unchanged", "ref": "#27409" }, + { "revision": 6, "date": "2026-11-15", "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", "ref": "#34068" } ] }, { @@ -2717,7 +2724,7 @@ "title": "Flow run semantics on v18: current_user is bound in CEL (null on a schedule run), `record` exists only when the run was handed one, a non-system caller starting a runAs:\"system\" self-triggered flow is refused 403 with nothing run, and a decision with overlapping true edges takes the FIRST", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -2741,7 +2748,7 @@ { "clause": "current_user binding, record binding, elevated-start refusal and first-match decisions — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2803,6 +2810,12 @@ "date": "2026-11-14", "change": "fixtures.requires[2] gives the elevated scratch flow the name steps[1] triggers (qa_elevated) and a body (autolaunched, runAs system, one create_record), which no recipe carried. No clause changed. Read from source at base 87330e89. Source record: QA record #33092 (comment 6850793622) on #32908. Batch E of the #32908 close-out, card #33331", "ref": "#33331" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2811,7 +2824,7 @@ "title": "Inbound flow hooks accept ONLY the timestamped signature (t=,v1=): a body-only sha256= HMAC, a stale timestamp, an unknown flow and a wrong hook id all answer the SAME 401, and nothing is enqueued", "since": "v18", "status": "active", - "revision": 2, + "revision": 3, "priority": "P1", "surface": "api", "personas": [ @@ -2834,7 +2847,7 @@ { "clause": "the timestamped-signature-only hook door — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2875,6 +2888,12 @@ "date": "2026-10-26", "change": "acceptance[2].verify says the cross-arm byte comparison is a live measurement the pins do not make. Checklist-accuracy finding of the 18.2.0 sweep (QA run #25815, release-18.2.0-tier1, at 6679644a: a2; wave anchor #25807, card #25840): no pin byte-compares the refusal arms' bodies against each other; the rows assert code + typeof message only, and member-vs-mount parity is per row, not across arms. Re-read at base 9753d1637f (inbound-hook-member.test.ts: the per-arm loop matches error.code and checks typeof error.message; the parity case compares viaMember to viaMount per row). The clause is unchanged", "ref": "#25840" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2883,7 +2902,7 @@ "title": "Scheduled work is OFF on a stock v18 boot unless OS_AUTOMATION_SCHEDULED_WORK_ENABLED=true: schedule triggers bind and fire only with the flag, and the boot says which (D3 schedule-flow-acting-organization-required)", "since": "v18", "status": "active", - "revision": 2, + "revision": 3, "priority": "P1", "surface": "api", "personas": [ @@ -2904,7 +2923,7 @@ { "clause": "the per-kernel scheduled-work policy — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2944,6 +2963,12 @@ "date": "2026-10-26", "change": "acceptance[1].verify and acceptance[2].verify say they are scored on a served boot, not from the pins. Checklist-accuracy finding of the 18.2.0 sweep (QA run #25815, release-18.2.0-tier1, at 6679644a: a1/a2; wave anchor #25807, card #25840): both pins assert that flows are armed (or not) and the refusal sentence on a LiteKernel; neither observes a served boot log line or run rows after intervals. Re-read at base 9753d1637f (both per-kernel-scheduled-work-policy.test.ts files assert getTriggerBindingAudit and the triggers' refusal text). No clause changed", "ref": "#25840" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, diff --git a/docs/qa/platform-checklist/areas/cli.json b/docs/qa/platform-checklist/areas/cli.json index 3b659fa6a23..0e08eb0bc4e 100644 --- a/docs/qa/platform-checklist/areas/cli.json +++ b/docs/qa/platform-checklist/areas/cli.json @@ -2051,7 +2051,7 @@ "title": "`os migrate meta` on v18: `--from 17 --write` rewrites the provable mechanical edits in place (byte-preserving otherwise), lists what it cannot write with a reason and restores + exits 1 when a re-run disagrees; `--stored` lists a TODO per refused stored shape; and provably-absent semantic notices collapse into one line that `--all` expands", "since": "v18", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "cli", "personas": [ @@ -2078,7 +2078,7 @@ { "clause": "--write, --stored TODOs and the relevance predicate — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2136,6 +2136,12 @@ "date": "2026-10-26", "change": "fixtures.knownGaps[0] added — checklist-accuracy finding of QA run #25815 (18.2.0 sweep, Tier 1 at 6679644a), parked on wave anchor #25807 and filed as #25841: acceptance[4]'s pins hold the TODO sink (canonicalizeStoredFlow todos, the refused-shape onTodo) and none reads the printed TODO lines of `os migrate meta --stored`. Read at base 9753d163: the meta.stored-* tests in packages/cli assert the stored pass's flags, actor and flow resolution, never its TODO output. No clause changed", "ref": "#25841" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2144,7 +2150,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": 12, + "revision": 13, "priority": "P0", "surface": "cli", "personas": [ @@ -2179,7 +2185,7 @@ { "clause": "the ceremony and the guard — plan, refusals, checkpoints, the generation-1 steps, the drop gate, the birth marker and the reactions conversion — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=1 FILE`, never through a bare `--`: RUNNER environment facts hold the Tier 1 vitest pins under this container's memory limit only at --maxWorkers=1); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, never through a bare `--`: RUNNER environment facts hold the Tier 1 vitest pins under this container's memory limit only at --maxWorkers=1); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2304,6 +2310,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" + }, + { + "revision": 13, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2312,7 +2324,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": 5, + "revision": 6, "priority": "P2", "surface": "cli", "personas": [ @@ -2337,7 +2349,7 @@ { "clause": "package addressing, --force, the no-op line and rule explain — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2398,6 +2410,12 @@ "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" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2406,7 +2424,7 @@ "title": "`os validate` / `os build` verdicts new on v18: an unknown seed record key (with did-you-mean), a misspelt record[…] / previous[…] field, a duplicate stack entry name, a controlled_by_parent object with no master_detail or with two required ones (also through objectExtensions), a component-props finding (now an error), and a credential in stack email/sms config each fail the build", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "cli", "personas": [ @@ -2428,7 +2446,7 @@ { "clause": "each new build verdict — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2485,6 +2503,12 @@ "date": "2026-11-15", "change": "steps[2] and acceptance[3] name the door where the os lint arm is reachable, `defineStack(…, { strict: false })` (stale spec, card #33842, QA run #33829 acceptance[3]). Rev 3 planted the omitted `required` inside the default strict `defineStack`, whose parse has already defaulted it to false (ruling A of #30905) before `os lint` loads the stack, so the rule cannot see it there: QA reproduced `os lint` exit 0 with no finding twice. Driven live at base 895783a1 in a scratch copy of examples/app-todo with the CLI from the tree: default strict `defineStack` gives `os lint --json` exit 0 (passed, 0 errors, no relationship/master-detail-required) and `os validate --json` / `os build` exit 0; `{ strict: false }` gives `os lint --json` exit 1 with relationship/master-detail-required at objects[2].fields.hdr.required (plus security-controlled-by-parent-no-relation at objects[2].sharingModel) and `os validate --json` / `os build` exit 0; a raw-object default export gives `os lint` exit 1 with the same rule but `os validate` exit 1 and `os build` exit 2 (the export was not built by `defineStack`), so it cannot carry the clause. The other clauses and the os validate / os build half are unchanged", "ref": "#33929" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2493,7 +2517,7 @@ "title": "`os verify` gains five derived proof families on v18 — --reference-shapes, --delete-behaviors, --unique-scopes, --parent-write-reach, --dashboard-windows — each clean (exit 0) on the showcase with its report in --json, and non-zero on a planted defect", "since": "v18", "status": "active", - "revision": 3, + "revision": 4, "priority": "P2", "surface": "cli", "personas": [ @@ -2513,7 +2537,7 @@ { "clause": "the five verify families — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2557,6 +2581,12 @@ "date": "2026-10-20", "change": "automated.ref narrowed per clause — checklist-accuracy finding C8 of QA run #24786 (wave anchor #24579 round 13, round 6's theme-B rule): the five pins spawn the CLI over their own fixture stacks, never the showcase, so acceptance[1]'s 'on the showcase' needs the live run, which QA run #24786 drove. The ref now names acceptance[0] for all five and acceptance[2] for verify-delete-behaviors.test.ts's NEGATIVE CONTROL case (read at base 7697ddcf94). No clause changed", "ref": "#24850" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -3223,7 +3253,7 @@ "title": "A package upgrade's dry run returns the plan and writes nothing, and lists as advice the customizations that would hide a change of the upgrade; the upgrade installs without a token", "since": "v18.4", "status": "active", - "revision": 2, + "revision": 3, "priority": "P2", "surface": "mixed", "personas": [ @@ -3270,7 +3300,7 @@ { "clause": "the pins pass at the run subject sha: a stale override (taken from another version) is listed in its own section, and unread overrides say they could not be read", "oracle": "test", - "verify": "run each file in automated.ref with its package's vitest; each reports ≥1 test and 0 failed", + "verify": "run each file in automated.ref with its package's vitest and `--reporter=tree`, which prints one line per file (RUNNER.md's environment facts); each reports ≥1 test and 0 failed", "evidence": "the vitest summary line per file, with the subject sha" } ], @@ -3305,6 +3335,12 @@ "date": "2026-11-14", "change": "fixtures.requires[1] and [2] re-pointed (under-specified fixture, card #33330, row 109 of the #32908 close-out ledger; QA run #33048 comment 6846028996 on #32908). requires[1] names the view the build registers, qa_up_ticket.default: a container's list key expands to '.default' (packages/spec/src/ui/view.zod.ts, the default list's implicit claim). requires[2] admits RUNNER.md's ensure-customization plus PUT ?package=PAIR recipe beside the Studio route, since #33048 drove it and read the same hidesChange advice. No clause changed. Read from source at base 87330e89, not driven live", "ref": "#33330" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "acceptance[4].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] } diff --git a/docs/qa/platform-checklist/areas/dashboards.json b/docs/qa/platform-checklist/areas/dashboards.json index 32fc0b91185..d0d8f92997b 100644 --- a/docs/qa/platform-checklist/areas/dashboards.json +++ b/docs/qa/platform-checklist/areas/dashboards.json @@ -1285,7 +1285,7 @@ "title": "Analytics on v18 asks each object's `enable` block and internal flags: a cube or dataset over an apiEnabled:false object is 404, an internal field as dimension / measure / filter is 400 even for admin, an unexposed configured cube is warned at boot and absent from /analytics/meta, and a dataset answer's measure column states its aggregate", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "api", "personas": [ @@ -1309,7 +1309,7 @@ { "clause": "the analytics exposure door, registration refusal, label withholding and measure aggregate — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -1370,6 +1370,12 @@ "date": "2026-11-15", "change": "steps[1] names the filter key, `where` (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 29). No clause changed. Read at base bc6b7ffd", "ref": "#34016" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -1446,6 +1452,114 @@ "ref": "#32270" } ] + }, + { + "id": "dashboards.cross-object-where-engine-path", + "title": "An analytics where with a one-hop dotted leaf ('order.status') is served on the engine path: it equals the /data nested-relation filter, never selects an orphan detail, answers no rows on an empty parent match, refuses more than 1000 matching parents 400 INVALID_FILTER rather than truncate, keeps two hops, $not and $field refused, reads the parent as the caller, and answers a related field the caller cannot read 403", + "since": "v18.5", + "status": "active", + "revision": 1, + "priority": "P2", + "surface": "api", + "personas": [ + "admin (the seeded admin, admin@objectos.ai): authors the fixture and makes every admin call", + "reader: a member holding read on the parent object WITHOUT View All and with one parent field (secret_note) not readable, read and View All on the detail, and read on the controlled_by_parent detail" + ], + "fixtures": { + "app": "showcase", + "requires": [ + "a scratch copy of the showcase (never the shared example), compiled into its own dist, adding a parent object (e.g. showcase_qa_an_order: name, status, region, secret_note), a detail with a lookup 'order' to it (showcase_qa_an_line: name, amount) and a controlled_by_parent detail of the same parent. Seed through POST /api/v1/data/OBJ/createMany as admin: 1,000 open NA parents, 3 open APAC parents, 100 cancelled EU parents; lines under APAC, NA and cancelled parents, and ONE orphan line naming no parent. The recipe QA run #33785 drove at a557fa38 (record comment 6893199839)", + "the reader's set as described: View All on the parent restores the masked field, so the set must not carry it", + "the engine path: the detail's inferred object cube queried with a time bucket (timeDimensions with granularity 'month'), which the ObjectQL strategy serves (its answer carries no `sql`). Without a bucket an admin query is served natively, its answer carrying `sql`, which this item does not score (knownGaps[0])" + ], + "knownGaps": [ + "the native SQL path selects the orphan line under $ne where the engine path and /data do not (#33792, open), so adding a time bucket changes a widget's total. This item scores the engine path; a native-path $ne reading is that card's evidence, never a verdict here" + ] + }, + "steps": [ + "POST /api/v1/analytics/query {cube: the detail's cube, measures: [count, the amount sum], timeDimensions: [a month bucket], where: {'order.status': 'cancelled'}}, then the same with the nested form {order: {status: 'cancelled'}}; as the same persona GET /api/v1/data/DETAIL?filter={\"order\":{\"status\":\"cancelled\"}}", + "where {'order.status': {$ne: 'open'}}, then {$or: [that, {order: {$null: true}}]}", + "where {$or: [{'order.region': 'APAC'}, {name: ONE_LINE_NAME}]}, then {'order.region': 'APAC', 'order.status': 'open'}", + "where {'order.status': 'nope'}; {'order.status': 'open'} (1,003 matching parents); {'order.region': 'NA'} (exactly 1,000)", + "where 'order.owner_id.name' (two hops); {$not: {'order.status': 'cancelled'}}; {'order.status': {$eq: {$field: 'name'}}}", + "as the reader: {'order.secret_note': 'TOPSECRET'} and {'order.secret_note': 'NOPE'}; then the controlled_by_parent detail's cube with {'order.status': 'cancelled'}, beside the admin's answer", + "POST /api/v1/analytics/sql with a bucketed {'order.status': 'cancelled'}" + ], + "acceptance": [ + { + "clause": "the cross-object where's lowering, its refusals and the parent read in the caller's scope — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", + "oracle": "test", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time, never through a bare `--`; `--reporter=tree` prints the one line per file this clause is scored on, RUNNER.md's environment facts); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "evidence": "the vitest summary line per pin file, with the package name and the subject sha" + }, + { + "clause": "a one-hop dotted leaf is served on the engine path and answers what the nested form and /data answer", + "oracle": "api", + "verify": "the dotted where answers 200 (never the 400 INVALID_FIELD it answered before); its count and amount equal the nested form's and the /data list's for the same persona (packages/services/service-analytics/src/strategies/cross-object-where.ts#lowerCrossObjectWhere)", + "evidence": "the three answers side by side" + }, + { + "clause": "an orphan detail is never selected by a parent condition, $ne included; an $or with $null keeps it", + "oracle": "api", + "verify": "$ne 'open' leaves the orphan out and equals /data's nested $ne; the $or with {order: {$null: true}} adds exactly the orphan", + "evidence": "both answers and the /data comparison" + }, + { + "clause": "a leaf inside $or is served, and two leaves on one relationship in one conjunction are one condition on one parent", + "oracle": "api", + "verify": "each answer equals the count and sum the seed gives by hand", + "evidence": "the two answers and the hand count" + }, + { + "clause": "an empty parent match answers no rows, and more than 1,000 matching parents is refused, never truncated", + "oracle": "api", + "verify": "'nope' answers rows []; 1,003 parents answers 400 INVALID_FILTER saying the filter matched more than 1000 records of the parent and was not applied; exactly 1,000 is served", + "evidence": "the three answers" + }, + { + "clause": "two hops, a leaf under $not and a $field comparand stay refused", + "oracle": "api", + "verify": "each answers 400 INVALID_FIELD naming its reason (two relationships, under a $not, a $field comparand)", + "evidence": "the three bodies" + }, + { + "clause": "the parent is read as the caller: a related field the caller cannot read is refused whatever its value, and a controlled_by_parent detail is read in the caller's scope", + "oracle": "api", + "verify": "both secret_note probes answer the same 403 PERMISSION_DENIED naming the unreadable field, with no value-dependent difference; the reader's cbp-detail answer equals the admin's where the reader reads every parent the condition matches", + "evidence": "the two refusal bodies and the two cbp answers" + }, + { + "clause": "the SQL echo refuses to render a served leaf", + "oracle": "api", + "verify": "/analytics/sql answers 400 INVALID_FILTER saying it cannot render display SQL for the cross-object filter, which the engine answers as a nested-relation condition", + "evidence": "the body" + } + ], + "negative": [ + "a dotted where answering the unfiltered total, or a total cut at the cap, is a FAIL", + "a related-field refusal whose body changes with the probed value is a value-oracle FAIL" + ], + "traps": [ + "wrong-persona" + ], + "automated": { + "kind": "unit", + "ref": "packages/services/service-analytics/src/__tests__/crossobject-conjunct-refusal.test.ts + packages/services/service-analytics/src/__tests__/dotted-dimension-unbacked-join-parity.test.ts + packages/services/service-analytics/src/__tests__/infer-cube-relation-traversal.test.ts + packages/services/service-analytics/src/__tests__/objectql-read-scope.test.ts + packages/services/service-analytics/src/__tests__/unlisted-refusal-envelope.test.ts + packages/services/service-analytics/src/__tests__/where-source-field-gate.test.ts + packages/rest/src/analytics-nested-relation-filter.test.ts + packages/rest/src/analytics-hop-object-reference.test.ts + packages/rest/src/analytics-masked-field-gate.test.ts. The service-analytics files drive the strategies over engine doubles; the rest files drive the service over a real ObjectQL on SQLite with SecurityPlugin" + }, + "source": [ + "packages/services/service-analytics/src/strategies/cross-object-where.ts#lowerCrossObjectWhere", + "packages/services/service-analytics/src/strategies/objectql-strategy.ts#ObjectQLStrategy", + "content/docs/ui/dashboards.mdx (the engine path's orphan rule and the 1000-parent cap)", + "#33512 (fixes #33335), driven live by QA run #33785" + ], + "history": [ + { + "revision": 1, + "date": "2026-11-15", + "change": "initial — new coverage for #33512's one-hop cross-object analytics where (ledger 6896511848 of #33761, row 15): no item cited cross-object-where.ts, objectql-strategy.ts or dashboards.mdx, and dashboards.cube-query scores the showcase_delivery cube's reconciliation, not this filter. Steps and answers follow QA run #33785's live run at a557fa38 (comment 6893199839); its native-path observation is #33792 (knownGaps[0]). Sources re-read at main 159757ab. Card #33969", + "ref": "#34068" + } + ] } ] } \ No newline at end of file diff --git a/docs/qa/platform-checklist/areas/i18n.json b/docs/qa/platform-checklist/areas/i18n.json index f71a37d584e..4ebc7f6fa7e 100644 --- a/docs/qa/platform-checklist/areas/i18n.json +++ b/docs/qa/platform-checklist/areas/i18n.json @@ -552,7 +552,7 @@ "title": "Flow copy is translatable on v18: a flow refusal message and a paused screen's title/description resolve in the caller's Accept-Language with holes filled, `os i18n extract` scaffolds the refusal / screen / option keys, a translated screen title is judged by the {{ }} text-slot rule, and a host translation bundle overrides a platform key in either load order", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "mixed", "personas": [ @@ -577,7 +577,7 @@ { "clause": "flow refusal / screen translation, extract scaffolding, translated text-slot rule and host override — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -639,6 +639,12 @@ "date": "2026-11-15", "change": "verify-text correction, no clause change. acceptance[2].verify names the toast keys, flows.FLOW.successMessage and flows.FLOW.errorMessage, extracted only from a flow that authors them. Read from source at base 895783a1. Source records: QA record #33853 (comment 6894307378) on #33761. Batch D of the #33761 close-out, card #33966", "ref": "#33984" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, diff --git a/docs/qa/platform-checklist/areas/identity-auth.json b/docs/qa/platform-checklist/areas/identity-auth.json index e2da2bbb4dd..35c0de4bfb6 100644 --- a/docs/qa/platform-checklist/areas/identity-auth.json +++ b/docs/qa/platform-checklist/areas/identity-auth.json @@ -868,7 +868,7 @@ "title": "Self-service profile: name + avatar edits persist through real storage, and password change verifies the current password (passwordless users get set-initial)", "since": "v16", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "mixed", "personas": ["a signed-in email+password user", "a signed-in passwordless (SSO-only) user"], @@ -890,7 +890,7 @@ "remove the avatar (profile-avatar-remove-btn → updateUser({image:null})); confirm get-session image is cleared and the fallback initials render again", "change the password: enter the correct current password + a new one (PasswordCard → auth.changePassword(current,new) → POST /api/v1/auth/change-password); sign out and sign in with the NEW password (2xx), then confirm the OLD password is refused", "negative: attempt change-password with a WRONG current password and capture the refusal — the current-password check is server-enforced, not just a UI confirm", - "confirm email is immutable on this surface (the email input is disabled, 'Email cannot be changed') — self-service email change is a distinct endpoint (identity-auth.auth-method-matrix covers /auth/change-email)", + "confirm email is immutable on this surface (the email input is disabled, 'Email cannot be changed') — self-service email change is a distinct endpoint (identity-auth.auth-method-matrix covers /auth/change-email); then, as the same signed-in user, send the field the disabled input withholds straight to the server: POST /api/v1/auth/update-user {email: a new address}, and re-read get-session", "passwordless branch: provision a credential-less user per fixtures.requires[2] (import-users with passwordPolicy none, then impersonate-user for its session); as that user, the card renders 'Set Local Password' (hasLocalPassword false) — set an initial password (setInitialPassword → no current-password field) and then sign in with email+password to prove the local credential now exists" ], "acceptance": [ @@ -929,19 +929,27 @@ "oracle": "api", "verify": "the set-initial call 2xx with no current-password; a subsequent email+password sign-in for that user 2xx (was impossible before)", "evidence": "the set-initial response + the new sign-in" + }, + { + "clause": "email is immutable on this surface, in the UI and at the server: the Profile page's email field is disabled with the note 'Email cannot be changed.', and an update-user carrying email is refused with a coded body, the address unchanged", + "oracle": "api", + "verify": "the email input renders disabled beside 'Email cannot be changed.' (ui/apps/console/src/pages/system/ProfilePage.tsx); POST /api/v1/auth/update-user {email} answers 400 {message: 'Email can not be updated', code: 'EMAIL_CAN_NOT_BE_UPDATED'} (packages/plugins/plugin-auth/src/account-self-service-refusal-code.ts), pinned by packages/plugins/plugin-auth/src/change-email-delete-user-wiring.test.ts ('refusals the vendor already codes on these doors pass through unchanged'; run it with `pnpm --filter @objectstack/plugin-auth exec vitest run --reporter=tree --maxWorkers=1 FILE`, ≥1 test and 0 failed); get-session still carries the old email", + "evidence": "the disabled-field screenshot, the 400 body and the get-session read" } ], "negative": [ "a name/avatar 'save' that updates the header but does NOT persist (gone after reload) is a FAIL — updateUser must write server-side", "an avatar stored as an inline data: URL rather than a committed storage object is a FAIL (the item asserts a real storage write)", "change-password succeeding with a WRONG current password is a security FAIL — the current-password check must be server-enforced", - "offering the passwordless user a change-password form with a required current password they don't have (locking them out of setting one) is a FAIL — set-initial is the correct branch" + "offering the passwordless user a change-password form with a required current password they don't have (locking them out of setting one) is a FAIL — set-initial is the correct branch", + "an update-user {email} that answers 2xx, or a get-session whose email changed, is a FAIL: self-service email change goes only through /auth/change-email and its verification" ], "traps": ["hydration-race", "stale-console-bundle"], "source": [ "objectui apps/console/src/pages/system/ProfilePage.tsx (updateUser name/image; useUpload avatar; PasswordCard changePassword vs setInitialPassword gated on hasLocalPassword; email immutable; data-testids profile-avatar-file/-upload-btn/-remove-btn)", "packages/plugins/plugin-auth/src/auth-route-ledger.ts#AUTH_ROUTE_LEDGER (POST /api/v1/auth/update-user=auth.updateUser, POST /api/v1/auth/change-password=auth.changePassword, GET /api/v1/auth/get-session=auth.me — re-pointed #18104: updateUser is a CLIENT METHOD name, carried in this file only inside a dotted string value)", - "packages/platform-objects/src/identity/sys-account.object.ts#previous_password_hashes (previous_password_hashes ring — ADR-0069 D1 reuse-prevention backs change-password ONLY while the auth setting password_history_count is above 0, and it defaults to 0, which disables the history check: packages/services/service-settings/src/manifests/auth.manifest.ts (password_history_count, default 0) and packages/plugins/plugin-auth/src/auth-manager-password-session-policy.ts#assertPasswordNotReused (returns early on a count of 0 unless an admin-forced change is outstanding). So on a stock boot a change back to a previous password is admitted, and a run that wants the PASSWORD_REUSE refusal sets password_history_count first (QA run #27441))" + "packages/platform-objects/src/identity/sys-account.object.ts#previous_password_hashes (previous_password_hashes ring — ADR-0069 D1 reuse-prevention backs change-password ONLY while the auth setting password_history_count is above 0, and it defaults to 0, which disables the history check: packages/services/service-settings/src/manifests/auth.manifest.ts (password_history_count, default 0) and packages/plugins/plugin-auth/src/auth-manager-password-session-policy.ts#assertPasswordNotReused (returns early on a count of 0 unless an admin-forced change is outstanding). So on a stock boot a change back to a previous password is admitted, and a run that wants the PASSWORD_REUSE refusal sets password_history_count first (QA run #27441))", + "packages/plugins/plugin-auth/src/account-self-service-refusal-code.ts (the coded refusal update-user answers for an email key)" ], "history": [ { "revision": 1, "date": "2026-08-08", "change": "new item: self-service name + avatar (real storage write, persists) and password change with current-password verification, plus the passwordless set-initial branch, grounded in ProfilePage.tsx + the auth route ledger (PENDING-GAPS §B)", "ref": "claude/platform-test-checklist-ocwugl" }, @@ -956,6 +964,12 @@ "date": "2026-10-31", "change": "source[2] says when the reuse ring backs change-password, as QA run #27441 noted: only while password_history_count > 0. The auth settings manifest declares it with default 0 ('0 disables the check', packages/services/service-settings/src/manifests/auth.manifest.ts), and assertPasswordNotReused (plugin-auth auth-manager-password-session-policy.ts) returns early on a count of 0 unless an admin-forced change is outstanding. No clause changed: no clause here asserts a reuse refusal. Read from source at base efdddc9060. Wave anchor #27377, wave-3 accuracy slice S3; finding parked in anchor comment 6490438726", "ref": "#27441" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "acceptance[6] (new), steps[6], negative[4] and source[3]: email immutability gets its own clause, scored in the UI and at the server. steps[6] only looked at the disabled field, so nothing proved the server refuses; it now sends update-user {email} and reads the coded 400 (EMAIL_CAN_NOT_BE_UPDATED, pinned by plugin-auth change-email-delete-user-wiring.test.ts). New coverage for ledger 6896511848 of #33761, row 101. Read from source at main 159757ab. Card #33969", + "ref": "#34068" } ] }, @@ -2542,7 +2556,7 @@ "title": "A session held by the ADR-0069 credential policy (password expired, forced reset, MFA not enrolled) is refused with the gate's own 403 code on EVERY raw-host route family, and an API key whose owner holds an account-scope posture is refused too", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "api", "personas": [ @@ -2567,7 +2581,7 @@ { "clause": "the auth gate runs before route logic on every raw-host family, outage answers 503, and the API-key account posture is enforced at REST, the dispatcher and install-local — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand). The pins prove this at mixed layers, and this clause scores only that: the storage, settings, share-link and cloud-connection pins call the registered handlers with a fake IHttpRequest / IHttpResponse; the vendor-admin-doors pin arms PASSWORD_RESET_REQUIRED by a system write of must_change_password plus auth.noteMustChangePasswordIssued(), simulating the forced-reset route rather than driving it; the two API-key posture pins drive RestServer.enforceAuth with a hand-built req/res and a fake auth, and HttpDispatcher with fakes, so neither answers an HTTP x-api-key call. A pass here does not score acceptance[1], acceptance[2] or acceptance[3], which are driven live", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2638,6 +2652,12 @@ "date": "2026-11-15", "change": "fixtures.requires[1] warns that saving mfa_required=everyone with grace 0 through PUT /api/settings/auth also holds the admin who saved it (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 32). No clause changed. Read at base bc6b7ffd", "ref": "#34016" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2646,7 +2666,7 @@ "title": "API-key lifecycle policy: a mint with no expiry gets the default (90 days) echoed back, an expiry past the ceiling is refused 400 API_KEY_EXPIRY_TOO_LONG, and an expired / inactive / revoked key is refused with its own 403 code", "since": "v18", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "api", "personas": [ @@ -2669,7 +2689,7 @@ { "clause": "default expiry, ceiling refusal and the three distinct 403 codes — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand). The pins are layered, and this clause scores only what they assert: the dogfood file drives the 90-day default and the ceiling refusal's status + code through a booted server; 'nothing is stored' on a refused mint and the revoked / expired / inactive 403 codes are pinned at unit layer only (the runtime pin over a fake objectql and a fake kernel, the rest pin over an HTTP stub and a fake ql), so a pass here does not score acceptance[2]'s no-key half or acceptance[3]", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2721,6 +2741,12 @@ "date": "2026-10-31", "change": "acceptance[2].verify counted keys with GET /api/v1/keys. That route is a refusal-only mount: packages/runtime/src/route-ledger.ts lists GET /keys as server-only, answering anonymous 401 and signed-in the keys domain's 405, and QA run #27438 measured 405. The count now reads GET /api/v1/data/sys_api_key (its total) before and after the refused mint. The clause is unchanged: no key is minted. Read from source at base efdddc9060. Wave anchor #27377, wave-3 accuracy slice S3; finding parked in anchor comment 6494110310", "ref": "#27438" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2729,7 +2755,7 @@ "title": "A cookie session past its updateAge is renewed ONLY by GET /auth/get-session: in-process reads (data, meta, me/permissions, SSO admin) leave sys_session.expires_at unchanged and set no cookie, while bearer-only calls still renew", "since": "v18", "status": "active", - "revision": 2, + "revision": 3, "priority": "P2", "surface": "api", "personas": [ @@ -2751,7 +2777,7 @@ { "clause": "in-process session reads never renew a cookie session; get-session does — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand). The runtime pin's doors are GET /data/:object, GET /auth/me/permissions and GET /i18n/locales; none is a meta read, so a pass here does not score acceptance[1]'s meta leg", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2793,6 +2819,12 @@ "date": "2026-10-26", "change": "checklist-accuracy finding of the 18.2.0 sweep (QA run #25815, identity-auth.cookie-session-renewal-in-process a1; wave anchor #25807; card #25843). The runtime pin's DOORS are GET /data/:object, /auth/me/permissions and /i18n/locales, so acceptance[1]'s 'meta reads' leg has no door in it. acceptance[0] now names the doors and says it does not score the meta leg, and acceptance[1].verify scores the meta read on its own. acceptance[0].verify's --maxWorkers=2 now reads 1, RUNNER.md's memory fact (the same correction as identity-auth.default-organization-boot-invariant, QA run #25812). No clause's assertion changed", "ref": "#25843" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2801,7 +2833,7 @@ "title": "ADR-0131 single posture: the Default Organization exists from boot BEFORE any sign-up — the first sign-up becomes its owner, later sign-ups its members, every session carries it as active org, and seeded org-columned rows carry it instead of NULL", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P0", "surface": "api", "personas": [ @@ -2825,7 +2857,7 @@ { "clause": "ensureDefaultOrganization runs at boot and the identity objects stamp the org — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2894,6 +2926,12 @@ "date": "2026-11-14", "change": "steps[0] re-pointed (stale spec, QA run #32953 R1, comment 6840054712; ledger row 23 of #32908): 'boot WITHOUT --seed-admin' still seeds on os dev, because the seed-admin flag defaults on and --fresh implies it (packages/cli/src/commands/dev.ts, `flags['seed-admin'] ?? true`). The step now names --no-seed-admin. No clause changed. Read at base 82838e83", "ref": "#33328" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2902,7 +2940,7 @@ "title": "Identity import sends the dedicated account-invitation mail whose link opens the console set-password page, and the SSO domain-verification doors answer 404 for an unknown provider when enabled and 400 DOMAIN_VERIFICATION_DISABLED when off", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "api", "personas": [ @@ -2926,7 +2964,7 @@ { "clause": "import sends auth.account_invitation with a working link, while a self-requested reset still sends auth.password_reset; the SSO domain doors answer by flag — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand). admin-import-users-invite-link.test.ts asserts the invitation template on the import only; the password_reset half is admin-import-users-account-invitation.test.ts cases ① and ②. sso-domain-verification-unknown-provider.pin.test.ts mounts the real AuthPlugin on Hono but over createMemoryEngine, a hand-rolled engine fake, so it scores the domain doors at unit layer only and a pass here does not score acceptance[3]", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2982,6 +3020,12 @@ "date": "2026-11-14", "change": "fixtures.requires[2] and acceptance[1].verify re-pointed (stale spec, QA run #33092, comment 6850793622; ledger row 81 of #32908). The domain doors need OS_SSO_ENABLED=true on both boots (auth-manager-plugin-list.ts wires @better-auth/sso only then), and sys_identity_email carries subject and body columns, no template id (sys-identity-email.object.ts). The clause is unchanged. Read at base 82838e83", "ref": "#33328" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -3644,6 +3688,120 @@ "ref": "#33936" } ] + }, + { + "id": "identity-auth.pending-sso-users-managed", + "title": "On a cloud-managed environment an admin adds people who sign in only through single sign-on: add-sso-user and import-sso-users create a pending person (source idp_pending, no credential) with positions, permission sets and a manager; every password door refuses that person 409; ban and unban work without the admin plugin; the password-based add doors answer 409 pointing to Setup → Users; and an environment that is not cloud-managed refuses the new doors", + "since": "v18.5", + "status": "active", + "revision": 1, + "priority": "P2", + "surface": "api", + "personas": [ + "admin (the seeded admin, admin@objectos.ai): authors the fixture and makes every admin call", + "a non-admin member of the Default Organization, created by the admin and past its first password change, for the platform-admin gate" + ], + "fixtures": { + "app": "showcase", + "requires": [ + "a boot with OS_CLOUD_MANAGED=1 and OS_AUTH_ADMIN=false, the hosted kernel shape (GET /api/v1/auth/config answers features.cloudManaged true and admin false), single posture, on a file database so sys_user, sys_account, sys_session and sys_verification can be read", + "a second boot of the same app without OS_CLOUD_MANAGED, for acceptance[7]", + "a position and a permission set the showcase ships, named in the add and import bodies" + ], + "knownGaps": [ + "a WIRED environmentUserHost (told on an add, asked before a ban and an unban, its typed refusal, and a fail-closed 503 deactivation) is an AuthPlugin constructor option with no env or config door, so a local boot answers host {notified: false, reason: 'no_host'} only: score the wired half from the pins in automated.ref and record it blocked(fixture) live", + "the first platform single sign-on that binds the pending person needs an objectstack-cloud OAuth provider, which a local boot lacks: identity-auth.implicit-account-linking-ownership carries it on its pin. set-initial-password and the pending-session refusal have no local door either: pins only" + ] + }, + "steps": [ + "as admin POST /api/v1/auth/admin/add-sso-user {email (mixed case), name, positions: [P], permissionSets: [S], manager: the admin's email}; read that person's sys_user, sys_account, sys_user_position, sys_user_permission_set and sys_member rows", + "add the same email again with positions; add the admin's own email; add with an extra password key; add with a position nobody declares", + "POST /api/v1/auth/admin/import-sso-users {csv} whose rows hold a manager defined on a later row, a malformed email, a manager no one is, a permission set nobody declares and the admin's email; send the same CSV again", + "against the pending person: POST /api/v1/auth/admin/set-user-password; POST /api/v1/auth/request-password-reset, then /reset-password with the token read from sys_verification; POST /api/v1/auth/sign-in/email", + "ban a member (POST /api/v1/auth/admin/ban-user), read its sys_user row and sessions, call with its old token and sign in as it; unban it and sign in; ban it with banExpiresIn 2, sign in at once and again after 4 s", + "as admin POST /api/v1/auth/admin/create-user, /admin/import-users and /organization/invite-member; as the non-admin member POST add-sso-user, import-sso-users and ban-user", + "on the second boot: POST add-sso-user and import-sso-users as admin" + ], + "acceptance": [ + { + "clause": "the pending person's add and import, the password-door refusals, the ban doors and the host seams — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", + "oracle": "test", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time, never through a bare `--`; `--reporter=tree` prints the one line per file this clause is scored on, RUNNER.md's environment facts); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "evidence": "the vitest summary line per pin file, with the package name and the subject sha" + }, + { + "clause": "add-sso-user creates a pending person with its grants, no credential and a linked manager", + "oracle": "api", + "verify": "201 with source 'idp_pending', alreadyPending false, the manager linked and host {notified: false, reason: 'no_host'}; the sys_user row carries source idp_pending, the email lower-cased, email_verified false and manager_id the admin; no sys_account row exists for it; the position, the set grant and one sys_member row do (packages/plugins/plugin-auth/src/pending-sso-users.ts#runAddSsoUser)", + "evidence": "the answer and the five reads" + }, + { + "clause": "an add that would change nothing, take a held address or carry a bad grant writes nothing", + "oracle": "api", + "verify": "the re-add answers 200 alreadyPending true with notApplied ['positions'] and the grants unchanged; the admin's email answers 409 RESOURCE_CONFLICT; the password key answers 400 naming the unknown field; the unknown position answers 400 VALIDATION_FAILED and leaves no sys_user row for that email", + "evidence": "the four answers and the row reads" + }, + { + "clause": "import-sso-users answers per row, links a manager defined later in the file, and never duplicates a person", + "oracle": "api", + "verify": "200 with a per-row result: the later-defined manager linked by the second pass, the malformed email INVALID_REQUEST on its own row, the unknown manager added with manager 'unresolved', the unknown set VALIDATION_FAILED with no row created, the admin's email RESOURCE_CONFLICT; the second send answers every existing row alreadyPending, and sys_user holds one row per email (packages/plugins/plugin-auth/src/pending-sso-users.ts#runImportSsoUsers)", + "evidence": "both import answers and a sys_user count per email" + }, + { + "clause": "every password door refuses a pending person, and no credential appears", + "oracle": "api", + "verify": "set-user-password and /reset-password each answer 409 RESOURCE_CONFLICT saying the person signs in with single sign-on and nothing was set; sign-in/email answers 401; no sys_account row exists afterwards (packages/plugins/plugin-auth/src/pending-sso-marker.ts#pendingSsoPasswordRefusal)", + "evidence": "the three answers and the sys_account read" + }, + { + "clause": "ban and unban work without the admin plugin, and a banned person has no session until the ban ends", + "oracle": "api", + "verify": "ban-user answers 200; the row carries banned and its reason, and no session is left; the old token answers 401 and sign-in 403 BANNED_USER; after the unban sign-in answers 200; the 2-second ban refuses at once and admits the person after it expires (packages/plugins/plugin-auth/src/admin-ban-endpoints.ts#runAdminBanUser; packages/plugins/plugin-auth/src/user-session-admission.ts#refuseInactiveUserSession)", + "evidence": "each answer and the row and session reads" + }, + { + "clause": "on a managed environment the password-based add doors point to Setup → Users, and the new doors are a platform admin's", + "oracle": "api", + "verify": "create-user, import-users and invite-member each answer 409 RESOURCE_CONFLICT whose sentence points to Setup → Users (packages/plugins/plugin-auth/src/cloud-managed.ts#cloudManagedRefusal); the non-admin's three calls each answer 403 PERMISSION_DENIED and write no row", + "evidence": "the six answers" + }, + { + "clause": "an environment that is not cloud-managed refuses the new doors", + "oracle": "api", + "verify": "add-sso-user and import-sso-users each answer 409 saying the environment is not cloud-managed and no user was added", + "evidence": "the two answers" + } + ], + "negative": [ + "a pending person gaining a local password through any door is a FAIL", + "a banned person keeping a session, or signing in before the ban ends, is a FAIL" + ], + "traps": [ + "wrong-persona" + ], + "automated": { + "kind": "unit", + "ref": "packages/plugins/plugin-auth/src/pending-sso-users.test.ts + packages/plugins/plugin-auth/src/pending-sso-seams.test.ts + packages/plugins/plugin-auth/src/implicit-account-linking.test.ts + packages/plugins/plugin-auth/src/password-reset-ends-sessions.test.ts. Plugin units: Hono-mounted plugin routes over an engine double, the host seams over fakes" + }, + "source": [ + "packages/plugins/plugin-auth/src/pending-sso-users.ts#runAddSsoUser", + "packages/plugins/plugin-auth/src/pending-sso-users.ts#runImportSsoUsers", + "packages/plugins/plugin-auth/src/pending-sso-marker.ts#pendingSsoPasswordRefusal", + "packages/plugins/plugin-auth/src/admin-ban-endpoints.ts#runAdminBanUser", + "packages/plugins/plugin-auth/src/user-ban-write.ts#applyUserBan", + "packages/plugins/plugin-auth/src/user-session-admission.ts#refuseInactiveUserSession", + "packages/plugins/plugin-auth/src/environment-user-host.ts#EnvironmentUserHost", + "packages/plugins/plugin-auth/src/cloud-managed.ts#cloudManagedRefusal", + "#33181 (fix PR #33227), driven live by QA run #33785" + ], + "history": [ + { + "revision": 1, + "date": "2026-11-15", + "change": "initial — new coverage for #33181's pending single-sign-on people (ledger 6896511848 of #33761, row 15): no item cited pending-sso-users.ts, admin-ban-endpoints.ts, user-session-admission.ts, pending-sso-marker.ts, user-ban-write.ts, environment-user-host.ts or cloud-managed.ts. Steps and answers follow QA run #33785's live run at a557fa38 (comment 6893199839); its two blocked legs are knownGaps. Sources re-read at main 159757ab. Card #33969", + "ref": "#34068" + } + ] } ] } diff --git a/docs/qa/platform-checklist/areas/integration-system.json b/docs/qa/platform-checklist/areas/integration-system.json index 65c3157dd7d..46afc969f6a 100644 --- a/docs/qa/platform-checklist/areas/integration-system.json +++ b/docs/qa/platform-checklist/areas/integration-system.json @@ -1866,7 +1866,7 @@ "title": "A recipient preference muting the inbox channel for a topic suppresses delivery (no inbox row, no dead-letter fake); flipping it back resumes; a sys_notification_template renders through a delivery", "since": "v16", "status": "active", - "revision": 5, + "revision": 6, "priority": "P2", "surface": "mixed", "personas": [ @@ -1878,7 +1878,8 @@ "requires": [ "MessagingServicePlugin installed (the showcase config requires the 'messaging' capability) — its emit() consults the PreferenceResolver before fan-out", "the shipped notify flow showcase_task_assigned_notify (notify node: topic 'task.assigned', channels ['inbox'] — examples/app-showcase/src/automation/flows/index.ts)", - "two personas with sessions: admin and the assignee" + "two personas with sessions: admin and the assignee", + "for acceptance[5]: a file-database boot (single posture, the Default Organization only), so a preference row can be written under another organization straight into the database, as data an earlier organization or an import left behind: the API stamps the caller's organization and cannot write it" ], "knownGaps": [ "no shipped sys_notification_preference rows nor a sys_notification_template fixture — both authored in-run (both are writable system-data objects); the notify flow fixture itself is shipped. The spec's channel enum spells this 'in-app'; the implemented channel id is 'inbox' (the #3197 naming drift) — the preference row must name the IMPLEMENTED id 'inbox'", @@ -1892,7 +1893,8 @@ "read the messaging outbox / dead-letter surface and confirm there is no dead-letter row for the muted (recipient, 'inbox') — a deliberate mute is a DROP by the preference filter, not a dead-letter (dead-letter is reserved for unimplemented channels, #3197)", "flip the row enabled:true (or delete it); re-fire; confirm the inbox row is delivered again", "probe the resolution order: an admin-global default OFF (the row whose user_id is EMPTY: omit it — since ADR-0118 D1 user_id is a sys_user reference, a '*' answers 400 VALIDATION_FAILED reference_not_found, and legacy '*' rows are rewritten at boot by packages/services/service-messaging/src/preference-user-conversion.ts#convertWildcardPreferenceUsers) with a user-specific row ON delivers (user row overrides global); a mandatoryTopics-configured topic bypasses the matrix entirely (cannot be muted)", - "render a sys_notification_template through a delivery: author a scratch sys_notification_template keyed (topic, channel, locale) and drive a template-backed channel (email/sms — messaging-service-plugin registers them as 'renders sys_notification_template'); capture the rendered subject/body. Author the row's locale where the recipient's ladder REACHES it: the store walks DOWN only — the recipient's locale, then its language subtag, then 'en' (packages/services/service-messaging/src/template-renderer.ts, localeCandidates) — and a recipient with no sys_user.locale starts at the deployment default, so an en-US-only row is never used for them. Author locale 'en', or the recipient's exact locale. The template's holes read the notification's top-level title, body and topic plus payload.*: the notify node's message reaches a template as {{ body }}, never {{ message }}, which renders '' (an unknown path renders empty by design; packages/services/service-messaging/src/template-renderer.ts)" + "render a sys_notification_template through a delivery: author a scratch sys_notification_template keyed (topic, channel, locale) and drive a template-backed channel (email/sms — messaging-service-plugin registers them as 'renders sys_notification_template'); capture the rendered subject/body. Author the row's locale where the recipient's ladder REACHES it: the store walks DOWN only — the recipient's locale, then its language subtag, then 'en' (packages/services/service-messaging/src/template-renderer.ts, localeCandidates) — and a recipient with no sys_user.locale starts at the deployment default, so an en-US-only row is never used for them. Author locale 'en', or the recipient's exact locale. The template's holes read the notification's top-level title, body and topic plus payload.*: the notify node's message reaches a template as {{ body }}, never {{ message }}, which renders '' (an unknown path renders empty by design; packages/services/service-messaging/src/template-renderer.ts)", + "preferences are read in the emitting organization: with the file-database boot, INSERT a sys_notification_preference row for the assignee (topic 'task.assigned', channel 'inbox', enabled false) whose organization_id names an organization other than the Default Organization, then re-fire the flow and list the assignee's notifications; next, author through the API the assignee's opt-out in the Default Organization, change the other organization's row to enabled true, and re-fire" ], "acceptance": [ { @@ -1924,11 +1926,18 @@ "oracle": "log", "verify": "the captured render carries the template's substituted subject/body (email/sms channel path; messaging-service-plugin 'renders sys_notification_template')", "evidence": "the captured render" + }, + { + "clause": "preferences are read in the emitting organization: a flow that names no organization emits in the one stored on its event row, so a preference row stored under another organization neither mutes the recipient nor overrides their opt-out", + "oracle": "api", + "verify": "with only the other organization's enabled:false row, the fire delivers the inbox row; with the Default Organization's opt-out beside the other organization's enabled:true row, the fire delivers nothing (packages/services/service-messaging/src/messaging-service.ts, emit's preference filter reads organizationId from the event row's organization). Pinned by packages/services/service-messaging/src/notification-organization-follows-event.integration.test.ts (describe 'the event row's derived organization is the one role: and the preference read use'; run it with `pnpm --filter @objectstack/service-messaging exec vitest run --reporter=tree --maxWorkers=1 FILE`, ≥1 test and 0 failed). Released with 18.5.0 (2673f59, #33779; its changeset was not consumed by the version commit, #33903): a run on 18.4.x reads the other organization's row, which is that release's behaviour, not a FAIL; from 18.5.0 on, score the clause as written", + "evidence": "the two fires' notification listings, the two preference rows with their organization_id, and the pin's output" } ], "negative": [ "a suppression row present and enabled:false but an inbox row STILL landing is a FAIL — the preference filter was bypassed (distinct from the by-design fail-OPEN, which applies only to a preference OUTAGE: no data engine / lookup error keeps all channels; a HEALTHY lookup ignoring an enabled:false row is the FAIL)", - "distinct from notify-inbox-delivery (the inbox happy path) — a run must not double-count the happy path here; this item's proof is the SUPPRESSION and its reversal" + "distinct from notify-inbox-delivery (the inbox happy path) — a run must not double-count the happy path here; this item's proof is the SUPPRESSION and its reversal", + "a row stored under another organization deciding the delivery (muting the recipient, or overriding the emitting organization's opt-out) on 18.5.0 or later is a FAIL: preferences are per organization" ], "traps": [ "wrong-persona", @@ -1941,7 +1950,8 @@ "packages/services/service-messaging/src/messaging-service.ts#PreferenceResolver (emit() consults the PreferenceResolver before fan-out)", "packages/services/service-messaging/src/messaging-service-plugin.ts#sys_notification_template (email/sms channels render sys_notification_template; shared retry/dead-letter substrate)", "packages/spec/src/system/notification.zod.ts (#3197 dead-letter for unimplemented channels; 'in-app' vs 'inbox' naming drift)", - "examples/app-showcase/src/automation/flows/index.ts#showcase_task_assigned_notify (showcase_task_assigned_notify — topic 'task.assigned', channels ['inbox'])" + "examples/app-showcase/src/automation/flows/index.ts#showcase_task_assigned_notify (showcase_task_assigned_notify — topic 'task.assigned', channels ['inbox'])", + "packages/services/service-messaging/src/preference-resolver.ts#PreferenceResolver (filter's organizationId scopes the preference read to the emitting organization; with none the read stays unscoped)" ], "history": [ { @@ -1973,6 +1983,12 @@ "date": "2026-11-14", "change": "steps[5], acceptance[3] and source[0]: the admin-global default is the row whose user_id is EMPTY since ADR-0118 D1 (user_id is a sys_user reference; a '*' answers 400 reference_not_found, and packages/services/service-messaging/src/preference-user-conversion.ts#convertWildcardPreferenceUsers rewrites legacy '*' rows at boot), not user_id='*'. steps[6]: the notify message reaches a template as {{ body }} (template-renderer.ts RenderInput). The precedence the clause asserts is unchanged. Read from source at base 87330e89. Source record: QA record #33058 (comment 6846283471) on #32908. Batch E of the #32908 close-out, card #33331", "ref": "#33331" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[5], steps[7], fixtures.requires[3], negative[2] and source[6] (new): the preference read follows the emitting organization (#33649, released with 18.5.0 in 2673f59, #33779; its changeset was left unconsumed by the version commit, #33903). No clause asked which organization's rows decide, so a row under another organization muting a recipient passed unseen. New coverage for ledger 6896511848 of #33761, rows 196 and 209. Read from source at main 159757ab. Card #33969", + "ref": "#34068" } ] }, @@ -2454,7 +2470,7 @@ "title": "Inbound mail (new on v18): with requires:[\"mailbox\"] and an IMAP mailbox, a synced message is stored as sys_mail_message and associated with the record whose mailAssociation email field matches (inline forwards by an org member match on the original participants), attachments land as sys_file + sys_attachment, and an unmatched message is visible only to manage_mailboxes holders", "since": "v18", "status": "active", - "revision": 3, + "revision": 4, "priority": "P2", "surface": "mixed", "personas": [ @@ -2480,7 +2496,7 @@ { "clause": "mailbox ingest, association, inline-forward matching and attachments — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2530,6 +2546,12 @@ "date": "2026-10-26", "change": "acceptance[1].verify and acceptance[2].verify name the HTTP read their api oracle needs, and automated.ref adds the engine-layer association pin — checklist-accuracy findings of QA run #25815 (18.2.0 sweep, release-18.2.0-tier1, 6679644a; wave anchor #25807; card #25844). a2: the run scored the attachment clause at in-process — the pin reads the stored rows through the real engine after a real ingest, and no HTTP read was made. a1: inline-forward.test.ts pins the parser's participant extraction, not the association; mail-ingest-service.test.ts pins the association on a real engine for all three client formats and was not in the ref. Read on main 9753d163. No clause changed", "ref": "#25844" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2538,7 +2560,7 @@ "title": "Messaging and integration answers on v18: a notify from a system-context run stores the organization of the record it is about (never NULL), mark-read writes a receipt only for notifications delivered to the caller, redelivering for an inactive or deleted webhook subscription is 409 DELIVERY_NOT_ELIGIBLE, and a declarative MCP stdio connector with a relative command boots healthy from another directory", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P2", "surface": "api", "personas": [ @@ -2563,7 +2585,7 @@ { "clause": "notification org stamping, recipient-only receipts, redeliver eligibility and MCP stdio cwd — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2625,6 +2647,12 @@ "date": "2026-10-31", "change": "fixtures.requires[2]'s recipe said to create an ACTIVE webhook with POST /api/v1/data/sys_webhook and gave no body. QA run #27438 found the create needs method in lower case ('post') and definition_json, or it answers 400 VALIDATION_FAILED. sys-webhook.object.ts declares method a select with lower-case option values and definition_json a required textarea. The recipe now names both. No clause changed. Read from source at base 22ce3d13fe. Wave anchor #27377, wave-3 accuracy slice S7 (#28341)", "ref": "#27438" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2844,7 +2872,7 @@ "title": "An Oracle datasource reads its tables as objects, refuses an empty-string comparand (Oracle stores '' as NULL), writes only under the double opt-in, and refuses upsert as a capability gap", "since": "v18.4", "status": "active", - "revision": 1, + "revision": 2, "priority": "P1", "surface": "api", "personas": [ @@ -2887,7 +2915,7 @@ { "clause": "the pins pass at the run subject sha: upsert is refused NOT_IMPLEMENTED 501 before any statement, DDL is refused as federation-only, and the dialect binds dates and day values as it declares", "oracle": "test", - "verify": "run each file in automated.ref with the driver-sql vitest; the dialect file reports ≥1 test and 0 failed, and the conformance file runs (not skipped) only with OS_TEST_ORACLE_URL set", + "verify": "run each file in automated.ref with the driver-sql vitest and `--reporter=tree`, which prints one line per file (RUNNER.md's environment facts); the dialect file reports ≥1 test and 0 failed, and the conformance file runs (not skipped) only with OS_TEST_ORACLE_URL set", "evidence": "the vitest summary lines, with the subject sha and whether OS_TEST_ORACLE_URL was set" } ], @@ -2916,6 +2944,12 @@ "date": "2026-11-10", "change": "initial — the Oracle federation dialect: reads, the empty-string refusal, gated writes and the upsert gap. Blocked(fixture): no credentialed Oracle. Scoped sweep #32269 (epic #32022 M3, theme 8: federation and CLI), read from source at 9091955b; no live run made", "ref": "#32269" + }, + { + "revision": 2, + "date": "2026-11-15", + "change": "acceptance[3].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2998,7 +3032,7 @@ "title": "A SQL Server datasource reads its tables as objects, matches a uniqueidentifier column in text operators by the lower-case text every read answers, keeps case-exact matching exact, and writes only under the double opt-in", "since": "v18.4", "status": "active", - "revision": 1, + "revision": 2, "priority": "P1", "surface": "api", "personas": [ @@ -3041,7 +3075,7 @@ { "clause": "the pins pass at the run subject sha: the mssql dialect, the analytics text-match parity on mssql and oracle, and the SQL Server row window", "oracle": "test", - "verify": "run each file in automated.ref with its package's vitest; each non-live file reports ≥1 test and 0 failed; the conformance file runs only with OS_TEST_MSSQL_URL set", + "verify": "run each file in automated.ref with its package's vitest and `--reporter=tree`, which prints one line per file (RUNNER.md's environment facts); each non-live file reports ≥1 test and 0 failed; the conformance file runs only with OS_TEST_MSSQL_URL set", "evidence": "the vitest summary lines, with the subject sha" } ], @@ -3073,6 +3107,12 @@ "date": "2026-11-10", "change": "initial — the SQL Server federation dialect: uniqueidentifier text matching, case-exact parity and gated writes. Blocked(fixture): no credentialed SQL Server. Scoped sweep #32269 (epic #32022 M3, theme 8: federation and CLI), read from source at 9091955b; no live run made", "ref": "#32269" + }, + { + "revision": 2, + "date": "2026-11-15", + "change": "acceptance[3].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, diff --git a/docs/qa/platform-checklist/areas/platform-core.json b/docs/qa/platform-checklist/areas/platform-core.json index e01f4022740..92cccf4dbed 100644 --- a/docs/qa/platform-checklist/areas/platform-core.json +++ b/docs/qa/platform-checklist/areas/platform-core.json @@ -3604,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": 10, + "revision": 11, "priority": "P0", "surface": "cli", "personas": [ @@ -3628,7 +3628,7 @@ { "clause": "the organization-ownership boot guard and the identity-objects boot refusal — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=1 FILE`, one package at a time and never through a bare `--`; RUNNER.md's memory fact: the container holds the Tier 1 vitest pins under its memory cap only at --maxWorkers=1, and an exit 137 is that cap, not a failing test); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -3727,6 +3727,12 @@ "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" + }, + { + "revision": 11, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -3735,7 +3741,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": 4, + "revision": 5, "priority": "P1", "surface": "mixed", "personas": [ @@ -3760,7 +3766,7 @@ { "clause": "the protocol handshake, stored-row replay and artifact forward conversion — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -3818,6 +3824,12 @@ "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" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -3826,7 +3838,7 @@ "title": "Settings on v18: a global-scope key is stored in sys_platform_setting (readable through /data only with manage_platform_settings), and under a walled posture one organization's tenant save or lock does not change or lock another's, with a data-API read of sys_setting filtered to readable namespaces", "since": "v18", "status": "active", - "revision": 6, + "revision": 7, "priority": "P1", "surface": "api", "personas": [ @@ -3856,7 +3868,7 @@ { "clause": "the platform rung and per-organization settings isolation — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -3930,6 +3942,12 @@ "date": "2026-11-01", "change": "negative[0] added, with steps[2] driving it: LOCKED means platform-locked, so an organization administrator's save of its own locked tenant row must be refused, and a save that lands is a security FAIL. Ruling 6545938831 item ⑤ on #28345, which settles the semantics; the clause is a walled leg like acceptance[2] and [3]. No existing clause changed. Wave anchor #27377", "ref": "#28345" + }, + { + "revision": 7, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -3938,7 +3956,7 @@ "title": "`os serve` composition on v18: unclaimed top-level items of a packages[] config are served under manifest.id with a warn line, an app shipping its own default sys_organization record page boots, a host datasourceMapping is installed before the first schema sync, a production host with no storage refuses to boot naming three remedies, and /_console/ answers 503 with the remedy when the console is not built", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "cli", "personas": [ @@ -3963,7 +3981,7 @@ { "clause": "the serve composition guards and fallbacks — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item. One exception to that reading: packages/cli/test/serve-organization-record-page.e2e.test.ts is a *.e2e.test.ts file, which the cli vitest config collects only under OS_TEST_TIERS=nightly (packages/cli/vitest.config.ts, the nightly tiers) — run it with OS_TEST_TIERS=nightly set; without it the file reports 0 tests, which is not-run for that file (acceptance[2] then unscored), not a stale ref", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item. One exception to that reading: packages/cli/test/serve-organization-record-page.e2e.test.ts is a *.e2e.test.ts file, which the cli vitest config collects only under OS_TEST_TIERS=nightly (packages/cli/vitest.config.ts, the nightly tiers) — run it with OS_TEST_TIERS=nightly set; without it the file reports 0 tests, which is not-run for that file (acceptance[2] then unscored), not a stale ref", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -4032,6 +4050,12 @@ "date": "2026-10-31", "change": "fixtures.requires[1] and acceptance[4] name the host config the no-storage leg needs. Checklist-accuracy finding of QA run #27438 (18.3.0 wave 3, parked on anchor #27377; slice S4, #28338): a plugin-less production stack booted on SQLite instead of refusing. That is by design: shouldBootWithLibrary sends a config with no instantiated plugin through createStandaloneStack, which provisions the SQLite default, and only a host config reaches the storage guard (the integration pin boots one). The clause is unchanged for the shape it was written for. Re-read at 3fd80337", "ref": "#27438" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, diff --git a/docs/qa/platform-checklist/areas/records-forms.json b/docs/qa/platform-checklist/areas/records-forms.json index e48f0a8ec7e..14ca4f5cbc7 100644 --- a/docs/qa/platform-checklist/areas/records-forms.json +++ b/docs/qa/platform-checklist/areas/records-forms.json @@ -6099,7 +6099,7 @@ "title": "Write-time value judgement on v18: picking an option whose stored visibleWhen cannot be evaluated is refused (reason unevaluable), an import with createMissingOptions keeps an unmatched select value while a later PATCH sending it back is refused, an import dry run admits exactly what the write admits, and a malformed element in a multi-valued lookup is refused with its index", "since": "v18", "status": "active", - "revision": 2, + "revision": 3, "priority": "P2", "surface": "api", "personas": [ @@ -6123,7 +6123,7 @@ { "clause": "option-visibility enforcement, kept options, dry-run parity and multi-reference element shape — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -6176,6 +6176,12 @@ "date": "2026-10-27", "change": "automated.ref names the dogfood pin that scores acceptance[1]–[4] at the REST data and import doors (#26573 slice 1); the objectql pins stay acceptance[0]'s. No clause changed", "ref": "#26573" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -6184,7 +6190,7 @@ "title": "Write semantics changed on v18: a warning-severity validation hit comes back in the 2xx write answer as warnings[], a blocking after* hook abort rolls the whole write back, a `tree` field (with or without an explicit reference) honours its deleteBehavior, and a cascade delete is distinguishable to the child hook", "since": "v18", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "api", "personas": [ @@ -6208,7 +6214,7 @@ { "clause": "advisory write answer, after-hook rollback, tree delete semantics and the cascade signal — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -6260,6 +6266,12 @@ "date": "2026-10-27", "change": "automated.ref names the HTTP pins for acceptance[1], acceptance[2] and negative[0] (#26573 slice 1): the new write-answer-warnings-rest dogfood file reads the REST PATCH body, and the existing hook-after-abort-rollback dogfood file already refused the aborting create over REST and read the store back, which revision 2 had not named. acceptance[3] is unchanged. No clause changed", "ref": "#26573" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -6268,7 +6280,7 @@ "title": "Discussion on v18: reactions are their own records (sys_comment_reaction — 201 with user_id forced, duplicate 409, unreadable comment 403, no update, no deleting another member's), the retired sys_comment.reactions column is refused, a comment edit is platform-stamped, and milestone activity is withheld whole from a reader missing a watched field", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P2", "surface": "api", "personas": [ @@ -6294,7 +6306,7 @@ { "clause": "reaction records, retired column, edit stamps and milestone redaction — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -6358,6 +6370,12 @@ "date": "2026-10-31", "change": "fixtures.requires[2] names the door. From QA run #27438 (W3-C2b, at c4c515ad; wave anchor #27377, wave-3 accuracy slice S1): the runtime permission set is a PUT /api/v1/meta/permission/NAME carrying sys_comment allowRead and the four sys_comment_reaction grants (200), bound by a sys_user_permission_set row, and the run measured that sequence working. Read at base a0f865491d: permission is a runtime-creatable metadata type (packages/spec/src/kernel/metadata-plugin.zod.ts, allowRuntimeCreate). No clause changed", "ref": "#27438" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -6366,7 +6384,7 @@ "title": "Defaults that changed meaning on v18 (ADR-0087 D3 18.* entries): an omitted list-view page size is 50 (was 25), an omitted editInline means editable in place, an autonumber with no `unique` is unique per organization, and a field-heavy form opens as a bounded modal on desktop", "since": "v18", "status": "active", - "revision": 6, + "revision": 7, "priority": "P2", "surface": "mixed", "personas": [ @@ -6395,7 +6413,7 @@ { "clause": "the semantic defaults at the spec layer — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -6467,6 +6485,12 @@ "date": "2026-10-31", "change": "fixtures.requires[0] and [2] and steps[0] corrected. From QA run #27438 (W3-C2b, at c4c515ad), with QA run #27481's shared-tree boot note (W3-C1); wave anchor #27377, wave-3 accuracy slice S1. No stock showcase object holds more than 50 rows on a fresh boot (showcase_task has 11), so the 50-row check needs seeded rows, which the run supplied with 50 showcase_task POSTs; the item now says to seed before counting. A fresh database is not needed, so requires[0] takes any own-port boot, and it names `objectstack dev --fresh --no-compile -p PORT` for runners sharing one tree, because `pnpm dev -- --fresh` compiles dist/objectstack.json into it (packages/cli/src/commands/dev.ts, --no-compile). Read at base a0f865491d. No clause changed", "ref": "#27438" + }, + { + "revision": 7, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -6885,7 +6909,7 @@ "title": "An action's param dialog runs its declared preflight read: the panel moves from loading to ready with the declared fields, a seeded param is drawn read-only from the answer and submitted as it, and a failed read draws the error panel, leaves the seed empty and holds Confirm", "since": "v18.4", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "browser", "personas": [ @@ -6939,7 +6963,7 @@ { "clause": "the pins pass at the run subject sha: waiting for the params a URL reads, the stale answer dropped, the seed cleared on a URL change, refused and unbound blocks never read, and the panel's field labels resolved from the bundle", "oracle": "test", - "verify": "run each file in automated.ref with its package's vitest; each reports ≥1 test and 0 failed", + "verify": "run each file in automated.ref with its package's vitest and `--reporter=tree`, which prints one line per file (RUNNER.md's environment facts); each reports ≥1 test and 0 failed", "evidence": "the vitest summary line per file, with the subject sha" } ], @@ -6982,6 +7006,12 @@ "date": "2026-11-15", "change": "steps[0] says where the action draws: QA run #33861 met the two probe actions under the record header's ⋯ overflow as menuitems, because the header already carried three inline actions (ledger row 126). No clause changed. Ledger 6896511848 of the v18.5.0 sweep anchor #33761, carried by batch-A card #33963; read at base 895783a1.", "ref": "#33990" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "acceptance[4].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, diff --git a/docs/qa/platform-checklist/areas/studio-authoring.json b/docs/qa/platform-checklist/areas/studio-authoring.json index b4fc6a0466f..044a95e27a7 100644 --- a/docs/qa/platform-checklist/areas/studio-authoring.json +++ b/docs/qa/platform-checklist/areas/studio-authoring.json @@ -1939,7 +1939,7 @@ "title": "Metadata save preconditions on v18: the item read serves its `version` and sending it back as If-Match saves, `If-None-Match: *` refuses an existing item 409 METADATA_CONFLICT with currentVersion, any other If-None-Match is 400, pending-draft rows carry the draft's label, and every stored row records its acting user", "since": "v18", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "api", "personas": [ @@ -1964,7 +1964,7 @@ { "clause": "version-token OCC, create-only precondition, draft rows and row actor — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2017,6 +2017,12 @@ "date": "2026-11-08", "change": "steps[1] says the create-only precondition needs the ACTIVE row: it is judged per lifecycle, so an active save where only the draft row exists answers 200. Checklist-accuracy finding of QA run #31486 (owed:weekly, at 0647dabb). Read at base 4894cfe1", "ref": "#31499" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2025,7 +2031,7 @@ "title": "One item name, one stored row PER PACKAGE (ADR-0048) on v18: a package-less save resolves its owning package and an ambiguous one is 409, a dropStorage delete while another package's row remains is 409 and keeps the table, a save into the wrong package is 422 OBJECT_OVERLAY_PACKAGE_MISMATCH, a sealed packaged name answers one ruled 403 NOT_OVERRIDABLE text, and revert discards a Studio package's drafts", "since": "v18", "status": "active", - "revision": 6, + "revision": 7, "priority": "P1", "surface": "api", "personas": [ @@ -2049,7 +2055,7 @@ { "clause": "multi-package row addressing, drop-storage and owner-mismatch refusals, the sealed sentence and stored-package revert — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2126,6 +2132,12 @@ "date": "2026-11-14", "change": "steps[4]'s ⛔ note and acceptance[1].verify re-pointed (QA run #33088's A-FIX notes, comment 6850413952): /publish's quoted 'No metadata items found' answer is stale since collectPackageMembers reads the _packageId stamp (packages/metadata/src/metadata-manager.ts), though publish-drafts stays the door for drafts; and the package-less layered read is itself refused 409 while two packages hold the name (packages/metadata-protocol/src/protocol-meta-layered-reads.ts), so the before/after evidence reads ?package=A and ?package=B. No clause changed. Read at base 87330e89", "ref": "#33329" + }, + { + "revision": 7, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -2134,7 +2146,7 @@ "title": "The metadata save door runs the build's authoring rules on v18 — a page with an unknown component prop, a page with the retired slots.tabs, a second default record page, a chart list view with no dataset, an object predicate that does not compile, a `protection` block or a lock change, and a non-http(s) URL target are each refused 4xx at PUT (drafts still admitted where the rule says so)", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "api", "personas": [ @@ -2160,7 +2172,7 @@ { "clause": "the runtime authoring gate on the page, view, object and action save doors — the permanent pins pass at the run subject sha (RUNNER rule 6: cite their output, never re-derive by hand)", "oracle": "test", - "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", + "verify": "run each file named in automated.ref with its package's vitest (`pnpm --filter PKG exec vitest run --reporter=tree --maxWorkers=2 FILE`, never through a bare `--`); every named file reports ≥1 test and 0 failed. A file that reports 0 tests or is not found is NOT a pass — it is a stale ref, fix the item", "evidence": "the vitest summary line per pin file, with the package name and the subject sha" }, { @@ -2227,6 +2239,12 @@ "date": "2026-11-14", "change": "title re-pointed (QA run #33025's note, comment 6844741021): page.slots.tabs has been retired whole since 18.3.0 (packages/spec/src/ui/page.zod.ts, the PAGE_SLOTS_TABS_RETIRED tombstone), so the case the title names is the retired slot's refusal, as steps[1] already drives it since revision 4; the details-beside-tabs pair check left with the slot. No clause changed. Read at base 87330e89", "ref": "#33329" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[0].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] }, @@ -5440,7 +5458,7 @@ "title": "A page's `api`-bound elements read again after the page's own successful action: one more GET, the old rows kept while it is in flight, the new answer drawn in place; a failed action reads nothing", "since": "v18.4", "status": "active", - "revision": 1, + "revision": 2, "priority": "P2", "surface": "browser", "personas": [ @@ -5484,7 +5502,7 @@ { "clause": "the pins pass at the run subject sha: a cancelled confirmation reads nothing, a bus change alone reads nothing, a failed re-read draws the error face, and a request in flight is not joined", "oracle": "test", - "verify": "run each file in automated.ref with its package's vitest; each reports ≥1 test and 0 failed", + "verify": "run each file in automated.ref with its package's vitest and `--reporter=tree`, which prints one line per file (RUNNER.md's environment facts); each reports ≥1 test and 0 failed", "evidence": "the vitest summary line per file, with the subject sha" } ], @@ -5513,6 +5531,12 @@ "date": "2026-11-10", "change": "initial — the page `api` binding re-read after the page's own action (#31891). Scoped sweep #32269 (epic #32022 M3, theme 6: action preflight and page bindings), read from source at 9091955b; no live run made", "ref": "#32269" + }, + { + "revision": 2, + "date": "2026-11-15", + "change": "acceptance[3].verify names `--reporter=tree`, the reporter that prints the one line per pin file this is scored on: in a runner's non-TTY shell vitest's default reporter prints the run's totals only (RUNNER.md's environment facts; QA run #33784's note 10, comment 6893243542). No clause or threshold changed. Card #33969", + "ref": "#34068" } ] },