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
    bug
    priority:p2
    pm:queue
    domain:server
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

    Claim: area S5 (lease E1, E1b), #33751 §2 area-lease mode, round 4 — measure HTTP reach first
    Session: session_01QsR2jUcj2x2Wr4UErwBi12
    Account: zhuangjianguo
    Branch: claude/area-E1b-33904
    Worktree: objectstack-e1b-33904
    Domain: domain:server
    Seat: domain:server#5
    File surface: packages/metadata-protocol/src/protocol-meta-list-reads.ts (readFlattenedMetaItems), its tests (shared harness rule), one changeset; no protocol.ts (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default judgment tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack platform code (metadata-protocol merged listing) | none | a deployment with a package action and an environment package-less action of one name on two objects (HTTP reach not yet measured)
    Thread-read: none
    Premise: inbox (measured on a boot harness only; the dev measures GET /api/v1/meta/action first; no reach ⇒ regrade p3 with a pin)
    Pre-claim lane: domain:server because the seam is packages/metadata-protocol/src/protocol-meta-list-reads.ts
    Pre-claim deps: none open — no Blocked-by; related #33456 (S4, PR #33898) edits protocol.ts / protocol-artifact-lookup.ts / protocol-meta-item-reads.ts, not this file; no in-flight branch or open PR touches protocol-meta-list-reads.ts (checked every claude/area-* branch)
    Prior rulings read: the card's route is ADR-0146 D8 (one effective read: the listing and the by-name read agree), no ruling beyond it; protocol-meta-list-reads.ts has 5 ruling/⛔ hits for the dev to read; closed #21804 / #21817 (listing findings) and #32874 (review nits, different shape) per the card's dedupe; no test found pinning the opposite (the dev confirms)
    Serial constraints cleared: S5 in flight — fold #33385 (item face, exact qualifier), #33264 (registry.ts doc branch, protocol-meta-item-reads.ts bare read), #33832 (protocol-registry-hydration.ts readHealBaseline): disjoint from this file.

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    HTTP reach for this card, from area S4's real-boot measurement on #33456 (the os-dev-report there, cell 3). Showcase dev boot (objectstack dev --seed-admin, SQLite file DB), main 63e47feeca:

    • A package-less probe_approve_m was saved on showcase_invoice (200). Then the writable package com.probe.alpha was created (POST /api/v1/packages, 201), and PUT ?package=com.probe.alpha saved the same name on showcase_task (200).
    • GET /api/v1/meta/action lists ALPHA's probe_approve_m (on showcase_task) only. The environment's row on showcase_invoice is absent.
    • Yet POST /api/v1/actions/showcase_invoice/probe_approve_m and /actions/_env/showcase_invoice/probe_approve_m both judge that environment item: the refusal names its own target https://env.example.invalid/m.
    • The engine registry holds both: the objectql log shows the bare slot Registered action: probe_approve_m beside the overlay slot com.probe.alpha probe_approve_m, on save and again after a restart.
    • The reading is identical after the restart.

    So the listing hides an item the execution door serves, on a real composition, not only in the #32681 harness.

    A second reading, for the seat's maintainer batch (not a defect claim). This is cell 4 of the same report. A package-less PUT /api/v1/meta/action/probe_approve_p (on showcase_task) of a name that only the writable package com.probe.beta holds (on showcase_invoice) answered 200: Saved action probe_approve_p (env-wide, package=com.probe.beta, state=active). The save is re-addressed into BETA, and BETA's declaration moves to showcase_task. The receipt names the package, so it is not silent.

    Prior rulings read: ADR-0150 L181 ("A package-less row that bears a package-held name is a customization, never a second item … A bucket-4 item is therefore one whose (type, name) no package holds") and R15 (L311: package-less overlay rows over a package-held name are a customization of the one holder). These read the save as BETA's customization, as the door does. ADR-0150 D4 table L158/L163 keys the action engine by (package, objectName, name), so an environment action on a different object is a different key and arguably no customization of BETA's. The two texts point different ways only for actions bound to different objects. No ⛔ line covers that case, and no test pins either reading (grep of protocol-save.ts tests for a cross-object package-less action save: none found by the probe). Related, same ADR: S5's disabled-only bare-save question (#33955 / PR #33889).

  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Correction to the Prior-rulings line in my comment above ("no test pins either reading"). packages/metadata-protocol/src/protocol.packageless-save-address.test.ts pins the re-addressing for a type-agnostic item, in describe "a package-less direct save of an item ONE package owns writes that package's row" (L234: the receipt names the package, and no second row is written). That pin is generic. No case binds an action to a different object than the holder's. So the pinned reading is the bucket-4/R15 one, and the cross-object action case is the unpinned gap the maintainer question is about.

  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Folded here as a second acceptance item (seat's request, 15:43Z). The finding is area S5's, out_of_scope_findings of report 6897015058 on #33385, with dedupe words: action envelope _packageId, package-less action other object, disabled holder action withheld.

    Acceptance item 2 (read face, same seam family): a package-less registry action bound to object B must not wear _packageId of a holder (disabled or not) whose artifact of that name is bound to object A. GET /meta/action/NAME must not withhold it (404) on the strength of that stamp. ADR-0150 D4 keys the action by (package, objectName, name), so the environment's item on B is its own item.

    Premise first: re-measure on main at or after 68e726d631 (PR #33898, merged 2026-11-15T15:18Z). That PR makes readMetaItem graft an action's artifact envelope only from a package whose own artifact is bound to the served item's object (lookupArtifactItem with the owner key, in protocol-artifact-lookup.ts, plus artifactOwnerKeyOf in protocol-meta-item-reads.ts). That is very likely this shape. S5's probe read "the same answer on origin/main". Its branch had merged main at 74b5505a, and I cannot tell whether that included #33898. If the re-measure on current main shows the 404 gone, this item is satisfied by #33898 with a test pin added for the disabled-holder variant. Otherwise the fix goes at that graft.

  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

    Reading for acceptance item 2 (the action envelope _packageId beside a disabled holder), taken 2026-11-15T17:03Z.

    The pin is a nested describe [#33904] a disabled holder on another object in the #33456 block of packages/rest/src/meta-qualified-item-route.test.ts, on branch claude/area-E1b-33904. Item 2 closes with that PR.

  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12
    os-dev-report

    {
      "issue": 33904,
      "status": "done",
      "branch": "claude/area-E1b-33904",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34073",
      "head_sha": "ab5aeb0cfd",
      "session": "session_01QsR2jUcj2x2Wr4UErwBi12",
      "premise_still_valid": false,
      "summary": "Item 1 (H2): not reached over HTTP on a real showcase boot. A managed package's action name refuses the package-less PUT on another object (403 NOT_OVERRIDABLE); with a writable Studio package each save order ends with one stored item, and the list, ?names=, ?package= and the by-name reads all answer it. Per the card's rule 3 it regrades to p3, and a dogfood pin holds the HTTP agreement in both orders. H1 still stands below HTTP (the list slots actions by name and the sealed decline judges by name), so this PR is Part of #33904. Item 2: on main with #33898 the by-name read of a package-less action on contact beside a DISABLED holder on account answers 200 with no envelope (the 404 is gone). It is pinned in the REST harness and ablated, and the reading is posted on the card (item 2 closes).",
      "tests": "At ab5aeb0cfd, after the closure build under the lock (exit 0): rest meta-qualified-item-route.test.ts 325/325 passed; rest typecheck exit 0; dogfood action-list-packageless-other-object.dogfood.test.ts 2/2 passed; dogfood typecheck exit 0; eslint on both files exit 0. Item 2 ablation: protocol-artifact-lookup.ts owner-key rule bypassed via ablation-replace.mjs (x0 to x1), metadata-protocol rebuilt, dist-preflight marker present. -t '33456|33904' went 5 red of 8, the new cells reading [404,undefined,undefined,false]. Restored: blob equals HEAD 288b99c4f897, rebuilt, preflight --absent 0, 8/8 green. The dogfood pin is a positive agreement pin and was not ablated. HTTP probe readings are in the PR body.",
      "gates": "dispatch-gates --commands at ab5aeb0cfd: 54 families; 52 run locally, each exit 0; --ran: 54 derived, 52 run, 0 NOT-MEASURED, 2 UNRUN. check:dual-build-cjs-loads and check:type-check-debt are declared to CI. PR body gates offline, each exit 0: check-changeset-no-major --base origin/main, check-adr-0087-registration, check-closing-keyword-parity, check-partof-closing-keyword. PR check-runs at report time: 3 success, 21 skipped, 8 in_progress, 13 queued, 0 failure.",
      "dogfood_battery": "n/a: no ! in the title and no (narrowing) arm. Only the one new dogfood file was run (2/2).",
      "declaration_self_check": "Clause-②: no and Metadata-protocol: none, copied verbatim from the claim, and they hold: the diff is test-only, no answer moves, nothing goes from served to refused, so no !, BREAKING banner or ADR-0087 marker is owed. dispatch-gates --tier: no path-derived mandate; 114 changed lines, under 3000. Unlike #33646 (yes (narrowing)) and #33769 (yes (widening), new exports), neither arm applies. No changeset; skip-changeset is sent with pr_create and read back.",
      "line_budget": "114 changed lines (+114/-0), 2 files; no skills/**.",
      "files_changed": ["packages/qa/dogfood/test/action-list-packageless-other-object.dogfood.test.ts", "packages/rest/src/meta-qualified-item-route.test.ts"],
      "deviations": [
        "File surface: the claim names protocol-meta-list-reads.ts plus its tests plus one changeset. The route taken (H2 not reproduced) is test-only, so the seam file, a changeset and a metadata-protocol test are absent. The pins sit in rest's meta-qualified-item-route.test.ts (item 2, on the coordinator's instruction) and in one new dogfood file (the order's HTTP pin). Both are outside the literal surface.",
        "A metadata-protocol unit test and a draft listing fix (holding package-less actions on another object out of the name-keyed merges) were written and the test committed, then the test was git rm'd once H2 did not reproduce. Net zero in the diff. The fix draft is kept in the area scratchpad only.",
        "origin/main was merged twice: once for #33898 (item 2), and once right before pr_create. The touched-file tests were rerun at the final head."
      ],
      "mcp_calls": "0",
      "api_writes": "3: post-stamped comment on #33904 (item 2 reading, relay run 43738977658); relay pr_create giving #34073 (run 43743357497); this report comment on #33904. git push is not counted.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · Seam: spec:ADR-0150 D4 action key (package, objectName, name) → runtime:the save door for PUT /meta/action/NAME with no ?package= (protocol-save.ts / sys_metadata store slot) · reach: HTTP on a real showcase boot with a Studio-created package P holding qa_x on showcase_task. A package-less PUT of qa_x with objectName showcase_product answers 200, and P's own address (?package=P) then serves the product body, so P's action moved object. In the other order, P's save takes the environment's own item over (/_env/ answers P's item). · dedupe words: package-less action save another object, holder row rebound object, action save door owner key",
        "class: b · Seam: spec:ADR-0150 D4 → runtime:isSealedManagedItem/isArtifactBacked (protocol-write-gates.ts), declinesStoredRow/isStoredEntryOfDeclinedName (protocol-lock-state.ts) judge an action by name. · reach: HTTP PUT of a package-less action on showcase_product named like a managed package's showcase_task action answers 403 NOT_OVERRIDABLE (a different (object, name) item refused as a sealed overlay). The listing seam this card names inherits the same by-name decline. · dedupe words: sealed managed action other object NOT_OVERRIDABLE, isArtifactBacked by name action",
        "carrier: #33904 at p3 · the merged list slots an action by name (mergePackageAwareOverlay), so a package-less row stored on another object is left out of the list while the bare by-name read serves it. Not reached by any HTTP save today. NOT MEASURED: an environment row authored before a managed package shipping the name on another object is installed."
      ],
      "loose_ends": [
        "Card #33904 regrades to p3 (the seat's label write); item 2 closes with PR #34073.",
        "Should the save-door finding above be confirmed, the listing fix draft (OwnKeyedPackagelessActions in protocol-meta-list-reads.ts) depends on how the save door keys a package-less action. Decide that one first."
      ]
    }
  9. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG

    Regrade (2026-11-15T17:55Z): p2 → p3, by the card's own route. PR #34073 (test-only, Part of) closes item 2, and H2 is not reachable over HTTP. The listing half that remains waits on the #34059 ruling.

  10. 3 remaining items

  11. added
    pm:blocked
    and removed
    pm:dispatched
    on Nov 15, 2026
  12. 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.

  13. 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.

  14. 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.

  15. added
    pm:queue
    and removed
    pm:blocked
    on Nov 17, 2026
  16. 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.

  17. 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