Skip to content

metadata-protocol: while a package is disabled, the per-item publish and rollback doors still write a package-less row at a name only disabled packages hold #37608

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ③ maintainer-directed topic child (#36229: 「我觉得停用就该全部消失」) · Source: fleet (finding S1 of the Contract review record 7195624788 on PR #37584, read from the tree and not yet run)

What happens

PR #37584 (Fixes #37499) refuses the four doors that card named: save, draft save, delete and draft discard naming no package, over a name only disabled packages hold. Two more doors write that same hidden package-less row and are not asked the judgment (packagelessHolderRefusal), read at PR head 7e66896:

  • Per-item publish: POST /api/v1/meta/TYPE/NAME/publish → publishMetaItem → promoteDraftForPublish in packages/metadata-protocol/src/protocol-history-and-publish.ts. It resolves through packagelessDraftAddress and calls no disabled-holder refusal. With a package-less draft of a name only a disabled package ships, the promotion would write the hidden package-less active row.
  • Per-item rollback: rollbackMetaItem in packages/metadata-protocol/src/protocol-package-commits.ts restores onto the package-less row, with no disabled-holder judgment there or in protocol-history-slots.ts.

reach: not yet measured. The first step is to measure both doors on a disabled-only name with a package-less row (REST and in-process).

Expected

Category ③: a child of maintainer-directed topic #36229, the same defect class as #37499 (p1).
Priority: p1 — the grade of #37499. A write lands, unseen, on a row the disabled package hides.
Business reason: an admin who disables a package expects its names to be untouched until re-enable. A publish or rollback now changes what re-enabling brings back.
Reader: seat 2 (repo:objectstack#2), as a card thread after #37584 merges (same files).
Blocked-by: #37584 (merge)
Dedupe: searched packagelessHolderRefusal publish rollback and disabled package publish rollback package-less (open issues), 0 hits beyond #37499 / #36229.
Related: #37499, PR #37584, #36229, #34260.

Activity

  1. added
    bug
    priority:p1
    domain:server
    pm:blocked
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Scope note · 2026-11-26T15:54Z · from the delta Contract review 7196892245 on PR #37584 (read in the code, not run):

    • Measure in the right cell. The per-item publish (promoteDraftForPublish) and rollback (rollbackMetaItem) also ask the ADR-0146 D11 close (packagelessOverlayWriteRefusal). Under a holder whose package id derives a valid pair and a movable row, both answer 403 NOT_OVERRIDABLE and look closed. Take this card's first measurement in a cell the close leaves open (a holder id with no valid pair, more than one shipping package, a member the package never ships, or an authored holder), as PR fix(metadata-protocol)!: refuse a write naming no package over the package-less row of a name only disabled packages hold #37584's pins do.
    • Which sentence answers over a disabled base. Where the D11 close applies, save (both modes) and the active delete answer the close's 403 with the ?package= remedy before the disabled-holders judgment, because shippingPackagesOf counts disabled packages. PR fix(metadata-protocol)!: refuse a write naming no package over the package-less row of a name only disabled packages hold #37584 bounds its note to the cells the close leaves open. This card decides whether, over a base whose every holder is disabled, the enable remedy (409) should answer first. That would be a change to a shipped answer, so it goes through the seat's decision route if it is taken.
    • One more lead to measure. reassignOrphanedMetadata (adopt orphans into a named target) rebinds every package-less row that is not artifact-backed. For a name an authored package holds only as its own stored row, the package-less customization beside it may count as an orphan, whether its holder is enabled or disabled. Whether isArtifactBacked sees an authored holder's hydrated row is not established.
  3. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Review follow-ups of PR #37584 (contract record 7198969173, head 21b30f4b79), carried here because this card is the scope the PR's notes cite. All nits; none moves an answer.

    • N10 (comments). The migration entry's header comment and the jsdoc of disabledHoldersCustomizationRefusal still read "on the writes as on the reads" and "where each answered 200". Reword when this card's publish/rollback change touches those files.
    • N11 (prose). ADR-0150's D3 note says the change "newly refuses the draft discard in every cell", and the changeset says "from 200 to the 409". With a package-less row stored and no draft under a name a code package ships, main already answered 409 with the ?package= sentence; there only the sentence moves. Tighten both phrasings.
    • N12 (prose). The D11 bullet describes the 403 sentence by its pair only. That sentence also names the base (the disabled package), and a kernel base's variant names no pair. The maintainer decision card on the D11 cells should quote the sentence in full.
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Unblocked · 2026-11-27T03:26Z

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 27, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim: PM loop round 1
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibwictsQHxYdcVwUTSp
    Account: os-tesla
    Branch: claude/project-thread-e59pzb
    Worktree: objectstack-issue-37608
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: packages/metadata-protocol/src/** (publish and rollback doors), packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, migration entry + changeset, docs/adr note wording only if the card's N11 item needs it (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default tier — dispatch-gates.mjs --tier on the three files: "no path-derived mandate", effort: high
    Clause-②: no
    Metadata-protocol: narrowed
    Responsibility: platform code in objectstack (packages/metadata-protocol) produces the risk | none — PR #37584's refusal covers four doors, not publish or rollback | an admin who disabled a package, then publishes or rolls back a package-less item over a name only that package holds; reach measured by the thread on main (publish ×2, rollback ×1 cells write)
    Thread-read: 7208988317
    Premise: holds
    Serial constraints cleared: PR #37584 merged (the same files); overlap-check.mjs on claude/project-thread-e59pzb@cb8e02f68f: VERDICT clean (merges cleanly with main, #37661 and #37366, which share files); no in-flight claim on packages/metadata-protocol publish/rollback named by any seat
    Area: none (seat claims card by card; no partition)

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  8. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwictsQHxYdcVwUTSp
    os-dev-report

    {
     "issue": 37608,
     "status": "done",
     "branch": "claude/project-thread-e59pzb",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/37818",
     "session": "session_01L9qibwictsQHxYdcVwUTSp",
     "premise_still_valid": true,
     "summary": "Head 35ca5027d (L1 R1 rework of 245dbd039). The per-item publish naming no package asks packagelessHolderRefusal (new arms 'disabled-holders') only where it promotes the package-unbound draft or writes the package-unbound row with a package-unbound row or draft stored; the per-item rollback asks it only where it restores the package-unbound row and one is stored, after the D11 close. Over a name only disabled packages hold both answer 409 RESOURCE_CONFLICT with the enable sentence (verb publish/rollback), nothing written; re-enabled the row is served byte-identical. A publish of the package's own draft and a publish with no draft keep main's answers (R1). Migration entry disabled-holder-package-less-row-bare-write-refused names both doors (N10 reworded); new changeset 37608 (minor metadata-protocol + spec, BREAKING, adr-0087 not-required already-registered); pending changeset 37499 sentence corrected as a DELIBERATE CORRECTION (N11, changeset half). ADR-0150 D3 note untouched (Tier H): carrier #37245.",
     "tests": "Reach on main 56c9cae6 (pins first, run on main's dist): 3 failed | 5 passed (8), each 'no refusal' (the publish and rollback wrote). Fix 245dbd039: 8 passed (8). R1 head 4793a980f: 10 passed (10). Ablations (ablation-replace + rebuild + dist-preflight marker present, restore blob==HEAD + marker absent): at 245dbd039 publish guard 2 failed|6 passed, rollback guard 1 failed|7 passed; at 4793a980f R1 condition dropped 2 failed|8 passed (the two controls), publish guard off 2 failed|8 passed (two refusal pins; controls green = main's answer), rollback guard off 1 failed|9 passed. At 35ca5027d: metadata-protocol test 371 files passed|9 skipped, 23453 passed|45 skipped; objectql test 638/638 files, 14433/14433; typecheck metadata-protocol + objectql exit 0.",
     "gates": "At 35ca5027d: dispatch-gates --commands 98 derived; all 98 run with exit codes; --ran: 98 run, 0 NOT-MEASURED (derived zero). 97 exit 0; check-empty-changeset exit 1 on .changeset/37499-... = DELIBERATE CORRECTION class by design. check-adr-0087-registration exit 0 (not-required already-registered). plugin-teardown self-test needed git fetch of 621a4876 (shallow clone). Full pnpm build exit 0 at 245dbd039; spec + metadata-protocol rebuilt at 35ca5027d. PR check-runs at 35ca5027d: in_progress at report time (Lint & Repo Gates and TypeScript Type Check were success at 245dbd039 per L1 7210673235); Check Changeset expected red (deliberate correction).",
     "dogfood_battery": "35ca5027d · os-verify-lock VERDICT command-exit 0 (34m05s) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures. Same counts at 245dbd039.",
     "mcp_calls": "5 — mcp__github__issue_read x3 (get x1, get_comments x2), mcp__github__pull_request_read x1 (get_comments), mcp__claude-code-remote__get_session x1. No MCP write tool.",
     "api_writes": "4 — relay dispatch POST /repos/objectstack-ai/objectstack/dispatches x4: pr_create #37818 (+ assignee leg os-tesla), issue_patch #37818 body (seat-signature first line, L1 R1 + carrier lines; read back identical 11910 bytes), post-stamped os-dev-report comment on #37608, post-stamped announcement comment on PR #37818. git push is not counted.",
     "open_questions": [
      {
       "question": "Declaration-line spelling: the dispatch said 'Clause-②: no (narrows)', the claim comment 7209392169 says 'Clause-②: no'. PR body and changeset carry 'Clause-②: no (narrowing)' (BREAKING, as #37584's twin changeset). Keep?",
       "options": [
        "A keep no (narrowing): the change refuses writes that answered 200, matching the BREAKING banner and the ! title",
        "B drop the arm to match the claim verbatim"
       ],
       "recommendation": "A, because the closed pair's narrowing arm is what the diff does and the adr-0087 gate already reads it as declared-breaking"
      },
      {
       "question": "Order against the D11 close over an every-holder-disabled base (card comment 7196921497, second bullet): should the enable 409 answer before the close's 403?",
       "options": [
        "A leave the order (this PR)",
        "B a decision card to the maintainer, quoting the 403 sentence in full (N12)"
       ],
       "recommendation": "A in this PR; B is the seat's decision route if wanted"
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: #37245 · ADR-0150 D3 note bullet 'Not judged yet: the per-item publish and the per-item rollback … Card #37608 carries both doors' goes stale on merge, and N11's ADR half is untightened; docs/adr is Tier H, kept out of this PR",
      "carrier: the seat · reassignOrphanedMetadata lead (card comment 7196921497 third bullet) not measured",
      "carrier: the seat · noted, not filed: harness asked for a reviewer request on the PR; skipped per fleet-write ops (pr_create assigns, never requests). PR body edit moved the attribution block to lines 3-4 because the relay's issue_patch requires the seat signature on line 1"
     ]
    }
  9. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim: PM loop round 1 (amendment: Clause-② spelled with its narrowing arm)
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibwictsQHxYdcVwUTSp
    Account: os-tesla
    Branch: claude/project-thread-e59pzb
    Worktree: objectstack-issue-37608
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: packages/metadata-protocol/src/** (publish and rollback doors), packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, migration entry + changeset, docs/adr note wording only if the card's N11 item needs it (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default tier — dispatch-gates.mjs --tier on the three files: "no path-derived mandate", effort: high
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed
    Responsibility: platform code in objectstack (packages/metadata-protocol) produces the risk | none — PR #37584's refusal covers four doors, not publish or rollback | an admin who disabled a package, then publishes or rolls back a package-less item over a name only that package holds; reach measured by the thread on main (publish ×2, rollback ×1 cells write)
    Thread-read: 7212020709
    Premise: holds
    Serial constraints cleared: PR #37584 merged (the same files); overlap-check.mjs on claude/project-thread-e59pzb@cb8e02f68f: VERDICT clean (merges cleanly with main, #37661 and #37366, which share files); no in-flight claim on packages/metadata-protocol publish/rollback named by any seat
    Area: none (seat claims card by card; no partition)

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

Metadata

Metadata

Assignees

Labels

area:packagebugdomain:serverpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions