Skip to content

metadata-protocol: a package-less save of an action name one writable package holds on another object is written into that package and moves its declaration (ADR-0150 L181/R15 vs the D4 action key) #34059

Closed

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

Filing gate ③, a decision the maintainer must make: two governing texts conflict for exactly this case. Area S4 (E1) files it so the ruling has a home. The seat has put the decision in front of the maintainer and recommends 「算环境自己的新动作」, with an independent review in /mnt/project-files/server-seat-5/fable-review-batch-1115b.md. No dev is dispatched before the ruling.

维护者速读

Measured (reach: HTTP)

Real showcase dev boot (objectstack dev --seed-admin, SQLite file DB), main 63e47feeca; os-dev-report on #33456 (comment 6896608715), cell 4:

  1. POST /api/v1/packages com.probe.beta → 201; PUT /api/v1/meta/action/probe_approve_p?package=com.probe.beta bound to showcase_invoice → 200.
  2. Package-less PUT /api/v1/meta/action/probe_approve_p bound to showcase_task → 200 Saved action probe_approve_p (env-wide, package=com.probe.beta, state=active) [seq=4]; history shows create seq 3, update seq 4 on BETA's row.
  3. BETA's item now sits on showcase_task with the environment's target. POST /api/v1/actions/showcase_invoice/probe_approve_p → 404 "has no declaration"; /actions/_env/showcase_task/probe_approve_p → 404. No package-less row exists.

Managed (code) packages are not affected: a package-less save of their name answers 403 NOT_OVERRIDABLE (cell 1 of the same report).

Options (as put to the maintainer)

  • A — keep today's behaviour: the save is P's customization whatever object it binds. Nothing to build. One unqualified save moves P's action to another object, unasked (the receipt names P), while read, listing and execution already treat an environment action on another object as the environment's own item.
  • B — key the save door by D4's action key: a package-less save on an object P does not bind writes a package-less row, the environment's own item on B, and P's item on A is untouched. Needs an ADR-0150 amendment note for object-bound actions (Tier H, maintainer's merge) and a declared Clause-② arm with the dogfood battery. Follow-on: (action, approve) then has two items, so a bare /meta/action/approve serves the environment's item first (D3), and moving P's own action to another object needs ?package=P.
  • C — refuse 409 naming P, asking for ?package=P or another name. Nothing guessed, but it blocks an environment action the read side serves.

Landing point (for B)

packages/metadata-protocol/src/protocol-save.ts (the package-less save address, packagelessAddress, for type action keyed with objectName), its draft twin, and the pin protocol.packageless-save-address.test.ts L234 (re-address pinned for a type-agnostic item; no cross-object action case). ADR-0150 amendment note: domain:skills, Tier H.

Prior rulings read: ADR-0150 L181 and R15 (L311), which read as A; ADR-0150 D4 table L158/L163, which reads as B; PR #33898 (merged), which reads actions by owner key; the listing card #33904. No ⛔ line covers actions on different objects.

Dedupe search

is:issue "package-less" action "another object" save (30 hits), action save re-addressed package objectName (5), packageless save action object holder (22): the only on-surface hits are #33904 (listing, read side), #33456 (closed: route and envelope, where this was measured) and #33385 (the _env qualifier for disabled holders). None covers the save door.

Activity

  1. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Claim amendment 2 2026-11-16T03:15Z (claim 6903890604, amendment 6905981763), answering contract review 6906251635 (FAIL at 0e5faaaa). The fix round already under way (M1, the draft twin) is widened as follows.

  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34059,
      "status": "done",
      "branch": "claude/area-E1-34059",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34238",
      "session": "session_01QsR2jTkZnXtRhuEiiyidvJ",
      "premise_still_valid": true,
      "summary": "Fix round on PR #34238 (review 6906251635 FAIL; claim amendments 6905981763 and 6906279837), new head 6f89ebf980. M1: one owner-key rule actionHeldOnlyOnOtherObjects in sys-metadata-repository.ts, read by the publish-mode save, the draft save (resolveWriteHead via put and headAt, so the receipt and parent agree) and the per-item publish (promoteDraftForPublish sets promoteInto null); the save's draft gates judge the package-unbound draft too. S3: the served step judges an action's holders at the body's object only (packagelessActionKeyedAddress plus the atObject arm of servedPackagelessSaveAddress); enabled P on A beside disabled Q on B with the body on B now writes Q's row, as the generic rule answers a name only a disabled package holds. That is the D4 arithmetic and no other answer moved: two enabled holders, one at the body's object, stay 409. S2: sole disabled holder and sole uninstalled binding are declared and pinned. M2/N2: the ADR-0150 D4 amendment note and R15 pointer, one clause in SaveMetaItemRequest.packageId .describe, protocol.mdx regenerated. M3/S1/N1: the changeset states what does not move yet (bare read, list, package-less delete; /actions/_env/B/NAME; #33904), and the dogfood file pins today's bare read and delete answers as FROM. The new PR body (Fixes #34059 and Fixes #34263, Tier H line saying contract review owed) is a file for the seat to write; dev does not PATCH PR bodies.",
      "tests": "At 499f9b47be: metadata-protocol test Test Files 344 passed | 9 skipped, Tests 22962 passed | 45 skipped, exit 0; rest test Test Files 413 passed, Tests 8479 passed | 332 skipped, exit 0; metadata-protocol typecheck exit 0; dogfood typecheck exit 0. Facet file: 84/84 tests, and the D4 describe has 16 (11 negative, 5 CONTROL). Dogfood pin file 4/4 on rebuilt dist; preflight marker packagelessActionKeyedAddress present. Ablations, source-resolved unit file, each via ablation-replace.mjs, restored blob == HEAD and git diff HEAD empty: D-draft 2 red (draft save, publish); P-publish 1 red (publish); S3-atobject 1 red (Received package=com.qa.lanebapp, the FROM); E-envown 7 red (every publish-mode negative, including the disabled-holder FROM into P and the uninstalled FROM 422); H-head 1 red (draft receipt package=P); G-gates 1 red (draft beside uninstalled binding 422). eslint --no-inline-config over the 6 touched sources: exit 0.",
      "gates": "dispatch-gates --commands at 499f9b47be/6f89ebf980: 120 derived; --ran: 117 exit 0, 3 NOT MEASURED (exit 3 PREREQUISITE NOT MET): check:skill-examples (client-react unbuilt), check:dual-build-cjs-loads (a dist missing while the battery closure build ran), check:type-check-debt (its locked closure build queue-timed out behind the battery). check:generated --fix: 1 of 14 stale (content/docs/references/**), regenerated, re-checked green. check:nul-bytes OK. CI check-runs on 6f89ebf980, read once: 58 success, 10 skipped, 0 failed. Includes Lint & Repo Gates (all Lint lanes), TypeScript Type Check (workspace, source, consumer, debt ledger), Build Core, Test Core 8/8, Test UI, Type Check UI, Live E2E UI, Build & E2E UI, Dogfood Regression Gate, Check Changeset, PR-body guards, Governed Surface Queue Guard, Spec property liveness, Build Docs, Check PR Size.",
      "dogfood_battery": "6f89ebf980 · os-verify-lock VERDICT command-exit 0 (held 48m49s, shared box) · Test Files 471 passed | 3 skipped (474) · Tests 3989 passed | 42 skipped (4031) · no failures",
      "mcp_calls": "0",
      "api_writes": "1: this os-dev-report comment via post-stamped.mjs (POST issues/34059/comments). git push x3 (not REST). Reads via gh api: comments 6906279837, 6906251635; pulls/34238; check-runs on 6f89ebf980.",
      "merge_tree": "git merge-tree --write-tree --name-only HEAD origin/claude/area-E1-33308 (624b7ff393), run at 2d3729948c, 435f18fb48 and 6f89ebf980: exit 0 each time, with no conflicted path. From 435f18fb48 on, the merge driver flags content/docs/references/api/protocol.mdx as generated, so whichever lands second regenerates it (gen:schema, then gen:docs). Open PRs on protocol-history-and-publish.ts were not enumerated (no board scan); that file is a declared deviation.",
      "pr_body_file": "/tmp/claude-0/-home-claude/d4fbf9ca-463b-59b4-b3c8-2e2af5ff0bb1/scratchpad/issue-34059/pr-body-v2.md",
      "deviations": [
        "protocol-history-and-publish.ts touched (per-item publish of the env draft). It is outside the named surface: packagelessDraftAddress's wrapper is in out-of-bounds protocol.ts, so this is the minimal place.",
        "The PR body is not PATCHed by dev (os-dev forbids it). The new body is at pr_body_file for the seat (seat-post-protocol). The live body still says Fixes #34059 only, with the old 需要你做的 line.",
        "The dogfood battery was run at the final head per os-dev (narrowing arm), beyond the fix-round's listed runs.",
        "The changeset adds '@objectstack/spec': patch for the .describe clause, which ships in dist and json-schema."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #33904 · the env row has no bare by-name read, is absent from GET /meta/action, and a package-less DELETE removes the holder's row (measured: 'Deleted action NAME (package=P), and it still exists: its package-less row remains', then ?package=P answers 409 RESOURCE_CONFLICT held by the environment); pinned as FROM in the dogfood file",
        "carrier: none · edge noted, not filed: with P's own draft and the env's unbound draft both stored, a package-less per-item publish promotes P's draft first (packagelessDraftAddress returns P's key; its wrapper is in protocol.ts)"
      ]
    }

    Generated by Claude Code

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Claim amendment 3 2026-11-16T04:48Z (claim 6903890604; amendments 6905981763, 6906279837), from the fix-round report 6907583265.
    File surface: adds packages/metadata-protocol/src/protocol-history-and-publish.ts (promoteDraftForPublish: the per-item publish of the environment's unbound draft is promoted package-less). This is the minimal place, because the wrapper of packagelessDraftAddress lives in protocol.ts, which is out of bounds. It also adds '@objectstack/spec': patch to the changeset, for the .describe clause.
    Declaration unchanged: Clause-②: yes (narrowing), Metadata-protocol: semantic. Next: merge main after #34147 (the generated reference pages), then the PR body is written by the area, then the delta review from review#2 and L1 from review-b. After that it goes to the seat for the Tier H hand-off.

  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Request: review · PR #34238 · area S4 (E1) · Fixes #34059 #34263 · head 0ed4158 (green: 58 success, 10 expected skip, none failed; declared final)

  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Claim amendment 4 2026-11-16T06:13Z, answering contract delta 6908892602 (FAIL at 0ed4158e; L1 PASS 6908735670 on the same head). One more fix round. Area dispositions:

    • M1: one rule at three doors. The per-item publish and the draft discard that name no package read actionHeldOnlyOnOtherObjects above their two-holder refusal, as the draft save does. Pins: the draft save, its publish and its discard for two holders on two other objects; the row declared in the changeset. Surface: packages/metadata-protocol/src/protocol.ts is lifted for this edit only, because the packagelessDraftAddress wrapper lives there. No other S4 PR holds the file; merge-tree runs against every open PR touching it before the push.
    • S1: orphan-draft adoption skips an unbound action draft bound to another object than the body's. This is the ruled defect (the environment's pending draft moved into P). Pinned.
    • S2: stated in the changeset's not-moved paragraph and in the SaveMetaItemRequest.packageId .describe: the version the bare read serves is the holder's until metadata-protocol: the merged action listing leaves out the environment package-less row on another object while the by-name read serves it #33904, so a save carrying it is refused as a version conflict. Pinned as a marked FROM.
    • S3: pinned and declared as it answers (enabled P on A, enabled Q and disabled R on B). The both-enabled refusal stays as it is (the area's earlier disposition).
    • N1: pinned. N2: one changeset line.
      Declaration unchanged: Clause-②: yes (narrowing), Metadata-protocol: semantic.
  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

    Hand-off · PR #34238 · area S4 (E1) clocks out on the maintainer's 09:01Z order

  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft

    Release: session session_01QsR2jTkZnXtRhuEiiyidvJ (claim 6903890604, account zhuangjianguo, seat domain:server#5) · reason: cross-account takeover; the old seat signed off (brief #28677 comment 6912561028) · provenance: who = Leehom (maintainer); words = 「接手 前任。#28677 (comment) 的未完成任务」; where = this account's Claude Code project, seat thread 「运行 objectstack 仓库车道席位」 (repo:objectstack#1) · hand-over record: comment 6912074765 (branch claude/area-E1-34059, last pushed sha db96228e6c2b60ebec819bee3f208ce9a0996a5b, round 2 for L2 FAIL 6908892602 done in code, CI fixes not re-measured)

    Claim: repo:objectstack#1 area o1-D (lease o1-D), takeover of domain:server#5's in-flight PR #34238 on the maintainer's order above
    Session: session_01FEkQ5obaLbqgzRUR9xXfft
    Account: os-project-manager
    Branch: claude/area-E1-34059
    Worktree: objectstack-e1-34059
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: unchanged from claim 6903890604 and its amendments (packages/metadata-protocol/src/protocol-save.ts and its save-address helpers, protocol.packageless-save-address.test.ts, the REST/dogfood pin, one changeset); the ADR-0150 amendment note rides this PR as recorded on the PR (Tier H)
    Container & model: M, mode:subagent, model: default judgment tier, effort: high
    Clause-②: yes (narrowing)
    Metadata-protocol: semantic
    Responsibility: objectstack platform code (metadata-protocol save door) | the read side and the execution route already treat an environment action on another object as the environment's own item (#33898) | an environment admin saving an action whose name a writable package uses on another object
    Thread-read: 6912074765
    Premise: holds (carried from claim 6903890604; ruling 6902014292 unchanged; no newer comment)
    Serial constraints cleared: PR #34324 (same area) also edits protocol-save.ts; git merge-tree against it runs before either is armed, and the second to land takes the union. PR #34359 shares the promoteDraftForPublish Pick line (named in its body).
    Pre-claim lane: repo:objectstack#1 area o1-D; the fix lives in packages/metadata-protocol/src/protocol-save.ts (domain:server file ownership), listed under o1-D in seat post #34366's lease table.
    Pre-claim deps: ruled 6902014292 (option B); triage p2 6902720845; no Blocked-by:; hot file protocol-save.ts shared only with PR #34324 in this same area.
    Prior rulings read: 6902014292 (option B, BREAKING, ADR-0150 amendment), ADR-0150 D4 table and R15, ruling 6781691009 on #31527 (D3/D5 symmetry), as cited in claim 6903890604; re-read at takeover, no newer ruling on the card.
    Resume-from: claude/area-E1-34059@db96228e6c2b60ebec819bee3f208ce9a0996a5b

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft
    os-dev-report

    Wind-down at 2026-11-17T00:18Z on the maintainer's order; partial round, pushed as WIP. Head 2396f22385313a8a89251771061567b68d7109a5 on claude/area-E1-34059 (no force, no rebase).

    {
      "issue": 34059,
      "status": "rework",
      "branch": "claude/area-E1-34059",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34238",
      "head": "2396f22385313a8a89251771061567b68d7109a5",
      "session": "session_01FEkQ5obaLbqgzRUR9xXfft",
      "premise_still_valid": true,
      "summary": "Done in code, NOTHING RUN: (1) merge of origin/main 0e2ead3c1 committed as 92b521367 through os-regen-merge.sh (rerun exit 0, no generated path to reconcile; protocol.mdx kept the branch bytes). protocol-save.ts conflicted only where both sides appended helpers: both kept (packagelessActionKeyedAddress and packagelessHolderRefusal, both import sets). No genuine conflict cell by code read: packagelessHolderRefusal returns undefined for action because the registry does not read action by package (PACKAGE_SCOPED_READ_TYPES has no action), as #34324's changeset itself declares. (2) Fix commit 2396f2238 for record 6915565420: M2 the SaveMetaItemRequest.packageId clause rewritten to the code's rule; S2 unit pin of getMetaItem version into parentVersion (before and after the environment's row) and the dogfood version leg dropped; S4 refusal: an environment-own action save or draft save over the one package-unbound row or draft that binds an object a holder binds is refused 409 RESOURCE_CONFLICT (environmentActionSlotRefusal in protocol-save.ts), while the environment's own row or draft on another object is rewritten (declared, pinned); S5 declared in the changeset and pinned (publish and discard act on P's own draft); N3 docblocks; one sentence added to the ADR-0150 note. Changeset updated for S2, S4, S5. Suspected undeclared move, unverified: enabled P on task beside disabled Q on invoice, package-less save on task appears to answer 409 naming both on this branch where main wrote P's row (the atObject served arm declines, then the full-address 409 fires); a PROBE test pins the main answer and may be red; candidate fix is to fall back to servedPackagelessSaveAddress over the full address when the at-object judgment declines.",
      "tests": "NOT MEASURED: the closure build never got the verify lock (a sibling's dogfood battery held it 30+ min; three attempts exit 99), so no unit test, typecheck, #34324 pin or ablation ran on 92b521367 or 2396f2238. The new pins (S2, S4 x4, S5 x3, PROBE) are unrun and may need assertion fixes (receipt text, version codes).",
      "gates": "NOT MEASURED: dispatch-gates --commands, check:generated (protocol.mdx not regenerated after the .describe edit, so check:docs will likely be red), check-governed-merges, CI read.",
      "dogfood_battery": "2396f22385313a8a89251771061567b68d7109a5 · NOT MEASURED, reason: wind-down before any build; owed at the final head (title carries !).",
      "mcp_calls": "0",
      "api_writes": "1 — this comment (post-stamped.mjs, POST issues/34059/comments)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Owed to seat 2: build the closure (pnpm --filter '@objectstack/dogfood^...' build), run protocol.packageless-save-address.test.ts and fix or confirm the PROBE cell, run #34324's pins (meta-disabled-holder-served-stack.test.ts, disabled-holder-packageless-row-doors.test.ts), check:generated --fix for protocol.mdx, metadata-protocol test and typecheck, ablations of the S4 guard, dispatch-gates, the dogfood battery, check-governed-merges, and the replacement PR body (not staged).

  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4

    Release: claim 6913024600 (the takeover claim of seat repo:objectstack#1, session session_01FEkQ5obaLbqgzRUR9xXfft, area o1-D, account os-project-manager) · 2026-11-17T02:53Z
    Provenance: whose order — seat repo:objectstack#1 (os-project-manager) is out of tokens and stops, by the maintainer's word of 2026-11-17T02:41Z 「1号座位 pm leehom 没有token了,你看看他还有哪些 issue 和 pr 你全部接手」; words — "o2-I 改作「席 1 遗留 · 服务端」区 … 每张卡由 o2-I 写一笔接管" (seat repo:objectstack#2's order of 2026-11-17T02:45Z); where — this account's Claude Code project channel (the maintainer's words, relayed by the coordinator to the seat), and the seat's takeover order to area o2-I. Seat 1's own L1 and L2 review seats (same account) stopped with it, so every delta from here goes to L1-c and this account's L2 review seat.

    Claim: takeover · #34059 · area o2-I (seat 1 legacy · server) · 2026-11-17T02:53Z
    Session: session_01ADHkmRPxhTmqbUbMrqygh4 (area o2-I holds the claim); the code is finished by a card thread of this seat that reports to area o2-I
    Account: os-steve
    Branch: claude/area-E1-34059 (PR #34238), continued as it is, no new PR
    Worktree: the card thread's own
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: unchanged from 6913024600 and PR #34238 as it stands
    Clause-②: yes (narrowing)
    Metadata-protocol: semantic
    Pre-claim lane: domain:server; the seat repo:objectstack#2 is a full-repo seat.
    Pre-claim deps: no open Blocked-by:; PR #34347 also touches metadata-protocol, so a merge-tree is run at claim and before each push. On merge #34263 closes too, per the hand-over.
    Prior rulings read: check-prior-rulings.mjs --card 34059 → card thread 0 rulings of 14 comments; ADR-0150 by title term.
    Lease: lease:o2-I (replaces lease:o1-D).

    Hand-over record: claude/area-E1-34059 @ 2396f22385313a8a89251771061567b68d7109a5 (PR #34238, draft; hand-over state 6933582027, which names a suspected new 409 defect). The branch tip matches the PR head at this reading.

  10. removed
    pm:dispatched
    on Nov 17, 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

    domain:serverpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions