Repository navigation
Description
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Filing gate: ③ maintainer-directed · Source: the maintainer in the triage session, verbatim 「我觉得停用就该全部消失」 then 「同意」 to triage's split. Split out of #34348 (cell 1). Child of topic #36229 ("after a package is disabled it is invisible everywhere").
Triage: lands in area:package · domain:server · Bug · priority:p1 · pm:queue · size M; rationale: while a package is disabled, its customization is hidden from every read, yet a write still succeeds unseen. The bare delete destroys the hidden row, so re-enabling no longer brings it back. That is silent data loss, so p1.
维护者速读
- 问题:包停用后,管理员对它做过的定制已经看不到了,但保存、存草稿、删除仍然显示成功;删除会把这条看不见的定制真删掉,包重新启用也回不来。
- 要做的:停用期间这些操作一律拒绝,提示「请先启用该软件包」;重新启用后定制原样回来。
- 需要你做的:无。
What happens (measured read-only on main df0894a664, a throwaway copy of packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts; dashboard type, both transports, both registration orders)
A name shipped only by package D, plus a package-unbound stored row (D's customization under the #33401 seat ruling / PR #33995):
- D enabled: bare read,
/published,/layersand list serve the row (200)._envanswers 409 "not held by the environment". - D disabled: bare read,
_env,/publishedand/layersanswer 404, and list omits the row. All correct. - D disabled, writes:
- the bare publish save answers 200 and the edit stays hidden;
- the bare draft save answers 200 and writes a hidden draft row;
- the bare draft read answers 404
NO_DRAFT, even after that save; _env?state=draftanswers 409 (metadata-protocol: the draft and layered _env reads (?state=draft, ?preview=draft, ?layers=true) still refuse 409 for a name only disabled packages hold, where the plain _env read answers 404 #34261);- the bare delete answers 200 ("Customization overlay deleted") and destroys the hidden row.
- D re-enabled: the row is served again, carrying any edit made while it was disabled.
The save skips ruling A's disabled-holder refusal whenever an unbound row is stored (packages/metadata-protocol/src/protocol-save.ts ~:3439, if (address.unbound) return undefined;).
Ruling
- The maintainer: a disabled package disappears everywhere, and that includes its customizations.
- Every write door (publish save, draft save, delete, draft discard) refuses a name whose only holders are disabled, even when a package-unbound row is stored.
- The refusal is 409
RESOURCE_CONFLICTwith the remedy "enable the package first". It is not ruling A's?package=remedy, which here would write a second, D-bound row beside the hidden one. - Reads stay 404. The draft read and
_envanswer 404, not 409, which settles metadata-protocol: the draft and layered _env reads (?state=draft, ?preview=draft, ?layers=true) still refuse 409 for a name only disabled packages hold, where the plain _env read answers 404 #34261 the same way (fold candidate, same seam). - Re-enable serves the row untouched.
Done when
- Each of the four write doors refuses in cell 1, through both transports and both registration orders. The existing CONTROL pin near test line 1443 splits:
env_only_dashstays 200 andd_unbound_dashflips to 409. - An ablation pin: re-allowing the unbound skip turns the tests red.
- A disable → write attempt → re-enable round trip serves the original row byte-identical.
- ADR-0150 D3 carries a dated note that a package-less row at a held name is the holder's customization and hides, read and write, with it. docs: state in ADR-0150 and the package-disable API page that a disabled package holds no name and hides its names' environment customizations #34260 / 专题:停用包之后处处都看不到它(报表、统计、视图、我的应用、翻译、搜索、草稿读取一致) #36229's completion criteria gain "no write lands on a hidden item".
- Not measured (the lane measures first): behaviour after a restart, the
actionanddoctypes (the doc type shares the ruling's old "whether enabled" clause, so its disabled-only cell should hide too), and_envwrites.
Related: #34348 (keeps cell 2 only), #33401 / PR #33995, ruling A #34144 / PR #34324, #34452 (mixed case: a disabled holder counts for nothing).
Blocked-by: none.
Activity
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA
Claim: PM loop round 1 · 2026-11-26T12:10Z
Session:
session_01L6bhgV6i8jfWwSXjpWJrjAThread session:
session_01L6bhgWSCg5Qjw8A76bTFD6Account:
os-salesBranch:
claude/project-thread-iu6ti1Worktree:
objectstack-issue-37499Domain:
domain:serverSeat:
repo:objectstack#2File surface:
packages/metadata-protocol/src/(protocol-save.ts, protocol-diff-delete-load.ts),packages/runtime/src/domains/(meta-disabled-holder-served-stack test),docs/adr/0150-*(dated D3 note), one changesetContainer & model:
M,mode:thread,model: CONTRACT_REVIEW_TIER — dispatch-gates --tier: "Model tier — MANDATORY" (docs/adr/** row, no one-line exit),effort: highClause-②: no (narrowing)
Metadata-protocol: narrowed
Responsibility:
objectstack platform code (metadata-protocol packagelessHolderRefusal skips the disabled-holder refusal for a package-unbound row) | none | admins editing a customization of a disabled package; reachable today, and the bare delete destroys the hidden rowThread-read: none
Premise: holds (seat's read-only premise read on origin/main 5dbcc02: protocol-save.ts:3439
if (address.unbound) return undefined;; callers :868 publish, :952 draft, protocol-diff-delete-load.ts:760 delete; draft discard to be measured)Serial constraints cleared:
none named; the thread runs scripts/pm/overlap-check.mjs before its first pushdocs(adr-0150): D3 note for the hidden package-less row's writes; mig…
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#2 · os-sales · session_01L6bhgWSCg5Qjw8A76bTFD6
os-dev-report
{ "issue": 37499, "status": "done", "branch": "claude/project-thread-iu6ti1", "pr": "https://github.com/objectstack-ai/objectstack/pull/37584", "session": "session_01L6bhgWSCg5Qjw8A76bTFD6", "premise_still_valid": true, "summary": "While every holder of a name is disabled, the four writes naming no package (publish save, draft save, delete, draft discard) are now refused 409 RESOURCE_CONFLICT with the enable remedy when a package-less row or draft is stored for the name; they answered 200 on main 5dbcc02b and edited, stored or removed a row no read served. The judgment all four doors ask (packagelessHolderRefusal) no longer returns early on a package-less row, the draft discard also judges over the active rows when one is involved, and re-enabling serves the row byte-identical. ADR-0150 D3 carries a note dated 2026-11-26, and the narrowed declaration is registered as migration entry disabled-holder-package-less-row-bare-write-refused with changeset 37499-disabled-holder-unbound-row-bare-write-refused.md. Lane measurements: answers are the same before and after a restart; doc and action (sealed) answer 403 NOT_OVERRIDABLE unchanged; no write door takes _env on either transport.", "tests": "RED first (new pins, unfixed build): runtime meta-disabled-holder-served-stack.test.ts -t 32605 = Tests 20 failed | 100 passed | 61 skipped (181). GREEN on the branch: Tests 181 passed (181). Whole suites under the verify lock, VERDICT command-exit 0 each: metadata-protocol 370 files passed | 9 skipped, 23440 tests passed | 45 skipped; objectql 638 passed, 14428 passed; rest 429 passed, 8852 passed | 351 skipped; runtime 649 passed, 12081 passed | 25 skipped; spec 899 passed, 28498 passed | 1 todo. typecheck of metadata-protocol, objectql, runtime, spec: exit 0 each. Ablation on 7e6689619 (ablation-replace --hold put the package-less early return back; metadata-protocol rebuilt; ablation-dist-preflight found the marker in dist/index.cjs and dist/index.js): runtime file Tests 20 failed | 161 passed (181), objectql disabled-holder-packageless-row-doors.test.ts Tests 1 failed | 4 passed (5), VERDICT command-exit 1 each; restored (git diff HEAD empty, rebuilt, preflight --absent passes): 181 passed and 5 passed. A first ablation attempt was a no-op and is void: its replacement still contained the anchor, the tool refused and restored, the preflight reported the marker absent. The four package suites other than spec ran on f71b5f88a plus the objectql pin edit; 7e6689619 adds only the ADR note, the spec entry, the changeset and that pin.", "gates": "dispatch-gates --commands derived 101 commands; each run with its exit code recorded before any pipe; --ran over the final record: 101 derived, 101 run, 0 NOT-MEASURED, 0 UNRUN. 98 exit 0 on the first run; three exit 0 on a rerun once a prerequisite existed: check-plugin-teardown-shape --self-test (exit 3, fixture commit outside the shallow clone, then fetched), cli vitest test/migrate-meta-engine-guidance.test.ts (exit 1, a CLI dependency had no build, then built: 3 passed), check:dual-build-cjs-loads (exit 3, packages without dist, then exit 0 after the dogfood closure build). overlap-check.mjs before the first push: VERDICT clean. origin/main c385d3bd16 merges cleanly (git merge-tree) and touches none of the changed files. CI check-runs: not read, the report does not wait for CI; the repo vitest project, the workspace type-check lanes and the build job are CI's.", "dogfood_battery": "7e668961961a0bcce141139047ec56b199faa053 · os-verify-lock: VERDICT command-exit 0 · held the lock 1900s (31m40s) · waited 0s · Test Files 487/487 passed, 3 skipped (490) · Tests 4129/4129 passed, 68 skipped (4197) · no failure; closure build VERDICT command-exit 0; tree clean before and after", "line_budget": "423 changed lines (+379 / -44) over 7 files, under the 3000-line threshold; no skills/** file touched", "files_changed": [ ".changeset/37499-disabled-holder-unbound-row-bare-write-refused.md", "docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md", "packages/metadata-protocol/src/protocol-diff-delete-load.ts", "packages/metadata-protocol/src/protocol-save.ts", "packages/objectql/src/disabled-holder-packageless-row-doors.test.ts", "packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts", "packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-write-refused.ts" ], "deviations": [ "L2 is owed at the contract-review tier and was not arranged here, as the order says; the seat arranges it.", "The diff touches docs/adr/** with a note under the ADR's Decision heading, so the pull request is Tier H and needs an authorized approval; moving the note to its own pull request is the alternative.", "File surface beyond the claim: the spec migration entry (a narrowed declaration requires a registered entry) and the objectql test whose pin the change flips.", "The card bodies of #34260 and #36229 (their completion criteria gaining 'no write lands on a hidden item') are not written by this diff; they are the seat's body writes.", "Delete and draft discard are pinned through the REST route and the in-process deleteMetaItem: the dispatcher mounts no DELETE on a metadata item (405).", "The branch is the platform-assigned claude/project-thread-iu6ti1, not claude/issue-37499-SLUG.", "Decided here and listed in the pull request body: the refusal names no package; the ?package= refusal is kept where no package-less row is stored; the draft discard widens to the active rows only when a package-less row or draft is involved.", "test:repo was not run locally (CI's).", "Observation, not a finding: with the holder enabled, a doc bare read served a package-less row after a restart where it served the package's own body before one. The probe seeded that row directly; no door writes it (the saves answer 403), so no public reach is shown.", "The pull request body does not carry the harness attribution lines with a model name; it ends with the session footer the repository rules give." ], "mcp_calls": "3 — issue_read x3 (card body and comments); no write tool", "api_writes": "2 relay writes — pr_create (with assignees) through fleet-write/dispatch.mjs, and this os-dev-report through post-stamped.mjs; git push x3 to claude/project-thread-iu6ti1; no direct REST write", "open_questions": [ { "question": "Fold the draft read at _env for such a name (it answers 409 where the other reads answer 404, card #34261) into this pull request?", "options": [ "A leave it to its own card", "B fold it here" ], "recommendation": "A, because it lives in other files and this session holds no claim there" } ], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#2 · os-sales · session_01L6bhgWSCg5Qjw8A76bTFD6
os-dev-report
{ "issue": 37499, "status": "done", "branch": "claude/project-thread-iu6ti1", "pr": "https://github.com/objectstack-ai/objectstack/pull/37584", "session": "session_01L6bhgWSCg5Qjw8A76bTFD6", "premise_still_valid": true, "summary": "Patch rounds 2 and 3 after the contract reviews (records 7195624788 and 7196892245): wording only, in the ADR-0150 D3 note, the strings of migration entry disabled-holder-package-less-row-bare-write-refused and the changeset. Head 21b30f4b7982d22878115907dbb805b6ede7aa39; the four implementing files are byte-identical to 7e6689619. S1: the note speaks for the four writes it covers and names the per-item publish and the per-item rollback as not judged yet (read in the code, not measured; card #37608). S2: the note, the entry and the changeset are bound to the cells the ADR-0146 D11 close leaves open, and that cell was measured: for an email_template a read-only code package with a pair ships, a package-less row stored, the package disabled, the save, the draft save and the delete answer 403 NOT_OVERRIDABLE (that close, unchanged) and only the draft discard answers the 409. So this change newly refuses the draft discard in every cell, and the save, the draft save and the delete where that close leaves the write open (pinned: a base with no pair, a member the package never ships, a holder that is not a read-only code package). N1 to N4, N8 and N9 taken; N5 to N7 and N10 left as the seat ruled.", "tests": "On the final head 21b30f4b7982d22878115907dbb805b6ede7aa39: spec suite `Test Files 899 passed (899)`, `Tests 28498 passed | 1 todo (28499)`, VERDICT command-exit 0; spec typecheck exit 0; closure build VERDICT command-exit 0. D11 cell probe (throwaway objectql test on 450813bf0, same code, not committed): save 403 NOT_OVERRIDABLE, draft save 403 NOT_OVERRIDABLE, delete 403 NOT_OVERRIDABLE, draft discard 409 RESOURCE_CONFLICT, stored rows unchanged, with and without a package-less draft. Unchanged since the first report and measured on 7e6689619, whose implementing files are byte-identical to this head: RED first 20 failed | 100 passed | 61 skipped (181); GREEN 181 passed; suites metadata-protocol 23440 passed | 45 skipped, objectql 14428 passed, rest 8852 passed | 351 skipped, runtime 12081 passed | 25 skipped; typecheck of the four packages exit 0; ablation 20 failed | 161 passed and 1 failed | 4 passed, restored 181 and 5 passed.", "gates": "On 21b30f4b7982d22878115907dbb805b6ede7aa39: dispatch-gates --commands over the three paths this round edits derives 86 of the 101 families; each ran with its exit code recorded before any pipe: 86 exit 0. The other 15 read none of the three files and were not run again (all 101 answered exit 0 on 7e6689619). CI check-runs on 21b30f4b7982d22878115907dbb805b6ede7aa39: 70 check-runs, 59 success, 11 skipped, none failed. origin/main merges cleanly per the PR's mergeable state.", "dogfood_battery": "21b30f4b7982d22878115907dbb805b6ede7aa39 · os-verify-lock: VERDICT command-exit 0 · held the lock 1848s (30m48s) · waited 0s · Test Files 487/487 passed, 3 skipped (490) · Tests 4129/4129 passed, 68 skipped (4197) · no failure; closure build VERDICT command-exit 0; tree clean before and after", "line_budget": "433 changed lines (+389 / -44) over 7 files, under the 3000-line threshold; no skills/** file touched", "files_changed": [ ".changeset/37499-disabled-holder-unbound-row-bare-write-refused.md", "docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md", "packages/metadata-protocol/src/protocol-diff-delete-load.ts", "packages/metadata-protocol/src/protocol-save.ts", "packages/objectql/src/disabled-holder-packageless-row-doors.test.ts", "packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts", "packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-write-refused.ts" ], "deviations": [ "The diff touches docs/adr/** with a note under the ADR's Decision heading, so the pull request is Tier H and needs an authorized approval; moving the note to its own pull request is the alternative.", "File surface beyond the claim: the spec migration entry (a narrowed declaration requires a registered entry) and the objectql test whose pin the change flips.", "The card bodies of #34260 and #36229 (their completion criteria gaining 'no write lands on a hidden item') are not written by this diff; they are the seat's body writes.", "Delete and draft discard are pinned through the REST route and the in-process deleteMetaItem: the dispatcher mounts no DELETE on a metadata item (405).", "The branch is the platform-assigned claude/project-thread-iu6ti1, not claude/issue-37499-SLUG.", "Decided here and listed in the pull request body: the refusal names no package; the ?package= refusal is kept where no package-less row is stored; the draft discard widens to the active rows only when a package-less row or draft is involved.", "test:repo was not run locally (CI's).", "Observation, not a finding: with the holder enabled, a doc bare read served a package-less row after a restart where it served the package's own body before one. The probe seeded that row directly; no door writes it (the saves answer 403), so no public reach is shown.", "The pull request body does not carry the harness attribution lines with a model name; it ends with the session footer the repository rules give.", "A delta contract review of this head is owed; the seat runs it.", "The gates on the final head are the subset the tool derives for the three edited paths, not all 101.", "The per-item publish and the per-item rollback were not measured (the seat ruled wording only; card #37608 measures them first).", "In the D11 cell the refusal over a disabled base is the 403 that names the pair and prescribes ?package=, not the card's 409 with the enable remedy; this change leaves it as main has it, and the question needs a card of its own.", "The PR body was rewritten once through relay issue_patch at the seat's request, signed on its last line." ], "mcp_calls": "12 — issue_read x3, pull_request_read x9 (get_comments x2, get_check_runs x6, get_status x1); no write tool", "api_writes": "4 relay writes — pr_create (with assignees), os-dev-report x2 (7194444492 and this one) through post-stamped.mjs, and one issue_patch of the PR body through fleet-write/dispatch.mjs; git push x5 to claude/project-thread-iu6ti1; no direct REST write", "open_questions": [ { "question": "Over a disabled base that has a pair, should the save, the draft save and the delete naming no package keep the D11 sentence (403, names the pair, prescribes ?package=) or answer the card's 409 with the enable remedy?", "options": [ "A keep main's order and file a card (the seat's choice for this PR)", "B ask the disabled-holders judgment ahead of the D11 close" ], "recommendation": "A for this PR; the card should go to the maintainer, because the card's ruling says every write door answers the 409 with the enable remedy" } ], "security_findings": "none", "out_of_scope_findings": [] }