Repository navigation
qa(checklist): re-point 36 stale access-security, api-backend and approvals items to what main does - #33400
Merged
Conversation
…s 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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F
…rovals 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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F
Contributor
Author
|
domain:devx#4 · os-project-manager · session_01FEkQ5ooRyyS95kdyC2dPEX 席位核对 · ACCEPT · head
|
This was referenced Nov 14, 2026
Open
scbdzhwl
pushed a commit
to scbdzhwl/objectstack-analysis
that referenced
this pull request
Nov 16, 2026
…, and cover restart persistence and SCIM key revocation (objectstack-ai#33421) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XXfKbgM3JofG6dFmRe16ZKu)_ domain:devx#4 · os-project-manager · session_01FEkQ5kHpQrXX5yTHRb5h4F Part of objectstack-ai#33353 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:objectstack-ai#33353 的文字一半。拆分 `identity-auth.auth-method-matrix`(第 8 行),把设备授权拆成新条目 `identity-auth.device-authorization-grant`(blocked environment);给 `api-backend.package-rest-lifecycle` 加一条「重启后清单等于最后一次写入」的验收(第 196 行);新建 `identity-auth.scim-deactivation-revokes-api-keys`,断言 objectstack-ai#33075 的 SCIM 停用吊销 API key 后请求得 403 `API_KEY_REVOKED`(第 232 行);重测并改正 `identity-auth.admin-lifecycle-operations` 的 fixtures.requires[2]。只改两个 JSON 文件。 - 为什么改:设备授权在任何 stock 启动下都开不了,拖住整个矩阵无法计分;拆开后可驱动的部分能计分。另两条是 v18.4.0 那轮记下的覆盖缺口。walled admin「没有组织」的说法在 main 上已过时。 - 风险与回滚:只改清单文字,不动产品代码;改动的条目各升一版加一条历史,新条目从第 1 版起并写明来源。回滚即还原本 PR。 - 先看:第 8 行的拆分。工单说「SSO 和设备」都受环境阻塞,但 main 上企业 SSO 用 OS_SSO_ENABLED 加 OS_TRUSTED_ORIGINS 就能在 stock 启动下驱动(QA objectstack-ai#33092),所以只拆出了设备授权,SSO 留在父条目里并写进了步骤。 - 两分钟验证:`pnpm check:platform-checklist`,预期退出码 0。 - 需要你做的:无,席位落地;卡片留给下一轮 checklist-test 的驱动一半。 ## What changes `docs/qa/platform-checklist/areas/identity-auth.json` (two items changed, two new) and `api-backend.json` (one item changed), text only. Each changed item gets exactly one `revision` bump and one `history` row citing objectstack-ai#33353 and the base it was read at (`bd439f17`); each new item starts at revision 1 with a history row naming where it came from. No other file. The drive rows (1–4, 6, 7, 9, 10, 106, 114) and `api-backend.error-envelope-ledger` are not touched. | row # | item | disposition | evidence on main | |---|---|---|---| | 8 | `identity-auth.auth-method-matrix` | split (parent, rev 12) | packages/cli/src/commands/serve.ts L4658-L4672 (AuthPlugin env switches: OS_AUTH_ADMIN, OS_AUTH_TWO_FACTOR, OS_AUTH_PASSWORD_REJECT_BREACHED, OS_AUTH_PHONE_NUMBER_ENABLED only), L4549-L4552 OS_TRUSTED_ORIGINS; plugin-auth auth-manager-plugin-list.ts L176 OS_SSO_ENABLED, L211 and L932-L940 deviceAuthorization from config only | | 8 | `identity-auth.device-authorization-grant` | split (new item, rev 1, blocked environment) | plugin-auth auth-manager-plugin-list.ts L932-L940 (deviceAuthorization plugin, verificationUri /auth/device); auth-manager.ts L5882 features.deviceAuthorization; auth-route-ledger.ts L387, L441-L444 /device rows; spec auth-endpoints.zod.ts L364-L367 | | 196 | `api-backend.package-rest-lifecycle` | clause authored (rev 6) | metadata-protocol protocol-package-install.ts L500-L520 updatePackage (persistPackageManifest L515, restore on failure); service-package index.ts L530-L541 publish stamps, L662-L672 list() picks MAX(updated_at) per id, L776-L852 boot hydration into registry.installPackage; package-table.ts L247 packageWriteStamp | | 232 | `identity-auth.scim-deactivation-revokes-api-keys` | item authored (new, rev 1) | plugin-auth scim-deactivation-key-revocation.ts L124 revokeDirectoryDeactivatedApiKeys; auth-manager.ts L4929 reconcileScimUserLifecycle; core security/api-key.ts L324 API_KEY_REVOKED 403, L447-L450 scim_deactivated message; api-key-restore-guard.ts L85-L89 (no restorer); admin-user-endpoints.ts L1068-L1088 set-user-password | | A note | `identity-auth.admin-lifecycle-operations` | re-pointed fixtures.requires[2] (rev 12) | plugin-auth ensure-default-organization.ts L1-L75 (walled: the OS_PLATFORM_OWNER_EMAIL admin is bound owner of the Default Organization), L446 ensureDefaultOrganization; auth-manager-database-hooks.ts L199-L226 selectActiveOrg; scripts/qa/qa-fixture.mjs L351-L427 (walled-boot creates and sets an organization unless --no-organization) | ## Why - **Row 8, the split.** The README's Lifecycle rules allow Append, Change and Retire, and never delete. So the parent is Changed: the device variant, its step and its knownGap move out, and the title names where they went. The device variant is Appended as its own item, which starts at revision 1 and names the parent in its history row. The new item keeps the parent's acceptance meaning for device authorization: the advertisement matches the mounted routes, the RFC 8628 flow signs in, the console `/auth/device` page works, and an off-host `/device/code` call is refused. It carries `blocked: environment`, because no stock `os dev` or `os serve` switch turns on `plugins.deviceAuthorization` (serve.ts maps only the four switches above). Nothing is narrowed: every clause that applied to device authorization in the parent now applies in the child. - **Row 8, SSO stays.** The card read both SSO and device authorization as blocked by environment. Main says otherwise for SSO: `OS_SSO_ENABLED` turns the SSO plugin on and `OS_TRUSTED_ORIGINS` admits a mock IdP. QA run objectstack-ai#33092 drove it this way. So enterprise SSO stays in the parent as a drivable variant, and its fixture recipe is now in `fixtures.requires[2]` and `steps[4]`. - **Row 196.** `updatePackage` persists the manifest before it answers (protocol-package-install.ts). Boot hydration reads, for each package id, the row with the latest `updated_at` (service-package index.ts). Write stamps are millisecond-monotonic (package-table.ts), so two writes cannot tie. The new step restarts the server on the same database. The new clause then requires that both the detail and the list serve the `2.0.0` overwrite from steps[5], and that the list has exactly one row for the package. - **Row 232.** This follows the checklist-author skill. The author re-read objectstack-ai#33075 and main, and the item sits beside `identity-auth.scim-refused-audit-row`, since the SCIM lifecycle reconcile is what revokes the key. It has three clauses, each settled by source: - After SCIM sets `active: false`, the key answers 403 `API_KEY_REVOKED` with the `scim_deactivated` message. - Setting the user active again does not re-arm the key. - No restorer exists: a `revoked: false` write is refused with 403 `PERMISSION_DENIED`. Getting a SCIM-provisioned user to hold a key over HTTP is a recipe that has not been driven live. It is recorded as a knownGap: if the recipe fails, a runner marks the item `blocked: fixture` and cites the unit pins as partial evidence. - **Batch A note.** Re-measured, the line was stale. A walled boot binds the platform-owner admin as owner of the Default Organization, and `selectActiveOrg` starts the session on it, so the admin does not start without an organization. The line now says this and keeps the instruction to make the intended org current. `qa-fixture walled-boot` does that by default. ## Tests No test was added or changed, because the diff is checklist text. There is nothing to ablate (os-dev.md: docs are not ablated). Authoring was scoped and done in sequence by one reader (checklist-author, without the sweep's subagents), because the order names the three rows. ## Acceptance notes - The SSO departure from the card's wording is explained under Why. It moves no clause out of scoring that the card wanted scored. - The re-measure was done from source, not driven live. Each history row says so. - `skip-changeset`: `docs/qa/**` ships in no package. - Branch: after objectstack-ai#33400 merged, `origin/main` was merged into `claude/project-thread-v8xylo` rather than force-pushed (AGENTS.md section 3 keeps force-push for `claude/issue-*` branches). The diff against `origin/main` was empty before the edit commit. ## Verification Run on head `ee860d83` (branch `claude/project-thread-v8xylo`, merge base `origin/main` `bd439f17`). The gate list came from `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (16 commands), and each exit code was captured before any pipe: <details><summary>16 derived, 16 run, all exit 0; --ran reconciliation exit 0</summary> ```text node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:platform-checklist :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` `dispatch-gates --ran`: "16 derived famil(ies) accounted for — 16 run, 0 NOT-MEASURED", exit 0. `--tier`: no mandate derived from the paths; 208 changed lines (+192 / -16), under the 3000-line human-merge threshold. </details> No package is touched, so no package build, test, typecheck or scoped `pnpm lint` is owed. Every other check family belongs to CI and is read from this PR's check-runs. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Leehom · project thread
domain:devx#4 · os-project-manager · session_01FEkQ5kHpQrXX5yTHRb5h4F
Fixes #33332
Clause-②: no
Metadata-protocol: none
维护者速读
approvals.request-page-reply-and-reader-visibility(第 102 行):main 上普通成员已经能读 sys_approval_request([Decision] Should an approver be able to see and decide their pending approvals over MCP? #32442 裁决 1B),所以 404 那条腿不再需要临时授权;再看approvals.record-page-decisions(第 159 行)acceptance[2] 的 clause 改了措辞。pnpm check:platform-checklist,预期退出码 0。What changes
docs/qa/platform-checklist/areas/access-security.json(16 items),api-backend.json(9 items) andapprovals.json(11 items), text only. Each item gets exactly onerevisionbump and onehistoryrow citing #33332, the QA record(s) the row came from, and the base it was read at (fca5f89c). No other file.Every row was re-measured from source on
origin/mainfca5f89cbefore its edit. None turned out already right as a whole (row 211's knownGaps half was), none needs a live drive to settle, and none needs a ruling, so there are noneeds_decisionrows.access-security.ai-service-account-agent-ceilingapprovals.account-app-entryapprovals.account-app-entryaccess-security.walled-environment-metadata-operator-onlyaccess-security.no-active-org-session-semanticsaccess-security.permission-set-package-resolutionapi-backend.automation-namespace-addressaccess-security.credential-use-audit-rowapi-backend.client-sdk-namespace-addressapi-backend.api-methods-verb-gateapi-backend.retired-def-refusalapi-backend.aggregate-contract-matrixaccess-security.activation-write-operator-gateapprovals.status-mirror-fieldapi-backend.automation-namespace-addressaccess-security.share-link-landing-pageaccess-security.security-catalog-one-holder-and-boot-reportapprovals.request-page-reply-and-reader-visibilityaccess-security.capability-declaration-lifecycleapprovals.quorum-m-of-napprovals.inbox-metadata-actionsapprovals.decision-action-matrixapi-backend.route-ledger-live-parityapprovals.notification-deep-linkapprovals.ooo-delegation-rerouteapprovals.record-page-decisionsapprovals.sla-escalationaccess-security.public-form-withdrawal-layersaccess-security.security-catalog-activation-and-clone-doorsapi-backend.action-activation-door-contractapi-backend.rest-crud-config-contractapprovals.decision-only-via-serviceapi-backend.package-rest-lifecycleaccess-security.record-view-read-auditaccess-security.suggested-binding-loopaccess-security.agent-ceiling-set-assignment-refusalaccess-security.share-link-capability-tokensaccess-security.walled-environment-metadata-operator-onlyaccess-security.readonly-package-locks-studioWhy
The card's readings are from the v18.4.0 sweep's QA records (the #32908 ledger names each one) and were not driven live. The source on main confirms each, with three places where main had moved past the record:
member_defaultgrants every internal member read onsys_approval_request, and the request read gate narrows the rows (default-permission-sets.ts,request-read-gate.ts), so the stock non-participant member drives the 404 leg itself. The runtime grant recipe moved to the reader leg's scratch object, where it is still needed.merchantandamount(plus the report) are required;categoryis optional andstatusdefaults tosubmitted. The step names the source fields, and the record's 400 for statuspending(not an option).Tests
No test added or changed: the diff is checklist text. Nothing to ablate (os-dev.md: docs are not ablated).
Acceptance notes
approvals.status-mirror-fieldnegative[2]: the flow fires on the sweep's user-less mirror by design, and since The #1888 user-less fail-open is wider than the lint that guards it — record-change flows fired by a system write run UNSCOPED, unlinted #3760 its data operations are refused, so the FAIL is the data operation landing, as the QA record suggested.approvals.ooo-delegation-reroutenegative[3]: a stock demo persona forging a delegation is refused 403PERMISSION_DENIEDat the object gate before the delegation guard's 403FORBIDDEN; both are the refusal the entry asks for, and an accepted foreign-delegator write is still the FAIL.approvals.record-page-decisionsacceptance[2]'s clause now names the action door the bar posts, which forwards to the approvals route. What it requires is unchanged.api-backend.error-envelope-ledgerINVALID_FILTER face is out of scope, as the order says, and is not touched.skip-changeset:docs/qa/**ships in no package.claude/project-thread-v8xylofromorigin/mainafter qa(checklist): name the persona and status of three approvals refusals a non-reader gets as 404 #33327 merged. A force-push is reserved forclaude/issue-*branches (AGENTS.md section 3), soorigin/mainwas merged into the branch instead; the diff againstorigin/mainwas empty before the edit commit.Verification
On head
b4df2eaa(branchclaude/project-thread-v8xylo, merge baseorigin/mainfca5f89c), the list fromnode scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack(16 commands), each exit code captured before any pipe:16 derived, 16 run, all exit 0; --ran reconciliation exit 0
check:doc-formula-expressionsneeds@objectstack/lintbuilt in a fresh worktree; built first withpnpm --filter "@objectstack/lint..." build(exit 0).dispatch-gates --ran: "16 derived famil(ies) accounted for — 16 run, 0 NOT-MEASURED", exit 0.--tier: no path-derived mandate; 451 changed lines, under the 3000 human-merge threshold.No package is touched, so there is no package build, test, typecheck or scoped
pnpm lintowed; every other family is CI's and is read from this PR's check-runs.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5kHpQrXX5yTHRb5h4F