You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
metadata-protocol: a bare publish of a disabled package's own draft, and a bare rollback with history but no package-less row, still land on a name only disabled packages hold #37851
Filing gate: ① carrier of a should-fix left open by design · Source: fleet (contract-review-tier L2 record 7212193932 on PR #37818, S1; L1-a delta 7212229066)
What happens (by code read at PR #37818 head 35ca502)
PR #37818 (Fixes #37608) makes the per-item publish and rollback refuse the package-less writes the ruled cell names. Two neighbouring cells stay open, because closing them moves a shipped answer beyond that cell:
Bare publish of PKG's own draft while PKG is disabled and is the only holder of the name: the promotion writes PKG's own active row.
Bare rollback with history but no package-less row on a name only disabled packages hold: the restore lands.
In both cells the bare save of the same item refuses 409 RESOURCE_CONFLICT. So the three doors answer differently for the same disabled-only name.
reach: not yet measured beyond the code read; step one is to run both cells on the served stack (the fixture PR #37818 adds).
Decision owed
Whether these two cells refuse like the save (and the maintainer topic #36229 「我觉得停用就该全部消失」 extends to them), or stay open by design. Changing a shipped answer beyond the ruled cell is the maintainer's call: this card goes to the decision inbox with options after the measurement.
Category ①: two doors disagree with the save door on the same item.
Priority: p1 — same class and grade as #37608. Suggested-grade: p1 · sibling cells of #37608.
Business reason: an admin who disables a package expects its items to stay untouched until re-enable; a publish or rollback that still lands changes what re-enabling brings back, while the save refuses.
Reader: seat repo:objectstack#3 (area:package p1), after PR #37818 merges: measure, then the decision thread.
Blocked-by: #37818 (merge)
Dedupe: searched disabled package publish rollback package-less (open and closed issues, 47 hits): #37608 (this card's parent), #37499 (closed, the save-door sibling), #34260 (open, ADR-0150 / docs statement only); no card carries these two cells.
Related: #37608, PR #37818, #37499, PR #37584, #36229.
Measured · 2026-11-27T10:57Z · origin/main 0a3ea67 (has #37818). The stack is real RestServer routes over the real ObjectQL engine and protocol, with an in-memory driver. The fixture is #37818's (com.acme.mail, email_templateacme.welcome; fr-FR is a member the package does not ship). Caller isSystem. The readings were taken by a seat card thread; the files are in the project share (card-37851/readings-0a3ea67c.md, probe-37851.test.ts).
Cell (a): PKG's own draft, PKG disabled, sole holder. Bare PUT and bare PUT ?mode=draft answer 409 RESOURCE_CONFLICT with the ?package= sentence and write nothing. Bare POST /publish?member=fr-FR answers 200 and promotes the draft into PKG's active row. GET answers 404 while disabled; after re-enable it serves the published draft.
Cell (b): history but no package-less row. Bare PUT answers 409. Bare POST /rollback {toVersion:1} answers 200 and inserts a new package-less active row; the bare save's 409 then switches to the enable sentence. After re-enable, the deleted customization is served again. The control with PKG enabled answers the same 200.
While PKG is disabled, GET /history?member=fr-FR answers 200 with 3 entries.
An isolated review read the code behind both cells:
(a) is protocol-history-and-publish.ts:910: the disabled judgment is asked only when key === null || into === null.
(b) is protocol-package-commits.ts:2310-2312 (it requires active.unbound) and :2333 (it restores with packageId: null).
The ruling is with the maintainer now. The options are refuse both cells, refuse (b) only, or leave both open. The seat records it here as Ruling: when it comes. The card's "reach: not yet measured" line is superseded by this comment.
Ruling: #37851 · letter A · maintainer 「两处都拒绝」 2026-11-27T10:57Z
The maintainer (os-tesla) answered a decision card the seat put to him in the seat thread for repo:objectstack#3, after the measurement above and an isolated review. The question, as the card read: 「#37851:包停用后,不指明包的发布和回滚还能写进去,要拒绝吗?」. The options were:
A 「两处都拒绝」: the bare publish of PKG's own draft answers the ?package= sentence, and the bare rollback with no package-less row answers the enable sentence. The third cell (a bare rollback of PKG's own row) is measured first and refused too if it lands. One small PR, shipping with 19.
B 「只拒绝无行回滚」.
C 「都保持现状」.
He chose A.
What this settles for the implementing dev and L1/L2:
Cell (a): the bare POST /publish of a name only disabled packages hold is refused. It answers the bare save's ?package= sentence (disabledHoldersOnlyRefusal) and writes nothing. Today it lands at protocol-history-and-publish.ts:910 (the judgment is asked only when key === null || into === null).
Cell (b): the bare POST /rollback on such a name with history but no package-less row is refused. It answers the enable sentence (disabledHoldersCustomizationRefusal) and writes nothing. Today it lands at protocol-package-commits.ts:2310-2333.
Cell (c): a bare rollback of PKG's own package-bound row while PKG is disabled. Measure it first; if it lands, refuse it in the same PR.
Pins: flip the control pin at disabled-holder-packageless-row-doors.test.ts:320. Pin each refused cell plus a re-enable control.
Changeset: minor, BREAKING sentence scoped to the listed cells, declaring Clause-②: no (narrowing) and Metadata-protocol: narrowed. Add the matching sentences to migration entry 19.
Claim: PM loop round 1
Session: session_01L9qibyUSf2nKJWW6qBemSU
Thread session: session_01L9qibz3J6vDGdnFpMq3hkm
Account: os-tesla
Branch: claude/project-thread-4tk44f
Worktree: objectstack-issue-37851
Domain: server
Seat: repo:objectstack#3
File surface: packages/metadata-protocol/src/protocol-history-and-publish.ts, packages/metadata-protocol/src/protocol-package-commits.ts, packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-write-refused.ts, a new .changeset/*.md; NOT docs/adr/** (stop on breach; explain in the report)
Container & model: M, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Responsibility: refuse the bare per-item publish (cell a, the ?package= sentence) and the bare rollback with no package-less row (cell b, the enable sentence) on a name only disabled packages hold; measure cell c (bare rollback of PKG own row while disabled) and refuse it too if it lands; named writes unchanged
Thread-read: 7216539589
Premise: ruling comment on this card (maintainer 「两处都拒绝」 2026-11-27T10:57Z); measurement comment on this card at origin/main 0a3ea67; isolated review /mnt/project-files/objectstack-seat3/37851-fable-review.md
Serial constraints cleared: overlap-check.mjs runs on the thread's first push (branch not yet pushed); no in-flight claim on these files named by any seat
Dogfood battery owed on the final head (narrowing). L2 at the contract-review tier. Lands by the maintainer (narrowing hand-off).
{
"issue": 37851,
"status": "done",
"branch": "claude/project-thread-4tk44f",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37948",
"session": "session_01L9qibz3J6vDGdnFpMq3hkm",
"premise_still_valid": true,
"summary": "Head 04807110 on origin/main 73d5e347, ruling A (7216539589). Cell (c) measured first: on main the bare rollback of PKG's own row while PKG is disabled answered success and restored the row, so it is refused in the same PR. Publish (promoteDraftForPublish): a draft address at the package's own draft (key and into PKG) now asks packagelessHolderRefusal('disabled-holders') with unbound false -> disabledHoldersOnlyRefusal ('Name the package this publish is for', 409 RESOURCE_CONFLICT), beside a package-less row or not; the :320 control flipped. Rollback (rollbackMetaItemUnaudited): the active.unbound precondition dropped; every bare rollback asks the judgment with candidates = active bindings + the restore's binding, unbound = (rollbackPackageId === null): the package-less restore (stored or not, cell b) answers the enable sentence, the package's own row (cell c) the ?package= sentence. Named writes unchanged; any enabled holder -> undefined. Migration entry 19 surface/replacement/reason/acceptanceCriteria reworded (the L2 S1 reason sentence replaced). New changeset 37851 (minor metadata-protocol + spec, BREAKING scoped to the 3 cells, adr-0087 not-required already-registered). DELIBERATE CORRECTION of pending .changeset/37608 'Not moved' sentence (quoted in the PR body); Check Changeset red on that file alone by design.",
"tests": "New pins in disabled-holder-packageless-row-doors.test.ts (same describe): publish own draft it.each x2 (refusal + named-publish control), re-enabled publish control, rollback history-no-row (refusal + re-enable control), rollback own row (refusal + named-rollback control). Reach on main 73d5e347 (pins committed first 1217b6a5, main's metadata-protocol dist): Tests 5 failed | 9 passed (14), each 'no refusal'. Fix 42bb7de2: 14 passed (14). metadata-protocol test: Test Files 372 passed | 9 skipped (381), Tests 23598 passed | 45 skipped; objectql test: 642/642 files, 14535/14535; rest test: 432 files, 8972 passed | 351 skipped; typecheck metadata-protocol + objectql exit 0; spec vitest src/migrations 206 passed.",
"gates": "dispatch-gates --commands: 98 commands; 95 exit 0 locally (spec check:api-surface, browser-reachable-entries, dual-source-exports, entry-nameability, exported-any and cli migrate-meta-engine-guidance green after spec+cli rebuild). check-empty-changeset: red, the DELIBERATE CORRECTION (same red on PR CI Check Changeset job 140509210922, only that file). NOT MEASURED: check:dual-build-cjs-loads, reason: needs every package dist (CI Lint & Repo Gates runs it); check-plugin-teardown-shape --self-test, reason: shallow clone cannot reach its pinned fixture commit. PR CI: Test UI (13/16) red on first run at ListView.inlineFlsNoop-6723.test.tsx (ui/, not in this diff; same file green on main push run 46001713224 shard 13); rerun-failed once via relay, run 46006125898.",
"dogfood_battery": "04807110 · os-verify-lock VERDICT command-exit 0 (37m31s) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures.",
"mcp_calls": "subscribe_pr_activity #37948; get_session",
"api_writes": "3: git push (branch); fleet-write pr_create #37948 (assignee os-tesla, read-back identical); fleet-write run_rerun_failed 46000090209 (first attempt refused at the relay fence, run in_progress, nothing sent; second sent). Plus this os-dev-report comment.",
"open_questions": [
"The enable sentence says 'the row stored for it under no package is that package's customization'; in cell (b) only its history is stored. Kept as the ruling names that sentence; seat may want a wording card."
],
"security_findings": "none",
"out_of_scope_findings": [
"ui/packages/plugin-list/src/__tests__/ListView.inlineFlsNoop-6723.test.tsx UNAUTHORED case failed once on PR CI (headers read as soon as non-empty may catch the pre-schema row-key render, which includes Id); green on main push run 46001713224. class: none (single observation, not reproduced); carrier: none."
]
}
Dogfood battery on PR #37948 head c488ff99123111d89265945da375edec2882bf56: green. This supersedes the 04807110 reading in the os-dev report 7219375856 for the landing head.
The head is the merge 63abdfd of main30a8047 (19.0.0-next.1) plus c488ff9. That commit leaves .changeset/pre/37608-… as main has it, per the seat ruling 7222609810. The code under test is byte-identical to the reviewed hunks.
One run under os-verify-lock, with the parts joined by &&. VERDICT command-exit 0, lock held 38m31s:
Activity
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Measured · 2026-11-27T10:57Z · origin/main 0a3ea67 (has #37818). The stack is real
RestServerroutes over the real ObjectQL engine and protocol, with an in-memory driver. The fixture is #37818's (com.acme.mail,email_templateacme.welcome;fr-FRis a member the package does not ship). CallerisSystem. The readings were taken by a seat card thread; the files are in the project share (card-37851/readings-0a3ea67c.md,probe-37851.test.ts).PUTand barePUT ?mode=draftanswer 409RESOURCE_CONFLICTwith the?package=sentence and write nothing. BarePOST /publish?member=fr-FRanswers 200 and promotes the draft into PKG's active row.GETanswers 404 while disabled; after re-enable it serves the published draft.PUTanswers 409. BarePOST /rollback {toVersion:1}answers 200 and inserts a new package-less active row; the bare save's 409 then switches to the enable sentence. After re-enable, the deleted customization is served again. The control with PKG enabled answers the same 200.GET /history?member=fr-FRanswers 200 with 3 entries.An isolated review read the code behind both cells:
protocol-history-and-publish.ts:910: the disabled judgment is asked only whenkey === null || into === null.protocol-package-commits.ts:2310-2312(it requiresactive.unbound) and:2333(it restores withpackageId: null).The ruling is with the maintainer now. The options are refuse both cells, refuse (b) only, or leave both open. The seat records it here as
Ruling:when it comes. The card's "reach: not yet measured" line is superseded by this comment.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Recorded 2026-11-27T10:58Z
Ruling: #37851 · letter A · maintainer 「两处都拒绝」 2026-11-27T10:57Z
The maintainer (os-tesla) answered a decision card the seat put to him in the seat thread for repo:objectstack#3, after the measurement above and an isolated review. The question, as the card read: 「#37851:包停用后,不指明包的发布和回滚还能写进去,要拒绝吗?」. The options were:
?package=sentence, and the bare rollback with no package-less row answers the enable sentence. The third cell (a bare rollback of PKG's own row) is measured first and refused too if it lands. One small PR, shipping with 19.He chose A.
What this settles for the implementing dev and L1/L2:
POST /publishof a name only disabled packages hold is refused. It answers the bare save's?package=sentence (disabledHoldersOnlyRefusal) and writes nothing. Today it lands atprotocol-history-and-publish.ts:910(the judgment is asked only whenkey === null || into === null).POST /rollbackon such a name with history but no package-less row is refused. It answers the enable sentence (disabledHoldersCustomizationRefusal) and writes nothing. Today it lands atprotocol-package-commits.ts:2310-2333.disabled-holder-packageless-row-doors.test.ts:320. Pin each refused cell plus a re-enable control.Clause-②: no (narrowing)andMetadata-protocol: narrowed. Add the matching sentences to migration entry 19.?package=PKG) are not affected. They are kept by the ruling on metadata-protocol: a bare save of a name only a DISABLED package holds silently edits that package's row (200) while the bare read answers 404 — refuse with the ?package= remedy (ruled A) #34144 and the ADR-0150 D3 note.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibz3J6vDGdnFpMq3hkmAccount:
os-teslaBranch:
claude/project-thread-4tk44fWorktree:
objectstack-issue-37851Domain:
serverSeat:
repo:objectstack#3File surface:
packages/metadata-protocol/src/protocol-history-and-publish.ts,packages/metadata-protocol/src/protocol-package-commits.ts,packages/objectql/src/disabled-holder-packageless-row-doors.test.ts,packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-write-refused.ts, a new.changeset/*.md; NOTdocs/adr/**(stop on breach; explain in the report)Container & model:
M,mode:thread,model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate",effort: highClause-②: no (narrowing)
Metadata-protocol: narrowed
Responsibility: refuse the bare per-item publish (cell a, the
?package=sentence) and the bare rollback with no package-less row (cell b, the enable sentence) on a name only disabled packages hold; measure cell c (bare rollback of PKG own row while disabled) and refuse it too if it lands; named writes unchangedThread-read: 7216539589
Premise: ruling comment on this card (maintainer 「两处都拒绝」 2026-11-27T10:57Z); measurement comment on this card at origin/main 0a3ea67; isolated review /mnt/project-files/objectstack-seat3/37851-fable-review.md
Serial constraints cleared:
overlap-check.mjs runs on the thread's first push (branch not yet pushed); no in-flight claim on these files named by any seatDogfood battery owed on the final head (narrowing). L2 at the contract-review tier. Lands by the maintainer (narrowing hand-off).
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibz3J6vDGdnFpMq3hkm
os-dev-report
{ "issue": 37851, "status": "done", "branch": "claude/project-thread-4tk44f", "pr": "https://github.com/objectstack-ai/objectstack/pull/37948", "session": "session_01L9qibz3J6vDGdnFpMq3hkm", "premise_still_valid": true, "summary": "Head 04807110 on origin/main 73d5e347, ruling A (7216539589). Cell (c) measured first: on main the bare rollback of PKG's own row while PKG is disabled answered success and restored the row, so it is refused in the same PR. Publish (promoteDraftForPublish): a draft address at the package's own draft (key and into PKG) now asks packagelessHolderRefusal('disabled-holders') with unbound false -> disabledHoldersOnlyRefusal ('Name the package this publish is for', 409 RESOURCE_CONFLICT), beside a package-less row or not; the :320 control flipped. Rollback (rollbackMetaItemUnaudited): the active.unbound precondition dropped; every bare rollback asks the judgment with candidates = active bindings + the restore's binding, unbound = (rollbackPackageId === null): the package-less restore (stored or not, cell b) answers the enable sentence, the package's own row (cell c) the ?package= sentence. Named writes unchanged; any enabled holder -> undefined. Migration entry 19 surface/replacement/reason/acceptanceCriteria reworded (the L2 S1 reason sentence replaced). New changeset 37851 (minor metadata-protocol + spec, BREAKING scoped to the 3 cells, adr-0087 not-required already-registered). DELIBERATE CORRECTION of pending .changeset/37608 'Not moved' sentence (quoted in the PR body); Check Changeset red on that file alone by design.", "tests": "New pins in disabled-holder-packageless-row-doors.test.ts (same describe): publish own draft it.each x2 (refusal + named-publish control), re-enabled publish control, rollback history-no-row (refusal + re-enable control), rollback own row (refusal + named-rollback control). Reach on main 73d5e347 (pins committed first 1217b6a5, main's metadata-protocol dist): Tests 5 failed | 9 passed (14), each 'no refusal'. Fix 42bb7de2: 14 passed (14). metadata-protocol test: Test Files 372 passed | 9 skipped (381), Tests 23598 passed | 45 skipped; objectql test: 642/642 files, 14535/14535; rest test: 432 files, 8972 passed | 351 skipped; typecheck metadata-protocol + objectql exit 0; spec vitest src/migrations 206 passed.", "gates": "dispatch-gates --commands: 98 commands; 95 exit 0 locally (spec check:api-surface, browser-reachable-entries, dual-source-exports, entry-nameability, exported-any and cli migrate-meta-engine-guidance green after spec+cli rebuild). check-empty-changeset: red, the DELIBERATE CORRECTION (same red on PR CI Check Changeset job 140509210922, only that file). NOT MEASURED: check:dual-build-cjs-loads, reason: needs every package dist (CI Lint & Repo Gates runs it); check-plugin-teardown-shape --self-test, reason: shallow clone cannot reach its pinned fixture commit. PR CI: Test UI (13/16) red on first run at ListView.inlineFlsNoop-6723.test.tsx (ui/, not in this diff; same file green on main push run 46001713224 shard 13); rerun-failed once via relay, run 46006125898.", "dogfood_battery": "04807110 · os-verify-lock VERDICT command-exit 0 (37m31s) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures.", "mcp_calls": "subscribe_pr_activity #37948; get_session", "api_writes": "3: git push (branch); fleet-write pr_create #37948 (assignee os-tesla, read-back identical); fleet-write run_rerun_failed 46000090209 (first attempt refused at the relay fence, run in_progress, nothing sent; second sent). Plus this os-dev-report comment.", "open_questions": [ "The enable sentence says 'the row stored for it under no package is that package's customization'; in cell (b) only its history is stored. Kept as the ruling names that sentence; seat may want a wording card." ], "security_findings": "none", "out_of_scope_findings": [ "ui/packages/plugin-list/src/__tests__/ListView.inlineFlsNoop-6723.test.tsx UNAUTHORED case failed once on PR CI (headers read as soon as non-empty may catch the pre-schema row-key render, which includes Id); green on main push run 46001713224. class: none (single observation, not reproduced); carrier: none." ] }chore(changeset): leave the released 37608 note as main has it; the #…
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibz3J6vDGdnFpMq3hkm
Dogfood battery on PR #37948 head
c488ff99123111d89265945da375edec2882bf56: green. This supersedes the04807110reading in the os-dev report 7219375856 for the landing head.The head is the merge 63abdfd of
main30a8047 (19.0.0-next.1) plus c488ff9. That commit leaves.changeset/pre/37608-…asmainhas it, per the seat ruling 7222609810. The code under test is byte-identical to the reviewed hunks.One run under
os-verify-lock, with the parts joined by&&.VERDICT command-exit 0, lock held 38m31s:check:generatedAll 14 generated artifacts are up to datedisabled-holder-packageless-row-doors.test.tsTest Files 1 passed (1),Tests 14 passed (14)@objectstack/dogfood testTest Files 490 passed | 3 skipped (493),Tests 4144 passed | 68 skipped (4212)CI on this head: 69 check runs, 58 success and 11 skipped, none red.
Check Changesetis green.Generated by Claude Code