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
objectql: a tenant's copy of a packaged validation rule is judged against a disabled extender's same-name rule, so a message-only copy of the served rule is refused #38624
Filing gate: ① product defect, named location, measured. Source: fleet (the #34217 dev's out-of-scope finding on PR #38622, measured on the built registry at origin/main ee9fd3d).
Grading: area:package · Bug · Suggested-grade: p2 · same family as #34217 (topic #36229, a disabled package must vanish everywhere).
Reader: seat repo:objectstack#3, zone o3-P (area:package p1/p2), once the open question below is answered.
reach: named producer — packages/metadata-protocol/src/protocol-authoring-gate.ts:734 calls SchemaRegistry.tenantRuleCopyRefusal on a tenant object save. Measured on the built registry (not through HTTP): an enabled extender and a later disabled extender ship a rule of the same name; a tenant copy that changes only the served rule's message is refused INVALID_METADATA ("this copy changes condition"), and a copy carrying the disabled rule's condition is accepted.
Dedupe: searched tenantRuleCopyRefusal (3 hits: #34217 open, #28448 and #27949 closed) and packagedRules disabled (2 hits: #34217, #33800 closed). #34217 (claimed by this seat, PR #38622) fixes the packaged base only and leaves this judgment untouched on purpose.
Business reason: a tenant admin who edits the message of a validation rule an installed package ships is refused, while a copy that silently restores a disabled package's condition is accepted. The judgment should follow the rules the served object enforces.
What happens
packages/objectql/src/registry-object-registration.tstenantRuleCopyRefusal (:1512-1517) calls packagedRules over every contributor, disabled extenders included; packagedRules (:1496-1507) merges by name, a later layer winning. The served fold withholds disabled extensions (withholdDisabledExtensions), so the two disagree.
Contract text, tenantRuleCopyRefusal docblock in packages/objectql/src/registry.ts: "Judged against the code layers registered NOW, the packaged rule set the fold enforces".
Open question (product semantics; not ruled by #34217)
A: judge against withholdDisabledExtensions(contributors).kept, as the fold does. A tenant may then save, with its own condition, a rule whose name ONLY a disabled package ships; on re-enable the package rule runs and reportChangedRuleCopies logs validation_rule_copy_changed. XS.
B: names an enabled layer ships are judged against the enabled rule; names only a disabled package ships stay reserved, judged against that package's rule. About 10 lines plus two pins, S.
C: leave it.
The dev recommends B: it fixes the measured wrong answer without allowing a save that collides with the package's rule on re-enable. A means a disabled package no longer reserves its names, which needs a product call.
Acceptance (once the route is chosen)
An enabled extender plus a later disabled extender with a same-name rule: a message-only tenant copy of the served rule is accepted; a copy carrying the disabled rule's condition is judged as the chosen route says. Pins for both, and a re-enable control.
Triage: to the decision box · area:package · domain:server · Bug · p2 · needs-user-decision (no pm state) · finding off (graded) · size S. Rationale: the measured defect is real, but the fix forks on product semantics: whether a disabled package still reserves the names of the rules it ships (route B, the dev's pick) or vanishes everywhere including name reservation (route A, which reads closest to topic #36229 "a disabled package must vanish everywhere" and to the tenantRuleCopyRefusal docblock "the packaged rule set the fold enforces"). That choice is the maintainer's, not triage's or the lane's. Ask to the filing seat (repo:objectstack#3): add the decision speed-read (four business lines) and the analysis block per decision-analysis.md on this card, quoting the two texts above; triage then pushes it to the maintainer.
Tier note: the decision-thread row asks for the contract-review tier; this project runs no fable (maintainer's standing order of 2026-11-15, restated for this thread), so this analysis ran at the default judgment tier, effort high. The seat records the quota exit on its seat post. No subagent was used.
Background
A tenant admin who saves an object carrying a copy of a packaged validation rule (same name) may change only its message and active; any other change is refused at the save door (ADR-0029 D9.2a, rulings C′ 6524229156 and B 6545641964 on #27949). The save door asks SchemaRegistry.tenantRuleCopyRefusal; the load path asks reportChangedRuleCopies over the served fold's contributors and only reports. When a package is disabled, the served fold withholds its extend contributions (withholdDisabledExtensions), but tenantRuleCopyRefusal still builds its packaged rule set from every contributor, disabled ones included. With an enabled extender and a later disabled extender shipping a rule of one name, the save door judges against the disabled rule while the fold enforces the enabled one (measured by the #34217 dev on the built registry, PR #38622 Acceptance notes; the card body repeats it).
Governing text
packages/objectql/src/registry.ts, tenantRuleCopyRefusal docblock: "Judged against the code layers registered NOW, the packaged rule set the fold enforces." Read two ways: a disabled package's layers stay registered ("Disable is reversible: its items stay registered", packageScopedHoldersOf docblock, same file), while the fold no longer enforces them.
packages/metadata-protocol/src/protocol-authoring-gate.ts:722 (packagedRuleCopyRefusalOf): tenantRuleCopyRefusal is "the one predicate the registry's load report reads too, so the save door and the load judge one way."
ADR-0029 D9.2a (2026-10-30 note, docs/adr/0029-kernel-object-ownership-and-platform-objects-decomposition.md:565-575): a changed condition is refused loudly at the save door, "never two rules running beside each other, never a silent replacement"; "an extender's or a tenant's rule of a new name is added."
packages/objectql/src/registry.ts:4783-4787 (packageScopedHoldersOf): a durable judgment reads every holder, disabled or not, "because a binding must not move with a reversible disable."
No spec change under any route: Clause-②: no, Metadata-protocol: none. What an author can write does not change; only which packaged rule a save is judged against. Route A widens what the save door accepts (a name only a disabled package ships becomes free while it is off); route B narrows nothing that is correct today and widens only the measured wrong refusal.
Premises (each with its re-check)
The save door reads the raw contributor list. Re-check: grep -n "this.packagedRules(contributors)" packages/objectql/src/registry-object-registration.ts → :1517 (refusal) and :1546 (load report); :1514 takes contributors straight from objectContributors.get(fqn).
The load report reads the served fold's kept contributors. Re-check: grep -n "foldExtendersOntoDefinition(withheld.kept" packages/objectql/src/registry-object-registration.ts → 3 hits (:367, :699, :877); the report runs inside that fold (:1001).
While the package is off, the served fold takes off a tenant base's rule whose name only the withheld extender ships. Re-check: grep -n "withheld.withheldRules.has(rule.name)" packages/objectql/src/registry-top-level.ts → :796, :806 (withoutWithheldMembers); withheldRules counts the owner and kept extenders only, never the tenant overlay (registry-object-registration.ts:770-783). Read in the code, not measured.
No first-party pull. Re-check: grep -rl "defineObjectExtension\|objectExtensions" examples packages/apps --include=*.ts | grep -v "\.test\." | xargs grep -l "validations:" → 0 files (3 extension files exist, none ships a rule). HotCRM and cloud not read (outside this lane's repo scope).
The problem
When two packages extend one object with a rule of the same name and the later one is switched off, the admin is refused for editing the message of the rule they see and enforce, and is allowed to save a copy whose condition does not run. The question is what a switched-off package's rule names mean at the save door: nothing (A), or still reserved where no enabled package ships that name (B).
Options
Option
What it does
What the customer sees
Workload
A
Judge against the served fold only (withholdDisabledExtensions(contributors)?.kept)
Message-only edit of the served rule saves. A rule of a name only the disabled package ships saves with any condition, then does not run while the package is off (premise 3) and is replaced by the package's rule on re-enable, with one validation_rule_copy_changed error in the server log
objectql, 1 PR, XS (one call site plus pins); no landed precedent for this call site
B
Names an enabled layer ships: judge against the served rule. Names only a disabled extender ships (exactly withheld.withheldRules): judge against that extender's rule, as today
Message-only edit of the served rule saves. A changed condition under a name only the disabled package ships is refused loudly with today's prescription (add a rule under a new name); message/active edits of it still save
objectql, 1 PR, S (about 10 lines in tenantRuleCopyRefusal reusing withholdDisabledExtensions, plus two pins and a re-enable control); in-flight precedent of the same family: PR #38622, +61/−10 in 4 files (not landed)
C
Leave it
The wrong refusal and the wrong acceptance stay; save door and load report keep disagreeing while a later extender is off
none
What each means for the business
A: switching a package off frees its rule names like an uninstall would, but the platform still treats them as the package's when it serves the object. It is like a landlord letting a parking space while the tenant is on holiday, then towing the new car the day the tenant returns.
B: switching off is a pause. What the admin sees is what they are judged against, and a name the paused package will take back stays booked, with the usual "use a new name" advice.
C: the admin is judged against a rule nobody can see or run.
Four axes
① Long-term soundness (leading, ≥50%). The end state two years out: a disable is a reversible pause whose served faces vanish and whose identities persist until uninstall, so re-enable "comes back together" with no write (the 专题:停用包之后处处都看不到它(报表、统计、视图、我的应用、翻译、搜索、草稿读取一致) #36229 goal, second half). The platform has already built this split twice: read faces judge the served holders, durable judgments read every holder (packageScopedHoldersOf), and a bare save of a disabled-only name is refused (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). Mainstream reference: in Salesforce a deactivated validation rule keeps its API name and a second rule of that name is refused; only removal frees it. B is that shape for rule names; it also restores "the save door and the load judge one way" in both states (served names: both judge the served rule; disabled-only names: the copy is not served while off and both judge the package rule after re-enable). A breaks that sentence after re-enable; C breaks it while the package is off. B adds no special case: the withheld-names set it reuses is the one the fold already computes.
② Real business pull. Zero measured pull: no first-party extension ships a rule (premise 4), so nobody hits this today. The pull is the platform's own invariant and topic 专题:停用包之后处处都看不到它(报表、统计、视图、我的应用、翻译、搜索、草稿读取一致) #36229, not a customer report. Zero pull argues for the smallest correct change, which B and A both are; it does not argue for C, because C keeps a measured wrong answer.
③ Preventing AI mistakes. An AI building an admin edit will copy the served rule and change the message; C refuses it with a false reason, inviting the AI to "fix" the condition into the disabled one. A lets an AI save a rule under a booked name that never runs, which is silent: the save answers success, the rule is stripped while off and replaced on re-enable, and only a server log line says so. B keeps every outcome loud: the served copy saves, a colliding condition is refused at save with the prescription. Loud beats silent; B wins this axis.
④ Startup focus. All three add no surface, key or gate. A is the smallest diff but buys a silent state the topic would later have to chase; B is about ten lines more and closes the family; C costs nothing now and leaves a defect card open.
os-decision-facets
① long-term: B narrows special cases (one judgment for save and load, reusing the fold's withheld set); A opens a silent-replacement state ADR-0029 D9.2a forbids; C keeps save and load disagreeing.
② pull: zero first-party pull measured (no extension ships a rule); invariant-driven, so take the smallest correct fix, not C.
③ anti-AI-error: B is loud everywhere; A accepts a rule that never runs (log line only); C refuses a correct copy with a false reason.
④ no-sprawl: no new key, surface or gate in any route; B costs ~10 lines more than A.
B. From ① alone: a disable is a pause, so what is served is what is judged, and what the paused package will take back stays booked; this is the split the platform already uses for package-scoped names and the only route where save door and load report agree in both states.
Not taken: A, because it lets a save succeed for a rule that never runs, the silent replacement ADR-0029 D9.2a forbids; C, because it keeps the measured wrong refusal.
Self-check: on ① alone B; do ②③④ flip it: no (② zero pull favours a small fix, which B is; ③ favours B; ④ is neutral).
Confidence gaps: premise 3 (the stripped tenant rule while the package is off) is read in the code, not measured; the dev's B pins should measure it as the re-enable control does. HotCRM and cloud were not searched for same-name extender rules. The topic's "a disabled package holds no name" could be read by the maintainer as covering object member names too; if so, A is the literal reading, and its silent state would need its own follow-up.
After the ruling
B: zone o3-P takes the card back to pm:queue with Ruled: and dispatches one objectql PR. tenantRuleCopyRefusal builds its map from packagedRules(withheld.kept) and then adds, for each name in withheld.withheldRules, the rule the withheld extenders ship (fold order, last wins). Pins: (1) enabled extender plus later disabled extender, same name: a message-only copy of the served rule is accepted; (2) a copy carrying a changed condition under a name only the disabled extender ships is refused with today's error; (3) re-enable control: after enable, the load report names the copy saved in (1) once and the package rule runs, as for a package upgrade. Docblock of tenantRuleCopyRefusal rewritten to say both halves. Lands after PR fix(objectql): withhold a disabled extender's rules from the packaged object base #38622 (same file family).
A: same lane, one call site and the same three pins with (2) flipped to accepted, plus a follow-up card for the silent state on re-enable.
Triage: isolated review of the decision analysis 7258301085 before it goes to the maintainer (read-only, origin/main7213177, code read, nothing run). Verdict: sound with corrections; B still recommended.
Premises 1–3 hold (registry-object-registration.ts:1514-1517, :367/:699/:877, :762-787; registry-top-level.ts:791-812); premise 3 is already pinned by registry-disabled-package-extensions.test.ts:121-131.
Reach is wider: one disabled extender that overrides a rule the base package ships is enough (packagedRules starts from the owner's rules, :1498-1501).
HotCRM ships extension rules (src/psa/extensions/expense-project.extension.ts:129, src/o2c/extensions/sales-order.extension.ts:88): names are unique, so the measured wrong refusal is not reached there, but disabling psa or o2c makes "names only a disabled package ships", so the A/B fork is live for the first-party product.
The "save door and load judge one way" argument points to A, not B: under A both read withheld.kept; A is the letter of the three docblocks (registry.ts:3174-3175, protocol-authoring-gate.ts:722-724, runtime-authoring-gate.ts:511-512). B's ground is ADR-0029 D9.2a's loud save-door rule plus the reversible-disable write precedents (A view column on a field contributed by a disabled package fails the whole list (400 INVALID_FIELD) instead of dropping the column #34901 member-level fields return on re-enable with no write; ADR-0150's 2026-11-26 note refuses writes while every holder is disabled). B's PR rewords all three docblocks.
A costs more than stated: on re-enable the package rule runs carrying the tenant copy's message and active (registry-top-level.ts:912-915, :939-942), so an active: false copy would switch the package's rule off; nothing is logged while the package is off.
For B's PR: the refusal sentence (registry.ts:1044-1047) should say the rule's package is switched off; count only code-artifact withheld extenders, as packagedRules does (:1503).
The maintainer's decision card is put in the triage thread now.
Ruling · 2026-12-01T06:31Z · the maintainer answered on a decision card in this account's fleet project (2026-12-01T06:29Z).
Question, verbatim: 「定 #38624:停用扩展包的同名校验规则,保存时按什么判?」
Option tapped, verbatim: 「启用包优先,停用包名字保留」. Consequence line: 「修掉「只改提示语也被拒」;只有停用包才有的规则名仍不许占用。一个小 PR 加两条固定测试。」
Options not taken: 「停用包连名字一起让出」 (the card's A), 「不改」 (the card's C).
What it settles: the card's option B.
A name that an enabled layer ships is judged against the enabled rule.
A name that only a disabled package ships stays reserved, and is judged against that package's rule.
Execution follows analysis 7258301085 "After the ruling · B", with the corrections of isolated review 7258410100:
the refusal sentence says the rule's package is switched off;
count only code-artifact withheld extenders;
reword all three docblocks.
It lands after PR #38622.
Tier note: the analysis the maintainer read was brought forward, not re-run. 7258301085 is Served-tier: TIER_DEFAULT; 7258410100 is an isolated review. He was told so.
Area: area:package. This seat only records the ruling; the owning seat's lane takes the card. needs-user-decision → pm:queue.
Claim: PM loop round 1
Session: session_01ADHkmNrdDzc1MxHJU3Tvyb
Account: os-steve
Branch: claude/issue-38624-disabled-extender-rule-copy
Worktree: objectstack-issue-38624
Domain: domain:server
Seat: repo:objectstack@os-steve
Area: ost-P
File surface: packages/objectql/src/registry-object-registration.ts, packages/objectql/src/registry.ts (the ValidationRuleCopyRefusedError sentence and the tenantRuleCopyRefusal docblock only), packages/metadata-protocol/src/protocol-authoring-gate.ts (docblocks only), packages/metadata-protocol/src/runtime-authoring-gate.ts (docblock only), packages/objectql/src/registry-disabled-package-extensions.test.ts, .changeset/38624-*.md (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default (dispatch-gates --tier at 05da5bdb: "no path-derived mandate"), effort: high (reason: S but not mechanical — the refusal must find the disabled package that reserves the name, and the owner itself may be disabled)
Clause-②: no
Metadata-protocol: none
Responsibility: platform code, objectstack (SchemaRegistry.tenantRuleCopyRefusal in packages/objectql) | none — the save door asks only this predicate | tenant admins copying a packaged validation rule on an object where an enabled and a later disabled extender ship one rule name; reachable today (HotCRM ships extension rules)
Thread-read: 7302979086
Premise: holds (read-only measure on origin/main 05da5bd: tenantRuleCopyRefusal registry-object-registration.ts:1518-1540 calls packagedRules(contributors) :1502-1514 over every contributor, never withholdDisabledExtensions :763-787; PR #38622 did not touch this file)
Ruling-ref: 7302979086 — the maintainer's option B: "A name that an enabled layer ships is judged against the enabled rule." / "A name that only a disabled package ships stays reserved, and is judged against that package's rule." With the corrections of 7258410100: the refusal sentence says the rule's package is switched off; count only code-artifact withheld extenders; reword all three docblocks.
Clause-② reading: no — the wrong refusal removed is one the published docblock already denies (registry.tstenantRuleCopyRefusal: "Judged against the code layers registered NOW, the packaged rule set the fold enforces").
Pre-claim lane: domain:server — the fix lands in packages/objectql
Pre-claim deps: PR #38622 merged 2026-11-29 (the ruling's "lands after PR #38622"); check-handover.mjs --inflight: no overlap read
Prior rulings read: 7302979086 (B), analysis 7258301085, isolated review 7258410100, ADR-0029 D9.2a; check-prior-rulings.mjs --card 38624: 121 ⛔ lines across the four files, read by the dev at the hunks it edits; same-day churn: 440574f (#38810) in registry-object-registration.ts — work on the merged code, the card's quoted line numbers have moved
Fold-or-serial: not folded — #38753/#34348 judge disabled holders at the metadata doors, a different mechanism and different files
Serial constraints cleared: none
{
"issue": 38624,
"status": "done",
"branch": "claude/issue-38624-disabled-extender-rule-copy",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38934",
"session": "session_01ADHkmNrdDzc1MxHJU3Tvyb",
"premise_still_valid": true,
"summary": "Option B (ruling 7302979086). tenantRuleCopyRefusal now builds the packaged map from withholdDisabledExtensions(contributors).kept, then adds each name in withheld.withheldRules from the withheld code-artifact extenders (fold order, last wins), recording the disabled packageId. ValidationRuleCopyRefusedError gains switchedOffPackageId (a constructor parameter property) and its sentence says the rule's package is switched off and keeps the name until uninstall; prescription unchanged; still INVALID_METADATA/422. Measured a second half: the storage fold (getStorageObject/getAllStorageObjects folds disabled extenders in) ran reportChangedRuleCopies over every contributor and logged validation_rule_copy_changed for the message-only copy the save door now accepts (1 report while disabled, measured); reportChangedRuleCopies now judges over the same kept set, a one-line change in the same file, so save and load judge one way. Three docblocks reworded (registry.ts tenantRuleCopyRefusal, protocol-authoring-gate.ts packagedRuleCopyRefusalOf, runtime-authoring-gate.ts VALIDATION_RULE_COPY_CHANGED). registry.ts net -1 line (6425, ceiling 6426): the first push grew it +17 and check:facade-delegation-only went red locally, so commit 80965b40 rewrote the edits line-neutrally. No code moved.",
"tests": "At head 80965b40: registry-disabled-package-extensions + registry-validation-rule-by-name + protocol-validation-rule-copy-save-refusal: 'Tests 48 passed (48)'. At 4f1458fc: the 71 objectql local test files touching disablePackage/storage reads/validations/rule-copy, plus metadata-protocol runtime-authoring-gate.validation-rule-copy.test.ts: 'Test Files 71 passed (71) / Tests 3048 passed (3048)'; 'Tests 4 passed (4)'; lock VERDICT command-exit 0. New pins against the unfixed code: 'Tests 5 failed | 25 passed (30)'. Ablations, each restored from HEAD with git status clean afterwards: tenantRuleCopyRefusal kept-filter removed -> 4 red; code-artifact filter removed -> 1 red (tenant-authored pin); reportChangedRuleCopies kept-filter removed -> 1 red (storage-fold assertion). Whole objectql local project: NOT MEASURED locally (killed by my 560s timeout inside the 10-min foreground cap); CI Test Core 1-12/12 success at 80965b40.",
"gates": "Local: objectql typecheck VERDICT command-exit 0 (80965b40); metadata-protocol typecheck VERDICT command-exit 0 (4f1458fc; docblock-only since). Derived list (dispatch-gates --commands, 76 commands, same list at 80965b40): first pass at 4f1458fc, then 69 re-run at 80965b40 -> 68 exit 0, check:dts-closure exit 1 (metadata-protocol dist/index.d.ts missing: a gate in that run rebuilt it without DTS at 14:08; a tree-state artefact, not this diff. The rebuild to clear it was stopped at wrap-up, so this is NOT MEASURED locally; it passed in the first pass and in CI Lint & Repo Gates). check:facade-delegation-only red at 4f1458fc (registry.ts 6443 > 6426), fixed: green at 80965b40 ('6425 lines, ceiling 6426'). NOT MEASURED locally: check-plugin-teardown-shape --self-test (exit 3, shallow clone cannot reach pinned fixture), check:dual-build-cjs-loads and check:lean-entry-closure (exit 3, PREREQUISITE NOT MET: no dist), check-comment-mask-corpus, check:query-options-erasure, check:slot-lookup, check:type-check-debt (exit 124 at my 240s cap on a busy box). --ran reconciliation not run. CI at 80965b40, quoted: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core success, Governed Surface Queue Guard success, Check Changeset success, Dogfood Regression Gate success, Live E2E UI success, Test UI success, Lint · scoped · query-options erasure success, Lint · scoped · slot lookup & corpus success, Type Check · debt ledger success.",
"mcp_calls": "0",
"api_writes": "2 relay strokes: pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/38934/assignees, read-back identical, assignee os-steve), post-stamped comment on #38624 (POST /repos/objectstack-ai/objectstack/issues/38624/comments); plus git push x4 (probe + 3 commits)",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · The card's reach is wider than its two-extender case: one disabled extender that overrides a rule the owner ships is enough. The same code covers it; no separate pin. Noted in the PR's Acceptance notes."],
"files_changed": [".changeset/38624-disabled-extender-rule-copy.md", "packages/metadata-protocol/src/protocol-authoring-gate.ts", "packages/metadata-protocol/src/runtime-authoring-gate.ts", "packages/objectql/src/registry-disabled-package-extensions.test.ts", "packages/objectql/src/registry-object-registration.ts", "packages/objectql/src/registry.ts"],
"line_budget": "+186/-17 over 6 files (dispatch-gates at 4f1458fc: 208 changed lines; 80965b40 changes only registry.ts, line-neutral); registry.ts 6425/6426 ceiling; registry-object-registration.ts 1767 -> about 1790, edits inside existing functions only",
"deviations": "1) reportChangedRuleCopies change (one line plus docblock) goes past the card's literal ask. It is inside the claimed file surface and is the measured disagreement the PM asked to check ('measure both'). 2) Facade line ceiling hit on the first push; fixed line-neutrally, no code moved, no ceiling raised. 3) The harness moved two foreground commands to background (the derived-gate loop, and a metadata-protocol rebuild). The first finished and its results were read. The second was stopped at wrap-up. 4) The PR body does not mention the facade rewrite commit, and its Readings predate 80965b40. Not edited, per the wrap-up order. Clause-② reading agrees: no. Owed reviews: seat L1/L2 on PR #38934; no governed paths."
}
Activity
objectstack-fleet commentedon Nov 29, 2026
triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4
Triage: to the decision box · area:package · domain:server · Bug · p2 ·
needs-user-decision(no pm state) ·findingoff (graded) · size S. Rationale: the measured defect is real, but the fix forks on product semantics: whether a disabled package still reserves the names of the rules it ships (route B, the dev's pick) or vanishes everywhere including name reservation (route A, which reads closest to topic #36229 "a disabled package must vanish everywhere" and to thetenantRuleCopyRefusaldocblock "the packaged rule set the fold enforces"). That choice is the maintainer's, not triage's or the lane's. Ask to the filing seat (repo:objectstack#3): add the decision speed-read (four business lines) and the analysis block perdecision-analysis.mdon this card, quoting the two texts above; triage then pushes it to the maintainer.objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-steve · session_01ADHkmPkrkJ1Kq7CQfJmE9X
维护者速读
Served-tier: TIER_DEFAULT
Analysed-by: session_01ADHkmPkrkJ1Kq7CQfJmE9X
Tier note: the decision-thread row asks for the contract-review tier; this project runs no fable (maintainer's standing order of 2026-11-15, restated for this thread), so this analysis ran at the default judgment tier, effort high. The seat records the quota exit on its seat post. No subagent was used.
Background
A tenant admin who saves an object carrying a copy of a packaged validation rule (same
name) may change only itsmessageandactive; any other change is refused at the save door (ADR-0029 D9.2a, rulings C′ 6524229156 and B 6545641964 on #27949). The save door asksSchemaRegistry.tenantRuleCopyRefusal; the load path asksreportChangedRuleCopiesover the served fold's contributors and only reports. When a package is disabled, the served fold withholds itsextendcontributions (withholdDisabledExtensions), buttenantRuleCopyRefusalstill builds its packaged rule set from every contributor, disabled ones included. With an enabled extender and a later disabled extender shipping a rule of one name, the save door judges against the disabled rule while the fold enforces the enabled one (measured by the #34217 dev on the built registry, PR #38622 Acceptance notes; the card body repeats it).Governing text
packages/objectql/src/registry.ts,tenantRuleCopyRefusaldocblock: "Judged against the code layers registered NOW, the packaged rule set the fold enforces." Read two ways: a disabled package's layers stay registered ("Disable is reversible: its items stay registered",packageScopedHoldersOfdocblock, same file), while the fold no longer enforces them.packages/metadata-protocol/src/protocol-authoring-gate.ts:722(packagedRuleCopyRefusalOf):tenantRuleCopyRefusalis "the one predicate the registry's load report reads too, so the save door and the load judge one way."docs/adr/0029-kernel-object-ownership-and-platform-objects-decomposition.md:565-575): a changed condition is refused loudly at the save door, "never two rules running beside each other, never a silent replacement"; "an extender's or a tenant's rule of a new name is added."packages/objectql/src/registry.ts:4783-4787(packageScopedHoldersOf): a durable judgment reads every holder, disabled or not, "because a binding must not move with a reversible disable."packages/metadata/CHANGELOG.md:669).Protocol
No spec change under any route:
Clause-②: no,Metadata-protocol: none. What an author can write does not change; only which packaged rule a save is judged against. Route A widens what the save door accepts (a name only a disabled package ships becomes free while it is off); route B narrows nothing that is correct today and widens only the measured wrong refusal.Premises (each with its re-check)
grep -n "this.packagedRules(contributors)" packages/objectql/src/registry-object-registration.ts→:1517(refusal) and:1546(load report);:1514takescontributorsstraight fromobjectContributors.get(fqn).grep -n "foldExtendersOntoDefinition(withheld.kept" packages/objectql/src/registry-object-registration.ts→ 3 hits (:367,:699,:877); the report runs inside that fold (:1001).grep -n "withheld.withheldRules.has(rule.name)" packages/objectql/src/registry-top-level.ts→:796,:806(withoutWithheldMembers);withheldRulescounts the owner and kept extenders only, never the tenant overlay (registry-object-registration.ts:770-783). Read in the code, not measured.grep -rl "defineObjectExtension\|objectExtensions" examples packages/apps --include=*.ts | grep -v "\.test\." | xargs grep -l "validations:"→ 0 files (3 extension files exist, none ships a rule). HotCRM and cloud not read (outside this lane's repo scope).The problem
When two packages extend one object with a rule of the same name and the later one is switched off, the admin is refused for editing the message of the rule they see and enforce, and is allowed to save a copy whose condition does not run. The question is what a switched-off package's rule names mean at the save door: nothing (A), or still reserved where no enabled package ships that name (B).
Options
withholdDisabledExtensions(contributors)?.kept)validation_rule_copy_changederror in the server logwithheld.withheldRules): judge against that extender's rule, as todaytenantRuleCopyRefusalreusingwithholdDisabledExtensions, plus two pins and a re-enable control); in-flight precedent of the same family: PR #38622, +61/−10 in 4 files (not landed)What each means for the business
Four axes
packageScopedHoldersOf), and a bare save of a disabled-only name is refused (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). Mainstream reference: in Salesforce a deactivated validation rule keeps its API name and a second rule of that name is refused; only removal frees it. B is that shape for rule names; it also restores "the save door and the load judge one way" in both states (served names: both judge the served rule; disabled-only names: the copy is not served while off and both judge the package rule after re-enable). A breaks that sentence after re-enable; C breaks it while the package is off. B adds no special case: the withheld-names set it reuses is the one the fold already computes.Prior rulings read:
tenantRuleCopyRefusal→ 4 hits (#38624, #34217, #28448, #27949); "holds no name" → 372 hits (read #34144 ruled A, #33385, #32183, #34260);includeDisabledPackages→ 12 hits (read #32183); ADR-0029 D9.2a (rulings C′ 6524229156, B 6545641964), ADR-0150 D3; thread: none.Recommendation
B. From ① alone: a disable is a pause, so what is served is what is judged, and what the paused package will take back stays booked; this is the split the platform already uses for package-scoped names and the only route where save door and load report agree in both states.
Not taken: A, because it lets a save succeed for a rule that never runs, the silent replacement ADR-0029 D9.2a forbids; C, because it keeps the measured wrong refusal.
Self-check: on ① alone B; do ②③④ flip it: no (② zero pull favours a small fix, which B is; ③ favours B; ④ is neutral).
Confidence gaps: premise 3 (the stripped tenant rule while the package is off) is read in the code, not measured; the dev's B pins should measure it as the re-enable control does. HotCRM and cloud were not searched for same-name extender rules. The topic's "a disabled package holds no name" could be read by the maintainer as covering object member names too; if so, A is the literal reading, and its silent state would need its own follow-up.
After the ruling
pm:queuewithRuled:and dispatches one objectql PR.tenantRuleCopyRefusalbuilds its map frompackagedRules(withheld.kept)and then adds, for each name inwithheld.withheldRules, the rule the withheld extenders ship (fold order, last wins). Pins: (1) enabled extender plus later disabled extender, same name: a message-only copy of the served rule is accepted; (2) a copy carrying a changed condition under a name only the disabled extender ships is refused with today's error; (3) re-enable control: after enable, the load report names the copy saved in (1) once and the package rule runs, as for a package upgrade. Docblock oftenantRuleCopyRefusalrewritten to say both halves. Lands after PR fix(objectql): withhold a disabled extender's rules from the packaged object base #38622 (same file family).objectstack-fleet commentedon Nov 29, 2026
triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4
Triage: isolated review of the decision analysis 7258301085 before it goes to the maintainer (read-only,
origin/main7213177, code read, nothing run). Verdict: sound with corrections; B still recommended.registry-object-registration.ts:1514-1517,:367/:699/:877,:762-787;registry-top-level.ts:791-812); premise 3 is already pinned byregistry-disabled-package-extensions.test.ts:121-131.packagedRulesstarts from the owner's rules,:1498-1501).src/psa/extensions/expense-project.extension.ts:129,src/o2c/extensions/sales-order.extension.ts:88): names are unique, so the measured wrong refusal is not reached there, but disabling psa or o2c makes "names only a disabled package ships", so the A/B fork is live for the first-party product.withheld.kept; A is the letter of the three docblocks (registry.ts:3174-3175,protocol-authoring-gate.ts:722-724,runtime-authoring-gate.ts:511-512). B's ground is ADR-0029 D9.2a's loud save-door rule plus the reversible-disable write precedents (A view column on a field contributed by a disabled package fails the whole list (400 INVALID_FIELD) instead of dropping the column #34901 member-level fields return on re-enable with no write; ADR-0150's 2026-11-26 note refuses writes while every holder is disabled). B's PR rewords all three docblocks.messageandactive(registry-top-level.ts:912-915,:939-942), so anactive: falsecopy would switch the package's rule off; nothing is logged while the package is off.registry.ts:1044-1047) should say the rule's package is switched off; count only code-artifact withheld extenders, aspackagedRulesdoes (:1503).The maintainer's decision card is put in the triage thread now.
objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS
Ruling · 2026-12-01T06:31Z · the maintainer answered on a decision card in this account's fleet project (2026-12-01T06:29Z).
Question, verbatim: 「定 #38624:停用扩展包的同名校验规则,保存时按什么判?」
Option tapped, verbatim: 「启用包优先,停用包名字保留」. Consequence line: 「修掉「只改提示语也被拒」;只有停用包才有的规则名仍不许占用。一个小 PR 加两条固定测试。」
Options not taken: 「停用包连名字一起让出」 (the card's A), 「不改」 (the card's C).
What it settles: the card's option B.
Execution follows analysis 7258301085 "After the ruling · B", with the corrections of isolated review 7258410100:
It lands after PR #38622.
Tier note: the analysis the maintainer read was brought forward, not re-run. 7258301085 is
Served-tier: TIER_DEFAULT; 7258410100 is an isolated review. He was told so.Area: area:package. This seat only records the ruling; the owning seat's lane takes the card.
needs-user-decision→pm:queue.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb
Claim: PM loop round 1
Session:
session_01ADHkmNrdDzc1MxHJU3TvybAccount:
os-steveBranch:
claude/issue-38624-disabled-extender-rule-copyWorktree:
objectstack-issue-38624Domain:
domain:serverSeat:
repo:objectstack@os-steveArea: ost-P
File surface:
packages/objectql/src/registry-object-registration.ts,packages/objectql/src/registry.ts(theValidationRuleCopyRefusedErrorsentence and thetenantRuleCopyRefusaldocblock only),packages/metadata-protocol/src/protocol-authoring-gate.ts(docblocks only),packages/metadata-protocol/src/runtime-authoring-gate.ts(docblock only),packages/objectql/src/registry-disabled-package-extensions.test.ts,.changeset/38624-*.md(stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default (dispatch-gates --tier at 05da5bdb: "no path-derived mandate"),effort: high (reason: S but not mechanical — the refusal must find the disabled package that reserves the name, and the owner itself may be disabled)Clause-②: no
Metadata-protocol: none
Responsibility:
platform code, objectstack (SchemaRegistry.tenantRuleCopyRefusal in packages/objectql) | none — the save door asks only this predicate | tenant admins copying a packaged validation rule on an object where an enabled and a later disabled extender ship one rule name; reachable today (HotCRM ships extension rules)Thread-read: 7302979086
Premise: holds (read-only measure on origin/main 05da5bd:
tenantRuleCopyRefusalregistry-object-registration.ts:1518-1540 callspackagedRules(contributors):1502-1514 over every contributor, neverwithholdDisabledExtensions:763-787; PR #38622 did not touch this file)Ruling-ref: 7302979086 — the maintainer's option B: "A name that an enabled layer ships is judged against the enabled rule." / "A name that only a disabled package ships stays reserved, and is judged against that package's rule." With the corrections of 7258410100: the refusal sentence says the rule's package is switched off; count only code-artifact withheld extenders; reword all three docblocks.
Clause-② reading:
no— the wrong refusal removed is one the published docblock already denies (registry.tstenantRuleCopyRefusal: "Judged against the code layers registered NOW, the packaged rule set the fold enforces").Pre-claim lane:
domain:server— the fix lands inpackages/objectqlPre-claim deps: PR #38622 merged 2026-11-29 (the ruling's "lands after PR #38622");
check-handover.mjs --inflight: no overlap readPrior rulings read: 7302979086 (B), analysis 7258301085, isolated review 7258410100, ADR-0029 D9.2a;
check-prior-rulings.mjs --card 38624: 121 ⛔ lines across the four files, read by the dev at the hunks it edits; same-day churn: 440574f (#38810) inregistry-object-registration.ts— work on the merged code, the card's quoted line numbers have movedFold-or-serial: not folded — #38753/#34348 judge disabled holders at the metadata doors, a different mechanism and different files
Serial constraints cleared: none
objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb
os-dev-report
{ "issue": 38624, "status": "done", "branch": "claude/issue-38624-disabled-extender-rule-copy", "pr": "https://github.com/objectstack-ai/objectstack/pull/38934", "session": "session_01ADHkmNrdDzc1MxHJU3Tvyb", "premise_still_valid": true, "summary": "Option B (ruling 7302979086). tenantRuleCopyRefusal now builds the packaged map from withholdDisabledExtensions(contributors).kept, then adds each name in withheld.withheldRules from the withheld code-artifact extenders (fold order, last wins), recording the disabled packageId. ValidationRuleCopyRefusedError gains switchedOffPackageId (a constructor parameter property) and its sentence says the rule's package is switched off and keeps the name until uninstall; prescription unchanged; still INVALID_METADATA/422. Measured a second half: the storage fold (getStorageObject/getAllStorageObjects folds disabled extenders in) ran reportChangedRuleCopies over every contributor and logged validation_rule_copy_changed for the message-only copy the save door now accepts (1 report while disabled, measured); reportChangedRuleCopies now judges over the same kept set, a one-line change in the same file, so save and load judge one way. Three docblocks reworded (registry.ts tenantRuleCopyRefusal, protocol-authoring-gate.ts packagedRuleCopyRefusalOf, runtime-authoring-gate.ts VALIDATION_RULE_COPY_CHANGED). registry.ts net -1 line (6425, ceiling 6426): the first push grew it +17 and check:facade-delegation-only went red locally, so commit 80965b40 rewrote the edits line-neutrally. No code moved.", "tests": "At head 80965b40: registry-disabled-package-extensions + registry-validation-rule-by-name + protocol-validation-rule-copy-save-refusal: 'Tests 48 passed (48)'. At 4f1458fc: the 71 objectql local test files touching disablePackage/storage reads/validations/rule-copy, plus metadata-protocol runtime-authoring-gate.validation-rule-copy.test.ts: 'Test Files 71 passed (71) / Tests 3048 passed (3048)'; 'Tests 4 passed (4)'; lock VERDICT command-exit 0. New pins against the unfixed code: 'Tests 5 failed | 25 passed (30)'. Ablations, each restored from HEAD with git status clean afterwards: tenantRuleCopyRefusal kept-filter removed -> 4 red; code-artifact filter removed -> 1 red (tenant-authored pin); reportChangedRuleCopies kept-filter removed -> 1 red (storage-fold assertion). Whole objectql local project: NOT MEASURED locally (killed by my 560s timeout inside the 10-min foreground cap); CI Test Core 1-12/12 success at 80965b40.", "gates": "Local: objectql typecheck VERDICT command-exit 0 (80965b40); metadata-protocol typecheck VERDICT command-exit 0 (4f1458fc; docblock-only since). Derived list (dispatch-gates --commands, 76 commands, same list at 80965b40): first pass at 4f1458fc, then 69 re-run at 80965b40 -> 68 exit 0, check:dts-closure exit 1 (metadata-protocol dist/index.d.ts missing: a gate in that run rebuilt it without DTS at 14:08; a tree-state artefact, not this diff. The rebuild to clear it was stopped at wrap-up, so this is NOT MEASURED locally; it passed in the first pass and in CI Lint & Repo Gates). check:facade-delegation-only red at 4f1458fc (registry.ts 6443 > 6426), fixed: green at 80965b40 ('6425 lines, ceiling 6426'). NOT MEASURED locally: check-plugin-teardown-shape --self-test (exit 3, shallow clone cannot reach pinned fixture), check:dual-build-cjs-loads and check:lean-entry-closure (exit 3, PREREQUISITE NOT MET: no dist), check-comment-mask-corpus, check:query-options-erasure, check:slot-lookup, check:type-check-debt (exit 124 at my 240s cap on a busy box). --ran reconciliation not run. CI at 80965b40, quoted: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core success, Governed Surface Queue Guard success, Check Changeset success, Dogfood Regression Gate success, Live E2E UI success, Test UI success, Lint · scoped · query-options erasure success, Lint · scoped · slot lookup & corpus success, Type Check · debt ledger success.", "mcp_calls": "0", "api_writes": "2 relay strokes: pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/38934/assignees, read-back identical, assignee os-steve), post-stamped comment on #38624 (POST /repos/objectstack-ai/objectstack/issues/38624/comments); plus git push x4 (probe + 3 commits)", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · The card's reach is wider than its two-extender case: one disabled extender that overrides a rule the owner ships is enough. The same code covers it; no separate pin. Noted in the PR's Acceptance notes."], "files_changed": [".changeset/38624-disabled-extender-rule-copy.md", "packages/metadata-protocol/src/protocol-authoring-gate.ts", "packages/metadata-protocol/src/runtime-authoring-gate.ts", "packages/objectql/src/registry-disabled-package-extensions.test.ts", "packages/objectql/src/registry-object-registration.ts", "packages/objectql/src/registry.ts"], "line_budget": "+186/-17 over 6 files (dispatch-gates at 4f1458fc: 208 changed lines; 80965b40 changes only registry.ts, line-neutral); registry.ts 6425/6426 ceiling; registry-object-registration.ts 1767 -> about 1790, edits inside existing functions only", "deviations": "1) reportChangedRuleCopies change (one line plus docblock) goes past the card's literal ask. It is inside the claimed file surface and is the measured disagreement the PM asked to check ('measure both'). 2) Facade line ceiling hit on the first push; fixed line-neutrally, no code moved, no ceiling raised. 3) The harness moved two foreground commands to background (the derived-gate loop, and a metadata-protocol rebuild). The first finished and its results were read. The second was stopped at wrap-up. 4) The PR body does not mention the facade rewrite commit, and its Readings predate 80965b40. Not edited, per the wrap-up order. Clause-② reading agrees: no. Owed reviews: seat L1/L2 on PR #38934; no governed paths." }objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb
Delivered by PR #38934 (merge commit
ca266052b85b79a47f76a2283ece158525c88fe7); the card closed on the merge.pm:dispatchedremoved.feat(pm): read a decision analysis's Served-tier / Analysed-by pair, …
fix(objectql): judge a tenant rule copy against the served rule while…