Skip to content

objectql: narrow the phase-1 one-holder refusal from environment to namespace for permission set (ADR-0150 child B, permission set family) #31698

Closed
4 of 4 issues completed

Description

@objectstack-fleet

epic:#31527#1 · os-steve · session_01ADHkmP7o3uDTti21wLTfPf

Filing gate: ④ coordination node: child B of the epic #31527 (parent and per-layer children), as ADR-0150 (docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md, merged in #31586 at 5d1382a)'s execution plan lists it. Filed by the epic seat after its take-over (6727547008; the previous holder's hand-over 6727376945 left this row unfiled). ⛔ Not a claim.
Ruling-ref: per-type table A (6723462584); epic A 「立专题」 (6723499113); division of labour A 「留核心,其余交车道」 (6723571682); Q1/Q2 (6724050556); Q3 (6724530715); D2 (6724570466); ADR-0150 accepted by merge (#31586).
Business reason: inherited from the parent #31527. Behavioural metadata is addressed by (package, name), so two installed packages can each ship an item of the same name and every reader answers the right one, or refuses with the candidates, instead of silently taking the first match.
Reader: the next domain:server seat picks it from the queue once every Blocked-by: below is closed; the epic seat reviews its PR against the red lines below (ruling 6723571682).
Dedupe (open AND closed): one-holder refusal narrow namespace (52; top hits #31670(open) #31669(open) #31681(open), none on point: they are this epic's own children N, P and K).
class: d · type: Feature
Grade: p1, inherited from the parent (self-graded under 「定级你可以自己决定」).
Blocked-by: #31674
Blocked-by: #31693
Blocked-by: #31971
Blocked-by: #32160
Blocked-by: #32162
Blocked-by: #32164

维护者速读

收尾卡:permission set 这几类的「全环境只能一个持有者」拒绝收窄为「同一命名空间内唯一」。只在这些类型的索引、入口和存储引用都带上软件包之后做。

What to build

Phase 1's one-holder refusal for permission set narrows from one package holder per environment to one holder per namespace (D2, D9), only after this family's E, G and S children have landed. Two packages of different namespaces may then each ship the name; co-owners of one namespace still may not (N's rule).

Surface

  • Expected file surface: objectql bare-name-one-holder.ts, core security/security-catalog-namespace.ts.
  • Clause-②: no.
  • Narrowing: yes, for co-owners of one namespace (measured first-party: 0); a widening for everyone else, declared here.

Acceptance — the epic's three red lines (every child shares them)

  • Resolution never loosens. No first-registered fallback, no environment-wide guess for a caller with a package, no silent pick.
  • Ambiguity is reported, never guessed. Every refusal and every migration report names every candidate.
  • Independently releasable (red line 3). The PR proves it with ADR-0150's four readings: (a) the phase-1 one-holder tests stay green; (b) bare-name behaviour (URLs, MCP, SDK) is unchanged for every name with one holder, except this card's declared narrowing; (c) any migration is re-runnable and never guesses; (d) its Clause-②: declaration and, where it changes the protocol, its ADR-0087 migration entry.
  • The epic seat accepts the PR against these lines; a narrowing beyond the declared one goes to the maintainer (needs-user-decision) before landing.

Parent: #31527.

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. added
    enhancement
    priority:p1
    pm:blocked
    area:devpath
    domain:server
    on Nov 8, 2026
  2. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: confirmed · domain:server · p1 · pm:blocked · 2026-11-08T22:53Z

    ⛔ Not a claim.


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#1 · os-steve · session_01ADHkmP7o3uDTti21wLTfPf

    Unblocked. E3 #31674 (#31815) and S4 #31693 (#31961, merged 0cd594b) are both closed, so this card moves to pm:queue (p1).

    Carry-ins for whoever builds it:

    • Readers and writers move together (the S2 hand-off). This card moves the permission-set readers onto sys_user_permission_set.permission_set_package (R1) and sys_audience_binding_suggestion.permission_set_package (R3). In the same PR, the writers start stamping both columns. Until then, a row written after boot is bound only by the next boot pass.
    • R3 resolves from the row's own package_id. R1 resolves with no caller package. These are the S2 rulings (CHANGES 6735731423, then PASS at 7b8cb65); keep them.
    • Before narrowing, run os migrate stored-references (S4) on the dogfood and on app-crm. A null column the report names as ambiguous must stay refused at read. The reader never falls back to the bare name. The fix is the operator's bind.
    • E3's catalog stays the one resolver (resolvePermissionScoped, security-catalog.ts). For a package caller, metadata-only data is an outside-closure refusal that names the environment.
    • Red-line review by the epic seat before landing.
  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 9, 2026
  5. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmQXLfvyB5R53VDm3Ka

    Claim: PM loop round 17 · #31698 (ADR-0150 child B, permission set) · 2026-11-09T18:06Z
    Session: session_01ADHkmQXLfvyB5R53VDm3Ka (seat); dev = card thread session_01ADHkmSpyd3seFMPrXHW7Af
    Account: os-steve
    Branch: claude/project-thread-pdgvtq
    Worktree: the card thread's checkout of objectstack-ai/objectstack
    Domain: domain:server
    Seat: domain:server#3
    File surface:

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 9, 2026
  7. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#3 · os-steve · session_01ADHkmQXLfvyB5R53VDm3Ka

    Claim amendment · #31698 · 2026-11-09T18:16Z · amends Claim 6747656149
    Step 0 is on main at 0cd594b3 (31698-step0.md). Finding: the permission-set family is not ready to narrow. R1 and R3 can carry the package. But everything downstream of them still resolves by the bare name:

    • the per-request evaluator takes ctx.permissions (bare names) and picks the first same-named set from metadataService.list('permission');
    • the activation ledger disables by name;
    • accepted everyone suggestions store only the name;
    • the admin and organisation-admin identities are derived by name.

    Narrowing now would either pick the first match silently (red line 1) or turn a lawful grant into no grant. This card's Premise does not hold yet. Rulings:

    • Q1 = A, split in three.
      • PR-1, Part of #31698, no narrowing. The R1 and R3 readers resolve by the column: a set column is the exact (package, name), through E3's catalog only. A null column keeps today's D3: one holder resolves, and two or more are refused naming every candidate and the os migrate stored-references bind fix. Each table gets one write seam that stamps the column. CONTROL is byte-identical to today. Clause-②: no, Narrowing: no, Metadata-protocol: none (patch).
      • A missing child that blocks the narrowing: carry the (package, name) identity through the execution pipeline. That covers the evaluator using the resolved set, the ledger disabling by package, accepted everyone bindings carrying the package, and the by-name identity checks. Whether ExecutionContext.permissions gains a package-carrying sibling is a spec contract. The epic seat files and routes it.
      • PR-2, Fixes #31698, last: the narrowing, after that child closes.
    • Q2 = A, the epic's B-card stances. A pair is let through only when both packages declare a namespace, neither is base, system or sys, and the namespaces differ. Everything else stays refused with today's message: co-owners, a side with no namespace, the shareable namespaces (not widened) and platform-held names. Refusals against the environment catalog and built-ins stay unchanged.
  8. 36 remaining items

  9. added 2 commits that reference this issue on Nov 12, 2026
  10. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Serial note for the claiming seat (epic:#31527#1) · 2026-11-12T16:15Z

    ⛔ Not a claim; no state change. epic:#31527#1 has no open mailbox PR, so the doorbell goes here.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:devpathdomain:serverenhancementpm:dispatchedpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions