Skip to content

docs(adr-0141): Open item 4 records that an enabled dependent rule refuses the package disable - #30729

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-mwjmre
Nov 6, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-mwjmre

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

domain:server#4 · os-elon-musk · session_016WV4cwCWp9qZ5SgMof1qLa

Part of #30379

Clause-②: no
Metadata-protocol: none

Claim: 6672353180 (amended 6672467575) · Branch: claude/project-thread-mwjmre · Ruling-ref: 6670643454 (letter A, item 4)

维护者速读

  • 改了什么:ADR-0141 的 Open item 4(「依赖包被停用」)下加一行裁决记录:一个仍启用的依赖方(读了该字段的校验规则)会让停用被拒绝。
  • 为什么改:这是 [Decision] A package can be disabled while an enabled package's validation rule reads one of its extension fields, and then every write to that object is refused #30379 裁决 A 第 4 项(你 2026-11-05 21:56Z 的「同意」)要求写进 ADR 的那一行;停用门本身的拒绝逻辑另走代码 PR,两者不捆绑。
  • 风险与回滚:极小。只加一行文字,不改任何代码、规范或生成物;回滚即撤 PR。
  • 先看:docs/adr/0141-inter-app-dependency-declared-checked-before-install.md 第 609 行(Open items 第 4 条末尾)。
  • 两分钟验证:打开本 PR 的 Files 标签,预期只有 1 个文件、+1 / -0。
  • 需要你做的:docs/adr/** 属 Tier H,请审阅后亲手合并(或批准后由席位落地)。

What changes

One line under ADR-0141 › Open items › 4 (A disabled dependency), recording the maintainer's ruling on #30379
(record 6670643454, letter A, item 4): an enabled dependent (a rule that reads a field X adds) refuses the disable.

Why

Ruling A item 4 asks for exactly this line. The runtime half of the same ruling (the package disable door refusing with
409 while an enabled package's validation rule reads a field the package adds through objectExtensions) ships in a
separate code PR from this branch after this one, once its ledgered error code lands. The two are never bundled.

Tests

None: a docs-only change to one ADR line. No code, schema, generated artifact or published file moves.

Acceptance notes

  • The line is appended to item 4's paragraph, so it renders as that item's last sentence; the item's measurement text
    above it is kept as written.
  • skip-changeset: docs/adr/** publishes nothing from any released package.

Verification

Local gates at f2c3908 (dispatch-gates --commands on this diff, 21 commands)
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:adr-index :: exit 0
pnpm check:adr-symbol-anchors :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-prior-rulings :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:watch-hint-literal :: exit 0

node scripts/pm/dispatch-gates.mjs --ran: 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN (exit 0).
CI families outside the derivation (artifact rosters, wide-population families, the type-check lanes) are CI's; this PR's check-runs are their record.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind. (none added)
  • 3. No formatter ran; pnpm lint passes. (no source file touched)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing: skip-changeset)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

Generated by Claude Code

…fuses the disable

The maintainer's ruling on #30379 (record 6670643454, letter A): the
package disable door refuses while an enabled package's validation rule
reads a field the package being disabled adds through objectExtensions.
One line under Open item 4; the door itself ships separately.

Claude-Session: https://claude.ai/code/session_016WV4cwCWp9qZ5SgMof1qLa
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 5, 2026
@github-actions github-actions Bot added size/xs documentation Improvements or additions to documentation labels Nov 5, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#4 · os-elon-musk · session_016WV4czvZykUqhYxYXSSDt4

Contract review for card #30379 · read-only reviewer at the contract-review tier, brief per record-recognisers --brief-template · 2026-11-05T23:57Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f2c390827816f694de9ea4bccae3cafe4320b5d8
Local-runs: none
Scope: docs/adr/0141-inter-app-dependency-declared-checked-before-install.md + packages/runtime/src/domains/packages.ts (the disable door on main: PATCH /packages/:id/disable, isDisableablePackage, isDisableableAppModule), packages/objectql/src/registry.ts (withoutWithheldMembers / WithheldExtensions, the fold the ruling rests on), the card's ruling record 6670643454 and claim 6672353180 (amended 6672467575)

① Derived judgments

  • The net diff is one file and one added line (docs/adr/0141-…md line 609, +1 / −0), read as the merge-base diff origin/main...f2c39082. The PR's file list and the three-dot diff agree. Right.
  • No published surface moves. No released package ships docs/adr/**. No schema, export, generated artifact, runtime string or metadata key changes, and no door's accept-set on main changes. Right.
  • This PR does not narrow the disable door. On main, PATCH /packages/:id/disable checks the permission, the wall, the query guard and isDisableablePackage, then calls registry.disablePackage(id). It reads no dependent and no rule. The ADR line records the ruling that the code PR will implement. Clause-②: no is right for this head. The narrowing (a 409 on a disable that is accepted today) belongs to the code PR's declaration.
  • Placement under Open item 4 matches ruling 6670643454 item 4. The item's measurement sentence is kept verbatim. Right. The install-side half of item 4 (whether enabled: false on X satisfies D2) stays open. The line answers only the disable side and does not claim more.
  • Citation form matches the ADR's own convention (#25403, ruling 6377678758). Lint · docs & code guards is green. Right.
  • The ADR index and status header are untouched, and a ruled open item needs neither. Right.

② Semver level

skip-changeset is correct because the diff publishes nothing from any released package. Check Changeset is green. The PR body's Clause-②: no and Metadata-protocol: none are correct for a docs-only ADR amendment. Matches.

③ Boundary flags

  • The PR has no open_questions and no dev flag. Both acceptance notes are verified. The line renders as item 4's last sentence, and docs/adr/** publishes nothing.
  • The claim's file surface ("its own small Tier H PR for the one ADR-0141 Open item 4 line, never bundled") is honoured. The PR touches no packages/**, no .changeset/ and no ui/**, and Part of #30379 is in the body.
  • Tier H (docs/adr/**): the landing stays the maintainer's hand. This record does not lift the merge for any seat.
  • Check-runs at review time: no failures. The families that read this diff are all green. Several unrelated families were still running, and their conclusions are the verdicts once they land.

④ Design judgment

docs/adr/0141-…md, the added line: **Ruled** (#30379, record 6670643454, letter A): an enabled dependent (a rule that reads a field X adds) refuses the disable.

  • Against the ruling: the line is item 4's prescribed sentence, with "the field" resolved to "a field X adds", which matches item 1. Items 1–3 are not restated and not contradicted, and the record id carries them. No overstatement or misstatement.
  • Against the first consumer: the disable door on main reads no dependent, so the line describes a refusal the code PR adds. It uses the same register as the rest of the Proposed record. withoutWithheldMembers in registry.ts, which drops a withheld extension's fields and rules, is the measured fact the ruling rests on. The line does not contradict it.

Findings:

  1. should-fix. Elsewhere in ADR-0141, a dependent is a package that declares manifest.dependencies. Ruling A scans every enabled package, declared or not. The parenthetical redefines the term, and the ruling's own sentence has the same shape, so this is not a misstatement. Still, one clause in the ADR (any enabled package, .custom pair included, validation rule, 409, formulas not refused) would remove the ambiguity. The PR can land as it is. The code PR, which cites the ADR, is the natural place to tighten the wording.
  2. Observation. D3 says ADR-0029's uninstall refusal "is the only refusal that reads another package's relation to the one being removed". Disable is not removal, so the sentence stays true. A cross-reference would help once the code PR lands, and it is the code PR's to add.
  3. The line is 128 columns. 123 lines on main already exceed 120, and no gate reads line length. No fix.

No must-fix.

Implemented-by: claude/project-thread-mwjmre
Reviewed-by: session_016WV4czvZykUqhYxYXSSDt4

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#4 · os-elon-musk · session_016WV4czvZykUqhYxYXSSDt4

维护者速读

  1. 改了什么:ADR-0141 的 Open item 4(「依赖包被停用」)末尾加一行裁决记录:仍启用的包里,只要有校验规则读了被停用包加的字段,停用就会被拒绝。
  2. 为什么改:这一行是 [Decision] A package can be disabled while an enabled package's validation rule reads one of its extension fields, and then every write to that object is refused #30379 裁决 A 第 4 项(记录 6670643454)要求写进 ADR 的。停用门的拒绝代码另走代码 PR,等错误码卡 spec: ledger the error code the package disable door answers when an enabled package's validation rule reads a field the disabled package adds (#30379 ruling A) #30724 落地后再开,两者不捆绑。
  3. 风险:极小。只加一行文字,不动代码、规范或生成物,不发布任何包(skip-changeset)。
  4. 先看:docs/adr/0141-inter-app-dependency-declared-checked-before-install.md 第 609 行。
  5. 两分钟验证:打开 Files 标签,应只有 1 个文件,+1 / −0。
  6. 需要你做的:docs/adr/** 属 Tier H。契约复核 PASS 见评论 6672729846(Head-sha f2c39082)。请 os-zhuang 或 hotlong 批准,批准后由席位落地,或由维护者直接合并。

席位意见:ACCEPT(#30379,ADR 半)。复核里有一条 should-fix:ADR 别处的「dependent」指声明了依赖的包,这一行用的是裁决原句,读者可能理解得比裁决窄。这条留给代码 PR 收紧措辞,不挡本 PR。

席位核对

Head-sha: f2c390827816f694de9ea4bccae3cafe4320b5d8 · read 2026-11-05T23:58Z

Item Reading
Shape Draft → main. Part of #30379. 1 file, +1/−0. skip-changeset. Per claim 6672353180 (amended 6672467575): its own Tier H PR, never bundled with the code half.
Seat diff read One **Ruled** line appended to Open item 4's paragraph, with the measurement sentence kept verbatim. The wording is ruling 6670643454 item 4's sentence with "the field" resolved to "a field X adds".
Evidence Contract review PASS on this head: comment 6672729846 (CONTRACT_REVIEW_TIER, Local-runs: none), no must-fix, one should-fix carried to the code PR. Dev local gates: dispatch-gates --ran 21/21 exit 0.
Gates (check-runs on this head) At read time: 21 success, 20 skipped, 0 failed, 3 in progress (Test Core 1/8, Type Check · workspace, Type Check · consumer gates). The families that read this diff are green. The seat re-reads before landing.
Accepted deviations None.
Out of scope The disable-door scan with a 409 refusal and its tests is the code PR, which follows after #30724 lands. The domain:ui Settings-page line gets its own card after that. The D3 cross-reference and the "dependent" wording go to the code PR.
Semver None published. Clause-②: no, Metadata-protocol: none.
Landing GOVERNED: check-governed-merges --pr 30729 reports docs/adr/**, Tier H (人合), 1 line ≤ 3000. The PR stays draft and waits for a human. Review is requested from the GOVERNED_APPROVERS (os-zhuang, hotlong), and the PR is labelled pm:awaiting-merge. Once an approver approves, the seat lands it: pre-landing check, labels cleared, pr_ready, automerge_enable.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 6, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 6, 2026 00:56
@os-zhuang
os-zhuang enabled auto-merge November 6, 2026 00:56
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit fcefe4e Nov 6, 2026
52 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-mwjmre branch November 6, 2026 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants