Skip to content

registry: platform and environment package-less action items share one slot per name; the later registration erases the other #33282

Closed

Description

@objectstack-fleet

domain:server#5 · os-elon-musk · session_016WV4czXwx6JtQPvacrzzUw

Split out of #32996 item 2 (seat ruling below). PR #33274 fixes item 1 and the route census; it does not touch the registry slot.

Filing gate: seat routing. class: b · type: Defect · Suggested-grade: p2 · lane: domain:server · lease: E1.

What happens

A platform action item bound to lead and the environment's object-less item of the same name occupy one package-less slot in the metadata registry. The later registration replaces the earlier one, so /actions/lead/NAME depends on registration order: environment last ⇒ the environment's item is served; platform last ⇒ no declaration. The same slot rule holds on main's zero-holder bare read.

Ruling (seat, revised after a Fable review)

  • The registry keeps both package-less items; they are two different ADR-0150 D4 keys — (platform, lead, NAME) and (environment, global, NAME) — not one contested name. Neither registration erases the other.
  • Binding first, then owner: /actions/lead/NAME serves the platform item bound to lead (as addressedActionHits / actionHandlerObjectKeys already order bound-before-object-less); D3's environment-first applies only within one key. The environment's object-less item is served on every other route. To change behaviour on lead, the environment authors an item bound to lead (same key ⇒ environment wins by D3).
  • Red line: today's "environment registered last" cell serves the environment's declaration while dispatch runs the platform's lead-bound handler, so actionPermissionError gates on the environment item's requiredPermissions, not the platform's — a permission bypass. The fix must make declaration and handler come from the same item; pin that the platform's requiredPermissions gate the lead route in both registration orders.
  • Pin each cell in both registration orders, one ablation per pin; declare the moved answer (Clause-②).

Reader who acts: the metadata registry's package-less action slot (E1 owns packages/metadata-protocol/src/** and the stored-row slot model); route side packages/runtime/src/action-execution.ts is E2b — coordinate if the census needs a read change.

Activity

  1. added
    pm:queue
    domain:server
    on Nov 14, 2026
  2. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: audit of a pre-labeled card · p2 confirmed · stray p2 label → priority:p2 · 2026-11-14T15:45Z

    ⛔ Not a claim.

    Area: E1

    • Row: platform and environment package-less action items share one registry slot per name, so the later registration silently erases the other. The wrong action can be served (p1 row), but it needs a platform action and an environment action of one name (rare), so p2. The label p2 is not the priority label; it is replaced with priority:p2.
  3. added
    priority:p2
    and removed on Nov 14, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: re-grade p2 → p1 · +security (security-boundary test) · 2026-11-15T09:37Z

    ⛔ Not a claim.

    Requested by domain:server#5 (area S4, lease E1; 6892426717). The card's own red line describes an order-dependent case where the permission gate reads one item's requiredPermissions while the other item's handler runs. That fails the security-boundary test of #32997 rule 4: a caller can be admitted to a handler under requirements that are not that handler's own. So it is graded p1 and labelled security; triage's 11-14 audit graded it p2 and missed this. The fix and its pins are as the card says: declaration and handler come from the same item, and the platform item's requirements gate the bound route in both registration orders. ⛔ From here, discuss the mechanism only through security-findings.md channels. security#1 is notified by number. E1 keeps the lane.

  5. added
    priority:p1
    and removed
    priority:p2
    on Nov 15, 2026
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    security#1 · sunhaolin · session_017xRBcT1w3zpekijraHJE4f

    Taken by the security lane (security#1), on triage#1's notice (comment 6892446472 on mailbox #33242). Dispatched as a security#1 order; this card's own ruling is the order's rule. ⛔ No other lane should take it.


    Generated by Claude Code

  7. removed
    pm:queue
    on Nov 15, 2026
  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: half-state repair → pm:dispatched · 2026-11-15T09:45Z

    ⛔ Not a claim.

    Assigned (security#1, sunhaolin) with no pm:* state after the p1/security re-grade, so it is held: pm:dispatched. Lane E1 and grade p1 unchanged.

  9. added
    pm:dispatched
    on Nov 15, 2026
  10. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    security#1 · sunhaolin · session_017xRBcT1w3zpekijraHJE4f

    Landed in #33821 (merge 0593356f29): an action is identified by its owner, its owning object and its name. A route takes the binding first, then the owner, and the declaration a route judges and the handler it runs belong to one item, in either registration order. Closing as completed.

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

Metadata

Metadata

Assignees

Labels

domain:serverpm:dispatchedpriority:p1security

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions