From fd55e259948d36c8db691dd644b71a5d9d211ef8 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 16:46:49 +0000 Subject: [PATCH 1/3] qa(checklist): name the persona and status of three approvals refusals a non-reader gets as 404 approvals.request-page-reply-and-reader-visibility acceptance[1], approvals.quorum-m-of-n steps[4] and approvals.decision-action-matrix acceptance[6] expected 403 FORBIDDEN from a caller who cannot read the request. ApprovalService.refuseUnreadableRequest answers that caller REQUEST_NOT_FOUND (404) before any slate or submitter check, so the request's existence never leaks; 403 stays the answer to a reader who holds no slot. Each item gets a revision bump and a history row. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F --- .../platform-checklist/areas/approvals.json | 34 ++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/docs/qa/platform-checklist/areas/approvals.json b/docs/qa/platform-checklist/areas/approvals.json index babdccc7f37..123b9444dcb 100644 --- a/docs/qa/platform-checklist/areas/approvals.json +++ b/docs/qa/platform-checklist/areas/approvals.json @@ -191,7 +191,7 @@ "title": "M-of-N quorum approves at the threshold; one rejection vetoes", "since": "v16", "status": "active", - "revision": 9, + "revision": 10, "priority": "P1", "surface": "browser", "personas": ["three DISTINCT users each holding one of the approver positions"], @@ -211,7 +211,7 @@ "runnable today (the clamp contrast): GET the seeded showcase_committee_quorum request on EXP-DEMO (behavior quorum, minApprovals 2 over manager/finance/legal — all resolving to the admin); record the collapsed pending slate", "approve it ONCE as the admin and re-read: it finalizes immediately — the documented runtime clamp (minApprovals can never exceed the resolvable approver count), recorded as the CONTRAST, never as M-of-N proof", "apply the runtime fixture (fixtures.requires, steps 1-4) and open a FRESH quorum request; then as approver 1, POST /api/v1/approvals/requests/:id/approve — re-read: status STILL pending (1 of 2), approver 1 dropped from the slate", - "repeat-actor probe: as the NON-PRIVILEGED approver who already decided (e.g. Ada), approve the same request again — refused (403) and the tally unchanged; a user holding none of the routed positions is refused the same way. ⛔ Never use the platform/tenant admin for this probe — an admin decision is the documented override (#3424) and finalizes by design", + "repeat-actor probe: as the NON-PRIVILEGED approver who already decided (e.g. Ada), approve the same request again — refused 403 FORBIDDEN ('is not a pending approver': her own decision keeps her a reader of the request, and her slot has left the slate) and the tally unchanged. A user holding none of the routed positions, who never acted on the request, is refused too, but with 404 REQUEST_NOT_FOUND, the answer an id naming no request gets: they cannot read the request (no showcase object declares enable.approvalsVisibleToReaders), and packages/plugins/plugin-approvals/src/approval-service.ts#refuseUnreadableRequest answers such a caller before the slate check, so the request's existence never leaks; the tally is unchanged either way. A 403 for that user means they could read the request: record which tier admitted them. ⛔ Never use the platform/tenant admin for this probe — an admin decision is the documented override (#3424) and finalizes by design", "as approver 2, approve — re-read: status=approved, remaining pending task for approver 3 closed", "GET /:id/actions — exactly two approve rows from two distinct actors", "on a SECOND quorum request: as any single approver, POST /reject — re-read immediately", @@ -299,6 +299,12 @@ "date": "2026-10-31", "change": "acceptance[4] said the tally matches the API 'at each stage'. QA run #27441 found the tally renders only while the request is pending. Source agrees: attachDecisionProgress (approval-service.ts) sets decision_progress on a pending row only, and ApprovalDecisionPanel.tsx draws the tally from it alone. The clause now binds each PENDING stage, and adds that after the decision neither the page nor the read carries a tally. That is a stronger claim than before. Read from source at base 22ce3d13. Wave anchor #27377, wave-3 accuracy slice S5 (#28339); finding parked in anchor comment 6490438726", "ref": "#27441" + }, + { + "revision": 10, + "date": "2026-11-14", + "change": "steps[4] re-pointed: the repeat-actor probe's second persona, a user holding none of the routed positions, is answered 404 REQUEST_NOT_FOUND, not 403 (stale spec, card #33275, the sibling half of #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 decideNode's slate check, so the request's existence never leaks; a user who holds no routed position and never acted on the request is no participant, and no showcase object declares enable.approvalsVisibleToReaders, so that user reads nothing. The first persona is unchanged: Ada's own decision keeps her a reader (visibleRequestIds' already-acted probe on sys_approval_action.actor_id), so her repeat approve reaches the slate check and answers 403 FORBIDDEN 'is not a pending approver'. No clause changed: negative[0] asserts the refusal, not its status. Read from source at base 87330e89, not driven live", + "ref": "#33275" } ] }, @@ -546,7 +552,7 @@ "title": "Every approval action executes its REST route and produces the expected state transition plus a timeline entry", "since": "v16", "status": "active", - "revision": 10, + "revision": 11, "priority": "P1", "surface": "mixed", "personas": ["dev admin (pending approver on the seeded requests; submitter of the invoice request)"], @@ -621,8 +627,8 @@ { "clause": "recall is submitter-only and moves pending→recalled; the approver's task disappears from the inbox", "oracle": "api", - "verify": "recall as submitter succeeds (status=recalled); recall attempted by a non-submitter is FORBIDDEN; 待我审批 no longer lists it", - "evidence": "reads + the denied call" + "verify": "recall as submitter succeeds (status=recalled). The denied leg names its persona, on a request still pending (e.g. the step-6 request after the reassign): a non-submitter who CAN read the request and holds no override, such as the pending approver the reassign named, with their own token, answers 403 FORBIDDEN and the request re-reads pending; a member who cannot read it (not the submitter, on no slot, never acted on it) answers 404 REQUEST_NOT_FOUND, the answer an id naming no request gets (packages/plugins/plugin-approvals/src/approval-service.ts#refuseUnreadableRequest, asked before the submitter check, so the request's existence never leaks). ⛔ Not the dev admin: the override recalls a PENDING request by design (#3424), so the admin's recall succeeds and proves nothing about this gate. 待我审批 no longer lists the recalled request", + "evidence": "reads + the denied calls (the reader's 403 body and the non-reader's 404 body)" }, { "clause": "non-finalizing actions mutate only what they own: reassign swaps the slate slot to the target user; remind/request-info/comment leave status=pending and touch nothing but the timeline", @@ -695,6 +701,12 @@ "date": "2026-10-27", "change": "acceptance[9] made scorable (#26621, the maintainer's 「补测试数据配方。立卡」): fixtures.provisioning opts into the new area recipe qa-cross-org-request, knownGaps[0] is rewritten as CLOSED-by-recipe, acceptance[9].verify and evidence name the cross-organization request in place of the org-less one, steps gains the read-back step, and source cites findRequestRow. The clause sentence is unchanged; its verify named a state that no longer exists, since organization_id is NOT NULL on the approval tables (ADR-0131). Re-driven once on the recipe at main 74db43ef, on a fresh group-posture boot: deciding the second organization's request while narrowed to the Default Organization answered 500 READ_BACK_FAILED with the recorded-write text and the remedy, and the matching-organization re-read showed status approved and the approve action row. Verdict: pass", "ref": "#26621" + }, + { + "revision": 11, + "date": "2026-11-14", + "change": "acceptance[6] (verify, evidence) names the persona of the denied recall (under-specified, card #33275, the sibling half of #33060). 'A non-submitter is FORBIDDEN' held for one persona only: recall asks ApprovalService.refuseUnreadableRequest (packages/plugins/plugin-approvals/src/approval-service.ts) before its submitter check, so a non-submitter who can read the request (a pending approver) answers 403 FORBIDDEN, while a member who cannot read it answers 404 REQUEST_NOT_FOUND, exactly as a missing id. The verify now states both legs and excludes the dev admin, whose override recalls a pending request by design (#3424) and so would read as the gate failing. The clause sentence is unchanged. negative[2] is unchanged and still right: it fails any accepted POST from an actor the service should deny, whatever status the refusal carries. Read from source at base 87330e89, not driven live", + "ref": "#33275" } ] }, @@ -1772,7 +1784,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": 5, + "revision": 6, "priority": "P1", "surface": "mixed", "personas": [ @@ -1806,8 +1818,8 @@ { "clause": "the request page carries record:approval_decision and the reply lands in the timeline (pending approver or submitter only)", "oracle": "api", - "verify": "page body (GET /api/v1/meta/page/sys_approval_request_detail) + the reply's HTTP legs: as the pending approver and as the submitter, POST /api/v1/approvals/requests/ID/comment {comment}, then GET /:id/actions — one comment row each; as the org member (neither), the same POST answers 403 FORBIDDEN and no row lands. No pin in automated.ref holds either half (RUNNER rule 6): approval-service.test.ts's 'comment: submitter and approver may reply; outsiders may not' and 'a reply the route admits is a comment row on the request timeline, attachments included' hold both at the service layer over a fake engine — evidence of that layer only, so the live legs score the clause", - "evidence": "the page excerpt + the timeline reads + the member's refused POST" + "verify": "page body (GET /api/v1/meta/page/sys_approval_request_detail) + the reply's HTTP legs: as the pending approver and as the submitter, POST /api/v1/approvals/requests/ID/comment {comment}, then GET /:id/actions — one comment row each; as the org member (neither approver nor submitter, and never acted on the request), the same POST answers 404 with code REQUEST_NOT_FOUND, the answer an id naming no request gets, and no row lands: the member cannot read the request (the record-reader tier is off, since no showcase object declares enable.approvalsVisibleToReaders), and packages/plugins/plugin-approvals/src/approval-service.ts#refuseUnreadableRequest answers such a caller before the slot check, so the request's existence never leaks. 403 FORBIDDEN (\"is not on this request\") is the answer to a caller who CAN read the request and is neither a pending approver nor the submitter, e.g. a past actor whose slot has moved on, or a plain record reader on an object that declares the flag (step 3's scratch object); the stock member is not one, so its 404 is the clause holding, not a FAIL. No pin in automated.ref holds either half (RUNNER rule 6): approval-service.test.ts's 'comment: submitter and approver may reply; outsiders may not' (the outsider's REQUEST_NOT_FOUND), 'every caller shape: the button shows exactly when the route admits the post' (a stranger's REQUEST_NOT_FOUND beside the override admin's FORBIDDEN) and 'a reply the route admits is a comment row on the request timeline, attachments included' hold both at the service layer over a fake engine — evidence of that layer only, so the live legs score the clause", + "evidence": "the page excerpt + the timeline reads + the member's refused POST (its 404 body)" }, { "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", @@ -1872,6 +1884,12 @@ "date": "2026-10-31", "change": "acceptance[2], its verify, steps[2] and the request-read-gate pin's claim in automated.ref now say whom the 404 binds. QA run #27409 measured every non-admin, participants included, refused 403 PERMISSION_DENIED on /api/v1/data/sys_approval_request on the stock showcase. That is by design: the object is engine-owned (ADR-0103, enable.apiMethods get and list in sys-approval-request.object.ts), no stock permission set grants a non-admin read, and the console request page reads only the approvals API. The pin mounts no security plugin, so its callers all hold read. The 404 and total leg now binds a caller the app grants read, and the no-grant caller's 403 with no row is its own leg. Neither leg is looser than the old clause, which no stock persona could reach. Read from source at base 22ce3d13. Wave anchor #27377, wave-3 accuracy slice S5 (#28339); finding parked in anchor comment 6488948228", "ref": "#27409" + }, + { + "revision": 6, + "date": "2026-11-14", + "change": "acceptance[1] (verify, evidence) re-pointed: the org member's comment POST answers 404 REQUEST_NOT_FOUND, not 403 FORBIDDEN (stale spec, card #33275, the sibling half of #33060). comment reads its row through loadPendingRow, which asks ApprovalService.refuseUnreadableRequest (packages/plugins/plugin-approvals/src/approval-service.ts) before the slot check, so a caller who may not READ the request is answered as for a missing id and its existence never leaks. The stock member is no participant and the record-reader tier is off, so it reads nothing; FORBIDDEN 'is not on this request' is for a reader who is neither a pending approver nor the submitter. The verify's service-layer evidence now names what approval-service.test.ts holds: the outsider's and the stranger's REQUEST_NOT_FOUND. The clause sentence is unchanged. Read from source at base 87330e89, not driven live", + "ref": "#33275" } ] }, From b4df2eaa6f999aeecd7f87f7a68d7b67c694e22a Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 18:29:05 +0000 Subject: [PATCH 2/3] qa(checklist): re-point 36 stale access-security, api-backend and approvals items to what main does Each item's text is re-read from source on main and re-pointed where the v18.4.0 sweep found it stale: the refusal codes and statuses a caller now meets, the doors a console click actually posts, the app a request page opens under, the runtime fixtures a run needs, and counts that grew (route ledgers, retired definitions). Two negatives read the design now: the status mirror's user-less cascade fails only if its data operation lands, and a forged delegation may be refused at the object gate as well as by the delegation guard. One revision bump and one history row per item. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F --- .../areas/access-security.json | 204 +++++++++++++----- .../platform-checklist/areas/api-backend.json | 112 +++++++--- .../platform-checklist/areas/approvals.json | 135 ++++++++---- 3 files changed, 316 insertions(+), 135 deletions(-) diff --git a/docs/qa/platform-checklist/areas/access-security.json b/docs/qa/platform-checklist/areas/access-security.json index 09e31318279..f3ad2968ca8 100644 --- a/docs/qa/platform-checklist/areas/access-security.json +++ b/docs/qa/platform-checklist/areas/access-security.json @@ -404,7 +404,7 @@ "title": "A read-only package actually locks Studio editing surfaces", "since": "v16", "status": "active", - "revision": 5, + "revision": 6, "priority": "P2", "surface": "mixed", "personas": [ @@ -427,7 +427,7 @@ { "clause": "the read-only badge renders AND the controls are actually disabled — checkboxes/Save inert, edit affordances absent", "oracle": "dom", - "verify": "after screenshot confirms render, assert disabled state on the controls (a badge alone is not a lock)", + "verify": "after screenshot confirms render, assert disabled state on the controls (a badge alone is not a lock). The object designer's Form tab is the designed exception: on a read-only base it stays editable and saves the form view as a declared override in the base's .custom pair, not into the base (ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx formViewReadOnly; ADR-0146 D2), so editable Form-tab controls are not a FAIL; they are inert only when the pair is walled or no form view is chosen", "evidence": "screenshot + disabled-state DOM read" }, { @@ -493,6 +493,12 @@ "date": "2026-10-16", "change": "step 5 names the two shapes the writable contrast needs (#23878 checklist-accuracy finding, re-measured on main c91af8ed6): POST /api/v1/packages answers 400 VALIDATION_ERROR ('manifest.type: Invalid option …') without a manifest `type` and 201 with type 'app' (scope project; the install echoes a derived namespace), and an object authored into the scratch base answers 422 INVALID_METADATA, rule security-owd-unset, without a sharingModel and 200 with one. The forged write on the packaged object still answers 403 (NOT_OVERRIDABLE bare, ITEM_LOCKED with ?package=com.example.showcase) and leaves its document byte-identical", "ref": "#24036" + }, + { + "revision": 6, + "date": "2026-11-14", + "change": "acceptance[0].verify re-pointed (card #33332; QA run #33094 comment 6852480973): the run found the Form tab editable on a read-only base. That is by design: StudioDesignSurface.tsx makes the Form tab read-only only when no form view is chosen or the pair is walled, because its save lands as a declared override in the base's .custom pair (ADR-0146 D2), never in the base. The verify now names that exception so it is not scored as the lock failing. The clause is unchanged. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -1785,7 +1791,7 @@ "title": "A public form's withdrawal holds across the layers of the environment's definition: an administrator's save is environment-wide whatever organization is active and its withdrawal closes the form, a withdrawal in any package's body of the view name closes it in every package, only an explicit false withdraws, a package's shipped false withdraws, and the package-less environment-wide copy may open a form a package ships closed", "since": "v17.7", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "api", "personas": [ @@ -1807,9 +1813,9 @@ "steps": [ "boot showcase on a fresh DB you own, on the stock posture; sign in as the admin. Read GET /api/v1/auth/get-session and record session.activeOrganizationId as ORG (the Default Organization); if it is null, read the one sys_organization row as the admin and set it active. Keep ORG active for every save below: the item asserts that the save is environment-wide all the same", "the probe, anonymous, from a client with no cookie jar and no Authorization header: GET /api/v1/forms/contact-us, then POST /api/v1/forms/contact-us/submit with name set to a fresh unique marker, plus email and message; capture each status and body code. Then, as the admin, count the showcase_inquiry rows carrying that marker (GET /api/v1/data/showcase_inquiry?name=MARKER). Baseline: run the probe once on the stock form (open: 200, 201, one row)", - "as the admin, GET /api/v1/meta/view/showcase_inquiry.contact and keep the item with every key that starts with '_' removed. Every save below PUTs this body back to the same path and changes only config.sharing", - "withdrawal from an organization-active session: with ORG active, PUT the body with config.sharing.allowAnonymous false, publicLink kept; capture the status and the save response's message, which names the scope the row landed in; run the probe. Then set-active null, GET the item and record its config.sharing (the withdrawal is the environment's, so it is served here too), and set-active ORG again", - "control, open: with ORG active, PUT the body with allowAnonymous true (the stock sharing); run the probe, and as the admin read the landed row's organization_id", + "as the admin, GET /api/v1/meta/view/showcase_inquiry.contact and keep the item with every key that starts with '_' removed. Every save below goes into the showcase's customization pair, per RUNNER.md's standing fact 'Customizing a view … goes into its pair': POST /api/v1/packages/com.example.showcase/ensure-customization once (201, then 200), then each save PUTs this body plus overrides: { package: 'com.example.showcase', basedOn: '0.1.0' } to the same path with ?package=com.example.showcase.custom, changing only config.sharing (the dogfood pin saves the same way, customization-pair.js). A PUT naming no package onto this shipped view answers 403 NOT_OVERRIDABLE naming the pair (ADR-0146 D11, packages/metadata-protocol/src/protocol-packaged-base-refusal.ts#packagelessOverlayWriteRefusal): the save never reached a layer, so it proves nothing here. Teardown on a shared boot: DELETE the same path with ?package=com.example.showcase.custom", + "withdrawal from an organization-active session: with ORG active, save the body into the pair (step 3) with config.sharing.allowAnonymous false, publicLink kept; capture the status and the save response's message, which names the scope the row landed in; run the probe. Then set-active null, GET the item and record its config.sharing (the withdrawal is the environment's, so it is served here too), and set-active ORG again", + "control, open: with ORG active, save the body into the pair (step 3) with allowAnonymous true (the stock sharing); run the probe, and as the admin read the landed row's organization_id", "run the pins named in automated.ref; acceptance[2] to acceptance[5] are scored from the rest, metadata-protocol and metadata-core files" ], "acceptance": [ @@ -1853,7 +1859,7 @@ "negative": [ "a 200 or 201, or a landed row, at either door after step 4's withdrawal is a FAIL: the environment-wide withdrawal did not hold (the #21835 class, a layer re-opening a withdrawn form)", "a step 4 save that answers 200 but names org=ORG, or a no-organization read that still serves allowAnonymous true, is a FAIL of ADR-0131 D6: an administrator's save lands environment-wide whatever organization is active", - "a 403 to the save in step 4 or step 5 on the stock boot is a FAIL (the dogfood pin saves the same body with 200); read its message before attributing it: one naming an organization means the save reached the protocol organization-scoped, which no /meta door may hand it", + "a 403 to the save in step 4 or step 5 on the stock boot is a FAIL (the dogfood pin saves the same body with 200); read its message before attributing it: one naming the pair com.example.showcase.custom (403 NOT_OVERRIDABLE, ADR-0146 D11) means the save named no package, a runner slip, so re-save into the pair per step 3; one naming an organization means the save reached the protocol organization-scoped, which no /meta door may hand it", "a door probed with the admin's cookie or bearer token scores the admin, not the public: re-run it anonymously (auth-state-leak)", "acceptance[2] to acceptance[5] scored from the stock boot prove nothing: the showcase ships the form from one package, so no second body of the name exists to compose. Score them from their pins", "an organization-scoped metadata row met on the boot is an environment fault (knownGaps, first entry), not a FAIL of this item" @@ -1905,6 +1911,12 @@ "date": "2026-10-27", "change": "Access-security pin upgrade, slice 2 (#26571; Tier 1 record #26468 scored the item PARTIAL). Pinned at the api oracle's layer (in-process HTTP) in showcase-public-form-withdrawal-layers: step 4's no-organization read (set-active null, the /meta view read serves allowAnonymous false with the link kept, then the organization is made active again), which closes acceptance[0]'s live leg; and negative[1]'s save message, asserted to name no organization id. acceptance[2] to acceptance[5] stay test-scored (no stock fixture). No clause or status changed", "ref": "#26571" + }, + { + "revision": 6, + "date": "2026-11-14", + "change": "steps[2]–[4] and negative[2] re-pointed (stale spec, card #33332; QA run #33081 comment 6850173588): the steps PUT the shipped view showcase_inquiry.contact with no ?package=, which since ADR-0146 D11 answers 403 NOT_OVERRIDABLE naming the pair (protocol-packaged-base-refusal.ts packagelessOverlayWriteRefusal); the dogfood pin saves into the .custom pair (customization-pair.js). The steps now follow RUNNER.md's customization-pair recipe (ensure-customization, PUT ?package=com.example.showcase.custom with overrides, DELETE to revert), and negative[2] tells that refusal apart from a FAIL. No clause changed: the save still lands environment-wide and its withdrawal still closes both doors. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -1913,7 +1925,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": 7, + "revision": 8, "priority": "P2", "surface": "api", "personas": [ @@ -1925,7 +1937,7 @@ "app": "showcase", "requires": [ "an object declaring publicSharing { enabled:true, allowedAudiences, allowedPermissions, redactFields } with at least one visible record — REQUIRED to mint any link", - "showcase_client_brief is that object since #9308 fixture 2: publicSharing { enabled:true, allowedAudiences ['link_only','signed_in','email'], allowedPermissions ['view'], maxExpiryDays 30, redactFields ['internal_notes','deal_value'], eligibility \"record.status == 'published'\" }. The minter persona is a member holding showcase_client_liaison (bound to the showcase_client_liaison position); the seed carries a PUBLISHED brief ('Northwind — Website Relaunch brief', mint-eligible) and a DRAFT one ('Fabrikam — Compliance Audit brief', which the eligibility predicate refuses 422 RECORD_NOT_ELIGIBLE)" + "showcase_client_brief is that object since #9308 fixture 2: publicSharing { enabled:true, allowedAudiences ['link_only','signed_in','email'], allowedPermissions ['view'], maxExpiryDays 30, redactFields ['internal_notes','deal_value'], eligibility \"record.status == 'published'\" }. The minter persona is a member holding showcase_client_liaison (bound to the showcase_client_liaison position). No stock user holds that position, so mint the persona: as the admin, POST /api/v1/data/sys_user_position {user_id: 'usr_showcase_phone_demo', position: 'showcase_client_liaison'} (examples/app-showcase/src/security/demo-personas.ts PHONE_DEMO_USER, positions.ts), then sign in as phone.demo@example.com with the demo persona password (DEMO_PERSONA_PASSWORD); the seed carries a PUBLISHED brief ('Northwind — Website Relaunch brief', mint-eligible) and a DRAFT one ('Fabrikam — Compliance Audit brief', which the eligibility predicate refuses 422 RECORD_NOT_ELIGIBLE)" ], "knownGaps": [ "[CLOSED by #9308 fixture 2 — the gap text stays because it carries the reason] NO stock showcase object set publicSharing.enabled (verified across examples/app-showcase/src), so createLink answered 422 SHARING_NOT_ENABLED for every showcase object and only the SHARING_NOT_ENABLED clause was runnable; the resolve/redact/password/revoke clauses were BLOCKED. showcase_client_brief now opts in (see requires). NOTE the negative control did NOT move: every OTHER showcase object still declines the opt-in, so clause 1's 422 is still runnable — probe it against showcase_private_note, not against the new object", @@ -1934,7 +1946,7 @@ ] }, "steps": [ - "STOCK-RUNNABLE probe: as a member, POST /api/v1/share-links {\"object\": \"showcase_private_note\", \"recordId\": \"\"} — capture the 422 SHARING_NOT_ENABLED that proves the block (no showcase object opts in)", + "STOCK-RUNNABLE probe: as a member, POST /api/v1/share-links {\"object\": \"showcase_private_note\", \"recordId\": \"\"} — capture the 422 SHARING_NOT_ENABLED that proves the block (no showcase object but showcase_client_brief opts in). The member needs a note first: POST /api/v1/data/showcase_private_note as that member, and use its id", "with a publicSharing-enabled fixture object F (redactFields declared): as a member who can see a record r of F, POST /api/v1/share-links {object:F, recordId:r, redactFields?, audience?, password?, expiresAt?} — capture the 201 {token}", "anon GET /api/v1/share-links//resolve — capture the 200 {record, link, redactFields}; confirm every field in F.publicSharing.redactFields ∪ link.redact_fields is absent from record", "mint a password-gated link; anon resolve WITHOUT ?password / x-share-password header → 401; with a WRONG password → 401; with the correct password → 200", @@ -2082,6 +2094,12 @@ "date": "2026-10-16", "change": "two clauses re-pointed to the measured answers on main c91af8ed6 (#23878 checklist-accuracy finding; #23879 out_of_scope_findings). (1) clause 9 demanded EXACTLY 'Vary: X-Share-Password, X-Share-Password-Encoding'; every public outcome (200, 401 x2, 404, 410, the /messages 400 UNSUPPORTED) answers 'X-Share-Password, X-Share-Password-Encoding, Origin' with no-store, because the CORS middleware appends Origin, and the authenticated create, list and revoke answer Vary: Origin only — the clause now asserts the two share-password members are INCLUDED and no-store present, which still fails if either is dropped. (2) the email-audience leg (step 5, clause 4) now states the v18 answer: a caller off the allowlist, anonymous or signed in, gets 404 INVALID_OR_EXPIRED byte-identical to an unknown token, and the mint needs emailAllowlist; combined audience + password links are pointed at access-security.share-link-combined-gates", "ref": "#24036" + }, + { + "revision": 8, + "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" } ] }, @@ -2090,7 +2108,7 @@ "title": "Suggested audience bindings reconcile; a manage_metadata holder's accept takes effect for every member and a revoke undoes it; bad states 404/409/400, tenant admins and non-admins are refused", "since": "v16", "status": "active", - "revision": 3, + "revision": 4, "priority": "P2", "surface": "api", "personas": [ @@ -2107,7 +2125,7 @@ "a boot with a VANILLA SecurityPlugin, so showcase_member_default is a package suggestion and not the configured baseline (packages/qa/dogfood/test/suggested-binding-acceptance.dogfood.test.ts boots it so)" ], "knownGaps": [ - "on a stock CLI boot the served app's own isDefault set IS the baseline: the everyone definition names showcase_member_default from boot, so the list shows it 'confirmed' with no resolver (observed) and offers no pending row. The pending loop needs the vanilla-plugin boot above, or an installed package declaring an isDefault set" + "on a stock CLI boot the served app's own isDefault set IS the baseline: the everyone definition names showcase_member_default from boot, so the list shows it 'confirmed' with no resolver (observed) and offers no pending row. The pending loop needs the vanilla-plugin boot above, or an installed package declaring an isDefault set: e.g. a one-object scratch package (com.qa.decl) with an isDefault set, built with objectstack build and installed into a SCRATCH COPY of the showcase only (QA run #33081), never the shared tree" ] }, "steps": [ @@ -2166,8 +2184,8 @@ } ], "negative": [ - "an accept of a set carrying a bit the everyone anchor forbids (ADR-0090 D7) must be refused 403 PERMISSION_DENIED and leave the row pending — never silently accepted", - "a tenant administrator's accept must never widen everyone; under a walled posture only the platform operator may accept", + "an accept of a set carrying a bit the everyone anchor forbids (ADR-0090 D7) must be refused 403 PERMISSION_DENIED and leave the row pending — never silently accepted. No package a run can build reaches it: os build refuses an isDefault set carrying such a bit (security-anchor-high-privilege, packages/lint/src/validate-security-posture.ts), so it is scored from the registry-seam pin packages/plugins/plugin-security/src/suggested-audience-bindings.test.ts ('refuses a set carrying anchor-forbidden bits — 403, nothing recorded (ADR-0090 D7)')", + "a tenant administrator's accept must never widen everyone; under a walled posture only the platform operator may accept (that half needs a walled boot, provisioned per RUNNER.md's 'A walled boot is a fixture of its own'; without one record it blocked(fixture))", "do not tick the pending loop on a stock CLI boot — the served app's set is the baseline there and no row is pending; use the vanilla-plugin boot, or record blocked" ], "traps": [ @@ -2200,6 +2218,12 @@ "date": "2026-10-11", "change": "rewritten for the deployment-level acceptance (#22801 → A): a manage_metadata holder's accept re-derives the everyone definition and takes effect (member read 403 → 200), a dismiss on an accepted row revokes it, a tenant administrator is refused; the reconcile reads the everyone definition, not a binding row; the knownGap is now the stock CLI boot, where the served app's set is the baseline", "ref": "#15204" + }, + { + "revision": 4, + "date": "2026-11-14", + "change": "fixtures.knownGaps[0], negative[0] and negative[1] re-pointed (fixture text, card #33332; QA run #33081 comment 6850173588). knownGaps[0] names the scratch-package recipe the run used for a pending row (com.qa.decl with an isDefault set, installed into a scratch copy). negative[0] is unreachable from a buildable package, because os build refuses an isDefault set with an everyone-forbidden bit (validate-security-posture.ts security-anchor-high-privilege), so it is scored from suggested-audience-bindings.test.ts. negative[1]'s walled half names the walled-boot fixture. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -2448,7 +2472,7 @@ "title": "A package-declared capability is served by the registry (no sys_capability row — the object is retired, ADR-0131 D3) and resolves across the grant/require three-way (ADR-0066) on the PLATFORM action path; platform names cannot be shadowed", "since": "v17", "status": "active", - "revision": 7, + "revision": 8, "priority": "P1", "surface": "mixed", "personas": [ @@ -2460,7 +2484,7 @@ "app": "showcase", "requires": [ "the shipped capability declaration examples/app-showcase/src/security/capabilities.ts (showcase.export_data, org-scoped, defineCapability) — the DEFINE side of ADR-0066", - "OpsPermissionSet granting it via systemPermissions (examples/app-showcase/src/security/permission-sets.ts) — the GRANT side. showcase_ops is a packaged set and SEALED: PUT /api/v1/meta/permission/showcase_ops answers 403 NOT_OVERRIDABLE (ADR-0126), so the REGRANT leg edits a CLONE of it — POST /api/v1/security/permission-sets/showcase_ops/clone {\"name\": \"\", \"label\": \"\"} (label is mandatory: a clone without one answers 400 VALIDATION_FAILED) carries showcase.export_data, no package, and is runtime-editable", + "OpsPermissionSet granting it via systemPermissions (examples/app-showcase/src/security/permission-sets.ts) — the GRANT side. showcase_ops is a packaged set and SEALED: PUT /api/v1/meta/permission/showcase_ops answers 403 NOT_OVERRIDABLE (ADR-0126), so the REGRANT leg edits a CLONE of it — POST /api/v1/security/permission-sets/showcase_ops/clone {\"name\": \"\", \"label\": \"\"} (label is mandatory: a clone without one answers 400 VALIDATION_FAILED) carries showcase.export_data, lands in the showcase's paired customization package com.example.showcase.custom (the clone door's package rule: a source shipped by a read-only package X lands in X.custom, packages/runtime/src/domains/permission-set-clone.ts; GET /api/v1/meta/permission/NAME reads _packageId com.example.showcase.custom), and is runtime-editable", "the shipped REQUIRE-side specimens examples/app-showcase/src/ui/actions/predicate-matrix.action.ts: showcase_zoo_perm_held (requires showcase.export_data — the GRANTED capability), showcase_zoo_perm_missing (requires showcase.restricted_ops — DEFINED but granted to nobody), showcase_zoo_perm_and (requires BOTH — the gate is an AND), showcase_zoo_perm_empty (requiredPermissions:[] — always passes). All four are type:'script' on the **showcase_field_zoo** object (predicate-matrix.action.ts binds objectName to a local const zoo = 'showcase_field_zoo' — `zoo` is the TS variable, never the object name), so the platform action path can invoke them" ], "knownGaps": [ @@ -2564,6 +2588,12 @@ "date": "2026-10-26", "change": "One checklist-accuracy finding of manual-set record #25817, re-read on main b4199c96: steps[7] expected `capabilities.0.scope`, but the located path carries the raw entry's index, `.2` when the scratch entry is appended after the showcase's two capabilities. The step now says so. The record's second line (surface `mixed` yet no browser oracle) is not applied: in this ledger `mixed` names an item driven on more than one execution surface, browser or not (31 other active mixed items carry no screenshot or dom oracle), and this item is driven over the API and the build / CLI. No clause or status changed", "ref": "#25835" + }, + { + "revision": 8, + "date": "2026-11-14", + "change": "fixtures.requires[1] re-pointed (stale spec, card #33332; QA runs #33048 comment 6846028996 and #33094 comment 6852480973): the clone of showcase_ops was said to carry no package, but the clone door lands a copy of a read-only package's set in that package's .custom pair (permission-set-clone.ts, ADR-0146 D6), so it reads _packageId com.example.showcase.custom. It stays runtime-editable, which is all the regrant leg needs. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -2572,7 +2602,7 @@ "title": "A session with no active organization is a LEGAL state with fail-closed semantics: tenant-scoped reads resolve to nothing, tenant-scoped writes are refused loudly naming the missing org, and nothing is ever NULL-stamped", "since": "v17", "status": "active", - "revision": 10, + "revision": 11, "priority": "P0", "surface": "api", "personas": [ @@ -2606,7 +2636,7 @@ "repeat the read and the write against a NON-tenant-scoped object to bound the blast radius", "sign in and out with the state in force, then inspect the audit ledger rows the session produced (plugin-audit auth-session-audit login/logout)", "run the same read+write as the control admin persona to show the refusal is state-derived, not a blanket denial", - "walled `group` leg (acceptance[7]), on a walled boot with OS_TENANCY_POSTURE=group provisioned per RUNNER.md's 'A walled boot is a fixture of its own': a member of organization A (non-empty membership set) sets A active with POST /api/v1/auth/organization/set-active, creates a showcase_account and a showcase_project in A, then clears it with POST /api/v1/auth/organization/set-active {organizationId: null} and proves the state (GET /api/v1/auth/get-session reads session.activeOrganizationId null). As that member, POST /api/v1/data/showcase_task {title, project: the project in A}; take the admin-side count of showcase_task rows whose organization_id is NULL or empty before and after, and read back any row the create produced" + "walled `group` leg (acceptance[7]), on a walled boot with OS_TENANCY_POSTURE=group provisioned per RUNNER.md's 'A walled boot is a fixture of its own': a member of organization A (non-empty membership set) sets A active with POST /api/v1/auth/organization/set-active; the operator creates a showcase_project in A (the member's baseline set, showcase_member_default, grants no create on showcase_project or showcase_account, so a member create there is the generic 403 PERMISSION_DENIED, mistakable for the org refusal); the member then clears it with POST /api/v1/auth/organization/set-active {organizationId: null} and proves the state (GET /api/v1/auth/get-session reads session.activeOrganizationId null). Clear it in the session the leg then uses: a fresh sign-in starts with an active organization again (QA run #33087). As that member, POST /api/v1/data/showcase_task {title, project: the project in A} (project is required, a master-detail field) — or showcase_private_note, which the member may create with no parent; take the admin-side count of showcase_task rows whose organization_id is NULL or empty before and after, and read back any row the create produced" ], "acceptance": [ { @@ -2636,7 +2666,7 @@ { "clause": "the audit ledger is read through object permission, not through the wall (ADR-0131 D7): the login/logout rows the session produced exist in sys_audit_log, a deployment-level ledger (systemFields: { tenant: false }) whose tenant_id is a plain attribution field that keeps its NULL arm by design (D7's 2026-10-22 note) and that ADR-0131 D9's no-NULL rule does not reach ('column ⇒ in scope'). The platform operator, who holds object permission on the ledger, reads every such row, a NULL-attributed one included; the session's own user, who holds none, is refused 403 by object permission. Whether a row from this state must carry an organization attribution is open (fixtures.knownGaps[3]) and is not scored here", "oracle": "api", - "verify": "as the platform operator, read sys_audit_log filtered by the user's user_id (GET /api/v1/data/sys_audit_log): 200, returning every login/logout row the session produced, each row's tenant_id quoted (NULL or an organization id). A row present in the raw table that the operator's read does not return is a FAIL even though nothing errored. As the session's own user, the same read answers 403 by object permission: a 5xx, or rows of another user, is a FAIL. A NULL tenant_id on such a row is not by itself a FAIL: record it beside the verdict with the producer it came from and knownGaps[3]'s question", + "verify": "as the platform operator, read sys_audit_log filtered by the user's user_id (GET /api/v1/data/sys_audit_log): 200, returning every login/logout row the session produced, each row's tenant_id quoted (NULL or an organization id). The raw table is in the telemetry datasource, not the main file DB: os dev provisions a dedicated telemetry datasource (a sibling TELEMETRY_DB file beside the main DB) and the audit writers route sys_audit_log there (packages/plugins/plugin-audit/src/audit-writers.ts), so read the raw rows from that file. A row present in the raw table that the operator's read does not return is a FAIL even though nothing errored. As the session's own user, the same read answers 403 by object permission: a 5xx, or rows of another user, is a FAIL. A NULL tenant_id on such a row is not by itself a FAIL: record it beside the verdict with the producer it came from and knownGaps[3]'s question", "evidence": "raw rows with tenant_id + the operator's read of the same rows + the user's 403 envelope" }, { @@ -2736,6 +2766,12 @@ "date": "2026-11-10", "change": "Stale-spec re-point of acceptance[4] and acceptance[6] to ADR-0131 D7/D9, from QA run #32102 (ff04ad81, repro rule R-1), which scored both FAIL on walled group and isolated boots: a member that cleared its active organization signs out and its logout row carries tenant_id NULL, which the operator reads (200) and the member is refused (403, object permission). acceptance[4]'s clause read 'no audit row is NULL-tenanted and therefore permanently invisible to RLS readers (#8245)', written when the ledger was walled; D7 makes sys_audit_log a deployment-level ledger governed by object permission, not by the wall, its 2026-10-22 note keeps tenant_id's NULL arm by design, and D9 scopes the no-NULL rule to tenant-column objects. The clause, verify and evidence now name who must read the row (the operator, 200) and who is refused (the user, 403 by object permission), and a NULL attribution is recorded with the open question rather than scored. acceptance[6] states that the ledger's NULL attribution is not a subsystem disagreement under D7. fixtures.knownGaps[3] extends the open question (may such a row carry a NULL attribution, and must it?) to producer (2), with R-1's rows and mechanism; the question is carried to the maintainer by #32111 and is not answered here. The blocked marker (#9334) is dropped: #32102 booted the stock showcase walled from the tree with the three variables exported and served every leg (RUNNER.md 'A walled boot is a fixture of its own'), and knownGaps[2] no longer says the item stays blocked or that no example app declares the multi-org runtime (examples/app-showcase declares it). knownGaps[4] and knownGaps[5] are dropped: #24784 closed (PR #24819) and #32102 measured it holding live on a walled group boot (acceptance[7] pass, the acceptance[1] 403 instead of the 500), the re-run both lines asked for. No other knownGaps index moved, and no cross-reference elsewhere named either line", "ref": "#32111" + }, + { + "revision": 11, + "date": "2026-11-14", + "change": "steps[8] and acceptance[4].verify re-pointed (card #33332; QA runs #32953 comment 6840054712, #33025 comment 6844741021, #33087 comment 6850382730, #33092 comment 6850793622). steps[8] had the member create a showcase_account and a showcase_project, but showcase_member_default grants neither create (examples/app-showcase/src/security/permission-sets.ts), so the member met the generic 403 PERMISSION_DENIED first, mistakable for the org refusal; the operator now creates the parent project, and the member's create is the showcase_task (project required, task.object.ts) or a showcase_private_note. The step adds that a fresh sign-in restores an active organization, so the clear is per session. acceptance[4]'s raw-row read now names the telemetry datasource sys_audit_log lives in (audit-writers.ts). No clause sentence changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -2744,7 +2780,7 @@ "title": "Activation-ledger write authority (ADR-0126 §5): the manage_metadata tier refuses first on every posture, and the shared operator gate — INERT on stock `single` — demands the platform_admin POSITION in walled postures, at both the flow and action doors", "since": "v17", "status": "active", - "revision": 12, + "revision": 13, "priority": "P1", "surface": "api", "personas": [ @@ -2771,7 +2807,7 @@ "as the plain member: POST /api/v1/automation/showcase_urgent_task_alert/toggle {\"enabled\": false} — capture status, code and the EXACT message string", "as the plain member: POST /api/v1/actions/_activation/showcase_task/showcase_mark_done {\"enabled\": false} — capture status, code and the exact message", "as the plain member again: repeat the flow toggle with a deliberately INVALID body (e.g. {\"enabled\": \"false\"}) — the refusal must still be the 403, not a 400 body-validation answer (the gate runs before body validation, automation.ts; activation-gate.ts)", - "GET /api/v1/data/sys_metadata_activation (reads are open — sys-metadata-activation.object.ts) and confirm no row for either artifact was written by the refusals", + "as the admin, GET /api/v1/data/sys_metadata_activation (the object admits get and list on the data API, apiMethods ['get','list'] in packages/platform-objects/src/system/sys-metadata-activation.object.ts, but that is the verb gate, not a grant: a plain member holds no read permission on the ledger and is answered 403) and confirm no row for either artifact was written by the refusals", "author the scratch manage_metadata permission set, grant it to a fresh member, and prove server-side that the member's positions do NOT include platform_admin (session row / GET /auth/get-session — never the grant gesture)", "as that member: POST /api/v1/automation/showcase_urgent_task_alert/toggle {\"enabled\": false} — expect 200; read the ledger row back (metadata_type 'flow', active false, and NO organization_id key on the row — the ledger carries no tenant column at all, #15024 / ADR-0131 D7); then re-enable ({\"enabled\": true}) to restore the fixture", "as the same member: POST /api/v1/actions/_activation/showcase_task/showcase_mark_done {\"enabled\": false} — expect 200 + the metadata_type 'action' row; re-enable to restore", @@ -2915,6 +2951,12 @@ "date": "2026-10-27", "change": "automated.kind unit -> dogfood (#26571 slice 3; the slice-2 ACCEPT noted it): revision 11's ref already leads with a dogfood pin over the in-process HTTP stack, with the unit pins beneath. No ref, clause or status changed", "ref": "#26571" + }, + { + "revision": 13, + "date": "2026-11-14", + "change": "steps[4] re-pointed (stale spec, card #33332; QA run #33025 comment 6844741021): it said ledger reads are open, citing sys-metadata-activation.object.ts, and a plain member's read answered 403. The object's apiMethods ['get','list'] only opens the verbs on the data API; object permission still decides who reads, and no stock member set grants it, so the no-row check is now the admin's read. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -3438,7 +3480,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": 7, + "revision": 8, "priority": "P2", "surface": "api", "personas": [ @@ -3502,7 +3544,7 @@ } ], "negative": [ - "an audit write must never break the read: reads answer 200 even when the ledger write fails — the failure is reported once per CAUSE with the durability text (read-audit.ts; #18247): a second, different cause reports again at error, and a repeat of a cause already reported degrades to debug. Rows are LOST, not retried. Observing that needs a broken ledger and is out of scope for a stock run; do not fabricate it", + "an audit write must never break the read: reads answer 200 even when the ledger write fails — the failure is reported once per CAUSE with the durability text (read-audit.ts; #18247): a second, different cause reports again at error, and a repeat of a cause already reported degrades to debug. Rows are LOST, not retried. Observing that needs a broken ledger and is out of scope for a stock run; do not fabricate it. It is scored from its unit pins, packages/plugins/plugin-audit/src/read-audit.test.ts ('a ledger write failure never reaches the read, and reports once at `error`' and the 'read-audit failure reporting — once per CAUSE' block), as negative[1] is; a live run that leaves it undriven cites them and does not hold the item back from a PASS on that account", "a read with no principal (no userId and no actor) lands no row — noise in the WHO ledger is refused by design (read-audit.ts)" ], "variants": [ @@ -3520,7 +3562,7 @@ ], "automated": { "kind": "dogfood", - "ref": "packages/qa/dogfood/test/record-view-read-audit.dogfood.test.ts (#26571) boots the showcase twice with the AuditPlugin serve would end up running (bootStack constructs none), reads rows through GET /data/sys_audit_log as the admin and keeps the 2 s flush. Stock (new AuditPlugin()): acceptance[0] — the boot log carries INFO lines and AuditPlugin lines (the positive control) and no 'record-view auditing installed' line; a member's GET /data/showcase_account/:id answers 200 and past the flush window the ledger holds no action 'read' row. Configured (readAudit.objects ['showcase_account', 'sys_job'], the docs' opt-in): acceptance[1] and [4] — one install line, 'on 1 object(s) — showcase_account', without sys_job, and the exclusion warning naming sys_job; acceptance[1] and [2] — one detail read lands exactly one row with action 'read', user_id = M, object_name, record_id, old_value and new_value null, and created_at inside the read's wall-clock window (before the flush could have run); acceptance[3] — a filtered LIST read that serves the record leaves the ledger count unchanged; acceptance[1] — an un-opted showcase_project detail read (200) lands no row. Unit pins beneath: packages/plugins/plugin-audit/src/read-audit.test.ts (discriminator, batching/flush, isSystem + no-principal skips, exclusion filter) + audit-plugin.test.ts. acceptance[5] stays test-scored; negative[0] needs a broken ledger and is out of scope for a stock run; negative[1] is the unit pin's no-principal skip; the cross-reference that was negative[2] is source[4]" + "ref": "packages/qa/dogfood/test/record-view-read-audit.dogfood.test.ts (#26571) boots the showcase twice with the AuditPlugin serve would end up running (bootStack constructs none), reads rows through GET /data/sys_audit_log as the admin and keeps the 2 s flush. Stock (new AuditPlugin(), which the pin constructs itself: that os serve / os dev auto-registers the plugin with no options is not in the pin and is the live leg's to show): acceptance[0] — the boot log carries INFO lines and AuditPlugin lines (the positive control) and no 'record-view auditing installed' line; a member's GET /data/showcase_account/:id answers 200 and past the flush window the ledger holds no action 'read' row. Configured (readAudit.objects ['showcase_account', 'sys_job'], the docs' opt-in): acceptance[1] and [4] — one install line, 'on 1 object(s) — showcase_account', without sys_job, and the exclusion warning naming sys_job; acceptance[1] and [2] — one detail read lands exactly one row with action 'read', user_id = M, object_name, record_id, old_value and new_value null, and created_at inside the read's wall-clock window (before the flush could have run); acceptance[3] — a filtered LIST read that serves the record leaves the ledger count unchanged; acceptance[1] — an un-opted showcase_project detail read (200) lands no row. Unit pins beneath: packages/plugins/plugin-audit/src/read-audit.test.ts (discriminator, batching/flush, isSystem + no-principal skips, exclusion filter) + audit-plugin.test.ts. acceptance[5] stays test-scored; negative[0] is scored from read-audit.test.ts (the write-failure and once-per-cause cases); negative[1] is the unit pin's no-principal skip; the cross-reference that was negative[2] is source[4]" }, "source": [ "packages/plugins/plugin-audit/src/read-audit.ts#READ_AUDIT_ACTION (READ_AUDIT_ACTION, installReadAuditWriter opt-in + exclusion filter, extractDetailReadId, buildRow nulls + view instant, isSystem/no-principal skips, batcher)", @@ -3571,6 +3613,12 @@ "date": "2026-11-01", "change": "negative[2] moved to source[4]: it was a scope note naming the items that own the neighbouring surfaces, which no run can decide, so it could only score skipped. Its text is unchanged, and automated.ref's closing note, which called negative[2] a cross-reference, now points at source[4]. Ruling 6545938831 item ① on #28345 (scope notes leave negative[], which keeps only decidable entries; the #27651 precedent). No clause changed. Wave anchor #27377", "ref": "#28345" + }, + { + "revision": 8, + "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" } ] }, @@ -3579,7 +3627,7 @@ "title": "The /s/:token share-link landing page renders the resolved record minus redacted fields, gates on password, and refuses dead links with designed states — never a blank page or a raw error", "since": "v16", "status": "active", - "revision": 6, + "revision": 7, "priority": "P2", "surface": "browser", "personas": [ @@ -3601,11 +3649,11 @@ }, "steps": [ "boot showcase with the console; as the liaison member mint the four tokens over the API (plain, password, audience:'signed_in', short-expiry); revoke a fifth after minting it", - "in a FRESH anonymous browser context open /s/: screenshot; then read the DOM — the page renders OUTSIDE the authenticated shell (App.tsx): 'Shared showcase_client_brief' header, the record body, and the hidden-fields notice naming the redaction set", + "in a FRESH anonymous browser context open /_console/s/ (the console, and so its /s/:token route in ui/apps/console/src/App.tsx, is served under /_console on a CLI-served boot, packages/cli/src/utils/console.ts CONSOLE_PATH; a bare /s/ is not a console path and answers the server's 404 JSON ENDPOINT_NOT_FOUND): screenshot; then read the DOM — the page renders OUTSIDE the authenticated shell (App.tsx): 'Shared showcase_client_brief' header, the record body, and the hidden-fields notice naming the redaction set", "capture the resolve network response for the same load and diff its record keys against the object's publicSharing.redactFields", - "open /s/: submit a wrong password, then the correct one; capture each round-trip", - "open /s/ and /s/; after the short-expiry link lapses, open it too; screenshot each terminal state", - "open /s/ anonymously (fresh context), then again as a member signed in through the console form (cookie + bearer both present)" + "open /_console/s/: submit a wrong password, then the correct one; capture each round-trip", + "open /_console/s/ and /_console/s/; after the short-expiry link lapses, open it too; screenshot each terminal state", + "open /_console/s/ anonymously (fresh context), then again as a member signed in through the console form (cookie + bearer both present)" ], "acceptance": [ { @@ -3706,6 +3754,12 @@ "date": "2026-10-27", "change": "fixtures.knownGaps[0], knownGaps[2] and automated.ref re-pointed off the retired objectui-repo wording: the three pins they name live in this checkout under ui/apps/console/src/pages/ and run from this tree at the run's framework sha, so knownGaps[0] no longer tells a runner they are unrunnable here (#26626, maintainer-directed). Measured revisions and historical objectui issue numbers kept. No clause changed, no status changed", "ref": "#26626" + }, + { + "revision": 7, + "date": "2026-11-14", + "change": "steps[1]–[5] re-pointed (stale spec, card #33332; QA run #33048 comment 6846028996): the page was written as /s/:token, but on a CLI-served boot the console is mounted at /_console (packages/cli/src/utils/console.ts CONSOLE_PATH), so the page is /_console/s/:token and a bare /s/ path answers 404 ENDPOINT_NOT_FOUND. The Sign-in link's basename-relative redirect round-trips correctly and acceptance[3] is unchanged. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -3826,11 +3880,11 @@ "title": "Under a walled posture (group / isolated) environment metadata and the security catalog belong to the platform operator: an org owner holding manage_metadata is refused 403 on every /meta write verb, every /packages write, install-local of a catalog-carrying package, _migrate-stored and POST /automation — and the single posture is unchanged", "since": "v18", "status": "active", - "revision": 8, + "revision": 9, "priority": "P0", "surface": "api", "personas": [ - "org owner holding manage_metadata who is NOT platform admin — walled-posture legs only", + "org owner holding manage_metadata who is NOT platform admin — walled-posture legs only. The owner also holds organization_admin in its own organization from the moment it owns it (a sys_user_permission_set row whose reason reads 'auto-org-admin-grant: granted from membership grade owner', auto-org-admin-grant.ts); that is expected and still not platform admin, so record both grants", "platform operator (holds the platform_admin position) — only for the walled-posture legs", "seeded admin (admin@objectos.ai / admin123) — the Default Organization owner and platform admin on a fresh boot" ], @@ -3839,10 +3893,10 @@ "requires": [ "a fresh boot of the showcase: `pnpm dev -- --fresh -p PORT --seed-admin` (ephemeral DB; the seeded admin is printed). That default `os dev` first compiles objectstack.config.ts into the app's own dist/objectstack.json (packages/cli/src/commands/dev.ts, the `compile` flag, default on), so when several runners boot from one shared checkout, boot with `pnpm -C examples/app-showcase exec objectstack dev --fresh --no-compile -p PORT` instead: --no-compile serves the existing artifact as built (it still compiles when the artifact is missing, and warns when the artifact is older than the sources), so one compile boot beforehand keeps it current and no concurrent boot rewrites it (QA run #27481)", "a second boot with OS_TENANCY_POSTURE=isolated (walled posture) on its own port and file DB — the stock single posture leaves every walled clause vacuous, so confirm the posture from the boot log before scoring", - "on the walled boot: a second organization whose owner is granted manage_metadata but not the platform_admin position. No HTTP door places that grant on a walled boot (QA run #24783): the operator's insert into an organization it is not a member of is refused by the Layer 0 tenant check, 403 '… organization_id is outside the caller's organization scope' (packages/plugins/plugin-security/src/security-plugin-write-tenant-wall.ts#denyTenantPlacement), and the owner's own insert is refused by ADR-0090 D12 condition (c), because manage_metadata is declared scope 'platform' (packages/spec/src/security/capabilities.ts; packages/plugins/plugin-security/src/delegated-admin-gate.ts#organizationBoundaryFailure). The recipe is the dogfood harness's: the operator saves a permission set carrying systemPermissions ['manage_metadata'], and the grant row {user_id, permission_set, organization_id} is a system-context engine insert stamped with that organization, as packages/qa/dogfood/test/wall-environment-metadata-refusal.dogfood.test.ts#boot places it, or a direct row on the run's own scratch DB, as QA run #24783 placed it. Record it in the run record as a fixture write made outside HTTP" + "on the walled boot: a second organization whose owner is granted manage_metadata but not the platform_admin position. No HTTP door places that grant on a walled boot (QA run #24783): the operator's insert into an organization it is not a member of is refused by the Layer 0 tenant check, 403 '… organization_id is outside the caller's organization scope' (packages/plugins/plugin-security/src/security-plugin-write-tenant-wall.ts#denyTenantPlacement), and the owner's own insert is refused by ADR-0090 D12 condition (c), because manage_metadata is declared scope 'platform' (packages/spec/src/security/capabilities.ts; packages/plugins/plugin-security/src/delegated-admin-gate.ts#organizationBoundaryFailure). The recipe is the dogfood harness's: the operator saves a permission set carrying systemPermissions ['manage_metadata'], and the grant row {user_id, permission_set, organization_id} is a system-context engine insert stamped with that organization, as packages/qa/dogfood/test/wall-environment-metadata-refusal.dogfood.test.ts#boot places it, or a direct row on the run's own scratch DB, as QA run #24783 placed it. Record it in the run record as a fixture write made outside HTTP. If the operator first creates a scratch package to hold that set (POST /api/v1/packages), its id must be reverse-domain (e.g. com.qa.catalog, packages/spec/src/kernel/manifest.zod.ts): a bare id such as qa_catalog answers 400, the permission-set save that follows then answers 422, and the grant row is left naming no set" ], "knownGaps": [ - "Every live leg here needs the walled boot fixtures.requires[1] names and the second organization fixtures.requires[2] names. On 18.0.0 os serve — and os dev / os start, which boot through it — boots OS_TENANCY_POSTURE=group|isolated (and the legacy OS_MULTI_ORG_ENABLED=true): 18.x step 4 (#24580) deleted the walled boot refusal (serve.ts walledPostureRefusal) before 18.0.0, and of the published prereleases only 18.0.0-next.5 carries it. The walled boot is provisioned per RUNNER.md's environment-facts entry 'A walled boot is a fixture of its own': the multi-org runtime declared by the app (no example app declares it), OS_PLATFORM_OWNER_EMAIL, and a declared OS_AUTH_MEMBERSHIP_POLICY; each one absent refuses an os dev boot naming itself, while a bare os serve in production mode judges none of them until OS_AUTH_SECRET is set (that entry). On that boot the second organization is created through POST /api/v1/auth/organization/create (RUNNER.md 'A stock `single` boot holds exactly one organization, and no door mints a second; a walled boot mints them through the auth API'). A run that does not provision them records acceptance[1], acceptance[2] and negative[0] blocked(fixture) naming those entries, never fail. steps[3]'s single-posture admit is only the control for the walled refusal and proves nothing alone. acceptance[0]'s pins boot the walled posture at kernel level and stay the item's pinned evidence. The three wall-* dogfood pins boot the CRM example (@objectstack/example-crm: crm_lead and its package), not the showcase the steps name, so their door answers are the same doors on another app's objects; a live run drives the steps' showcase objects and does not match object names against the pins. Their single-posture CONTROL drives a manage_metadata holder below the operator, a stronger control than acceptance[2]'s seeded admin, which no pin drives on single: that admin leg is hand-driven", + "Every live leg here needs the walled boot fixtures.requires[1] names and the second organization fixtures.requires[2] names. On 18.0.0 os serve — and os dev / os start, which boot through it — boots OS_TENANCY_POSTURE=group|isolated (and the legacy OS_MULTI_ORG_ENABLED=true): 18.x step 4 (#24580) deleted the walled boot refusal (serve.ts walledPostureRefusal) before 18.0.0, and of the published prereleases only 18.0.0-next.5 carries it. The walled boot is provisioned per RUNNER.md's environment-facts entry 'A walled boot is a fixture of its own': the multi-org runtime declared by the app (the showcase declares it: @objectstack/organizations in examples/app-showcase/package.json, so a walled run boots the showcase from the tree), OS_PLATFORM_OWNER_EMAIL, and a declared OS_AUTH_MEMBERSHIP_POLICY; each one absent refuses an os dev boot naming itself, while a bare os serve in production mode judges none of them until OS_AUTH_SECRET is set (that entry). On that boot the second organization is created through POST /api/v1/auth/organization/create (RUNNER.md 'A stock `single` boot holds exactly one organization, and no door mints a second; a walled boot mints them through the auth API'). A run that does not provision them records acceptance[1], acceptance[2] and negative[0] blocked(fixture) naming those entries, never fail. steps[3]'s single-posture admit is only the control for the walled refusal and proves nothing alone. acceptance[0]'s pins boot the walled posture at kernel level and stay the item's pinned evidence. The three wall-* dogfood pins boot the CRM example (@objectstack/example-crm: crm_lead and its package), not the showcase the steps name, so their door answers are the same doors on another app's objects; a live run drives the steps' showcase objects and does not match object names against the pins. Their single-posture CONTROL drives a manage_metadata holder below the operator, a stronger control than acceptance[2]'s seeded admin, which no pin drives on single: that admin leg is hand-driven", "install-local of a catalog-carrying package, named in the title, has no step here: it is scored from acceptance[0]'s pins (packages/qa/dogfood/test/wall-environment-metadata-refusal.dogfood.test.ts drives install-local install, upgrade and uninstall). A live leg must boot from a SCRATCH COPY of the app, never the shared tree, because the operator's admitted control install caches its manifest under the server's working directory, .objectstack/installed-packages (RUNNER.md, the environment fact 'A per-boot OS_HOME and OS_STORAGE_LOCAL_ROOT do NOT isolate a package install'). QA run #27481 left the leg undriven for that reason and scored it from the pins" ] }, @@ -3936,6 +3990,12 @@ "date": "2026-11-01", "change": "Two QA run #28545 (W3-C1R) findings. acceptance[0].verify prescribed --maxWorkers=2 against RUNNER's memory fact (the Tier 1 vitest pins hold under the container's limit only at --maxWorkers=1); it now says --maxWorkers=1, one package at a time, as cli.organization-ownership-ceremony acceptance[0] does. The title names _migrate-stored and POST /automation, but no step drove them: steps[1] adds both doors as the org owner, and acceptance[1] names their codes, 403 FORBIDDEN (the /meta door, pinned by meta-migrate-stored-walled-refusal.test.ts) and 403 PERMISSION_DENIED (the dispatcher, pinned by automation-walled-definition-write.test.ts), the codes #28545 read live. acceptance[1] gains two calls; no clause weakened. 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-14", + "change": "Three fixture-text findings re-pointed (card #33332; QA run #32953 R1 comment 6840054712 and #33087 comment 6850382730). knownGaps[0] said no example app declares the multi-org runtime; examples/app-showcase/package.json declares @objectstack/organizations (workspace:*), as RUNNER.md's walled-boot entry already says. personas[0] now names the organization_admin grant the owner holds automatically (auto-org-admin-grant.ts), so a runner does not read it as a stray grant. fixtures.requires[2] notes that a scratch package the operator creates must carry a reverse-domain id (manifest.zod.ts), since a bare id fails quietly downstream. knownGaps[1] (install-local scored from the pins) was already right and is unchanged. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -4032,7 +4092,7 @@ "title": "Security-catalog doors new on v18: POST /security/_activation/:type/:name switches a position or permission set off and on (holders lose and regain its grants), and POST /security/permission-sets/:name/clone copies a set with its refusal arms; both take ?package= for a permission set and refuse any other query", "since": "v18", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -4080,9 +4140,9 @@ "evidence": "one line per arm + the clone body" }, { - "clause": "the query is closed: `?package=` naming the set's holder answers as the same write without it; a package that does not hold the set → 409 RESOURCE_CONFLICT (`not-held-by-qualifier`, the holder named in details.candidates) with nothing written or saved; any other query parameter, at either door and for every activation type, or a blank or repeated `package` → 400 VALIDATION_ERROR before any lookup", + "clause": "the query is closed: `?package=` naming the set's holder answers as the same write without it; a package that does not hold the set → 409 RESOURCE_CONFLICT (the sentence naming the holder, and the holder in details.candidates) with nothing written or saved; any other query parameter, at either door and for every activation type, or a blank or repeated `package` → 400 VALIDATION_ERROR before any lookup", "oracle": "api", - "verify": "status + code per arm, and the ledger / the clone target read after each refusal", + "verify": "status + code per arm (the 409 body is the code, the sentence and details.candidates, packages/rest/src/error-response.ts packageScopedCandidatesMember; not-held-by-qualifier is the resolver's internal reason, packages/core/src/package-scoped-resolution.ts, and is not on the wire, so its absence is not a FAIL), and the ledger / the clone target read after each refusal", "evidence": "one line per arm" }, { @@ -4131,6 +4191,12 @@ "date": "2026-11-12", "change": "#32164 (ADR-0150 D3/D4/D5/D8): both doors take `?package=` for a permission set and refuse any other query parameter. Added the steps and acceptance[4] (the closed query and a non-holder, reachable on one holder) and acceptance[5] (two holders, pin only until #31698 PR-2). Earlier clauses unchanged", "ref": "#32164" + }, + { + "revision": 5, + "date": "2026-11-14", + "change": "acceptance[4] (clause, verify) re-pointed (stale spec, card #33332; QA run #33081 comment 6850173588): it named the 409's refusal `not-held-by-qualifier` as if on the wire. That is the resolver's internal reason (package-scoped-resolution.ts); the wire body carries RESOURCE_CONFLICT, the sentence naming the holder and details.candidates only (error-response.ts packageScopedCandidatesMember), which is what QA read. The arm's substance is unchanged. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -4139,7 +4205,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": 4, + "revision": 5, "priority": "P1", "surface": "mixed", "personas": [ @@ -4157,7 +4223,7 @@ "POST /api/v1/marketplace/install-local with the conflicting package; GET /api/v1/packages afterwards", "PUT /api/v1/meta/permission/SET?package=com.example.showcase with a body whose packageId names another package", "in the scratch app run `os migrate security-catalog-overlays` (preview), then `--apply --yes --json`", - "plant a sys_user_permission_set row naming an undefined set (scratch DB), reboot, read the [security] boot line" + "plant a sys_user_permission_set row naming an undefined set as a SQL write into the scratch DB file of a STOPPED server (the data API refuses the plant: POST /api/v1/data/sys_user_permission_set {permission_set: an undefined name} answers 400 VALIDATION_FAILED reference_not_found), reboot, read the [security] boot line. Boot with --log-level info for acceptance[4]'s clean-boot leg: that line is logged at info (catalog-reference-report.ts), below a default os dev boot's console threshold" ], "acceptance": [ { @@ -4185,9 +4251,9 @@ "evidence": "both CLI outputs" }, { - "clause": "a grant naming an undefined set is listed in the [security] error line at boot (per org, ≤50 names); a clean boot logs one info line", + "clause": "a grant naming an undefined set is listed in the [security] error line at boot (per organization: every undefined set name with its count, and at most 50 grant ids, the rest counted); a clean boot logs one info line", "oracle": "log", - "verify": "boot log grep for [security]", + "verify": "boot log grep for [security] (packages/plugins/plugin-security/src/catalog-reference-report.ts: the per-organization set-name counts are uncapped, the grant-id list is capped at LOGGED_LIMIT 50; the clean-boot line is an info line, so the boot runs at --log-level info)", "evidence": "the log lines" } ], @@ -4229,6 +4295,12 @@ "date": "2026-10-27", "change": "Access-security pin upgrade, slice 3 (#26571; Tier 1 record #26468 scored the item PARTIAL). New dogfood pin security-catalog-one-holder-http: acceptance[1]'s install-local refusal and acceptance[2]'s owner-binding refusal over HTTP on a booted showcase, and acceptance[4]'s live boot log (the clean INFO line, the ERROR line over planted grants, and the 50-entry cap no case asserted). automated.kind set to dogfood: the ref now leads with dogfood pins (the slice-2 ACCEPT's kind correction, applied here too). No clause or status changed", "ref": "#26571" + }, + { + "revision": 5, + "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" } ] }, @@ -4734,7 +4806,7 @@ "title": "A package's position resolves its permission sets from that package and its declared dependencies: a set only the environment or an unrelated package holds is refused and grants nothing, the boot report names the candidates, and a grant row records the package that holds its set", "since": "v18.4", "status": "active", - "revision": 2, + "revision": 3, "priority": "P1", "surface": "mixed", "personas": [ @@ -4744,14 +4816,14 @@ "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 holds the permission set qa_a_reader (read on one showcase object); qa_b holds the position qa_b_desk binding qa_a_reader and qa_env_reader, and declares no dependency on qa_a", + "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 holds the permission set qa_a_reader (read on one showcase object that no stock member set grants, e.g. showcase_contact: showcase_member_default, the everyone-anchor set every member holds, already reads showcase_task, showcase_project and most showcase objects, so a grant on one of those is invisible on the member's reads); qa_b holds the position qa_b_desk binding qa_a_reader and qa_env_reader, and declares no dependency on qa_a", "an environment permission set qa_env_reader saved with PUT /api/v1/meta/permission/qa_env_reader and no ?package=; a member assigned qa_b_desk; the server restarted after the installs so the boot report runs" ] }, "steps": [ "read the boot log for the catalog reference report", "as the member, read the effective permissions (GET /api/v1/auth/me/permissions); record whether either set's grants are present", - "rebuild qa_b declaring a dependency on qa_a, reinstall, restart, and repeat the two reads", + "rebuild qa_b declaring a dependency on qa_a, reinstall, restart, and repeat the two reads. If the run's qa_b also carries items under qa_a's names (a qa_a/qa_b pair shared with another item's fixture), the dependency makes the reinstall refuse them 403 NOT_OVERRIDABLE (ADR-0146 D2: a dependent package cannot override its dependency's items): rename them in qa_b before this step; that refusal is the shared fixture colliding, not this item's answer", "as admin, insert a sys_user_permission_set row granting qa_a_reader to the member with no package column; read the row back" ], "acceptance": [ @@ -4813,6 +4885,12 @@ "date": "2026-11-10", "change": "fixture-text correction, no clause change: the scratch package ids are re-spelled with a hyphen (com.qa.addr-a, com.qa.addr-b) everywhere this item names them (fixtures and acceptance), because `objectstack build` refuses an underscore in a package id (packages/spec/src/kernel/manifest.zod.ts#MANIFEST_ID_PATTERN, refused with manifestIdRefusal). The namespaces qa_a and qa_b and every namespace-qualified address are unchanged. No step, clause or variant changes meaning. Found by the M4 verification run (#32316, FOLLOW-UPS §19b); card #32330", "ref": "#32330" + }, + { + "revision": 3, + "date": "2026-11-14", + "change": "fixtures.requires[0] and steps[2] re-pointed (fixture text, card #33332; QA run #32940 checklist-accuracy notes and #33094 comment 6852480973). qa_a_reader's object must be one no stock member set grants, because showcase_member_default (examples/app-showcase/src/security/permission-sets.ts, isDefault) already reads most showcase objects and hides the grant; showcase_contact is named as one it does not. steps[2] warns that a qa_b shared with another item's fixture and carrying qa_a's item names is refused 403 NOT_OVERRIDABLE once it depends on qa_a (ADR-0146 D2), so those items are renamed first. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -4984,27 +5062,27 @@ "title": "An AI service account acts under the agent ceiling: its key never carries View All, Modify All, the destructive class, a system permission or admin standing; assigning it a set or a position above the ceiling, by insert or update, is refused 400 naming what breaches; and a set edited above it after assignment still grants nothing more", "since": "v18.4", "status": "active", - "revision": 1, + "revision": 2, "priority": "P1", "surface": "api", "personas": ["organization administrator: the assignments", "the AI service account, through its key: every effective read"], "fixtures": { "app": "showcase", "requires": [ - "an account with a key, registered as identity-auth.ai-service-account-register-and-key does; a scratch permission set qa_agent_reader (read on one showcase object, no system permissions) and a second set qa_view_all with viewAllRecords on the same object", + "an account with a key, registered as identity-auth.ai-service-account-register-and-key does; a scratch permission set qa_agent_reader (read on one OWNER-PRIVATE showcase object such as showcase_private_note, no system permissions: a public-read object such as showcase_task, sharingModel public_read_write, returns every row under any set and hides the clamp acceptance[3] reads) and a second set qa_view_all with viewAllRecords on the same object", "a position qa_view_all_pos whose permissionSets is [\"qa_view_all\"], saved as admin with PUT /api/v1/meta/position/qa_view_all_pos" ] }, "steps": [ - "with the key: GET /api/v1/auth/me/permissions; record system permissions, admin standing and any View All / Modify All", + "as the administrator: POST /api/v1/security/explain {userId: the account's user id}; record principalKind, system permissions, admin standing, the sets resolved and any View All / Modify All. ⛔ Not GET /api/v1/auth/me/permissions with the key: that face is session-only by design (credentials 'session-only', packages/plugins/plugin-hono-server/src/current-user-endpoints.ts) and answers any osk_ key {authenticated: false}, so it can never show the agent's grants", "as the administrator: POST /api/v1/data/sys_user_permission_set granting qa_view_all to the account, then qa_agent_reader; POST /api/v1/data/sys_user_position assigning qa_view_all_pos to the account; PATCH the accepted qa_agent_reader row's permission_set to qa_view_all; then grant mcp_agent_data_read to the account; record each answer and read the account's grant and position rows", - "with the key: read the object; then as the administrator edit qa_agent_reader to add viewAllRecords (PUT /api/v1/meta/permission/qa_agent_reader) and repeat the effective-permissions read and the object read with the key" + "with the key: read the object; then as the administrator edit qa_agent_reader to add viewAllRecords (PUT /api/v1/meta/permission/qa_agent_reader) and repeat the administrator's POST /api/v1/security/explain {userId} read and the object read with the key" ], "acceptance": [ { "clause": "the account resolves as an agent: no system permissions, no admin standing, and no everyone-anchor sets", "oracle": "api", - "verify": "the effective-permissions body lists no system permission and no admin scope (packages/core/src/security/resolve-authz-context.ts#isAgentAccountRow, #resolveUserAuthzGrants)", + "verify": "the administrator's POST /api/v1/security/explain {userId} body for the account reads principalKind 'agent', lists no system permission, no admin scope (hasPlatformAdminGrant false) and no everyone-anchor set (packages/core/src/security/resolve-authz-context.ts#isAgentAccountRow, #resolveUserAuthzGrants)", "evidence": "the body" }, { @@ -5022,8 +5100,8 @@ { "clause": "a set edited above the ceiling after assignment is still read under it", "oracle": "api", - "verify": "after the edit the key's effective permissions still carry no View All, and the object read returns only what qa_agent_reader allowed before the edit (packages/plugins/plugin-security/src/agent-ceiling-clamp.ts#clampPermissionSetToAgentCeiling)", - "evidence": "the effective-permissions body and both object reads" + "verify": "after the edit the administrator's explain read of the account still carries no View All, and the object read returns only what qa_agent_reader allowed before the edit (packages/plugins/plugin-security/src/agent-ceiling-clamp.ts#clampPermissionSetToAgentCeiling)", + "evidence": "the explain body and both object reads" } ], "negative": [ @@ -5049,6 +5127,12 @@ "date": "2026-11-10", "change": "initial — ADR-0151 D3, the agent ceiling (#31867): the set and position refusals, insert and update, and the clamp; with the sibling MCP ceiling-set rule's answer to the account (#32056 widened that rule's doors). Scoped sweep #32019 (epic #32022 M1, theme 3: AI service accounts and identity), read from source at 0f7389cc; no live run made", "ref": "#32019" + }, + { + "revision": 2, + "date": "2026-11-14", + "change": "steps[0], steps[2], acceptance[0] and [3] (verify, evidence) and fixtures.requires[0] re-pointed (stale spec, card #33332, QA run #32940 PARTIAL clause 1 and #33025 comment 6844741021). The effective-permissions read was GET /api/v1/auth/me/permissions with the account's key, but that face is session-only by design (current-user-endpoints.ts, credentials 'session-only') and answers any osk_ key {authenticated: false}, so clause 1 could never be consulted there. The read is now the administrator's POST /api/v1/security/explain {userId} (rest-route-ledger.ts security-explain family), whose body carries principalKind (explain-engine.ts, ADR-0151 D3). The scratch set now reads an owner-private object, since showcase_task is public_read_write and returns every row whatever the clamp does. No clause sentence changed. Read from source at base fca5f89c, not driven live", + "ref": "#33332" } ] }, @@ -5057,7 +5141,7 @@ "title": "Each API key or OAuth access token use writes one credential_use audit row per use window, naming the credential, its owner and the client's address, and never the key, its hash or its prefix", "since": "v18.4", "status": "active", - "revision": 1, + "revision": 2, "priority": "P2", "surface": "api", "personas": ["a member holding an osk_ API key: the requests", "admin (the seeded admin): the audit read"], @@ -5080,7 +5164,7 @@ { "clause": "the row names the key owner as actor, the key row as its record, and carries credential_kind api_key, credential_id, used_at and the client address and user agent, or ip_address_absent", "oracle": "api", - "verify": "the row's metadata holds those keys (packages/plugins/plugin-audit/src/credential-use-audit.ts#buildCredentialUseAuditRow; packages/core/src/security/credential-use-client.ts#credentialUseClientOf)", + "verify": "the row's columns and metadata hold them: actor, record, ip_address and user_agent are columns of the sys_audit_log row, while credential_kind, credential_id, used_at and (when the address is null) ip_address_absent are keys of its metadata (packages/plugins/plugin-audit/src/credential-use-audit.ts#buildCredentialUseAuditRow; packages/core/src/security/credential-use-client.ts#credentialUseClientOf)", "evidence": "the row" }, { @@ -5110,6 +5194,12 @@ "date": "2026-11-10", "change": "initial — the credential_use ledger row (#31862, #31897, #31967). Scoped sweep #32019 (epic #32022 M1, theme 3: AI service accounts and identity), read from source at 60f8149e; no live run made", "ref": "#32019" + }, + { + "revision": 2, + "date": "2026-11-14", + "change": "acceptance[1].verify re-pointed (card #33332; QA run #32940 checklist-accuracy notes): it said the row's metadata holds every named key, but buildCredentialUseAuditRow (packages/plugins/plugin-audit/src/credential-use-audit.ts) writes the client address and user agent as the row's own ip_address and user_agent columns; only credential_kind, credential_id, used_at and ip_address_absent are metadata keys. The clause is unchanged. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -5118,7 +5208,7 @@ "title": "The MCP agent ceiling sets (mcp_agent_data_read, mcp_agent_data_write, mcp_agent_restricted) reach no person through any door: a direct grant, a position definition saved at the metadata door (active or draft), a position assignment, a seed and the deployment baseline are each refused 400 VALIDATION_FAILED at the field that named the set, and an ordinary set passes every one of them", "since": "v18.4", "status": "active", - "revision": 1, + "revision": 2, "priority": "P1", "surface": "api", "personas": [ @@ -5134,7 +5224,7 @@ "the showcase person sets showcase_contributor, showcase_auditor and showcase_ops, used as the ordinary-set controls" ], "knownGaps": [ - "if installing qa_decl is itself refused, record that answer: the assignment leg then has no position to assign, so score it blocked(fixture), never a pass. The dogfood pin registers such a definition straight into the registry, which a live run cannot do", + "installing qa_decl is admitted: os build accepts a position whose permissionSets is ['mcp_agent_data_read'] (no build rule judges a position's sets against the MCP ceiling; the refusal this item scores is at assignment) and the install goes through (QA run #33081). Should a later build or install refuse it, record that answer: the assignment leg then has no position to assign, so score it blocked(fixture), never a pass. The dogfood pin registers such a definition straight into the registry, which a live run cannot do", "the baseline leg needs a host whose SecurityPlugin options name a ceiling set, which the showcase boot does not take; it is scored from the unit pin" ] }, @@ -5208,6 +5298,12 @@ "date": "2026-11-10", "change": "initial — ADR-0090 D10, the MCP agent ceiling sets reach no person: the direct grant rule, and the four doors #32056 added (the metadata door's position definition, every sys_user_position write, a seed, the baseline options), with the identity-provider mapping pins. Scoped sweep #32019 (epic #32022 M1, theme 3), read from source at 0f7389cc; no live run made", "ref": "#32019" + }, + { + "revision": 2, + "date": "2026-11-14", + "change": "fixtures.knownGaps[0] re-pointed (card #33332; QA run #33081 comment 6850173588): the gap worried that installing qa_decl might itself be refused, leaving the assignment leg no position. The run built and installed it without a refusal, and source agrees: no lint or build rule judges a position's permissionSets against the MCP agent ceiling (mcp_agent_data_read is only named in packages/spec/src/ai/mcp.zod.ts and judged at grant time). The gap now states the measured admit and keeps the blocked(fixture) fallback for a future refusal. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] } diff --git a/docs/qa/platform-checklist/areas/api-backend.json b/docs/qa/platform-checklist/areas/api-backend.json index 87e8958b467..48652b55698 100644 --- a/docs/qa/platform-checklist/areas/api-backend.json +++ b/docs/qa/platform-checklist/areas/api-backend.json @@ -852,10 +852,10 @@ }, { "id": "api-backend.route-ledger-live-parity", - "title": "Every route family across all ELEVEN route ledgers — REST, dispatcher, auth, storage/i18n/settings/datasource services, 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 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", "since": "v16", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "api", "personas": [ @@ -865,14 +865,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 ten ledgers named in the steps — the ledger universe is ELEVEN files at head (grep the repo for '*route-ledger.ts' at run time rather than trusting this list to stay complete: a twelfth ledger landing is exactly the drift this item exists to catch)" + "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)" ] }, "steps": [ - "boot the real HTTP stack (os dev); read REST_ROUTE_LEDGER and pick at least one representative route per family (discovery, openapi, metadata, ui, crud, batch, data-actions, forms, search, security, security-explain, record-shares, sharing-rules, approvals, email, analytics, packages, external-datasource)", + "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", + "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)", "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", @@ -899,7 +899,7 @@ "evidence": "trace" }, { - "clause": "discovery capability bits agree with live behavior for the sampled capabilities (a bit true ⇒ the family answers; a bit false ⇒ the family refuses coherently)", + "clause": "discovery capability bits agree with live behavior for the sampled capabilities (a bit true ⇒ the family answers, possibly with a permission refusal such as 403 EXPORT_NOT_PERMITTED for an admin no set grants export — the route is mounted and judged, not missing; a bit false ⇒ the family refuses coherently)", "oracle": "api", "verify": "cross-check the discovery body against the sampled families' answers", "evidence": "discovery body + table" @@ -1032,6 +1032,12 @@ "date": "2026-10-16", "change": "the REST ledger carries 18 families, not 19: 'reports' was RETIRED (#20102 — packages/rest/src/rest-route-ledger.ts keeps only a RETIRED comment where its rows were), so the variant is dropped, the family list in step 1 no longer names it, and clause 6 and source[0] say 18 (#23878 checklist-accuracy finding). Re-run on main c91af8ed6: one route per remaining REST family answered non-routing-404 (eighteen of eighteen), GET /api/v1/reports answered the same 404 ENDPOINT_NOT_FOUND as the GET /api/v1/definitely-not-a-route control, and the tree still holds eleven *route-ledger.ts files", "ref": "#24036" + }, + { + "revision": 5, + "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" } ] }, @@ -1153,7 +1159,7 @@ "title": "Package REST lifecycle: POST /packages creates (201), a duplicate name is refused 409 (no silent manifest clobber), PATCH partial-patches the manifest, and an explicit overwrite re-install replaces in place without duplicating", "since": "v16", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "api", "personas": [ @@ -1180,7 +1186,7 @@ ], "acceptance": [ { - "clause": "a scratch package installs → 201: POST /api/v1/packages returns 201 with the created package, and a follow-up GET reads it back (the install lands in the in-memory registry AND durable sys_packages, per packages.ts routing through protocol.installPackage)", + "clause": "a scratch package installs → 201: POST /api/v1/packages returns 201 with the created package, and a follow-up GET reads it back (the install lands in the in-memory registry AND durable sys_packages, per packages.ts routing through protocol.installPackage; sys_packages is keyed by (id, version) by design, so several versions of one package sit side by side there, and every one-row count in this item is read from the list door GET /api/v1/packages, which lists the registry's one entry per id, never from the table)", "oracle": "api", "verify": "POST status 201; GET /api/v1/packages/com.example.qa-pkg-lifecycle-probe returns the package", "evidence": "the POST + GET responses" @@ -1219,7 +1225,7 @@ "negative": [ "a second POST of the same id answering 2xx and silently replacing the manifest is the #2995 data-loss FAIL (the whole reason the 409 guard exists)", "a PATCH that resets enabled/status/installedAt (a full replace masquerading as a partial patch) is a FAIL", - "an overwrite re-install that leaves two rows for one id in GET /api/v1/packages is a FAIL (duplication, not replacement)" + "an overwrite re-install that leaves two rows for one id in GET /api/v1/packages is a FAIL (duplication, not replacement). Two sys_packages rows for one id at two versions are not this FAIL: the table is (id, version)-keyed by design (packages/services/service-package/src/package-table.ts)" ], "traps": [ "dispatcher-vs-hono-route" @@ -1255,6 +1261,12 @@ "date": "2026-10-20", "change": "steps[0] respelled: 'boot showcase isolated' → 'boot the showcase on its own port and DB'. Round 12's out-of-scope finding (landing record 6287983829 on wave anchor #24579): the phrase 'showcase isolated' named the dogfood §0 own-port boot, and a runner read it as the `isolated` tenancy posture (OS_TENANCY_POSTURE=isolated). The new spelling names that boot by what it is, in RUNNER.md's own words for it (the trap table's counter: own port/DB, skill §0), and names no posture. Read at base e4d604efd3. No clause changed", "ref": "#25003" + }, + { + "revision": 5, + "date": "2026-11-14", + "change": "acceptance[0].clause and negative[2] re-pointed (stale spec, card #33332; QA run #33081 comment 6850173588). sys_packages is keyed by (id, version) by design (service-package package-table.ts, PRIMARY KEY (id, version)), so after the 2.0.0 overwrite the table can hold two rows for the id. The item now names the list door GET /api/v1/packages, which reads the registry (one entry per id), as the oracle for every one-row count, and says two version rows in the table are not the duplication FAIL. The run's other note, a clause that the manifest served after a restart equals the last one written, is a new clause and is left for a coverage pass. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -1592,7 +1604,7 @@ "title": "A retired metadata DEFINITION (whole schema type withdrawn) refuses at every authoring door — distinct from a retired key, and the door that must not fall through to 'unknown type, ignored'", "since": "v17", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "build", "personas": [ @@ -1609,11 +1621,11 @@ ] }, "steps": [ - "enumerate packages/spec/src/migrations/entries/retired-defs/ and record the count and the version prefixes present (the registry carries entries at the previous major and the current one: prefixes 17 and 18, against PROTOCOL_VERSION '18.0.0' in packages/spec/src/kernel/protocol-version.ts. Read each prefix against PROTOCOL_VERSION; no prefix is staged for a later major)", + "enumerate packages/spec/src/migrations/entries/retired-defs/ and record the count and the version prefixes present (249 entry files at 87330e89, 53 at 17 and 196 at 18; the count grows with retirements, so record the one you read) (the registry carries entries at the previous major and the current one: prefixes 17 and 18, against PROTOCOL_VERSION '18.0.0' in packages/spec/src/kernel/protocol-version.ts. Read each prefix against PROTOCOL_VERSION; no prefix is staged for a later major)", "sample at least four entries spanning BOTH version prefixes and at least three different domains (e.g. data/, system/, identity/, ui/)", - "for each sampled def, read its entry file and record which ADR-0087 route retired it, whether a prescription was authored, and its CARRIER: the authored key that embedded it, retired as a retiredKey() tombstone (e.g. manifest.loading for kernel/PluginLoadingConfig and its closure; agent.lifecycle for automation/StateMachine and its family), or none — most entries are schema-export definitions with zero consumers: no metadata-type binding, no stack collection, no embedding (e.g. data/ExternalDataSource, automation/ScheduleState). Sample at least one def of each kind", - "build door, per sampled def, each in its own scratch stack run through os build: for a def WITH a carrier, author the carrier key (e.g. manifest.loading: { strategy: 'lazy' }; an agent carrying lifecycle) — the refusal is the carrier's tombstone. For a def WITHOUT one there is no metadata of that type to author ('a stack that declares metadata of the retired type' could only be an invented key, which is the control below), so drive the door it actually had: import its Zod export from its @objectstack/spec subpath in the config (e.g. ExternalDataSourceSchema from '@objectstack/spec/data') and confirm json-schema/DOMAIN/NAME.json is absent from packages/spec/json-schema", - "runtime door against a live boot: PUT /api/v1/meta/TYPE/NAME carrying the carrier key where its type is runtime-writable, and record a code-only type's up-front refusal where it is not (agent is code-only); manifest.loading's carrier has no runtime metadata-write door at all — `manifest` (like package and plugin) is not a registered metadata type, so PUT /api/v1/meta/manifest/… answers the control's own 400 'is not a metadata type': record it as that, like the code-only agent; for a zero-consumer def, PUT a type name spelled after it (e.g. external_data_source) — no type was ever bound, so the expected answer is the same refusal as the control", + "for each sampled def, read its entry file and record which ADR-0087 route retired it, whether a prescription was authored, and its CARRIER: the authored key that embedded it, retired as a retiredKey() tombstone (e.g. agent.lifecycle for automation/StateMachine and its family, packages/spec/src/ai/agent.zod.ts. manifest.loading, the carrier of 17 kernel/PluginLoadingConfig, is no longer a tombstone: it was removed under the ADR-0087 2026-10-26 addendum (#25767 D2=A), so the closed manifest answers it with the generic unknown-key refusal plus the upgrade-guide sentence, and that def now samples as a def without a live carrier), or none — most entries are schema-export definitions with zero consumers: no metadata-type binding, no stack collection, no embedding (e.g. data/ExternalDataSource, automation/ScheduleState). Sample at least one def of each kind", + "build door, per sampled def, each in its own scratch stack run through os build: for a def WITH a carrier, author the carrier key (e.g. an agent carrying lifecycle) — the refusal is the carrier's tombstone. For a def WITHOUT one there is no metadata of that type to author ('a stack that declares metadata of the retired type' could only be an invented key, which is the control below), so drive the door it actually had: import its Zod export from its @objectstack/spec subpath in the config (e.g. ExternalDataSourceSchema from '@objectstack/spec/data') and confirm json-schema/DOMAIN/NAME.json is absent from packages/spec/json-schema", + "runtime door against a live boot: PUT /api/v1/meta/TYPE/NAME carrying the carrier key where its type is runtime-writable, and record a code-only type's up-front refusal where it is not (agent is code-only); `manifest` (like package and plugin) is not a registered metadata type, so PUT /api/v1/meta/manifest/… answers the control's own 400 'is not a metadata type' whatever key it carries: record it as that, like the code-only agent; for a zero-consumer def, PUT a type name spelled after it (e.g. external_data_source) — no type was ever bound, so the expected answer is the same refusal as the control", "as a control, author an invented top-level stack key (e.g. qaInventedFamily) at the build door and PUT an invented type name at the runtime door, and compare their refusals to the retired-def refusals" ], "acceptance": [ @@ -1680,6 +1692,12 @@ "date": "2026-10-20", "change": "steps[0] and acceptance[3]'s clause name the registry's prefixes for what they are — checklist-accuracy finding B1 of QA run #24787 (wave anchor #24579 round 12): the prefixes are 17 and 18 and the runtime implements protocol 18, so they are the previous and the current major, and 'staged for the NEXT major' no longer describes prefix 18. Re-measured at base 307ce4c4b4: 224 retired-defs entries (53 at 17, 171 at 18), PROTOCOL_VERSION '18.0.0'. The clause still requires both prefixes", "ref": "#24824" + }, + { + "revision": 5, + "date": "2026-11-14", + "change": "steps[0], [2], [3] and [4] re-pointed (stale spec, card #33332; QA runs #33025 comment 6844741021 and #33081 comment 6850173588). The steps named manifest.loading as a live retiredKey() tombstone, but it was removed under the ADR-0087 2026-10-26 addendum (#25767 D2=A): ManifestSchema (packages/spec/src/kernel/manifest.zod.ts) is closed and carries no loading key, so a 17-prefix carrier now gets the generic unknown-key refusal with the upgrade-guide sentence. agent.lifecycle (agent.zod.ts) stays the carrier example. steps[0] records the registry at 249 entries (53 at 17, 196 at 18) on 87330e89, not the 224 the revision-4 row read. No clause changed: acceptance[1] already scores an identical generic refusal as correct where no prescription is authored. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -1879,7 +1897,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": 7, + "revision": 8, "priority": "P2", "surface": "api", "personas": [ @@ -1917,9 +1935,9 @@ "evidence": "both traces" }, { - "clause": "the shape arm names the shape: the 2-segment path answers this door's own 400 'Path must be /actions/_activation/:object/:action (use `global` for an object-less action)' — while the 4-segment path 404s at the ROUTER, because no /actions mount pattern matches four segments (the door never sees it; route-ledger.ts records the reconstruction)", + "clause": "the shape arm names the shape: the 2-segment path answers this door's own 400 'Path must be /actions/_activation/:object/:action (use `global` for an object-less action)' — while the 4-segment path answers the dispatcher's no-route 404 ROUTE_NOT_FOUND: since ADR-0150 D5 the addressed /actions/:ns/:object/:action/:recordId mount matches four segments, so the path reaches this door, which declines it (handled: false) after its two authority gates (packages/runtime/src/domains/actions.ts; route-ledger.ts: an addressed `_activation` path has no form and answers 404)", "oracle": "api", - "verify": "step-3: 2-segment → 400 with the shape sentence; 4-segment → the routing-404 shape (compare against a known unmounted path, per api-backend.route-ledger-live-parity's control discipline)", + "verify": "step-3: 2-segment → 400 with the shape sentence; 4-segment → 404 with code ROUTE_NOT_FOUND, the dispatcher's no-route answer (set beside a known unmounted path's routing 404, per api-backend.route-ledger-live-parity's control discipline; an answer with the door's shape 400 means the deeper path was not declined)", "evidence": "both traces + the routing-404 control" }, { @@ -2027,6 +2045,12 @@ "date": "2026-10-27", "change": "acceptance[0]–[6] and negative[0]–[2] are pinned over HTTP (the release-18.2.0 Tier 1 sweep #26468 scored a0, a1, a2, a4, a5 and a6 half-asserted, a3, n0 and n2 below the HTTP layer, and n1 unpinned). The new action-activation-door-live.dogfood.test.ts drives every arm on its own showcase boot, and the ambiguity arm on the new activation-ambiguity-fixture.ts scratch app, which fixtures.knownGaps[0] now names. automated.kind is dogfood; automated.ref and the verify texts of acceptance[2], [5] and [6] name what the pins assert. The metadata-plane 503 and the 501/503 arms are unchanged. Measured at base c8583f80. No clause changed", "ref": "#26572" + }, + { + "revision": 8, + "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" } ] }, @@ -2035,7 +2059,7 @@ "title": "Server-side aggregation contract: every AggregationFunction × DateGranularity gives known answers — ruled empty-set values, ISO-Monday week buckets, retired array_agg/string_agg refuse with prescriptions, and aggregate stays secured (engine-only, never raw driver)", "since": "v16", "status": "active", - "revision": 8, + "revision": 9, "priority": "P1", "surface": "api", "personas": [ @@ -2063,7 +2087,7 @@ "function matrix: for each of the 6 functions POST /api/v1/data/showcase_account/query with { groupBy: ['status'], aggregations: [{ function, field: 'annual_revenue', alias: 'v' }] } (count also in its fieldless/'*' spelling), plus one UNgrouped run per function; compute each expected per-group value locally from the baseline and compare exactly — known answers, not smoke 200s. count_distinct over annual_revenue does not discriminate on the seeded rows (QA run #26476 measured every value distinct, so it equals count of the field): run count_distinct over `status` as well, where the distinct count is smaller than the row count. Add the #11152 leg: min/max over a boolean field answer the NUMBER it is worth (0/1, maintainer ruling 2026-08-28), never false/true", "granularity matrix: record wall clock + timezone, then for each of the 5 granularities POST { groupBy: [{ field: 'signed_on', dateGranularity }], aggregations: [{ function: 'count', alias: 'n' }] }; reconcile the returned bucket KEYS and counts against locally computed ISO-8601 buckets (bucketDateValue's own shapes: 'YYYY', 'YYYY-Qn', 'YYYY-MM', 'YYYY-MM-DD', 'YYYY-Wnn' with weeks starting Monday / week 1 = first Thursday); rows with null/unparseable dates must land in ONE real-null-keyed bucket (#3839 — never a '(null)' sentinel string). The TIMEZONE lever is not on this door: POST /api/v1/data/showcase_account/query refuses a `timezone` key 400 INVALID_FIELD (the protocol does not forward one; engine.aggregate reads only query.timezone). The one wire lever is POST /api/v1/analytics/query with `timezone` — on the stock cube showcase_delivery, a count measure over its time dimension due_date at granularity day, once at UTC and once in a negative-offset zone such as America/Los_Angeles (QA run #24595: the answer's data.sql is present on the driver path and absent on the in-memory one, and the SQL echo refuses a non-UTC bucket)", "empty-set semantics: (a) a query whose where matches nothing, UNgrouped, where the identities come back as the one result row. Grouped, an empty where answers NO groups at all, because there is no bucket to carry a value, so the per-group identities are read on path (b); (b) a per-aggregation filter (#10576 — aggregations[].filter, SQL FILTER(WHERE …) semantics) that empties one measure while a sibling measure keeps the full bucket. Expected per the platform ruling (emptyGroupValueFor, packages/spec/src/data/aggregation-policy.ts): count/count_distinct/sum → 0, avg/min/max → null — a 0 flattened onto avg (or a null on count) is a FAIL either direction (objectui#3136)", - "negatives: aggregations [{ function: 'array_agg', field: 'name', alias: 'x' }] and the string_agg twin → 400 with the RETIREMENT prescriptions (each message says there is no replacement in the query vocabulary and ends with the shared retirement tail, AGG_RETIRED_TAIL in query.zod.ts: 'This edit left `os migrate meta` with the protocol-16.x conversions: apply it by hand, or run the tool on a release that still carries the conversion — https://objectstack.ai/docs/protocol-upgrade.'; only those two spellings get it); an unknown function ('median') → 400 whose issue lists the six legal functions (zod's own enum error, deliberately NOT the retirement text — telling a typo'd author their value 'was removed' would misinform); aggregations naming a nonexistent field → the located protocol refusal (protocol.ts assertAggregationFieldsExist); aggregations as a non-array → on this door the REQUEST SCHEMA answers first: 400 VALIDATION_FAILED with a fields[] entry located at query.aggregations ('expected array'). The protocol's worked-example refusal (assertAggregationFieldsExist: 'must be an array of { function, field?, alias } entries') is not reached through POST /query — the #20116 door posture api-backend.filter-comparand-conformance records", + "negatives: aggregations [{ function: 'array_agg', field: 'name', alias: 'x' }] and the string_agg twin → 400 whose message is the one-line refusal head ('`array_agg` was removed from `AggregationFunction` in @objectstack/spec 17: delete the aggregation; there is no replacement function.', and its string_agg twin) and whose fields[] entry carries the RETIREMENT prescription as its hint (since #32279, query.zod.ts withRefusalHead: the data doors answer the head as the message and the prescription beside it as the hint, while os compile and the save doors print the prescription whole; each prescription says there is no replacement in the query vocabulary and ends with the shared retirement tail, AGG_RETIRED_TAIL in query.zod.ts: 'This edit left `os migrate meta` with the protocol-16.x conversions: apply it by hand, or run the tool on a release that still carries the conversion — https://objectstack.ai/docs/protocol-upgrade.'; only those two spellings get it); an unknown function ('median') → 400 whose issue lists the six legal functions (zod's own enum error, deliberately NOT the retirement text — telling a typo'd author their value 'was removed' would misinform); aggregations naming a nonexistent field → the located protocol refusal (protocol.ts assertAggregationFieldsExist); aggregations as a non-array → on this door the REQUEST SCHEMA answers first: 400 VALIDATION_FAILED with a fields[] entry located at query.aggregations ('expected array'). The protocol's worked-example refusal (assertAggregationFieldsExist: 'must be an array of { function, field?, alias } entries') is not reached through POST /query — the #20116 door posture api-backend.filter-comparand-conformance records", "secured-aggregate leg: run one grouped count (count by status on showcase_invoice) as the provisioned contributor-bound member, whose visible row set provably differs from the admin's; compute their expectation from THEIR OWN filtered baseline. The rule under test is the one packages/runtime/src/action-execution.ts states for the aggregate door: aggregate MUST run through the ObjectQL engine (RLS/tenant middleware + the FLS aggregate-input gate) — a raw driver.aggregate() evaluates over every row" ], "acceptance": [ @@ -2086,9 +2110,9 @@ "evidence": "both responses + the expected-value table" }, { - "clause": "retired functions refuse with their PRESCRIPTIONS and unknown functions with the enum listing: array_agg/string_agg answer 400 carrying their registered retirement messages (query.zod.ts — no replacement exists; the message says to reshape, and its AGG_RETIRED_TAIL says `os migrate meta` no longer carries the protocol-16.x conversion and names the protocol upgrade guide, https://objectstack.ai/docs/protocol-upgrade), while an invented function gets zod's own enum error listing the six legal members — the two error classes must not blur (the enum error map returns the retirement text ONLY for the two spellings that used to be legal)", + "clause": "retired functions refuse with their PRESCRIPTIONS and unknown functions with the enum listing: array_agg/string_agg answer 400 carrying their registered retirement prescriptions in fields[].hint, under the one-line refusal head as the message (query.zod.ts withRefusalHead, #32279 — no replacement exists; the message says to reshape, and its AGG_RETIRED_TAIL says `os migrate meta` no longer carries the protocol-16.x conversion and names the protocol upgrade guide, https://objectstack.ai/docs/protocol-upgrade), while an invented function gets zod's own enum error listing the six legal members — the two error classes must not blur (the enum error map returns the retirement text ONLY for the two spellings that used to be legal)", "oracle": "api", - "verify": "the three rejection bodies: two carry the retirement prescriptions, the third lists count/sum/avg/min/max/count_distinct; all are 400, never 500", + "verify": "the three rejection bodies: two carry the retirement prescriptions in fields[].hint (the message is the one-line head), the third lists count/sum/avg/min/max/count_distinct; all are 400, never 500", "evidence": "the three rejections" }, { @@ -2180,7 +2204,8 @@ "ref": "#25807" }, { "revision": 7, "date": "2026-10-31", "change": "knownGaps[0], steps[4], steps[5], acceptance[2] and acceptance[3] corrected from QA run #27392 (18.3.0 sweep, wave 3, at c4c515ad; sweep anchor #27377). (1) The retirement message no longer names 'os migrate meta --from 16': both refusals end with AGG_RETIRED_TAIL, which names `os migrate meta` and the protocol upgrade guide URL, and steps[5] and acceptance[3] now say so. (2) A grouped query whose where matches nothing answers no groups, so the empty-where identities are read ungrouped and the per-group ones on the #10576 filter path; steps[4](a) and acceptance[2] said 'grouped and ungrouped'. (3) knownGaps[0] names the seeded rows that made the count and week legs discriminating. Re-read at base 488b3ed0: packages/spec/src/data/query.zod.ts AGG_RETIRED_TAIL, examples/app-showcase/src/data/seed/index.ts (14 accounts, all with annual_revenue). No clause's assertion was weakened", "ref": "#27392" }, - { "revision": 8, "date": "2026-11-10", "change": "steps[1] plants the discriminating rows; knownGaps[0] and acceptance[0].verify point at it. Checklist-accuracy finding of QA run #32135 (at ff04ad81; card #32168): the seed carries no null annual_revenue, so count('*') and count(annual_revenue) answered alike and the count leg could not discriminate — the plant lived only in knownGaps[0] as what QA run #27392 had done. The plant is the step's now, not a seed change: one row with no annual_revenue and three dated rows for the ISO-week and ISO-year legs, deleted after the run. Re-read at base 8523ef9a: examples/app-showcase/src/data/seed/index.ts (14 accounts, every one with an annual_revenue) and examples/app-showcase/src/data/objects/account.object.ts (name and status required, no validation rule names annual_revenue or signed_on). No clause's assertion was weakened", "ref": "#32168" } + { "revision": 8, "date": "2026-11-10", "change": "steps[1] plants the discriminating rows; knownGaps[0] and acceptance[0].verify point at it. Checklist-accuracy finding of QA run #32135 (at ff04ad81; card #32168): the seed carries no null annual_revenue, so count('*') and count(annual_revenue) answered alike and the count leg could not discriminate — the plant lived only in knownGaps[0] as what QA run #27392 had done. The plant is the step's now, not a seed change: one row with no annual_revenue and three dated rows for the ISO-week and ISO-year legs, deleted after the run. Re-read at base 8523ef9a: examples/app-showcase/src/data/seed/index.ts (14 accounts, every one with an annual_revenue) and examples/app-showcase/src/data/objects/account.object.ts (name and status required, no validation rule names annual_revenue or signed_on). No clause's assertion was weakened", "ref": "#32168" }, + { "revision": 9, "date": "2026-11-14", "change": "steps[5] and acceptance[3] (clause, verify) re-pointed (stale spec, card #33332; QA runs #33025 comment 6844741021 and #33081 comment 6850173588): since #32279 each retired-aggregate prescription carries a one-line head (withRefusalHead, packages/spec/src/data/query.zod.ts), and the data doors answer the head as the message and the prescription, AGG_RETIRED_TAIL included, as the fields[] entry's hint. The item read the prescription in the message. The enum-error half and the never-500 half are unchanged. Read from source at base fca5f89c", "ref": "#33332" } ] }, { @@ -2313,7 +2338,7 @@ "title": "enable.apiMethods three-state whitelist on the REST boundary: 404 hides apiEnabled:false, 405 OBJECT_API_METHOD_NOT_ALLOWED carries the EFFECTIVE derived set, bulk∧child + writeMode-precise import, legacy 8-value strip-and-WARN (deny-all cliff), the object gate answers ahead of the caller's 403, batch gated per-op before the txn", "since": "v16", "status": "active", - "revision": 4, + "revision": 5, "priority": "P1", "surface": "api", "personas": [ @@ -2349,7 +2374,7 @@ "evidence": "the captured bodies" }, { - "clause": "the 405 body's allowed[] is the EFFECTIVE derived operation set in API_OPERATION_ORDER — never the raw whitelist: granted primitives plus their derived closure (aggregate/search from list, export from list, import from create/update, history only with trackHistory), with restore/purge absent even for an unrestricted object (permanently-off trash flags)", + "clause": "the 405 body's allowed[] is the EFFECTIVE derived operation set in API_OPERATION_ORDER — never the raw whitelist: granted primitives plus their derived closure (aggregate/search from list, export from list, import from create/update, restore and purge from delete since ADR-0148 / #30237, history only with trackHistory); so ['get','delete'] answers allowed ['get','delete','restore','purge'], and restore/purge are absent exactly when delete is", "oracle": "api", "verify": "the scratch object's 405 allowed[] equals effectiveOperationsArray(resolveEffectiveApiMethods({apiMethods:['get','list','create']})) computed locally from the spec table — element-for-element, order included", "evidence": "the allowed[] vs the locally-computed closure" @@ -2387,7 +2412,7 @@ ], "negative": [ "a whitelist-refused operation that lands data-side effects (row created/updated before the 405) is a write-then-refuse FAIL", - "allowed[] echoing the RAW whitelist (or containing restore/purge) means the wire is leaking the authored form instead of the effective contract the frontend consumes", + "allowed[] echoing the RAW whitelist (or containing restore/purge for an object whose effective set lacks delete, or lacking them for one that has it) means the wire is leaking the authored form instead of the effective contract the frontend consumes", "the gate is the EXTERNAL REST boundary only — internal callers (hooks, flows, raw objectql) are deliberately unaffected ('apiEnabled controls automatic API exposure, not data access'); a run must not file an internal write on a narrowed object as a bypass", "a legacy apiMethods value HARD-REJECTED at parse is a FAIL in the opposite direction — the strip-and-warn tolerance is the contract (#3543: canonicalize-and-warn, never reject)" ], @@ -2438,7 +2463,8 @@ "change": "steps[3] names the searchable flag on the derived search verb and the createMany body shape. Checklist-accuracy findings of the 18.2.0 wave 2 (QA run #26476, release-18.2.0-w2-manual-api, at 756220c4; wave anchor #25807, slice A): the closure carries search only when searchable is not false, and the createMany door takes a bare array. Re-read at base e4ba846f (packages/spec/src/data/api-derivation.ts: the search row's flag; packages/rest/src/batch-routes.ts: 'the body must be a JSON array of record objects'). No clause changed", "ref": "#25807" }, - { "revision": 4, "date": "2026-10-31", "change": "steps[4] spells the import body and steps[5] names the warn-once dedupe. Checklist-accuracy findings of QA run #27392 (18.3.0 sweep, wave 3, at c4c515ad; sweep anchor #27377). (1) The import leg gave no body: the door parses {format:'json', rows:[…], writeMode} (plus matchFields[] for update and upsert) before its precise gate, and a malformed body answers 400 INVALID_REQUEST, which reads like the gate. (2) The [Registry] stripped-legacy warning fires once per object name per process, and the parse warning once per legacy combination, so a second legacy leg on the same name shows no warning. Re-read at base 488b3ed0: packages/rest/src/import-prepare.ts prepareImportRequest, packages/rest/src/data-action-routes.ts (the import route's stage-2 gate), packages/objectql/src/registry.ts warnStrippedLegacyApiMethods, packages/spec/src/data/object.zod.ts stripLegacyApiMethods. No clause changed", "ref": "#27392" } + { "revision": 4, "date": "2026-10-31", "change": "steps[4] spells the import body and steps[5] names the warn-once dedupe. Checklist-accuracy findings of QA run #27392 (18.3.0 sweep, wave 3, at c4c515ad; sweep anchor #27377). (1) The import leg gave no body: the door parses {format:'json', rows:[…], writeMode} (plus matchFields[] for update and upsert) before its precise gate, and a malformed body answers 400 INVALID_REQUEST, which reads like the gate. (2) The [Registry] stripped-legacy warning fires once per object name per process, and the parse warning once per legacy combination, so a second legacy leg on the same name shows no warning. Re-read at base 488b3ed0: packages/rest/src/import-prepare.ts prepareImportRequest, packages/rest/src/data-action-routes.ts (the import route's stage-2 gate), packages/objectql/src/registry.ts warnStrippedLegacyApiMethods, packages/spec/src/data/object.zod.ts stripLegacyApiMethods. No clause changed", "ref": "#27392" }, + { "revision": 5, "date": "2026-11-14", "change": "acceptance[1].clause and negative[1] re-pointed (stale spec, card #33332; QA runs #33025 comment 6844741021, #33081 comment 6850173588, #33092 comment 6850793622). They said restore/purge never appear in allowed[]; since ADR-0148 / #30237 restore and purge derive from delete (packages/spec/src/data/api-derivation.ts: restore {all: ['delete']}, purge {all: ['delete']}), so ['get','delete'] answers allowed get, delete, restore, purge. The clause's real check, allowed[] equal to the locally computed closure, is unchanged and passed. Read from source at base fca5f89c", "ref": "#33332" } ] }, { @@ -2446,7 +2472,7 @@ "title": "RestServerConfig.crud is the CRUD surface's construction contract: five switches gate six mounts, dataPrefix moves the routes and their discovery advertisement together, and both tombstones refuse at construction", "since": "v17", "status": "active", - "revision": 6, + "revision": 7, "priority": "P2", "surface": "api", "personas": [ @@ -2490,7 +2516,7 @@ { "clause": "an unmounted route is NOT the object-level 404: `enable.apiEnabled: false` answers a handler envelope with OBJECT_API_DISABLED, while a switched-off operation leaves no RestServer handler at all — the two absences must stay distinguishable. Scored in the harness: no stock boot carries a non-default crud block (knownGaps[0]), so a switched-off route's wire answer is unobservable, and on a composed server the dispatcher's own data domain (packages/runtime/src/domains/data.ts) serves /data routes too, so a RestServer route table cannot speak for what the composed server answers there", "oracle": "test", - "verify": "the switched-off operation is absent from getRoutes() (acceptance[1]'s harness and the mount pin), set beside a live OBJECT_API_DISABLED body from api-backend.api-methods-verb-gate and the step-2 routing-404 control; a coded envelope from a route the switch should have removed means the switch did not gate the mount. ⛔ Never record the harness absence as the composed server's wire answer (the dispatcher-vs-hono-route trap)", + "verify": "the switched-off operation is absent from getRoutes() (acceptance[1]'s harness and the mount pin), set beside an OBJECT_API_DISABLED body over HTTP and the step-2 routing-404 control. The stock showcase declares no `apiEnabled: false` object, so that body is the HTTP pin's fixture (packages/qa/dogfood/test/rest-config-contract-live.dogfood.test.ts, the sox_hidden object), not a stock-boot read; a coded envelope from a route the switch should have removed means the switch did not gate the mount. ⛔ Never record the harness absence as the composed server's wire answer (the dispatcher-vs-hono-route trap)", "evidence": "the harness route-table diff + the two live bodies side by side" }, { @@ -2578,6 +2604,12 @@ "date": "2026-10-27", "change": "acceptance[0], [2], [3] and [4] are pinned at the layer their oracle names (the release-18.2.0 Tier 1 sweep #26468 scored a0 unpinned and a2, a3, a4 half-asserted). The new rest-config-contract-live.dogfood.test.ts fires the default mounts and the OBJECT_API_DISABLED body against the routing-404 control on booted stacks, and rest-config-contract-harness.test.ts reads the re-based route table and both refusal texts off a real RestServer. automated.kind is dogfood; automated.ref and acceptance[4].verify name what they assert. Measured at base c8583f80. No clause changed", "ref": "#26572" + }, + { + "revision": 7, + "date": "2026-11-14", + "change": "acceptance[2].verify re-pointed (stale spec, card #33332; QA run #33081 comment 6850173588). It asked for a live OBJECT_API_DISABLED body from api-backend.api-methods-verb-gate, but the stock showcase declares no `apiEnabled: false` object, so no stock boot answers it. The body now comes from the HTTP pin rest-config-contract-live.dogfood.test.ts, whose sox_hidden fixture answers OBJECT_API_DISABLED and is set against the routing-404 control. The clause is unchanged. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -3638,7 +3670,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": 3, + "revision": 4, "priority": "P1", "surface": "api", "personas": [ @@ -3660,7 +3692,7 @@ "steps": [ "as admin: GET /api/v1/automation/showcase_batch_reminders (bare), GET /api/v1/automation/showcase/showcase_batch_reminders, GET /api/v1/automation/qa_b/showcase_batch_reminders, GET /api/v1/automation/_env/showcase_batch_reminders and GET /api/v1/automation/qa_b/qa_nothing; record status and body of each", "GET /api/v1/automation/_env/qa_env_flow, GET /api/v1/automation/qa_env_flow (bare) and GET /api/v1/automation/showcase/qa_env_flow; then GET /api/v1/automation/qa_nowhere/showcase_batch_reminders (a first segment that is no installed namespace)", - "run by address: POST /api/v1/automation/showcase/showcase_batch_reminders/trigger, then POST /api/v1/automation/trigger/showcase/showcase_batch_reminders (body {} for both); then GET /api/v1/automation/showcase/showcase_batch_reminders/runs and the bare GET /api/v1/automation/showcase_batch_reminders/runs; read one run as GET /api/v1/automation/showcase/showcase_batch_reminders/runs/RUN_ID", + "run by address: POST /api/v1/automation/showcase/showcase_batch_reminders/trigger, then POST /api/v1/automation/trigger/showcase/showcase_batch_reminders (body {\"params\": {\"tasks\": []}} for both: showcase_batch_reminders declares the input variable tasks, examples/app-showcase/src/automation/flows/index.ts, and its loop reads it, so a {} body answers 400 FLOW_FAILED 'Unknown variable: tasks'); then GET /api/v1/automation/showcase/showcase_batch_reminders/runs and the bare GET /api/v1/automation/showcase_batch_reminders/runs; read one run as GET /api/v1/automation/showcase/showcase_batch_reminders/runs/RUN_ID", "POST /api/v1/automation/trigger/qa_nowhere/showcase_batch_reminders (body {}); re-read the bare runs list", "connector connection: GET /api/v1/automation/connectors/showcase_status_api/connection (bare), then the same under showcase, qa_b and _env (GET /api/v1/automation/connectors/NS/showcase_status_api/connection)", "inbound hook. As admin read the run count of showcase_inbound_task_webhook (GET /api/v1/automation/showcase_inbound_task_webhook/runs). Without a session, POST /api/v1/automation/hooks/showcase/showcase_inbound_task_webhook/intake with the body {\"title\":\"qa addressed hook\"}, signed t=,v1= with SHOWCASE_WEBHOOK_SECRET as automation.inbound-hook-timestamped-signature signs. Then make the same correctly signed post to /hooks/qa_b/showcase_inbound_task_webhook/intake and to /hooks/_env/showcase_inbound_task_webhook/intake. Then post to the bare /hooks/showcase_inbound_task_webhook/intake with a wrong signature. Record status, headers and raw body of each, then re-read the run count once the queue drains", @@ -3695,7 +3727,7 @@ { "clause": "the run doors and the legacy trigger take the address, and a three-segment legacy trigger with no address runs nothing", "oracle": "api", - "verify": "both addressed runs answer as the bare POST /automation/showcase_batch_reminders/trigger does and each adds one run; the addressed and bare run lists name the same runs, and the addressed run read returns RUN_ID. trigger/qa_nowhere/showcase_batch_reminders answers 404 ROUTE_NOT_FOUND and the run count is unchanged (#32001 BREAKING 2: before, that path ran the flow qa_nowhere)", + "verify": "both addressed runs answer as the bare POST /automation/showcase_batch_reminders/trigger with the same body does and each adds one run; the addressed and bare run lists name the same runs, and the addressed run read returns RUN_ID. trigger/qa_nowhere/showcase_batch_reminders answers 404 ROUTE_NOT_FOUND and the run count is unchanged (#32001 BREAKING 2: before, that path ran the flow qa_nowhere)", "evidence": "the run answers and the run lists before and after" }, { @@ -3719,7 +3751,7 @@ { "clause": "a served shape under a verb it is not served by answers 405 with the verbs it is served under", "oracle": "api", - "verify": "DELETE on the addressed runs list answers 405 with Allow: GET (packages/runtime/src/domains/automation-address.ts#automationRouteAllow)", + "verify": "DELETE on the addressed runs list answers 405 with Allow: GET, HEAD (packages/runtime/src/domains/automation-address.ts#automationRouteAllow names GET; the Hono adapter adds HEAD wherever GET is allowed, packages/plugins/plugin-hono-server/src/adapter.ts)", "evidence": "the status and the Allow header" } ], @@ -3769,6 +3801,12 @@ "date": "2026-11-10", "change": "fixture-text correction, no clause change: the scratch package ids are re-spelled with a hyphen (com.qa.addr-b) everywhere this item names them (fixtures), because `objectstack build` refuses an underscore in a package id (packages/spec/src/kernel/manifest.zod.ts#MANIFEST_ID_PATTERN, refused with manifestIdRefusal). The namespace qa_b and every namespace-qualified address are unchanged. No step, clause or variant changes meaning. Found by the M4 verification run (#32316, FOLLOW-UPS §19b); card #32330", "ref": "#32330" + }, + { + "revision": 4, + "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" } ] }, @@ -3777,7 +3815,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": 3, + "revision": 4, "priority": "P2", "surface": "api", "personas": [ @@ -3859,7 +3897,7 @@ ], "automated": { "kind": "unit", - "ref": "packages/client/src/package-addressing.test.ts (79 tests: 24 calls bare and qualified, each matched to a route ledger row; the refusals with zero requests; §4 through the real dispatcher for /automation, /actions and /meta); the live leg is this item" + "ref": "packages/client/src/package-addressing.test.ts (its vitest summary is the count, which moves with the file: 83 tests at 5fb79bc0, QA run #32940, several generated per call by each-loops; 24 calls bare and qualified, each matched to a route ledger row; the refusals with zero requests; §4 through the real dispatcher for /automation, /actions and /meta); the live leg is this item" }, "source": [ "docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md D5 (the client SDK) and child G3", @@ -3890,6 +3928,12 @@ "date": "2026-11-10", "change": "fixture-text correction, no clause change: the fixture's aside on the package-id rule no longer spells the refused underscore id literally; it now says the manifest id grammar refuses an underscore in a package id at build. The ids the item uses were already hyphenated in revision 2, and the namespaces qa_a and qa_b are unchanged. No step, clause or variant changes meaning. Found by the M4 verification run (#32316, FOLLOW-UPS §19b); card #32330", "ref": "#32330" + }, + { + "revision": 4, + "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" } ] }, diff --git a/docs/qa/platform-checklist/areas/approvals.json b/docs/qa/platform-checklist/areas/approvals.json index 123b9444dcb..89581e2ecd0 100644 --- a/docs/qa/platform-checklist/areas/approvals.json +++ b/docs/qa/platform-checklist/areas/approvals.json @@ -191,7 +191,7 @@ "title": "M-of-N quorum approves at the threshold; one rejection vetoes", "since": "v16", "status": "active", - "revision": 10, + "revision": 11, "priority": "P1", "surface": "browser", "personas": ["three DISTINCT users each holding one of the approver positions"], @@ -199,7 +199,7 @@ "app": "showcase", "requires": [ "a quorum (minApprovals: 2) request whose three position approvers resolve to three distinct users", - "RUNTIME FIXTURE (admin API only, stock boot, nothing seeded or committed; proved by run #21845) — apply it before the quorum steps, in this order: (1) bind a second committee position holder: as the admin, POST /api/v1/data/sys_user_position {user_id: , position: 'showcase_finance', organization_id: } — admin + Ada is a real 2-of-2 slate; (2) for the full 2-of-3, invite + sign up a third user and bind them to position 'showcase_legal' the same way. On a boot an earlier item already used (a fresh boot needs no unbinding), first list sys_user_position for positions finance and legal and unbind any other member a previous item bound there (e.g. approvals.account-app-entry's runtime persona, which holds finance) — a slate is every holder, so a leftover binding makes it four distinct people and the 2-of-3 never forms; prove each persona with GET /api/v1/auth/get-session before it acts; (3) DISABLE the competing per-group sign-off flow for the run: POST /api/v1/automation/showcase_expense_signoff/toggle {\"enabled\": false} — it has no amount ceiling and opens its request first on any >= 5000 report, so without this the quorum flow's open fails DUPLICATE_REQUEST; re-enable it with {\"enabled\": true} afterwards; (4) open a FRESH request after the bindings, because a slate is fixed when its request opens: create a draft showcase_expense_report, add one showcase_expense_line of 6000 (total_amount >= 5000, the committee threshold), then PATCH the report's status to 'submitted'. Use a second fresh request the same way for the veto case. The admin who creates the reports is then both the submitter and the third holder; that is harmless, because the tally counts distinct deciders and the 2-of-3 forms from the other two" + "RUNTIME FIXTURE (admin API only, stock boot, nothing seeded or committed; proved by run #21845) — apply it before the quorum steps, in this order: (1) bind a second committee position holder: as the admin, POST /api/v1/data/sys_user_position {user_id: , position: 'showcase_finance', organization_id: } — admin + Ada is a real 2-of-2 slate; (2) for the full 2-of-3, invite + sign up a third user and bind them to position 'showcase_legal' the same way. On a boot an earlier item already used (a fresh boot needs no unbinding), first list sys_user_position for positions finance and legal and unbind any other member a previous item bound there (e.g. approvals.account-app-entry's runtime persona, which holds finance) — a slate is every holder, so a leftover binding makes it four distinct people and the 2-of-3 never forms; prove each persona with GET /api/v1/auth/get-session before it acts; (3) DISABLE the competing per-group sign-off flow for the run: POST /api/v1/automation/showcase_expense_signoff/toggle {\"enabled\": false} — it has no amount ceiling and opens its request first on any >= 5000 report, so without this the quorum flow's open fails DUPLICATE_REQUEST; re-enable it with {\"enabled\": true} afterwards; (4) open a FRESH request after the bindings, because a slate is fixed when its request opens: create a draft showcase_expense_report, add one showcase_expense_line of 6000 (total_amount >= 5000, the committee threshold), then PATCH the report's status to 'submitted'. The line needs its expense_report, a merchant (required) and the amount; category is optional, and a status, if sent, must be one of the line's own options submitted, approved or rejected (submitted is the default; 'pending' is refused 400), examples/app-showcase/src/data/objects/expense-report.object.ts. Add the line BEFORE the submit: a report PATCHed to submitted with total_amount 0 opens nothing, and must be recreated rather than re-submitted. Use a second fresh request the same way for the veto case. The admin who creates the reports is then both the submitter and the third holder; that is harmless, because the tally counts distinct deciders and the 2-of-3 forms from the other two" ], "knownGaps": [ "the FLOW half of the fixture is real and seeded — showcase_committee_quorum (2-of-3 quorum over positions manager/finance/legal, examples/app-showcase/src/automation/flows/index.ts) is launched on EXP-DEMO by seed-approval-demo.ts. What still collapses the slate is POSITION ASSIGNMENT, not a missing flow or a pending design call: the admin holds all three committee positions (ADMIN_APPROVAL_POSITIONS = manager/finance/legal/exec, seed-approval-demo.ts) and Ada Auditor deliberately holds ONLY auditor, so all three slots resolve to one person and the runtime clamps 2-of-3 to 1-of-1", @@ -305,6 +305,12 @@ "date": "2026-11-14", "change": "steps[4] re-pointed: the repeat-actor probe's second persona, a user holding none of the routed positions, is answered 404 REQUEST_NOT_FOUND, not 403 (stale spec, card #33275, the sibling half of #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 decideNode's slate check, so the request's existence never leaks; a user who holds no routed position and never acted on the request is no participant, and no showcase object declares enable.approvalsVisibleToReaders, so that user reads nothing. The first persona is unchanged: Ada's own decision keeps her a reader (visibleRequestIds' already-acted probe on sys_approval_action.actor_id), so her repeat approve reaches the slate check and answers 403 FORBIDDEN 'is not a pending approver'. No clause changed: negative[0] asserts the refusal, not its status. Read from source at base 87330e89, not driven live", "ref": "#33275" + }, + { + "revision": 11, + "date": "2026-11-14", + "change": "fixtures.requires[1] step (4) re-pointed (stale spec, card #33332; QA run #33048 comment 6846028996). The step said only 'add one showcase_expense_line of 6000'; the run met a 400 on a line status 'pending' and a report submitted at total 0 that opened nothing. The step now names what the line needs from source (expense_report, merchant and amount required; category optional; status one of submitted, approved, rejected, default submitted) and that the line goes in before the submit. The seed gap in knownGaps[1] (Ada holds only showcase_auditor) is unchanged and stays. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -313,7 +319,7 @@ "title": "Inbox actions are metadata-driven and gated by the viewer's relationship", "since": "v16", "status": "active", - "revision": 8, + "revision": 9, "priority": "P1", "surface": "browser", "personas": ["an approver who is NOT the submitter and NOT an override actor (no platform-admin or tenant-admin standing), so record.viewer.can_override is false on the request", "the dev admin: the submitter of the invoice request (the own-request case) and an OVERRIDE actor (a platform admin — record.viewer.can_override is true on any PENDING request), for the override half of clause 2"], @@ -332,7 +338,7 @@ "GET /api/v1/approvals/requests/:id for both requests, as each viewer, and record the server-computed viewer flags (can_act, is_submitter, can_override) and status", "cross-check each rendered action against the declared metadata actions on sys_approval_request (visibility expressions gate on record.viewer.can_act / record.viewer.is_submitter / record.status)", "spot-check an approver action: approve EXP-DEMO from its request page; capture the POST and re-read the request", - "spot-check a submitter action: send a reminder on the invoice request; capture POST /api/v1/approvals/requests/:id/remind", + "spot-check a submitter action: send a reminder on the invoice request; capture the action-door POST /api/v1/actions/sys_approval_request/approval_remind (forwarded to /api/v1/approvals/requests/:id/remind)", "GET /:id/actions on both requests and record the appended timeline rows" ], "acceptance": [ @@ -345,7 +351,7 @@ { "clause": "send-reminder appears only on the viewer's own pending request; Recall appears on the viewer's own pending/returned request and, for an override actor (platform/tenant admin), on any pending request; a non-admin approver sees neither on another submitter's request.", "oracle": "dom", - "verify": "the own request's page shows both; the non-override approver's request page on the other-submitter request shows neither; the dev admin's request page on that same pending request shows Recall under its override label, 'Override Recall' (an override actor's decisions read 'Override Approve', 'Override Reject', 'Override Reassign': ui/packages/app-shell/src/views/DeclaredActionsBar.tsx, approvalsInbox.overrideActionLabel 'Override {{action}}'), and NOT send-reminder — approval_recall's second visibility arm is record.viewer.can_override (the #3424 override lever, button added by #12716), and approval_remind stays submitter-only. Read each viewer's flags beside its request page", + "verify": "the own request's page shows both; the non-override approver's request page on the other-submitter request shows neither; the dev admin's request page on that same pending request shows Recall under its override label, 'Override Recall', once the admin holds no pending slot on it (the override framing is drawn only for a viewer with can_act false and can_override true: ui/packages/app-shell/src/utils/approvalOverride.ts isOverrideOnlyViewer). On stock EXP-2001 routes the admin's manager group too, so the admin reads can_act true and sees the plain 'Recall' until that slot is spent or reassigned to a member (POST .../reassign {to}, as fixtures.requires[2] says for EXP-DEMO); read the admin's can_act beside the label (an override actor's decisions read 'Override Approve', 'Override Reject', 'Override Reassign': ui/packages/app-shell/src/views/DeclaredActionsBar.tsx, approvalsInbox.overrideActionLabel 'Override {{action}}'), and NOT send-reminder — approval_recall's second visibility arm is record.viewer.can_override (the #3424 override lever, button added by #12716), and approval_remind stays submitter-only. Read each viewer's flags beside its request page", "evidence": "action lists for the three (viewer, request) pairs + the viewer flags each was rendered against" }, { @@ -357,7 +363,7 @@ { "clause": "each spot-checked action executes its REST route and the state change round-trips", "oracle": "network", - "verify": "the approve click POSTs /api/v1/approvals/requests/:id/approve and the re-read reflects the decision; the remind click POSTs /:id/remind and stays status=pending", + "verify": "the approve click POSTs the action door /api/v1/actions/sys_approval_request/approval_approve (body {recordId, params}), which forwards in-process to the declared target /api/v1/approvals/requests/:id/approve under the caller's identity (ui/packages/app-shell/src/utils/apiActionDoor.ts; target in packages/plugins/plugin-approvals/src/sys-approval-request.object.ts), and the re-read reflects the decision; the remind click POSTs /api/v1/actions/sys_approval_request/approval_remind, forwarded to /:id/remind, and the request stays status=pending. The browser trace shows the action-door URL, never the approvals route", "evidence": "network traces + re-reads" }, { @@ -395,6 +401,12 @@ "date": "2026-10-31", "change": "fixtures.requires[2] said the seeded approver of EXP-2001 / EXP-DEMO is only the dev admin, so a plain member had to be invited and reassigned in. QA run #27441 found EXP-2001 also routes Ada. Source agrees: ExpenseSignoffFlow's finance group is position 'auditor', which seed-approval-demo.ts assigns to Ada Auditor, a plain member (role 'member', so can_override false). Ada is now named as the ready-made non-override approver on EXP-2001. The reassign detour stays only for EXP-DEMO, whose quorum slate (manager / finance / legal) is all the admin's. No clause changed. Read from source at base 22ce3d13. Wave anchor #27377, wave-3 accuracy slice S5 (#28339); finding parked in anchor comment 6490438726", "ref": "#27441" + }, + { + "revision": 9, + "date": "2026-11-14", + "change": "acceptance[1].verify, acceptance[3].verify and steps[6] re-pointed (stale spec, card #33332; QA runs #33048 comment 6846028996, #33088 comment 6850413952, #33093 comment 6850899929). acceptance[1]: 'Override Recall' is drawn only for a viewer with can_act false and can_override true (approvalOverride.ts isOverrideOnlyViewer); on stock EXP-2001 also routes the admin's manager group, so the admin sees plain 'Recall' until that slot is spent or reassigned, which the verify now says, as fixtures.requires[2] already did for EXP-DEMO. acceptance[3] and steps[6]: a declared type: 'api' click posts the action door /api/v1/actions/sys_approval_request/approval_, which forwards to the approvals route (apiActionDoor.ts, objectstack#27611), so the network literal is the action-door URL. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -475,7 +487,7 @@ "title": "An approval notification deep-links straight onto the request's page", "since": "v16", "status": "active", - "revision": 9, + "revision": 10, "priority": "P2", "surface": "browser", "personas": ["any pending approver"], @@ -487,7 +499,7 @@ "boot the showcase on its own port and DB (dogfood §0); sign in as the dev admin (a pending approver on the seeded requests)", "mint the notification: open a fresh request the admin approves (the opening emits approval.requested to each concrete approver on its slate, PR #22625) — or POST /api/v1/approvals/requests/:id/reassign {to: } on a pending request. Not /remind: it is submitter-only and answers the admin 403 'FORBIDDEN: only the submitter may send reminders' on the seeded requests, which a run must not score as a deep-link FAIL", "read the resulting notification row and record its actionUrl — it must carry /system/approvals?request= (#2678 P1.5; ApprovalService.notify rewrites the bare /system/approvals into the deep link centrally, so every emitting topic inherits it)", - "cold-load that exact URL in a fresh page (no prior navigation); wait for settle; record the URL it lands on — the inbox route replaces itself in history with the request's served record page, /apps/APP/sys_approval_request/record/ID (APP is com.objectstack.setup on the bare /system/approvals route: ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx#requestPagePath falls back to the setup app's NAME, and the app shell then replaces that name alias with the app's package id, ui/packages/app-shell/src/utils/appRoute.ts#canonicalAppPathname, packages/apps/setup/src/index.ts#SETUP_APP_PACKAGE_ID; on the component route it is com.objectstack.account) — and capture that page", + "cold-load that exact URL in a fresh page (no prior navigation); wait for settle; record the URL it lands on — the inbox route replaces itself in history with the request's served record page, /apps/APP/sys_approval_request/record/ID (APP is the app that owns the request's RECORD, the same from either route since objectstack#32667: ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx#requestPagePath asks ui/packages/app-shell/src/utils/objectHostApp.ts#objectHostAppSegment for the app it is asked from when that app's navigation lists the record's object, else the first app whose navigation does, else Setup by its package id com.objectstack.setup. So a showcase_expense_report or showcase_invoice request lands under com.example.showcase, and a request on an object no app's navigation lists, such as showcase_announcement, lands under com.objectstack.setup. Record which object the request is on beside the landed URL) — and capture that page", "GET /api/v1/approvals/requests/:id and cross-check the page's request identity and status against the read", "repeat the cold load a second time on a fresh page (the hydration-race counter)", "negative probe: cold-load /system/approvals?request= and screenshot the result", @@ -515,7 +527,7 @@ { "clause": "the SAME ?request= deep link lands on the request's page from BOTH routes — the /system/approvals route notification and email links carry, and the component route the account app's Approvals entry mounts (#7213 entry convergence)", "oracle": "screenshot", - "verify": "cold-load the same request id on /system/approvals?request= and on /apps//component/approvals/inbox?request=; both land on that request's record page (the app segment differs: com.objectstack.setup on the bare route, com.objectstack.account on the component route) and draw that request. The /system/approvals route MUST keep working — it is what already-delivered notifications and emails carry, so a component-route-only deep link is a FAIL", + "verify": "cold-load the same request id on /system/approvals?request= and on /apps//component/approvals/inbox?request=; both land on that request's record page (the app segment is the app that owns the request's record, the same from both routes: com.example.showcase for a showcase_expense_report or showcase_invoice request, com.objectstack.setup for a record no app's navigation lists; steps[3]) and draw that request. The /system/approvals route MUST keep working — it is what already-delivered notifications and emails carry, so a component-route-only deep link is a FAIL", "evidence": "one landing URL + screenshot per route, same request id" }, { @@ -544,7 +556,8 @@ { "revision": 6, "date": "2026-10-13", "change": "fixtures.requires[0] and steps[1] stop sending the admin through /remind (assertion defect, #23163 A0; parked on #23121, carried by #23169). ApprovalService.remind refuses every caller but the request's submitter, 'FORBIDDEN: only the submitter may send reminders', and the dev admin is an approver on the seeded requests. QA run #23163 met the 403 and minted the notification through the opening path instead, then passed every clause. The opening path (PR #22625) and /reassign are the two notification sources an approver can drive", "ref": "#23169" }, { "revision": 7, "date": "2026-10-20", "change": "steps[0] respelled: 'boot showcase isolated' → 'boot the showcase on its own port and DB'. Round 12's out-of-scope finding (landing record 6287983829 on wave anchor #24579): the phrase 'showcase isolated' named the dogfood §0 own-port boot, and a runner read it as the `isolated` tenancy posture (OS_TENANCY_POSTURE=isolated). The new spelling names that boot by what it is, in RUNNER.md's own words for it (the trap table's counter: own port/DB, skill §0), and names no posture. Read at base e4d604efd3. No clause changed", "ref": "#25003" }, { "revision": 8, "date": "2026-10-28", "change": "the retired request drawer is replaced by the request's served record page: title, steps[3], [4], [7], acceptance[1]–[4], negative[0] and source[3]. A cold-loaded /system/approvals?request=ID, or the account app's component route with the same query, Navigates, replacing itself in history, to /apps/APP/sys_approval_request/record/ID (ApprovalsInboxPage, requestPagePath); objectui#12484 deleted the inbox's side sheet (ruling C on objectui#12438); it came into this tree with the ui/ import, PR #25825. Two readings change with the surface: acceptance[1] may read the landing URL, which keeps the id (revision 4's 'the console consumes the query param' described the drawer), and acceptance[4]'s unknown id lands on that id's record page in its not-found state instead of the inbox with no drawer. Both are read from source at base f2fdac5d, not driven live, so a prior verdict on acceptance[1]–[4] does not carry. acceptance[0] is unchanged: ApprovalService.notify still rewrites /system/approvals to ?request=ID. Wave anchor #25807, slice C; lead from slice B's report 6457925443", "ref": "#25807" }, - { "revision": 9, "date": "2026-10-28", "change": "steps[3] names APP correctly: on the bare /system/approvals route the landing segment is com.objectstack.setup, not setup, as QA run #27134 measured live at 07d18e692 (both cold loads and the unknown-id load landed on /apps/com.objectstack.setup/sys_approval_request/record/ID). Source at base 74133d98: ApprovalsInboxPage.tsx requestPagePath falls back to the setup app's NAME 'setup', and the app shell's canonicalAppPathname (ui/packages/app-shell/src/utils/appRoute.ts) then replaces a name alias with the app's package id, SETUP_APP_PACKAGE_ID 'com.objectstack.setup' (packages/apps/setup/src/index.ts). acceptance[3]'s verify parenthetical carried the same stale 'setup' and is corrected in the same words (com.objectstack.setup on the bare route, com.objectstack.account on the component route); every clause still uses the APP placeholder, so no assertion and no verdict moves. Wave anchor #25807, wave-2 accuracy slice D; seat note 6464451167", "ref": "#27134" } + { "revision": 9, "date": "2026-10-28", "change": "steps[3] names APP correctly: on the bare /system/approvals route the landing segment is com.objectstack.setup, not setup, as QA run #27134 measured live at 07d18e692 (both cold loads and the unknown-id load landed on /apps/com.objectstack.setup/sys_approval_request/record/ID). Source at base 74133d98: ApprovalsInboxPage.tsx requestPagePath falls back to the setup app's NAME 'setup', and the app shell's canonicalAppPathname (ui/packages/app-shell/src/utils/appRoute.ts) then replaces a name alias with the app's package id, SETUP_APP_PACKAGE_ID 'com.objectstack.setup' (packages/apps/setup/src/index.ts). acceptance[3]'s verify parenthetical carried the same stale 'setup' and is corrected in the same words (com.objectstack.setup on the bare route, com.objectstack.account on the component route); every clause still uses the APP placeholder, so no assertion and no verdict moves. Wave anchor #25807, wave-2 accuracy slice D; seat note 6464451167", "ref": "#27134" }, + { "revision": 10, "date": "2026-11-14", "change": "steps[3] and acceptance[3].verify re-pointed (stale spec, card #33332; QA runs #33058 comment 6846283471 and #33094 comment 6852480973). They said the landing app segment is com.objectstack.setup on the bare /system/approvals route and com.objectstack.account on the component route. Since objectstack#32667 requestPagePath asks objectHostAppSegment, so the segment is the app that owns the request's record, from either route: com.example.showcase for an expense-report request, com.objectstack.setup for an announcement request no app's navigation lists. The clause, both routes landing on that request's page, is unchanged. Read from source at base fca5f89c", "ref": "#33332" } ] }, { @@ -552,14 +565,14 @@ "title": "Every approval action executes its REST route and produces the expected state transition plus a timeline entry", "since": "v16", "status": "active", - "revision": 11, + "revision": 12, "priority": "P1", "surface": "mixed", "personas": ["dev admin (pending approver on the seeded requests; submitter of the invoice request)"], "fixtures": { "app": "showcase", "requires": [ - "the three seeded demo requests (invoice unanimous / EXP-DEMO quorum / EXP-2001 per-group) plus fresh showcase_budget_approval requests raised on demand by PATCHing a showcase_project budget above 100000 (budget != previous.budget)", + "the three seeded demo requests (invoice unanimous / EXP-DEMO quorum / EXP-2001 per-group) plus fresh showcase_budget_approval requests raised on demand by PATCHing a showcase_project budget above 100000 (budget != previous.budget). The PATCH must also pass the project's spent_within_budget validation (spent > budget × 1.2 is refused 'Spend exceeds 120% of budget — escalate before continuing.', examples/app-showcase/src/data/objects/project.object.ts): the seeded Data Platform project refuses a budget of 200000, so raise the requests on projects the run creates (spent unset) or on one whose spent stays within 120% of the new budget", "showcase_budget_approval's manager step declares the ADR-0044 revise loop (maxRevisions: 2) and lockRecord: false; its exec step (budget > 500000) declares NO revise edge and lockRecord: true — both sides of two gates in one flow" ], "provisioning": { @@ -633,7 +646,7 @@ { "clause": "non-finalizing actions mutate only what they own: reassign swaps the slate slot to the target user; remind/request-info/comment leave status=pending and touch nothing but the timeline", "oracle": "api", - "verify": "after reassign: pending_approvers contains the target and not the source; after remind/request-info/comment: status and tallies byte-identical, one new timeline row each", + "verify": "after reassign: pending_approvers contains the target and not the source; after remind/request-info/comment: status and tallies byte-identical, one new timeline row each. The tallies are the request's decision_progress, which only a unanimous, quorum or per_group request carries (ApprovalService: a first_response request carries no progress), so on a first_response budget-approval request the tally half is vacuous: read it on a request that carries one, such as the seeded invoice (unanimous) or EXP-DEMO (quorum), or record that half as not exercised", "evidence": "before/after reads per action" }, { @@ -707,6 +720,12 @@ "date": "2026-11-14", "change": "acceptance[6] (verify, evidence) names the persona of the denied recall (under-specified, card #33275, the sibling half of #33060). 'A non-submitter is FORBIDDEN' held for one persona only: recall asks ApprovalService.refuseUnreadableRequest (packages/plugins/plugin-approvals/src/approval-service.ts) before its submitter check, so a non-submitter who can read the request (a pending approver) answers 403 FORBIDDEN, while a member who cannot read it answers 404 REQUEST_NOT_FOUND, exactly as a missing id. The verify now states both legs and excludes the dev admin, whose override recalls a pending request by design (#3424) and so would read as the gate failing. The clause sentence is unchanged. negative[2] is unchanged and still right: it fails any accepted POST from an actor the service should deny, whatever status the refusal carries. Read from source at base 87330e89, not driven live", "ref": "#33275" + }, + { + "revision": 12, + "date": "2026-11-14", + "change": "acceptance[7].verify and fixtures.requires[0] re-pointed (stale spec, card #33332; QA runs #33048 comment 6846028996 and #33094 comment 6852480973). acceptance[7]'s 'tallies byte-identical' read decision_progress, which a first_response request does not carry (ApprovalService, packages/plugins/plugin-approvals/src/approval-service.ts), so on the budget-approval step the tally half was vacuous; the verify now names a unanimous or quorum request for it. fixtures.requires[0] now says the budget PATCH must pass the project's 120% spend rule, which refuses 200000 on the seeded Data Platform project. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -715,13 +734,13 @@ "title": "An approval-parked run cannot be resumed through the generic automation route — decisions go through the approvals service only", "since": "v16", "status": "active", - "revision": 5, + "revision": 6, "priority": "P1", "surface": "api", "personas": ["dev admin (holds finance + legal, so the seeded unanimous request is decidable)"], "fixtures": { "app": "showcase", - "requires": ["showcase_invoice_signoff parked at its aggregating approval node (the seeded invoice request, or a fresh one via PATCHing an invoice draft→sent)"], + "requires": ["showcase_invoice_signoff parked at its aggregating approval node (the seeded invoice request, or a fresh one via PATCHing an invoice draft→sent). On stock the dev admin holds BOTH positions the dual_signoff node routes, showcase_finance and showcase_legal (examples/app-showcase/src/security/seed-approval-demo.ts ADMIN_APPROVAL_POSITIONS), and the unanimous tally reads the resolved approver user ids (ApprovalService.isApprovalSatisfied, packages/plugins/plugin-approvals/src/approval-service.ts), so the slate is the admin alone and ONE admin approve finalizes the 'dual' sign-off. That is enough for acceptance[2]; a run that wants two distinct deciders first binds a second user to one of the two positions, as approvals.quorum-m-of-n's runtime fixture does"], "knownGaps": [ "no pin drives this item's doors, so it carries no automated ref (RUNNER rule 6, a pin scores only the layer it drives). Searched for one at base f2fdac5d: the tree holds three kinds of layer pin and none spans the doors. (1) packages/services/service-automation/src/resume-authority-gate.test.ts drives AutomationEngine.resume over an InMemorySuspendedRunStore, with a stand-in 'gated_pause' node declaring resumeAuthority 'service' in the approval node's place: a raw resume of a service-gated pause is refused PERMISSION_DENIED and consumes nothing, and an 'any' pause (the screen / wait stand-in) resumes. (2) packages/plugins/plugin-approvals/src/approval-node.test.ts drives the real ApprovalService and AutomationEngine in process: a raw engine resume of an approval pause answers PERMISSION_DENIED and leaves the request pending with only its submit action and the run parked, and ApprovalService.decide resumes it — no HTTP route. (3) packages/runtime/src/http-dispatcher.test.ts and packages/runtime/src/domains/automation-resume-caller-gate.test.ts drive the generic resume route's dispatcher over a MOCKED automation service that returns the engine's PERMISSION_DENIED, pinning only that the route answers it as 403 — no engine, no approval node. Each is evidence of its own layer beside acceptance[0]–[3]; every clause's oracle is the api (the route's status, the run and /:id/actions reads, the approvals-API decision), so every clause is driven live. QA run #24840 scored revision 1 pass from the first pin before rule 6 landed. automated may return when one pin drives the generic resume route and the approvals API on a booted stack — packages/qa/dogfood/test/flow-durable-suspend.dogfood.test.ts already drives the generic resume route over HTTP, for a non-approval pause only" ] @@ -731,7 +750,7 @@ "locate the paused run: GET /api/v1/automation/showcase_invoice_signoff/runs — status=paused at the dual_signoff approval node; note the runId and the matching approval request id", "forge the generic resume: POST /api/v1/automation/showcase_invoice_signoff/runs/:runId/resume with {} and again with {branchLabel: 'approve'}", "re-read the run and the approval request after each forged attempt", - "decide properly: POST /api/v1/approvals/requests/:id/approve until the unanimous slate is satisfied; re-read request and run", + "decide properly: POST /api/v1/approvals/requests/:id/approve until the unanimous slate is satisfied (on stock one admin approve does it: fixtures.requires[0]); re-read request and run", "contrast (the other side of the gate): pause showcase_reassign_wizard at its screen node via the Tasks row action (over HTTP: POST /api/v1/actions/showcase_task/showcase_bulk_reassign/RECORD_ID — the flow-type action whose target is the wizard), then resume THAT run through the same generic route with valid inputs: the body is {inputs: {new_assignee: …}}" ], "acceptance": [ @@ -784,6 +803,12 @@ "date": "2026-10-28", "change": "fixtures.knownGaps[0] re-measured for a pin; none found, gap kept, `automated` stays absent. Searched at base f2fdac5d for a test that drives the generic resume route and the approvals API on a booted stack: none. The gap now names the two further layer pins the search found — approval-node.test.ts (real ApprovalService and AutomationEngine in process, no route; its resume-gate tests, 5 passed when run here) and the dispatcher pins http-dispatcher.test.ts and automation-resume-caller-gate.test.ts (the route over a mocked service) — and where such a pin could land. Wave anchor #25807, slice C; lead from slice B's report 6457925443 ('needs a pin or a live run'). No clause changed", "ref": "#25807" + }, + { + "revision": 6, + "date": "2026-11-14", + "change": "fixtures.requires[0] and steps[4] re-pointed (stale spec, card #33332; QA run #33081 comment 6850173588). On stock the admin holds both showcase_finance and showcase_legal (seed-approval-demo.ts ADMIN_APPROVAL_POSITIONS) and the unanimous tally reads resolved user ids (isApprovalSatisfied), so one admin approve finalizes the 'dual' invoice sign-off; the item read as if two decisions were needed. The fixture now says so and names the second-holder binding for a run that wants two deciders. No clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -874,7 +899,7 @@ "title": "An active out-of-office delegation reroutes an individually-routed approver to the delegate; expiring the window hands the slot back", "since": "v16", "status": "active", - "revision": 7, + "revision": 8, "priority": "P2", "surface": "mixed", "personas": ["dev admin — the DELEGATOR A: the delegation row is written BY them FOR them (sys_approval_delegation is self-service-only, so the delegator must be whoever is authenticated)", "a SECOND REAL runtime account — the DELEGATE B (Ada Auditor usr_showcase_auditor_demo, provisioned as a real login per knownGaps), who holds their own bearer token and decides the rerouted request as themselves"], @@ -937,7 +962,7 @@ "an approval action attributed to A while B was the one who clicked is a FAIL — the delegate acts under their own identity and the audit must not launder the decision back onto the out-of-office user", "a request that still reroutes to B after the window has expired (or before valid_from) is a FAIL — validity is a half-open [from, until) window enforced at resolution, never a background job that could lag", "a delegation on a POSITION-routed slot that reroutes is out of contract — OOO applies only to individually-routed (user/field/manager) approvers; a per-group/position node must be unaffected", - "a POST of sys_approval_delegation naming a delegator_id other than the caller must be REFUSED (FORBIDDEN, statusCode 403 — bindDelegationWriteGuard, #4839): a forged delegation is how one member would reroute another's approvals to themselves, and there is no admin exemption. An accepted foreign-delegator write is a FAIL" + "a POST of sys_approval_delegation naming a delegator_id other than the caller must be REFUSED: by a caller who holds create on sys_approval_delegation (the dev admin), with 403 FORBIDDEN 'you may only manage out-of-office delegations where you are the delegator' (bindDelegationWriteGuard, packages/plugins/plugin-approvals/src/lifecycle-hooks.ts, #4839); by a stock demo persona such as Ada, earlier, with 403 PERMISSION_DENIED at the object gate, because no stock set grants a non-admin create on sys_approval_delegation, not even for a delegation of their own (packages/plugins/plugin-security/src/objects/default-permission-sets.ts names no such line). Both are the refusal this entry asks for: a forged delegation is how one member would reroute another's approvals to themselves, and there is no admin exemption. An accepted foreign-delegator write is a FAIL" ], "traps": ["wrong-persona", "seed-data-thin"], "source": [ @@ -955,7 +980,8 @@ { "revision": 4, "date": "2026-09-19", "change": "same re-anchoring as the sibling items: the retired plugin-auth backfill citation is replaced by the retirement's migration entry in packages/spec and the reason is kept, the parenthetical 'issuer derived from the dev admin's own row' is withdrawn as false, and the step that told a runner to check issuer=local:credential when provisioning delegate B goes with it — that field no longer exists", "ref": "#17453" }, { "revision": 5, "date": "2026-10-13", "change": "fixtures.requires[0] and steps[2], [3], [5] and [8] start the scratch flow from a record instead of POST …/trigger (assertion defect, #23166 A0; parked on #23121, carried by #23169). The trigger route cannot open an approval: buildAutomationContext maps the body's record into params only, the approval node reads its record id from $record, which the engine seeds from context.record, and the run answers 400 'no record id in $record'. QA run #23166 drove the item through a record-triggered start (the approver-bindings.flow.ts shape) and passed every clause. Read from source at 6d7f4df3c: runtime domains/automation.ts buildAutomationContext, plugin-approvals approval-node.ts", "ref": "#23169" }, { "revision": 6, "date": "2026-10-16", "change": "the knownGap 'authoring the scratch flow needs a writable/scratch package' is stale (#23878 checklist-accuracy finding): POST /api/v1/automation registers a runtime flow on the stock boot. The fixture line and step 3 now register the user-routed flow that way, record-triggered on the stock showcase_field_zoo, and the run steps create a showcase_field_zoo row to start it. Full re-run on main c91af8ed6 with B = Ada Auditor: baseline pending [A]; an active self-service A→B delegation reroutes the next request to [B] with one ooo_substitute row (actor null, 'A → B — Annual leave'); B's /notifications row is type approval.ooo_substituted with actionUrl /system/approvals?request=ID; B approves with her own token (actor B, via_override false); with valid_until in the past the next request routes back to [A] with no substitution", "ref": "#24036" }, - { "revision": 7, "date": "2026-10-20", "change": "steps[0] respelled: 'boot showcase isolated' → 'boot the showcase on its own port and DB'. Round 12's out-of-scope finding (landing record 6287983829 on wave anchor #24579): the phrase 'showcase isolated' named the dogfood §0 own-port boot, and a runner read it as the `isolated` tenancy posture (OS_TENANCY_POSTURE=isolated). The new spelling names that boot by what it is, in RUNNER.md's own words for it (the trap table's counter: own port/DB, skill §0), and names no posture. Read at base e4d604efd3. No clause changed", "ref": "#25003" } + { "revision": 7, "date": "2026-10-20", "change": "steps[0] respelled: 'boot showcase isolated' → 'boot the showcase on its own port and DB'. Round 12's out-of-scope finding (landing record 6287983829 on wave anchor #24579): the phrase 'showcase isolated' named the dogfood §0 own-port boot, and a runner read it as the `isolated` tenancy posture (OS_TENANCY_POSTURE=isolated). The new spelling names that boot by what it is, in RUNNER.md's own words for it (the trap table's counter: own port/DB, skill §0), and names no posture. Read at base e4d604efd3. No clause changed", "ref": "#25003" }, + { "revision": 8, "date": "2026-11-14", "change": "negative[3] re-pointed (stale spec, card #33332; QA run #33058 comment 6846283471). It named only FORBIDDEN (403, the delegation write guard). A stock demo persona forging a row with another user's delegator_id is refused earlier with 403 PERMISSION_DENIED, because no stock permission set grants a non-admin create on sys_approval_delegation (the run's Ada was refused even her own delegation); the guard's FORBIDDEN is reached by a caller holding create, such as the admin. The entry now names both refusals; an accepted foreign-delegator write is still the FAIL. Read from source at base fca5f89c", "ref": "#33332" } ] }, { @@ -963,28 +989,28 @@ "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": 6, + "revision": 7, "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)"], "fixtures": { "app": "showcase", "requires": [ - "showcase_budget_approval raised on a showcase_project by PATCHing budget above 100000 (budget != previous.budget) — parks at manager_review (approvers position 'showcase_manager' = the admin), lockRecord:false; on a budget above 500000, approving manager_review routes through needs_exec to exec_review (approvers position 'showcase_exec', which the admin also holds: examples/app-showcase/src/security/seed-approval-demo.ts#ADMIN_APPROVAL_POSITIONS), lockRecord:true (the locking contrast, objectui#2902). The admin's PATCH triggers the run, so the admin is each request's submitter as well (the approval node passes its trigger user)", + "showcase_budget_approval raised on a showcase_project by PATCHing budget above 100000 (budget != previous.budget). The PATCH must pass the project's spent_within_budget validation (spent > budget × 1.2 is refused 400 'Spend exceeds 120% of budget — escalate before continuing.', examples/app-showcase/src/data/objects/project.object.ts): the seeded Data Platform project (spent 420000) refuses 200000, so use projects the run creates, or a budget above spent / 1.2 — parks at manager_review (approvers position 'showcase_manager' = the admin), lockRecord:false; on a budget above 500000, approving manager_review routes through needs_exec to exec_review (approvers position 'showcase_exec', which the admin also holds: examples/app-showcase/src/security/seed-approval-demo.ts#ADMIN_APPROVAL_POSITIONS), lockRecord:true (the locking contrast, objectui#2902). The admin's PATCH triggers the run, so the admin is each request's submitter as well (the approval node passes its trigger user)", "the record page surface: objectui packages/app-shell RecordDetailView (DeclaredActionsBar over the record's pending sys_approval_request row, location record_section) + useRecordApprovals (the record's approvals read) + recordApprovalActions.ts; the actions themselves are the server's declarations in packages/plugins/plugin-approvals/src/sys-approval-request.object.ts, each gated by its visible predicate over the row's server-computed viewer block" ] }, "steps": [ "boot the showcase on its own port and DB (dogfood §0); sign in as the dev admin", "PATCH a showcase_project budget to e.g. 200000 over /api/v1/data — showcase_budget_approval opens and parks at manager_review (routed to manager = admin), lockRecord:false; the admin is the request's submitter as well as its approver", - "open that project's record page — /_console/apps/showcase_app/showcase_project/record/:id, the served record route (the shorthand /apps/showcase_app/showcase_project/:id still lands there: the console's ShorthandRecordRedirect rewrites it); once it settles, screenshot the decision bar ABOVE the page body, not the record header: DeclaredActionsBar renders sys_approval_request's declared record_section actions against the pending request row. For the admin (pending approver and submitter) that is Approve (approval_approve, declared variant 'primary' → filled), Reject (approval_reject, 'danger' → destructive), Reassign, Send back, Request info, Recall and Reply, in declaration order, each a button whose data-testid is declared-action- plus the action name; Send reminder is left to the approvals panel (approval_remind is excluded) and Resubmit stays hidden (the request is not 'returned'). Capture the read the bar ran on: GET /api/v1/approvals/requests?object=showcase_project&recordId=:id answers the pending row with viewer.can_act true and viewer.is_submitter true", + "open that project's record page — /_console/apps/showcase_app/showcase_project/record/:id, the served record route (the shorthand /apps/showcase_app/showcase_project/:id still lands there: the console's ShorthandRecordRedirect rewrites it); once it settles, screenshot the decision bar ABOVE the page body, not the record header: DeclaredActionsBar renders sys_approval_request's declared record_section actions against the pending request row. For the admin (pending approver and submitter) that is Approve (approval_approve, declared variant 'primary' → filled), Reject (approval_reject, 'danger' → destructive), Reassign, Send back, Request info, Recall and Reply, in declaration order, each a button whose data-testid is declared-action- plus the action name; Send reminder is left to the approvals panel (approval_remind is excluded) and Resubmit stays hidden (the request is not 'returned'). Read the viewer block the bar ran on: on first load the record's approvals arrive inside the record page's one read, POST /api/v1/data/showcase_project/:id/page (useRecordApprovals.ts seedRecordApprovals, objectstack#27627), and GET /api/v1/approvals/requests?object=showcase_project&recordId=:id fires only as the post-decision refresh, so read the pending row from that /page body or send the GET yourself: it answers the pending row with viewer.can_act true and viewer.is_submitter true", "because manager_review is lockRecord:false (the request row reads lock_record: false), confirm the edit affordances remain live on this record (the editable contrast): the header's Edit button is enabled, the inline-edit pencils are present, and the approval band reads 'In approval · editable' (sky, a clock icon; ui/packages/plugin-detail/src/DetailView.tsx, detail.approvalPendingEditable)", "click Reject (declared-action-approval_reject): assert exactly ONE dialog opens — the param dialog titled by the declared label, Reject, with the declared confirm question as its description ('Reject this request? A rejection is final for every approver.'), carrying the optional Comment textarea and Attachments file input inline; there is NO confirm dialog in front of it and no second comment dialog after it (approval_reject declares its question as description and no confirmText, so the runtime chains nothing, #7278; objectui#3126)", - "fill the comment and Confirm; capture POST /api/v1/approvals/requests/:id/reject — :id is the REQUEST's id, never the project's — with the comment in its body; re-read GET /api/v1/approvals/requests/:id (status=rejected) and GET /api/v1/approvals/requests/:id/actions (the reject row carries the comment). The bar re-reads the approvals after the decision (refreshAfter) and draws nothing once no request is pending", - "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/approvals/requests/:id/approve → re-read (status=approved; at or under 500000, needs_exec ends the run at approved)", + "fill the comment and Confirm; capture the decision POST, the action door POST /api/v1/actions/sys_approval_request/approval_reject, with recordId = the REQUEST's id (never the project's) and the comment under params.comment; the door forwards it in-process to the declared target /api/v1/approvals/requests/:id/reject under the caller's identity (ui/packages/app-shell/src/utils/apiActionDoor.ts; targets in packages/plugins/plugin-approvals/src/sys-approval-request.object.ts); re-read GET /api/v1/approvals/requests/:id (status=rejected) and GET /api/v1/approvals/requests/:id/actions (the reject row carries the comment). The bar re-reads the approvals after the decision (refreshAfter) and draws nothing once no request is pending", + "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), 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) — 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": [ { @@ -996,13 +1022,13 @@ { "clause": "Reject fires after exactly ONE dialog: the declared Comment (and Attachments) params are collected INLINE in that single dialog, which carries the declared confirm question as its description, and Confirm POSTs the reject — no confirm dialog before it and no second comment dialog after it", "oracle": "network", - "verify": "one param dialog — titled Reject (the declared label) and described by approval_reject's declared question; the action declares no confirmText, so the runtime chains no confirm (#7278) — precedes exactly one POST /api/v1/approvals/requests/:id/reject, :id being the request's id; the objectui#3126 double-dialog bug (confirm then a second comment dialog, decision silently not sent) must not reproduce", + "verify": "one param dialog — titled Reject (the declared label) and described by approval_reject's declared question; the action declares no confirmText, so the runtime chains no confirm (#7278) — precedes exactly one decision POST, the action door POST /api/v1/actions/sys_approval_request/approval_reject, with recordId = the REQUEST's id (never the project's) and the comment under params.comment; the door forwards it in-process to the declared target /api/v1/approvals/requests/:id/reject under the caller's identity (ui/packages/app-shell/src/utils/apiActionDoor.ts; targets in packages/plugins/plugin-approvals/src/sys-approval-request.object.ts); the objectui#3126 double-dialog bug (confirm then a second comment dialog, decision silently not sent) must not reproduce", "evidence": "screenshot of the single dialog + the reject network trace" }, { - "clause": "the decision POSTs the approvals route for the REQUEST and the request re-reads with the new status; the comment the dialog collected round-trips onto the decision's action row", + "clause": "the decision POSTs the action door for the REQUEST, which forwards it to the approvals route, and the request re-reads with the new status; the comment the dialog collected round-trips onto the decision's action row", "oracle": "api", - "verify": "reject → GET /api/v1/approvals/requests/:id answers status=rejected; approve → status=approved; the POST went to the request's id (never the project's) with the declared comment param in its body, and GET /api/v1/approvals/requests/:id/actions lists the decision row carrying that comment", + "verify": "reject → GET /api/v1/approvals/requests/:id answers status=rejected; approve → status=approved; the POST went to /api/v1/actions/sys_approval_request/approval_reject or approval_approve with recordId = the request's id (never the project's) and the declared comment param under params.comment, and GET /api/v1/approvals/requests/:id/actions lists the decision row carrying that comment", "evidence": "before/after request reads + the POST body + the decision action row" }, { @@ -1038,7 +1064,8 @@ { "revision": 3, "date": "2026-10-20", "change": "source[2] re-pointed, and fixtures.knownGaps[0] added. PR #24982's pin finding: source[2] cited objectui's RecordDetailView.approvalDecisionActions.test.tsx, absent at both console pins. Read in a full objectui clone: objectui 99782f961 (objectui#3055) deleted it, and that commit is an ancestor of 616df6598b42 and of cf153eb2e535 (exit 0 both; control, cf153eb2e535 as an ancestor of 99782f961: exit 1). The same commit retired buildApprovalDecisionActions and moved the record page's decisions onto sys_approval_request's declared actions. At cf153eb2e535, RecordDetailView.approvalDeclaredActions.test.tsx holds the params half (the comment and declared outputs reach the POST to the request), and this repository's sys-approval-request.object.test.ts holds the one-dialog half. The knownGap tells a runner that the rest of the item still describes the retired header buttons. steps[0] respelled: 'boot showcase isolated' → 'boot the showcase on its own port and DB'. Round 12's out-of-scope finding (landing record 6287983829 on wave anchor #24579): the phrase 'showcase isolated' named the dogfood §0 own-port boot, and a runner read it as the `isolated` tenancy posture (OS_TENANCY_POSTURE=isolated). The new spelling names that boot by what it is, in RUNNER.md's own words for it (the trap table's counter: own port/DB, skill §0), and names no posture. Read at base e4d604efd3. No clause changed", "ref": "#25003" }, { "revision": 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": 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" } ] }, { @@ -1046,7 +1073,7 @@ "title": "A node's SLA escalation fires once past its timeout — the declared action runs and an escalate timeline row lands", "since": "v16", "status": "active", - "revision": 4, + "revision": 5, "priority": "P2", "surface": "api", "personas": ["dev admin"], @@ -1065,13 +1092,13 @@ "variants": ["reassign", "auto_approve", "auto_reject", "notify"], "steps": [ "boot the showcase on its own port and DB (dogfood §0); sign in as the dev admin", - "start the server with the wall-clock offset shim loaded (NODE_OPTIONS=--require , offset 0 — see fixtures.requires); as the admin, register one flow per variant through POST /api/v1/automation (no writable package needed) whose approval node config.escalation = {enabled:true, timeoutHours:1, action:, notifySubmitter:true}, plus escalateTo:'' on the reassign flow", - "trigger the flow; GET /api/v1/approvals/requests/:id — status=pending and the request carries sla_due_at = created_at + timeoutHours (the SLA is materialized on open)", + "start the server with the wall-clock offset shim loaded (NODE_OPTIONS=--require , offset 0 — see fixtures.requires); as the admin, register one flow per variant through POST /api/v1/automation (no writable package needed) whose approval node config.escalation = {enabled:true, timeoutHours:1, action:, notifySubmitter:true}, plus escalateTo:'' on the reassign flow. Give each variant its OWN trigger object (e.g. showcase_field_zoo, showcase_announcement, showcase_contact, showcase_account): approvals dedupe per record, so a second flow opening on a record that already has a pending request fails DUPLICATE_REQUEST 'a pending approval already exists for /' (approval-service.ts), and a runtime-authored flow cannot be switched off with POST /api/v1/automation//toggle (409 RESOURCE_CONFLICT: the switch turns packaged flows on and off, packages/services/service-automation/src/subflow-guards.ts) — to retire one, publish it through PUT /api/v1/automation/ with status 'obsolete'", + "trigger each flow on its own trigger object; GET /api/v1/approvals/requests/:id — status=pending and the request carries sla_due_at = created_at + timeoutHours (the SLA is materialized on open)", "advance the shim's offset to +2h (past sla_due_at) and let ONE escalation sweep run: wait for the next 5-minute periodic sweep, or restart the server with the shim and offset kept so the boot catch-up sweep runs", "GET /:id/actions — assert exactly one action='escalate' row (the audit-first idempotency marker) whose comment names the action and which carries no actor: actor_id is absent on the read (stored null), because a machine action records no actor and the escalate row is the attribution (ADR-0118 D1)", - "assert the declared action's effect: reassign → pending_approvers swapped to the escalatees + an approval.escalated notification to them; auto_approve/auto_reject → request finalized approved/rejected and the owning run resumes; notify → an approval.sla_breached notification to the pending approvers", + "assert the declared action's effect: reassign → pending_approvers swapped to the escalatees + an approval.escalated notification to them; auto_approve/auto_reject → request finalized approved/rejected and the owning run resumes (evidence the branch by the request status: the resumed run's detail lists only the steps up to the gate, since end nodes are not logged); notify → an approval.sla_breached notification to the pending approvers", "with notifySubmitter!==false, read the submitter's inbox — an approval.sla_breached notification addressed to them", - "idempotency: let a SECOND sweep run (the next 5-minute tick, and a restart for the boot sweep) — GET /:id/actions shows NO second escalate row (single-shot, marker-guarded)", + "idempotency: let a SECOND sweep run (the next 5-minute tick, and a restart for the boot sweep) — GET /:id/actions shows NO second escalate row (single-shot, marker-guarded). The sweep logs nothing, so prove the second sweep ran with a positive control: a second request on another trigger object, opened before the second sweep and past its deadline at it, which that sweep escalates", "author-negative: build a scratch flow whose escalation carries an unknown key (or the `timeout`/`sla` alias) and validate it" ], "acceptance": [ @@ -1125,7 +1152,8 @@ { "revision": 1, "date": "2026-08-08", "change": "initial — pins the ADR-0042 SLA escalation (declared action fires once past timeout + escalate timeline row); blocked on a clock-control timing harness (hour granularity), with the sla_due_at materialization and the strict-schema build clause runnable today", "ref": "claude/platform-test-checklist-ocwugl" }, { "revision": 2, "date": "2026-10-03", "change": "the escalate row's expected actor corrected: step 5 and the single-shot clause asserted actor SLA_ACTOR_ID, but under ADR-0118 D1 the sweep records no actor (actor_id null, absent on the GET /:id/actions read) and the escalate row is the attribution, so a run following the old text would report a false failure. Nothing else in the item changes", "ref": "#21517" }, { "revision": 3, "date": "2026-10-05", "change": "blocked lifted: run #21845 drove every clause under a wall-clock offset shim loaded with NODE_OPTIONS=--require (Date and Date.now offset from a file, timers untouched, no product logic changed). The shim is written into fixtures.requires as a recipe, not committed as code; the clock knownGap is marked CLOSED-for-runs, not deleted. The item now registers its flows through POST /api/v1/automation (no writable package needed), one flow per escalation action, and names the 5-minute sweep interval plus the boot catch-up sweep that the advance-the-clock and idempotency steps wait on (card #21851 entry 2)", "ref": "#21845" }, - { "revision": 4, "date": "2026-10-20", "change": "steps[0] respelled: 'boot showcase isolated' → 'boot the showcase on its own port and DB'. Round 12's out-of-scope finding (landing record 6287983829 on wave anchor #24579): the phrase 'showcase isolated' named the dogfood §0 own-port boot, and a runner read it as the `isolated` tenancy posture (OS_TENANCY_POSTURE=isolated). The new spelling names that boot by what it is, in RUNNER.md's own words for it (the trap table's counter: own port/DB, skill §0), and names no posture. Read at base e4d604efd3. No clause changed", "ref": "#25003" } + { "revision": 4, "date": "2026-10-20", "change": "steps[0] respelled: 'boot showcase isolated' → 'boot the showcase on its own port and DB'. Round 12's out-of-scope finding (landing record 6287983829 on wave anchor #24579): the phrase 'showcase isolated' named the dogfood §0 own-port boot, and a runner read it as the `isolated` tenancy posture (OS_TENANCY_POSTURE=isolated). The new spelling names that boot by what it is, in RUNNER.md's own words for it (the trap table's counter: own port/DB, skill §0), and names no posture. Read at base e4d604efd3. No clause changed", "ref": "#25003" }, + { "revision": 5, "date": "2026-11-14", "change": "steps[1], [2], [5] and [7] re-pointed (stale spec, card #33332; QA runs #33058 comment 6846283471 and #33081 comment 6850173588). The steps implied one record could carry every variant; approvals dedupe per record (DUPLICATE_REQUEST, approval-service.ts) and a runtime-authored flow cannot be switched off with /toggle (409 RESOURCE_CONFLICT, service-automation subflow-guards.ts), so steps[1] now puts each variant on its own trigger object and names the obsolete-status door. steps[5] says the auto_approve/auto_reject branch is evidenced by the request status, since the resumed run logs no end node. steps[7] asks for a positive control, since the sweep logs nothing. The wall-clock shim is already in fixtures.requires. No clause changed. Read from source at base fca5f89c", "ref": "#33332" } ] }, { @@ -1133,7 +1161,7 @@ "title": "A non-admin reaches the full Approvals Inbox from the account app's Approvals entry", "since": "v17", "status": "active", - "revision": 9, + "revision": 10, "priority": "P0", "surface": "browser", "personas": ["a NON-ADMIN business user who is a pending approver and has no Setup access"], @@ -1148,7 +1176,7 @@ "steps": [ "build the console from this checkout (`pnpm console:build`), or take the build the dispatcher made of this checkout at the run SHA, and keep its ready line; boot the showcase on its own port and DB (dogfood §0); then compare the entry chunk the served /_console/ page loads with packages/console/dist's (acceptance[0])", "grep the BUILT bundle for the registration key: `grep -o 'approvals:inbox' packages/console/dist/assets/index-*.js` — the entry chunk must carry the register call, because the unit pin (#7231) stubs the page at its module boundary and does not assert main.tsx performs the side-effect import", - "sign in as the non-admin persona; GET /api/v1/meta/app and record which apps the server returns for this session", + "sign in as the non-admin persona — the console lands straight in the persona's single visible app (Showcase; the account app is hidden: true), not on /home: ui/apps/console/src/components/RootLandingRedirect.tsx sends a session whose one visible app is not Setup to that app, and only two or more visible apps to /home; GET /api/v1/meta/app and record which apps the server returns for this session", "open the account app from the avatar (user) menu's Profile item — it opens /apps/account/component/account/profile_card, which QA run #28545 read as /apps/com.objectstack.account/component/account/profile_card. Not from the app switcher: the account app declares hidden: true (packages/platform-objects/src/apps/account.app.ts), so for this persona the switcher offers only Showcase, Back to home and All apps. Then click the Approvals entry in the Inbox group; screenshot", "read the resulting URL and the rendered surface (tabs, list rows, keyboard hint bar)", "open a request from its inbox row — it navigates to the request's served record page, /apps/APP/sys_approval_request/record/ID — and read the rendered action set; execute one decision and re-read the request", @@ -1177,13 +1205,13 @@ { "clause": "decision actions render on the request page the inbox opens, and one of them actually moves the request", "oracle": "api", - "verify": "a row click opens /apps/APP/sys_approval_request/record/ID, the request's served record page (objectui#12484 retired the side sheet), whose decision panel renders the server-declared action set for a request where this user is a pending approver; executing one decision moves the node tally, drops the user from pending_approvers, appends an action row (read it from GET /api/v1/approvals/requests/:id/actions: the request read carries no timeline, and there is no /history route), and the decision actions stop rendering for this viewer — their visible predicates read record.viewer.can_act, now false", + "verify": "a row click opens /apps/APP/sys_approval_request/record/ID, the request's served record page (objectui#12484 retired the side sheet), where APP is the app that owns the request's RECORD, not the inbox's app: since objectstack#32667 the inbox's requestPagePath asks objectHostAppSegment (ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx), so an invoice sign-off request opens under com.example.showcase (the app whose navigation lists showcase_invoice), and only when the reader can open no app that lists the record's object, nor Setup, does it stay in the inbox's app. That page's decision panel renders the server-declared action set for a request where this user is a pending approver; executing one decision moves the node tally, drops the user from pending_approvers, appends an action row (read it from GET /api/v1/approvals/requests/:id/actions: the request read carries no timeline, and there is no /history route), and the decision actions stop rendering for this viewer — their visible predicates read record.viewer.can_act, now false", "evidence": "before/after request-page screenshots + before/after GET /api/v1/approvals/requests/:id and its /actions" }, { "clause": "?request= deep-links to the request's record page from this component route too (route parity with /system/approvals)", "oracle": "screenshot", - "verify": "cold-load /apps//component/approvals/inbox?request=; the route replaces itself in history with /apps//sys_approval_request/record/, and that page shows that exact request. Cross-checked against the same id on /system/approvals by approvals.notification-deep-link", + "verify": "cold-load /apps//component/approvals/inbox?request=; the route replaces itself in history with /apps//sys_approval_request/record/, where is the app that owns the request's record (objectHostAppSegment, as acceptance[3]; com.example.showcase for an invoice sign-off), not necessarily this component route's , and that page shows that exact request. Cross-checked against the same id on /system/approvals by approvals.notification-deep-link", "evidence": "screenshot with the URL and the request identity visible" }, { @@ -1195,7 +1223,7 @@ { "clause": "zh-CN wording is consistent: the nav entry reads 待我审批 and the inbox's tab / status vocabulary reads 待我审批 / 待审批", "oracle": "screenshot", - "verify": "set the console language to 中文(中国) through the avatar (user) menu's Preferences › Language row — not a top-bar globe (ui/packages/app-shell/src/layout/AppHeader.tsx) — code zh-CN, the language the showcase ships; the picker offers no bare zh entry here — and screenshot the nav entry and the inbox; nav label 待我审批, tab 待我审批, status badge 待审批", + "verify": "set the console language to 简体中文 through the avatar (user) menu's Preferences › Language row — not a top-bar globe (ui/packages/app-shell/src/layout/AppHeader.tsx). The picker offers the platform locale table's tags (packages/spec/src/system/platform-locales.ts: zh-Hans, labelled 简体中文) and stores the user locale as zh-Hans; the showcase's own zh-CN (objectstack.config.ts supportedLocales) resolves to that tag, so there is no 中文(中国) or zh-CN entry — and screenshot the nav entry and the inbox; nav label 待我审批, tab 待我审批, status badge 待审批", "evidence": "zh screenshots of nav + inbox" } ], @@ -1249,7 +1277,8 @@ "change": "Two QA run #28545 (W3-C1R) findings. steps[3] did not say how to reach the account app: it is hidden from the app switcher (account.app.ts hidden: true), which offered the persona only Showcase / Back to home / All apps, and is entered from the avatar menu's Profile item (AppHeader.tsx, /apps/account/component/account/profile_card, which #28545 read under the com.objectstack.account segment). acceptance[0] asked the runner to run pnpm console:build itself; it now also accepts the dispatcher's build of the same checkout at the run SHA, and adds a served-entry check (the chunk /_console/ loads is the dist's), so the clause still proves the bundle under test is this checkout's. steps[0] and the evidence follow. No clause weakened: the build, SHA and grep requirements stand, and one check is added. 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-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": 9, "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": 10, "date": "2026-11-14", "change": "steps[2] and acceptance[3], [4], [6] (verify) re-pointed (stale spec, card #33332; QA run #32953 R1 record comment 6840055541 and body checklist-accuracy notes, #33087 comment 6850382730). Since objectstack#32667 a request opens under the app that owns its record (objectHostAppSegment, read by ApprovalsInboxPage's requestPagePath): an invoice sign-off opens under com.example.showcase, not the inbox's com.objectstack.account, so acceptance[3] and [4] name that app. acceptance[6]'s picker entry is 简体中文 stored as zh-Hans (the platform locale table), not 中文(中国) zh-CN. steps[2] says the single-app persona lands in Showcase after sign-in, not on /home (RootLandingRedirect rule 2). The record-link clause acceptance[5] is unchanged: recordHref keeps the inbox's own app. No clause changed. Read from source at base fca5f89c", "ref": "#33332" } ] }, { @@ -1616,7 +1645,7 @@ "title": "approvalStatusField mirrors every request transition onto the business record — through the record lock's whitelist, attributed to the acting user", "since": "v16", "status": "active", - "revision": 6, + "revision": 7, "priority": "P2", "surface": "api", "personas": ["dev admin (authors the scratch flow; decides and recalls)", "a second real login as submitter where the recall/pending attribution needs a non-deciding identity. The submitter is whoever creates the trigger record, so this login needs create on the trigger object (fixtures.requires[0]). On stock showcase_field_zoo neither seeded demo persona (Ada Auditor, Mei Phone) has it"], @@ -1676,7 +1705,7 @@ "negative": [ "a mirror write that changes ANY field beyond the declared one, or that lands on a node that declared no mirror, is a FAIL — the lock whitelist and the opt-in are both scoped to exactly that one field", "a decision rolled back (or answering 5xx) because the mirror write failed is a FAIL — the mirror is best-effort by design and the warn is its contract", - "a runAs:'user' cascade running as SYSTEM off a human decision's mirror (or running at all off the sweep's user-less mirror) is a FAIL of the #3783 attribution the integration pin exists to hold" + "a runAs:'user' cascade running as SYSTEM off a human decision's mirror (or its data operation landing off the sweep's user-less mirror: the flow itself still fires there, because a user-less write does not suppress trigger dispatch, and since #3760 a runAs:'user' run with no trigger user has its data operations refused — that refusal is the design, not a FAIL) is a FAIL of the #3783 attribution the integration pin exists to hold" ], "traps": ["seed-data-thin", "eventual-consistency"], "automated": { "kind": "test", "ref": "packages/plugins/plugin-approvals/src/status-mirror-cascade.integration.test.ts (negative[2], and acceptance[2] but for its SLA auto-decision half — see its verify; acceptance[0], [1], [3] and [4] are api and log clauses no pin drives at their oracle's layer, so a run drives them live). Corroborating below the api layer, none scoring: packages/plugins/plugin-approvals/src/record-lock-multi-update.integration.test.ts 'exempts a status-mirror write (only the approvalStatusField changes)' (acceptance[1]'s whitelist half, at the engine), packages/plugins/plugin-approvals/src/status-mirror-declared-values.integration.test.ts (the mirrored values at the engine, and that the mirror writes only a value the field declares, #24577) and packages/plugins/plugin-approvals/src/approval-service.test.ts's mirror cases (open, decide, recall, and the send-back that returns 'returned'; service unit over a fake engine)" }, @@ -1702,6 +1731,12 @@ "date": "2026-10-31", "change": "fixtures.requires[0] and personas[1] now say who may submit. QA run #27409 found the seeded member personas refused create on showcase_field_zoo (403). The submitter of a record-triggered request is the identity whose create fires the flow (approval-service.ts takes context.userId), so it must hold create on the trigger object. On stock that is the dev admin or a showcase_contributor-bound member (permission-sets.ts). Mei Phone holds only showcase_member_default (read) and Ada Auditor's showcase_auditor grants nothing on the object. personas[1] named Ada as the submitter and no longer does. No clause changed. Read from source at base 22ce3d13. Wave anchor #27377, wave-3 accuracy slice S5 (#28339); finding parked in anchor comment 6488948228", "ref": "#27409" + }, + { + "revision": 7, + "date": "2026-11-14", + "change": "negative[2] re-pointed (stale spec, card #33332; QA runs #33025 comment 6844741021 and #33081 comment 6850173588). It made a runAs:'user' cascade 'running at all' off the dead-run sweep's user-less mirror a FAIL, which is stricter than the design: the record-change flow fires on that mirror and only its data operations are refused (status-mirror-cascade.integration.test.ts header and its dead-run case). The FAIL is now its data operation landing. acceptance[2] already reads 'the same cascade is refused' and its verify already names the wall-clock offset shim for the SLA half, so no clause changed. Read from source at base fca5f89c", + "ref": "#33332" } ] }, @@ -1784,7 +1819,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": 6, + "revision": 7, "priority": "P1", "surface": "mixed", "personas": [ @@ -1796,7 +1831,7 @@ "requires": [ "a fresh boot of the showcase: `pnpm dev -- --fresh -p PORT --seed-admin` (ephemeral DB; the seeded admin is printed)", "a pending showcase approval request the member is NOT an approver on", - "for the reader leg: a scratch object (or showcase object via the scratch app) with enable.approvalsVisibleToReaders:true" + "for the reader leg: a scratch object (or showcase object via the scratch app) with enable.approvalsVisibleToReaders:true. A runtime object must declare sharingModel: a PUT without it is refused 400 INVALID_METADATA by security-owd-unset (packages/lint/src/validate-security-posture.ts). The plain reader also needs an object read grant on it, which no stock member holds on a runtime object: as admin PUT /api/v1/meta/permission/ {objects: {: {allowRead: true}}}, then POST /api/v1/data/sys_user_permission_set {user_id, permission_set: , organization_id} for the reader (packages/plugins/plugin-security/src/objects/sys-user-permission-set.object.ts)" ], "knownGaps": [ "the console clause (acceptance[4]) needs a bundled console: build it with `pnpm console:build`, which builds ui/apps/console from this checkout, so the console and the spec it renders are one tree by construction (packages/console/build-dist.sh). The blocked(environment) this gap used to record — a console built from a pinned objectui revision instead of this tree, not building against current spec — no longer arises" @@ -1805,7 +1840,7 @@ "steps": [ "GET /api/v1/meta/page/sys_approval_request_detail and find record:approval_decision", "as the pending approver POST /api/v1/approvals/requests/ID/comment {comment} (the key is `comment` — a {body} is refused 400 VALIDATION_FAILED, packages/plugins/plugin-approvals/src/approval-service.ts comment); read the timeline", - "as the member (non-participant) GET /api/v1/data/sys_approval_request/ID and list with a total. On stock this member holds no read on sys_approval_request: the object is engine-owned (ADR-0103, apiMethods get and list) and no stock permission set grants a non-admin read on it, so the member answers 403 PERMISSION_DENIED at the object gate (QA run #27409). The 404 and total leg of acceptance[2] needs a persona the app grants that read", + "as the member (non-participant) GET /api/v1/data/sys_approval_request/ID and list with a total. On stock this member holds the object read: since #32442 (maintainer ruling 6849636735, 1B) the member_default set every internal member resolves grants read on sys_approval_request (packages/plugins/plugin-security/src/objects/default-permission-sets.ts), and the request read gate (packages/plugins/plugin-approvals/src/request-read-gate.ts) narrows the rows to the requests the approvals door serves that caller. So this non-participant member's by-id read answers 404 and the list total excludes the request: the 404 and total leg of acceptance[2], with no scratch grant. QA run #27409's 403 PERMISSION_DENIED for this member predates that grant. The 403 leg belongs to a caller holding no such grant, e.g. an external member, who resolves external_default and gets no such line", "flip approvalsVisibleToReaders on the scratch object; as a plain reader list that record's requests; flip it off and repeat without restart" ], "acceptance": [ @@ -1824,7 +1859,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 404 leg needs a persona granted read on sys_approval_request; no stock permission set grants one, so without a scratch grant record that leg blocked(fixture) with the request-read-gate pin beside it. The stock member's 403 PERMISSION_DENIED is the no-grant leg answering, not a FAIL of the 404 and not a finding: 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, 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", "evidence": "answers" }, { @@ -1890,6 +1925,12 @@ "date": "2026-11-14", "change": "acceptance[1] (verify, evidence) re-pointed: the org member's comment POST answers 404 REQUEST_NOT_FOUND, not 403 FORBIDDEN (stale spec, card #33275, the sibling half of #33060). comment reads its row through loadPendingRow, which asks ApprovalService.refuseUnreadableRequest (packages/plugins/plugin-approvals/src/approval-service.ts) before the slot check, so a caller who may not READ the request is answered as for a missing id and its existence never leaks. The stock member is no participant and the record-reader tier is off, so it reads nothing; FORBIDDEN 'is not on this request' is for a reader who is neither a pending approver nor the submitter. The verify's service-layer evidence now names what approval-service.test.ts holds: the outsider's and the stranger's REQUEST_NOT_FOUND. The clause sentence is unchanged. Read from source at base 87330e89, not driven live", "ref": "#33275" + }, + { + "revision": 7, + "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" } ] }, From ee860d83fb347bf6e8a39cbfcb4a9ab4203af7ae Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 20:02:36 +0000 Subject: [PATCH 3/3] qa(checklist): split the device variant out of the auth-method matrix, and cover restart persistence and SCIM key revocation - identity-auth.auth-method-matrix: device authorization, which no stock boot can switch on, moves to a new item identity-auth.device-authorization- grant with its blocked(environment) marker, so the parent's per-variant clauses can score whole. The enterprise SSO half stays, with its boot recipe (OS_SSO_ENABLED and a trusted-origin IdP). - api-backend.package-rest-lifecycle: a clause that the manifest served after a restart equals the last one written. - identity-auth.scim-deactivation-revokes-api-keys: new item; a directory deactivation leaves each key answering 403 API_KEY_REVOKED, a re-activation re-arms none, and no one restores them. - identity-auth.admin-lifecycle-operations: the walled admin already owns the Default Organization; the fixture line says which organization Create User joins and how to make the intended one current. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F --- .../platform-checklist/areas/api-backend.json | 20 +- .../areas/identity-auth.json | 188 ++++++++++++++++-- 2 files changed, 192 insertions(+), 16 deletions(-) diff --git a/docs/qa/platform-checklist/areas/api-backend.json b/docs/qa/platform-checklist/areas/api-backend.json index 48652b55698..f57801155e6 100644 --- a/docs/qa/platform-checklist/areas/api-backend.json +++ b/docs/qa/platform-checklist/areas/api-backend.json @@ -1159,7 +1159,7 @@ "title": "Package REST lifecycle: POST /packages creates (201), a duplicate name is refused 409 (no silent manifest clobber), PATCH partial-patches the manifest, and an explicit overwrite re-install replaces in place without duplicating", "since": "v16", "status": "active", - "revision": 5, + "revision": 6, "priority": "P2", "surface": "api", "personas": [ @@ -1182,7 +1182,8 @@ "PATCH three malformed bodies: { name: '' }, { version: 'not-semver' }, and {} (nothing to update); capture each rejection", "re-install with the explicit opt-in: POST /api/v1/packages?overwrite=true (or body { overwrite: true }) carrying the same id and a changed manifest (version 2.0.0); capture status", "GET /api/v1/packages and count rows whose id == com.example.qa-pkg-lifecycle-probe — must be exactly one", - "confirm the LIVE routing seam: POST /api/v1/packages resolves to the dispatcher install route (REST moved marketplace publish OFF the bare path to POST /api/v1/packages/publish in #3610), and PATCH /api/v1/packages/:id answers non-404 though it is absent from packages/rest/src/rest-route-ledger.ts (dispatcher-only)" + "confirm the LIVE routing seam: POST /api/v1/packages resolves to the dispatcher install route (REST moved marketplace publish OFF the bare path to POST /api/v1/packages/publish in #3610), and PATCH /api/v1/packages/:id answers non-404 though it is absent from packages/rest/src/rest-route-ledger.ts (dispatcher-only)", + "restart: after steps[6], stop the server and boot it again on the SAME database (the same file DB, never --fresh); then GET /api/v1/packages/com.example.qa-pkg-lifecycle-probe and GET /api/v1/packages, and set both beside the same reads taken just before the stop" ], "acceptance": [ { @@ -1220,12 +1221,19 @@ "oracle": "api", "verify": "POST /api/v1/packages installs (not a 400 publish-shape rejection); PATCH /api/v1/packages/:id answers non-routing-404", "evidence": "the two traces" + }, + { + "clause": "the manifest served after a restart equals the last one written: once the server restarts on the same database, GET /api/v1/packages/com.example.qa-pkg-lifecycle-probe answers the manifest of the steps[5] overwrite (version 2.0.0 and the fields it changed), never the PATCHed 1.1.0 manifest or the 1.0.0 install, and GET /api/v1/packages still lists exactly one row for the id", + "oracle": "api", + "verify": "compare the post-restart GET with the pre-restart GET of the same id: name, description, version and dependencies equal. The registry is rebuilt at boot from sys_packages: installPackage and updatePackage each persist the merged manifest through the package service's publish (packages/metadata-protocol/src/protocol-package-install.ts#updatePackage; a failed persist fails the write, #21243), publish stamps updated_at to the millisecond (packages/services/service-package/src/package-table.ts#packageWriteStamp), and the boot hydrates each id from its row written last (packages/services/service-package/src/index.ts, list() and the hydration loop that calls registry.installPackage). A pre-restart read that matches while the post-restart read shows an earlier version or name is the FAIL this clause exists for", + "evidence": "the pre- and post-restart GET bodies + the post-restart list count" } ], "negative": [ "a second POST of the same id answering 2xx and silently replacing the manifest is the #2995 data-loss FAIL (the whole reason the 409 guard exists)", "a PATCH that resets enabled/status/installedAt (a full replace masquerading as a partial patch) is a FAIL", - "an overwrite re-install that leaves two rows for one id in GET /api/v1/packages is a FAIL (duplication, not replacement). Two sys_packages rows for one id at two versions are not this FAIL: the table is (id, version)-keyed by design (packages/services/service-package/src/package-table.ts)" + "an overwrite re-install that leaves two rows for one id in GET /api/v1/packages is a FAIL (duplication, not replacement). Two sys_packages rows for one id at two versions are not this FAIL: the table is (id, version)-keyed by design (packages/services/service-package/src/package-table.ts)", + "a restart that serves an earlier manifest than the last write (the PATCH or the overwrite lost, or an older version's row winning the boot hydration) is a FAIL: the edit was answered as stored and is gone" ], "traps": [ "dispatcher-vs-hono-route" @@ -1267,6 +1275,12 @@ "date": "2026-11-14", "change": "acceptance[0].clause and negative[2] re-pointed (stale spec, card #33332; QA run #33081 comment 6850173588). sys_packages is keyed by (id, version) by design (service-package package-table.ts, PRIMARY KEY (id, version)), so after the 2.0.0 overwrite the table can hold two rows for the id. The item now names the list door GET /api/v1/packages, which reads the registry (one entry per id), as the oracle for every one-row count, and says two version rows in the table are not the duplication FAIL. The run's other note, a clause that the manifest served after a restart equals the last one written, is a new clause and is left for a coverage pass. Read from source at base fca5f89c", "ref": "#33332" + }, + { + "revision": 6, + "date": "2026-11-14", + "change": "steps[8], acceptance[6] and negative[3] added (coverage, card #33353 row 196; card-B-api-4 of QA run #33081, comment 6850173588, ledger row 196 of #32908). No clause said the manifest served after a restart equals the last one written, and the in-memory registry would pass every other clause while the durable copy was wrong. The new clause reads the detail door after a restart on the same database against the read before it. Source on main: updatePackage and installPackage persist through the package service's publish and fail the write when the persist fails (protocol-package-install.ts), publish stamps updated_at to the millisecond (package-table.ts packageWriteStamp), and the boot hydrates each id from its latest row (service-package index.ts list() and its hydration loop). The existing clauses are unchanged. Read from source at base bd439f17, not driven live", + "ref": "#33353" } ] }, diff --git a/docs/qa/platform-checklist/areas/identity-auth.json b/docs/qa/platform-checklist/areas/identity-auth.json index befea6db172..e909561e25b 100644 --- a/docs/qa/platform-checklist/areas/identity-auth.json +++ b/docs/qa/platform-checklist/areas/identity-auth.json @@ -153,24 +153,24 @@ }, { "id": "identity-auth.auth-method-matrix", - "title": "Every supported auth method signs in when enabled, is absent when disabled, and is advertised exactly as configured", + "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": 11, + "revision": 12, "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, deviceAuthorization, oidcProvider) and the socialProviders/oidcProviders maps — each variant names which boot it needs", - "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)" + "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", + "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" ], "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", - "the two spec files disagree on the device-flow paths (packages/spec/src/api/auth-endpoints.zod.ts: /device/request, /device/token, /device/approve vs packages/spec/src/system/auth-config.zod.ts: /device/code, /device/token, /device, /device/approve, /device/deny) — the LIVE better-auth surface serves POST /device/code, /device/token, /device/approve, /device/deny and GET /device (auth-route-ledger.ts BETTER_AUTH_MOUNTED_SURFACE); trust the live routes and file the doc divergence", "the password-reset path names ALSO diverge from the spec: AuthEndpointPaths.forgetPassword = '/forget-password' but the live catch-all serves POST /request-password-reset, POST /reset-password and GET /reset-password/:token (BETTER_AUTH_MOUNTED_SURFACE) — trust the live routes (this is the same divergence identity-auth.self-service-password-reset drives)", - "acceptance[0]'s SSO and device-authorization variants have no switch on the stock `os dev` → `os serve` path (QA run #21784, parked on #22017 row 20). The AuthPlugin the CLI injects takes only env-mapped plugins (packages/cli/src/commands/serve.ts: OS_AUTH_ADMIN, OS_AUTH_TWO_FACTOR, OS_AUTH_PASSWORD_REJECT_BREACHED, OS_AUTH_PHONE_NUMBER_ENABLED), and neither plugins.deviceAuthorization nor an oidcProviders map is one of them. Device authorization needs a host that constructs AuthPlugin itself with plugins.deviceAuthorization: true. The SSO plugin DOES have a boot switch, OS_SSO_ENABLED (packages/plugins/plugin-auth/src/auth-manager.ts, isSsoWired), but features.sso is advertised only once a provider is registered, and registering one needs an IdP whose discovery URL is publicly routable or allowlisted: the register door (POST /api/v1/auth/admin/sso/register, re-dispatched into @better-auth/sso's /sso/register) refuses a loopback or private IdP 400 discovery_private_host unless its origin is in trustedOrigins (@better-auth/sso validateOIDCEndpointUrl; QA run #27438 measured it on a localhost IdP), so the localhost IdP that unblocks generic OIDC below does NOT unblock features.sso. So the environment these variants need is a custom host (device) and a reachable IdP (SSO / OIDC). A reachable IdP need not be external: generic OIDC is drivable against an IdP started on localhost (the identity-auth slice report on #23878 (6216631966)), so the generic-OIDC half is not blocked(environment) — only the device variant (no custom host) and the enterprise @better-auth/sso half (features.sso) stay blocked(environment) — the latter until a run reaches a publicly routable IdP or boots with a trustedOrigins configuration naming its IdP's origin" + "the device-authorization variant has no switch on the stock `os dev` → `os serve` path: the AuthPlugin the CLI injects takes only env-mapped plugins (packages/cli/src/commands/serve.ts: OS_AUTH_ADMIN, OS_AUTH_TWO_FACTOR, OS_AUTH_PASSWORD_REJECT_BREACHED, OS_AUTH_PHONE_NUMBER_ENABLED), and plugins.deviceAuthorization is none of them (QA run #21784, parked on #22017 row 20). It kept every run of this item from scoring acceptance[0], [4] and [5] whole, so it was split out (#33353 row 8): identity-auth.device-authorization-grant carries the variant, its steps, its spec-path divergence and its blocked(environment) marker. The enterprise @better-auth/sso half (features.sso) is NOT blocked(environment) any more: it has a boot switch, OS_SSO_ENABLED, and the register door's refusal of a loopback IdP is lifted by naming the IdP's origin in OS_TRUSTED_ORIGINS (fixtures.requires[2]; QA run #27438 measured the refusal, QA runs #33092 and #33093 the trusted-origin road). Generic OIDC is drivable against a localhost IdP (the identity-auth slice report on #23878 (6216631966))" ] }, "steps": [ @@ -178,8 +178,7 @@ "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", - "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", - "device authorization: with deviceAuthorization on, drive the RFC 8628 flow (POST /device/code, approve via /device/approve in a signed-in browser, poll /device/token) against the LIVE server's routes, recording which path spelling the server actually serves", + "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", "self-service identity mutations: POST /api/v1/auth/change-email (authed) and POST /api/v1/auth/delete-user (authed) — capture each, plus the anonymous forge of both. delete-user is deliberately unwired (auth-route-ledger disposition 'disabled': user.deleteUser is not configured, maintainer ruling on #7735), so expect 404 for the signed-in caller and 401 for the anonymous forge (the route is mounted and session-guarded, so the session check answers first) — never 2xx", @@ -259,9 +258,8 @@ "email+password (POST /api/v1/auth/sign-in/email, /sign-up/email, /sign-out, /get-session)", "phone+password (better-auth phone-number plugin sign-in surface)", "phone OTP sign-in + reset (requires SMS service; loud 400 SMS_SERVICE_REQUIRED on send-otp without — #2780)", - "enterprise SSO / generic OIDC (generic oidcProviders[] via genericOAuth surface as socialProviders[] of type 'oidc'; features.sso tracks only @better-auth/sso)", + "enterprise SSO / generic OIDC (generic oidcProviders[] via genericOAuth surface as socialProviders[] of type 'oidc'; features.sso tracks only @better-auth/sso, armed with OS_SSO_ENABLED and a trusted-origin IdP, fixtures.requires[2])", "social OAuth (socialProviders map, per-provider enabled)", - "device authorization grant (RFC 8628 — CLI/TV login)", "two-factor (server-driven challenge, ADR-0069; cookie-lane completion pinned end-to-end by two-factor-lockout.dogfood.test.ts — arm with OS_AUTH_TWO_FACTOR=true BEFORE boot, the plugin list is resolved once at auth-manager construction; enrollment lifecycle owned by identity-auth.two-factor-*)", "magic link (off on a stock boot — the routes answer 404 unless plugins.magicLink is enabled; no login UI and no advertised flag since #7481 — blocked, objectui#4179)", "passkeys (plugin flag accepted but nothing wired; no advertised flag since #7481 — blocked, objectui#4179)" @@ -287,7 +285,91 @@ { "revision": 8, "date": "2026-10-17", "change": "knownGaps[3], steps[3] and [4], acceptance[3].verify and variants[3] and [7] corrected (checklist-accuracy findings of the identity-auth slice report on #23878 (6216631966)). The no-SMS state needs NODE_ENV=production: in development the SMS log transport delivers, so send-otp succeeds. A generic oidcProviders entry surfaces as a socialProviders[] entry of type 'oidc', while features.sso tracks only the @better-auth/sso plugin, so the SSO step's 'features.sso refined to usable' check could never see a generic provider. Magic-link is off on stock (404), not 'server endpoints live'. Generic OIDC is drivable against a localhost IdP, so only the device and enterprise-SSO halves stay blocked(environment). Not loosened: a phone OTP without SMS that succeeds, hangs or 500s on a production boot still FAILS", "ref": "#24036" }, { "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": 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" } + ] + }, + { + "id": "identity-auth.device-authorization-grant", + "title": "Device authorization (RFC 8628, the browser-approved CLI and TV login) signs in when enabled, is absent when disabled, and is advertised exactly as configured", + "since": "v16", + "status": "active", + "revision": 1, + "priority": "P1", + "surface": "mixed", + "personas": [ + "a device client with no session, requesting a code", + "a signed-in user approving the code in the console", + "admin (for the host configuration)" + ], + "fixtures": { + "app": "showcase", + "requires": [ + "an ON host: a host that constructs AuthPlugin itself with plugins.deviceAuthorization: true. The stock `os dev` → `os serve` path cannot: the AuthPlugin the CLI injects takes only env-mapped plugins (packages/cli/src/commands/serve.ts: OS_AUTH_ADMIN, OS_AUTH_TWO_FACTOR, OS_AUTH_PASSWORD_REJECT_BREACHED, OS_AUTH_PHONE_NUMBER_ENABLED), and the plugin list reads deviceAuthorization from the plugin config alone, with no environment switch (packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts)", + "an OFF host: the same host with plugins.deviceAuthorization absent or false (the stock boot is one)" + ], + "knownGaps": [ + "the two spec files disagree on the device-flow paths (packages/spec/src/api/auth-endpoints.zod.ts: /device/request, /device/token, /device/approve vs packages/spec/src/system/auth-config.zod.ts: /device/code, /device/token, /device, /device/approve, /device/deny) — the LIVE better-auth surface serves POST /device/code, /device/token, /device/approve, /device/deny and GET /device (auth-route-ledger.ts BETTER_AUTH_MOUNTED_SURFACE); trust the live routes and file the doc divergence", + "no stock boot is an ON host, so this item is blocked(environment) until a run has one (QA run #21784, parked on #22017 row 20). It was split out of identity-auth.auth-method-matrix (#33353 row 8) so that item scores without it; the OFF-host half (acceptance[0]'s off read and acceptance[3]) is drivable on a stock boot and scores on its own" + ] + }, + "blocked": { + "by": "environment", + "ref": "#22017 row 20 (QA run #21784): no stock os dev or os serve switch for plugins.deviceAuthorization" + }, + "steps": [ + "on the ON host: GET /api/v1/auth/config and record data.features.deviceAuthorization (getPublicConfig in packages/plugins/plugin-auth/src/auth-manager.ts answers pluginConfig.deviceAuthorization ?? false; the route answers { success: true, data: config })", + "device authorization: with deviceAuthorization on, drive the RFC 8628 flow (POST /device/code, approve via /device/approve in a signed-in browser, poll /device/token) against the LIVE server's routes, recording which path spelling the server actually serves", + "open the console's device-approval page signed in, with the user_code in its query (the verification URI the plugin is handed is the console page /auth/device, auth-manager-plugin-list.ts); screenshot its approve and deny affordance", + "on the OFF host: GET /api/v1/auth/config, open the same device-approval page (with deviceAuthorization false it says device authorization is not enabled instead of calling the endpoints, AuthFeaturesConfigSchema.deviceAuthorization in packages/spec/src/api/auth-endpoints.zod.ts), and POST /api/v1/auth/device/code anyway; record each answer" + ], + "acceptance": [ + { + "clause": "advertisement parity: data.features.deviceAuthorization reads true on the ON host and false or absent on the OFF host, never advertised while off and never hidden while on (identity-auth.auth-method-matrix acceptance[0], for this variant)", + "oracle": "api", + "verify": "the two /api/v1/auth/config reads, each against the configuration that booted its host", + "evidence": "the /auth/config pair" + }, + { + "clause": "the RFC 8628 flow signs a user in when on: POST /device/code issues a device_code and a user_code, a signed-in user approves the user_code through /device/approve, and polling /device/token then answers a token for that user", + "oracle": "api", + "verify": "the three calls on the ON host against the LIVE routes (BETTER_AUTH_MOUNTED_SURFACE serves POST /device/code, /device/token, /device/approve, /device/deny and GET /device), recording the path spelling the server served; the token's user is the approving user", + "evidence": "the code, approve and token responses" + }, + { + "clause": "the console offers the approval affordance exactly when the method is on (identity-auth.auth-method-matrix acceptance[4], for this variant)", + "oracle": "screenshot", + "verify": "the /auth/device page on each host, checked against that host's /auth/config: approve and deny on the ON host, the not-enabled notice on the OFF host", + "evidence": "the two screenshots" + }, + { + "clause": "a disabled device flow is refused SERVER-SIDE, not merely hidden (identity-auth.auth-method-matrix acceptance[5], for this variant; ADR-0124 D1)", + "oracle": "api", + "verify": "on the OFF host, POST /api/v1/auth/device/code answers a non-2xx (the plugin's routes are not mounted)", + "evidence": "the forged-request response" + } + ], + "negative": [ + "a 2xx from /device/code on the OFF host is a FAIL: a page that only hides the flow is not a gate", + "data.features.deviceAuthorization true on the OFF host, or false on the ON host, is a FAIL" + ], + "traps": [ + "dispatcher-vs-hono-route" + ], + "source": [ + "packages/spec/src/system/auth-config.zod.ts#AuthPluginConfigSchema (deviceAuthorization)", + "packages/spec/src/api/auth-endpoints.zod.ts#AuthEndpointPaths (the device-flow paths and response schemas; AuthFeaturesConfigSchema.deviceAuthorization)", + "packages/plugins/plugin-auth/src/auth-route-ledger.ts#BETTER_AUTH_MOUNTED_SURFACE (the live /device/* rows)", + "packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts (the deviceAuthorization plugin and its /auth/device verification URI)", + "identity-auth.auth-method-matrix (split from it, #33353 row 8)" + ], + "history": [ + { + "revision": 1, + "date": "2026-11-14", + "change": "new — split from identity-auth.auth-method-matrix at its revision 11 (card #33353 row 8; ledger row 8 of #32908). Its device-authorization variant, steps[5], knownGaps[1] (the spec-path divergence) and the device half of knownGaps[3] moved here, so the parent's per-variant clauses can score whole on a stock boot. This item keeps the variant's blocked(environment) marker (#22017 row 20). acceptance[0], [2] and [3] are the parent's acceptance[0], [4] and [5] read for this variant; acceptance[1] states what the parent's step and title asked of it (the flow signs a user in when on). Nothing is narrowed. Read from source at base bd439f17, not driven live", + "ref": "#33353" + } ] }, { @@ -404,7 +486,7 @@ "title": "Admin user-lifecycle operations (ban/unban, set-password, impersonate, create/set-role/remove, revoke-sessions) enforce, persist, and stay closed to non-admins", "since": "v16", "status": "active", - "revision": 11, + "revision": 12, "priority": "P1", "surface": "mixed", "personas": ["platform admin", "target user", "non-admin forger"], @@ -413,7 +495,7 @@ "requires": [ "the better-auth admin plugin enabled (plugins.admin: true) — it exposes /admin/ban-user, /admin/unban-user, /admin/set-user-password, /admin/impersonate-user, /admin/stop-impersonating, /admin/list-users, /admin/create-user, /admin/set-role, /admin/remove-user, /admin/revoke-user-session(s) under the auth route and augments sys_user with role/banned/ban_reason/ban_expires and sys_session with impersonated_by", "a disposable target user with a known password (create one; do not ban a seeded persona other items depend on). A user made by POST /api/v1/auth/admin/create-user carries must_change_password (default true, packages/plugins/plugin-auth/src/admin-user-endpoints.ts; the admin set-user-password stamps it too), and every data read then answers 403 PASSWORD_RESET_REQUIRED until the user changes the password: pass mustChangePassword: false, or have the user POST /api/v1/auth/change-password first", - "for acceptance[10]–[12] only: a walled boot (OS_TENANCY_POSTURE=isolated or group) provisioned per RUNNER.md's entry 'A walled boot is a fixture of its own', with the admin plugin on. Declare its membership policy as OS_AUTH_MEMBERSHIP_POLICY=invite-only, so one boot serves all three clauses. On a walled boot the admin starts with no active organization: create one (POST /api/v1/auth/organization/create) and set it active (POST /api/v1/auth/organization/set-active) before Create User, or create-user answers 400 NO_ACTIVE_ORGANIZATION. On the stock single-org showcase Create User binds the Default Organization instead, so these three clauses are blocked(fixture) without the walled boot" + "for acceptance[10]–[12] only: a walled boot (OS_TENANCY_POSTURE=isolated or group) provisioned per RUNNER.md's entry 'A walled boot is a fixture of its own', with the admin plugin on. Declare its membership policy as OS_AUTH_MEMBERSHIP_POLICY=invite-only, so one boot serves all three clauses. Create User joins the admin's CURRENT organization and answers 400 NO_ACTIVE_ORGANIZATION without one. The walled admin does not start with none: named by OS_PLATFORM_OWNER_EMAIL, it is bound owner of the Default Organization at boot (packages/plugins/plugin-auth/src/ensure-default-organization.ts) and a new session starts on the owned organization (selectActiveOrg in packages/plugins/plugin-auth/src/auth-manager-database-hooks.ts; QA run #33093). So make the organization the clauses are meant to run in current before Create User: POST /api/v1/auth/organization/create, then POST /api/v1/auth/organization/set-active. scripts/qa/qa-fixture.mjs walled-boot does both by default (and exports OS_PLATFORM_OWNER_EMAIL and OS_AUTH_MEMBERSHIP_POLICY=invite-only); with --no-organization it skips them. On the stock single-org showcase Create User binds the Default Organization instead, so these three clauses are blocked(fixture) without the walled boot" ], "knownGaps": [ "SUPERSEDED 2026-08-24 (#9482) — the note below is kept because a runner may still meet it on an OLD build, but it no longer describes current main. The 2026-08-18 measurement said EVERY better-auth-native /admin/ endpoint refuses an ObjectStack platform admin. Since then #9970 re-mounted ban-user/unban-user with the ADR-0068 gate and #10352 re-authorized impersonate-user as a better-auth PLUGIN endpoint (consolidated onto hasPlatformAdminStanding by #11686). Re-measured on main 2026-08-24: the platform admin gets 200 from ban-user, unban-user, create-user, set-user-password, unlock-user, import-users, oauth2/toggle-disabled and impersonate-user. EIGHT routes still answer the platform admin 403 YOU_ARE_NOT_ALLOWED_TO_*, and that is now a RULED OUTCOME rather than a gap: remove-user, revoke-user-session, revoke-user-sessions, list-user-sessions, update-user, list-users and get-user (#9969, closed not_planned — no ObjectStack consumer, re-implement on demand), plus set-role (#9968, ruled B — the sys_user action was RETIRED by PR #11530 and the vendor route deliberately left vendor-gated, because its only effect is writing the legacy scalar ADR-0068 D2 retired). A runner who meets a 403 on any of those EIGHT is seeing the intended design, not a fixture mistake and not a bug to file.", @@ -583,6 +665,12 @@ "date": "2026-11-14", "change": "fixtures.requires[1], steps[9], steps[10] and acceptance[4].verify re-pointed (stale spec and fixture gap, QA runs #33093 and #33094, comments 6850899929 and 6852480973; ledger rows 244 and 240 of #32908, row 240 from #33331). Admin-made users carry must_change_password and read 403 PASSWORD_RESET_REQUIRED until it clears (admin-user-endpoints.ts). Impersonation deletes the admin's original session (impersonation-bearer-rotation.ts). showcase_task requires project (task.object.ts). No clause changed. Read at base 82838e83", "ref": "#33328" + }, + { + "revision": 12, + "date": "2026-11-14", + "change": "fixtures.requires[2] re-pointed (stale spec, card #33353; batch A's out-of-scope note in report 6881502398 on #33328, QA run #33093 comment 6850899929). It said the walled admin starts with no active organization. Re-measured on main: ensure-default-organization.ts binds the OS_PLATFORM_OWNER_EMAIL admin owner of the Default Organization under a walled posture, and selectActiveOrg (auth-manager-database-hooks.ts) starts a new session on the owned organization, as QA run #33093 found and identity-auth.workspace-org-switch already says. The line now says Create User needs a current organization, which one the admin starts on, and that scripts/qa/qa-fixture.mjs walled-boot creates and sets one by default. No clause changed. Read from source at base bd439f17", + "ref": "#33353" } ] }, @@ -3262,6 +3350,80 @@ } ] }, + { + "id": "identity-auth.scim-deactivation-revokes-api-keys", + "title": "A directory deactivation through SCIM revokes the user's API keys: each key then answers 403 API_KEY_REVOKED, a re-activation re-arms none, and no one restores them", + "since": "v18.4", + "status": "active", + "revision": 1, + "priority": "P1", + "surface": "api", + "personas": [ + "an identity provider calling SCIM 2.0 (the connection's bearer)", + "the provisioned user, who mints and presents the key", + "admin (the seeded admin): the SCIM credential, the password set, the key-row read and the restore attempt" + ], + "fixtures": { + "app": "showcase", + "requires": [ + "a boot with OS_SCIM_ENABLED=true and one SCIM connection credential minted at POST /api/v1/auth/admin/scim/mint-credential (as identity-auth.scim-refused-audit-row)", + "a SCIM-provisioned user that holds an API key: POST /api/v1/auth/scim/v2/Users {userName, emails, active: true} with the bearer (record the SCIM id it answers); as admin POST /api/v1/auth/admin/set-user-password {userId, newPassword} (refused only under SSO-only mode, which is off by default); sign in as the user and POST /api/v1/auth/change-password, since set-user-password stamps must_change_password and every other call answers 403 PASSWORD_RESET_REQUIRED until it is changed (packages/plugins/plugin-auth/src/admin-user-endpoints.ts); then POST /api/v1/keys as the user and keep the raw key it answers once" + ], + "knownGaps": [ + "the key-holding SCIM user is assembled from source and has not been driven yet: a run that cannot mint the key (a refused sign-in, set-user-password or POST /api/v1/keys for a SCIM-provisioned user) records the item blocked(fixture) naming the step and its answer, and cites packages/plugins/plugin-auth/src/scim-deactivation-reconcile-user.test.ts per rule 6. That pin drives the SCIM door and the key door's admission in process over a real engine, with keys inserted directly rather than minted over HTTP, so it scores acceptance[0]–[2] partial, never pass" + ] + }, + "steps": [ + "control: call GET /api/v1/data/showcase_task with the user's key (x-api-key) and record the answer: the key is admitted (any answer but 401 and the API_KEY_* lifecycle codes; a data refusal for an object the user may not read still proves admission)", + "deactivate through the directory: PATCH /api/v1/auth/scim/v2/Users/SCIM_ID {\"schemas\": [\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"], \"Operations\": [{\"op\": \"replace\", \"path\": \"active\", \"value\": false}]} with the bearer; expect 200", + "call the same data read with the same key; then, as admin, read the key row: GET /api/v1/data/sys_api_key filtered to the user (revoked, revoked_reason)", + "re-activate: the same PATCH with value true; call the data read with the old key again", + "restore attempts: as the re-activated owner, and then as admin, PATCH /api/v1/data/sys_api_key/KEY_ID {revoked: false} (the Restore API Key action's write); record both answers and re-read the row", + "the new-key road: as the re-activated user POST /api/v1/keys and call the data read with the NEW key" + ], + "acceptance": [ + { + "clause": "after the SCIM deactivation the user's key answers 403 API_KEY_REVOKED, and its message says the directory deactivated the owner and the key cannot be restored", + "oracle": "api", + "verify": "steps[2]'s call: status 403, code API_KEY_REVOKED, beside steps[0]'s admitted control (packages/core/src/security/api-key.ts#resolveApiKeyAdmission; the scim_deactivated message in the same file names the new-key road and no restorer); the admin read shows the row kept with revoked true and revoked_reason scim_deactivated (packages/plugins/plugin-auth/src/scim-deactivation-key-revocation.ts#revokeDirectoryDeactivatedApiKeys)", + "evidence": "the control answer, the refusal body and the key row" + }, + { + "clause": "a re-activation re-arms none of the keys: after SCIM active true the old key still answers 403 API_KEY_REVOKED, and the user's new key is admitted", + "oracle": "api", + "verify": "steps[3]'s call (403 API_KEY_REVOKED) and steps[5]'s call with the new key (admitted, as in steps[0]); the directory lifts its ban on re-activation (AuthManager#reconcileScimUserLifecycle in packages/plugins/plugin-auth/src/auth-manager.ts), the key is a credential of its own and stays revoked", + "evidence": "the two answers" + }, + { + "clause": "no one restores a scim_deactivated key from a user context: the owner's restore and a platform administrator's restore are each refused 403 PERMISSION_DENIED, naming the reason and the new-key road, and the row stays revoked", + "oracle": "api", + "verify": "steps[4]'s two answers and the re-read (packages/plugins/plugin-auth/src/api-key-restore-guard.ts, rule 1: judged first, no standing lifts it)", + "evidence": "the two refusals and the re-read row" + } + ], + "negative": [ + "a key that still answers 2xx after the directory deactivated its owner is a FAIL: the leaver keeps a working credential", + "a key the re-activation re-arms, or that a platform administrator restores, is a FAIL of ruling 6787890900 on #32004 ('an administrator cannot restore them')" + ], + "automated": { + "kind": "unit", + "ref": "packages/plugins/plugin-auth/src/scim-deactivation-reconcile-user.test.ts, packages/plugins/plugin-auth/src/api-key-restore-guard.test.ts (in-process layer only: both score partial, the live calls are driven)" + }, + "source": [ + "packages/plugins/plugin-auth/src/scim-deactivation-key-revocation.ts#revokeDirectoryDeactivatedApiKeys", + "packages/plugins/plugin-auth/src/api-key-restore-guard.ts", + "packages/core/src/security/api-key.ts#resolveApiKeyAdmission", + "#33075 (PR), ruling 6787890900 on #32004 (Directory deactivation)" + ], + "history": [ + { + "revision": 1, + "date": "2026-11-14", + "change": "new (coverage, card #33353 row 232; ledger row 232 of #32908, QA run #33092 comment 6850793622): no item asserted #33075's SCIM-deactivation key revocation live. Placed beside identity-auth.scim-refused-audit-row because the trigger is the SCIM door. The three clauses are the rule as main states it: the revocation and its 403 API_KEY_REVOKED message (scim-deactivation-key-revocation.ts, core api-key.ts), no re-arm on re-activation (AuthManager reconcileScimUserLifecycle), and no restorer (api-key-restore-guard.ts rule 1). The key-holding SCIM user is a source-read recipe, recorded as a knownGap until a run drives it. Read from source at base bd439f17, not driven live", + "ref": "#33353" + } + ] + }, { "id": "identity-auth.console-two-factor-prompt-phone-doors", "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",