Skip to content

metadata-protocol: a bare save of a name held by an enabled and a disabled package writes an unbound row or edits the disabled package's row (epic ruling 6781691009; ADR-0150 D3/D4/D5) #32605

Closed

Description

@objectstack-fleet

domain:server#3 · os-bill · session_01Utp6CaAUev5V62cLHhQwBi

Filing category: ① product defect with a named location, reproduced (step 0 of #32354, measured on claude/project-thread-phk4r9 @ 6655b742, the PR #32497 head; note /mnt/project-files/server-seat3-p2/card-32354/step0.md). Split from #32354 by the seat: the epic ruling 6781691009 owes the save door to "this card, or #32183's follow-up if the seat prefers", and the seat keeps #32354 to its read-side limb (one card per PR, ≤1500 lines).
Part of #31527 (ADR-0150) · Refs #32354 · Refs #32183

维护者速读

  • 改什么:一个名字同时被启用包 E 和停用包 D 持有时,不带包名的保存要写成 E 的行,不能写成无归属行,也不能改 D 的行。
  • 为什么:读同一地址答的是 E,写却落到别处:要么写出一个以后会遮住两个包的"环境自有"行,要么悄悄改了停用包的行、下次读还看不到改动。
  • 风险:第一方 0 处(要求两个包持有同名项且其一停用);一处 409 变成写入(放宽,已声明)。
  • 先看:packages/metadata-protocol 的保存门如何解析不带包名的地址,对照 objectql + metadata-protocol + runtime: by-name doors judge a name's holders over the served list, so a disabled package neither refuses nor is named (ADR-0150 D3; #32101 F4 class) #32183 读侧的服务集判定。
  • 验证:E 持有 d1、D 持有 d1 且 D 停用,PUT /meta/:type/d1 不带包名,应写 E 的行,D 的行字节不变。
  • 需要你做的:无,归专题席派发。

What happens (measured)

stored rows before the bare save today expected (epic ruling 6781691009)
none writes a package-unbound row (null) writes a row bound to E
D's row only updates D's row; the next read shows E's code, not the edit writes E's row; D's row byte-unchanged
rows of both 409 naming both updates E's row; D's untouched (widening)
D re-enabled read 409 naming both, save 409 naming both unchanged (CONTROL)

Do

The save door judges a slotted or package-scoped name over the served set, the same holder set the read at that address uses (D3/D5 symmetry). Pins for the three states plus the re-enable CONTROL, both transports. FROM → TO lines as the ruling lists them: D's row silently updated → E's row (narrowing); unbound row → E-bound row; 409 → E's row (widening).

Serial: after #32183 (PR #32497) and #32354 (the row-aware served-holder helper this door should reuse).
Blocked-by: #32354
Reader who acts: the server seat the epic seat routes it to. Epic red-line read before landing.
Grade: p2 (first-party reach 0).

Activity

  1. added
    bug
    priority:p2
    pm:blocked
    area:devpath
    domain:server
    on Nov 12, 2026
  2. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-sales · session_01L6bhgVSjQBHNkZd6Eqx2XX

    Parked · #32605 · 2026-11-12T13:33Z — on the maintainer's release-line ruling 6824949405 on #31527 (Sales tapped 「三招都用(推荐)」 on the epic seat's card 「专题怎么提速?」, 2026-11-12T13:28:14Z): every p2 card of epic #31527 without an open PR, and every nested follow-up card, waits until the release ships.

    • State: pm:blocked → pm:on-hold in this stroke. Nothing is deleted.
    • Its Blocked-by: line stays as it was; both must clear before dispatch.

    Restart-when: the release that carries the epic #31527 release line is published (ruling 6824949405 on #31527)

  3. added
    pm:on-hold
    and removed
    pm:blocked
    on Nov 12, 2026
  4. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#1 · os-sales · session_01L6bhgXQnNkXTT1Wu7i7Y3i

    Un-parked · #32605 · 2026-11-12T21:34Z. The maintainer (Sales) lifted the park of unstarted p2 epic cards (ruling record 6836538545 on #31527, amending 6824949405). pm:on-hold → pm:queue; the epic seat dispatches it (see that record for the seat).


    Generated by Claude Code

  5. added
    pm:queue
    and removed
    pm:on-hold
    on Nov 12, 2026
  6. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit (pre-labeled card) · p2 confirmed · state → pm:blocked · 2026-11-13T08:31Z

    ⛔ Not a claim; the claim (if any) is unchanged.


    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unblocked · pm:blocked → pm:queue · +lease:E1 · 2026-11-14T22:48Z

    ⛔ Not a claim.

    Its Blocked-by: #32354 closed at 2026-11-14T22:08Z. Grade p2 unchanged. Re-measure on main before building, because #32354 may have changed the answer. Area E1 (metadata reads).

  9. added
    pm:queue
    and removed
    pm:blocked
    on Nov 14, 2026
  10. 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 1
    Session: session_01QsR2jUcj2x2Wr4UErwBi12
    Account: zhuangjianguo
    Branch: claude/area-E1b-32605
    Worktree: objectstack-e1b-32605
    Domain: domain:server
    Seat: domain:server#5
    File surface: packages/metadata-protocol/src/protocol-save.ts and the save-door helpers it calls (protocol-write-package-scope.ts, protocol-save-door-refusals.ts), their tests, 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 save door) | none | an editor saving bare a name held by an enabled and a disabled package (writes an unbound row or edits the disabled package's row)
    Thread-read: 6885436295
    Premise: holds (triage 6885436295: re-measure on main first, #32354 may have changed the answer; premise_still_valid: false is a valid result)
    Serial constraints cleared: protocol-save.ts was held by server#6 PR #33621, now closed; no other in-flight claim on it in E1/S4/S5. Fold #33385+#33401 (item face / qualifier) disjoint. protocol.ts (S4), registry-question.ts, seed-loader.ts (server#6) not touched.

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

    @objectstack-fleet
    ContributorAuthor

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

    {
     "issue": 32605,
     "status": "done",
     "branch": "claude/area-E1b-32605",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/33889",
     "head": "bdb3a20a71e4277478e771af35b0a368eac7bc67",
     "session": "session_01QsR2jUcj2x2Wr4UErwBi12",
     "premise_still_valid": true,
     "summary": "Re-measured on main 1e65a389 (after #32354 landed): H1 holds and H2 holds. With E and D both shipping a dashboard and D disabled, a bare PUT over no row wrote a package-unbound row; over D's row alone it updated D's row while the read served E's code; over a row of each it refused 409 naming D. The cause is that the save door resolves its address with packagelessAddress over every stored row binding, a disabled package's included. The fix adds a module helper servedPackagelessSaveAddress in protocol-save.ts. It asks the reads' own servedAddressJudgment (an import only). A served holder becomes the address; the read's refusal becomes the save's 409, naming only the served holders. One gap that judgment leaves is closed too: a disabled package bound only by a stored row beside an enabled shipper. There the address is judged over the enabled bindings, then the package-unbound row the read serves, then the one enabled shipper. Nothing changes when no disabled package holds the name, nor for a name only a disabled package holds.",
     "ruling_quotes": [
      "6781691009: \"a write resolves its address exactly as the read at the same address resolves it (D3/D5 symmetry)\"",
      "6781691009: \"A bare save of that name is therefore E's write. It is E's customization (D4: a package-less save under a name one package holds is that holder's), it is bound to E, and it never touches D's row.\"",
      "6781691009: \"No stored row: write a row bound to E. Never write a package-unbound row\" / \"A row bound only to D: write or update E's row, and leave D's row byte-unchanged.\" / \"Rows bound to both: update E's row and leave D's untouched. This moves a 409 to a write. The move is a widening, and it is declared.\""
     ],
     "measured_cells_main_1e65a389": "dispatcher, both registration orders, D disabled. Both ship: no row gives save 200 and a NULL-bound row; D row only gives save 200, D's row updated, next read E code; both rows give 409 naming E and D. Re-enabled: read 409. Rows-only of read-only code packages: D only gives 422 WRITABLE_PACKAGE_REQUIRED naming D; both give 409 naming both. After the fix, both ship: E-bound row written (no NULL row), D's row unchanged, 409 becomes 200 updating E.",
     "tests": "Pins: a new top-level describe('[#32605] ...') in the shared harness packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts (approved file-surface extension). It boots a real kernel with SQLite sys_metadata and drives a bare PUT on HttpDispatcher and RestServer, in both registration orders: 12 cases x 4 = 48, of which 10 are negative pins and 2 are CONTROLs. Harness file on the merged code (344789c8): Test Files 1 passed, Tests 84 passed. @objectstack/metadata-protocol on the merged head: Test Files 341 passed / 9 skipped, Tests 22894 passed, typecheck exit 0. Pre-merge (49ebb6d2): runtime Test Files 603 passed / Tests 10954 passed; rest Test Files 412 passed / Tests 8442 passed; runtime typecheck plus check:test-typecheck OK. Ablations used ablation-replace.mjs WRAP; each leg rebuilt metadata-protocol, showed the marker present in dist (index.cjs, index.js), restored to the HEAD blob with git diff HEAD empty, rebuilt, and passed preflight --absent with exit 0. A (helper off, main's behaviour): Failed Tests 40; all 10 negative cases red on 4 boots, CONTROLs green; e.g. expected [ 'null' ] to deeply equal [ 'com.qa.save_alpha' ]. B (row-only gap off): 12 failed. C (the judgment refusal names every binding): 4 failed, not to contain 'com.qa.save_authored_beta'. D (the gap's two-holder refusal names every binding): 4 failed. E (unbound arm off): 4 failed, expected [ 'com.qa.save_alpha', ...(2) ] to deeply equal [ 'com.qa.save_authored_beta', 'null' ].",
     "gates": "Local: dispatch-gates --commands derived 69 families at f7acc1d8. 68 were run, each with its exit code captured before any pipe. All exit 0 except: check-plugin-teardown-shape --self-test exit 3 (prerequisite: shallow clone), rerun after fetching 621a4876 with exit 0; check:query-options-erasure first exit 124 (timeout) then exit 1 (test surface 236 to 237, from my as-any row read), fixed with satisfies EngineQueryOptions, rerun exit 0. check:dts-closure exit 0; check:type-check-debt exit 0 (VERDICT command-exit 0). Not run locally: check:dual-build-cjs-loads (left to CI). --ran: 69 derived, 68 run, 1 UNRUN (that one). On the merged head 344789c8 the ratchet subset was rerun, all exit 0: query-options-erasure, durability-log-level, test-source-alias, cross-package-test-inputs, undeclared-dep-imports, nul-bytes, doc-authoring, issue-citations, changeset-no-major, empty-changeset, system-context-census, engine-double-contract. pnpm lint exit 0. eslint --no-inline-config on the two touched sources exit 0. PR body gates exit 0: check-changeset-no-major, check-adr-0087-registration, check-closing-keyword-parity, check-partof-closing-keyword. CI at head bdb3a20a: 51 check-runs, 35 success and 16 skipped, 0 failing. Required contexts green: Lint & Repo Gates, TypeScript Type Check, Test Core (1-8/8 and the aggregate), Build Core, Governed Surface Queue Guard, Test UI, Live E2E UI, Dogfood Regression Gate, Check Changeset. mergeable_state clean.",
     "declaration_self_check": "dispatch-gates --tier at 344789c8: no path-derived mandate, 380 changed lines (under 3000). Measured contract moves: the bare-save 409 with a row of each becomes a write (a widening of what the save door accepts). There is no accepted-to-refused and no served-to-refused move: the D-row case was 200 and stays 200 at another row; the three-holder case was 409 and stays 409 with D dropped. So Clause-② is yes (widening). No ! in the title, no BREAKING banner, no ADR-0087 marker, no dogfood battery owed. Metadata-protocol: none, because no authorable key, value or type moves; the changeset level stays patch and check-changeset-no-major is green on both body variants. Precedents: #33646 declared yes (narrowing) because its bare flow doors also moved served-to-refused for a disabled holder's callers; #33769 declared yes (widening), Metadata-protocol none. The claim says Clause-② no, so the line differs (see deviations).",
     "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm. CI's Dogfood Regression Gate passed at bdb3a20a.",
     "line_budget": "380 changed lines (+376 / -4): protocol-save.ts +73/-4, harness test +279, changeset +24 (git diff --stat origin/main...HEAD before the merge)",
     "files_changed": [
      ".changeset/32605-bare-save-served-holder.md",
      "packages/metadata-protocol/src/protocol-save.ts",
      "packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts"
     ],
     "deviations": [
      "File surface extended, approved by area S5: the transport pins live as a new top-level describe in packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts (ruling record 6583487846), because metadata-protocol cannot boot a real registry. protocol-meta-item-face.ts and protocol-environment-rows.ts are imported only, not edited; protocol.ts is untouched.",
      "Declaration: the claim's Clause-② no is wrong by measurement; it is yes (widening). Per common-S5 rule 14 the changeset carries Clause-② yes (widening) (commit bdb3a20a). The PR body was written at pr_create before rule 14 arrived and still reads Clause-② no. os-dev never PATCHes a PR body, so the corrected body is staged for the seat, with the seat's signature line, at /mnt/project-files/server-seat-5/area-S5/pr-33889-body-v2.md. It passes check-changeset-no-major. The only change is that line.",
      "check:dual-build-cjs-loads not run locally (left to CI, per project memory); it is the one UNRUN family in --ran.",
      "The PR body's first line is the claude-projects-attribution HTML comment that common-S5 rule 9 orders. It is the only HTML comment, and the relay read-back was byte-identical (6762 sent, 6762 stored)."
     ],
     "mcp_calls": "0",
     "api_writes": "2: relay pr_create (repository_dispatch to fleet-write, run 43719578127, creating PR #33889) and this os-dev-report comment via post-stamped on #32605. git push is not a REST write.",
     "open_questions": [
      {
       "question": "A name only a disabled package D holds (its stored row alone, no enabled holder): the bare read answers 404, but the bare save still resolves to D and, when D is writable, silently updates D's row (200). Ruling 6781691009 does not cover this state. It is pinned unchanged as a CONTROL.",
       "options": [
        "A: refuse the bare save with the ?package= remedy and name no package (the read says the name is missing). Costs a 409/404 where a 200 was, so it is a narrowing; about 10 lines plus pins; needs a ruling.",
        "B: write a package-unbound row (follows the read's missing name). This plants an environment-own item that shadows D on re-enable, which the ruling forbids beside an enabled holder.",
        "C: keep today's behaviour (edit D's row). The edit is invisible until D is enabled again."
       ],
       "recommendation": "A, because it keeps D3/D5 symmetry (the read says no holder serves the name) without planting a shadowing row. It is a narrowing, owes a ruling and the four-axis analysis, and goes to the epic seat."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: a · reach: PUT /meta/dashboard/NAME with no package, measured on the dispatcher at 49ebb6d2 and on main 1e65a389. Two ENABLED packages ship a dashboard. The bare read answers 409 naming both, but the bare save answers 200: on main with no row it writes a package-unbound row; when only one package's row is stored it updates that row. The save door judges stored-row bindings only (packagelessAddress), while the read counts registry holders. This card reaches the state after D is re-enabled when only E's row exists; the ruling's re-enabled 409 pin holds only where both rows exist. · Seam: runtime:packages/metadata-protocol/src/protocol-save.ts saveMetaItemUnaudited packageless address vs runtime:protocol-meta-item-face.ts readMetaItemFace · dedupe words: bare save two shippers 409 read 200 save, packagelessAddress registry holders, unbound row two packages ship",
      "carrier: none · noted, not filed: the bare DELETE (protocol-diff-delete-load.ts, packagelessAddress) and the draft-mode bare save (packagelessDraftAddress) were not measured with a disabled holder. Read-only inference, kept to the PR's acceptance notes."
     ],
     "loose_ends": [
      "The seat applies the corrected PR body (Clause-② yes (widening)) from /mnt/project-files/server-seat-5/area-S5/pr-33889-body-v2.md."
     ]
    }```
  13. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

    Claim: area S5 (lease E1, E1b) — amendment of claim 6893515896 (same session, same branch); only the contract declaration changes, measured by the dev (report 6896224874)
    Session: session_01QsR2jUcj2x2Wr4UErwBi12
    Account: zhuangjianguo
    Branch: claude/area-E1b-32605
    Clause-②: yes
    Metadata-protocol: none
    Thread-read: 6896224874
    Clause-② arm: widening — a bare save that answered 409 when the enabled holder E and the disabled holder D each held a stored row now writes E's row (ruling 6781691009: "This moves a 409 to a write. The move is a widening, and it is declared."). No accepted→refused move. PR #33889 body and changeset carry Clause-②: yes (widening); contract review owed (review-c).

  14. added a commit that references this issue on Nov 16, 2026
    9404cb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:devpathbugdomain:serverpm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions