From ac41de6990eecd752e12b1b5683feb878cefe0e8 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 05:32:51 +0000 Subject: [PATCH 01/15] docs(qa): re-point query-contract-matrix to the doors' post-schema-refusal answers acceptance[5] expected 400 INVALID_FILTER on the POST query door for a scalar list comparand; since the request schema took that refusal, the POST door answers 400 VALIDATION_FAILED with a located fields[] entry in both spellings, and only GET $filter still answers INVALID_FILTER. Also records that a dotted fields entry is refused INVALID_FIELD by design (prescribing expand), and moves the widening negative off `filter`, which is a declared transport spelling of `where`. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- .../platform-checklist/areas/api-backend.json | 35 +++++++++++++------ 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/docs/qa/platform-checklist/areas/api-backend.json b/docs/qa/platform-checklist/areas/api-backend.json index 81e3e69f6ab..ce69bccc62a 100644 --- a/docs/qa/platform-checklist/areas/api-backend.json +++ b/docs/qa/platform-checklist/areas/api-backend.json @@ -305,7 +305,7 @@ "title": "Data-API query contract: every filter operator gives known answers; $-params, select, sort, expand honored; malformed input 400s with the exact code", "since": "v15", "status": "active", - "revision": 2, + "revision": 3, "priority": "P0", "surface": "api", "personas": [ @@ -324,10 +324,10 @@ "for each operator variant below, run BOTH spellings against showcase_account (or showcase_task where the type fits): the POST /api/v1/data/showcase_account/query body form (where: {field: {$op: value}}) and the AST array form ([field, op, value] — spellings per AST_OPERATOR_MAP); e.g. where {status: {$eq: 'active'}}, {annual_revenue: {$gt: 10000000}}, {status: {$in: ['active','prospect']}}, {annual_revenue: {$between: [5000000, 50000000]}}, {name: {$contains: 'orth'}}, {name: {$startsWith: 'Con'}}, {churn_reason: {$null: true}}", "for each operator: compute the expected id set from the baseline locally and compare with the returned records — a known-answer check, not a smoke 200", "pagination window: GET /api/v1/data/showcase_account?$orderby=name&$top=3&$skip=2 and verify it equals rows 3–5 of the locally sorted baseline; also POST body limit/offset/top equivalents", - "selection: ?$select=name,status (and body fields: ['name','status']) — response objects carry exactly the requested keys (plus system identity keys); dotted related column fields: ['account.name'] on showcase_invoice", + "selection: ?$select=name,status (and body fields: ['name','status']) — response objects carry exactly the requested keys (plus system identity keys); then the dotted related column fields: ['account.name'] on showcase_invoice, which is REFUSED by design — 400 INVALID_FIELD whose message prescribes `expand` (a dotted path reaches the driver as a column name, matches none, and would fall back to every field)", "sort: $orderby / orderBy asc and desc on annual_revenue — full ordering compared to the locally sorted baseline, not just first row", "expand: as the CONTRIBUTOR (restricted persona), POST /api/v1/data/showcase_invoice/query with expand: {contact: {object: 'showcase_contact', fields: ['name']}} on an invoice they own — contributor holds NO showcase_contact grant, so the expanded row must be withheld/masked while their own invoice row returns (15.1 §A6: expand routes through the secured find path, #2850)", - "negative shapes: POST query where {status: {$nin: 'done'}} on showcase_task (scalar comparand for a collection operator — #5869) and the AST twin ['status','not_in','done']; GET with an unknown $-param (?$pageSize=5); GET with a bare unknown key (?not_a_field=x); sort on a nonexistent field; a where clause naming a nonexistent field", + "negative shapes: POST query where {status: {$nin: 'done'}} on showcase_task (scalar comparand for a collection operator — #5869) and the AST twin ['status','not_in','done'], plus the GET twin ?$filter=[\"status\",\"not_in\",\"done\"] (the two doors answer different codes — see the clause); GET with an unknown $-param (?$pageSize=5); GET with a bare unknown key (?not_a_field=x); sort on a nonexistent field; a where clause naming a nonexistent field", "boundary: where {status: {$in: []}} (must match NOTHING) and {status: {$nin: []}} (must match EVERYTHING) — both documented-legitimate, never 400 (filter-comparand-shape.ts)" ], "acceptance": [ @@ -344,10 +344,10 @@ "evidence": "the two window responses" }, { - "clause": "$select/fields narrows the payload to the requested columns (dotted related columns included) — no unrequested business fields leak", + "clause": "$select/fields narrows the payload to exactly the requested columns — no unrequested business fields leak; a dotted related column (fields: ['account.name']) is refused 400 INVALID_FIELD naming `expand` as the remedy, never answered with a wider row", "oracle": "api", - "verify": "key-set assertion on every returned record", - "evidence": "response bodies" + "verify": "key-set assertion on every returned record; the dotted probe shows status 400, code INVALID_FIELD, and a message naming `expand`", + "evidence": "response bodies + the dotted rejection" }, { "clause": "sort orders the FULL result both directions; INVALID_SORT (400) answers a sort on a nonexistent field", @@ -362,10 +362,10 @@ "evidence": "both personas' responses" }, { - "clause": "a scalar comparand on a collection operator answers 400 INVALID_FILTER naming the operator, the field, and the expected shape — never 500 DATABASE_ERROR (#5869, both doors: the $-object body AND the AST array spelling)", + "clause": "a scalar comparand on a collection operator is refused 400 naming the operator, the field and the expected array — never 500 DATABASE_ERROR, never a widened 200 (#5869). Since #20116 the two doors answer different codes: POST /query, in both the $-object body and the AST array spelling, is refused at the request schema with 400 VALIDATION_FAILED and a fields[] entry located on the slot (query.where.status.$nin for the $-object body, query.where for the AST spelling); GET ?$filter answers 400 INVALID_FILTER", "oracle": "api", - "verify": "both step-8 $nin probes: status 400, code INVALID_FILTER, message names the operator and field", - "evidence": "both rejections" + "verify": "the two step-8 POST probes: status 400, code VALIDATION_FAILED, a fields[] entry at the slot whose message names $nin, status and an ARRAY; the GET $filter twin: status 400, code INVALID_FILTER. Neither door returns rows", + "evidence": "both POST rejections + the GET rejection" }, { "clause": "unknown inputs get their exact ledgered code: unknown $-param → 400 UNSUPPORTED_QUERY_PARAM (listing the supported $-params), unknown bare key or unknown where-field → 400 INVALID_FIELD (#4134 — a filter on a nonexistent field must NEVER answer 200 with rows, in either direction)", @@ -387,7 +387,7 @@ } ], "negative": [ - "silent WIDENING is the catastrophic failure mode (#3899): a malformed query body (e.g. {\"filter\": {…}} — not a QueryAST key) must answer 400 VALIDATION_FAILED, never degrade into an unfiltered 200 full read; verify by asserting the malformed-body probe's status AND that its response row count is not the full table" + "silent WIDENING is the catastrophic failure mode (#3899): a malformed query body must never degrade into an unfiltered 200 full read. A mistyped clause (e.g. {\"limit\": \"ten\"}) answers 400 VALIDATION_FAILED at the request schema; an UNDECLARED top-level key (e.g. {\"not_a_query_key\": {…}}) is lowered as an implicit field filter and answers 400 INVALID_FIELD. ⛔ Do not probe with {\"filter\": {…}}: `filter` is a DECLARED transport spelling of `where` and is served. Verify by asserting each probe's status and code AND that no response carries the full table" ], "variants": [ "op:eq", @@ -417,7 +417,7 @@ ], "automated": { "kind": "unit", - "ref": "packages/objectql/src/engine.test.ts ([#2850] expand sub-read through the secured find path = C4 only) + packages/objectql/src/engine-filter-array-lowering.test.ts (the #5869 list-comparand shape gate). ⚠️ The REST-contract clauses (operator answer sets, $top/$skip windowing, $select narrowing, sort + INVALID_SORT, INVALID_FILTER, UNSUPPORTED_QUERY_PARAM, the $in/$nin empty-list boundary) are NOT reached by these engine unit suites and remain manual" + "ref": "packages/objectql/src/engine.test.ts ([#2850] expand sub-read through the secured find path = C4 only) + packages/objectql/src/engine-filter-array-lowering.test.ts (the #5869 list-comparand shape gate). ⚠️ The REST-contract clauses (operator answer sets, $top/$skip windowing, $select narrowing, sort + INVALID_SORT, the scalar-comparand refusal on both doors, UNSUPPORTED_QUERY_PARAM, the $in/$nin empty-list boundary) are NOT reached by these engine unit suites and remain manual. The POST door's schema-failure envelope (400 VALIDATION_FAILED + fields[], protocol never called) is pinned with a MOCKED protocol by packages/rest/src/request-schema-gate.conformance.test.ts — the door posture, not this item's seeded probes" }, "traps": [ "seed-data-thin", @@ -428,6 +428,13 @@ "packages/spec/src/data/filter.zod.ts#AST_OPERATOR_MAP (AST_OPERATOR_MAP / FieldOperatorsSchema — the operator variant source)", "packages/spec/src/data/query.zod.ts#QueryAST (QueryAST keys)", "packages/metadata-protocol/src/protocol.ts#UNSUPPORTED_QUERY_PARAM (supported $-params + UNSUPPORTED_QUERY_PARAM #2926 ⑩, INVALID_FIELD #4134)", + "packages/spec/src/data/filter.zod.ts#checkFilterConditionComparands (the request-schema refusal of a scalar list comparand on the POST door, #20116 — the $-object spelling, located at query.where..$nin)", + "packages/spec/src/data/data-engine.zod.ts#lowerFoldedTransportValues (the AST/FilterArray spelling on the POST door, refused at query.where when it cannot be lowered)", + "packages/spec/src/data/data-engine.zod.ts#QueryTransportParamsSchema (`filter` is a declared transport spelling of `where` — why negative[0] no longer probes with it)", + "packages/rest/src/rest-server.ts (POST /data/:object/query answers a FindDataRequestSchema failure 400 VALIDATION_FAILED with fields[] via zodIssuesToFields)", + "packages/metadata-protocol/src/protocol.ts#assertProjectionFieldsExist (a dotted fields entry → 400 INVALID_FIELD prescribing expand, #7532)", + "packages/metadata-protocol/src/protocol.ts#assertQueryParamsAreFields (an undeclared leftover key → implicit field filter → 400 INVALID_FIELD, #4134)", + "packages/rest/src/rest-server-repeated-filter-param.test.ts + packages/rest/src/analytics-filter-refusal-envelope.test.ts (the schema-door 400 VALIDATION_FAILED posture since #20116)", "#5869 (commit 10c4ea9)", "release-15.1 plan §A6", "examples/app-showcase/src/data/seed/index.ts" @@ -444,6 +451,12 @@ "date": "2026-08-18", "change": "re-pointed automated.ref off a source module. packages/objectql/src/filter-comparand-shape.ts is not a test — it exports invalidFilterError / assertListComparandShapes / assertFilterIsMaterializable and declares no describe block; the #5869 gate is actually pinned by engine-filter-array-lowering.test.ts. Also recorded the pin's real reach, since it spans one clause of nine and a pass read off it would be a false green (#9401)", "ref": "#9386" + }, + { + "revision": 3, + "date": "2026-10-01", + "change": "re-pointed to what the doors answer since #20116 (QA run #21056 scored clause 6 FAIL; verifier disposition: stale clause, not a product defect). acceptance[5]: POST /query, both spellings, is refused at the request schema with 400 VALIDATION_FAILED + a located fields[] entry; GET $filter still answers 400 INVALID_FILTER; the step-8 GET twin was added. acceptance[2] and step 5: a dotted fields entry is refused 400 INVALID_FIELD by design, prescribing expand. negative[0]: {\"filter\": …} is a declared transport spelling of where, so the widening probe now uses a mistyped clause (400 VALIDATION_FAILED) and an undeclared key (400 INVALID_FIELD). Residual for the maintainer, not a defect: the same condition answers VALIDATION_FAILED on POST and INVALID_FILTER on GET (#8001 family)", + "ref": "#21060" } ] }, From 809aa8254a08d50d6bcc271423e18f4bae28c5f8 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 05:34:05 +0000 Subject: [PATCH 02/15] test(dogfood): pin the anonymous 401 on POST /batch and GET /security/explain The checklist item this file pins names six surface families; the batch and security-explain families were checked only by hand. Both are REST routes opening with enforceAuth, so they join the rest-flat rows of the envelope classification, with a member contrast that proves each route is registered. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- ...se-anonymous-deny-surfaces.dogfood.test.ts | 54 ++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/packages/qa/dogfood/test/showcase-anonymous-deny-surfaces.dogfood.test.ts b/packages/qa/dogfood/test/showcase-anonymous-deny-surfaces.dogfood.test.ts index 9390046afb5..35985879ce9 100644 --- a/packages/qa/dogfood/test/showcase-anonymous-deny-surfaces.dogfood.test.ts +++ b/packages/qa/dogfood/test/showcase-anonymous-deny-surfaces.dogfood.test.ts @@ -83,6 +83,26 @@ const ACTION = '/actions/showcase_task/showcase_mark_done/anon-probe-id'; // genuinely exists in the app's metadata. const FLOW = 'showcase_reassign_wizard'; +// ── #21060 — the two `@objectstack/rest` families this file did not drive ─── +// +// The checklist item this file pins (`access-security.anonymous-deny-surfaces`) +// names SIX surface families, and until #21060 this file drove four of them: +// the cross-object `POST /batch` and the ADR-0090 D6 `/security/explain` pair +// were checked by hand on every QA run and by nothing else. Both are +// `@objectstack/rest` routes whose handler opens with `enforceAuth`, so both +// answer the REST seam's flat envelope — measured live by QA run #21056 +// (6/6 `401 UNAUTHENTICATED` across the item's families). +// +// The batch body is the checklist's own probe — an EMPTY operation list, which +// carries nothing to write — so the anonymous case also shows the floor runs +// before the body is judged, and the member contrast below cannot mutate the +// shared stack whatever the batch validator answers. The explain probe is a +// read, and names a real object so a member's answer is about authorization, +// never about the target. +const BATCH = '/batch'; +const BATCH_PROBE_BODY = { operations: [] } as const; +const EXPLAIN = '/security/explain?object=showcase_task&operation=read'; + // ── #11373 — the /meta WRITE doors, driven through the REAL mount ────────── // // The `/meta` cases above this line were, for this file's whole life, ONE @@ -507,6 +527,34 @@ describe('showcase: anonymous posture is uniform across surfaces (#2567)', () => expect(r.status, 'anonymous draft publish must be 401').toBe(401); }); + // ── /batch and /security/explain (@objectstack/rest) — #21060 ─────────── + it('anonymous POST /batch is denied (401) — before the body is judged', async () => { + const r = await anon('POST', BATCH, BATCH_PROBE_BODY); + expect(r.status, 'anonymous cross-object batch must be 401').toBe(401); + }); + + it('anonymous GET /security/explain is denied (401) — the access diagnosis stays private', async () => { + const r = await anon('GET', EXPLAIN); + expect(r.status, 'anonymous access explanation must be 401').toBe(401); + }); + + it.each([ + ['POST /batch', 'POST', BATCH, BATCH_PROBE_BODY], + ['GET /security/explain', 'GET', EXPLAIN, undefined], + ] as const)( + 'an authenticated member is NOT denied on %s — and is NOT 404, so the door is really there', + async (seam, method, path, body) => { + // The same two claims the /meta write-door contrast makes. `.not.toBe(401)`: + // a session changes the answer, so the anonymous 401 is the auth floor. + // `.not.toBe(404)`: the route is registered on this boot, so that 401 is + // not vacuous. The member's exact status is the batch validator's or the + // explain gate's business, deliberately not pinned here. + const r = await stack.apiAs(memberToken, method, path, body); + expect(r.status, `${seam}: an authenticated caller must clear the auth floor`).not.toBe(401); + expect(r.status, `${seam}: the route must be registered — a 404 would make the 401 above vacuous`).not.toBe(404); + }, + ); + it('an authenticated member reaches the packages domain — not 401 (the deny targets anonymity)', async () => { // Teeth for the anonymous cases above: the same route, with a session, // clears the auth floor. A plain member holds neither `studio.access` nor @@ -589,7 +637,8 @@ describe('showcase: anonymous posture is uniform across surfaces (#2567)', () => // `@objectstack/service-ai` ships in the open framework, and that // domain's gate sits BEHIND its route match, so it never runs here); // - `GET /security/permissions` answers 404 (the showcase registration - // path mounts no `/security`); + // path mounts no dispatcher `/security` domain — `/security/explain` + // below is a different owner, `@objectstack/rest`, in the flat family); // - `/meta` on this stack is served by `@objectstack/rest`, so it exercises // the flat family, not the dispatcher's meta domain. // The wrapper family is therefore represented by actions + automation. Adding @@ -615,6 +664,9 @@ describe('showcase: anonymous posture is uniform across surfaces (#2567)', () => call: () => anon(door.method, door.path, door.body), })), { seam: `GET ${OBJ}`, owner: '@objectstack/rest enforceAuth', family: 'rest-flat', call: () => anon('GET', OBJ) }, + // [#21060] The two remaining REST families the checklist item names. + { seam: 'POST /batch', owner: '@objectstack/rest enforceAuth', family: 'rest-flat', call: () => anon('POST', BATCH, BATCH_PROBE_BODY) }, + { seam: 'GET /security/explain', owner: '@objectstack/rest enforceAuth', family: 'rest-flat', call: () => anon('GET', EXPLAIN) }, { seam: 'POST /actions/:object/:action/:id', owner: 'runtime domains/actions.ts', family: 'dispatcher-wrapper', call: () => anon('POST', ACTION, { params: {} }) }, { seam: 'POST /automation/:name/trigger', owner: 'runtime domains/automation.ts', family: 'dispatcher-wrapper', call: () => anon('POST', `/automation/${FLOW}/trigger`, {}) }, { seam: 'GET /automation/_status', owner: 'runtime domains/automation.ts', family: 'dispatcher-wrapper', call: () => anon('GET', '/automation/_status') }, From bcb97affbc91518b4d67d2d7c395cdd3e34b300a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 05:39:56 +0000 Subject: [PATCH 03/15] docs(qa): close the P0 run's access-security checklist-accuracy findings crud-permission-matrix: counts re-measured from access-matrix.json (47 rows; the pin's 164 cells, 87 allow / 77 deny), client_liaison added to the variants, the sys_user 405 cells named, the guest intake clause recorded unobservable on stock, and the delegate pin no longer read as vouching for the dev boot. write-path-guards: updateMany drops a locked field per row, reported on results[i]. rls-both-sides and owd-sharing-matrix: the private D11 handle is disambiguated from FOLLOW-UPS section 7c's public D11 row, and clause numbering is stated. anonymous-deny-surfaces: automated.ref names the six families the pin now drives. The qa-contributor-bound-member recipe and the P0 member items mint personas invite-first under the invite_only default. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- docs/qa/platform-checklist/FOLLOW-UPS.md | 8 ++ .../areas/access-security.json | 92 +++++++++++++------ docs/qa/platform-checklist/areas/search.json | 11 ++- 3 files changed, 77 insertions(+), 34 deletions(-) diff --git a/docs/qa/platform-checklist/FOLLOW-UPS.md b/docs/qa/platform-checklist/FOLLOW-UPS.md index b07daf69001..aa511332993 100644 --- a/docs/qa/platform-checklist/FOLLOW-UPS.md +++ b/docs/qa/platform-checklist/FOLLOW-UPS.md @@ -280,6 +280,14 @@ declares exactly `.` and `./logger`. Do not re-derive the subpath. | D14 | `MigrationRecoveryPlugin` is composed by NO boot path — `serve.ts` auto-registers `PlatformObjectsPlugin` but never the recovery plugin; standalone-stack, default-host, the showcase config, and the migrate CLI boot all omit it; only its unit test instantiates it. Interrupted-migration detection therefore never runs on any shipped boot, while `sys-migration-journal.object.ts` argues recovery must need "zero host wiring" | `packages/runtime/src/index.ts` (exported); `serve.ts` (what IS auto-registered) | platform-core.interrupted-migration-boot-report (fixtures an explicit registration; knownGap names the composition hole) | correctness/composition — safe to file | | D15 | `extract-hook-body.ts`'s header promises "the build fails… no silent fallback" on a forbidden pattern, but the DEFAULT `os build` catches every extraction error and silently falls back to the.mjs bundle (`lower-callables.ts`), printing the warnings nowhere; only `--strict-body` (`compile.ts`) produces the worded refusals with exit 1. `hook-bodies.mdx` documents the warn-and-bundle default, so code comment and docs disagree with each other | `extract-hook-body.ts` vs `lower-callables.ts`, `compile.ts` | cli.hook-body-extraction-gates (default-path silent-fallback encoded as expected-fail contradiction clause) | correctness — safe to file | +⚠️ **Handle collision on D11 (#21060).** The D11 row above is the two-factor `get-totp-uri` +re-reveal. It is **not** the private handle D11 that `access-security.rls-both-sides` +clause 5 and `access-security.owd-sharing-matrix` clause 4 cite. That handle names a +security-sensitive defect delivered to the maintainer privately (#7463), and it is +deliberately not reproduced in this file. The two numbers collided when this table continued +the D-series. Cite the item and its clause, never the bare handle, and never read one D11 as +the other. + Two design notes captured inside items rather than as defect rows: `sys_user.mfa_required_at` is stamped lazily and never cleared anywhere in source, so post-disable re-gating branches on a pre-existing stamp (identity-auth.two-factor-disable-lifecycle, design-note clause); and diff --git a/docs/qa/platform-checklist/areas/access-security.json b/docs/qa/platform-checklist/areas/access-security.json index d1a14bb9a0c..5a5f5f48703 100644 --- a/docs/qa/platform-checklist/areas/access-security.json +++ b/docs/qa/platform-checklist/areas/access-security.json @@ -9,7 +9,7 @@ "title": "Row-level security: restricted member sees only their rows; admin sees all", "since": "v15", "status": "active", - "revision": 4, + "revision": 5, "priority": "P0", "surface": "api", "personas": [ @@ -24,7 +24,7 @@ ] }, "steps": [ - "boot showcase isolated (own port + file DB per dogfood skill §0); sign in as admin; sign up members A and B (fresh emails) — both hold only the everyone baseline showcase_member_default", + "boot showcase isolated (own port + file DB per dogfood skill §0); sign in as admin; sign up members A and B (fresh emails; invite each one first — the stock showcase declares no auth.audience, so the invite_only default answers an uninvited POST /api/v1/auth/sign-up/email 403 SELF_REGISTRATION_CLOSED; an admin POST /api/v1/auth/organization/invite-member for the address admits the sign-up (or admin POST /api/v1/auth/admin/create-user, which answers mustChangePassword:true)) — both hold only the everyone baseline showcase_member_default", "as A: POST /api/v1/data/showcase_private_note {\"title\": \"A note 1\"} and a second note; as B: POST one note — capture the returned ids", "as A: GET /api/v1/data/showcase_private_note (list); as B: same; capture both record sets", "as A: GET /api/v1/data/showcase_private_note/ (foreign by-id read); as A: PATCH /api/v1/data/showcase_private_note/ {\"body\": \"forged\"} (foreign by-id write)", @@ -64,7 +64,7 @@ "evidence": "formatRlsReport output" }, { - "clause": "skipped objects in the verify report are each explainable (no plain-text probe field / blocked fixture) — a skip hiding a hole is the #3415 seed-defect class; this clause is ALSO the CANONICAL home of the standing expected-fail probe for the security-sensitive defect held privately under the FOLLOW-UPS handle D11", + "clause": "skipped objects in the verify report are each explainable (no plain-text probe field / blocked fixture) — a skip hiding a hole is the #3415 seed-defect class; this clause is ALSO the CANONICAL home of the standing expected-fail probe for the security-sensitive defect held privately under the handle D11 (#7463) — ⚠ NOT the public D11 row of FOLLOW-UPS.md §7c (the two-factor get-totp-uri re-reveal), an unrelated defect that later took the same number", "oracle": "test", "verify": "for each status:'skipped' row, the detail names the benign reason; spot-check one skipped object by hand with the by-id read/write probe. ⚠ The D11 write-up was delivered to the maintainer PRIVATELY under the ruling recorded on #7463 (same handling as D1) and is deliberately not reproduced in this repo's FOLLOW-UPS.md, in run record #7637, or here — judge the spot-check against that private write-up and its private fix card, never tick this clause green over it, and never restate the defect in a public run issue", "evidence": "report detail lines + the spot-check trace" @@ -72,8 +72,8 @@ ], "negative": [ "the foreign by-id write must not silently succeed: a 2xx on the forged PATCH, or a 4xx that still mutated the row (verified by the admin re-read), is a FAIL even though every list looked correctly filtered", - "the private D11 defect is recorded ONCE, here: access-security.owd-sharing-matrix clause 4 reaches the same defect through the controlled_by_parent path and cross-references this clause, so a run carries the verdict on THIS item only — recording it on both double-counts one defect (#7687)", - "⚠ naming collision, never conflate the two: the private FOLLOW-UPS handle D11 is unrelated to 'ADR-0090 D11', the external-OWD authoring clause cited by access-security.owd-save-gate — two different things sharing two characters" + "the private D11 defect is recorded ONCE, here (acceptance[5], a run record's A6): access-security.owd-sharing-matrix clause 4 (acceptance[4], a run record's A5) reaches the same defect through the controlled_by_parent path and cross-references this clause, so a run carries the verdict on THIS item only — recording it on both double-counts one defect (#7687)", + "⚠ naming collision, never conflate them: the private handle D11 is unrelated to 'ADR-0090 D11', the external-OWD authoring clause cited by access-security.owd-save-gate, AND to the public D11 row of FOLLOW-UPS.md §7c (the two-factor get-totp-uri re-reveal) — three different things sharing one name. Cite this item and its clause, never the bare handle" ], "traps": [ "wrong-persona" @@ -109,7 +109,13 @@ "change": "dedupe of the private D11 defect (#7637 found it on this item's clause 5 AND on owd-sharing-matrix clause 4, one defect counted twice): clause 5 becomes the CANONICAL expected-fail probe, non-disclosing and referenced by the FOLLOW-UPS D11 handle only, with a negative pinning the one-count rule and the ADR-0090-D11 naming collision; owd-sharing-matrix clause 4 now cross-references here", "ref": "#7687" }, - { "revision": 4, "date": "2026-08-18", "change": "named the --rls flag on step 7 and clause 4. runRlsProofs runs only behind it (packages/cli/src/commands/verify.ts: rls: Flags.boolean({ default: false }), proofs and report both inside if (flags.rls)), so bare `objectstack verify` emits no RLS section — two rounds cited plain verify believing they had consulted an RLS oracle (#9334)", "ref": "#9386" } + { "revision": 4, "date": "2026-08-18", "change": "named the --rls flag on step 7 and clause 4. runRlsProofs runs only behind it (packages/cli/src/commands/verify.ts: rls: Flags.boolean({ default: false }), proofs and report both inside if (flags.rls)), so bare `objectstack verify` emits no RLS section — two rounds cited plain verify believing they had consulted an RLS oracle (#9334)", "ref": "#9386" }, + { + "revision": 5, + "date": "2026-10-01", + "change": "checklist-accuracy findings of QA run #21056. The private handle D11 collided with the public D11 row FOLLOW-UPS.md §7c later assigned to an unrelated two-factor defect; clause 5 and the naming-collision negative now say so (FOLLOW-UPS §7c carries the same note), still non-disclosing. Numbering, for every cross-reference here and in this item's history: \"clause N\" counts from 0 (acceptance[N]); run records number clauses from 1, so clause 5 here is a run record's A6. steps[0] mints A and B invite-first under the invite_only default", + "ref": "#21060" + } ] }, { @@ -117,7 +123,7 @@ "title": "Write-path guards: readonly strip, owner_id forge/transfer denied, bulk validation", "since": "v16", "status": "active", - "revision": 2, + "revision": 3, "priority": "P0", "surface": "api", "personas": [ @@ -133,7 +139,7 @@ ] }, "steps": [ - "boot showcase isolated; admin session + two members Alice and Bob (fresh sign-ups); resolve their sys_user ids via the data API or objectql", + "boot showcase isolated; admin session + two members Alice and Bob (fresh sign-ups — invite each one first — the stock showcase declares no auth.audience, so the invite_only default answers an uninvited POST /api/v1/auth/sign-up/email 403 SELF_REGISTRATION_CLOSED; an admin POST /api/v1/auth/organization/invite-member for the address admits the sign-up (or admin POST /api/v1/auth/admin/create-user, which answers mustChangePassword:true)); resolve their sys_user ids via the data API or objectql", "as admin (contact create is admin-side in the stock matrix): POST /api/v1/data/showcase_contact {\"name\": \"RO probe\", \"email\": \"ro-probe@verify.test\", \"lead_score\": 10} — forging the readonly field on INSERT; GET the row back", "PATCH the same contact with {\"lead_score\": 99}; GET again", "as Alice: POST /api/v1/data/showcase_private_note {\"title\": \"planted\", \"owner_id\": \"\"} (insert forge); then POST a note with {\"owner_id\": \"\"} (explicit self-owner); then PATCH her own note with {\"owner_id\": \"\"} (transfer) and with {\"owner_id\": null} (disown)", @@ -173,10 +179,10 @@ "evidence": "the reads" }, { - "clause": "readonlyWhen locks hold at the API on the locked state: paid invoice's tax_rate and its lines' quantity/unit_price/product are not writable, and a bulk update touching any locked row drops the field for the batch (#3042)", + "clause": "readonlyWhen locks hold at the API on the locked state: paid invoice's tax_rate and its lines' quantity/unit_price/product are not writable, and a bulk update is judged PER ROW — the locked field is dropped only from the rows whose own (or parent's) state locks it, reported on that row as results[i].droppedFields (reason readonly_when), while the same field on an unlocked row in the same batch is applied (#3042)", "oracle": "api", - "verify": "post-write reads show the locked fields unchanged on the paid invoice and its lines", - "evidence": "write payloads + re-reads" + "verify": "post-write reads show the locked fields unchanged on the paid invoice and its lines; in a mixed updateMany, the locked row's results[i].droppedFields names the field with reason readonly_when, the unlocked row carries none and re-reads changed", + "evidence": "write payloads + per-row results + re-reads" }, { "clause": "bulk update evaluates validation rules PER ROW (the #3106 updateMany gap must not reproduce): violating rows rejected/skipped, compliant rows applied — one mixed batch shows both outcomes", @@ -216,6 +222,12 @@ "date": "2026-08-07", "change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants", "ref": "claude/platform-test-checklist-ocwugl" + }, + { + "revision": 3, + "date": "2026-10-01", + "change": "checklist-accuracy findings of QA run #21056. acceptance[5] said a bulk update touching a locked row drops the field for the batch; updateMany runs engine.update per row with its own drop listener (metadata-protocol updateManyData), so only the locked row loses the field and the report is per row, results[i].droppedFields. steps[0] mints the members invite-first under the invite_only default", + "ref": "#21060" } ] }, @@ -400,32 +412,35 @@ "title": "CRUD × permission-set matrix: every access-matrix.json row holds — allowed verbs succeed, withheld verbs 403, VAMA bounded", "since": "v15", "status": "active", - "revision": 3, + "revision": 4, "priority": "P0", "surface": "api", "personas": [ "admin", - "one fresh member per permission set under test (set granted via a sys_user_permission_set row, as showcase-permission-zoo.dogfood.test.ts does)", + "one fresh member per permission set under test (set granted via a sys_user_permission_set row, as showcase-permission-zoo.dogfood.test.ts does) — invited first, see steps[0]", "a second member as the foreign-row owner" ], "fixtures": { "app": "showcase", "requires": [ - "examples/app-showcase/access-matrix.json — it IS the expectation table (31 permission-set × object rows)", - "seeded permission sets showcase_contributor/manager/executive/auditor/ops/member_default/guest_portal/field_ops_delegate (security bootstrap)" + "examples/app-showcase/access-matrix.json — it IS the expectation table (47 permission-set × object rows at revision 4: 41 showcase_* rows plus 6 showcase_field_ops_delegate × sys_* rows; recount from the file each run)", + "seeded permission sets showcase_contributor/manager/executive/auditor/ops/member_default/guest_portal/field_ops_delegate/client_liaison (security bootstrap)" ], "knownGaps": [ - "every authenticated member ALSO holds the everyone baseline showcase_member_default additively (ADR-0090 D5) — the effective expectation per cell is the UNION of the tested set's row and the baseline's row for that object; compute the union before judging a cell, or a baseline-granted read will look like a matrix violation. Measured on the committed table: 9 of the 100 showcase_* cells are granted ONLY by the baseline (showcase_auditor and showcase_executive can CREATE an inquiry and create+edit a private note; guest_portal can READ an inquiry; showcase_manager and showcase_ops can CREATE an inquiry). showcase-crud-persona-matrix.dogfood.test.ts computes the union and asserts those 9 as allowed.", - "access-matrix.json is the APP's declared matrix; the platform's own baseline permission sets are additionally in force and grant some sys_* surface the app matrix never mentions (measured: a plain member reads /data/sys_user 200, self-scoped). So the absence of a row is NOT a prediction of denial on sys_* objects, and the automated sweep judges the showcase_* rows only — see automated.ref." + "every authenticated member ALSO holds the everyone baseline showcase_member_default additively (ADR-0090 D5) — the effective expectation per cell is the UNION of the tested set's row and the baseline's row for that object; compute the union before judging a cell, or a baseline-granted read will look like a matrix violation. Measured on the committed table: 9 of the 164 showcase_* cells (41 rows × 4 verbs at revision 4) are granted ONLY by the baseline (showcase_auditor and showcase_executive can CREATE an inquiry and create+edit a private note; guest_portal can READ an inquiry; showcase_manager and showcase_ops can CREATE an inquiry). showcase-crud-persona-matrix.dogfood.test.ts computes the union and asserts those 9 as allowed.", + "access-matrix.json is the APP's declared matrix; the platform's own baseline permission sets are additionally in force and grant some sys_* surface the app matrix never mentions (measured: a plain member reads /data/sys_user 200, self-scoped). So the absence of a row is NOT a prediction of denial on sys_* objects, and the automated sweep judges the showcase_* rows only — see automated.ref.", + "clause 5 (guest_portal create-without-read) is UNOBSERVABLE on a stock boot — record it blocked(fixture), never pass or fail. The guest anchor ships unbound (binding guest → showcase_guest_portal is an admin action; the app only ships the capability, permission-sets.ts GuestPortalPermissionSet), a member persona holding the set also holds the baseline's read on showcase_inquiry, and QA run #21056 measured REST anonymous create AND read both answering 401 even with the anchor bound. The only anonymous create lane is the public form (publicFormGrant on the inquiry form view, ADR-0056 Option A), whose grant is create plus read-back of the row it created — a different contract from this clause's", + "sys_user create and delete answer 405 OBJECT_API_METHOD_NOT_ALLOWED for EVERY caller, admin included: sys_user declares apiMethods ['get','list','update','bulk'] (identity writes belong to better-auth, ADR-0092), and the API-exposure gate answers before any permission is judged. Score those two delegate × sys_user cells against 405, not 403" ] }, "steps": [ - "boot showcase isolated; admin session; for each permission set in access-matrix.json create a fresh member (unique email) and grant exactly that set by inserting the sys_user_permission_set row (system context), mirroring showcase-permission-zoo.dogfood.test.ts", + "boot showcase isolated; admin session; for each permission set in access-matrix.json create a fresh member (unique email) and grant exactly that set by inserting the sys_user_permission_set row (system context), mirroring showcase-permission-zoo.dogfood.test.ts. ⚠️ the stock showcase declares no auth.audience, so its posture is the invite_only default and an uninvited POST /api/v1/auth/sign-up/email answers 403 SELF_REGISTRATION_CLOSED: mint each member by an admin POST /api/v1/auth/organization/invite-member for that address first (a pending sys_invitation row admits the sign-up), or by an admin POST /api/v1/auth/admin/create-user, which answers mustChangePassword:true", "as admin (or a helper member), seed one FOREIGN-owned probe row per object under test (e.g. a showcase_private_note, showcase_inquiry, showcase_invoice + line, showcase_announcement owned by someone other than the persona)", "for every row of access-matrix.json drive all four verbs as that persona: POST /api/v1/data/ {minimal valid payload}, GET /api/v1/data/ + GET /api/v1/data//, PATCH /api/v1/data//, DELETE /api/v1/data// — capture status + error.code for each cell", "for rows with viewAllRecords:true (auditor on showcase_inquiry/showcase_invoice/showcase_invoice_line/showcase_private_note): GET the foreign probe by id and list; for the SAME objects re-run as a persona whose row says viewAllRecords:false", "for rows with modifyAllRecords:true (ops on showcase_announcement): PATCH the foreign-owned announcement; re-run the same PATCH as member_default (modifyAllRecords:false)", - "for the guest_portal row pair on showcase_inquiry (create:true, read:false): POST an inquiry as that persona, then GET the list and the created id", + "for the guest_portal row pair on showcase_inquiry (create:true, read:false): record clause 5 blocked(fixture) per knownGaps — a member holding the set reads inquiries through the baseline, and REST anonymous answers 401 to both verbs", + "for the 6 showcase_field_ops_delegate × sys_* rows, drive the delegate by hand; for its sys_user_position edit and delete cells, probe a row the DELEGATE created — a row another principal created meets the platform's write ownership floor (member_default owner_only_writes / owner_only_deletes, created_by == current_user.id), so its verdict does not read the delegate's grant", "record the full verb × set × object verdict matrix and diff it against access-matrix.json (unioned with the baseline per the known gap above)" ], "acceptance": [ @@ -436,9 +451,9 @@ "evidence": "the verdict matrix + spot re-reads" }, { - "clause": "every withheld cell is DENIED SERVER-SIDE with the ledgered code: verbs marked false answer 403 with error.code PERMISSION_DENIED (rest-server maps explicit security denials to 403 PERMISSION_DENIED) — UI absence never counts (ADR-0124 D1)", + "clause": "every withheld cell is DENIED SERVER-SIDE with the ledgered code: verbs marked false answer 403 with error.code PERMISSION_DENIED (rest-server maps explicit security denials to 403 PERMISSION_DENIED) — except a verb the object does not expose over the API at all, which answers 405 OBJECT_API_METHOD_NOT_ALLOWED for every caller (sys_user create and delete) — UI absence never counts (ADR-0124 D1)", "oracle": "api", - "verify": "per-cell status 403 and body code PERMISSION_DENIED; capture any cell answering a different code for triage", + "verify": "per-cell status 403 and body code PERMISSION_DENIED (405 + OBJECT_API_METHOD_NOT_ALLOWED on the sys_user create and delete cells, for the admin control too); capture any cell answering a different code for triage", "evidence": "the verdict matrix" }, { @@ -468,7 +483,7 @@ { "clause": "every variant (permission set) is driven over EVERY object row access-matrix.json lists for it, and the run record carries one verdict per cell — a set skipped or an object row skipped makes the item at best partial", "oracle": "api", - "verify": "verdict matrix dimensions match access-matrix.json entries (31 rows × 4 verbs at revision-time; recount from the file each run)", + "verify": "verdict matrix dimensions match access-matrix.json entries (47 rows × 4 verbs at revision 4: the 41 showcase_* rows are 164 cells, 87 effective-allow and 77 effective-deny after the baseline union; recount from the file each run)", "evidence": "the matrix artifact" } ], @@ -484,11 +499,12 @@ "showcase_ops", "showcase_member_default", "showcase_guest_portal", - "showcase_field_ops_delegate" + "showcase_field_ops_delegate", + "showcase_client_liaison" ], "automated": { "kind": "verify", - "ref": "packages/verify/src/verify.ts (runCrudVerification) + packages/verify/src/rls.ts (runRlsProofs) — `objectstack verify --rls` for the OBJECT-level CRUD and cross-owner RLS half (the flag is load-bearing: bare verify prints no RLS section) + packages/qa/dogfood/test/showcase-crud-persona-matrix.dogfood.test.ts for the PERSONA-grained cells: all 25 showcase_* rows of access-matrix.json driven over all four verbs by one fresh member per permission set — 100 cells, 50 effective-allow and 50 effective-deny, each judged against the BASELINE-UNIONED expectation (row OR showcase_member_default row, ADR-0090 D5), which is also asserted as load-bearing on the 9 cells whose only grant is the baseline. Reaches clauses 0, 1, 2, 3, 4 and 6 for those rows; every denial is checked to be 403 PERMISSION_DENIED specifically, every allow to persist, and an admin payload control runs first so a persona 403 cannot be a 400 in disguise. STILL MANUAL: (a) the 6 showcase_field_ops_delegate x sys_* rows — the platform's OWN baseline sets grant part of that surface independently of the app matrix (measured: a member holding nothing but the app baseline reads /data/sys_user 200, self-scoped, though the matrix lists sys_user read only for the delegate), and the delegate's sys_user_position writes are decided by the ADR-0090 D12 adminScope subtree gate that showcase-permission-zoo.dogfood.test.ts already pins on both sides — a raw cell verdict there would be false in one direction or the other; (b) clause 5's guest-anchor intake asymmetry (guest_portal create-without-read) — NOT observable on a member persona at all, because the everyone baseline grants read on showcase_inquiry and capability is a union, so the member-persona expectation is READ ALLOWED; the asymmetry lives on the unauthenticated guest anchor, a different admission lane." + "ref": "packages/verify/src/verify.ts (runCrudVerification) + packages/verify/src/rls.ts (runRlsProofs) — `objectstack verify --rls` for the OBJECT-level CRUD and cross-owner RLS half (the flag is load-bearing: bare verify prints no RLS section) + packages/qa/dogfood/test/showcase-crud-persona-matrix.dogfood.test.ts for the PERSONA-grained cells: every showcase_* row of access-matrix.json (41 at revision 4) driven over all four verbs by one fresh member per permission set — 164 cells, 87 effective-allow and 77 effective-deny, each judged against the BASELINE-UNIONED expectation (row OR showcase_member_default row, ADR-0090 D5), which is also asserted as load-bearing on the 9 cells whose only grant is the baseline. Reaches clauses 0, 1, 2, 3, 4 and 6 for those rows; every denial is checked to be 403 PERMISSION_DENIED specifically, every allow to persist, and an admin payload control runs first so a persona 403 cannot be a 400 in disguise. STILL MANUAL: (a) the 6 showcase_field_ops_delegate x sys_* rows — the platform's OWN baseline sets grant part of that surface independently of the app matrix (measured: a member holding nothing but the app baseline reads /data/sys_user 200, self-scoped, though the matrix lists sys_user read only for the delegate), and the delegate's sys_user_position writes are decided by the ADR-0090 D12 adminScope subtree gate that showcase-permission-zoo.dogfood.test.ts pins on both sides ON THE VERIFY HARNESS — a raw cell verdict there would be false in one direction or the other. ⚠️ That pin does not vouch for a dev boot: QA run #21056 measured the same in-subtree assignment answering 403 'outside the delegated subtree' on a stock dev boot (verifier-confirmed product defect, tracked at #21057), so drive those cells by hand and score them against the live answer; (b) clause 5's guest-anchor intake asymmetry (guest_portal create-without-read) — NOT observable on a member persona at all, because the everyone baseline grants read on showcase_inquiry and capability is a union, so the member-persona expectation is READ ALLOWED; the asymmetry lives on the unauthenticated guest anchor, a different admission lane." }, "traps": [ "wrong-persona", @@ -513,6 +529,12 @@ "date": "2026-08-18", "change": "persona-grained cells pinned (QA run #9401 scored this item partial: verify proves object-level CRUD + cross-owner RLS, never the persona x cell matrix). automated.ref now names the dogfood sweep over the 25 showcase_* rows and states precisely what stays manual — the 6 sys_* delegate rows, whose verdicts are not plain cells, and clause 5's guest-anchor asymmetry, which a member persona structurally cannot observe. knownGaps records the measured baseline-union flip count and the fact that a missing row is not a prediction of denial on sys_* objects", "ref": "#9481" + }, + { + "revision": 4, + "date": "2026-10-01", + "change": "checklist-accuracy findings of QA run #21056. Counts re-measured from access-matrix.json: 47 rows (41 showcase_* + 6 delegate sys_*), the pin's 164 cells split 87 allow / 77 deny, the same 9 baseline-only cells; showcase_client_liaison joined the variants and the seeded-set list. acceptance[1] names the 405 OBJECT_API_METHOD_NOT_ALLOWED sys_user create/delete cells (sys_user apiMethods). Clause 5 recorded unobservable on a stock boot (knownGaps; steps[5]). automated.ref no longer reads the permission-zoo pin as vouching for the dev boot's delegate cells (#21057). steps[0] mints members invite-first under the invite_only default; a new step names the ownership-floor trap on the delegate's edit/delete probes", + "ref": "#21060" } ] }, @@ -521,7 +543,7 @@ "title": "Sharing-model / OWD matrix: private, public_read, public_read_write, controlled_by_parent each enforce their declared baseline", "since": "v15", "status": "active", - "revision": 2, + "revision": 3, "priority": "P0", "surface": "api", "personas": [ @@ -576,7 +598,7 @@ { "clause": "controlled_by_parent: line access derives from the master (ADR-0055) — C2 cannot list, read by id, or PATCH C1's line (C1's invoice is outside C2's owner-RLS read set); C1 reads and writes their own line by id", "oracle": "api", - "verify": "C2's three denials (list excludes, by-id non-200, PATCH >=400 + unchanged) and C1's 2xx pair; no line-level rule is authored — derivation is the only mechanism in play. ⚠ DEDUPE: C2's by-id probes reach the SAME security-sensitive defect that access-security.rls-both-sides clause 5 carries canonically under the private FOLLOW-UPS handle D11 (#7463 ruling; nothing about it is described in this ledger, in run record #7637, or here). Record the verdict THERE and cross-reference it from here — one defect, one count (#7687). Not the same thing as 'ADR-0090 D11'", + "verify": "C2's three denials (list excludes, by-id non-200, PATCH >=400 + unchanged) and C1's 2xx pair; no line-level rule is authored — derivation is the only mechanism in play. ⚠ DEDUPE: C2's by-id probes reach the SAME security-sensitive defect that access-security.rls-both-sides clause 5 (acceptance[5], a run record's A6) carries canonically under the private handle D11 — not FOLLOW-UPS.md §7c's public D11 row, an unrelated defect (#7463 ruling; nothing about it is described in this ledger, in run record #7637, or here). Record the verdict THERE and cross-reference it from here — one defect, one count (#7687). Not the same thing as 'ADR-0090 D11'", "evidence": "all traces" }, { @@ -614,7 +636,7 @@ "examples/app-showcase/access-matrix.json#sharingModel (sharingModel column)", "ADR-0055", "authz-conformance.matrix.ts rows owd-private / owd-public-read / controlled-by-parent", - "cross-ref access-security.rls-both-sides clause 5 — canonical home of the private D11 expected-fail probe (#7637, #7463 ruling)" + "cross-ref access-security.rls-both-sides clause 5 (acceptance[5], a run record's A6) — canonical home of the private D11 expected-fail probe (#7637, #7463 ruling); not FOLLOW-UPS.md §7c's public D11" ], "history": [ { @@ -628,6 +650,12 @@ "date": "2026-08-11", "change": "dedupe of the private D11 defect: clause 4's by-id probes reach the same defect as rls-both-sides clause 5, so this clause now CROSS-REFERENCES that canonical home instead of carrying a second statement of it — #7637 recorded one defect on two items; the text stays non-disclosing and names only the FOLLOW-UPS D11 handle", "ref": "#7687" + }, + { + "revision": 3, + "date": "2026-10-01", + "change": "cross-reference disambiguation from QA run #21056: the private handle D11 is not FOLLOW-UPS.md §7c's public D11 row (an unrelated two-factor defect that took the same number), and clause numbers here count from 0 — this item's clause 4 is a run record's A5, rls-both-sides clause 5 is its A6. Non-disclosing as before", + "ref": "#21060" } ] }, @@ -838,7 +866,7 @@ "title": "Anonymous requests to every mounted API family answer 401 UNAUTHENTICATED — uniformly, before any resource resolution", "since": "v15", "status": "active", - "revision": 1, + "revision": 2, "priority": "P0", "surface": "api", "personas": [ @@ -910,7 +938,7 @@ ], "automated": { "kind": "dogfood", - "ref": "packages/qa/dogfood/test/showcase-anonymous-deny-surfaces.dogfood.test.ts" + "ref": "packages/qa/dogfood/test/showcase-anonymous-deny-surfaces.dogfood.test.ts — drives all six variant families: data, meta (read and the five write doors), actions, automation, batch (POST /batch with the empty operation list) and security-explain (GET /security/explain), each anonymous 401 classified into exactly one declared envelope family, with a member contrast proving each route is registered. Batch and security-explain joined at revision 2; before that they were checked by hand only" }, "traps": [ "dispatcher-vs-hono-route" @@ -929,6 +957,12 @@ "date": "2026-08-07", "change": "new — auth-boundary sweep over every mounted family, grounded in the #2567/#5519 conformance rows and their dogfood pin", "ref": "claude/platform-test-checklist-ocwugl" + }, + { + "revision": 2, + "date": "2026-10-01", + "change": "the pin now covers POST /batch and GET /security/explain (QA run #21056 measured both 401 rest-flat live; the pin drove four of the six variant families). automated.ref names what the pin drives", + "ref": "#21060" } ] }, diff --git a/docs/qa/platform-checklist/areas/search.json b/docs/qa/platform-checklist/areas/search.json index 2e6b2e4c6ed..e98ad34de4f 100644 --- a/docs/qa/platform-checklist/areas/search.json +++ b/docs/qa/platform-checklist/areas/search.json @@ -6,22 +6,23 @@ "fixtures": { "$comment": "AREA-LEVEL standing fixtures. An item opts in with fixtures.provisioning = { use: \"\", why: \"…\" }; the recipe is written ONCE here so several items do not carry drifting copies of the same call sequence. Recipes are runtime-provisioned (no repo file is touched, nothing to seed) and every call is grounded in framework source at the cited file:line — replay them literally, and if one 4xxs, re-read the citation before assuming the recipe rotted. Shape copied from qa-scratch-authz in areas/attachments-storage.json (#7716/#7670).", "qa-contributor-bound-member": { - "title": "A CONTRIBUTOR-BOUND member — an identity that reads a strict SUBSET of showcase_invoice rows (fresh sign-up + one sys_user_position row)", + "title": "A CONTRIBUTOR-BOUND member — an identity that reads a strict SUBSET of showcase_invoice rows (invited sign-up + one sys_user_position row)", "why": "Both-sides RLS needs a persona for whom a specific row is invisible while the object itself is readable. ⚠️ Neither seeded demo persona is that persona, and reaching for them is the trap this recipe closes — measured on 17.1.0 (#10257): Mei (phone.demo@example.com) holds NO position, so showcase_contributor never merges and showcase_invoice answers PERMISSION_DENIED — the OBJECT gate, no rows at all, not a subset; Ada (auditor.demo@example.com) holds `auditor` → showcase_auditor, which carries `showcase_invoice: { allowRead: true, viewAllRecords: true }` — VAMA bypasses record scope entirely, so she sees all 12 — also not a subset. The persona that IS a subset is a member bound to the `contributor` position: showcase_contributor grants read/create/edit on showcase_invoice while the `invoice_own_rows` RLS narrows selects to `owner == current_user.email`, and none of the seeded invoices are owned by a fresh sign-up. Nothing here needs a seed change or a repo file — the whole gap was that the recipe existed only as prose on one item, which is why a runner reached for the demo personas instead and recorded blocked(fixture).", - "provenance": "run #7629 (framework, 2026-08-11) drove search.rls-both-personas to 4/4 PASS on exactly this persona — 3 invoices visible to the member vs 15 to admin. Promoted from prose on that one item to a replayable area recipe by the 17.1.0 sweep (#10236 B1); the Mei/Ada measurements above are from #10257.", + "provenance": "run #7629 (framework, 2026-08-11) drove search.rls-both-personas to 4/4 PASS on exactly this persona — 3 invoices visible to the member vs 15 to admin. Promoted from prose on that one item to a replayable area recipe by the 17.1.0 sweep (#10236 B1); the Mei/Ada measurements above are from #10257. Step 1 re-pointed invite-first by #21060 after QA run #21056 met the invite_only default (403 SELF_REGISTRATION_CLOSED on an uninvited sign-up).", "app": "showcase", "requires": [ "a stock dev boot — the position→permission-set bindings are created automatically at startup on `kernel:bootstrapped`, including ['contributor','showcase_contributor'] (examples/app-showcase/src/security/bind-position-sets.ts, POSITION_PERMISSION_SET_BINDINGS). ⛔ Do NOT hand-create a sys_position_permission_set row: it already exists, and a duplicate proves nothing about the merge", "system-context write access for the position binding (the sys_user_position insert) — the same pattern access-security.json's permission-set items already replay", - "an isolated boot (own port + file DB, dogfood §0); export OS_PORT= as well as passing -p (RUNNER.md's connector self-URL fact) so unrelated flow noise does not pollute the run" + "an isolated boot (own port + file DB, dogfood §0); export OS_PORT= as well as passing -p (RUNNER.md's connector self-URL fact) so unrelated flow noise does not pollute the run", + "an admin session to INVITE the step-1 address before step 1: POST /api/v1/auth/organization/invite-member {\"email\": \"\", \"role\": \"member\"}. The stock showcase declares no auth.audience, so its posture is the invite_only default, which answers an uninvited sign-up 403 SELF_REGISTRATION_CLOSED; a pending, unexpired sys_invitation row for the address is what admits it (an admin POST /api/v1/auth/admin/create-user is the other door, and answers mustChangePassword:true)" ], "sequence": [ { "step": 1, "call": "POST /api/v1/auth/sign-up/email", "body": { "email": "qa-contributor@verify.test", "password": "", "name": "QA Contributor" }, - "expect": "2xx with a session for a brand-new principal. This works on a stock dev boot — three identities were minted in one call each in #10257 — so the identity half needs no seed change. Use a UNIQUE email per run: a re-run against a live DB collides on the existing account.", - "source": "packages/plugins/plugin-auth (better-auth email sign-up); exercised end-to-end by access-security.record-share-grant-revoke, which was driven on minted A/B/C identities in #10257" + "expect": "2xx with a session for a brand-new principal — AFTER the admin invite in requires. Uninvited, a stock boot answers 403 SELF_REGISTRATION_CLOSED (the invite_only default; the three one-call mints #10257 recorded predate it). The identity half still needs no seed change. Use a UNIQUE email per run: a re-run against a live DB collides on the existing account.", + "source": "packages/plugins/plugin-auth (better-auth email sign-up; the invite_only gate admits an address holding a pending sys_invitation row); packages/spec/src/system/auth-config.zod.ts#AUDIENCE_POSTURES (invite_only is the undeclared default); exercised end-to-end by access-security.record-share-grant-revoke, which was driven on minted A/B/C identities in #10257" }, { "step": 2, From b6b8d702892bdc1df26779240751a397b575161d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 05:54:12 +0000 Subject: [PATCH 04/15] test(showcase): smoke reaches all 49 nav destinations and waits past the boot splash The smoke listed 31 of the 49 destinations showcase_app serves; the 18 others are added. Its non-chart check passed on the console's boot splash, whose text is non-empty; the wait now treats the splash as not-yet-rendered and the assertion refuses a surface stuck on it. The config read a hard-coded :3000: SMOKE_API_URL, which global-setup already signs in against, now also drives baseURL and the booted server's port, and OS_TEST_CHROMIUM_EXECUTABLE_PATH lets a container point Playwright at its installed chromium. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- .../app-showcase/e2e/showcase-smoke.spec.ts | 56 +++++++++++++++++-- examples/app-showcase/playwright.config.ts | 33 +++++++++-- 2 files changed, 80 insertions(+), 9 deletions(-) diff --git a/examples/app-showcase/e2e/showcase-smoke.spec.ts b/examples/app-showcase/e2e/showcase-smoke.spec.ts index bc28dac5e10..d5d7c9a9b52 100644 --- a/examples/app-showcase/e2e/showcase-smoke.spec.ts +++ b/examples/app-showcase/e2e/showcase-smoke.spec.ts @@ -16,6 +16,16 @@ declare const process: { env: Record }; const APP = process.env.SHOWCASE_APP || 'com.example.showcase'; const base = (seg: string) => `/_console/apps/${APP}/${seg}`; +/** + * An `ObjectNavItem.filters` slice, spelled the way objectui's nav renderer + * builds its href: the bare data surface (`/:objectName/data`) with one + * `filter[]=` search param per entry, URLSearchParams-encoded. + */ +const slice = (objectName: string, filters: Record) => { + const usp = new URLSearchParams(); + for (const [field, value] of Object.entries(filters)) usp.set(`filter[${field}]`, value); + return base(`${objectName}/data?${usp.toString()}`); +}; const SURFACES: { name: string; path: string; chart?: boolean }[] = [ { name: 'Capability Map', path: base('page/showcase_capability_map') }, @@ -49,8 +59,41 @@ const SURFACES: { name: string; path: string; chart?: boolean }[] = [ { name: 'Team Schedule', path: base('page/showcase_task_schedule') }, { name: 'Activity Timeline', path: base('page/showcase_task_timeline') }, { name: 'Work Map', path: base('page/showcase_task_map') }, + // [#21060] The 18 served destinations the list above did not reach. Measured + // against `showcase_app`'s navigation (src/ui/apps/index.ts): 49 leaf items, + // 31 of them listed above, and these 18 hand-walked clean by QA run #21056. + // Names are the nav labels, except where a label repeats one above. + { name: 'Page Authoring', path: base('page/showcase_start_here') }, + { name: 'Contacts', path: base('showcase_contact') }, + { name: 'Expense Reports', path: base('showcase_expense_report') }, + { name: 'Business Units', path: base('showcase_business_unit') }, + { name: 'Cascading Select', path: base('showcase_cascade') }, + { name: 'In-Progress Tasks', path: slice('showcase_task', { status: 'in_progress' }) }, + { name: 'Urgent Tasks', path: slice('showcase_task', { priority: 'urgent' }) }, + { name: 'In-Review Tasks', path: slice('showcase_task', { status: 'in_review' }) }, + { name: 'Revenue Pulse', path: base('dashboard/showcase_revenue_pulse') }, + { name: 'Task List', path: base('showcase_task/view/tabular') }, + { name: 'Hours by Status (Chart)', path: base('report/showcase_hours_by_status_chart') }, + { name: 'Styling Gallery', path: base('page/showcase_styling_gallery') }, + { name: 'Page Variables', path: base('page/showcase_page_variables') }, + { name: 'Contact Form', path: base('page/showcase_contact_form') }, + { name: 'Command Center (JSX)', path: base('page/showcase_command_center_jsx') }, + { name: 'CRM Workbench', path: base('page/showcase_crm_workbench') }, + { name: 'Task Desk', path: base('page/showcase_task_desk') }, + { name: 'Renewals Pipeline', path: base('page/showcase_renewals_pipeline') }, ]; +/** + * The console's boot splash — objectui app-shell's `LoadingScreen`, which the + * shell also renders as a `Suspense` fallback INSIDE its `
` — reads + * "Initializing application…" under the default locale. Its text is not empty, + * so a check of "main has text" passed on a surface that had not rendered at + * all: QA run #21056 read the splash as the FIRST `
` text on 22 of 49 + * surfaces. The wait below treats the splash as not-yet-rendered, and the + * assertions refuse a surface that is still on it at the deadline. + */ +const BOOT_SPLASH = /Initializing application/i; + /** * The budget every wait in this file spends, measured from the start of the * surface that calls it — and the SOURCE of each wait's deadline, rather than @@ -103,10 +146,14 @@ for (const surface of SURFACES) { // Replaces the fixed 1500 ms settle with a wait on the thing the assertion // below actually needs — rendered main content — on the same deadline. - const mainText = await pollUntil( - async () => ((await main.innerText().catch(() => '')) || '').trim(), - deadline, - ); + // [#21060] Rendered means past the boot splash, not merely non-empty: the + // splash is text too. The last sample is kept whatever it was, so a surface + // stuck on the splash fails as exactly that rather than as "no content". + let mainText = ''; + await pollUntil(async () => { + mainText = ((await main.innerText().catch(() => '')) || '').trim(); + return mainText.length > 0 && !BOOT_SPLASH.test(mainText); + }, deadline); let chartBox: { width: number; height: number } | null = null; if (surface.chart) { @@ -134,6 +181,7 @@ for (const surface of SURFACES) { `leaked placeholder on ${surface.name}`, ).toHaveCount(0); expect(mainText.length, `${surface.name} rendered no main content`).toBeGreaterThan(0); + expect(mainText, `${surface.name} never got past the boot splash`).not.toMatch(BOOT_SPLASH); if (surface.chart) { expect( diff --git a/examples/app-showcase/playwright.config.ts b/examples/app-showcase/playwright.config.ts index 566a8bd3837..8be9db5d133 100644 --- a/examples/app-showcase/playwright.config.ts +++ b/examples/app-showcase/playwright.config.ts @@ -13,8 +13,25 @@ declare const process: { env: Record }; * * Run: pnpm --filter @objectstack/example-showcase exec playwright test * (or via the ci/showcase-smoke workflow). Non-blocking by design. + * + * ## Where the server is, and which browser drives it + * + * `SMOKE_API_URL` is the ONE address the harness uses: `e2e/global-setup.ts` + * already signs in against it, and the `baseURL` and the `webServer` below now + * read it too, so the sign-in, every page load, and the server this config + * boots (`-p` is that URL's port) can no longer point at three different + * places. Unset, all three stay on :3000. On a shared box where :3000 is + * somebody else's dev server, `reuseExistingServer` would otherwise attach to + * it: pass `SMOKE_API_URL=http://localhost:` instead. + * + * `OS_TEST_CHROMIUM_EXECUTABLE_PATH` points Playwright at a chromium binary + * when the browser cache holds a different build than this `@playwright/test` + * resolves, in which case every test dies at launch (RUNNER.md, "Environment + * facts"). Unset, Playwright resolves its own browser exactly as before. */ -const PORT = 3000; +const BASE_URL = new URL(process.env.SMOKE_API_URL || 'http://localhost:3000'); +const PORT = BASE_URL.port || '3000'; +const CHROMIUM_EXECUTABLE = process.env.OS_TEST_CHROMIUM_EXECUTABLE_PATH; export default defineConfig({ testDir: './e2e', fullyParallel: false, @@ -24,15 +41,21 @@ export default defineConfig({ globalSetup: './e2e/global-setup.ts', timeout: 45_000, use: { - baseURL: `http://localhost:${PORT}`, + baseURL: BASE_URL.origin, storageState: 'e2e/.auth/state.json', trace: 'on-first-retry', screenshot: 'only-on-failure', }, - projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }], + projects: [{ + name: 'chromium', + use: { + ...devices['Desktop Chrome'], + ...(CHROMIUM_EXECUTABLE ? { launchOptions: { executablePath: CHROMIUM_EXECUTABLE } } : {}), + }, + }], webServer: { - command: 'node node_modules/@objectstack/cli/bin/run.js serve --dev', - url: `http://localhost:${PORT}/api/v1/runtime/config`, + command: `node node_modules/@objectstack/cli/bin/run.js serve --dev -p ${PORT}`, + url: `${BASE_URL.origin}/api/v1/runtime/config`, timeout: 180_000, reuseExistingServer: !process.env.CI, stdout: 'pipe', From 89177bccd41339d00cafafefec91281048247f51 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 06:03:19 +0000 Subject: [PATCH 05/15] test(showcase): judge the two chart destinations among the 18 as charts Revenue Pulse draws line/column/donut/bar widgets and the Hours by Status chart report draws a bar chart, so both take the laid-out-chart check the other three chart surfaces take. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- examples/app-showcase/e2e/showcase-smoke.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/app-showcase/e2e/showcase-smoke.spec.ts b/examples/app-showcase/e2e/showcase-smoke.spec.ts index d5d7c9a9b52..32b96eb3490 100644 --- a/examples/app-showcase/e2e/showcase-smoke.spec.ts +++ b/examples/app-showcase/e2e/showcase-smoke.spec.ts @@ -71,9 +71,9 @@ const SURFACES: { name: string; path: string; chart?: boolean }[] = [ { name: 'In-Progress Tasks', path: slice('showcase_task', { status: 'in_progress' }) }, { name: 'Urgent Tasks', path: slice('showcase_task', { priority: 'urgent' }) }, { name: 'In-Review Tasks', path: slice('showcase_task', { status: 'in_review' }) }, - { name: 'Revenue Pulse', path: base('dashboard/showcase_revenue_pulse') }, + { name: 'Revenue Pulse', path: base('dashboard/showcase_revenue_pulse'), chart: true }, { name: 'Task List', path: base('showcase_task/view/tabular') }, - { name: 'Hours by Status (Chart)', path: base('report/showcase_hours_by_status_chart') }, + { name: 'Hours by Status (Chart)', path: base('report/showcase_hours_by_status_chart'), chart: true }, { name: 'Styling Gallery', path: base('page/showcase_styling_gallery') }, { name: 'Page Variables', path: base('page/showcase_page_variables') }, { name: 'Contact Form', path: base('page/showcase_contact_form') }, From bec0fa09c7d3e2c594dc84bf2afd1f5ed0cb7b17 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 06:09:09 +0000 Subject: [PATCH 06/15] docs(qa): nav-surfaces-render and RUNNER facts follow the re-measured pin and verify digits nav-surfaces-render names the 49 destinations the smoke now drives, the boot-splash rule, and the SMOKE_API_URL / OS_TEST_CHROMIUM_EXECUTABLE_PATH overrides. RUNNER's environment facts carry the re-measured verify digits (15 verified, 1 needs-fixture, 8 skipped; 10 of 10 positions) and the smoke's new test count and browser override. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- docs/qa/platform-checklist/RUNNER.md | 21 ++++++++++++------- .../areas/platform-core.json | 19 +++++++++++------ 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/docs/qa/platform-checklist/RUNNER.md b/docs/qa/platform-checklist/RUNNER.md index c491b3b5b6f..dc895b1c3d5 100644 --- a/docs/qa/platform-checklist/RUNNER.md +++ b/docs/qa/platform-checklist/RUNNER.md @@ -139,17 +139,19 @@ contradicts it, and correct it here when it does. section at all.** `runRlsProofs` runs only behind the flag (`packages/cli/src/commands/verify.ts`: `rls: Flags.boolean({ default: false })`, the proofs sit inside `if (flags.rls)`, and the report prints `if (rls)`). **Check:** the - last block of a bare run is the CRUD summary — `── 16 verified, 0 gaps, 0 FAILED, 1 - needs-fixture, 7 skipped` on stock showcase — with no `PROVEN`/`HOLES` line anywhere. + last block of a bare run is the CRUD summary — `── 15 verified, 0 gaps, 0 FAILED, 1 + needs-fixture, 8 skipped` on stock showcase — with no `PROVEN`/`HOLES` line anywhere. Adding `--rls` appends the RLS block. ⛔ Do not cite plain `verify` output as the oracle for an RLS clause — that run never consulted one. **The discriminator is the PRESENCE of a `PROVEN`/`HOLES` line, never its digits.** The counts move with the seed set and are recorded here only as the shape to expect: - the CRUD tail read `15 verified` through 2026-08-18 and reads `16` on 17.1.0 because + the CRUD tail read `15 verified` through 2026-08-18 and `16` on 17.1.0 because the showcase gained one object (`client-brief.object.ts`, added between the two sweep - subjects); a run whose digits differ has a different seed, not a regression. Re-derive - the number, do not file it. + subjects), and reads `15 verified … 1 needs-fixture, 8 skipped` again by 2026-10-01 + (QA run #21056, re-measured for #21060): one object moved from verified to skipped, + the 24-object total unchanged. A run whose digits differ has a different seed, not a + regression. Re-derive the number, do not file it. ⚠️ **The `--rls` block prints TWO summary lines in DIFFERENT units — do not compare them.** `formatRlsReport` (`packages/verify/src/rls.ts`) emits a per-persona @@ -160,7 +162,9 @@ contradicts it, and correct it here when it does. source stamps that unit into the line precisely so the two are not read as one number moving. Measured on 17.1.0: the total line reads `all personas: 38 PROVEN (38 consistent, 0 HOLES) · 226 NOT PROVEN`, alongside - `9 of 9 declared position(s) probed`. An older note here recorded + `9 of 9 declared position(s) probed`; re-measured 2026-10-01 (#21060), the total line is + unchanged and the positions read `10 of 10` — the showcase declares ten positions + now (digits only, as above). An older note here recorded `20 PROVEN … over 23 objects` — that was the per-persona line, so it is **not comparable** to the total rather than merely stale. Name which of the two lines you are quoting whenever you cite either. @@ -174,7 +178,8 @@ contradicts it, and correct it here when it does. dies at browser launch — the error names the **headless-shell** variant it wanted (`Executable doesn't exist at .../chromium_headless_shell-1234/...`), which is the signature to recognise. Pass `launchOptions.executablePath=/opt/pw-browsers/chromium` - and the same specs pass (verified: Playwright launches through it, reporting Chromium + (for the smoke, `OS_TEST_CHROMIUM_EXECUTABLE_PATH=/opt/pw-browsers/chromium`, which the + config reads since #21060) and the same specs pass (verified: Playwright launches through it, reporting Chromium 141.0.7390.37, and drives a real page). ⚠️ Use that **alias**, not the versioned `chromium-1194/chrome-linux/chrome` beneath it: `/opt/pw-browsers/chromium` is a symlink maintained by the image build, so it still resolves after the image moves to @@ -182,7 +187,7 @@ contradicts it, and correct it here when it does. path copied out of this section is the `absence-inference` trap one level up. **The discriminator is uniformity:** a launch/environment failure takes down the whole run at once (`showcase-smoke.spec.ts` generates one test per - `SURFACES` entry — 31 today, so "31 failed" means all of them), while a product defect + `SURFACES` entry — 49 today, so "49 failed" means all of them), while a product defect fails selectively. ⛔ Do not file a whole-run red as a product defect before checking the browser resolved. diff --git a/docs/qa/platform-checklist/areas/platform-core.json b/docs/qa/platform-checklist/areas/platform-core.json index 0e4b222fa33..ee7c568a424 100644 --- a/docs/qa/platform-checklist/areas/platform-core.json +++ b/docs/qa/platform-checklist/areas/platform-core.json @@ -231,7 +231,7 @@ "title": "Every showcase nav surface renders without page errors, and failures surface the error boundary — never a blank page", "since": "v15", "status": "active", - "revision": 4, + "revision": 5, "priority": "P0", "surface": "browser", "personas": ["seeded admin (admin@objectos.ai / admin123)"], @@ -242,19 +242,19 @@ ] }, "steps": [ - "run the pinned suite: pnpm -C examples/app-showcase test:smoke (the SURFACES array in e2e/showcase-smoke.spec.ts — 31 surfaces: pages, object lists, dashboards, reports, the view-gallery pages)", + "run the pinned suite: pnpm -C examples/app-showcase test:smoke (the SURFACES array in e2e/showcase-smoke.spec.ts — all 49 showcase_app nav destinations at revision 5: pages, object lists, the three filter slices, the tabular view, dashboards, reports, the view-gallery pages). On a shared box pass SMOKE_API_URL=http://localhost:: the config signs in, drives every page and boots `serve --dev -p ` from that one URL, and reuses whatever already answers it — on the default port 3000 that can be somebody else's server. Where the browser cache holds a different chromium build than @playwright/test resolves (RUNNER.md Environment facts), pass OS_TEST_CHROMIUM_EXECUTABLE_PATH=/opt/pw-browsers/chromium", "GET /api/v1/meta/app?id=showcase_app and extract every nav destination from the response (?id= matches the app NAME; the package-id spelling returns an empty items array and would yield zero destinations)", "diff the served nav destinations against the SURFACES array; hand-walk any destination the suite does not cover (screenshot first, then DOM)", "on each hand-walked surface: wait for render, screenshot, then check for pageerror / empty
/ placeholder leaks ('no actions configured')", - "chart surfaces (the chart:true entries in SURFACES — Delivery Operations, Chart Gallery, Command Center): the suite now POLLS boundingBox against a bounded deadline (SURFACE_BUDGET_MS in the spec) instead of reading it once after a fixed wait, so a chart red here is a real finding and not the measurement window — #7569 measured the difference: 3 fresh loads each drew 5 real charts, and polling every 400 ms returned null ONLY at t = 1.5 s, the old fixed measurement instant and exactly the recharts ResponsiveContainer initial-layout window, then non-null on all 19 later samples. Read WHICH assertion failed: 'no chart SVG laid out' means the box stayed null for the whole budget; a width/height failure means the chart laid out but collapsed (#2616 D). If you hand-walk a chart surface outside the suite, poll the same way — never sleep-then-read-once", + "chart surfaces (the chart:true entries in SURFACES — Delivery Operations, Chart Gallery, Command Center, Revenue Pulse, Hours by Status (Chart)): the suite now POLLS boundingBox against a bounded deadline (SURFACE_BUDGET_MS in the spec) instead of reading it once after a fixed wait, so a chart red here is a real finding and not the measurement window — #7569 measured the difference: 3 fresh loads each drew 5 real charts, and polling every 400 ms returned null ONLY at t = 1.5 s, the old fixed measurement instant and exactly the recharts ResponsiveContainer initial-layout window, then non-null on all 19 later samples. Read WHICH assertion failed: 'no chart SVG laid out' means the box stayed null for the whole budget; a width/height failure means the chart laid out but collapsed (#2616 D). If you hand-walk a chart surface outside the suite, poll the same way — never sleep-then-read-once", "probe the failure path: navigate to a nonexistent route under the app (/_console/apps/com.example.showcase/object_that_does_not_exist); screenshot what renders", "if ANY surface fails during the sweep, verify the failure presents as the shell's error boundary or a named empty/error state — capture it" ], "acceptance": [ { - "clause": "no surface throws a pageerror, renders an empty
, or leaks a 'no actions configured' placeholder; chart surfaces draw a real SVG whose box is measured by POLLING until non-null within a bounded budget — never by a fixed wall-clock wait followed by a single boundingBox read, which measures the layout window rather than the product", + "clause": "no surface throws a pageerror, renders an empty
, stays on the console's boot splash ('Initializing application…'), or leaks a 'no actions configured' placeholder; chart surfaces draw a real SVG whose box is measured by POLLING until non-null within a bounded budget — never by a fixed wall-clock wait followed by a single boundingBox read, which measures the layout window rather than the product", "oracle": "test", - "verify": "pnpm -C examples/app-showcase test:smoke (SURFACES array in e2e/showcase-smoke.spec.ts) — green; the chart assertion polls boundingBox against a bounded deadline and keeps the last non-null sample, so a null-box failure and a collapsed-panel failure report as different assertions (#7569)", + "verify": "pnpm -C examples/app-showcase test:smoke (SURFACES array in e2e/showcase-smoke.spec.ts) — green; the main-content wait treats the boot splash as not-yet-rendered and the assertion refuses a surface still on it; the chart assertion polls boundingBox against a bounded deadline and keeps the last non-null sample, so a null-box failure and a collapsed-panel failure report as different assertions (#7569)", "evidence": "test run output + the failing assertion's message for any chart red" }, { @@ -278,6 +278,7 @@ ], "negative": [ "a surface that renders a blank
is a FAIL even with no console error — transitional emptiness must be ruled out by the screenshot-first protocol, then the persistent blank is the finding", + "the boot splash is NOT rendered content: 'Initializing application…' is text inside
, so a non-empty check passes on a surface that never rendered. QA run #21056 read it as the FIRST
text on 22 of 49 surfaces, and the suite's own non-chart check passed on it until revision 5. A hand walk waits past the splash before judging, exactly as the suite now does", "a bad route producing a white page (shell gone) is a FAIL of the error-boundary clause", "a chart red obtained from a SINGLE boundingBox read at a fixed instant is NOT a product finding and must not be filed as one — it measures the ResponsiveContainer layout window, and it cost a triage cycle every run until #7569 replaced that read with a bounded poll. Re-introducing any fixed sleep-then-read-once in this suite re-opens it. The converse holds both ways: a box that stays null through the WHOLE bounded poll, or a laid-out width ≤ 200 (the #2616 D collapsed-panel case), IS a FAIL" ], @@ -293,7 +294,13 @@ { "revision": 1, "date": "2026-08-07", "change": "initial — wraps the existing automated smoke as a checklist row so runs report it alongside manual items", "ref": "#3358" }, { "revision": 2, "date": "2026-08-07", "change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants", "ref": "claude/platform-test-checklist-ocwugl" }, { "revision": 3, "date": "2026-08-11", "change": "de-flaked the chart clause's MEASUREMENT, both halves in one change: a null boundingBox read once at a fixed instant is the recharts ResponsiveContainer layout window, not a product defect (measured: null only at t=1.5s, non-null on all 19 later samples, 5 real charts on each of 3 fresh loads). The clause now requires a bounded poll-until-non-null, and the pinned suite was changed to match — showcase-smoke.spec.ts's fixed page.waitForTimeout(1500) plus single boundingBox() read are gone, replaced by deadline-bounded polling (the #7472/#7409 shape), keeping the last non-null sample so a collapsed panel (#2616 D) still fails on its width rather than as 'no chart SVG'", "ref": "#7569" }, - { "revision": 4, "date": "2026-08-18", "change": "corrected the ?id= spelling from com.example.showcase to showcase_app. Found by grounding the #9334 finding against the tree rather than by report: this item was not among the two named there, yet carries the same defect and is load-bearing here — the step extracts every nav destination from a response the package-id spelling leaves empty", "ref": "#9386" } + { "revision": 4, "date": "2026-08-18", "change": "corrected the ?id= spelling from com.example.showcase to showcase_app. Found by grounding the #9334 finding against the tree rather than by report: this item was not among the two named there, yet carries the same defect and is load-bearing here — the step extracts every nav destination from a response the package-id spelling leaves empty", "ref": "#9386" }, + { + "revision": 5, + "date": "2026-10-01", + "change": "the pin caught up with QA run #21056's three findings: SURFACES covered 31 of 49 served destinations, and the 18 the run hand-walked are now in it (Revenue Pulse and the Hours by Status chart report as chart surfaces); the non-chart check passed on the boot splash, and the wait and assertion now treat the splash as not rendered; the config hard-coded port 3000 and offered no browser override, and now reads SMOKE_API_URL for the server it boots and OS_TEST_CHROMIUM_EXECUTABLE_PATH for the browser. Measured on this branch: 49 passed on a free port with the container's chromium, and an instrumented run saw 29 of the 49 surfaces on the splash first", + "ref": "#21060" + } ] }, { From 4d3bd4bb7a0a2789b0f17dddbec8ddaa2e9b85c0 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 06:11:07 +0000 Subject: [PATCH 07/15] docs(qa): boot-health, seed-integrity and packaged-action items read what a stock boot prints At the default warn level a healthy boot prints no SeedLoader success line, so both seed reads now name the level-immune Seeds banner row. boot-health's no-warning clause names the misauthored flow classes, since a stock boot lists its policy-disabled scheduled flows with a warning glyph. packaged-action-disabled-dispatch records that the MCP endpoint is drivable live on a stock boot. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- .../platform-checklist/areas/api-backend.json | 12 ++++++-- .../areas/platform-core.json | 28 +++++++++++++------ 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/docs/qa/platform-checklist/areas/api-backend.json b/docs/qa/platform-checklist/areas/api-backend.json index ce69bccc62a..999cf927d00 100644 --- a/docs/qa/platform-checklist/areas/api-backend.json +++ b/docs/qa/platform-checklist/areas/api-backend.json @@ -455,7 +455,7 @@ { "revision": 3, "date": "2026-10-01", - "change": "re-pointed to what the doors answer since #20116 (QA run #21056 scored clause 6 FAIL; verifier disposition: stale clause, not a product defect). acceptance[5]: POST /query, both spellings, is refused at the request schema with 400 VALIDATION_FAILED + a located fields[] entry; GET $filter still answers 400 INVALID_FILTER; the step-8 GET twin was added. acceptance[2] and step 5: a dotted fields entry is refused 400 INVALID_FIELD by design, prescribing expand. negative[0]: {\"filter\": …} is a declared transport spelling of where, so the widening probe now uses a mistyped clause (400 VALIDATION_FAILED) and an undeclared key (400 INVALID_FIELD). Residual for the maintainer, not a defect: the same condition answers VALIDATION_FAILED on POST and INVALID_FILTER on GET (#8001 family)", + "change": "re-pointed to what the doors answer since #20116 (QA run #21056 scored acceptance[5] — the run record's A6 — FAIL; verifier disposition: stale clause, not a product defect). acceptance[5]: POST /query, both spellings, is refused at the request schema with 400 VALIDATION_FAILED + a located fields[] entry; GET $filter still answers 400 INVALID_FILTER; the step-8 GET twin was added. acceptance[2] and step 5: a dotted fields entry is refused 400 INVALID_FIELD by design, prescribing expand. negative[0]: {\"filter\": …} is a declared transport spelling of where, so the widening probe now uses a mistyped clause (400 VALIDATION_FAILED) and an undeclared key (400 INVALID_FIELD). Residual for the maintainer, not a defect: the same condition answers VALIDATION_FAILED on POST and INVALID_FILTER on GET (#8001 family)", "ref": "#21060" } ] @@ -1402,7 +1402,7 @@ "title": "A disabled packaged action is refused 409 ACTION_DISABLED at BOTH dispatch doors — after the capability gate (a 403 is never an oracle for the switch), before the param contract and the record load, durable across restart", "since": "v17", "status": "active", - "revision": 2, + "revision": 3, "priority": "P0", "surface": "api", "personas": [ @@ -1418,7 +1418,7 @@ "showcase_portfolio_snapshot (ui/actions/index.ts — object-less/global, and the ONLY stock action with ai.exposed: true): the live MCP-door probe; its activation flip spells the object segment `global` (/actions/_activation/global/showcase_portfolio_snapshot)" ], "knownGaps": [ - "The MCP door cannot be driven live with showcase_mark_done: the bridge's AI-exposure gate (actionAiExposureError, fail-closed on ai.exposed !== true) sits AHEAD of the activation consult, so a non-exposed action answers the exposure refusal regardless of its switch. showcase_portfolio_snapshot is the only stock ai.exposed action; if the MCP transport itself is not drivable in the run environment, score the MCP clause from the unit pin (action-activation-dispatch.test.ts 'door 2') and record which oracle the verdict rests on.", + "The MCP door cannot be driven live with showcase_mark_done: the bridge's AI-exposure gate (actionAiExposureError, fail-closed on ai.exposed !== true) sits AHEAD of the activation consult, so a non-exposed action answers the exposure refusal regardless of its switch. showcase_portfolio_snapshot is the only stock ai.exposed action. The MCP transport IS drivable live on a stock boot: the boot banner prints `MCP: http://localhost:/api/v1/mcp`, and QA run #21056 drove POST /api/v1/mcp tools/call run_action against showcase_portfolio_snapshot (disabled → isError carrying code ACTION_DISABLED, status 409; re-enabled → ok). Score the MCP clause live; fall back to the unit pin (action-activation-dispatch.test.ts 'door 2') only where the endpoint is not mounted, and record which oracle the verdict rests on.", "The record-load half of the ordering proof has NO contrasting refusal: the REST door's record load is best-effort (try/catch in domains/actions.ts — a missing record passes an empty record for new-record actions), so a nonexistent recordId never 404s on its own, enabled or disabled. The record leg is proven by code order plus the absence of any read/side effect, never by expecting a 404 from the enabled control." ] }, @@ -1519,6 +1519,12 @@ "date": "2026-09-04", "change": "ledger read-back detail only — the dispatch contract itself is UNCHANGED and no clause moved. #15024 dropped sys_metadata_activation's reserved organization_id column before it ever shipped (systemFields { tenant: false } removes it rather than leaving it unwritten), so step 2's row confirmation asked a runner to read a column that is not there. It now asserts the row's KEY SET carries no organization_id, because the value spelling passes VACUOUSLY once the column is gone (`row.organization_id ?? null` is `null` either way) — green for exactly the reason it should be red. automated.ref was stale in the same direction: it described the dogfood pin as asserting 'ONE install-level row with organization_id NULL', and that pin has been a key-set reading named 'writes ONE deployment-level row, and the TABLE has no tenant column at all' since #15024; the ref now quotes the pin's live name so a runner who opens the file finds it", "ref": "#15253" + }, + { + "revision": 3, + "date": "2026-10-01", + "change": "knownGaps no longer presents a live MCP call as possibly undrivable: a stock boot mounts POST /api/v1/mcp (named in the boot banner), and QA run #21056 drove tools/call run_action live for clause 4. The unit pin stays the fallback where the endpoint is absent", + "ref": "#21060" } ] }, diff --git a/docs/qa/platform-checklist/areas/platform-core.json b/docs/qa/platform-checklist/areas/platform-core.json index ee7c568a424..a6115f83999 100644 --- a/docs/qa/platform-checklist/areas/platform-core.json +++ b/docs/qa/platform-checklist/areas/platform-core.json @@ -9,7 +9,7 @@ "title": "Showcase boots clean: health + ready 200, no degraded startup banners, console + app metadata served", "since": "v15", "status": "active", - "revision": 5, + "revision": 6, "priority": "P0", "surface": "mixed", "preconditions": [ @@ -19,7 +19,7 @@ "boot examples/app-showcase via `objectstack dev --ui --seed-admin -p -d file:/tmp//data.db`", "poll GET http://localhost:/api/v1/health until 200; record time-to-healthy", "GET /api/v1/ready and record the status (the readiness probe is a separate route — packages/runtime/src/route-ledger.ts)", - "read the FULL boot log: capture the Flows: banner, any ⚠ lines, any ERROR-level lines, and every SeedLoader line", + "read the FULL boot log: capture the Flows: banner, any ⚠ lines, any ERROR-level lines, and the seed outcome. ⚠️ at the default log level (warn) SeedLoader prints NO success line, so a grep for one finds nothing on a healthy boot. Read the ready banner's `Seeds:` row instead — it is immune to the level (packages/runtime/src/seed-summary.ts), e.g. `Seeds: com.example.showcase 132 rows`, and turns yellow with ⚠ and an `N ok / M errors` or `lost links` count when rows were dropped. `--log-level info` additionally prints `[Seeder] Seed loading complete {inserted, updated, skipped, errored}`; a load that dropped records logs `[Seeder] Seed loading completed with N dropped record(s)…` at warn and is visible at either level", "GET /_console/ and confirm the console shell HTML is served (200, text/html)", "GET /api/v1/meta/app?id=showcase_app and capture the merged app/nav metadata (?id= matches the App document's NAME, never the package id — ?id=com.example.showcase answers an empty items array, which reads exactly like missing metadata)", "cross-check the nav payload: the grp_data group lists the seeded objects (showcase_project, showcase_task, showcase_account, showcase_contact, showcase_invoice, showcase_field_zoo, …)" @@ -38,9 +38,9 @@ "evidence": "the curl output" }, { - "clause": "the `Flows:` startup banner reports no ⚠ misauthored flows and no ERROR-level lines appear IN THE BOOT WINDOW — the window is part of the clause, because ordinary caller-error 4xx traffic also logs at ERROR", + "clause": "the `Flows:` startup banner carries no ⚠ line of a MISAUTHORED class — a flow name claimed by several definitions, a flow targeting an unknown object, a trigger NOT bound for any reason other than deployment policy, or flows declared while the automation engine is not enabled — and no ERROR-level lines appear IN THE BOOT WINDOW — the window is part of the clause, because ordinary caller-error 4xx traffic also logs at ERROR", "oracle": "log", - "verify": "grep the boot log for '⚠' in the Flows banner and for ERROR lines, SCOPED to the boot window — from process start to the first 200 on /api/v1/health (the same instant clause 0 records as time-to-healthy). ⚠️ A caller-error REFUSAL logs at ERROR level with a full stack BEFORE answering 4xx — measured on 17.1.0 with a `$fn` filter probe answering 400 INVALID_FILTER (#10257). So an unscoped grep over a log that also carries the run's own probe traffic reports ERROR lines for requests the platform refused CORRECTLY, and a clean boot reads as a boot failure. Cut the log at the health-green line before grepping, or capture the boot log to its own file before issuing the first request; seed rejections still count as failures (see #3415 — SeedLoader rejections were silent)", + "verify": "read each ⚠ line under the Flows banner and classify it. ⚠️ A stock boot DOES print ⚠ lines that are not misauthoring: each package-authored scheduled flow is listed as `⚠ flow '' declares a '' trigger but is NOT bound — disabled by deployment policy …`, because package-authored scheduled work is off by default (QA run #21056 counted two on stock showcase). That is the posture working, so a bare grep for '⚠' reads a clean boot as a FAIL (the four misauthored classes are the four ⚠ shapes printAutomationSummary in packages/cli/src/utils/format.ts prints). Then grep for ERROR lines, SCOPED to the boot window — from process start to the first 200 on /api/v1/health (the same instant clause 0 records as time-to-healthy). ⚠️ A caller-error REFUSAL logs at ERROR level with a full stack BEFORE answering 4xx — measured on 17.1.0 with a `$fn` filter probe answering 400 INVALID_FILTER (#10257). So an unscoped grep over a log that also carries the run's own probe traffic reports ERROR lines for requests the platform refused CORRECTLY, and a clean boot reads as a boot failure. Cut the log at the health-green line before grepping, or capture the boot log to its own file before issuing the first request; seed rejections still count as failures (see #3415 — SeedLoader rejections were silent)", "evidence": "the grepped log excerpt" }, { @@ -84,6 +84,12 @@ "date": "2026-08-30", "change": "source-ref addition (2026-08-30 sweep, console-UI angle): the two live objectui e2e specs adjacent to this item's console-shell clause were referenced nowhere in the ledger — e2e/console-boot-indicator.spec.ts (objectui#2628, the pre-bundle white-page pin) and e2e/console-rendering.spec.ts (bootstrap/rendering blank-page pin). Added as source entries with the objectui-repo-only caveat (RUNNER.md standing fact), NOT as automated.ref — they pin the console build, not this item's boot protocol, so a run here may cite them as adjacent evidence but is not asked to execute them. No step/clause change", "ref": "#sweep-2026-08-30" + }, + { + "revision": 6, + "date": "2026-10-01", + "change": "checklist-accuracy findings of QA run #21056. steps[3] asked for every SeedLoader line, but at the default warn level a healthy boot prints none: it now names the level-immune `Seeds:` banner row and the --log-level info line. acceptance[2]'s 'no ⚠' collided with the stock `NOT bound — disabled by deployment policy` lines for package-authored scheduled flows: the clause now names the misauthored classes it fails on", + "ref": "#21060" } ] }, @@ -92,7 +98,7 @@ "title": "Seed integrity: row counts match the authored seed, values land verbatim, replay is idempotent", "since": "v15", "status": "active", - "revision": 2, + "revision": 3, "priority": "P0", "surface": "api", "personas": ["seeded admin (admin@objectos.ai / admin123)"], @@ -107,7 +113,7 @@ "authoring-time baseline for cross-checking the derivation: showcase_account=14, showcase_contact=32 (8 named + 24 bulk prospects), showcase_project=5, showcase_task=10, showcase_invoice=12, showcase_invoice_line=5, showcase_expense_report=4, showcase_expense_line=13, showcase_field_zoo=2", "for each seeded object, GET /api/v1/data/?$top=1 and read the server total; build the expected-vs-actual table", "GET the Field Zoo 'Specimen — Full' row and spot-diff authored values (f_multiselect ['red','green'] as a set, f_lookup resolving to the Northwind account id, f_json nested object intact)", - "re-read the boot log's seed lines: every seed reports success; no rejection or partial-load line", + "read the seed outcome: every seed source reports success and none reports a rejection or a partial load. ⚠️ at the default log level (warn) SeedLoader prints NO success line, so a grep for one finds nothing on a healthy boot. Read the ready banner's `Seeds:` row instead — it is immune to the level (packages/runtime/src/seed-summary.ts), e.g. `Seeds: com.example.showcase 132 rows`, and turns yellow with ⚠ and an `N ok / M errors` or `lost links` count when rows were dropped. `--log-level info` additionally prints `[Seeder] Seed loading complete {inserted, updated, skipped, errored}`; a load that dropped records logs `[Seeder] Seed loading completed with N dropped record(s)…` at warn and is visible at either level", "restart the server against the SAME file DB; re-run the count sweep and diff against the first sweep (upsert mode must no-op, not duplicate)" ], "acceptance": [ @@ -126,7 +132,7 @@ { "clause": "the boot log reports every seed load as success — a rejection is a FAIL against the seed even when the server otherwise boots green (#3415: four of five projects were silently rejected once)", "oracle": "log", - "verify": "grep the boot log for SeedLoader/seed lines; no rejected/failed entries", + "verify": "the banner's `Seeds:` row is the plain dim form with no ⚠ and no error or lost-link count (or, at --log-level info, `[Seeder] Seed loading complete` reports errored: 0), and no `[Seeder] Seed loading completed with N dropped record(s)` warn line appears", "evidence": "the log excerpt" }, { @@ -156,7 +162,13 @@ ], "history": [ { "revision": 1, "date": "2026-08-07", "change": "initial — makes the #3408/#3415 class of silent seed failure a standing P0 check with exact authored baselines", "ref": "claude/platform-test-checklist-ocwugl" }, - { "revision": 2, "date": "2026-08-18", "change": "corrected the showcase_contact baseline from 33 (9 named + 24 bulk) to 32 (8 named + 24 bulk) — re-derived from examples/app-showcase/src/data/seed/index.ts, whose contacts block authors 8 literal records plus Array.from({length: 24}); the server serves 32. Every other count in the baseline re-derived unchanged. The stale value made a correct seed read as a silent partial load (#9334, #9417)", "ref": "#9386" } + { "revision": 2, "date": "2026-08-18", "change": "corrected the showcase_contact baseline from 33 (9 named + 24 bulk) to 32 (8 named + 24 bulk) — re-derived from examples/app-showcase/src/data/seed/index.ts, whose contacts block authors 8 literal records plus Array.from({length: 24}); the server serves 32. Every other count in the baseline re-derived unchanged. The stale value made a correct seed read as a silent partial load (#9334, #9417)", "ref": "#9386" }, + { + "revision": 3, + "date": "2026-10-01", + "change": "checklist-accuracy finding of QA run #21056: steps[4] and acceptance[2] grep the boot log for SeedLoader lines, but at the default warn level a healthy boot prints none — they now read the level-immune `Seeds:` banner row (or the --log-level info `[Seeder] Seed loading complete` line)", + "ref": "#21060" + } ] }, { From faf39ece5d24d7c1051ee908040ed3447420b017 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 06:13:51 +0000 Subject: [PATCH 08/15] docs(qa): mcp-stdio-fail-closed names two personas, the real refusal wire and the host command No showcase persona carries both RLS-hidden rows and an FLS-masked field on one object, so the item names a contributor-bound member for RLS and a client_liaison-bound member for FLS. The aggregate refusal is scored on its message, since neither wire serializes forbiddenFields. Step 1 hosts the transport with os start: measured on a stock boot, os dev prints a 15-line banner to the stdout the stdio channel owns, os start prints none. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- docs/qa/platform-checklist/areas/ai.json | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/qa/platform-checklist/areas/ai.json b/docs/qa/platform-checklist/areas/ai.json index b2d6ce8641f..e941568780b 100644 --- a/docs/qa/platform-checklist/areas/ai.json +++ b/docs/qa/platform-checklist/areas/ai.json @@ -196,23 +196,24 @@ "title": "MCP stdio auto-start fails closed without OS_MCP_STDIO_API_KEY; with a member-bound key, reads AND aggregates honor RLS/FLS and revocation bites on the next call", "since": "v16", "status": "active", - "revision": 3, + "revision": 4, "priority": "P0", "surface": "cli", - "personas": ["restricted member API key (for the RLS half)", "admin API key (for the full-row comparison)"], + "personas": ["restricted member API key (for the RLS half — on showcase, a contributor-bound member)", "a second restricted member API key for the FLS half (on showcase, a client_liaison-bound member — see fixtures.requires)", "admin API key (for the full-row comparison)"], "fixtures": { "app": "any", "requires": [ "an OWD-private object with rows owned by two different users (the showcase task/invoice seeds qualify when run against the showcase)", "two osk_ API keys: one bound to a restricted member, one to an admin (Setup → Connect an Agent, or POST /api/v1/keys)", - "for the aggregate half: a field on that object the restricted member cannot read (the same FLS-masked field the row/field clause relies on), plus at least one readable field to group a count by" + "for the aggregate half: a field on that object the restricted member cannot read (the same FLS-masked field the row/field clause relies on), plus at least one readable field to group a count by", + "⚠️ on showcase NO single persona carries both RLS-hidden rows and an FLS-masked field on one object, so the RLS and FLS halves take two personas. RLS: a contributor-bound member (the search:qa-contributor-bound-member recipe) reads only its own showcase_invoice rows. FLS: the only `readable: false` grants are showcase_client_liaison's on showcase_project.budget / spent / budget_remaining (permission-sets.ts ClientLiaisonPermissionSet), and showcase_project is public_read_write, so that persona has no RLS-hidden rows there. Mint a key for each; score the RLS legs of acceptance[3] and acceptance[4] on the first, the FLS legs of acceptance[3] and acceptance[5] on the second" ], "knownGaps": [ "aggregate_records is registered on the MCP transport only when the runtime routes aggregation through the ObjectQL engine (mcp-http-tools.ts registers it IFF the bridge exposes aggregate — graceful degradation, the same contract as the action bridge). The showcase runtime does route it through the engine (packages/runtime/src/domains/mcp.ts). If tools/list lacks aggregate_records on this boot, record the aggregate clauses blocked(dependency), not a fail" ] }, "steps": [ - "start the app with the stdio transport enabled (OS_MCP_STDIO_ENABLED=true, or the plugin autoStart option) and OS_MCP_STDIO_API_KEY UNSET; capture the startup failure", + "start the app with `os start` from the app directory (e.g. `os start -p -d file:`) with the stdio transport enabled (OS_MCP_STDIO_ENABLED=true, or the plugin autoStart option) and OS_MCP_STDIO_API_KEY UNSET; capture the startup failure. ⛔ Not `os dev`: the stdio transport owns STDOUT (newline-delimited JSON a client parses line by line), and measured on a stock showcase boot `os dev` printed a 15-line banner there, the MCP connect block included, while `os start` printed nothing to stdout (every diagnostic goes to stderr, #7915)", "start again with OS_MCP_STDIO_API_KEY=osk_unknown (a key that resolves to nothing); capture that failure", "start with the restricted member's valid key; capture the principal-bound startup log line", "over MCP stdio, query_records the OWD-private object and get_record a row owned by the OTHER user; record row sets and field sets", @@ -254,7 +255,7 @@ "evidence": "the member MCP aggregate, the member REST aggregate, and the admin REST aggregate" }, { - "clause": "an aggregate whose input or groupBy names an FLS-unreadable field fails CLOSED — the FLS aggregate-INPUT gate rejects before any statistic is computed ('Field read denied', details.forbiddenFields: []); a masked field's sum/count_distinct never leaks through an alias, because result masking cannot run on aggregate output rows (they carry only aliases) — so the leak is stopped on the input (#2976)", + "clause": "an aggregate whose input or groupBy names an FLS-unreadable field fails CLOSED — the FLS aggregate-INPUT gate rejects before any statistic is computed, its message naming the field ('[Security] Field read denied: not permitted to aggregate [] on '). ⚠️ The thrown error carries forbiddenFields, but neither wire serializes it: REST answers {error, code, object} (packages/rest/src/error-response.ts, the PERMISSION_DENIED arm) and QA run #21056 found no details on the MCP tool error either — score on the message naming the field, never on a details key; a masked field's sum/count_distinct never leaks through an alias, because result masking cannot run on aggregate output rows (they carry only aliases) — so the leak is stopped on the input (#2976)", "oracle": "api", "verify": "aggregate_records over the masked field errors with the field-read-denied refusal and returns no numeric result; the same aggregate over a READABLE field succeeds (and count(*) needs no field) — the gate targets the field, not the operation", "evidence": "the refusal + a control aggregate over a readable field" @@ -292,7 +293,13 @@ "history": [ { "revision": 1, "date": "2026-08-07", "change": "initial import from #3358 §9", "ref": "#3358" }, { "revision": 2, "date": "2026-08-07", "change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants", "ref": "claude/platform-test-checklist-ocwugl" }, - { "revision": 3, "date": "2026-08-08", "change": "clause-extension (§G1 #2976): member-keyed aggregate_records reconciles to the member's OWN REST aggregate (RLS parity, not the admin's), and an aggregate over an FLS-masked field fails closed on the input gate — the RLS-bypassing count is the sys_attachment-total-leak class", "ref": "claude/platform-test-checklist-ocwugl" } + { "revision": 3, "date": "2026-08-08", "change": "clause-extension (§G1 #2976): member-keyed aggregate_records reconciles to the member's OWN REST aggregate (RLS parity, not the admin's), and an aggregate over an FLS-masked field fails closed on the input gate — the RLS-bypassing count is the sys_attachment-total-leak class", "ref": "claude/platform-test-checklist-ocwugl" }, + { + "revision": 4, + "date": "2026-10-01", + "change": "checklist-accuracy findings of QA run #21056: no single showcase persona carries both RLS-hidden rows and an FLS-masked field on one object, so the item now names two (contributor for RLS, client_liaison for FLS); acceptance[5] no longer expects details.forbiddenFields on the wire, which neither transport serializes; steps[0] names `os start` as the host and says why `os dev` corrupts the stdio channel (its banner goes to stdout — 15 lines measured, against 0 for `os start`)", + "ref": "#21060" + } ] }, { From 108a2d341cbcd905f0daf276ea1083cccdf89534 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 06:15:36 +0000 Subject: [PATCH 09/15] docs(qa): dev-boot-contract prescribes an unshared app dir, names exit codes and the banner caveat Three steps write into the app directory they run in, so they need one no other runner boots. The exit-code capture now states what to expect (SIGINT 0, --fresh SIGINT 130, no config 1), and the Dev admin banner row is no longer readable as seeding evidence, since it reprints on later boots while the default password still works. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- docs/qa/platform-checklist/areas/cli.json | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/qa/platform-checklist/areas/cli.json b/docs/qa/platform-checklist/areas/cli.json index e47e72af417..4017f4874d5 100644 --- a/docs/qa/platform-checklist/areas/cli.json +++ b/docs/qa/platform-checklist/areas/cli.json @@ -9,14 +9,15 @@ "title": "os dev boots to healthy with a loginable seeded admin, honest DB selection, reported port shifts, and a staleness warning", "since": "v16", "status": "active", - "revision": 2, + "revision": 3, "priority": "P0", "surface": "cli", "personas": ["operator (local shell)"], "fixtures": { "app": "showcase", "requires": [ - "a free non-default port (lsof -nP -iTCP: -sTCP:LISTEN empty first — dogfood skill §0) and a scratch DB path under /tmp//" + "a free non-default port (lsof -nP -iTCP: -sTCP:LISTEN empty first — dogfood skill §0) and a scratch DB path under /tmp//", + "⚠️ an app directory NO other runner boots, for steps[4], steps[6] and steps[7]: each writes into the directory it runs in. steps[4] bumps a tracked source file's mtime, so every other runner booting that tree reads its artifact as stale — and an `os dev` already running there is watching `objectstack.config.ts, src` and rebuilds and restarts on the change; steps[6] creates the unified default DB under .objectstack/data/ in it; steps[7] plants a legacy dev.db. Use your own worktree, or a worktree copy of examples/app-showcase (the same prescription cli.build-own-contract carries), and discard it after" ] }, "steps": [ @@ -28,7 +29,7 @@ "with instance A still running, boot instance B on the same requested port and capture the '↪ server bound to port (requested )' line", "run once with NONE of --database/--fresh/env-db set and no config-declared default datasource, and record the printed Database line (must be the project-anchored UNIFIED default file:/.objectstack/data/objectstack.db); then run with `--fresh` and record the '🧪 Fresh OS_HOME' tempdir line (its DB is the SAME unified filename under the ephemeral home) and its deletion on exit", "legacy compat-read: in a scratch project whose .objectstack/data holds a legacy dev.db and NO objectstack.db, boot with nothing chosen and capture both the Database line (must resolve to the legacy file — never a fresh empty objectstack.db beside it) and the one loud notice line naming that file and how to converge on the unified name", - "capture `echo $?` after every terminated invocation" + "capture `echo $?` after every terminated invocation, against the expected codes: Ctrl-C/SIGINT ends a plain `os dev` with its serve child's exit code — 0 on a clean shutdown (the parent follows `code ?? 0`, packages/cli/src/utils/dev-restart.ts#ServeRestartCoordinator); a `--fresh` run's own SIGINT handler deletes the tempdir and exits 130 (SIGTERM 143); the no-config case of steps[3] exits 1" ], "acceptance": [ { @@ -40,7 +41,7 @@ { "clause": "--seed-admin provisions the FIXED well-known dev admin (admin@objectos.ai / admin123) loginable via the real auth endpoint, and the seed is idempotent — a later boot with a different --admin-password does NOT overwrite the existing account", "oracle": "api", - "verify": "login succeeds with the original credentials after the changed-password restart (flag contract: 'it acts only while no account holds the seed address and no local password login exists anywhere, never overwrites an existing account')", + "verify": "login succeeds with the original credentials after the changed-password restart (flag contract: 'it acts only while no account holds the seed address and no local password login exists anywhere, never overwrites an existing account'). ⚠️ The `🔑 Dev admin: …` banner row is NOT seeding evidence: plugin-auth re-arms it on every later dev boot while the account still holds the default password (auth-plugin.ts maybeReportExistingSeedAdmin), so it reprints on boots that seeded nothing — judge the seed by the auth responses only", "evidence": "the two auth responses" }, { @@ -97,7 +98,13 @@ ], "history": [ { "revision": 1, "date": "2026-08-07", "change": "new area item: the os dev boot contract read directly out of dev.ts (DB-selection matrix as variants, seed idempotency, port-shift reporting, #5148 staleness warning, #5594 fresh-isolation carve-out) plus the dogfood skill's boot shapes", "ref": "claude/platform-test-checklist-ocwugl" }, - { "revision": 2, "date": "2026-08-11", "change": "text refresh only, no property change: the DB-selection clause, step, variants and sources named the retired resolveDefaultDevDbUrl helper and the .objectstack/data/dev.db default, both superseded by #6469's unified /data/objectstack.db resolved through the shared resolveProjectDatabaseUrl (dev's seam is now resolveDevDatabase). Re-derived from dev.ts + resolve-project-database.ts: added the config-datasource and legacy compat-read tiers as variants, a step and negative for the legacy dev.db notice, and the pin test to sources. The load-bearing assertion is UNCHANGED in substance — nothing-chosen still defaults to a PERSISTENT project-anchored sqlite file, never :memory:", "ref": "#7650" } + { "revision": 2, "date": "2026-08-11", "change": "text refresh only, no property change: the DB-selection clause, step, variants and sources named the retired resolveDefaultDevDbUrl helper and the .objectstack/data/dev.db default, both superseded by #6469's unified /data/objectstack.db resolved through the shared resolveProjectDatabaseUrl (dev's seam is now resolveDevDatabase). Re-derived from dev.ts + resolve-project-database.ts: added the config-datasource and legacy compat-read tiers as variants, a step and negative for the legacy dev.db notice, and the pin test to sources. The load-bearing assertion is UNCHANGED in substance — nothing-chosen still defaults to a PERSISTENT project-anchored sqlite file, never :memory:", "ref": "#7650" }, + { + "revision": 3, + "date": "2026-10-01", + "change": "checklist-accuracy findings of QA run #21056: steps[4], [6] and [7] write into the app directory they run in and are unsafe on a tree parallel runners share — requires now prescribes an unshared app directory; steps[8] names the expected exit codes (SIGINT 0 for plain dev, 130 for --fresh); acceptance[1] says the Dev admin banner row reprints on later boots and is not seeding evidence", + "ref": "#21060" + } ] }, { From e28b93173b2a53661ac4323fe7d6559861368490 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 06:18:08 +0000 Subject: [PATCH 10/15] docs(qa): datasource-credential-refusal-matrix matches the doors a stock boot serves The wizard refuses an alias-spelled credential 400, so planting a legacy row needs a stopped-server metadata write; the admin door updates by PATCH (PUT answers 405) and is the one carrying hasSecret and redactedConfigKeys; the metadata read path is spelled out; and the two refusal entries the source list missed are added. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- .../areas/integration-system.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/qa/platform-checklist/areas/integration-system.json b/docs/qa/platform-checklist/areas/integration-system.json index 5f37d95b751..537b4a026c8 100644 --- a/docs/qa/platform-checklist/areas/integration-system.json +++ b/docs/qa/platform-checklist/areas/integration-system.json @@ -1519,7 +1519,7 @@ "title": "A datasource credential can never be authored inline NOR read back: every inline-credential door refuses at publish, and BOTH read doors redact — including legacy alias spellings already sitting in stored rows", "since": "v17", "status": "active", - "revision": 1, + "revision": 2, "priority": "P0", "surface": "mixed", "personas": ["seeded admin", "authenticated non-admin", "anonymous"], @@ -1530,7 +1530,7 @@ "the ability to write a stored sys_metadata datasource row directly, to plant a legacy alias spelling that no current parse would produce" ], "knownGaps": [ - "The legacy-alias clause tests a row shape the CURRENT parse refuses to create — a stored row from before the aliases moved to `guidance`. It is only reachable by writing the row directly (the wizard persists through metadata.register, whose validation is a structural name/label check, so that path can plant one). If the run cannot write such a row, that clause is blocked(fixture) and MUST be recorded — a redaction that has never been tested against the shape it exists for is an untested redaction.", + "The legacy-alias clause tests a row shape the CURRENT parse refuses to create — a stored row from before the aliases moved to `guidance`. It is only reachable by writing the row directly (⚠️ NOT through the runtime wizard: POST /api/v1/datasources refuses an alias-spelled config key 400 DATASOURCE_ADMIN_ERROR — the aliases moved to `guidance`, which refuses them, #8078 — measured on a stock showcase boot with `passwd` and by QA run #21056. The run planted its rows with a direct sys_metadata write while the server was STOPPED, then booted and read through both doors). If the run cannot write such a row, that clause is blocked(fixture) and MUST be recorded — a redaction that has never been tested against the shape it exists for is an untested redaction.", "`encryptionKey` (turso) is deliberately STILL WRITABLE while being redacted on read (#8081 scope item 4). Scoring it as a write refusal is a false fail; the correct expectation is write-accepted + read-redacted." ] }, @@ -1539,7 +1539,7 @@ "for EACH door, author a datasource carrying the credential in that position and attempt to publish it (os build, then the runtime admin door)", "author the same datasource with the credential bound through `external.credentialsRef` (or the connection form) and confirm it publishes AND connects", "read the published datasource back through the datasource-admin door (GET /api/v1/datasources)", - "read the SAME datasource back through the metadata door (GET /meta/) — a different code path with its own redaction hook", + "read the SAME datasource back through the metadata door (GET /api/v1/meta/datasource/) — a different code path with its own redaction hook", "plant a stored row carrying a legacy alias spelling (passwd / pwd / token / jwt / auth_token / authtoken) and read it back through both doors", "author a datasource for a driver the platform ships no contract for, carrying a canonically-spelled credential key, and read it back", "for turso specifically, write `encryptionKey`, then read it back through both doors", @@ -1567,7 +1567,7 @@ { "clause": "redaction is presence-preserving, not existence-erasing: a SET credential reads back as the mask (or hasSecret-style marker) while an UNSET one reads back null — the distinction a console renders 'configured vs not configured' from", "oracle": "api", - "verify": "read one datasource with the credential set and one without; the two must be distinguishable, and the set one must not read back null", + "verify": "read one datasource with the credential set and one without through the datasource-admin door, GET /api/v1/datasources/ — the door whose response carries `hasSecret` (the bound sys_secret handle) and `redactedConfigKeys` (what was withheld), the fields the console renders 'configured vs not configured' from; the two must be distinguishable, and the set one must not read back null", "evidence": "both config objects" }, { @@ -1585,7 +1585,7 @@ { "clause": "the echoed-mask write guard holds: writing the mask value back verbatim is treated as 'unchanged' and does NOT overwrite the stored credential", "oracle": "api", - "verify": "read a datasource, PUT the response back unmodified, then probe connectivity — the connection must still work. A form round-trip that destroys the stored credential is the ADR-0100 §B3 defect", + "verify": "read a datasource through the admin door, PATCH /api/v1/datasources/ with the response's config back unmodified (that door updates by PATCH only — GET, POST, PATCH, DELETE; a PUT answers 405), then probe connectivity — the connection must still work. A form round-trip that destroys the stored credential is the ADR-0100 §B3 defect", "evidence": "the round-trip + the post-round-trip connect probe" }, { @@ -1613,7 +1613,7 @@ "packages/spec/src/kernel/metadata-type-redaction.ts (the per-type redaction hook — the metadata read door)", "packages/services/service-datasource/src/datasource-config-redaction.ts + datasource-credential-migration.ts (the datasource-admin read door)", "packages/spec/src/migrations/entries/semantic/17.datasource-config-inline-credential-refused.ts · 17.datasource-config-placeholder-refused.ts · 17.datasource-config-url-userinfo-refused.ts · 17.connector-inline-authentication-publish-refused.ts", - "packages/spec/src/migrations/entries/semantic/18.datasource-config-url-query-credential-refused.ts · 18.datasource-config-mongo-options-credential-refused.ts · 18.datasource-credentialsref-mongo-url-no-user-refused.ts · 18.datasource-config-postgres-url-unparseable-refused.ts", + "packages/spec/src/migrations/entries/semantic/18.datasource-config-url-query-credential-refused.ts · 18.datasource-config-mongo-options-credential-refused.ts · 18.datasource-credentialsref-mongo-url-no-user-refused.ts · 18.datasource-credentialsref-mongo-composed-no-username-refused.ts (its COMPOSED-branch twin — no `url`, no `username`) · 18.datasource-config-options-nested-credential-spelling-refused.ts · 18.datasource-config-postgres-url-unparseable-refused.ts", "packages/spec/src/migrations/entries/retired-keys/17.data__MongoConfig__password.ts · 17.data__MysqlConfig__password.ts · 17.data__PostgresConfig__password.ts · 17.data__TursoConfig__authToken.ts", "#7990 / #8081 / #8126 / #8154 / #8300 (the centralization of the credential-key definition into spec)", "sibling coverage this item deliberately does NOT duplicate: integration-system.datasource-admin-lifecycle (admin-door lifecycle, 'secret never echoes'), platform-core.settings-hub-roundtrip (settings secrets), records-forms.encrypted-field-behavior (ADR-0100 field-level masking)" @@ -1624,6 +1624,12 @@ "date": "2026-08-17", "change": "new — the credential campaign is the single largest behavior cluster in the window (retired keys on four driver configs, eight+ semantic refusal doors, a centralized credential-key definition, and a second redaction door on the metadata read path) and no ratchet could see any of it: `datasource` was already a mapped kind, and none of the doors is an enum member. Existing coverage reached only the datasource-ADMIN door's 'secret never echoes'; the metadata read door (#8154), the legacy-alias class, the unknown-driver rule and the echoed-mask write guard were untested. P0 because every clause failure is a cleartext credential disclosure", "ref": "#9299" + }, + { + "revision": 2, + "date": "2026-10-01", + "change": "checklist-accuracy findings of QA run #21056. knownGaps said the wizard can plant a legacy alias row; it refuses one 400, so planting takes a stopped-server sys_metadata write. acceptance[6] said PUT the response back; the admin door updates by PATCH only. acceptance[3] names the admin door that carries hasSecret / redactedConfigKeys. steps[4] spells the metadata path GET /api/v1/meta/datasource/. source gains the mongo composed-branch twin and the nested-options spelling entry, two refusal doors it did not list. Note: the URL-branch entry's text still lists the composed branch as 'Deliberately NOT refused'; the twin refuses it since #9147, and that text is a spec registry entry outside this ledger", + "ref": "#21060" } ] }, From a9abef2aa4c74b763efc4e82881716b022134a7c Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 06:23:04 +0000 Subject: [PATCH 11/15] docs(qa): console-login and builtin-apps-nav-render match what a stock boot renders console-login: the expiry clause verifies after the server-side sign-out its own step prescribes, and the landing page is the header plus launcher without a sidebar by design. builtin-apps-nav-render: Setup 45 and Account 8 destinations re-measured on a stock dev boot, the member persona is the seeded plain persona (a fresh sign-up is refused), and the marketplace catalog's cloud egress dependency is a known gap. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- .../areas/platform-core.json | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/docs/qa/platform-checklist/areas/platform-core.json b/docs/qa/platform-checklist/areas/platform-core.json index a6115f83999..807b86e7e86 100644 --- a/docs/qa/platform-checklist/areas/platform-core.json +++ b/docs/qa/platform-checklist/areas/platform-core.json @@ -176,7 +176,7 @@ "title": "Seeded admin signs in through the console; the session survives reload and re-authenticates cleanly after expiry", "since": "v15", "status": "active", - "revision": 3, + "revision": 4, "priority": "P0", "surface": "browser", "personas": ["seeded admin (admin@objectos.ai / admin123)"], @@ -192,9 +192,9 @@ ], "acceptance": [ { - "clause": "login succeeds and lands in the console shell (nav + header rendered, not the login form)", + "clause": "login succeeds and lands in the console shell, not the login form — on stock showcase that is /_console/home, whose layout is the header plus the app launcher and deliberately NO sidebar nav (objectui app-shell HomeLayout)", "oracle": "screenshot", - "verify": "post-login screenshot shows the app shell", + "verify": "post-login screenshot shows the header and the launcher; the absent sidebar on /home is the design, never a failure of this clause", "evidence": "screenshot" }, { @@ -206,7 +206,7 @@ { "clause": "an expired/cleared session is answered 401 by the SERVER on authed API calls — the deny side of the auth gate, proven on the wire", "oracle": "network", - "verify": "after clearing cookies, the authed API call in the trace returns 401 (auth is the better-auth passthrough at /api/v1/auth/** — packages/runtime/src/route-ledger.ts; plugin-auth/src/auth-route-ledger.ts)", + "verify": "after the SERVER-side sign-out of steps[4] (POST /api/v1/auth/sign-out — never a clearCookies() gesture, which expires nothing here), the authed API call in the trace returns 401 (auth is the better-auth passthrough at /api/v1/auth/** — packages/runtime/src/route-ledger.ts; plugin-auth/src/auth-route-ledger.ts)", "evidence": "the 401 trace" }, { @@ -235,7 +235,8 @@ "history": [ { "revision": 1, "date": "2026-08-07", "change": "initial", "ref": "#3358" }, { "revision": 2, "date": "2026-08-07", "change": "expanded to deep-test contract: concrete steps, multi-clause acceptance, negatives, variants", "ref": "claude/platform-test-checklist-ocwugl" }, - { "revision": 3, "date": "2026-08-18", "change": "corrected step 5's expiry gesture and the clause-2 ?id= example. The console authenticates by bearer token in localStorage (auth-session-token), so the documented clearCookies() gesture expires nothing and leaves a fully authed shell rendering — the exact shape of the c3 failure mode, which nearly produced a false P0 (#9453 CF-8). True expiry is POST /api/v1/auth/sign-out. Also corrected ?id=com.example.showcase to the app name showcase_app (#9334)", "ref": "#9386" } + { "revision": 3, "date": "2026-08-18", "change": "corrected step 5's expiry gesture and the clause-2 ?id= example. The console authenticates by bearer token in localStorage (auth-session-token), so the documented clearCookies() gesture expires nothing and leaves a fully authed shell rendering — the exact shape of the c3 failure mode, which nearly produced a false P0 (#9453 CF-8). True expiry is POST /api/v1/auth/sign-out. Also corrected ?id=com.example.showcase to the app name showcase_app (#9334)", "ref": "#9386" }, + { "revision": 4, "date": "2026-10-01", "change": "checklist-accuracy findings of QA run #21056: acceptance[2].verify still said 'after clearing cookies', contradicting the rev-3 sign-out in steps[4]; acceptance[0] asked for 'nav + header', but the post-login landing /_console/home renders the header and the launcher with no sidebar by design", "ref": "#21060" } ] }, { @@ -496,22 +497,23 @@ "title": "The built-in apps a stock boot REGISTERS (Setup / Account) render every merged-nav destination; app-level and entry-level gates are enforced, not errored — and Studio's deliberate absence is asserted, never hunted", "since": "v15", "status": "active", - "revision": 3, + "revision": 4, "priority": "P0", "surface": "browser", "personas": [ "seeded admin (admin@objectos.ai / admin123)", - "a plain member (fresh runtime sign-up — lands in member_default, holds neither setup.access nor studio.access)" + "a plain member — the SEEDED persona Mei (phone.demo@example.com / showcase123; examples/app-showcase/src/security/demo-personas.ts PHONE_DEMO_USER), who holds no position, so only the member_default baseline and neither setup.access nor studio.access. Not a fresh sign-up: the stock invite_only posture refuses an uninvited one 403 SELF_REGISTRATION_CLOSED" ], "fixtures": { "app": "showcase", "requires": [ "the platform apps ship with @objectstack/platform-objects and are packaged one-app-per-package (ADR-0048) as com.objectstack.setup / com.objectstack.studio / com.objectstack.account — but only TWO of the three are loaded on a stock boot. The ADR-0048 registration loop registers exactly @objectstack/setup and @objectstack/account (packages/plugins/plugin-dev/src/dev-plugin.ts for os dev; packages/cli/src/commands/serve.ts for os serve), so a stock GET /api/v1/meta/app answers showcase_app + setup + account. The App documents are NAMED setup / account (setup.app.ts, account.app.ts) and every ?id= below matches the NAME, never the package id — present on any stock boot, no showcase-specific fixture", - "a second, non-admin persona: sign up a fresh user in-run to drive the app-level and entry-level permission gates (do not reuse the admin — wrong-persona masks the guard)" + "a second, non-admin persona to drive the app-level and entry-level permission gates: the seeded plain persona Mei (phone.demo@example.com / showcase123), whom seed-approval-demo.ts provisions with a loginable account on every dev boot (do not reuse the admin — wrong-persona masks the guard)" ], "knownGaps": [ "the SSO Providers entry (nav_sso_providers → sys_sso_provider) is contributed ONLY when the external-IdP RP is wired (OS_SSO_ENABLED self-host / cloud planAllowsSso — plugin-auth auth-plugin.ts isSsoWired()). On a stock open-framework boot it is ABSENT by design (not gated-and-erroring); assert its absence, never treat it as a missing surface", - "Studio is NOT registered on a stock boot, by product decision — this is a carve-out to ASSERT, not a fixture to provision. STUDIO_APP is defined (packages/platform-objects/src/apps/studio.app.ts) and packaged (packages/apps/studio, com.objectstack.studio), but both boot paths deliberately skip it with the identical note: '@objectstack/studio is intentionally NOT default-loaded — the console ships a dedicated Studio surface at /_console/studio//, so Studio no longer needs to exist as a navigable app tile' (plugin-dev/src/dev-plugin.ts and cli/src/commands/serve.ts, the ADR-0048 app-package loop in each — both register only setup and account). So ?id=studio answering 200 {\\\"items\\\":[]} is the CORRECT observation on every stock boot, not a showcase-specific gap and not a missing built-in. ⛔ Do not install the package to 'restore' it: that changes what the boot ships and is a maintainer decision, not a run's. The prior wave already walked everything reachable here — Setup 43/43 and Account 7/7 destinations, 50/50 ok, zero pageerror (#9453). Studio's own surfaces are covered by area studio-authoring against /_console/studio, not through a nav tile." + "Studio is NOT registered on a stock boot, by product decision — this is a carve-out to ASSERT, not a fixture to provision. STUDIO_APP is defined (packages/platform-objects/src/apps/studio.app.ts) and packaged (packages/apps/studio, com.objectstack.studio), but both boot paths deliberately skip it with the identical note: '@objectstack/studio is intentionally NOT default-loaded — the console ships a dedicated Studio surface at /_console/studio//, so Studio no longer needs to exist as a navigable app tile' (plugin-dev/src/dev-plugin.ts and cli/src/commands/serve.ts, the ADR-0048 app-package loop in each — both register only setup and account). So ?id=studio answering 200 {\\\"items\\\":[]} is the CORRECT observation on every stock boot, not a showcase-specific gap and not a missing built-in. ⛔ Do not install the package to 'restore' it: that changes what the boot ships and is a maintainer decision, not a run's. The prior wave already walked everything reachable here — Setup 43/43 and Account 7/7 destinations, 50/50 ok, zero pageerror (#9453). Studio's own surfaces are covered by area studio-authoring against /_console/studio, not through a nav tile.", + "Browse Marketplace's catalog comes from the cloud registry (default https://cloud.objectos.ai, DEFAULT_CLOUD_URL; cloud ADR-0009 marketplace plugins). Where the environment denies that egress the surface renders the named state 'Failed to load marketplace · Forbidden' (QA run #21056, sandbox egress denied): score the catalog content blocked(environment) and the named error as the surface rendering honestly — never as a render failure of this item" ] }, "steps": [ @@ -520,7 +522,7 @@ "as admin, hand-walk each destination in each app: navigate, wait for render, SCREENSHOT FIRST, then read the DOM — assert no pageerror, no 'failed to load', no blank
, no 'no actions configured' placeholder", "Setup detail: confirm each settings URL entry (nav_settings_* → /apps/setup/system/settings/) opens the settings namespace form (localization/company/branding/auth/mail/storage/ai/knowledge/feature_flags), and Users / Organization / Business Units / Teams / Sessions / OAuth Applications / Identity Links / User Preferences render", "Studio detail is NOT walked from here — the app is not registered on a stock boot (knownGap), so there is no merged nav to render. Its metadata:resource lists and component surfaces (App Builder, All Metadata Types, Packages, API Console, Flow Runs, Public Forms) are reached through the console surface at /_console/studio// and are covered by area studio-authoring. What THIS item asserts about Studio is the absence itself, per clause 6", - "Account detail: confirm Profile (account:profile_card), Notifications (sys_inbox_message/mine), Approvals (sys_approval_request/my_pending), Linked Accounts (sys_account), Active Sessions (sys_session/mine), API Keys (sys_api_key/mine), OAuth Applications (sys_oauth_application/mine) each render", + "Account detail: confirm Profile (account:profile_card), Notifications (sys_inbox_message/mine), Approvals (sys_approval_request/my_pending), Linked Accounts (sys_account), Active Sessions (sys_session/mine), API Keys (sys_api_key/mine), OAuth Applications (sys_oauth_application/mine) and Connect an Agent (nav_connect_agent) each render — 8 Account destinations and 45 Setup destinations for the admin, re-measured 2026-10-01 (GET /api/v1/meta/app leaves; #9453 recorded 43 and 7). Recount from the payload each run", "confirm the gated entries resolve to ABSENT-not-erroring for the admin: nav_organizations (requiresService org-scoping) is absent in single-org mode; nav_jwks Signing Keys is ABSENT for EVERY persona, admin included — the entry was removed in #7544 because sys_jwks declares apiEnabled:false, so its list answers OBJECT_API_DISABLED (404) for all callers and no permission gate could prune it; SSO Providers is absent unless OS_SSO_ENABLED (knownGap)", "sign in as the plain member: attempt to open Setup (app name setup) — capture the app-level refusal (App.requiredPermissions setup.access); open Account (declares no requiredPermissions) — capture it opening. Studio is not part of this comparison: it is absent for EVERY persona including the admin, so a member failing to reach it proves nothing about the gate (the same reasoning #7544 applied to nav_jwks)", "as the member, GET /api/v1/meta/app for a reachable app and confirm every manage_platform_settings-gated entry (API Keys, the manage_platform_settings settings URLs) is ABSENT from the member's payload — the server prunes, the client does not merely hide. JWKS is deliberately NOT in this list any more: it is absent for admins too, so finding it absent for a member proves nothing about the gate (#7544)", @@ -554,7 +556,7 @@ { "clause": "the entry-level gate for Setup's permission-gated entries (nav_api_keys, the manage_platform_settings settings URLs) is enforced ONE LEVEL UP as a whole-app refusal: the member cannot obtain the setup app at all, so those entries are unreachable rather than pruned-from-a-served-nav. Assert the app-level absence; do NOT assert an admin-vs-member entry diff on stock fixtures, because there is no member-side Setup nav to diff", "oracle": "api", - "verify": "as the member, GET /api/v1/meta/app?id=setup → 200 {\"items\":[]}: no App document is served, so every entry inside it (including nav_api_keys and the manage_platform_settings settings URLs) is unreachable. ⚠️ Do NOT substitute the account app for this: account is the one app a member CAN obtain and it carries no permission-gated entries at all — every one of its entries is gated by requiresObject/requiresService (nav_account_api_keys → sys_api_key, nav_account_sessions → sys_session, nav_account_linked → sys_account, nav_account_approvals → requiresService approvals, nav_account_memberships → requiresService org-scoping; account.app.ts), which are PRESENCE gates that resolve identically for both personas. Admin and member account navs measured identical (7 vs 7) — that is the contract behaving as authored and it proves nothing about permission gating, so scoring the clause off it is a false pass. The prior wave recorded the same shape as a named limitation on its own c4 (#9453)", + "verify": "as the member, GET /api/v1/meta/app?id=setup → 200 {\"items\":[]}: no App document is served, so every entry inside it (including nav_api_keys and the manage_platform_settings settings URLs) is unreachable. ⚠️ Do NOT substitute the account app for this: account is the one app a member CAN obtain and it carries no permission-gated entries at all — every one of its entries is gated by requiresObject/requiresService (nav_account_api_keys → sys_api_key, nav_account_sessions → sys_session, nav_account_linked → sys_account, nav_account_approvals → requiresService approvals, nav_account_memberships → requiresService org-scoping; account.app.ts), which are PRESENCE gates that resolve identically for both personas. Admin and member account navs measured identical (7 vs 7 in #9453; 8 vs 8 re-measured 2026-10-01, nav_connect_agent having joined) — that is the contract behaving as authored and it proves nothing about permission gating, so scoring the clause off it is a false pass. The prior wave recorded the same shape as a named limitation on its own c4 (#9453)", "evidence": "the member's empty ?id=setup payload, plus the admin-vs-member account nav comparison shown as the CONTROL that carries no gated entries (not as the gate's proof)" }, { @@ -592,6 +594,12 @@ "date": "2026-08-21", "change": "two corrections from the 17.1.0 sweep, both about premises that fail one level up. (1) B2/Studio: the item named THREE built-in apps, so on stock fixtures it could never exceed partial — c0/c1/c2 were blocked(fixture) for one reason. Verified at source rather than assumed: Studio's absence is a deliberate product decision at the BOOT layer, not a showcase choice — both os dev and os serve carry the identical note that @objectstack/studio is intentionally not default-loaded because the console ships a dedicated Studio surface at /_console/studio//, and each registers only setup and account. Title, fixtures, steps 1/4/7 and clauses 0/1/2 now describe the two apps a stock boot registers; Studio's absence became an assertion with the carve-out recorded in knownGaps, and its surfaces stay covered by area studio-authoring. (2) A4/clause 4: the clause asked for permission-gated ENTRIES to be absent from the member's merged nav, but the member cannot obtain the setup app at all (GET /meta/app?id=setup → 200 items:[]), so no member-side Setup nav exists to diff — the gate is a whole-app refusal, which clause 3 already proves. Reworded for that case, with the account app named explicitly as a non-substitute: every account entry is gated by requiresObject/requiresService, so admin and member navs are identical (7 vs 7) by construction and scoring the clause off that comparison is a false pass (#10236 A4+B2, measured #10257, same shape as #9453's c4)", "ref": "#10236" + }, + { + "revision": 4, + "date": "2026-10-01", + "change": "checklist-accuracy findings of QA run #21056, re-measured on a stock dev boot: Setup serves 45 destinations and Account 8 for the admin, Account 8 for the member too (acceptance[4]'s control reads 8 vs 8; steps[5] names the eighth, nav_connect_agent). The member persona is the seeded Mei, not a fresh sign-up, which invite_only refuses. knownGaps records the marketplace catalog's cloud egress dependency", + "ref": "#21060" } ] }, From bf768440bb304a21b07445b45280a74e5d75d276 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 06:24:47 +0000 Subject: [PATCH 12/15] docs(qa): crud-roundtrip records its unobservable readonly half and the restricted delete No showcase object gives the clone clause a populated readonly column, so that half is recorded unobservable with the system-side way to make it observable. An own-row invoice pointing at the run's account turns the later delete into a 409, so the recipe and the delete step say to point it at a seeded account. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- docs/qa/platform-checklist/areas/records-forms.json | 12 +++++++++--- docs/qa/platform-checklist/areas/search.json | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/qa/platform-checklist/areas/records-forms.json b/docs/qa/platform-checklist/areas/records-forms.json index 4ca0d23a56e..83c712af9bf 100644 --- a/docs/qa/platform-checklist/areas/records-forms.json +++ b/docs/qa/platform-checklist/areas/records-forms.json @@ -66,7 +66,7 @@ "title": "Create → read → update → delete a record through the console UI", "since": "v15", "status": "active", - "revision": 7, + "revision": 8, "priority": "P0", "surface": "browser", "personas": [ @@ -94,7 +94,7 @@ "open the record's History tab (screenshot first, then read entries)", "clone the record: POST /api/v1/data/showcase_account//clone (optionally with {overrides:{name:'os-qa--clone'}}); capture the 201 result (new id ≠ source, sourceId, record); re-read the clone via GET /api/v1/data/showcase_account/", "RLS probe on clone: as a persona WITHOUT read on the source row (a permission-zoo persona, or a non-owner under owner-RLS), POST the same clone route and capture the refusal — expect 404 RECORD_NOT_FOUND, never a silent duplicate (record blocked(fixture) if no non-reading persona is bound on this boot)", - "delete via the row/detail action; confirm the dialog; re-read via the filtered GET", + "delete via the row/detail action; confirm the dialog; re-read via the filtered GET. ⚠️ If clause 7's recipe gave the member an own-row invoice pointing at THIS account, the delete answers 409 DELETE_RESTRICTED: the invoice's account lookup is required, and the engine turns a required set_null into restrict (packages/objectql/src/engine.ts). Point that invoice at a seeded account instead (the recipe's step 5 says so)", "reload the list view and confirm final state" ], "acceptance": [ @@ -135,7 +135,7 @@ "evidence": "re-read JSON + search response" }, { - "clause": "clone (POST /data/:object/:id/clone, gated by enable.clone default-on) returns 201 with a NEW id and the source's field VALUES copied, but engine-owned columns (id, audit, autonumber, formula, summary) and readonly columns (e.g. approval_status) RE-DERIVED not carried, and the clone is owned by the CLONER — not the source's owner", + "clause": "clone (POST /data/:object/:id/clone, gated by enable.clone default-on) returns 201 with a NEW id and the source's field VALUES copied, but engine-owned columns (id, audit, autonumber, formula, summary) and readonly columns RE-DERIVED not carried, and the clone is owned by the CLONER — not the source's owner. ⚠️ The readonly half is UNOBSERVABLE on the stock seed: showcase_account declares no readonly column, no showcase object has an approval_status, and the showcase's one readonly field (showcase_contact.lead_score) is null on every seeded row, so carried and re-derived read identically. Record that half blocked(fixture), or first give a contact a lead_score system-side (an objectql write in {isSystem: true} context sets a readonly field, as access-security.write-path-guards negative[1] does) and clone that contact", "oracle": "api", "verify": "the 201 result carries {id (new ≠ sourceId), sourceId, record}; field-by-field diff shows business values copied and system/readonly columns re-derived (#3043 CLONE_STRIP_FIELDS + the engine's create-side static-readonly strip, #14147); owner_id resolves to the signed-in cloner (the clone is a create in the caller's context — packages/metadata-protocol/src/protocol.ts cloneData)", "evidence": "clone response + source-vs-clone field diff + owner_id read" @@ -203,6 +203,12 @@ "date": "2026-08-24", "change": "clause 7's cross-area recipe pointer became a real reference. The persona it needs — qa-contributor-bound-member — is owned by areas/search.json, and until now no spelling existed that the validator accepted, so the pointer lived in knownGaps prose and clause 7's verify text: readable by a runner, invisible to check:platform-checklist, and free to rot if the recipe were ever renamed or moved. The maintainer ruled option A on 2026-08-22 (#10593 gap 2, area-qualified references), so this item now carries fixtures.provisioning.use = `search:qa-contributor-bound-member` and the gate resolves it. What a RUN does is unchanged in every particular: the same recipe, replayed from the same file, unblocking the same single clause on the same object and row — clause 7 was already instructed to drive showcase_invoice with this persona, and no step, clause, oracle, persona or acceptance text changed. The revision is bumped because the item's fixtures did, and because a run record pinning revision 6 was scored against an item whose recipe reference the tooling could not check", "ref": "#10593" + }, + { + "revision": 8, + "date": "2026-10-01", + "change": "checklist-accuracy findings of QA run #21056: acceptance[6]'s readonly-column half is unobservable on the stock seed (no readonly column on showcase_account, no approval_status anywhere, lead_score null on every seeded contact) — recorded with the system-side way to make it observable; steps[8] warns that an own-row invoice pointing at the run's account turns the delete into 409 DELETE_RESTRICTED", + "ref": "#21060" } ] }, diff --git a/docs/qa/platform-checklist/areas/search.json b/docs/qa/platform-checklist/areas/search.json index e98ad34de4f..ec49f9dd00f 100644 --- a/docs/qa/platform-checklist/areas/search.json +++ b/docs/qa/platform-checklist/areas/search.json @@ -45,7 +45,7 @@ { "step": 5, "call": "give the member a row of their OWN: as the member, POST /api/v1/data/showcase_invoice (contributors hold allowCreate)", - "expect": "2xx, and that row IS visible to them on a re-read — turning the subset from empty into a proper non-empty one. This is what makes the restriction provably SUBTRACTIVE rather than a blackout; without it, zero-hits and no-access are indistinguishable.", + "expect": "2xx, and that row IS visible to them on a re-read — turning the subset from empty into a proper non-empty one. This is what makes the restriction provably SUBTRACTIVE rather than a blackout; without it, zero-hits and no-access are indistinguishable. Point the invoice's required `account` at a SEEDED account, never at one a consuming item later deletes: a required lookup turns set_null into restrict, so that delete answers 409 DELETE_RESTRICTED (records-forms.crud-roundtrip met it in QA run #21056).", "source": "ContributorPermissionSet.objects.showcase_invoice.allowCreate === true (permission-sets.ts); the seeded owner emails hold no credential, so borrowing a seeded owner is not an option — this is why the own-row is CREATED" } ], From 4f98e8f97fe2f387e0d60cdca0be8168b22cddc5 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 06:26:21 +0000 Subject: [PATCH 13/15] docs(qa): approvals account-app-entry names the zh-CN option, both tab vocabularies and a readable row The locale clause names the zh-CN option the showcase offers, the tab clause lists both locales' labels, the record-link clause needs a row the persona can read, and the fixture asks for a sign-off launched after the persona holds its positions. The seeded personas are loginable; the reason to provision one is their positions. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- docs/qa/platform-checklist/areas/approvals.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/qa/platform-checklist/areas/approvals.json b/docs/qa/platform-checklist/areas/approvals.json index 11c32cef709..e3a1c775537 100644 --- a/docs/qa/platform-checklist/areas/approvals.json +++ b/docs/qa/platform-checklist/areas/approvals.json @@ -890,7 +890,7 @@ "title": "A non-admin reaches the full Approvals Inbox from the account app's Approvals entry", "since": "v17", "status": "active", - "revision": 1, + "revision": 2, "priority": "P0", "surface": "browser", "personas": ["a NON-ADMIN business user who is a pending approver and has no Setup access"], @@ -898,8 +898,8 @@ "app": "showcase", "requires": [ "a bundled console: packages/console/dist is absent in a fresh checkout — build it with `pnpm objectui:build` and confirm dist/.objectui-sha equals .objectui-sha before trusting anything in the browser (`pnpm check:console-sha` exits 0 when there is NO dist at all, so a green check does not prove a console is present)", - "a non-admin sign-in account holding only business positions (showcase: contributor + finance) — the seeded personas (Ada Auditor, Mei Phone) are sys_user rows with no better-auth account, so provision one at runtime", - "at least one pending request routed to that user (showcase: PATCH a draft invoice to status=sent + issued_on to launch showcase_invoice_signoff, whose finance/legal positions the persona holds)" + "a non-admin sign-in account holding only business positions (showcase: contributor + finance) — the seeded personas (Ada Auditor, Mei Phone) ARE loginable since #9308 (showcase123, examples/app-showcase/src/security/demo-personas.ts) but hold the wrong positions (Mei none, Ada auditor only), so provision one at runtime and invite each one first — the stock showcase declares no auth.audience, so the invite_only default answers an uninvited POST /api/v1/auth/sign-up/email 403 SELF_REGISTRATION_CLOSED; an admin POST /api/v1/auth/organization/invite-member for the address admits the sign-up (or admin POST /api/v1/auth/admin/create-user, which answers mustChangePassword:true)", + "at least one pending request routed to that user (showcase: PATCH a draft invoice to status=sent + issued_on to launch showcase_invoice_signoff, whose finance/legal positions the persona holds). ⚠️ Launch a NEW one after the persona holds its positions: the sign-off requests seed-approval-demo.ts launches at boot were routed before the runtime persona held finance, so they never list it as a pending approver. Make that invoice one the persona OWNS — acceptance[5] needs a row whose record the persona can read" ] }, "steps": [ @@ -920,7 +920,7 @@ "evidence": "dist/.objectui-sha + the grep hit with surrounding bundle context" }, { - "clause": "the entry renders the FULL inbox — tabs (待我审批 / 我发起的 / 全部), the request list and the drawer — not a component-not-found empty state", + "clause": "the entry renders the FULL inbox — tabs (en: My Pending / Submitted by me / All; zh-CN: 待我审批 / 我发起的 / 全部), the request list and the drawer — not a component-not-found empty state", "oracle": "screenshot", "verify": "screenshot the surface reached by clicking the nav entry; the tab strip and at least one request row must be visible. An empty state naming a missing component is a FAIL and means the side-effect import did not survive the bundle", "evidence": "screenshot + the landed URL" @@ -946,13 +946,13 @@ { "clause": "a record link in an inbox row keeps the CURRENT app segment — it never hard-codes setup or a foreign app", "oracle": "dom", - "verify": "after a screenshot confirms the list rendered, read the record link's href: it must be /apps///record/. Landing on 'Record not found' is NOT automatically a routing failure — first check whether the approver can read that record at all (GET /api/v1/data// as this persona); record-level invisibility is a separate finding, tracked at #7345", + "verify": "after a screenshot confirms the list rendered, read the record link's href: it must be /apps///record/. ⚠️ Drive it on a row whose record this persona can READ — e.g. the persona-owned invoice from fixtures.requires: the inbox renders NO link at all for a record the viewer cannot open (href null, objectui ApprovalsInboxPage RecordCell), so an unreadable row cannot score this clause either way. Landing on 'Record not found' is NOT automatically a routing failure — first check whether the approver can read that record at all (GET /api/v1/data// as this persona); record-level invisibility is a separate finding, tracked at #7345", "evidence": "the href + the persona's direct record read" }, { "clause": "zh-CN wording is consistent: the nav entry reads 待我审批 and the inbox's tab / status vocabulary reads 待我审批 / 待审批", "oracle": "screenshot", - "verify": "set the console locale to zh and screenshot the nav entry and the inbox; nav label 待我审批, tab 待我审批, status badge 待审批", + "verify": "set the console language to 中文(中国) — code zh-CN, the language the showcase ships; the picker offers no bare zh entry here — and screenshot the nav entry and the inbox; nav label 待我审批, tab 待我审批, status badge 待审批", "evidence": "zh screenshots of nav + inbox" } ], @@ -968,7 +968,8 @@ "objectui apps/console/src/main.tsx + the approvals:inbox registration (objectui#4071)" ], "history": [ - { "revision": 1, "date": "2026-08-10", "change": "initial — the account-app entry had no checklist coverage; authored from the #7331 browser run that first drove it end to end against a dist built at pin 8aad9fd50b16", "ref": "#7331" } + { "revision": 1, "date": "2026-08-10", "change": "initial — the account-app entry had no checklist coverage; authored from the #7331 browser run that first drove it end to end against a dist built at pin 8aad9fd50b16", "ref": "#7331" }, + { "revision": 2, "date": "2026-10-01", "change": "checklist-accuracy findings of QA run #21056: acceptance[6] names the zh-CN option (中文(中国)) — no bare zh exists; acceptance[1] gives the tab labels in both locales; acceptance[5] needs a row the persona can read, since unreadable rows render no link; fixtures.requires asks for a request launched after the persona holds finance (the boot-seeded ones were routed before). Also corrected while grounding: the seeded personas are loginable since #9308 — they hold the wrong positions, which is the real reason to provision one, invite-first under invite_only", "ref": "#21060" } ] }, { From 385f131f5eb31a0d81b5781d4a1d2876a64440be Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 06:27:56 +0000 Subject: [PATCH 14/15] docs(qa): first-run-loop follows the Studio the pinned console ships The object is named with the package namespace prefix, the New object dialog carries a pre-selected sharing-model choice, a new app's nav is scaffolded by default, the read-only negative probe is a forged request because the console hides authoring there, and the cited objectui pin targets testids absent at the pin. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- .../areas/studio-authoring.json | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/docs/qa/platform-checklist/areas/studio-authoring.json b/docs/qa/platform-checklist/areas/studio-authoring.json index 56639258db3..2d9bd132edc 100644 --- a/docs/qa/platform-checklist/areas/studio-authoring.json +++ b/docs/qa/platform-checklist/areas/studio-authoring.json @@ -9,7 +9,7 @@ "title": "The first-run authoring loop closes: package → object → record → app → publish → end-user, zero code, zero restarts", "since": "v16", "status": "active", - "revision": 2, + "revision": 3, "priority": "P0", "surface": "mixed", "personas": ["admin (seeded admin@objectos.ai)", "end user (same account driving the published app)"], @@ -20,38 +20,38 @@ ], "knownGaps": [ "publish fires in ONE click with no confirmation and the Changes panel lists items without field-level diff (audit finding 3, ADR-0016 §3.6 step 4 open) — do NOT assert a review/confirm step exists; its absence is a logged UX gap, not a run failure", - "a new app scaffolds ZERO nav items (audit finding 6) — the manual Interfaces → Add nav item → bind-to-object wiring in the steps IS the current contract; do not expect the just-built object to be pre-wired", + "SUPERSEDED (QA run #21056): a new app no longer scaffolds zero nav items — the Create-app dialog seeds the app's navigation from the package's objects behind a checkbox that defaults ON (objectui StudioDesignSurface appAddObjects, objectui#2262). With it on, step 5's nav item already exists and the Interfaces step confirms it rather than builds it; only with it unticked does the manual wiring remain the contract. Do not expect zero items", "mixed-language Studio chrome (audit finding 4) is asserted by i18n.studio-follows-app-locale — locale consistency is that item's business, not this one's" ] }, "steps": [ "boot the showcase example (objectstack dev --ui --seed-admin -p -d file:/tmp//data.db), sign in as admin@objectos.ai/admin123, and note the boot timestamp in the server log (the zero-restart clause reads it later)", - "Home → 'Build an app' → Studio landing → create a NEW writable package (维修中心 / com.example.repairs) via the new-package wizard", - "Data pillar → new object 'Repair Ticket' (the identifier auto-suggests repair_ticket from the display name) → add a picklist field Status with 3 values → Save draft", + "Home → 'Build an app' → Studio landing → create a NEW writable package (维修中心 / com.example.repairs, namespace repairs) via the new-package wizard", + "Data pillar → new object 'Repair Ticket' (the identifier auto-suggests repair_ticket from the display name, and the dialog PREFIXES it with the package namespace, so the object is named repairs_repair_ticket — the name every later step and clause uses (framework#2694, objectui StudioDesignSurface prefixObjectName). The dialog also carries an OWD (sharing model) choice, pre-selected to the platform's recommended baseline: confirm or change it before Create) → add a picklist field Status with 3 values → Save draft", "open the Changes panel and Publish ('Published all drafts in this package (one atomic release)')", "create a record in the runtime-faithful Records grid with a Status value chosen", - "Create app 'Repair Center' (identifier auto-suggested) → Interfaces pillar → add a nav item bound to repair_ticket → Publish", + "Create app 'Repair Center' (identifier auto-suggested) → Interfaces pillar → add a nav item bound to repairs_repair_ticket → Publish", "return Home: the launcher must show Repair Center; open it and drive the end-user list", - "verify server truth after each publish: GET /api/v1/meta/object/repair_ticket, GET /api/v1/data/repair_ticket, GET /api/v1/meta/app?id= — ?id= matches the App document name, NOT the package id com.example.repairs; fetch /api/v1/meta/app with no query first to read the name the wizard actually minted", - "negative probe: on the READ-ONLY com.example.showcase package, attempt 'New object' (or 'Add field') and drive the save through to the server; capture the server response" + "verify server truth after each publish: GET /api/v1/meta/object/repairs_repair_ticket, GET /api/v1/data/repairs_repair_ticket, GET /api/v1/meta/app?id= — ?id= matches the App document name, NOT the package id com.example.repairs; fetch /api/v1/meta/app with no query first to read the name the wizard actually minted", + "negative probe: on the READ-ONLY com.example.showcase package there is no gesture to drive — the console HIDES New object and Add field there (objectui StudioDesignSurface gates them on !readOnly) — so the probe is a FORGED request: send the authoring write the gesture would have made straight to the metadata write door against that package, and capture the server response (QA run #21056 read 422 WRITABLE_PACKAGE_REQUIRED and 403 ITEM_LOCKED)" ], "acceptance": [ { "clause": "package create round-trips and the package switcher lists the new writable package without a page reload", "oracle": "network", - "verify": "the create POST succeeds and the switcher shows the package in the same session (pinned by objectui e2e/live/studio-object-designer.spec.ts test F1)", + "verify": "the create POST succeeds and the switcher shows the package in the same session (objectui e2e/live/studio-object-designer.spec.ts test F1 is meant to pin it, but ⚠️ at the pinned objectui (.objectui-sha) it targets testids package-id-input / package-name-input that no source file declares, so it cannot be cited as a pass here; drive the clause by hand — and note the new-package wizard's own state, objectui#11327)", "evidence": "the create request/response + switcher screenshot" }, { - "clause": "the published object is server-real: the meta read returns repair_ticket with the authored picklist field carrying exactly the 3 authored options — never ticked off the designer repaint", + "clause": "the published object is server-real: the meta read returns repairs_repair_ticket with the authored picklist field carrying exactly the 3 authored options — never ticked off the designer repaint", "oracle": "api", - "verify": "GET /api/v1/meta/object/repair_ticket body contains the Status field with its 3 options", + "verify": "GET /api/v1/meta/object/repairs_repair_ticket body contains the Status field with its 3 options", "evidence": "the meta read" }, { "clause": "the record entered in the Studio Records grid persists to the data plane", "oracle": "api", - "verify": "GET /api/v1/data/repair_ticket lists the record with the chosen Status value stored under the field's API name", + "verify": "GET /api/v1/data/repairs_repair_ticket lists the record with the chosen Status value stored under the field's API name", "evidence": "the data read" }, { @@ -86,7 +86,8 @@ ], "history": [ { "revision": 1, "date": "2026-08-07", "change": "new area item: the full first-run authoring loop, grounded step-by-step in the 2026-07 Studio dogfood audit ('The loop closes'), with the audit's open UX findings carried as knownGaps instead of asserted", "ref": "claude/platform-test-checklist-ocwugl" }, - { "revision": 2, "date": "2026-08-18", "change": "corrected the ?id= spelling in step 8 and clause 4, which said in an item whose step 2 creates the package com.example.repairs — inviting the package-id spelling that answers with an empty items array (#9334's class). Found by grounding rather than from a report: this item was not on the #9334 list. ⚠️ The card's other instruction for this item — drop any inherited 'Studio is not installed' assumption (#9453 CF-4) — needed NO edit: the item never carried one. It has no blocked marker, no such knownGap, and its steps drive the App Builder directly; the assumption lived in the wave briefing and the run records, not here", "ref": "#9386" } + { "revision": 2, "date": "2026-08-18", "change": "corrected the ?id= spelling in step 8 and clause 4, which said in an item whose step 2 creates the package com.example.repairs — inviting the package-id spelling that answers with an empty items array (#9334's class). Found by grounding rather than from a report: this item was not on the #9334 list. ⚠️ The card's other instruction for this item — drop any inherited 'Studio is not installed' assumption (#9453 CF-4) — needed NO edit: the item never carried one. It has no blocked marker, no such knownGap, and its steps drive the App Builder directly; the assumption lived in the wave briefing and the run records, not here", "ref": "#9386" }, + { "revision": 3, "date": "2026-10-01", "change": "checklist-accuracy findings of QA run #21056, each grounded in objectui at the pin: the object is named repairs_repair_ticket (the dialog prefixes the package namespace), and every step and clause now uses that name; the New object dialog carries a pre-selected OWD choice; the zero-nav-items knownGap is superseded (the Create-app scaffold checkbox defaults on); steps[8]'s probe is a forged request because the console hides authoring on a read-only package; acceptance[0]'s cited objectui pin targets testids absent at the pin", "ref": "#21060" } ] }, { From db092de2841d06af6b34351c637dde1a48fdad6f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 1 Oct 2026 07:29:27 +0000 Subject: [PATCH 15/15] docs(qa): RUNNER states the stock invite_only posture and the two doors that mint a member A stock showcase declares no audience, so an uninvited sign-up answers 403 SELF_REGISTRATION_CLOSED and no item can mint a member by a fresh sign-up. One Environment-facts bullet names the posture, the refusal site, and the two doors (invite-member then sign-up, or admin create-user then change-password), with the shared contributor-bound recipe as the worked example. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01JAhu8u8QfBvRjVZDox7CP9 --- docs/qa/platform-checklist/RUNNER.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/qa/platform-checklist/RUNNER.md b/docs/qa/platform-checklist/RUNNER.md index dc895b1c3d5..aa720bf5679 100644 --- a/docs/qa/platform-checklist/RUNNER.md +++ b/docs/qa/platform-checklist/RUNNER.md @@ -268,6 +268,33 @@ contradicts it, and correct it here when it does. upload is broken". ⛔ Do not drive any storage/upload surface from an injected token: **sign in through the form** so both halves exist. +- **A stock showcase boot refuses self-registration — no item can mint a member by + "fresh sign-up".** The showcase declares no `auth.audience`, so its posture is the + `invite_only` default (`packages/plugins/plugin-auth/src/audience-posture.ts`: + `resolveAudience` — undeclared ⇒ `invite_only`; the migration entry + `audience-posture-default-invite-only` records the flip), and + `POST /api/v1/auth/sign-up/email` for an address holding no pending invitation answers + **`403 SELF_REGISTRATION_CLOSED`** (`decideAudienceAdmission` in the same file; the code + is in the ADR-0112 ledger, `error-code-ledger.zod.ts`). QA run #21056 met it on every + member persona it needed. Two doors mint one instead: + 1. **Invite, then sign up.** As admin, `POST /api/v1/auth/organization/invite-member` + with `{"email": "EMAIL", "role": "member"}`; a pending, unexpired `sys_invitation` + row for that address is what admits the following `sign-up/email` + (`packages/plugins/plugin-auth/src/auth-manager.ts`, `hasPendingInvitationFor`). + 2. **Admin create.** `POST /api/v1/auth/admin/create-user`, which answers + `mustChangePassword: true` by default + (`packages/plugins/plugin-auth/src/admin-user-endpoints.ts`, `runAdminCreateUser`); + have the persona `POST /api/v1/auth/change-password` before driving it. + + The worked example is the shared recipe `search:qa-contributor-bound-member` + (`areas/search.json`), whose `requires` carries the invite ahead of its step-1 sign-up. + Wherever an item still says "fresh sign-up", read it as an identity minted one of these + two ways. ⛔ Do not record a member clause `blocked(fixture)` on the strength of the 403, + and do not file it: the refusal is the posture working. The seeded demo personas + (`examples/app-showcase/src/security/demo-personas.ts`, password `showcase123`) are + loginable already, but they hold fixed positions, so they fit only where an item names + them. + - **A cold tree cannot boot the app from the console-build recipe alone.** `pnpm objectui:build` runs `scripts/build-console.sh`, which builds the **console**, not the framework CLI. On a fresh tree `packages/cli` has no `dist`, and the bare binary