diff --git a/docs/qa/platform-checklist/areas/access-security.json b/docs/qa/platform-checklist/areas/access-security.json index 67fb2f48b42..8fb534b98e0 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": 11, + "revision": 12, "priority": "P0", "surface": "api", "personas": [ @@ -63,7 +63,7 @@ { "clause": "runRlsProofs reports rls-consistent (or member-visible on deliberately public objects) for every non-skipped showcase object; any rls-hole verdict is a FAIL and files an issue", "oracle": "test", - "verify": "run `objectstack verify --rls` (or runRlsProofs(stack, adminToken, memberToken, config) from packages/verify/src/rls.ts directly); summary.holes must be 0. A bare `objectstack verify` emits no PROVEN/HOLES line and cannot satisfy this clause. An object whose report line carries `[target adopted from existing rows — admin create failed (STATUS)]` was proven on a SEEDED row, not one this run created: when the app's own validation refuses the probe's derived create body, the sweep adopts an existing row so the object and its dependents are still probed (packages/verify/src/rls.ts, the #7685 cascade-stopper; RlsResult target 'adopted'). On the stock showcase that is showcase_account, whose derived admin create answers 400 (QA run #27409), and the verdict on the adopted row stands. The run record names every object whose proof rode an adopted row. The derived-body 400 is the app's validation answering a body the sweep invented, not an RLS finding", + "verify": "run `objectstack verify --rls` (or runRlsProofs(stack, adminToken, memberToken, config) from packages/verify/src/rls.ts directly); summary.holes must be 0. A bare `objectstack verify` emits no PROVEN/HOLES line and cannot satisfy this clause. An object whose report line carries `[target adopted from existing rows — admin create failed (STATUS)]` was proven on a SEEDED row, not one this run created: when the app's own validation refuses the probe's derived create body, the sweep adopts an existing row so the object and its dependents are still probed (packages/verify/src/rls.ts, the #7685 cascade-stopper; RlsResult target 'adopted'). On the stock showcase that was showcase_account at first, whose derived admin create answers 400 (QA run #27409); at a557fa38 and b914e724 showcase_invoice rode an adopted row too, and showcase_invoice_line did not (QA runs #33784 and #33909). The set moves with the seed and the app's validation, so read it from the report lines, never from this list. The verdict on an adopted row stands. The run record names every object whose proof rode an adopted row. The derived-body 400 is the app's validation answering a body the sweep invented, not an RLS finding", "evidence": "formatRlsReport output" }, { @@ -149,7 +149,8 @@ "change": "acceptance[4].verify names the adopted-row proof. In QA run #27409's `objectstack verify --rls` block, showcase_account's RLS proof rode a seeded row because the sweep's derived admin create was refused 400. Source agrees: packages/verify/src/rls.ts falls back to adopting an existing row when the app's validation rejects the derived body (the #7685 cascade-stopper, RlsResult target 'adopted', report suffix '[target adopted from existing rows — admin create failed (STATUS)]'), so the object and its dependents are probed instead of skipped. The verify text now says the adopted-row verdict stands, asks the run record to name the objects that rode one, and records that the derived-body 400 is not an RLS finding. No assertion is relaxed: summary.holes must still be 0. Read from source at base efdddc9060. Wave anchor #27377, wave-3 accuracy slice S3; finding parked in anchor comment 6488948228", "ref": "#27409" }, - { "revision": 11, "date": "2026-11-08", "change": "The invite step presents the invitation: under invite_only a self-serve sign-up is admitted only by the invitation it presents, so the sign-up sends the id invite-member answered as invitationId beside the email, and the address alone answers 403 SELF_REGISTRATION_CLOSED. Prose only; no clause changed" } + { "revision": 11, "date": "2026-11-08", "change": "The invite step presents the invitation: under invite_only a self-serve sign-up is admitted only by the invitation it presents, so the sign-up sends the id invite-member answered as invitationId beside the email, and the address alone answers 403 SELF_REGISTRATION_CLOSED. Prose only; no clause changed" }, + { "revision": 12, "date": "2026-11-15", "change": "acceptance[4].verify re-pointed: it named showcase_account as the one adopted-row object, and QA read showcase_invoice adopted too and showcase_invoice_line no longer adopted (QA run #33784, comment 6893243542; ledger 6896511848 of #33761 row 3). The verify now says to read the set from the report lines. The clause is unchanged and summary.holes must still be 0. Read at base bc6b7ffd", "ref": "#34016" } ] }, { @@ -1925,7 +1926,7 @@ "title": "Share-link capability tokens: anon resolve renders the record minus redactFields, password/audience gates hold, revoke/expire refuse without leaking, the stored password hash never leaves the server, the password travels in the X-Share-Password header, and public answers are never cached", "since": "v16", "status": "active", - "revision": 8, + "revision": 9, "priority": "P2", "surface": "api", "personas": [ @@ -1952,7 +1953,7 @@ "mint a password-gated link; anon resolve WITHOUT ?password / x-share-password header → 401; with a WRONG password → 401; with the correct password → 200", "mint audience:'signed_in'; anon resolve → 401 SIGN_IN_REQUIRED; mint audience:'email' (the mint needs emailAllowlist: [\"\"], or it answers 400 VALIDATION_FAILED) and resolve anonymously and as a signed-in member whose email is OFF the allowlist → 404 INVALID_OR_EXPIRED, byte-identical to an unknown-token resolve. Links that COMBINE an audience with a password are access-security.share-link-combined-gates' to score", "DELETE /api/v1/share-links/ (revoke); anon resolve → 410 EXPIRED_OR_REVOKED; mint a short-expiry link and, after it expires, resolve → 410 — the record must never appear", - "delete the shared record r, then anon resolve the still-live (un-passworded, link_only) token → 404 INVALID_OR_EXPIRED, byte-identical to the answer for an unknown token (fail-closed, #5190: \"that record is gone\" is itself information) — capture it beside an unknown-token resolve for the byte comparison", + "delete the shared record r AS THE ADMIN (the minter persona cannot delete a brief: its DELETE answers 403), then anon resolve the still-live (un-passworded, link_only) token → 404 INVALID_OR_EXPIRED, byte-identical to the answer for an unknown token (fail-closed, #5190: \"that record is gone\" is itself information) — capture it beside an unknown-token resolve for the byte comparison", "GET /api/v1/share-links?object=F&recordId=r as the minter vs a SECOND member — the list returns only the caller's own links", "the stored hash never leaves: mint a password-gated link and capture the MINT response, the LIST (GET /api/v1/share-links?object=F&recordId=r as the minter) and a SUCCESSFUL resolve. Search every body for the key password_hash and for any hash-shaped value", "the password travels in a header: resolve the password-gated link with the password ONLY in the X-Share-Password request header (no ?password=). Then send a wrong value in the header, then the right password as ?password= (the compatibility form). Send a CORS preflight for the resolve route from another origin, with Access-Control-Request-Headers: x-share-password", @@ -2100,6 +2101,12 @@ "date": "2026-11-14", "change": "fixtures.requires[1] and steps[0] re-pointed (fixture text, card #33332; QA run #33081 comment 6850173588). No stock user holds showcase_client_liaison, so the requires line now carries the run's minter recipe: the admin binds usr_showcase_phone_demo to the position (demo-personas.ts, positions.ts) and the run signs in as phone.demo@example.com. steps[0]'s control needs a visible private note, which a fresh boot does not seed for the member, so the step creates one first; its 'no showcase object opts in' is narrowed to every object but showcase_client_brief, as knownGaps[0] already says. No clause changed. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 9, + "date": "2026-11-15", + "change": "steps[6], acceptance[4]'s record-gone leg, says the admin deletes the shared record: the minter persona (showcase_client_liaison) gets 403 deleting a brief (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 46). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -3481,7 +3488,7 @@ "title": "Opt-in record-view auditing writes `read` rows for exactly the opted-in objects' detail reads, batched off the request path — stock boot audits nothing, excluded names refuse loudly, values never copied", "since": "v17", "status": "active", - "revision": 8, + "revision": 9, "priority": "P2", "surface": "api", "personas": [ @@ -3500,7 +3507,7 @@ ] }, "steps": [ - "stock leg: boot showcase stock with OS_LOG_LEVEL=info (or --log-level info) — os dev defaults to warn, and the install line logs at INFO, so on a default boot its absence proves nothing; confirm INFO lines are present in the boot log as the positive control. As M open a record detail M can READ — GET /api/v1/data/showcase_account/ answering 200 (a baseline member is refused showcase_contact at the object gate with 403, and a refused read audits nothing under any configuration, so a contact specimen makes the zero vacuous); wait past the 2s default flush window; as admin GET /api/v1/data/sys_audit_log with a $filter on action 'read' — expect zero rows; the boot log must carry NO 'record-view auditing installed' line", + "stock leg: boot showcase stock with OS_LOG_LEVEL=info (or --log-level info) — os dev defaults to warn, and the install line logs at INFO, so on a default boot its absence proves nothing; confirm INFO lines are present in the boot log as the positive control. As M open a record detail M can READ — GET /api/v1/data/showcase_account/ answering 200 (a baseline member is refused showcase_contact at the object gate with 403, and a refused read audits nothing under any configuration, so a contact specimen makes the zero vacuous); wait past the 2s default flush window; as admin GET /api/v1/data/sys_audit_log with a $filter on action 'read' in the JSON filter form, $filter={\"action\":\"read\"} (or the AST [\"action\",\"=\",\"read\"]): the OData text form action eq 'read' answers 400 INVALID_FILTER, because the normalizer parses $filter as JSON (packages/metadata-protocol/src/protocol-data-crud.ts) — expect zero rows; the boot log must carry NO 'record-view auditing installed' line", "configured leg (the scratch-copy recipe in knownGaps[0]): boot the scratch copy with readAudit.objects naming X = showcase_account plus the excluded sys_job, at OS_LOG_LEVEL=info; read the boot log for the install line and the exclusion warning", "as M (user context): GET /api/v1/data/X/; wait past the flush window (or drive maxBatchSize reads); as admin read the ledger rows for action 'read'", "as M: LIST /api/v1/data/X (a collection read) and GET a detail of an object NOT in the opt-in that M can read (showcase_project) — then re-read the ledger", @@ -3620,6 +3627,12 @@ "date": "2026-11-14", "change": "negative[0] and automated.ref re-pointed (card #33332; QA run #33081 comment 6850173588): negative[0] was out of scope for a stock run by the item's own word yet stood as a clause, so the item could never PASS. Its behaviour is pinned in packages/plugins/plugin-audit/src/read-audit.test.ts (write failure never reaches the read; once per cause), so it is now scored from those pins, as negative[1] already was. automated.ref now says the dogfood pin constructs new AuditPlugin() itself, so the CLI's option-less auto-registration stays a live leg. No clause changed. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 9, + "date": "2026-11-15", + "change": "steps[0] names the JSON filter form for the sys_audit_log read: the OData text $filter=action eq 'read' answers 400 INVALID_FILTER (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 25). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -4206,7 +4219,7 @@ "title": "The security catalog has exactly one holder per name: two packages declaring one permission-set / position name refuse boot (on install-local, 422 PLUGIN_REGISTER_FAILED naming each name and its holder), a body packageId that disagrees with its package is refused, `os migrate security-catalog-overlays` clears environment shadows, and boot reports grants naming undefined catalog entries", "since": "v18", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "mixed", "personas": [ @@ -4217,7 +4230,7 @@ "app": "showcase", "requires": [ "a SCRATCH copy of examples/app-showcase (or a scaffolded blank app) for every planted-metadata step — never edit the shared fixtures; a file DB under /tmp/RUN/ for every boot", - "a second scratch package declaring a permission set with the same name as a showcase set (for the install-local leg)" + "a second scratch package declaring a permission set with the same name as a showcase set (for the install-local leg), with no namespace or the showcase's own: a permission set is one name per namespace, so a package of another namespace holds the name beside the showcase's" ] }, "steps": [ @@ -4236,7 +4249,7 @@ { "clause": "install-local of an inline manifest (a `{ manifest }` body) whose package redeclares a catalog name → 422 PLUGIN_REGISTER_FAILED whose message names each conflicting name and its holder, and nothing is recorded as installed", "oracle": "api", - "verify": "status + error.code + error.message: every redeclared catalog name (permission set, position or capability) appears in the message with the package, environment or built-in that already holds it; GET /api/v1/packages lists the same packages before and after. ⛔ No `conflicts[]` is expected on this door: it answers its own registered PLUGIN_REGISTER_FAILED and interpolates only the register error's message (that route's entry in packages/spec/src/api/error-code-ledger.zod.ts); the structured `conflicts` ride the thrown SecurityCatalogNameConflictError, which the boot-refusal pins in automated.ref assert", + "verify": "status + error.code + error.message: every redeclared catalog name (permission set, position or capability) appears in the message with the package, environment or built-in that already holds it. A permission set conflicts only where the two holders meet: it holds one name per NAMESPACE (packages/objectql/src/security-catalog-namespace.ts, permissionSetHoldersMeet), so a manifest that declares its own namespace is admitted for the set and the message names only its positions and capabilities; drive the leg with a manifest that declares no namespace or the holder's (QA measured: namespace qa_dup redeclaring showcase_auditor and showcase_manager names only showcase_manager; no namespace names both); GET /api/v1/packages lists the same packages before and after. ⛔ No `conflicts[]` is expected on this door: it answers its own registered PLUGIN_REGISTER_FAILED and interpolates only the register error's message (that route's entry in packages/spec/src/api/error-code-ledger.zod.ts); the structured `conflicts` ride the thrown SecurityCatalogNameConflictError, which the boot-refusal pins in automated.ref assert", "evidence": "the refusal body + the package list before and after" }, { @@ -4302,6 +4315,12 @@ "date": "2026-11-14", "change": "steps[3] and acceptance[4] re-pointed (card #33332; QA runs #33048 comment 6846028996 and #33094 comment 6852480973). The data API refuses the grant step[3] plants (400 VALIDATION_FAILED reference_not_found), so the step now names the SQL write into a stopped server's scratch DB it always needed. acceptance[4]'s '≤50 names' was the grant-id list: catalog-reference-report.ts caps grant ids at LOGGED_LIMIT 50 per organization and counts set names uncapped (QA run #33094 saw all 51 names printed). The clean-boot line is logged at info, so the step boots with --log-level info. The clause's substance is unchanged. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "acceptance[1].verify and fixtures.requires[1] re-pointed: a permission set is one name per namespace since ADR-0150 D2/D9, so a manifest with its own namespace redeclaring a showcase set is admitted for the set and the 422 names only the position (QA run #33853, comment 6894307378; ledger 6896511848 of #33761 row 67). The fixture now asks for a manifest with no namespace or the holder's. The clause is unchanged. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -4963,7 +4982,7 @@ "title": "A permission set travels as (package, name) from the grant to every request's evaluation: the execution context carries permissionSetAddresses, the evaluator reads each set at its holder, the activation ledger switches a set off per holder, and an OAuth client acting for a user carries none", "since": "v18.4", "status": "active", - "revision": 3, + "revision": 4, "priority": "P2", "surface": "api", "personas": [ @@ -4975,7 +4994,7 @@ "requires": [ "two scratch packages, each its own scratch app directory (never the shared examples): qa_a (manifest id com.qa.addr-a, namespace qa_a) and qa_b (manifest id com.qa.addr-b, namespace qa_b), each a defineStack({ manifest: { id, namespace, version, type: 'app' }, … }) project compiled with `objectstack build` and installed into the boot with `os package install DIR/dist/objectstack.json` (admin credentials), so the registry holds every item under its package. Neither declares a dependency on the other unless a step says so. qa_a declares the object qa_a_ticket and the permission set qa_a_reader (read on qa_a_ticket, nothing else); qa_b declares one object and no permission set", "a boot on a file database, as platform-core.activation-ledger-row-contract boots, because two steps stop the server and write the ledger directly", - "a member M (any signed-up person) granted qa_a_reader as admin with POST /api/v1/data/sys_user_permission_set {\"user_id\": M, \"permission_set\": \"qa_a_reader\"}; the grant door stamps permission_set_package (access-security.permission-set-package-resolution); one qa_a_ticket record" + "a member M (any signed-up person) granted qa_a_reader as admin with POST /api/v1/data/sys_user_permission_set {\"user_id\": M, \"permission_set\": \"qa_a_reader\"}; the grant door stamps permission_set_package (access-security.permission-set-package-resolution); one qa_a_ticket record owned by M (create it as admin with owner_id set to M). qa_a_ticket's declared sharingModel decides who reads a row; on a private object M reads only rows M owns, so a record the admin owns reads as 0 rows for M though the qa_a_reader grant holds" ], "knownGaps": [ "two packages each shipping qa_a_reader is not reachable through install today (#32027's own note), so the cases this change exists for (one name, two holders, each grant reaching only its own) are held by packages/plugins/plugin-security/src/permission-set-address.test.ts, not driven live" @@ -5055,6 +5074,12 @@ "date": "2026-11-13", "change": "assertion-defect correction of acceptance[1] (with steps[1], a negative and acceptance[1]'s evidence). Step 2's row names com.qa.addr-b, which holds no qa_a_reader: that is a stale column, not a second holder, and the ledger reads it by the D3 rule with no caller, switching off the holder the name resolves to (packages/core/src/security/resolve-authz-context.ts#ledgerRowHolders, #31698: a switch-off is never read as none), so M loses the set. The clause now asserts that stale-column contract live, and scores the true two-holder case, which install cannot reach (knownGaps), from the pin in permission-set-address.test.ts. Found by the 18.4.0 acceptance run #32940 (F-4 to F-8 and its R4/R5 comments; wave anchor #32908). Re-read at main cf1b55c0. Card #32945", "ref": "#32945" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "fixtures.requires[2] says the qa_a_ticket record is owned by M: on a private scratch object a row the admin owns reads 0 rows for M, which hides the grant the item reads (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 24). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, diff --git a/docs/qa/platform-checklist/areas/ai.json b/docs/qa/platform-checklist/areas/ai.json index 4dd102fde40..5d544f804fb 100644 --- a/docs/qa/platform-checklist/areas/ai.json +++ b/docs/qa/platform-checklist/areas/ai.json @@ -994,14 +994,14 @@ "title": "MCP names package items by their face: prompts/list serves NS-NAME for a package skill and the bare name for an environment skill, list_actions rows carry namespace and face, run_action takes namespace, and a name two holders share is refused naming the faces", "since": "v18.4", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "api", "personas": ["admin holding an osk_ API key, over MCP HTTP"], "fixtures": { "app": "showcase", "requires": [ - "two scratch packages, each its own scratch app directory (never the shared examples): qa_a (manifest id com.qa.addr-a, namespace qa_a) and qa_b (manifest id com.qa.addr-b, namespace qa_b), each a defineStack({ manifest: { id, namespace, version, type: 'app' }, … }) project compiled with `objectstack build` and installed into the boot with `os package install DIR/dist/objectstack.json` (admin credentials), so the registry holds every item under its package. Neither declares a dependency on the other unless a step says so. Each holds a skill qa_triage with instructions (skill is narrowed to one holder per namespace, so two namespaces may each hold it); qa_a also holds an object-less action qa_a_ping and an object qa_a_ticket with an embedded action escalate, each exposed to AI so list_actions lists it (ai: { exposed: true, description }: the action schema requires a description of at least 40 characters on an exposed action, packages/spec/src/ui/action.zod.ts). One skill name long enough that NS-NAME passes 64 characters", + "two scratch packages, each its own scratch app directory (never the shared examples): qa_a (manifest id com.qa.addr-a, namespace qa_a) and qa_b (manifest id com.qa.addr-b, namespace qa_b), each a defineStack({ manifest: { id, namespace, version, type: 'app' }, … }) project compiled with `objectstack build` and installed into the boot with `os package install DIR/dist/objectstack.json` (admin credentials), so the registry holds every item under its package. Neither declares a dependency on the other unless a step says so. Each holds a skill qa_triage with instructions (skill is narrowed to one holder per namespace, so two namespaces may each hold it); qa_a also holds an object-less action qa_a_ping and an object qa_a_ticket with an embedded action escalate, each exposed to AI so list_actions lists it (ai: { exposed: true, description }: the action schema requires a description of at least 40 characters on an exposed action, packages/spec/src/ui/action.zod.ts). One skill name long enough that NS-NAME passes 64 characters. For negative[2], a third scratch package qa_c (manifest id com.qa.addr-c, namespace qa_c) declares a standalone action escalate bound to objectName qa_a_ticket and exposed to AI: an object-bound action's face is OBJECT-ACTION (packages/spec/src/ai/face-name.ts#deriveAiFaceName), so it derives qa_a_ticket-escalate, the face qa_a's embedded escalate derives. Its stack is defineStack(…, { strict: false }), since its action binds another package's object. A namespace named after the object does not stage the clash on the NS-NAME face: a namespace equal to an object name is refused at install (ADR-0150 D6)", "an environment skill qa_env_triage (PUT /api/v1/meta/skill/qa_env_triage with tools: [] and instructions)", "MCP HTTP reachable with an osk_ key (see ai.mcp-http-surface)" ] @@ -1051,7 +1051,7 @@ ], "automated": { "kind": "unit", - "ref": "packages/mcp/src/skill-prompts.test.ts, packages/spec/src/ai/face-name.test.ts, packages/runtime/src/mcp-action-namespace.test.ts, packages/mcp/src/mcp-action-tools.test.ts (negative[2]: 'a face two actions derive is refused once, naming both', refusedFaces of length 1); no live spec drives the scratch-package pair" + "ref": "packages/mcp/src/skill-prompts.test.ts, packages/spec/src/ai/face-name.test.ts, packages/runtime/src/mcp-action-namespace.test.ts, packages/mcp/src/mcp-action-tools.test.ts (negative[2]: 'a face two actions derive is refused once, naming both', refusedFaces of length 1); no automated live spec drives the scratch-package pair; a run drives negative[2] live with fixtures.requires[0]'s third package qa_c (QA run #33829)" }, "source": [ "docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md D6 (the ruled faces NS-NAME and OBJECT-ACTION, the 64-character cut) and D5 (MCP)", @@ -1079,6 +1079,12 @@ "date": "2026-11-14", "change": "fixtures.requires[0] and automated.ref re-pointed (stale spec, QA runs #33025 and #33081, comments 6844741021 and 6850173588; ledger row 71 of #32908). An exposed action needs an ai.description of 40 characters or more (action.zod.ts), which the fixture did not say. negative[2]'s pin, packages/mcp/src/mcp-action-tools.test.ts, was missing from automated.ref. No clause changed. Read at base 82838e83", "ref": "#33328" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "fixtures.requires[0] adds the third scratch package qa_c that stages negative[2] live (a standalone escalate on qa_a_ticket derives qa_a's face qa_a_ticket-escalate), and automated.ref says a run drives it (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 23). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, diff --git a/docs/qa/platform-checklist/areas/api-backend.json b/docs/qa/platform-checklist/areas/api-backend.json index f57801155e6..bf8723847d8 100644 --- a/docs/qa/platform-checklist/areas/api-backend.json +++ b/docs/qa/platform-checklist/areas/api-backend.json @@ -396,7 +396,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": 9, + "revision": 10, "priority": "P0", "surface": "api", "personas": [ @@ -473,7 +473,7 @@ { "clause": "every variant below carries a recorded verdict; operators not runnable against seeded types (none expected — the account/task fields cover text/number/date/select/null) are recorded skipped-with-reason, never silently omitted", "oracle": "api", - "verify": "run record has one row per variant", + "verify": "run record has one row per variant: 30 rows, the 22 operator variants (op:*, each driven in both spellings, steps[1]) and the 8 params (param:*), as `variants` lists them. A record with fewer rows has omitted a variant", "evidence": "run record" } ], @@ -581,7 +581,8 @@ "ref": "#25807" }, { "revision": 8, "date": "2026-10-31", "change": "steps[1] names the prefix-form compound AST and steps[2] the case contract of the substring operators. Checklist-accuracy findings of QA run #27409 (18.3.0 sweep, wave 3, Tier 1 half A, at c4c515ad; sweep anchor #27377): the infix compound [cond, 'and', cond] answered 400 while the step showed only the single-condition form, and the substring operators matched case-exactly on the SQL driver while the step gave no case note. Re-read at base 488b3ed0: packages/spec/src/data/filter.zod.ts lowerFilterAST and the CONTAINS / NOT_CONTAINS / STARTS_WITH / ENDS_WITH / ICONTAINS descriptions. No clause changed", "ref": "#27409" }, - { "revision": 9, "date": "2026-11-01", "change": "QA run #28545 (W3-C1R) finding: the #26644 contract (an empty projection or an unrecognised $count answers 400) had no acceptance or negative row, so its recheck rested on a dispatcher note. negative[1] adds it, spelled from source: protocol.ts projectionFieldsValue / countFlagValue (400 VALIDATION_ERROR naming the spelling) and the body schema's 400 VALIDATION_FAILED, with the probe set of data-empty-projection-count-door.test.ts. #28545 observed the #26644 fix holding. A negative is added; nothing is removed. Read from source at base 6b9c1ca991. Wave anchor #27377, wave-3 accuracy slice S9 (#28641); finding parked in anchor comment 6554042054", "ref": "#28545" } + { "revision": 9, "date": "2026-11-01", "change": "QA run #28545 (W3-C1R) finding: the #26644 contract (an empty projection or an unrecognised $count answers 400) had no acceptance or negative row, so its recheck rested on a dispatcher note. negative[1] adds it, spelled from source: protocol.ts projectionFieldsValue / countFlagValue (400 VALIDATION_ERROR naming the spelling) and the body schema's 400 VALIDATION_FAILED, with the probe set of data-empty-projection-count-door.test.ts. #28545 observed the #26644 fix holding. A negative is added; nothing is removed. Read from source at base 6b9c1ca991. Wave anchor #27377, wave-3 accuracy slice S9 (#28641); finding parked in anchor comment 6554042054", "ref": "#28545" }, + { "revision": 10, "date": "2026-11-15", "change": "acceptance[8].verify states the variant count. The clause said only \"every variant below\"; `variants` lists 22 operators and 8 params, 30 rows (QA runs #33784 and #33909, comments 6893243542 and 6895587997; ledger 6896511848 of #33761 rows 2 and 184, one edit). The clause is unchanged. Read at base bc6b7ffd", "ref": "#34016" } ] }, { @@ -852,10 +853,10 @@ }, { "id": "api-backend.route-ledger-live-parity", - "title": "Every route family across all SIXTEEN route ledgers — REST, dispatcher, auth, personal views, storage/i18n/settings/datasource/messaging/print services, sharing, comment reactions, metadata HMR, trigger-api, cloud-connection, console static — is actually mounted on the live server — no route that exists only in unit tests", + "title": "Every route family across all SEVENTEEN route ledgers — REST, dispatcher, auth, personal views, storage/i18n/settings/datasource/messaging/print services, sharing, comment reactions, attachment removal, metadata HMR, trigger-api, cloud-connection, console static — is actually mounted on the live server — no route that exists only in unit tests", "since": "v16", "status": "active", - "revision": 5, + "revision": 6, "priority": "P2", "surface": "api", "personas": [ @@ -865,14 +866,14 @@ "app": "showcase", "requires": [ "packages/rest/src/rest-route-ledger.ts — the audited route inventory (route-manager + direct-mount rows, full wire paths at /api/v1)", - "the other fifteen ledgers named in the steps — the ledger universe is SIXTEEN files at 87330e89 (the five added since this item was written: packages/plugins/plugin-audit/src/comment-reaction-route-ledger.ts, packages/plugins/plugin-auth/src/personal-view-route-ledger.ts, packages/plugins/plugin-sharing/src/sharing-route-ledger.ts, packages/services/service-messaging/src/messaging-route-ledger.ts, packages/services/service-print/src/print-route-ledger.ts) (grep the repo for '*route-ledger.ts' at run time rather than trusting this list to stay complete: a seventeenth ledger landing is exactly the drift this item exists to catch)" + "the other sixteen ledgers named in the steps — the ledger universe is SEVENTEEN files at bc6b7ffd (the six added since this item was written: packages/plugins/plugin-audit/src/comment-reaction-route-ledger.ts, packages/plugins/plugin-auth/src/personal-view-route-ledger.ts, packages/plugins/plugin-sharing/src/sharing-route-ledger.ts, packages/services/service-messaging/src/messaging-route-ledger.ts, packages/services/service-print/src/print-route-ledger.ts, packages/services/service-storage/src/attachment-removal-route-ledger.ts) (grep the repo for '*route-ledger.ts' at run time rather than trusting this list to stay complete: an eighteenth ledger landing is exactly the drift this item exists to catch)" ] }, "steps": [ "boot the real HTTP stack (os dev); read REST_ROUTE_LEDGER and pick at least one representative route per family (the 20 families at 87330e89: discovery, openapi, metadata, ui, crud, batch, data-actions, forms, search, security, security-explain, record-shares, sharing-rules, approvals, email, analytics, packages, external-datasource, recycle-bin, user-work — read the family set from the ledger, it grows). Sample ledger ROWS only: POST /api/v1/data/:object/actions/:name is no ledger row and answers the routing 404 by design, so it is not a data-actions sample", "fire each sampled route as admin with a minimal-valid shape (GETs verbatim; parameterized routes filled with real seeded names, e.g. GET /api/v1/data/showcase_task, GET /api/v1/meta/object/showcase_task, GET /api/v1/security/explain)", "capture status + code per route", - "read the OTHER ledgers and fire one representative route each: the dispatcher ledger (packages/runtime/src/route-ledger.ts) families share-links/keys/notifications/suggested-bindings/i18n/analytics (e.g. GET /api/v1/share-links, POST /api/v1/keys, GET /api/v1/notifications, GET /api/v1/security/suggested-bindings, GET /api/v1/i18n/locales, POST /api/v1/analytics/query), AUTH_ROUTE_LEDGER (GET /api/v1/auth/get-session), the storage + i18n service ledgers, and the five ledgers added since this item was written, one representative row each (e.g. GET /api/v1/sharing/shareable-objects, GET /api/v1/messaging/preference-options, POST /api/v1/print/records, and the personal-view and comment-reaction doors under /api/v1/personal-views and /api/v1/comments/reactions)", + "read the OTHER ledgers and fire one representative route each: the dispatcher ledger (packages/runtime/src/route-ledger.ts) families share-links/keys/notifications/suggested-bindings/i18n/analytics (e.g. GET /api/v1/share-links, POST /api/v1/keys, GET /api/v1/notifications, GET /api/v1/security/suggested-bindings, GET /api/v1/i18n/locales, POST /api/v1/analytics/query), AUTH_ROUTE_LEDGER (GET /api/v1/auth/get-session), the storage + i18n service ledgers, and the six ledgers added since this item was written, one representative row each (e.g. GET /api/v1/sharing/shareable-objects, GET /api/v1/messaging/preference-options, POST /api/v1/print/records, the personal-view and comment-reaction doors under /api/v1/personal-views and /api/v1/comments/reactions, and the attachment-removal door DELETE /api/v1/attachments/:id with an id no row carries, which answers the door's own 404 RECORD_NOT_FOUND, never the routing 404, and removes nothing; never a real attachment id)", "fire the two service families that were UNLEDGERED when this item was first written and are ledgered at head — the run must NOT file the old unledgered finding: as admin GET /api/settings (settings-route-ledger.ts, #7526 — note the /api/settings base, NOT /api/v1) and GET /api/v1/datasources (datasource-route-ledger.ts, #7744). For the datasource family probe BOTH sides of the #9391/#9593 floor: anonymous GET /api/v1/datasources/drivers → 401 UNAUTHENTICATED (the 401 proves the route is mounted AND the floor holds — it is NOT the routing 404, and NOT the pre-#9391 'always-available static catalog'), then the same GET as admin (manage_platform_settings via admin_full_access) → 200 driver catalog; GET /api/v1/datasources as admin → 200 (or 503 naming the unwired service, which still proves the mount)", "fire the RAW-APP-mounted families — these registrars mount via getRawApp() and are structurally invisible to IHttpServer.getMountedRoutes(), so the #7526 parity dogfood gate CANNOT observe them and this item's live probes are their only live-HTTP observation (each ledger header says so): metadata HMR GET /api/v1/dev/metadata-events (metadata-route-ledger.ts — an SSE stream: read only the status line + headers with a short timeout, never wait for the stream to end; mounted ONLY under a literal NODE_ENV=development, which os dev sets — #12140/#5673) and POST /api/v1/dev/metadata-events; trigger-api POST /api/v1/automation/hooks/no_such_flow/bogus (trigger-api-route-ledger.ts — the handler answers a structured JSON refusal, distinguishable from the routing 404); cloud-connection GET /api/v1/runtime/config (anonymous 200 by design) and GET /api/v1/cloud-connection/status (cloud-connection-route-ledger.ts — 16 rows across four registrar families; sample only for MOUNT parity here, platform-core owns the marketplace lifecycle depth); console static GET /_console (console-route-ledger.ts — disposition static-asset)", "fire the dispatcher meta state route: GET /api/v1/meta/object/showcase_task/state/status?from=in_review, the same with ?from omitted, and GET /api/v1/meta/object/not_a_real_object/state/status as the 404 control", @@ -1038,6 +1039,12 @@ "date": "2026-11-14", "change": "title, fixtures.requires[1], steps[0], steps[3] and acceptance[3].clause re-pointed (stale spec, card #33332; QA runs #33058 comment 6846283471, #33081 comment 6850173588, #33092 comment 6850793622). The tree holds SIXTEEN *route-ledger.ts files at 87330e89, not eleven: comment-reaction (plugin-audit), personal-view (plugin-auth), sharing (plugin-sharing), messaging (service-messaging) and print (service-print) were added, and each answered live; steps[3] now samples them. REST_ROUTE_LEDGER has 20 families (recycle-bin and user-work added), and steps[0] warns that POST /data/:object/actions/:name is no ledger row and answers a routing 404 by design. acceptance[3]'s 'a bit true ⇒ the family answers' now admits a permission refusal (the run's admin met 403 EXPORT_NOT_PERMITTED with the export bit true, coherent with the admin-export-wildcard removal). The parity rule itself is unchanged. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "title, fixtures.requires[1] and steps[3] re-counted: the tree holds SEVENTEEN *route-ledger.ts files at bc6b7ffd, not sixteen; the seventeenth is packages/services/service-storage/src/attachment-removal-route-ledger.ts (one row, DELETE /api/v1/attachments/:id, #33322). steps[3] samples it with an unknown id, which the own-row delete door answers 404 RECORD_NOT_FOUND (packages/core/src/security/own-row-delete-routes.ts) (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 45). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -1911,7 +1918,7 @@ "title": "POST /actions/_activation/:object/:action — the activation door's ordered arms: authority before body and lookup, the exact 400 shapes, 404 undeclared, 409 ambiguity, 501/503 honesty, and the reserved segment surviving the real mount", "since": "v17", "status": "active", - "revision": 8, + "revision": 9, "priority": "P2", "surface": "api", "personas": [ @@ -1999,7 +2006,7 @@ ], "automated": { "kind": "dogfood", - "ref": "packages/runtime/src/domains/action-activation-posture-gate.test.ts (the door's own contract: both authority tiers across all three postures, unknown-key/non-boolean 400s by status and code VALIDATION_FAILED only, never fields[0] or the non-object-body arm, empty-body-enables, undeclared 404 + no row, ambiguity 409 + no write with one owner (the twin 'crm_account') asserted in the message, 501 no-projection, 503 non-durable) + packages/qa/dogfood/test/action-params-contract.dogfood.test.ts ('[#12160] the reserved `_activation` segment survives the real mount' — the 2-segment 400 and undeclared 404 measured through the live dispatcher reconstruction) + packages/qa/dogfood/test/packaged-activation-ledger-reach.dogfood.test.ts (the live happy path: 200 flip, then 'writes ONE deployment-level row, and the TABLE has no tenant column at all' — a key-set reading off the driver's own SELECT, not a value read, on the row rows.find returns, so 'exactly one row' is not asserted — and re-enable updates; the flip is asserted by status, not by its {name, objectName, enabled} body) + packages/qa/dogfood/test/action-activation-door-live.dogfood.test.ts (#26572 — the door over HTTP on its own showcase boot: acceptance[0] a signed-up member's mis-bodied undeclared probe → 403 PERMISSION_DENIED with the manage_metadata sentence and no clone wording, never the 400 or the 404, and the anonymous twin → 401 UNAUTHENTICATED; acceptance[1] the 2-segment shape sentence and the 4-segment 404 byte-identical to an unmounted path; acceptance[2] fields[0] {enable, unknown_field} with the did-you-mean, {enabled, invalid_type} and {(body), invalid_type}; acceptance[4] the undeclared 404 sentence and ZERO ledger rows after every refusal; acceptance[3] {} → 200 data {name, objectName, enabled: true}; acceptance[5] the flip body, exactly ONE row for the name with no organization_id key, the same row id after flipping back. acceptance[6] live on the scratch fixtures/activation-ambiguity-fixture.ts: both owners' flips → 409 RESOURCE_CONFLICT naming both objects, zero rows, the action still dispatching)" + "ref": "packages/runtime/src/domains/action-activation-posture-gate.test.ts (the door's own contract: both authority tiers across all three postures, unknown-key/non-boolean 400s by status and code VALIDATION_FAILED only, never fields[0] or the non-object-body arm, empty-body-enables, undeclared 404 + no row, ambiguity 409 + no write with one owner (the twin 'crm_account') asserted in the message, 501 no-projection, 503 non-durable) + packages/qa/dogfood/test/action-params-contract.dogfood.test.ts ('[#12160] the reserved `_activation` segment survives the real mount' — the 2-segment 400 and undeclared 404 measured through the live dispatcher reconstruction) + packages/qa/dogfood/test/packaged-activation-ledger-reach.dogfood.test.ts (the live happy path: 200 flip, then 'writes ONE deployment-level row, and the TABLE has no tenant column at all' — a key-set reading off the driver's own SELECT, not a value read, on the row rows.find returns, so 'exactly one row' is not asserted — and re-enable updates; the flip is asserted by status, not by its {name, objectName, enabled} body) + packages/qa/dogfood/test/action-activation-door-live.dogfood.test.ts (#26572 — the door over HTTP on its own showcase boot: acceptance[0] a signed-up member's mis-bodied undeclared probe → 403 PERMISSION_DENIED with the manage_metadata sentence and no clone wording, never the 400 or the 404, and the anonymous twin → 401 UNAUTHENTICATED; acceptance[1] the 2-segment shape sentence and the 4-segment path's 404 with code ROUTE_NOT_FOUND, the dispatcher's no-route answer (not byte-identical to an unmounted path, which answers the transport's 404 ENDPOINT_NOT_FOUND); acceptance[2] fields[0] {enable, unknown_field} with the did-you-mean, {enabled, invalid_type} and {(body), invalid_type}; acceptance[4] the undeclared 404 sentence and ZERO ledger rows after every refusal; acceptance[3] {} → 200 data {name, objectName, enabled: true}; acceptance[5] the flip body, exactly ONE row for the name with no organization_id key, the same row id after flipping back. acceptance[6] live on the scratch fixtures/activation-ambiguity-fixture.ts: both owners' flips → 409 RESOURCE_CONFLICT naming both objects, zero rows, the action still dispatching)" }, "traps": [ "dispatcher-vs-hono-route", @@ -2065,6 +2072,12 @@ "date": "2026-11-14", "change": "acceptance[1] (clause, verify) re-pointed (stale spec, card #33332; QA run #33081 comment 6850173588, repeating the prior round's note). The clause said the 4-segment path 404s at the router because no /actions mount matches four segments. Since ADR-0150 D5 the dispatcher mounts the addressed /actions/:ns/:object/:action/:recordId pattern (dispatcher-plugin.ts), so the path reaches the activation door, which declines a path longer than three segments after its two gates (domains/actions.ts), and the dispatcher answers 404 ROUTE_NOT_FOUND. The 2-segment shape 400 is unchanged. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 9, + "date": "2026-11-15", + "change": "automated.ref re-pointed: it said the dogfood pin reads the 4-segment 404 as byte-identical to an unmounted path, but the pin (action-activation-door-live.dogfood.test.ts, the acceptance[1] case) asserts code ROUTE_NOT_FOUND, the dispatcher's no-route answer, while an unmounted path answers ENDPOINT_NOT_FOUND (plugin-hono-server adapter.ts). acceptance[1] already said so (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 19). The same stale words in that test file's header comment are code and stay out of this edit. No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -3488,14 +3501,14 @@ "title": "An action call names its holder: POST /api/v1/actions/:ns/:object/:action[/:recordId], /actions/:ns/global/:action and the _env forms run that namespace's (or the environment's) declaration, an action another package binds to an object is reachable by its namespace, and the bare call is refused 409 naming both when two packages hold the action on one object", "since": "v18.4", "status": "active", - "revision": 3, + "revision": 4, "priority": "P1", "surface": "api", "personas": ["admin (the seeded admin): every call"], "fixtures": { "app": "showcase", "requires": [ - "two scratch packages, each its own scratch app directory (never the shared examples): qa_a (manifest id com.qa.addr-a, namespace qa_a) and qa_b (manifest id com.qa.addr-b, namespace qa_b), each a defineStack({ manifest: { id, namespace, version, type: 'app' }, … }) project compiled with `objectstack build` and installed into the boot with `os package install DIR/dist/objectstack.json` (admin credentials), so the registry holds every item under its package. Neither declares a dependency on the other unless a step says so. qa_a declares the object qa_a_ticket with an embedded server action escalate and an object-less action qa_a_ping; qa_b declares a standalone action escalate bound to objectName qa_a_ticket. Each action's handler answers a result naming its package, so the runner can tell which ran", + "two scratch packages, each its own scratch app directory (never the shared examples): qa_a (manifest id com.qa.addr-a, namespace qa_a) and qa_b (manifest id com.qa.addr-b, namespace qa_b), each a defineStack({ manifest: { id, namespace, version, type: 'app' }, … }) project compiled with `objectstack build` and installed into the boot with `os package install DIR/dist/objectstack.json` (admin credentials), so the registry holds every item under its package. Neither declares a dependency on the other unless a step says so. qa_a declares the object qa_a_ticket with an embedded server action escalate and an object-less action qa_a_ping; qa_b declares a standalone action escalate bound to objectName qa_a_ticket, so qa_b's stack is `defineStack({ … }, { strict: false })`: the default strict parse refuses a standalone action whose objectName is no object of its own stack (\"Action 'escalate' references object 'qa_a_ticket' which is not defined in objects.\", packages/spec/src/stack.zod.ts), since it cannot tell another package's object from a typo. Each action's handler answers a result naming its package, so the runner can tell which ran", "one qa_a_ticket record (its id is RID), and an environment object-less action qa_env_ping saved with PUT /api/v1/meta/action/qa_env_ping and no ?package=" ] }, @@ -3541,7 +3554,7 @@ "negative": [ "the bare call running either package's escalate is a FAIL while both hold it on qa_a_ticket: the bare door refuses two package holders of one object-bound key, it never picks one by package or by listing order (ruling record 6729825528, letter A)", "an addressed call that runs another namespace's declaration when its own has none is a FAIL: a miss is 404, never a fallback", - "the bare call answering 200 with qa_a's result while qa_b binds escalate to qa_a_ticket is a FAIL: that was the answer before #31697. With qa_b's escalate removed, one holder is left and the same bare call answers 200 with qa_a's result" + "the bare call answering 200 with qa_a's result while qa_b binds escalate to qa_a_ticket is a FAIL: that was the answer before #31697. With qa_b's escalate removed, one holder is left and the same bare call answers 200 with qa_a's result. Remove qa_b through the install-local door that installed it, DELETE /api/v1/marketplace/install-local/com.qa.addr-b (packages/cloud-connection/src/marketplace-install-local-plugin.ts); DELETE /api/v1/packages/com.qa.addr-b answers 422 WRITABLE_PACKAGE_REQUIRED for an install-local package" ], "traps": ["dispatcher-vs-hono-route"], "automated": { @@ -3573,6 +3586,12 @@ "date": "2026-11-13", "change": "stale-spec re-point of acceptance[0] and negative[2] (and the title, steps[0] and negative[0] that described the same answer). #31697 landed: a bare POST /actions/OBJECT/ACTION/ID while two packages hold the action on one object is refused 409 RESOURCE_CONFLICT naming both (ruling record 6729825528, letter A; packages/runtime/src/action-execution.ts#pickActionHolder), so the clause no longer expects the embedding package's result and the negative no longer calls the refusal unlanded. Found by the 18.4.0 acceptance run #32940 (F-9, R4 F4; wave anchor #32908): 409 naming com.qa.addr-a and com.qa.addr-b, 2 reproductions, and 200 with qa_a's result once qa_b's escalate was removed. Re-read at main 25ee5076. Card #32946", "ref": "#32946" + }, + { + "revision": 4, + "date": "2026-11-15", + "change": "fixtures.requires[0] says qa_b's stack is defineStack(…, { strict: false }): its standalone escalate binds qa_a's object, which the default strict parse refuses as an undefined object (stack.zod.ts) (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 21). negative[2] names the door that removes qa_b, DELETE /api/v1/marketplace/install-local/com.qa.addr-b, since DELETE /api/v1/packages/ID answers 422 WRITABLE_PACKAGE_REQUIRED for an install-local package (found while doing #33967, from the #33968 report 6897030673). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -3684,7 +3703,7 @@ "title": "The automation, legacy trigger, connector connection and inbound hook doors take the namespace and _env segments: /automation/:ns/:name[/trigger|/toggle|/clone|/runs…], /automation/trigger/:ns/:name, /automation/connectors/:ns/:name/connection and /automation/hooks/:ns/:flowName/:hookId serve the name's one holder exactly as the bare path does, and refuse any other qualifier with 404, 409 RESOURCE_CONFLICT or, for the hook, the door's own 401", "since": "v18.4", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -3700,7 +3719,7 @@ "an environment flow qa_env_flow, created as admin with POST /api/v1/automation and a minimal autolaunched body (a start node and an end node joined by one edge), so no package holds it" ], "knownGaps": [ - "a name two packages hold is not reachable here: phase 1's one-holder rule covers flow and connector (packages/core/src/package-scoped-resolution.ts#BARE_NAME_ONE_HOLDER_TYPES), so install refuses the second holder (422 PLUGIN_REGISTER_FAILED at install-local). The bare 409 and its address's 409 for such a name are held by domains/automation-addressed-route.test.ts, not driven live" + "a name two packages hold IS stageable now, though this item's fixture does not stage it: flow and connector moved from one package holder per deployment to one per namespace (packages/core/src/package-scoped-resolution.ts#NAMESPACE_SCOPED_BARE_NAME_TYPES, #31696), so a scratch package of another namespace holding a flow showcase_batch_reminders installs. With it installed, showcase/… and that namespace's address each serve their own holder (200), while the bare path, _env and a third namespace answer 409 RESOURCE_CONFLICT naming both holders (QA run #33910). The disabled-holder cases (#33646) are not staged over HTTP: an installed package refuses disable and DELETE /api/v1/packages/ID with 422 WRITABLE_PACKAGE_REQUIRED, and a writable twin answers 403 NOT_OVERRIDABLE (install-local packages are removed, not disabled, by DELETE /api/v1/marketplace/install-local/MANIFEST_ID, packages/cloud-connection/src/marketplace-install-local-plugin.ts). Those cases rest on packages/runtime/src/flow-caller-package.test.ts, domains/automation-run-doors-per-slot.test.ts and domains/automation-addressed-route.test.ts" ] }, "steps": [ @@ -3773,7 +3792,7 @@ "a qualified path serving a flow or connector its namespace does not hold is a FAIL: a miss is 404 or 409, never a fallback to the bare item", "an unadmitted hook address answering anything other than the bad-signature bytes (a 404, a 409, a body or header naming the namespace) is a FAIL: the refusal must not tell one installed namespace from another", "reading the member's 403 for an installed namespace against a 404 for qa_nowhere as a leak is wrong: whether a namespace is installed is read before the gates by design, and the seat accepted it (#32001, open question N1); who holds the name is judged only after the gates", - "reading the 409 on the address of a name two packages hold as a defect is wrong: the engine arms one flow per bare name, so neither address is served until one holder is renamed or removed (#32001 BREAKING 1)" + "reading the 409 for a name two packages hold as a defect is wrong: the bare path, _env and a namespace holding neither name no holder, so they refuse naming both (#32001). Each holder's own namespaced address serves that holder (200) since flow is one holder per namespace (#31696; knownGaps[0])" ], "variants": [ "a sub-resource literal in the name position keeps its bare route after a namespace: GET /automation/showcase/runs is the run list of a flow named showcase (packages/runtime/src/domains/automation-address.ts#AUTOMATION_FLOW_SUBRESOURCE_SEGMENTS: clone, runs, toggle, trigger)", @@ -3821,6 +3840,12 @@ "date": "2026-11-14", "change": "steps[2] and acceptance[4] and [8] (verify) re-pointed (card #33332; QA runs #32940 checklist-accuracy notes and #33081 comment 6850173588; ledger row 85's api-backend half, routed from batch E #33331). steps[2] triggered showcase_batch_reminders with {}, which answers 400 FLOW_FAILED 'Unknown variable: tasks' because the flow declares and loops over the input tasks (flows/index.ts), so the body is now {\"params\": {\"tasks\": []}}. acceptance[8]'s Allow was GET; the adapter adds HEAD beside GET (plugin-hono-server adapter.ts), so the wire reads 'GET, HEAD'. No clause changed. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "fixtures.knownGaps[0] and negative[3] re-pointed (stale spec, QA runs #33829 and #33910, comment 6895587997; ledger 6896511848 of #33761 rows 58 and 193, one edit). Since #31696 flow (and connector) is one holder per namespace (NAMESPACE_SCOPED_BARE_NAME_TYPES), so install admits a second namespace's holder: the gap no longer says install refuses it, and negative[3] no longer says neither address is served; QA read showcase/… and the second namespace's address each serving their own flow (200) and the bare path, _env and a third namespace answering 409 naming both. The gap names the install-local removal door (found while doing #33967, from the #33968 report 6897030673). The clauses are unchanged. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -3829,7 +3854,7 @@ "title": "The client SDK names an item's package: automation.*, actions.invoke / invokeGlobal and meta.getItem take an optional namespace, send the qualified path the server reads, send the bare path unchanged without one, refuse before sending any path the router would read as another request, and hand a 409's candidates to the caller", "since": "v18.4", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "api", "personas": [ @@ -3844,7 +3869,7 @@ "a scratch Node script (an .mjs file outside the repo) that imports ObjectStackClient from the worktree's packages/client/dist/index.mjs and constructs it with baseUrl BASE and a `fetch` (ClientConfig.fetch) that records each request's method and path, then calls the global fetch. It signs in with client.auth.login, and for each call keeps the requests that call sent and either the resolved value or the rejection's code, httpStatus, message and details.candidates" ], "knownGaps": [ - "the /actions 409 with candidates (a namespace two packages co-own, both declaring the name) is not reachable with this fixture. packages/client/src/package-addressing.test.ts §4b holds it through the real dispatcher; invoke reads the candidates with the same addressCandidatesOf the /meta and /automation legs drive here", + "the /actions 409 with candidates is not staged by this item's fixture: qa_a and qa_b here declare no action. It is reachable live with the family's two-package action fixture, api-backend.actions-namespace-address fixtures.requires[0] (qa_a's embedded escalate and qa_b's standalone escalate on qa_a_ticket, whose bare call answers 409 RESOURCE_CONFLICT naming both; QA run #33829 reached it there), so a run that installs that fixture beside this one can read invoke's candidates on that call. packages/client/src/package-addressing.test.ts §4b holds it through the real dispatcher; invoke reads the candidates with the same addressCandidatesOf the /meta and /automation legs drive here", "this item drives get, execute, trigger, runs.list and runs.get on automation. update, delete, toggle, clone, resume and getScreen, and the scoped twins on client.environment(id), build their paths with the same qualifier helpers and are held by package-addressing.test.ts §1 and §2 (24 calls, bare and qualified, each matched to a route ledger row)" ] }, @@ -3948,6 +3973,12 @@ "date": "2026-11-14", "change": "automated.ref re-pointed (card #33332; QA run #32940 checklist-accuracy notes): it pinned the file at 79 tests and the run read 83. A count written into the item goes stale with every added case, so the ref now names the vitest summary as the count and records 83 at 5fb79bc0 as the last reading. The pin and the clauses are unchanged. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "fixtures.knownGaps[0] re-pointed: it said the /actions 409 with candidates is not reachable, and QA reached it live with the family's two-package action fixture (api-backend.actions-namespace-address). The gap now says this item's own fixture does not stage it and names the fixture that does (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 20). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, diff --git a/docs/qa/platform-checklist/areas/approvals.json b/docs/qa/platform-checklist/areas/approvals.json index b4aa406116d..93b67034998 100644 --- a/docs/qa/platform-checklist/areas/approvals.json +++ b/docs/qa/platform-checklist/areas/approvals.json @@ -995,7 +995,7 @@ "title": "Approve/Reject render on the record page from sys_approval_request's declared actions; Reject fires after ONE dialog; a locking approval hides inline edit", "since": "v16", "status": "active", - "revision": 7, + "revision": 8, "priority": "P2", "surface": "browser", "personas": ["dev admin (holds the showcase_manager position, so showcase_budget_approval's manager_review routes to them — a pending approver standing on the record page)"], @@ -1016,7 +1016,7 @@ "approve path: PATCH another project's budget to e.g. 200000; on its record page click Approve → one dialog (titled Approve, described 'Approve this request? Your approval is recorded, and the request moves on once this step has the approvals it requires.', optional Comment and Attachments) → Confirm → POST /api/v1/actions/sys_approval_request/approval_approve (forwarded to /api/v1/approvals/requests/:id/approve, as step 6) → re-read (status=approved; at or under 500000, needs_exec ends the run at approved)", "lock contrast: PATCH a third project's budget above 500000 (e.g. 600000) and approve its manager_review from the record page as in step 7 — needs_exec routes the run to exec_review (position 'showcase_exec', the admin again; lockRecord:true), a NEW pending request whose row reads lock_record: true; once the page re-reads (the decision's refresh, or a reload), screenshot — the header's Edit button stays RENDERED but DISABLED (disabled, not hidden, so the user sees the affordance is off: RecordDetailView.tsx, framework#3794), the inline-edit pencils are gone (approvalLocked, from resolveApprovalLock over recordLockedByApproval of the pending request → InlineEditProvider canEdit false), and the approval band reads 'Locked for approval' (amber, a lock icon; detail.lockedByApproval)", "both-sides gate, closed side: open the step-8 project's record page (its exec_review is pending) as a member who can READ the project but is not on the slate, did not submit and holds no override — e.g. a contributor-bound member (the search:qa-contributor-bound-member recipe; RUNNER.md's self-registration entry says how to mint one). Capture the member's own GET /api/v1/approvals/requests?object=showcase_project&recordId=:id: it serves no row for this record (the approvals door serves a request to its participants and the override actor, and the record-reader tier is off: no showcase object declares enable.approvalsVisibleToReaders), so the page draws no declared decision action at all. Then forge the decision: as the member, POST /api/v1/approvals/requests/:id/approve with the id from the admin's read → 404, code REQUEST_NOT_FOUND, the answer an id naming no request gets (the member cannot read the request, and every door that acts on one answers such a caller as if it did not exist), and the request re-reads still pending. 403 FORBIDDEN ('is not a pending approver') is the answer to a caller who CAN read the request and holds no slot, which this member is not. ⛔ Not the dev admin: the admin holds the override (step 10), so the admin cannot prove the gate's closed side", - "override contrast (the admin off the slate): on a pending manager_review (PATCH a fourth project to e.g. 200000; fixtures.requires[0] says which projects take that budget), Reassign the step to another user through the bar's New approver picker — e.g. the seeded Ada Auditor (demo) persona (examples/app-showcase/src/security/demo-personas.ts) — so the request waits on that user and the admin holds no slot. Re-read the row (viewer.can_act false, viewer.can_override true) and screenshot the bar. The record page FOLDS the override levers for an override-only viewer (RecordDetailView.tsx passes foldOverrides; DeclaredActionsBar.tsx, objectstack#25877). The bar shows a 'Pending · Waiting on …' status line naming the approver the override would bypass, Reply as a plain button (the admin holds it as the submitter), and ONE amber menu trigger, a shield plus an overflow glyph, data-testid declared-actions-override-menu, labelled 'Admin override'. Open that menu and screenshot it. It lists 'Override Approve', 'Override Reject' and 'Override Reassign' (data-override-decision='true'), and Recall under its plain label: the admin holds Recall as the submitter, so it carries no override framing, yet it folds with the rest because its declared visible gate ORs in can_override. Send back and Request info are gone (their predicate reads can_act alone). That is the override arm of the same declared predicates, not the gate failing" + "override contrast (the admin off the slate): on a pending manager_review (PATCH a fourth project to e.g. 200000; fixtures.requires[0] says which projects take that budget), Reassign the step to another user through the bar's New approver picker — e.g. the seeded Ada Auditor (demo) persona (examples/app-showcase/src/security/demo-personas.ts); click the person's NAME text in the option row, since the row also carries a mailto link and a copy button that a centre click can land on instead of selecting — so the request waits on that user and the admin holds no slot. Re-read the row (viewer.can_act false, viewer.can_override true) and screenshot the bar. The record page FOLDS the override levers for an override-only viewer (RecordDetailView.tsx passes foldOverrides; DeclaredActionsBar.tsx, objectstack#25877). The bar shows a 'Pending · Waiting on …' status line naming the approver the override would bypass, Reply as a plain button (the admin holds it as the submitter), and ONE amber menu trigger, a shield plus an overflow glyph, data-testid declared-actions-override-menu, labelled 'Admin override'. Open that menu and screenshot it. It lists 'Override Approve', 'Override Reject' and 'Override Reassign' (data-override-decision='true'), and Recall under its plain label: the admin holds Recall as the submitter, so it carries no override framing, yet it folds with the rest because its declared visible gate ORs in can_override. Send back and Request info are gone (their predicate reads can_act alone). That is the override arm of the same declared predicates, not the gate failing" ], "acceptance": [ { @@ -1071,7 +1071,8 @@ { "revision": 4, "date": "2026-10-21", "change": "Re-derived against the shipped record page. PR #25003's carried finding (round 17 of wave anchor #24579; ACCEPT 6304389370, landing record 6304641541): the steps, clauses, fixtures.requires[1] and source[0]–[1] still described the record header's hand-written Approve/Reject — buildApprovalDecisionActions, approve_request / reject_request in record_header, ordered -100 / -99, behind a client-side canDecide — which objectui 99782f961 (objectui#3055) retired before both console pins. Read at objectui cf153eb2e535 (RecordDetailView.tsx, DeclaredActionsBar.tsx, recordApprovalActions.ts, useRecordApprovals.ts, useConsoleActionRuntime.tsx, approvalOverride.ts) and at base 93e6c1a5f8 (sys-approval-request.object.ts; approval-service.ts attachViewers and decide; request-read-gate.ts; approvals-routes.ts; the showcase budget flow and approval seed): the record page runs sys_approval_request's declared record_section actions through DeclaredActionsBar above the page body, each gated by its visible predicate over the server's viewer block. title, fixtures.requires[0]–[1], steps[1]–[8], the verify and evidence of every clause, clauses [0], [1], [2] and [4] (whose oracle moves dom → api: the gate is the server's), negative[2] and source[0]–[1] rewritten; steps[9] (the off-slate admin's override framing) and source[4]–[5] (the server's declarations, viewer block, read gate and refusal) added; fixtures.knownGaps[0] removed, the retired text it warned about being gone. No automated ref is added: neither pin holds a clause whole at its layer (the objectui test mounts the page in jsdom over a fetch double, with a hand-written definition and the param dialog mocked; sys-approval-request.object.test.ts reads the declarations). The live verdicts at the pin are NOT MEASURED: the sources were read, not run", "ref": "#25018" }, { "revision": 5, "date": "2026-10-31", "change": "Two findings of QA run #27441. First, steps[9] and acceptance[4]: for the override-only admin, who is also the submitter, the record page folds the override levers into one 'Admin override' menu (data-testid declared-actions-override-menu; RecordDetailView.tsx foldOverrides, DeclaredActionsBar.tsx, objectstack#25877). The menu holds Override Approve, Override Reject, Override Reassign and a plain Recall. The bar keeps the status line and Reply. The items said the three Override buttons rendered in the bar. Second, steps[3], steps[7] and acceptance[3]: under a locking approval the header Edit stays rendered but disabled (framework#3794) while the inline pencils are hidden, and the band text is named: 'Locked for approval' locked, 'In approval · editable' not locked (DetailView.tsx). The items said the affordances were absent. acceptance[3] is stronger, not weaker: a hidden Edit now fails it. Read from source at base 22ce3d13. Wave anchor #27377, wave-3 accuracy slice S5 (#28339); findings parked in anchor comment 6490438726", "ref": "#27441" }, { "revision": 6, "date": "2026-11-14", "change": "acceptance[4] (clause, verify, evidence), steps[8] and source[5] re-pointed: the forged decision of a member who cannot read the request answers 404 REQUEST_NOT_FOUND, not 403 FORBIDDEN (stale spec, QA run #33058 acceptance[4], card #33060). ApprovalService.refuseUnreadableRequest (packages/plugins/plugin-approvals/src/approval-service.ts) answers a caller who may not READ a request exactly as a missing id, before any slate check, so the request's existence never leaks; FORBIDDEN is for a reader who holds no slot. The step's contributor-bound member reads the project but not its request (the approvals door serves participants and the override actor, and no showcase object declares enable.approvalsVisibleToReaders), so QA read 404 on /approve, /reject and the action door with the request still pending. The rest of the clause held and is unchanged: no row for the member, no decision button, and the admin's override folding. negative[2] is unchanged: a viewer whose row carries a viewer block can read the request, so its forged POST is the 403 case. Read at base e540baf8", "ref": "#33060" }, - { "revision": 7, "date": "2026-11-14", "change": "steps[2], [5], [6], [9], fixtures.requires[0], acceptance[1].verify and acceptance[2] (clause, verify) re-pointed (stale spec, card #33332; QA runs #33058 comment 6846283471, #33093 comment 6850899929, #33094 comment 6852480973). The bar's decision posts the action door /api/v1/actions/sys_approval_request/approval_reject or approval_approve with recordId = the request id and the comment under params.comment, which forwards to the approvals route (apiActionDoor.ts, objectstack#27611); the item named the approvals route as the wire. On first load the approvals arrive in POST /api/v1/data/showcase_project/:id/page (seedRecordApprovals, objectstack#27627), and the GET by object and recordId fires only on the refresh. The budget PATCHes must pass the project's 120% spend rule, which refuses 200000 on the seeded Data Platform project. acceptance[2]'s clause names the action door where it named the approvals route; what it requires (one POST for the request's id, the new status, the comment on the action row) is unchanged. Read from source at base fca5f89c", "ref": "#33332" } + { "revision": 7, "date": "2026-11-14", "change": "steps[2], [5], [6], [9], fixtures.requires[0], acceptance[1].verify and acceptance[2] (clause, verify) re-pointed (stale spec, card #33332; QA runs #33058 comment 6846283471, #33093 comment 6850899929, #33094 comment 6852480973). The bar's decision posts the action door /api/v1/actions/sys_approval_request/approval_reject or approval_approve with recordId = the request id and the comment under params.comment, which forwards to the approvals route (apiActionDoor.ts, objectstack#27611); the item named the approvals route as the wire. On first load the approvals arrive in POST /api/v1/data/showcase_project/:id/page (seedRecordApprovals, objectstack#27627), and the GET by object and recordId fires only on the refresh. The budget PATCHes must pass the project's 120% spend rule, which refuses 200000 on the seeded Data Platform project. acceptance[2]'s clause names the action door where it named the approvals route; what it requires (one POST for the request's id, the new status, the comment on the action row) is unchanged. Read from source at base fca5f89c", "ref": "#33332" }, + { "revision": 8, "date": "2026-11-15", "change": "steps[9] says to click the name text in the New approver option row, which also carries a mailto link and a copy button (QA run #33853, comment 6894307378; ledger 6896511848 of #33761 row 68). No clause changed. Read at base bc6b7ffd", "ref": "#34016" } ] }, { @@ -1825,7 +1826,7 @@ "title": "Approval requests on v18: the request record page serves record:approval_decision and a Reply action that lands in its timeline, `enable.approvalsVisibleToReaders` lets a plain record reader see the record's requests read-only (and only then), the generic /data door serves request rows by approvals visibility, and titles shown to a reader use only what that reader may read", "since": "v18", "status": "active", - "revision": 7, + "revision": 8, "priority": "P1", "surface": "mixed", "personas": [ @@ -1865,7 +1866,7 @@ { "clause": "for a caller the app grants read on sys_approval_request, a non-participant's by-id read on /data/sys_approval_request → 404 and list totals exclude it; a caller without that grant, participants included, is refused 403 PERMISSION_DENIED at the object gate and is served no row and no total", "oracle": "api", - "verify": "status + total, per leg. The stock member drives the 404 leg: it holds the object read through member_default (steps[2]), so no scratch grant is needed and the leg is no longer blocked(fixture). The 403 leg needs a caller without the grant, e.g. an external member (external_default); where the run has none, record that leg not exercised. The object is engine-owned (ADR-0103) and the console request page reads through the approvals API, never this door", + "verify": "status + total, per leg. The stock member drives the 404 leg: it holds the object read through member_default (steps[2]), so no scratch grant is needed and the leg is no longer blocked(fixture). The 403 leg needs a caller without the grant, an external member (external_default), and a stock boot mints one: as admin POST /api/v1/auth/organization/invite-member {email, role: 'external'}, sign that address up with the answered id as invitationId, then POST /api/v1/auth/organization/accept-invitation as it (its sys_member row reads role external) (QA run #33853). The object is engine-owned (ADR-0103) and the console request page reads through the approvals API, never this door", "evidence": "answers" }, { @@ -1937,6 +1938,12 @@ "date": "2026-11-14", "change": "steps[2], acceptance[2].verify and fixtures.requires[2] re-pointed (stale spec, card #33332; QA runs #33048 comment 6846028996 and #33094 comment 6852480973). acceptance[2]'s 404 leg was recorded blocked(fixture) because no stock set granted a member read on sys_approval_request. Since #32442 (ruling 6849636735, 1B) member_default grants that read and the request read gate narrows the rows (default-permission-sets.ts, request-read-gate.ts), so the stock non-participant member now drives the 404 and total leg itself; the run's runtime-grant recipe is no longer needed for it. The 403 leg needs a caller without the grant, such as an external member. fixtures.requires[2] now says a runtime scratch object must declare sharingModel (security-owd-unset refuses the PUT 400 INVALID_METADATA otherwise) and gives the runtime grant recipe for the reader's object read. No clause changed. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 8, + "date": "2026-11-15", + "change": "acceptance[2].verify names the stock recipe for the 403 leg's external member (invite-member with role external, sign-up with invitationId, accept-invitation) where it said to record the leg not exercised (QA run #33853, comment 6894307378; ledger 6896511848 of #33761 row 69). The clause is unchanged. Read at base bc6b7ffd", + "ref": "#34016" } ] }, diff --git a/docs/qa/platform-checklist/areas/attachments-storage.json b/docs/qa/platform-checklist/areas/attachments-storage.json index 8fb80286043..05126459a39 100644 --- a/docs/qa/platform-checklist/areas/attachments-storage.json +++ b/docs/qa/platform-checklist/areas/attachments-storage.json @@ -745,7 +745,7 @@ "title": "The platform lifecycle sweep reaps expired tombstones and abandoned pending uploads WITH byte reclaim; sweep-time re-verification vetoes rather than losing data", "since": "v15.1", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "api", "personas": ["admin (setup access, drives the sweep)"], @@ -757,7 +757,7 @@ }, "steps": [ "run the pinned dogfood lifecycle suite first (RUNNER rule 6 — do not hand re-prove what it pins) and capture its output", - "for the hand-driven spot check (the sweep has no HTTP door: the trigger here and in every later step is a restart after the backdate, then a wait past the first sweep, which runs 60 s after boot (packages/objectql/src/lifecycle/lifecycle-service.ts#DEFAULT_LIFECYCLE_INITIAL_DELAY_MS) and hourly after that (DEFAULT_LIFECYCLE_SWEEP_MS); a boot with lifecycle disabled (OS_LIFECYCLE_DISABLED=1) never sweeps): tombstone a file (last join-row delete), backdate deleted_at past 30d, trigger the LifecycleService sweep, then verify the sys_file row AND its storage bytes are gone", + "for the hand-driven spot check (the sweep has no HTTP door: the trigger here and in every later step is a restart after the backdate, then a wait past the first sweep, which runs 60 s after boot (packages/objectql/src/lifecycle/lifecycle-service.ts#DEFAULT_LIFECYCLE_INITIAL_DELAY_MS) and hourly after that (DEFAULT_LIFECYCLE_SWEEP_MS); a boot with lifecycle disabled (OS_LIFECYCLE_DISABLED=1) never sweeps. On a restart onto an existing datastore that first tick sweeps only when the watermark is older than one interval: the sys_lifecycle_state row 'lifecycle' carries last_swept_at, and a value younger than 1 h defers the sweep to the hourly interval (packages/objectql/src/lifecycle/lifecycle-service.ts#runFirstScheduledSweep, #29918). So with the server stopped, age that row's last_swept_at past 1 h (or delete the row) in the DB file before each restart; the object has no data API): tombstone a file (last join-row delete), backdate deleted_at past 30d, trigger the LifecycleService sweep, then verify the sys_file row AND its storage bytes are gone", "create a pending upload, backdate past the 7d retention, sweep, verify row + best-effort bytes gone", "create a tombstone, then re-add a sys_attachment reference BEHIND the hooks (system write), backdate, sweep — verify the row is un-tombstoned (committed, deleted_at null), not reaped", "verify fresh tombstones (inside the window), committed rows and NULL-deleted_at rows all survive the sweep untouched" @@ -825,6 +825,12 @@ "date": "2026-10-31", "change": "steps[1] said 'trigger the LifecycleService sweep' without naming a trigger. QA run #27409 found the sweep has no HTTP door, and a restart runs the scheduler's first sweep 60 s after boot. lifecycle-service.ts arms a setTimeout of DEFAULT_LIFECYCLE_INITIAL_DELAY_MS (60_000), then a setInterval of DEFAULT_LIFECYCLE_SWEEP_MS (hourly). No route calls sweep(). The step now names that trigger for every sweep in the item. No clause changed. Read from source at base 22ce3d13fe. Wave anchor #27377, wave-3 accuracy slice S7 (#28341)", "ref": "#27409" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "steps[1] adds the watermark rule to its trigger: since #29918 a restart sweeps at the first tick only when sys_lifecycle_state 'lifecycle' last_swept_at is older than one interval (1 h), so the step ages it before each restart (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 27). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -833,7 +839,7 @@ "title": "Chunked uploads are resumable; abandoned sessions are reaped and their backend multipart uploads ABORTED before the row (the only pointer) is deleted", "since": "v15.1", "status": "active", - "revision": 8, + "revision": 9, "priority": "P2", "surface": "api", "personas": ["seeded admin (admin@objectos.ai)"], @@ -851,7 +857,7 @@ "POST /api/v1/storage/upload/chunked { filename, mimeType, totalSize, chunkSize } and capture { uploadId, resumeToken, fileId, totalChunks } (every later chunk PUT carries that resumeToken) — the init route's required trio is filename/mimeType/`totalSize` (a body spelling `size` is refused 400 INVALID_REQUEST), and the body is parsed with InitiateChunkedUploadRequestSchema: a `totalSize` that is not a whole JSON number of at least 1, or a `chunkSize` below 5 MiB (5242880), is refused 400 INVALID_REQUEST naming the field, never clamped; an omitted `chunkSize` takes the declared 5242880 default (storage-routes.ts)", "PUT one chunk — PUT /api/v1/storage/upload/chunked//chunk/0 with the bytes as the body and the init answer's resumeToken in the `x-resume-token` header (a missing or wrong token answers 403 INVALID_RESUME_TOKEN, storage-routes.ts) — and keep the eTag it answers; then GET /upload/chunked//progress and record uploadedChunks/percentComplete/status ('in_progress') — progress is the first step of the SDK's resumeUpload", "complete a full session on a second upload — every chunk PUT as in steps[1], then POST /api/v1/storage/upload/chunked//complete with { parts: [{ chunkIndex, eTag }, …] }, chunkIndex zero-based and eTag the string each chunk PUT answered (a malformed entry answers 400 INVALID_REQUEST, an eTag the session does not hold 409 RESOURCE_CONFLICT) — and verify its sys_upload_session row reaches status 'completed'", - "abandon the first session mid-flight; backdate its expires_at past the 1d TTL (system write) and trigger the lifecycle sweep", + "abandon the first session mid-flight; backdate its expires_at past the 1d TTL (system write) and trigger the lifecycle sweep. A restart triggers it only when the sweep watermark is older than one interval: with the server stopped, age the sys_lifecycle_state row 'lifecycle' last_swept_at past 1 h (or delete the row) before the restart, as attachments-storage.orphan-tombstone-reap steps[1] says (lifecycle-service.ts#runFirstScheduledSweep, #29918)", "verify the abandoned session's row is reaped AND the storage adapter's abortChunkedUpload was invoked for its backend_upload_id (dogfood suite instruments this)", "verify the completed session's row is reaped by the 7d terminal-status retention WITHOUT an abort attempt (an abort on a finalized multipart would NoSuchUpload-error and wedge the reap)", "simulate an abort failure (test seam) and verify the row is VETOED — kept so backend_upload_id survives for the retry", @@ -940,6 +946,12 @@ "date": "2026-10-31", "change": "steps[0] to [2] name the chunk door's resume token and the complete body. QA run #27409 noted that 'PUT one chunk' needs the x-resume-token header and that complete takes parts [{chunkIndex, eTag}]. storage-routes.ts: the init answer carries resumeToken, the chunk PUT refuses a missing or wrong x-resume-token with 403 INVALID_RESUME_TOKEN, and complete parses req.body.parts as {chunkIndex, eTag} entries (listedParts) and judges them against the held chunks. No clause changed. Read from source at base 22ce3d13fe. Wave anchor #27377, wave-3 accuracy slice S7 (#28341)", "ref": "#27409" + }, + { + "revision": 9, + "date": "2026-11-15", + "change": "steps[3], the sweep leg, names the watermark rule: a restart sweeps at the first tick only when sys_lifecycle_state 'lifecycle' last_swept_at is older than 1 h (#29918) (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 28). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, diff --git a/docs/qa/platform-checklist/areas/dashboards.json b/docs/qa/platform-checklist/areas/dashboards.json index 60bcaa0e5f5..32fc0b91185 100644 --- a/docs/qa/platform-checklist/areas/dashboards.json +++ b/docs/qa/platform-checklist/areas/dashboards.json @@ -700,7 +700,7 @@ "title": "Dashboard-level dateRange + global filters re-scope every bound widget through its OWN field mapping; opted-out widgets stay fixed; and the Studio widget inspector AUTHORS those filterBindings", "since": "v16", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "browser", "personas": [ @@ -711,7 +711,7 @@ "requires": [ "the Revenue Pulse dashboard (showcase_revenue_pulse) — the framework#2501 acceptance fixture: one dateRange (default field issued_on) + one region filter (default field region) driving invoice AND account widgets, account widgets re-mapping via filterBindings (dateRange→signed_on, region→sales_region), one KPI opted out of both (filterBindings false) as the all-time reference", "seeded accounts spread across sales_region amer/emea/apac with signed_on dates (src/data/seed/index.ts)", - "for D2 and D3 a SCRATCH dashboard, because no stock dashboard serves either leg (QA run #23163 scored both on runtime scratch dashboards): D2's Studio authoring round-trip needs a dashboard in a WRITABLE package to publish into — create a scratch package (POST /api/v1/packages) and author the dashboard there, since the showcase package is read-only in Studio — AND author an app in that package whose navigation carries the dashboard (PUT /api/v1/meta/app/NAME?package=PKG): the Studio Interfaces pillar IS the app navigation tree (objectui app-shell StudioDesignSurface.tsx: \"Interfaces: the real App navigation tree\"), so a package with no app shows no dashboard to select (QA run #24573); D3's dataset-sourced option half needs a globalFilter whose options come from `optionsFrom` ({object, valueField, labelField} — GlobalFilterOptionsFromSchema in packages/spec/src/ui/dashboard.zod.ts), which NO stock dashboard declares (Revenue Pulse's region filter lists static options). D3's {value,label} render half still reads on Revenue Pulse. Delete the scratch package at teardown" + "for D2 and D3 a SCRATCH dashboard, because no stock dashboard serves either leg (QA run #23163 scored both on runtime scratch dashboards): D2's Studio authoring round-trip needs a dashboard in a WRITABLE package to publish into — create a scratch package (POST /api/v1/packages with the body {id, name, version: '0.1.0', type: 'app'}: the manifest is strict, so a `label` key is refused as unrecognized, and `type` is required) and author the dashboard there, since the showcase package is read-only in Studio — AND author an app in that package whose navigation carries the dashboard (PUT /api/v1/meta/app/NAME?package=PKG): the Studio Interfaces pillar IS the app navigation tree (objectui app-shell StudioDesignSurface.tsx: \"Interfaces: the real App navigation tree\"), so a package with no app shows no dashboard to select (QA run #24573); D3's dataset-sourced option half needs a globalFilter whose options come from `optionsFrom` ({object, valueField, labelField} — GlobalFilterOptionsFromSchema in packages/spec/src/ui/dashboard.zod.ts), which NO stock dashboard declares (Revenue Pulse's region filter lists static options). D3's {value,label} render half still reads on Revenue Pulse. A scratch dashboard that carries Revenue Pulse's global filters gives each account-bound widget a filterBindings for them (e.g. dateRange→signed_on, region: false) before its first save: a widget the issued_on / region defaults cannot reach is refused 422 dashboard-filter-field-unknown. Delete the scratch package at teardown" ] }, "steps": [ @@ -834,6 +834,12 @@ "date": "2026-10-19", "change": "fixtures.requires[2] corrected from QA run #24573 (18.0 sweep, 5b14b7f3; carried by #24612), re-read at the console pin 4016370af3c9: the scratch package needs an app whose navigation points at the dashboard, because Studio's Interfaces pillar is the app navigation tree (StudioDesignSurface.tsx), and its create paths return early with no app. The recipe named only the package and the dashboard. No clause changed. Wave anchor #24579 §3", "ref": "#24671" + }, + { + "revision": 6, + "date": "2026-11-15", + "change": "fixtures.requires[2] names the scratch package body POST /api/v1/packages takes ({id, name, version, type}; 'label' is refused) and the filterBindings a scratch dashboard needs before its first save (else 422 dashboard-filter-field-unknown) (QA run #33853, comment 6894307378; ledger 6896511848 of #33761 row 71). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -1043,7 +1049,7 @@ "title": "The showcase_delivery analytics cube serves /api/v1/analytics/*: meta discovers its measures/dimensions, a query answers a known aggregate that reconciles against a direct /data aggregate, and an unwired analytics slot degrades honestly to 404", "since": "v16", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "api", "personas": [ @@ -1057,7 +1063,7 @@ ] }, "steps": [ - "probe the slot first: GET /api/v1/analytics/meta and record the status — a 404 (handled:false) means the analytics service slot is empty or filled by a self-declared stub; go straight to the degradation clause and record the honest absence", + "probe the slot first: GET /api/v1/analytics/meta and record the status — a 404 (handled:false) means the analytics service slot is empty or filled by a self-declared stub; go straight to the degradation clause and record the honest absence. On a stock boot the slot is always filled: `analytics` is on PLATFORM_ALWAYS_ON_CAPABILITIES (packages/spec/src/kernel/platform-capabilities.ts), which every served boot mounts unless it is booted with `--preset minimal` (packages/core/src/capability-composition.ts#resolveServedCapabilities). So the absent-slot arm (acceptance[4]'s 404 half, negative[1]) has no stock door: a run that stages no minimal-preset boot records that arm skipped with this reason, never a pass and never a FAIL", "GET /api/v1/analytics/meta?cube=showcase_delivery and record the returned cube descriptor", "establish ground truth: POST /api/v1/data/showcase_task/query with a status group-by count (and a SUM of estimate_hours per status), recording each bucket's count and hour total", "POST /api/v1/analytics/query { cube: 'showcase_delivery', measures: ['showcase_delivery.count'], dimensions: ['showcase_delivery.status'] } and record rows", @@ -1152,6 +1158,12 @@ "date": "2026-10-16", "change": "acceptance[0].verify and source[3] re-pointed to the meta wire shape (checklist-accuracy finding C1 of QA run #23927, wave #23878). GET /api/v1/analytics/meta answers `data` as a BARE array of CubeMeta projections — AnalyticsMetadataResponseSchema says outright there is no `cubes` wrapper (#6442) — so the verify text's 'cubes[] entry' named a key the body never carries. The clause still requires every listed measure and dimension on the showcase_delivery entry; source gains the response schema's anchor", "ref": "#24036" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "steps[0] says the absent-slot arm has no stock door: analytics is always on (PLATFORM_ALWAYS_ON_CAPABILITIES) unless a boot uses --preset minimal, so QA could not reach negative[1] and the step did not say how to record that (QA run #33829, negative[1] skipped; ledger 6896511848 of #33761 row 66). Whether the showcase boots under --preset minimal is not measured here. No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -1273,7 +1285,7 @@ "title": "Analytics on v18 asks each object's `enable` block and internal flags: a cube or dataset over an apiEnabled:false object is 404, an internal field as dimension / measure / filter is 400 even for admin, an unexposed configured cube is warned at boot and absent from /analytics/meta, and a dataset answer's measure column states its aggregate", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -1289,7 +1301,7 @@ }, "steps": [ "POST /api/v1/analytics/query on the cube over the unexposed object, then the same query reaching the OBJECT itself: its inferred cube (cube: '') or an inline dataset over it", - "POST /api/v1/analytics/query using the internal field as a dimension, then as a filter", + "POST /api/v1/analytics/query using the internal field as a dimension, then as a filter: the query key is `where` (where: { FIELD: VALUE }); `filters` is no key of the body and is refused 400 naming `where` (packages/spec/src/api/analytics.zod.ts)", "GET /api/v1/analytics/meta and the boot log", "POST /api/v1/analytics/dataset/query {datasetName: \"sys_user_metrics\", selection: {measures: [\"user_count\"]}} (a saved dataset is named by `datasetName`; `dataset` is an INLINE definition object); read fields[]. sys_user_metrics declares NO dimensions (packages/platform-objects/src/apps/dashboards/system.datasets.ts), so read the dimension half on a dimensioned dataset too: {datasetName: \"showcase_task_metrics\", selection: {dimensions: [\"status\"], measures: [\"task_count\"]}}" ], @@ -1352,6 +1364,12 @@ "date": "2026-11-08", "change": "fixtures.requires[2] spells the scratch object's key enable: { apiEnabled: false }: a top-level apiEnabled is refused at compile. Checklist-accuracy finding of QA run #31486 (owed:weekly, at 0647dabb). Read at base 4894cfe1", "ref": "#31499" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "steps[1] names the filter key, `where` (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 29). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, diff --git a/docs/qa/platform-checklist/areas/identity-auth.json b/docs/qa/platform-checklist/areas/identity-auth.json index 2d8d4765b2a..e2da2bbb4dd 100644 --- a/docs/qa/platform-checklist/areas/identity-auth.json +++ b/docs/qa/platform-checklist/areas/identity-auth.json @@ -9,7 +9,7 @@ "title": "ssoEnforced login honors SSO on first paint — no password-wall flash", "since": "v16", "status": "active", - "revision": 3, + "revision": 4, "priority": "P2", "surface": "browser", "personas": ["anonymous visitor at the login page", "env owner (break-glass password holder)"], @@ -17,7 +17,7 @@ "app": "any", "requires": [ "an env with ssoEnforced configured, cold-started", - "ssoEnforced needs an IdP behind it: set auth.ssoOnlyMode: true (or OS_AUTH_SSO_ONLY=true) plus at least one configured oidcProviders[] entry — stock showcase ships neither, so this is a bespoke-env item" + "ssoEnforced needs an IdP behind it: set auth.ssoOnlyMode: true (or OS_AUTH_SSO_ONLY=true) plus at least one configured oidcProviders[] entry — stock showcase ships neither, but a stock showcase boot satisfies it without a bespoke app: OS_SSO_ENABLED=true and OS_AUTH_SSO_ONLY=true, with one provider registered at runtime (POST /api/v1/auth/admin/sso/register against a local discovery stub on a trusted origin, as identity-auth.sso-provider-groups-claim fixtures.requires[0] says). GITHUB_CLIENT_ID / GITHUB_CLIENT_SECRET placeholders give the login page a social button for steps[4]'s watchdog leg (QA run #33853)" ] }, "steps": [ @@ -73,7 +73,8 @@ "history": [ { "revision": 1, "date": "2026-08-07", "change": "initial import from #3358", "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-10-17", "change": "steps[4] and acceptance[2].verify and [3].verify corrected (checklist-accuracy findings of the identity-auth slice report on #23878 (6216631966)). The step's 'IdP that never redirects back' is outside the console's watchdog, which covers only the hung sign-in request (20 s) — the console is not on the page while the browser sits at the IdP — so the step now hangs the request itself. And the sign-up half of clause 2 cannot discriminate on the invite_only showcase, where the register link is withheld regardless of enforcement. Not loosened: the break-glass link and the retry path are still required", "ref": "#24036" } + { "revision": 3, "date": "2026-10-17", "change": "steps[4] and acceptance[2].verify and [3].verify corrected (checklist-accuracy findings of the identity-auth slice report on #23878 (6216631966)). The step's 'IdP that never redirects back' is outside the console's watchdog, which covers only the hung sign-in request (20 s) — the console is not on the page while the browser sits at the IdP — so the step now hangs the request itself. And the sign-up half of clause 2 cannot discriminate on the invite_only showcase, where the register link is withheld regardless of enforcement. Not loosened: the break-glass link and the retry path are still required", "ref": "#24036" }, + { "revision": 4, "date": "2026-11-15", "change": "fixtures.requires[1] no longer calls this a bespoke-env item: a stock showcase boot with OS_SSO_ENABLED, OS_AUTH_SSO_ONLY and a runtime-registered provider satisfies it (QA run #33853, comment 6894307378; ledger 6896511848 of #33761 row 104). No clause changed. Read at base bc6b7ffd", "ref": "#34016" } ] }, { @@ -156,16 +157,16 @@ "title": "Every auth method a stock boot can switch on signs in when enabled, is absent when disabled, and is advertised exactly as configured (device authorization, which no stock boot can switch on, is identity-auth.device-authorization-grant)", "since": "v16", "status": "active", - "revision": 12, + "revision": 13, "priority": "P1", "surface": "mixed", "personas": ["anonymous visitor", "provisioned user per method", "admin (for env configuration)"], "fixtures": { "app": "showcase", "requires": [ - "per-variant env boots: the matrix flips AuthPluginConfigSchema flags (phoneNumber, twoFactor, oidcProvider; deviceAuthorization belongs to identity-auth.device-authorization-grant) and the socialProviders/oidcProviders maps — each variant names which boot it needs", + "per-variant env boots: the matrix flips AuthPluginConfigSchema flags (phoneNumber, twoFactor, oidcProvider; deviceAuthorization belongs to identity-auth.device-authorization-grant) and the socialProviders/oidcProviders maps — each variant names which boot it needs. The generic OIDC variant (oidcProviders[], advertised as socialProviders[] of type 'oidc') has no env switch: read its advertisement and login button on identity-auth.linked-accounts-social's scratch-copy OIDC boot (fixtures.requires[1] there), against a stock boot for the off side (QA run #33853: /auth/config listed one socialProviders entry of type oidc with features.sso false, and the login page drew its button; the stock boot carried neither)", "an SMS service (@objectstack/service-sms) is required ONLY to make phone-OTP pass; its ABSENCE is itself a tested state (loud 400 SMS_SERVICE_REQUIRED)", - "for the enterprise SSO half (features.sso): a boot with OS_SSO_ENABLED=true (packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts) and a run-local mock OIDC IdP whose origin is listed in OS_TRUSTED_ORIGINS (read in packages/cli/src/commands/serve.ts): the register door POST /api/v1/auth/admin/sso/register re-dispatches into @better-auth/sso, whose validateOIDCEndpointUrl refuses a loopback or private discovery URL 400 discovery_private_host unless its origin is trusted. features.sso reads true only once a provider is registered (isSsoUsable). Under the stock invite_only posture the SSO user must hold a pending invitation unless the provider's allowJit is on (packages/plugins/plugin-auth/src/audience-posture.ts). The same recipe drove identity-auth.idp-group-permission-set-mapping's SSO leg in QA run #33092" + "for the enterprise SSO half (features.sso): a boot with OS_SSO_ENABLED=true (packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts) and a run-local mock OIDC IdP whose origin is trusted: the register door POST /api/v1/auth/admin/sso/register re-dispatches into @better-auth/sso, whose validateOIDCEndpointUrl refuses a loopback or private discovery URL 400 discovery_private_host unless its origin is trusted. A development boot (`os dev`) already trusts http://localhost:* (packages/cli/src/commands/serve.ts), so a stub on an http://localhost:PORT origin needs no setting; a production boot (`os serve` or `os start` without --dev), or another loopback or private origin, lists the origin in OS_TRUSTED_ORIGINS. features.sso reads true only once a provider is registered (isSsoUsable). Under the stock invite_only posture the SSO user must hold a pending invitation unless the provider's allowJit is on (packages/plugins/plugin-auth/src/audience-posture.ts). The same recipe drove identity-auth.idp-group-permission-set-mapping's SSO leg in QA run #33092" ], "knownGaps": [ "magic-link and passkeys: the AuthPluginConfigSchema flags still exist, but objectui ships NO login UI for either, so #7481 withdrew both from the /api/v1/auth/config payload (protocol 17) — features.magicLink / features.passkeys are now ABSENT by design, not false. objectui#4179 (the login-UI card) was CLOSED not_planned on 2026-09-24: the maintainer's 'no UI for now' stands until the login UI is scheduled. So the browser-lane variants have no environment to run in; record them blocked(dependency, objectui#4179 closed not_planned), never pass (QA run #21784 N3, parked on #22017 row 20). The flag-advertisement clause inverts here: seeing either key in the payload is itself a FAIL now, and magic-link's endpoints (/magic-link/send, /magic-link/verify) stay live and drivable without a UI", @@ -177,7 +178,7 @@ "for each variant: boot with the method configured ON, GET /api/v1/auth/config, and record the advertisement (data.features.* flag, data.emailPassword block, data.socialProviders list: the route answers { success: true, data: config }, packages/plugins/plugin-auth/src/auth-plugin.ts)", "email+password: POST /api/v1/auth/sign-up/email (when sign-up enabled), POST /api/v1/auth/sign-in/email, GET /api/v1/auth/get-session, POST /api/v1/auth/sign-out — capture each response and the session cookie lifecycle", "phone+password: create a phone-carrying user with a known password, POST the phone sign-in (better-auth /sign-in/phone-number surface — 'always works' when the plugin is on per the spec), verify get-session identifies the user", - "phone OTP with NO SMS service configured, on a boot with NODE_ENV=production: request /phone-number/send-otp and capture the loud 400 SMS_SERVICE_REQUIRED rejection (never a silent 200, never a hang, never a bare 500). On a development boot the SMS service falls back to its log transport, which delivers in dev (LogSmsTransport prints the body — packages/services/service-sms/src/sms-service.ts), so send-otp succeeds there and the no-SMS state never occurs", + "phone OTP with NO SMS service configured, on a boot with NODE_ENV=production: `objectstack serve` (not `os dev`, which forces NODE_ENV=development) with OS_DATABASE_URL, OS_AUTH_SECRET and OS_SECRET_KEY set, a fresh file DB serving (QA run #33853): request /phone-number/send-otp and capture the loud 400 SMS_SERVICE_REQUIRED rejection (never a silent 200, never a hang, never a bare 500). On a development boot the SMS service falls back to its log transport, which delivers in dev (LogSmsTransport prints the body — packages/services/service-sms/src/sms-service.ts), so send-otp succeeds there and the no-SMS state never occurs", "SSO/OIDC: the two halves surface differently. A generic oidcProviders[] entry is advertised as a socialProviders[] entry of type 'oidc' in /api/v1/auth/config (getPublicConfig, auth-manager.ts) — the list the login page's provider buttons read; features.sso tracks ONLY the @better-auth/sso plugin (isSsoWired), so a generic OIDC provider never sets it. Drive the generic-OIDC authorization-code round trip against a localhost IdP, or cite the pinned OIDC dogfood test per rule 6. The enterprise half, on the fixtures.requires[2] boot: as admin register the mock IdP (POST /api/v1/auth/admin/sso/register), read data.features.sso true, and sign the invited user in through it; on a boot without OS_SSO_ENABLED, features.sso is false or absent and the register door is refused", "2FA: with twoFactor on, enable it for a user (sys_user enable_two_factor action, gated on features.twoFactor), sign in, and verify the server-driven challenge (ADR-0069) interrupts before a session is granted", "discovery documents: GET /.well-known/openid-configuration and GET /.well-known/oauth-authorization-server (both mounted at the APP ROOT, not under /api/v1/auth — RFC 8414 / OIDC require it, auth-plugin.ts) and record the issuer + advertised endpoints. The same documents also answer 200 under /api/v1/auth/.well-known/ (QA run #33093); that is not a defect, the app-root mounts are what this step reads", @@ -286,7 +287,8 @@ { "revision": 9, "date": "2026-10-26", "change": "checklist-accuracy findings of the 18.2.0 sweep (QA run #25815, identity-auth.auth-method-matrix a3, a6, a9 and ref; wave anchor #25807; card #25843). acceptance[3], [6] and [9] each named a pin that exists but was not in automated.ref (phone-otp-no-sms-service-refusal.test.ts, two-factor-lockout.dogfood.test.ts, change-email-delete-user-wiring.test.ts), and the ref held a single OIDC pin (acceptance[7]) under kind 'e2e', over-implying coverage of a 10-clause item. automated.ref now lists all four pins with the clause and layer each scores, and kind reads 'dogfood'; acceptance[3].verify and acceptance[9].verify say their pins drive AuthManager at unit layer, not the production boot's send-otp door or a booted server, so they score partial and the live calls are still driven. No clause's assertion changed", "ref": "#25843" }, { "revision": 10, "date": "2026-10-31", "change": "knownGaps[3] said registering an enterprise SSO provider 'needs a reachable external IdP'. The precise rule, measured by QA run #27438: the register door re-dispatches into @better-auth/sso's /sso/register, whose validateOIDCEndpointUrl refuses a loopback or private discovery URL with 400 discovery_private_host unless its origin is in trustedOrigins. So the localhost IdP that unblocks generic OIDC does not unblock features.sso. The gap now says so, and names the two environments that would lift it. Verdicts are unchanged: device and features.sso stay blocked(environment). Read from source at base efdddc9060. Wave anchor #27377, wave-3 accuracy slice S3; finding parked in anchor comment 6494110310", "ref": "#27438" }, { "revision": 11, "date": "2026-11-14", "change": "steps[0], steps[7] and acceptance[9].verify re-pointed (stale spec, QA runs #32949 and #33093, comment 6850899929; ledger row 54 of #32908). /auth/config answers { success: true, data } (auth-plugin.ts), so the flags sit under data. The delete-user callback needs ?token= or its query schema answers 400 before the disabled branch (change-email-delete-user-wiring.test.ts sends ?token=whatever). The /api/v1/auth/.well-known/ copies answering 200 are recorded as not a defect. No clause changed. Read at base 82838e83", "ref": "#33328" }, - { "revision": 12, "date": "2026-11-14", "change": "split (coverage, card #33353 row 8; ledger row 8 of #32908, QA runs #32949 and #33093, comment 6850899929). The SSO and device variants were recorded blocked(environment), which kept acceptance[0], [4] and [5] (per variant) from ever scoring whole. Re-measured on main: device authorization still has no stock switch (serve.ts injects only the env-mapped plugins; auth-manager-plugin-list.ts reads plugins.deviceAuthorization from config alone), so the variant, steps[5], knownGaps[1] (its spec-path divergence) and the device half of knownGaps[3] moved to a new item, identity-auth.device-authorization-grant, which keeps the blocked(environment) marker and the same three clauses for that variant. The enterprise SSO half stays here and is no longer recorded blocked: OS_SSO_ENABLED arms it and OS_TRUSTED_ORIGINS lifts the register door's loopback refusal (fixtures.requires[2], new; the road QA runs #33092 and #33093 used). The rule followed is the README's Lifecycle 'Append' and 'Change' (an item is never deleted; a semantic edit bumps revision and records history), with the new item's history naming this parent. No clause changed and none is narrowed: every clause still reads per variant, over the variants this item now lists. Read from source at base bd439f17", "ref": "#33353" } + { "revision": 12, "date": "2026-11-14", "change": "split (coverage, card #33353 row 8; ledger row 8 of #32908, QA runs #32949 and #33093, comment 6850899929). The SSO and device variants were recorded blocked(environment), which kept acceptance[0], [4] and [5] (per variant) from ever scoring whole. Re-measured on main: device authorization still has no stock switch (serve.ts injects only the env-mapped plugins; auth-manager-plugin-list.ts reads plugins.deviceAuthorization from config alone), so the variant, steps[5], knownGaps[1] (its spec-path divergence) and the device half of knownGaps[3] moved to a new item, identity-auth.device-authorization-grant, which keeps the blocked(environment) marker and the same three clauses for that variant. The enterprise SSO half stays here and is no longer recorded blocked: OS_SSO_ENABLED arms it and OS_TRUSTED_ORIGINS lifts the register door's loopback refusal (fixtures.requires[2], new; the road QA runs #33092 and #33093 used). The rule followed is the README's Lifecycle 'Append' and 'Change' (an item is never deleted; a semantic edit bumps revision and records history), with the new item's history naming this parent. No clause changed and none is narrowed: every clause still reads per variant, over the variants this item now lists. Read from source at base bd439f17", "ref": "#33353" }, + { "revision": 13, "date": "2026-11-15", "change": "fixtures.requires[0] names the boot for the generic OIDC variant, which has no env switch: identity-auth.linked-accounts-social's scratch-copy OIDC boot (ledger 6896511848 of #33761 row 92). steps[3] names the production leg's boot, `objectstack serve` with OS_DATABASE_URL, OS_AUTH_SECRET and OS_SECRET_KEY (row 94) (QA run #33853, comment 6894307378). Found while doing #33967, from the #33968 report 6897030673: fixtures.requires[2] says a dev boot already trusts http://localhost:*, so OS_TRUSTED_ORIGINS is needed only on a production boot or another private origin. No clause changed. Read at base bc6b7ffd", "ref": "#34016" } ] }, { @@ -1345,7 +1347,7 @@ "title": "Linked accounts: link a social/OIDC identity through the redirect round-trip → a sys_account row appears in mine-view; unlink removes it; provider-less boot degrades honestly", "since": "v16", "status": "active", - "revision": 7, + "revision": 8, "priority": "P2", "surface": "mixed", "personas": ["a signed-in user linking a second identity", "the same user after unlinking"], @@ -1353,7 +1355,7 @@ "app": "showcase", "requires": [ "at least one social/OIDC provider configured (socialProviders or oidcProviders) so the link door has a provider to dance with — stock showcase ships none, so the runtime fixture below supplies one. A social provider has an env and settings door (google_enabled / google_client_id / google_client_secret, OS_AUTH_GOOGLE_ENABLED, GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET, packages/plugins/plugin-auth/src/auth-plugin.ts) but needs real client credentials; oidcProviders has none", - "RUNTIME FIXTURE — a local OIDC provider (proved by run #21845; a test fixture in the run's scratch dir, ⛔ never committed and never a product change): a localhost authorization-code + PKCE OpenID provider serving discovery (/.well-known/openid-configuration), authorize, token, userinfo and jwks, registered with the auth service through its public config patch from a scratch app plugin — call the auth manager's applyConfigPatch({ oidcProviders: [ { the local provider's id, discovery URL, client id/secret } ] }). The 'auth:configure' hook is NOT usable for this: it fires before a scratch app plugin can contribute. The provider must be up, and the patch applied, before the first auth request (better-auth is built lazily on that request)", + "RUNTIME FIXTURE — a local OIDC provider (proved by run #21845; a test fixture in the run's scratch dir, ⛔ never committed and never a product change): a localhost authorization-code + PKCE OpenID provider serving discovery (/.well-known/openid-configuration), authorize, token, userinfo and jwks, registered with the auth service through its public config patch from a scratch app plugin — call the auth manager's applyConfigPatch({ oidcProviders: [ { the local provider's id, discovery URL, client id/secret } ] }). The 'auth:configure' hook is NOT usable for this: it fires before a scratch app plugin can contribute. The provider must be up, and the patch applied, before the first auth request (better-auth is built lazily on that request). Its test identity must carry the CALLER's email: the link door refuses a provider identity whose email differs from the signed-in user's (the callback ends in error=email_does_not_match)", "the Account app's 'Linked Accounts' surface (nav_account_linked → sys_account) reachable" ], "knownGaps": [ @@ -1367,7 +1369,7 @@ "confirm a sys_account row now exists for that provider in the caller's mine-view (provider_id = the provider, user_id = the caller) — (provider_id, account_id) is the whole account identity; there is no issuer to check, sys_account.issuer retired with better-auth 1.7.3 (packages/spec/src/migrations/entries/semantic/18.sys-account-issuer-retired.ts)", "unlink it: the unlink_account row action, which the console posts to the action door POST /api/v1/actions/sys_account/unlink_account (ui/packages/app-shell/src/utils/apiActionDoor.ts) and the server forwards to POST /api/v1/auth/unlink-account; the direct auth door answers too. Either way accountId = the sys_account ROW id (better-auth 1.7 keys on the row id); confirm the row is gone from mine-view", "both-sides / degradation: on a boot with NO provider configured, confirm the Linked Accounts surface degrades honestly — any link affordance is absent or names the missing provider, rather than offering a link that dead-ends (open-edition honest-degradation posture)", - "confirm sys_account is read-only over the data API — a forged direct insert/delete is refused (apiMethods ['get','list'] — declared in sys-account.object.ts and served so by the meta read; the read-family aggregate and export routes pass that method gate and meet their own checks instead, a bare aggregate 400 VALIDATION_ERROR and export 403 EXPORT_NOT_PERMITTED, never 405; writes 405)" + "confirm sys_account is read-only over the data API — a forged direct insert/delete is refused (apiMethods ['get','list'] — declared in sys-account.object.ts and served so by the meta read; the read-family export route passes that method gate and meets its own check instead, export 403 EXPORT_NOT_PERMITTED, never 405; writes 405. There is no aggregate route on the data door at this base: GET /api/v1/data/sys_account/aggregate reads 'aggregate' as a record id (404 RECORD_NOT_FOUND) and POST …/aggregate answers 405 METHOD_NOT_ALLOWED, neither of them a write door)" ], "acceptance": [ { @@ -1423,7 +1425,8 @@ { "revision": 4, "date": "2026-10-16", "change": "PROVENANCE, no clause change: #23803 removed Setup's nav_accounts ('Identity Links') entry, so the source anchor that cited it no longer resolved. Re-pointed it at SysUserDetailPage, whose Linked Accounts tab (a related list over sys_account keyed on user_id) is where an administrator reaches a user's identity links now. Steps, acceptance clauses, oracles and negatives are unchanged: they drive the user's Account-app surface, which did not move", "ref": "#23803" }, { "revision": 5, "date": "2026-10-17", "change": "steps[1] and [5] and acceptance[3].verify and [4].verify corrected (checklist-accuracy findings of the identity-auth slice report on #23878 (6216631966)). The slice read sys_account's live methods as [get, list, aggregate, export]; the re-run on #24036 found the meta read still serving ['get','list'] while the aggregate and export routes pass the method gate (400 VALIDATION_ERROR / 403 EXPORT_NOT_PERMITTED, never 405), so the step now says both — reads only either way, and writes still 405; link_social is retired, so a provider-less boot's missing link action is the same absence every boot shows and clause 3 cannot discriminate on it; and the link callback lands on the 'All' tab. Not loosened: a forged write must still answer 405", "ref": "#24036" }, { "revision": 6, "date": "2026-11-14", "change": "steps[3], acceptance[2].verify and fixtures.requires[0] re-pointed (stale spec, QA runs #33058 and #33093, comments 6846283471 and 6850899929; ledger row 168 of #32908). The console's unlink is a declared api action, so it posts the action door, which forwards to /auth/unlink-account (apiActionDoor.ts); both doors are named. A social provider can be switched on from env or settings (auth-plugin.ts), but no real client credentials exist for a run, so the local OIDC fixture stays. The clause is unchanged. Read at base 82838e83", "ref": "#33328" }, - { "revision": 7, "date": "2026-11-14", "change": "fixtures.knownGaps[1] added (environment, ledger row 154 of #32908): a real social provider needs client credentials no QA runner holds; the link clauses stay on the local OIDC provider", "ref": "#33351" } + { "revision": 7, "date": "2026-11-14", "change": "fixtures.knownGaps[1] added (environment, ledger row 154 of #32908): a real social provider needs client credentials no QA runner holds; the link clauses stay on the local OIDC provider", "ref": "#33351" }, + { "revision": 8, "date": "2026-11-15", "change": "fixtures.requires[1] says the local IdP's test identity carries the caller's email, since link-social refuses another email (error=email_does_not_match) (row 97); steps[5] drops the aggregate route, which the data door does not serve: GET …/aggregate answers 404 RECORD_NOT_FOUND and POST 405 (row 98) (QA run #33853, comment 6894307378; ledger 6896511848 of #33761). No clause changed. Read at base bc6b7ffd", "ref": "#34016" } ] }, { @@ -2294,7 +2297,7 @@ "title": "Workspace switcher: org chrome follows posture × membership count (nothing under single; read-only indicator at one membership; switcher at two), and a switch is a full-document reload after which every tenant-scoped read answers from the new org", "since": "v17", "status": "active", - "revision": 7, + "revision": 8, "priority": "P2", "surface": "mixed", "personas": ["a member with one org membership", "the same member after gaining a second membership", "admin, the walled boot's platform operator (OS_PLATFORM_OWNER_EMAIL): mints the member with POST /api/v1/auth/admin/create-user (RUNNER.md 'A walled boot is a fixture of its own'). On a walled boot Create User joins the administrator's CURRENT organization (ADR-0093 D3 amendment). The walled admin already holds a Default Organization (the walled default-organization bootstrap, packages/plugins/plugin-auth/src/ensure-default-organization.ts; QA run #33093), so make the intended organization active (POST /api/v1/auth/organization/set-active), creating one first (POST /api/v1/auth/organization/create) if the admin has none; with no active organization create-user answers 400 NO_ACTIVE_ORGANIZATION and mints nobody. The member lands as `member` of that organization, its one membership. The admin does not provision the second org: the member creates that itself (fixtures.requires[1])"], @@ -2338,9 +2341,9 @@ "evidence": "the navigation trace" }, { - "clause": "tenant-scoped reads follow the switch: after the reload, data reads answer from the new org — under `isolated` a row id that exists only in the previous org is ABSENT; under `group`, where reads span all the user's orgs, a row written after the switch lands in the NEW org — and /meta reads answer exactly as before the switch, because metadata is deployment-level since ADR-0131 D6/D7 (no organization-scoped metadata write exists, so there is no org-only metadata id to be absent); the console drops its metadata cache on the change (objectui#4486)", + "clause": "tenant-scoped reads follow the switch: after the reload, data reads answer from the new org — under `isolated` a row id that exists only in the previous org is ABSENT; under `group`, where reads span all the user's orgs, a row written after the switch lands in the NEW org — and a role-neutral /meta read answers exactly as before the switch, because metadata is deployment-level since ADR-0131 D6/D7 (no organization-scoped metadata write exists, so there is no org-only metadata id to be absent); the console drops its metadata cache on the change (objectui#4486)", "oracle": "api", - "verify": "under `isolated`, the post-switch data read lacks the old-org sentinel row id; under `group`, a post-switch create carries the new org's id and the old-org row is still readable (not a FAIL — group reads span orgs); the post-switch /meta read equals the pre-switch one. A metadata id that differs between the two orgs would itself be a finding against ADR-0131 D6, not this clause's pass", + "verify": "under `isolated`, the post-switch data read lacks the old-org sentinel row id; under `group`, a post-switch create carries the new org's id and the old-org row is still readable (not a FAIL — group reads span orgs); the post-switch /meta read equals the pre-switch one, on a read that does not depend on the caller's grade in the active org, e.g. GET /api/v1/meta/object/showcase_task. GET /api/v1/meta/app is not one: it lists apps by the caller's permissions in that org (an app with requiredPermissions, such as Setup's setup.access, is listed where the member owns the org and absent where it is a plain member), which is per-org role filtering, not org-scoped metadata. A metadata id that differs between the two orgs would itself be a finding against ADR-0131 D6, not this clause's pass", "evidence": "the before/after reads + the sentinel id" }, { @@ -2395,6 +2398,12 @@ "date": "2026-11-14", "change": "personas[2], steps[6] and acceptance[5] (clause and verify) re-pointed (stale spec, QA runs #33058 and #33093, comments 6846283471 and 6850899929; ledger row 171 of #32908). acceptance[5]'s 'the UI surfaces an error' had no UI door, since the forged set-active is API-only; the clause keeps the 403 and never-the-foreign-org halves. The walled admin already holds a Default Organization. A new session starts on the owned org (selectActiveOrg, auth-manager-database-hooks.ts). The group write needs a target org the member can write in. Read at base 82838e83", "ref": "#33328" + }, + { + "revision": 8, + "date": "2026-11-15", + "change": "acceptance[3] names a role-neutral /meta read: GET /api/v1/meta/app differed across the switch because it filters apps by the caller's per-org grade, not because metadata is org-scoped; QA scored the meta half on /meta/object/showcase_task (QA run #33853, comment 6894307378; ledger 6896511848 of #33761 row 105). The clause's requirement is unchanged: metadata is deployment-level. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -2533,7 +2542,7 @@ "title": "A session held by the ADR-0069 credential policy (password expired, forced reset, MFA not enrolled) is refused with the gate's own 403 code on EVERY raw-host route family, and an API key whose owner holds an account-scope posture is refused too", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -2544,7 +2553,7 @@ "app": "showcase", "requires": [ "a fresh boot of the showcase: `pnpm dev -- --fresh -p PORT --seed-admin` (ephemeral DB; the seeded admin is printed)", - "a member whose session the policy holds — the cheapest: create the member with POST /api/v1/auth/admin/create-user, which lands mustChangePassword:true, and sign it in BEFORE it changes its password (held with PASSWORD_RESET_REQUIRED); the other two codes each need more than a policy switch. PASSWORD_EXPIRED needs password_expiry_days > 0 AND a sys_user.password_changed_at older than that many days, so a fresh member never qualifies (sign-up stamps the clock now, and a null stamp never expires): age the stamp in the run's own scratch DB. MFA_REQUIRED holds an unenrolled member only once mfa_grace_period_days (default 7) have elapsed from sys_user.mfa_required_at, which is stamped on first sight of the required-but-unenrolled member, so switching MFA on alone holds nobody for a week: set mfa_grace_period_days to 0 through the settings door (PUT /api/settings/auth) or age that stamp too (packages/plugins/plugin-auth/src/auth-manager-password-session-policy.ts#resolveUserAuthGates; QA run #27438). ⚠️ An organization's require_mfa reaches the gate only after the 'any org requires MFA' cache refreshes — a 60 s TTL, refreshed in the background by a request made after it goes stale (packages/plugins/plugin-auth/src/auth-manager.ts refreshOrgMfaCacheIfStale) — so the MFA hold can lag the switch by over a minute (QA run #24538 saw ~70 s): poll the held call until it answers MFA_REQUIRED before scoring, never probe once and score a 200", + "a member whose session the policy holds — the cheapest: create the member with POST /api/v1/auth/admin/create-user, which lands mustChangePassword:true, and sign it in BEFORE it changes its password (held with PASSWORD_RESET_REQUIRED); the other two codes each need more than a policy switch. PASSWORD_EXPIRED needs password_expiry_days > 0 AND a sys_user.password_changed_at older than that many days, so a fresh member never qualifies (sign-up stamps the clock now, and a null stamp never expires): age the stamp in the run's own scratch DB. MFA_REQUIRED holds an unenrolled member only once mfa_grace_period_days (default 7) have elapsed from sys_user.mfa_required_at, which is stamped on first sight of the required-but-unenrolled member, so switching MFA on alone holds nobody for a week: set mfa_grace_period_days to 0 through the settings door (PUT /api/settings/auth) or age that stamp too. ⚠️ Saving mfa_required=everyone with grace 0 holds every unenrolled user, the admin who saved it included: enroll the admin in two-factor before that save, or age the member's stamp instead (packages/plugins/plugin-auth/src/auth-manager-password-session-policy.ts#resolveUserAuthGates; QA run #27438). ⚠️ An organization's require_mfa reaches the gate only after the 'any org requires MFA' cache refreshes — a 60 s TTL, refreshed in the background by a request made after it goes stale (packages/plugins/plugin-auth/src/auth-manager.ts refreshOrgMfaCacheIfStale) — so the MFA hold can lag the switch by over a minute (QA run #24538 saw ~70 s): poll the held call until it answers MFA_REQUIRED before scoring, never probe once and score a 200", "an API key minted by the member before the hold (POST /api/v1/keys)" ] }, @@ -2623,6 +2632,12 @@ "date": "2026-10-31", "change": "fixtures.requires[1] said 'an expiry / MFA-required policy in auth settings holds it with the other two codes'. A policy switch alone holds nobody, as QA run #27438 found and resolveUserAuthGates (plugin-auth auth-manager-password-session-policy.ts) shows. PASSWORD_EXPIRED needs password_expiry_days > 0 and a password_changed_at older than it; sign-up stamps the clock and a null stamp never expires. MFA_REQUIRED waits out mfa_grace_period_days (default 7, settings manifest) from the lazily stamped mfa_required_at. The recipe now names both preconditions and the cheap levers: age the stamp in a scratch DB, or set the grace to 0. The finding line in the anchor comment is truncated after 'require_mfa alone holds nobody for a week'; the rest is read from source. No clause changed. Read from source at base efdddc9060. Wave anchor #27377, wave-3 accuracy slice S3; finding parked in anchor comment 6494110310", "ref": "#27438" + }, + { + "revision": 5, + "date": "2026-11-15", + "change": "fixtures.requires[1] warns that saving mfa_required=everyone with grace 0 through PUT /api/settings/auth also holds the admin who saved it (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 32). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -2975,7 +2990,7 @@ "title": "A platform administrator maps an identity-provider group to a permission set: a SCIM group push grants the set to the group's members at once, an SSO sign-in grants it from the groups claim, deleting the mapping removes only the grants it made, and a set outside the organization boundary is refused", "since": "v18.4", "status": "active", - "revision": 2, + "revision": 3, "priority": "P1", "surface": "api", "personas": ["platform administrator: the mapping doors", "an organization administrator: the 403 leg", "an identity provider: the SCIM pushes"], @@ -2983,7 +2998,7 @@ "app": "showcase", "requires": [ "a boot with OS_SCIM_ENABLED=true, one SCIM connection credential, and a user provisioned through it; a scratch permission set qa_group_reader inside the organization boundary", - "for the SSO leg: OS_SSO_ENABLED=true, a registered OIDC provider whose groups claim is set, and an identity provider that signs a user in with a groups claim. A run-local mock OIDC IdP serves (QA run #33092): its origin must be in OS_TRUSTED_ORIGINS, because @better-auth/sso refuses a loopback or private discovery URL otherwise (validateOIDCEndpointUrl, discovery_private_host; OS_TRUSTED_ORIGINS is read in packages/cli/src/commands/serve.ts), and the SSO user must hold a pending invitation: under the stock invite_only posture an uninvited SSO user is refused unless the provider's allowJit is on (packages/plugins/plugin-auth/src/audience-posture.ts, SSO_JIT_CLOSED_MESSAGE)" + "for the SSO leg: OS_SSO_ENABLED=true, a registered OIDC provider whose groups claim is set, and an identity provider that signs a user in with a groups claim. A run-local mock OIDC IdP serves (QA run #33092): its origin must be trusted, because @better-auth/sso refuses a loopback or private discovery URL otherwise (validateOIDCEndpointUrl, discovery_private_host). A development boot (`os dev`) already trusts http://localhost:* (packages/cli/src/commands/serve.ts adds it when the boot is a dev boot), so a stub on an http://localhost:PORT origin needs no setting; a production boot (`os serve` or `os start` without --dev), or another loopback or private origin, lists the origin in OS_TRUSTED_ORIGINS, and the SSO user must hold a pending invitation: under the stock invite_only posture an uninvited SSO user is refused unless the provider's allowJit is on (packages/plugins/plugin-auth/src/audience-posture.ts, SSO_JIT_CLOSED_MESSAGE). Leave OS_SSO_DOMAIN_VERIFICATION unset (it is opt-in, ADR-0135 D6): with it true, SSO sign-in is refused 'Provider domain has not been verified' until the provider's domain is verified" ], "knownGaps": ["no stock OIDC identity provider (FOLLOW-UPS §3, still open): the SSO leg is blocked(fixture) without one, and a run-local mock IdP per fixtures.requires[1] unblocks it; the SCIM legs need none"] }, @@ -3049,6 +3064,12 @@ "date": "2026-11-14", "change": "steps[3], acceptance[2].verify, fixtures.requires[1] and knownGaps[0] re-pointed (stale spec, QA runs #32940 and #33092, comment 6850793622; ledger row 32 of #32908). A hand grant of the same set after the push is refused 409 UNIQUE_VIOLATION by sys_user_permission_set's unique index, so the hand-made control is now a second user granted before the push, as the CONTROL case in packages/plugins/plugin-auth/src/scim-group-projection.test.ts does. The SSO leg names its fixture: a mock OIDC IdP whose origin is in OS_TRUSTED_ORIGINS (@better-auth/sso validateOIDCEndpointUrl) and an invited SSO user (audience-posture.ts refuses uninvited SSO users without allowJit). The clause is unchanged. Read at base 82838e83", "ref": "#33328" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "fixtures.requires[1] adds the OS_SSO_DOMAIN_VERIFICATION note: with it true the SSO leg's sign-in is refused 'Provider domain has not been verified' (QA run #33829, comment 6893937847; ledger 6896511848 of #33761 row 30). Found while doing #33967, from the #33968 report 6897030673: the local IdP's origin needs OS_TRUSTED_ORIGINS only on a production boot, since a dev boot trusts http://localhost:* (serve.ts). No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -3057,13 +3078,13 @@ "title": "The SSO Providers record shows and edits the groups claim: get-groups-claim answers only the provider id and its claim, set-groups-claim stores it (blank clears it) and changes nothing else in the provider's mapping", "since": "v18.4", "status": "active", - "revision": 2, + "revision": 3, "priority": "P2", "surface": "mixed", "personas": ["platform administrator", "an organization administrator: the 403 leg"], "fixtures": { "app": "showcase", - "requires": ["a boot with OS_SSO_ENABLED=true and one registered OIDC provider (POST /api/v1/auth/admin/sso/register). A local IdP's origin must be in OS_TRUSTED_ORIGINS (read in packages/cli/src/commands/serve.ts): @better-auth/sso refuses a loopback or private discovery URL otherwise (validateOIDCEndpointUrl, discovery_private_host), and the register door answers 400 SSO_REGISTER_FAILED 'not publicly routable' (packages/plugins/plugin-auth/src/register-sso-provider.ts)"], + "requires": ["a boot with OS_SSO_ENABLED=true and one registered OIDC provider (POST /api/v1/auth/admin/sso/register). A local IdP's origin must be trusted: @better-auth/sso refuses a loopback or private discovery URL otherwise (validateOIDCEndpointUrl, discovery_private_host), and the register door answers 400 SSO_REGISTER_FAILED 'not publicly routable' (packages/plugins/plugin-auth/src/register-sso-provider.ts). A development boot (`os dev`) already trusts http://localhost:* (packages/cli/src/commands/serve.ts adds it when the boot is a dev boot), so a discovery + jwks stub on an http://localhost:PORT origin registers with no setting; a production boot (`os serve` or `os start` without --dev), or another loopback or private origin, lists the origin in OS_TRUSTED_ORIGINS"], "knownGaps": ["registering a provider needs its issuer reachable, and a local one allowlisted (fixtures.requires[0]); with no stock OIDC identity provider (FOLLOW-UPS §3) the run brings its own"] }, "steps": [ @@ -3122,6 +3143,12 @@ "date": "2026-11-14", "change": "fixtures.requires[0] and knownGaps[0] re-pointed (fixture gap, QA run #33093, comment 6850899929; ledger rows 250 and 241 of #32908, row 241 from #33331). A local IdP needs its origin in OS_TRUSTED_ORIGINS, or register answers 400 SSO_REGISTER_FAILED (register-sso-provider.ts, @better-auth/sso validateOIDCEndpointUrl). No clause changed. Read at base 82838e83", "ref": "#33328" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "fixtures.requires[0] re-pointed (found while doing #33967, from the #33968 report 6897030673): it said a local IdP's origin must be in OS_TRUSTED_ORIGINS, but a dev boot (`os dev`) already trusts http://localhost:* (packages/cli/src/commands/serve.ts), so the setting is needed only on a production boot or another private origin. No clause changed. Read at base bc6b7ffd", + "ref": "#34016" } ] }, @@ -3440,7 +3467,7 @@ "title": "The Console's phone doors on a two-factor account ask for the code: phone + password and the phone code each move to the two-factor step instead of an error, and a code completes the sign-in", "since": "v18.4", "status": "active", - "revision": 2, + "revision": 3, "priority": "P1", "surface": "browser", "personas": [ @@ -3451,7 +3478,7 @@ "requires": [ "a showcase development boot (dogfood §0) with OS_AUTH_TWO_FACTOR=true and OS_AUTH_PHONE_NUMBER_ENABLED=true on the os dev command (the switches identity-auth.two-factor-verify-to-activate fixtures.requires[0] and identity-auth.phone-signin-surfaces fixtures.requires[2] name); GET /api/v1/auth/config answers data.features.twoFactor and data.features.phoneNumber true. The console bundle built from this tree", "the user: created with a phone number and a known password as identity-auth.auth-method-matrix creates its phone user, then enrolled and VERIFIED in TOTP by the walk identity-auth.two-factor-verify-to-activate drives (signed in by email: POST /api/v1/auth/two-factor/enable { password }, one correct code). Keep the TOTP secret; codes come from the copied RFC 6238 helper", - "the phone-code legs only: data.features.phoneNumberOtp true on this boot. On a development boot the SMS log transport prints the code in the server log (identity-auth.auth-method-matrix, the phone OTP step) at info level (LogSmsTransport, packages/services/service-sms/src/sms-service.ts), so boot with --log-level info: at os dev's default warn level the line is not printed" + "the phone-code legs only: data.features.phoneNumberOtp true on this boot. On a development boot the SMS log transport prints the code in the server log (identity-auth.auth-method-matrix, the phone OTP step) at info level (LogSmsTransport, packages/services/service-sms/src/sms-service.ts), so boot with --log-level info: at os dev's default warn level the line is not printed. Read the code from the line's body field ('body: NNNNNN is your … verification code'): a bare six-digit grep also matches the digits of the messageId (dev-sms-EPOCHMS-N) on the same line" ], "knownGaps": [ "the verify-email half of #32287 (ui/apps/console/src/pages/auth/VerifyEmailPage.tsx#VerifyEmailPage reads a two-factor challenge from the verification link as 'Email verified' and sends the person to sign in) needs a verification mail for an enrolled account, which this fixture does not send; it is held by ui/apps/console/src/pages/auth/__tests__/VerifyEmailPage-11633.test.tsx and not driven here" @@ -3486,7 +3513,7 @@ { "clause": "control: a wrong password still reads as a credentials error and asks for no code", "oracle": "dom", - "verify": "the form shows 'Invalid phone number or password.' and no two-factor step", + "verify": "the form shows the server's credentials error, 'Invalid phone number or password' (no period), and no two-factor step. The period-ended 'Invalid phone number or password.' is ui/packages/auth/src/createAuthClient.ts's fallback for a 2xx answer that carries no token, not the wrong-password path, which is a 401 whose message the form renders", "evidence": "a screenshot of the error" } ], @@ -3521,6 +3548,12 @@ "date": "2026-11-14", "change": "acceptance[0].verify and fixtures.requires[2] re-pointed (stale spec, QA runs #33025 and #33048, comments 6844741021 and 6846028996; ledger row 40 of #32908). The console's LoginPage renders the challenge with hideHeader, so TwoFactorChallengeForm draws only its description, not the 'Two-factor authentication' title the verify quoted. LogSmsTransport prints the phone code at info level, which os dev's default warn level hides. The clause is unchanged. Read at base 82838e83", "ref": "#33328" + }, + { + "revision": 3, + "date": "2026-11-15", + "change": "acceptance[3].verify quotes the rendered wrong-password text without the period (the period-ended literal is the client's no-token fallback, createAuthClient.ts) (row 95), and fixtures.requires[2] says to read the code from the log line's body field, since a six-digit grep catches the messageId digits (row 96) (QA run #33853, comment 6894307378; ledger 6896511848 of #33761). The clause is unchanged. Read at base bc6b7ffd", + "ref": "#34016" } ] },