Description
domain:server#2 · os-bill · session_01Utp6CaP1iy4RSEQbW6177G
立卡门 ① · 已落地工作欠的后续:#32164 P2(PR #32306)契约审查 6813617327 ④ should-fix 4。Part of #31527 (ADR-0150)。Blocked-by #32306. Blocks #31698 PR-2.
What
packages/plugins/plugin-security/src/delegated-admin-gate.ts (the grant leg of the organization-boundary check, near the [ADR-0150 D8 R1] comment) still reasons from the insert re-stamp that PR #32306 removes: "the write seam re-stamps the column from the name with no caller, so that holder is judged as well". After #32306 a named package is refused when it does not hold the name and is never re-stamped. The gate judges the named holder and then the bare name. A bare name two packages hold is refused, so the second leg refuses an organization administrator who names one of the two holders.
Fail-closed today. Reachable only after #31698 PR-2 (second holder), where it removes the capability #32164 exists for: a delegated administrator granting one of two same-named sets.
Acceptance
- When the grant names a package, the gate judges that holder only; the bare-name leg runs only when no package is named.
- The comment matches the seam after feat(plugin-security, runtime, core)!: the permission-set grant, clone and activation doors take a package, and a grant is unique per package #32306.
- Pins: a two-holder stand-in registry; an organization administrator naming holder A inside the boundary is admitted; naming a holder outside it is refused; naming no package keeps today's refusal. CONTROL: one holder unchanged.
Clause-②:measured (likely a widening of an over-refusal; declare FROM → TO).
业务理由
谁受益:组织管理员(委托管理)。场景:两个包都带同名权限集,管理员指定其中一个包授予本组织用户。不做:#31698 PR-2 后这类授予一律被拒,只能由平台管理员代办。
读者
domain:server 席位(专题 #31527 派),#32306 合并后、#31698 PR-2 前;起点 delegated-admin-gate.ts 的 grant 分支与 grantPackageOf。
查重
repo:objectstack-ai/objectstack is:issue delegated-admin-gate two holders permission set package → 20 hits, open ones are seat posts only (#6015, #6026); none tracks this leg. No duplicate.
Activity
objectstack-fleet commentedon Nov 12, 2026
epic:#31527#2 · os-bill · session_01Utp6Ca5UHVBDE3DqQXgJsW
Claim · #32538 · 2026-11-12T11:08Z (seat
epic:#31527#2; the unowned blocker of this seat's p1 card #31698 PR-2)Assignee
os-bill, labelspm:queue→pm:dispatched, in this same write.Claim: epic seat 2 · #32538 (delegated-admin gate refuses an organization administrator who names one of two holders)
Session:
session_01Utp6CYo8VDvZo5uZQdPzXrAccount:
os-billBranch:
claude/project-thread-jhhx6xWorktree:
objectstack-issue-32538Domain:
domain:serverSeat:
epic:#31527#2File surface:
packages/plugins/plugin-security/src/delegated-admin-gate.ts(grant leg,grantPackageOf), its existing test file, changeset. Stop on breach; explain in the report.Container & model:
M,mode:thread,model: default tier,effort: highClause-②: yes (widening) — provisional: a named holder inside the boundary is admitted where the bare-name leg refused it; step 0 measures it
Metadata-protocol: none
Responsibility: plugin-security delegated-admin gate in objectstack; the stale re-stamp reasoning left by PR #32306; reach: only after #31698 PR-2 admits a second holder (fail-closed today)
Thread-read: 6813617327
Premise: re-checked by step 0 on
mainafter #32306Serial constraints cleared: lands before #31698 PR-2 (same seat). No chain branch touches this file.
Generated by Claude Code
objectstack-fleet commentedon Nov 12, 2026
epic:#31527#2 · os-bill · session_01Utp6CYo8VDvZo5uZQdPzXr
os-dev-report
{ "issue": 32538, "status": "done", "branch": "claude/project-thread-jhhx6x", "pr": "https://github.com/objectstack-ai/objectstack/pull/32718", "head": "5c0333491", "session": "session_01Utp6CYo8VDvZo5uZQdPzXr", "premise_still_valid": true, "summary": "delegated-admin-gate.ts organizationAdminFailure, grant leg: a sys_user_permission_set row naming a package is judged on that holder alone (organizationBoundaryFailure with storedPermissionSetScope(column)); the second, bare-name leg for an insert naming a package is removed with its pre-#32164 re-stamp comment. A grant naming no package, or naming a package that holds neither (stale column reads as no package), is judged by its name as before: two holders refused, naming both. Moved answer (one): org admin, two holders, in-boundary holder named: FROM 403 (bare-name refusal) TO admitted.", "tests": "New top-level describe in delegated-admin-gate.test.ts on a two-holder stand-in registry (createSecurityCatalogReader): 6 pins x 2 admin variants. Red on main 6bbdf301 + pins: 2 failed | 10 passed (the in-boundary-named pin, both variants). Green 202/202. Ablation (fix reverted, pins kept): same 2 red; restored green.", "gates": "dispatch-gates on 5c17f8895: 66 derived, --ran 66 run, 0 NOT-MEASURED, 0 UNRUN (3 prerequisite exit-3s re-run after full non-docs build 119/119: exit 0). pnpm lint 0. plugin-security typecheck 0, suite 6491 passed | 45 skipped. Merged origin/main 5c0333491 (6 commits, none in plugin-security or core/src/security): gate file 202/202. Records in /mnt/project-files/epic-31527-seat2/card-32538/.", "dogfood_battery": "not owed: Clause-② yes (widening), no BREAKING", "line_budget": "135+/5- over 3 files", "files_changed": [ ".changeset/32538-org-admin-grant-named-holder.md", "packages/plugins/plugin-security/src/delegated-admin-gate.ts", "packages/plugins/plugin-security/src/delegated-admin-gate.test.ts" ], "shared_files_with_seat1_chain": "none (3giljf, wqgmuu, du44hj, phk4r9)", "deviations": [], "mcp_calls": "0 GitHub MCP calls", "api_writes": "relay pr_create x1 (run 43212246721, body read back identical 7029 bytes, assignees none); this os-dev-report through post-stamped; git pushes to the designated branch", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "Wording: organizationBoundaryFailure's refusal for a direct grant reads 'which the position cannot resolve' (the sentence is shared with positions). Follow-up card candidate, non-blocking.", "Scoped-delegate leg directGrantSet still computes `restamped` (bare-name holder) for an INSERT that names a package, with the same pre-#32164 comment. By reading, not measured: harmless for two package holders (bare read refused, adds nothing); where a package holder and an environment item share the name, the bare read answers the environment item, so a delegate's insert naming the package would also need the environment set allowlisted (over-refusal, fail-closed). For a non-system RE-NAME the seam still re-stamps from the name, so that leg stays correct there. Follow-up card candidate." ] }Report taken 2026-11-12T11:49Z.
Generated by Claude Code
objectstack-fleet commentedon Nov 12, 2026
domain:server#7 · os-sales · session_01L6bhgVSjQBHNkZd6Eqx2XX
Takeover · #32538 · 2026-11-12T12:41Z (four pieces in one comment,
execution-duties.md〈认领〉)① Release (cross-account): the claim 6821950336 held by
os-bill(seatepic:#31527#2) is released. Whose order: the maintainer. Verbatim: 「开 1 个专题座位负责串行主链和红线复读,再开 2 个 server 座位接卡」 (2026-11-12T12:24:11Z, the os-sales account's project chat), executing the previous holder's handover on #31527 (comments 6823237839, 6823302333), which names a new server seat on another account as the taker.② Assignee:
os-bill→os-salesin the same stroke as this comment;pm:dispatchedstays.③ Claim:
Claim: takeover · #32538
Session:
session_01L6bhgVSjQBHNkZd6Eqx2XX(seat; a card thread's session and branch follow in a claim amendment on dispatch)Account:
os-salesBranch: PR #32718 · branch
claude/project-thread-jhhx6x@5c0333491Worktree: a card thread's checkout of that branch
Domain:
domain:serverSeat:
domain:server#7File surface: carried from claim 6821950336 and its amendments, unchanged
Container & model:
M,mode:thread,model: default tier,effort: highClause-②: yes (widening) — provisional: a named holder inside the boundary is admitted where the bare-name leg refused it; step 0 measures it
Metadata-protocol: none
Responsibility: carried from claim 6821950336
Thread-read: 6822788987
Premise: holds (carried; re-read at the next dispatch step)
Serial constraints cleared: as stated in ④
④ Next: ACCEPT 6823216639, in the merge queue since 2026-11-12T12:26:01Z; after the merge this seat removes
pm:dispatched. Every landing first gets the epic seat's red-line re-read.objectstack-fleet commentedon Nov 12, 2026
domain:server#7 · os-sales · session_01L6bhgVSjQBHNkZd6Eqx2XX
Landed · #32538 · 2026-11-12T13:03Z — PR #32718 merged as
7e9f25b75869edfab3133e1cf992bc45393feb45(onorigin/main).pm:dispatchedremoved in this stroke. Follow-ups stay on #32720.