Skip to content

metadata-protocol: the merged action listing leaves out the environment package-less row on another object while the by-name read serves it #33904

Closed as not planned

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG

Found by S4's dev in the #32681 boot harness while working PR #33898 (Part of #33456). Not fixed there: out of its surface.

维护者速读

  • 问题:同名动作分别挂在两个对象上(包里的在 account 上,环境自建的在 contact 上)时,动作列表里漏掉环境自建的那一条,按名字读却能读到。列表和单读不一致。
  • 目前只在测试启动里看到,HTTP 接口能不能遇到还没测。
  • 本卡先测 HTTP 能否触发:能就修,不能就降为 p3 并补测试钉子。

Measured (boot harness, not HTTP)

protocol.getMetaItems({ type: 'action' }) leaves the environment's package-less row out of the merged listing when a package's action of the same name sits on another object (ALPHA on account, the package-less row on contact). The by-name read serves that row. Seam: packages/metadata-protocol/src/protocol-meta-list-reads.ts, readFlattenedMetaItems.

Wanted

  1. Measure the reach at GET /api/v1/meta/action on a real boot.
  2. If it reproduces, the listing and the by-name read agree (ADR-0146 D8). Pin it with an ablation.
  3. If it does not, regrade to p3 with a pin.

Reader

domain:server area S5 (E1b; a non-protocol.ts file). Related: #33456 (the action route beside a package-less row), #21804 and #21817 (closed listing findings).

Dedupe

Searched readFlattenedMetaItems: #32874 (review nits, a different shape), #33456 (route, not listing), and closed #21804 and #21817.


Generated by Claude Code

Activity

  1. added and removed
    priority:p2
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

    Release: #33904 → pm:blocked. PR #34073 merged (Part of): item 2 is closed, and the HTTP agreement is pinned in both save orders. The listing half that remains (the name-keyed merge in mergePackageAwareOverlay and the name-keyed sealed decline) has no HTTP reach today. How it should key a package-less action on another object depends on the save-door ruling on #34059.

    Blocked-by: #34059

  3. added
    pm:blocked
    and removed
    pm:dispatched
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    HTTP reach measured for the read half 2026-11-16T02:55Z

    From the #34059 dev report (comment 6905929323 on #34059, open question 1 and out-of-scope finding 1), real showcase dev boot (SQLite), main 571cf9082a plus PR #34238:

    • Writable P holds action probe_approve_p on showcase_invoice. The environment's own package-less row of that name sits on showcase_task, which PR fix(metadata-protocol)!: a package-less action save on an object no package binds the name to writes the environment's own action #34238's save writes and which the other save order (environment first, then ?package=P) already stores on main.
    • GET /api/v1/meta/action/probe_approve_p (bare) and GET /api/v1/meta/action both serve P's item. ?package=_env answers 409 naming P and the environment. The environment's item runs at /actions/_env/showcase_task/probe_approve_p but has no by-name read.
    • The dev places the seam at packagelessContentPackage (it takes the stored rows' one binding), in protocol-meta-item-reads / protocol-environment-rows. This is beside the listing merge this card already names.

    The listing half's "no HTTP reach today" no longer holds once #34238 merges: the state is then one package-less save away, and on main it is reachable now through the environment-first order. The ruling on #34059 (option B) binds that save, read and execution agree at D4's action key. This card is the read half of that ruling. When it unblocks (Blocked-by: #34059), triage should regrade it from p3.

  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Widened to the delete door 2026-11-16T03:16Z

    Contract review 6906251635 on PR #34238 (S1) found this by reading the code: a package-less DELETE of an action name takes the one package binding as its address, whatever unbound row is stored beside it (protocol-diff-delete-load.ts, the delete address). So with P's row on A and the environment's own row on B, a package-less delete removes P's row and leaves the environment's. It is reachable on main through the environment-first save order, and on #34238's main path once that merges.

    It belongs with the read and list halves already here: D4's action key (package, objectName, name) is not applied at that door. This card now covers the by-name read, the list and the delete. #34238 pins today's answers for the read and the delete as marked FROM, so the fix here turns them.

  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    director#1 · hotlong · session_81aac243bf2949148a8fe137664177822

    2026-11-17T13:10Z Blocker closed. #34059 (a package-less save of an action name that one writable package holds on another object) closed as completed at 2026-11-17T11:05Z. That was the last edge named on this card.

    pm:blocked → pm:queue. Grade stays p3; under the p1-only rule it waits until p3 claims reopen. Whoever claims it should re-read the read, list and delete answers on main first, since #34238's FROM pins describe today's behaviour and #34059's fix may have moved one of them.

  7. added
    pm:queue
    and removed
    pm:blocked
    on Nov 17, 2026
  8. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruled: fold · maintainer 2026-11-20T05:1xZ, verbatim: 「只考虑合并没人认领的,没开始开发的,你负责处理」

    2026-11-20T05:22Z · Folded into #34452. This card's ask — "metadata-protocol: the merged action listing leaves out the environment package-less row on another object while the by-name read serves it" — is now a row on #34452, which carries its shared-mechanism group so one claimant fixes them in one PR. The body here stays the detail that row points to. Closed only as a separate card, not as work.

  9. removed
    pm:queue
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagebugdomain:serverpriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions