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
i18n: the packaged base reads a disabled package's same-name validation rule, so the enabled rule's message stays untranslated #34217
Filing gate: ① a gap the #33800 dev measured in round 3 of PR #34156, after review-a's should-fix 6903069973 on that PR. PR #34156 fixes the same gap for added fields only (packagedAddedFields). ⛔ Not a claim.
SchemaRegistry.getPackagedObjectBase builds validations through packagedRules from every extend contributor, disabled packages included. The served fold withholds a disabled package's extension.
Measured with a probe on the built dist, at PR #34156 head 265a82f18: an enabled extender and a later disabled extender declare a rule of the same name. The served object carries the enabled rule's message, but the base carries the disabled one's: { served: ['Enabled says.'], base: ['Disabled says.'] }. The translator therefore reads the enabled rule's message as diverged from its packaged baseline, and it stays in the source language under a non-default locale. engine-validation-messages reads the same base.
Change
Apply the isPackageDisabled filter that PR #34156 adds for added fields to the contributors packagedRules reads, and to its extended test. Add one pin beside #34156's: a disabled later extender's same-name rule leaves the base on the enabled rule, and the zh-CN read translates it.
Prior rulings read: review-a's comment 6903069973 on PR #34156, which names this follow-up; seat ruling 6895879286 on #33800, option A. No ruling makes the base read disabled packages on purpose.
Dedupe words: packagedRules disabled package; getPackagedObjectBase validations disabled; withholdDisabledExtensions packaged base.
Triage: lands in area:package · domain:server · Bug · p2 · pm:queue · size XS; rationale: a disabled package's same-name validation rule still acts as the packaged base, so the enabled rule's message is judged "customised" and stays untranslated in non-default languages. That is wrong shipped user text (p2), and a case of the maintainer's rule that a disabled package must vanish everywhere (topic #36229, 「停用就该全部消失」), so p3 → p2. Graded, not chased (area:package has no seat). Audit restatement, tier 3. Recorded 2026-11-27T08:18Z.
Claim: PM loop round 1
Session: session_01ADHkmRar3Kkg6SpwVgaaVE
Account: os-steve
Branch: claude/issue-34217-packaged-rules-disabled
Worktree: objectstack-issue-34217
Domain: domain:server
Seat: repo:objectstack#3
Area: o3-P
File surface: packages/objectql/src/registry-platform-global.ts, packages/objectql/src/registry-object-registration.ts, a new or neighbouring pin in packages/rest/src/meta-object-validation-message-i18n.test.ts or packages/objectql/src/, .changeset/34217-*.md (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default (dispatch-gates --tier at ee9fd3d4: "no path-derived mandate", floor/default per card; a fix with a small design judgment ⇒ default), effort: medium (XS bug, one filter plus one pin)
Clause-②: no
Metadata-protocol: none
Responsibility: platform code, objectstack (SchemaRegistry.getPackagedObjectBase / packagedRules in packages/objectql) | none | any deployment where an enabled and a later disabled extender declare a same-name validation rule, read under a non-default locale; reachable today
Thread-read: 7213406468
Premise: holds (read-only measure on origin/main ee9fd3d: registry-platform-global.ts:527-529extended and :556packagedRules(contributors) take every extender, while :536-545 filter isPackageDisabled; registry-object-registration.ts:1496-1507 merges disabled extenders by name. Probe NOT MEASURED: no installed deps in the reader container)
Pre-claim lane: domain:server — the fix lands in packages/objectql/src/ (objectql, server family)
Pre-claim deps: none named; #34156 (the added-fields filter this mirrors) is merged; check-handover.mjs --inflight clear on the surface; overlap-check.mjs clean
Prior rulings read: check-prior-rulings.mjs --card 34217 — 0 rulings on the card thread; ADR hits are title-term matches only, none on packagedRules / getPackagedObjectBase (grep docs/adr/**: 0 files); the card cites review-a 6903069973 on PR #34156 and seat ruling 6895879286 (#33800, option A), and no ruling makes the base read a disabled package on purpose
Fold-or-serial: not folded — no other zone card shares this mechanism or file (the metadata-protocol cards live in packages/metadata-protocol / packages/rest doors); serial queue: none
Serial constraints cleared: none (no in-flight claim declares these files)
{
"issue": 34217,
"status": "done",
"branch": "claude/issue-34217-packaged-rules-disabled",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38622",
"session": "session_01ADHkmRar3Kkg6SpwVgaaVE",
"premise_still_valid": true,
"summary": "getPackagedObjectBase (packages/objectql/src/registry-platform-global.ts) now filters a disabled package's extend contributors once, before the extended test, packagedRules, the added fields and the placed tabs; before, only the fields and tabs filtered, so a disabled later extender's same-name rule became the packaged rule. Premise reproduced on origin/main ee9fd3d4 dist: the base answered ['Disabled says.'] while the fold served the enabled message. The getPackagedObjectBase docblock in packages/objectql/src/registry.ts said the rule half still reads disabled extenders; that sentence became false and is rewritten (same line count). Pin: a new top-level describe in packages/rest/src/meta-object-field-patch-i18n.test.ts beside the disabled added-field case, because meta-object-validation-message-i18n.test.ts mocks the protocol and has no real registry. The tenant-copy judgment (tenantRuleCopyRefusal) shares the defect (measured) but is NOT touched: the same filter would stop reserving a rule name only the disabled package ships, which is a behaviour change the card does not rule on (see open_questions).",
"tests": "Red at 5e8988fc (pin only, objectql dist built from origin/main source): vitest run src/meta-object-field-patch-i18n.test.ts -> AssertionError: expected [ 'Disabled says.' ] to deeply equal [ 'A task needs a title.' ]; Tests 1 failed | 18 passed (19); lock VERDICT command-exit 1. Green at e4a20936 after objectql rebuild: meta-object-field-patch-i18n + meta-object-validation-message-i18n -> Test Files 2 passed (2), Tests 22 passed (22); VERDICT command-exit 0. @objectstack/objectql typecheck exit 0, @objectstack/rest typecheck exit 0, objectql full vitest run -> Test Files 641 passed (641), Tests 14544 passed (14544); VERDICT command-exit 0. The red/green pair is the ablation: the same test file against the dist without and with the fix. Head b1211b6b only adds the changeset on top of e4a20936. rest full suite and test:repo are not run locally (only one rest test file changed, rest public surface unchanged); CI Test Core covers both. Tenant-copy probe on the built dist: a message-only copy of the served rule is refused INVALID_METADATA ('this copy changes condition'); a copy carrying the disabled rule's condition is accepted.",
"gates": "Local, at head b1211b6b: dispatch-gates --commands (repo objectstack-ai/objectstack, commit b1211b6b) derived 75 families; all 75 run, each exit code captured before any pipe; 73 exit 0; 2 exit 3 PREREQUISITE (NOT MEASURED): node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone, fixture commit unreachable), pnpm check:dual-build-cjs-loads (no full-workspace dist). --ran reconciliation: '75 derived, 73 run, 2 NOT-MEASURED, 0 UNRUN' (2 DERIVED from a recorded exit 3). PR check-runs: NOT MEASURED, reason: CI had not finished when this report was written; PM L1 reads them.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create -> POST /repos/objectstack-ai/objectstack/pulls (PR 38622, draft, body read back identical 4563 bytes); post-stamped -> POST /repos/objectstack-ai/objectstack/issues/34217/comments (this report). Not REST: git push of the branch (empty-branch probe + 3 commit pushes). One earlier relay pr_create carrying assignees was refused by the session permission classifier before sending, and one by the relay validator (actions file shape); zero writes from either.",
"open_questions": [
{
"question": "tenantRuleCopyRefusal judges a tenant's copy of a rule against packagedRules over every contributor, disabled ones included. Measured: a message-only copy of the SERVED rule is refused, and a copy carrying the disabled rule's condition is accepted. Should it judge against the rules the served fold enforces?",
"options": [
"A: filter it with withholdDisabledExtensions(contributors)?.kept, exactly as the served fold does; a tenant may then save a rule of a name ONLY a disabled package ships with its own condition (it is withheld while disabled; on re-enable the package rule runs and reportChangedRuleCopies logs validation_rule_copy_changed). One line plus a pin, 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 disabled rule stays reserved for every name it ships."
],
"recommendation": "B, because it fixes the measured wrong answer (a legitimate message edit refused, a condition change accepted) without opening a save that later collides with the package's rule on re-enable; A is simpler, but it means a disabled package no longer reserves its names, and that needs a product call."
},
{
"question": "The dispatch said not to assign the PR, while os-dev rule 2 says pr_create carries the claim's Account as assignee (and os-dev wins on conflict). The PR was opened with no assignee.",
"options": [
"A: the seat assigns os-steve",
"B: leave it unassigned"
],
"recommendation": "A, the claim's Account, per os-dev rule 2; the zone was to do it anyway."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"class: b · 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): a message-only copy of the served rule is refused INVALID_METADATA, a copy carrying a disabled extender's condition is accepted · contract: tenantRuleCopyRefusal docblock (registry.ts) 'Judged against the code layers registered NOW, the packaged rule set the fold enforces' · Seam: runtime:tenantRuleCopyRefusal (registry-object-registration.ts) → runtime:protocol-authoring-gate tenant save · evidence in PR 38622 Acceptance notes · dedupe words: tenantRuleCopyRefusal disabled package; packaged rule copy refused disabled extender; packagedRules raw contributors",
"carrier: none · noted, not filed: the storage fold (resolveStorageObject) folds every contributor including disabled ones, and its reportChangedRuleCopies judgment matches the rules that fold merges; consistent within that layer, not traced further"
],
"deviations": "Pin host is packages/rest/src/meta-object-field-patch-i18n.test.ts (the file holding the #34156 pin it mirrors, real SchemaRegistry harness), not meta-object-validation-message-i18n.test.ts (mocked protocol, no registry). packages/objectql/src/registry.ts docblock edited (outside the claim's file surface): the sentence 'The rule half, packagedRules, still reads every code extender, disabled ones included' became false with this change. registry-object-registration.ts not edited (packagedRules stays caller-filtered; tenantRuleCopyRefusal left for a ruling). PR opened without assignee: the first attempt carrying assignees os-steve was refused by the session permission classifier (Destructive or Unwanted Actions); retried once on the same relay route without assignees, as the dispatch asked.",
"files_changed": [
"packages/objectql/src/registry-platform-global.ts",
"packages/objectql/src/registry.ts",
"packages/rest/src/meta-object-field-patch-i18n.test.ts",
".changeset/34217-packaged-rules-disabled.md"
],
"line_budget": "71 changed lines (+61 / -10, 4 files) vs the 3000 human-merge threshold: under"
}
Landed: PR #38622 merged as 1d19acfecb2b89a995eb3baf242240859f2c9dce; Fixes #34217 closed this card. pm:dispatched removed in this stroke. Follow-up on the save side: #38624.
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:package · domain:server · Bug · p2 · pm:queue · size XS; rationale: a disabled package's same-name validation rule still acts as the packaged base, so the enabled rule's message is judged "customised" and stays untranslated in non-default languages. That is wrong shipped user text (p2), and a case of the maintainer's rule that a disabled package must vanish everywhere (topic #36229, 「停用就该全部消失」), so p3 → p2. Graded, not chased (area:package has no seat). Audit restatement, tier 3. Recorded 2026-11-27T08:18Z.
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-steve · session_01ADHkmRar3Kkg6SpwVgaaVE
Claim: PM loop round 1
Session:
session_01ADHkmRar3Kkg6SpwVgaaVEAccount:
os-steveBranch:
claude/issue-34217-packaged-rules-disabledWorktree:
objectstack-issue-34217Domain:
domain:serverSeat:
repo:objectstack#3Area: o3-P
File surface:
packages/objectql/src/registry-platform-global.ts,packages/objectql/src/registry-object-registration.ts, a new or neighbouring pin inpackages/rest/src/meta-object-validation-message-i18n.test.tsorpackages/objectql/src/,.changeset/34217-*.md(stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default (dispatch-gates --tier at ee9fd3d4: "no path-derived mandate", floor/default per card; a fix with a small design judgment ⇒ default),effort: medium (XS bug, one filter plus one pin)Clause-②: no
Metadata-protocol: none
Responsibility:
platform code, objectstack (SchemaRegistry.getPackagedObjectBase / packagedRules in packages/objectql) | none | any deployment where an enabled and a later disabled extender declare a same-name validation rule, read under a non-default locale; reachable todayThread-read: 7213406468
Premise: holds (read-only measure on origin/main ee9fd3d:
registry-platform-global.ts:527-529extendedand:556packagedRules(contributors)take every extender, while:536-545filterisPackageDisabled;registry-object-registration.ts:1496-1507merges disabled extenders by name. Probe NOT MEASURED: no installed deps in the reader container)Pre-claim lane:
domain:server— the fix lands inpackages/objectql/src/(objectql, server family)Pre-claim deps: none named; #34156 (the added-fields filter this mirrors) is merged;
check-handover.mjs --inflightclear on the surface;overlap-check.mjscleanPrior rulings read:
check-prior-rulings.mjs --card 34217— 0 rulings on the card thread; ADR hits are title-term matches only, none onpackagedRules/getPackagedObjectBase(grepdocs/adr/**: 0 files); the card cites review-a 6903069973 on PR #34156 and seat ruling 6895879286 (#33800, option A), and no ruling makes the base read a disabled package on purposeFold-or-serial: not folded — no other zone card shares this mechanism or file (the metadata-protocol cards live in
packages/metadata-protocol/packages/restdoors); serial queue: noneSerial constraints cleared: none (no in-flight claim declares these files)
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-steve · session_01ADHkmRar3Kkg6SpwVgaaVE
os-dev-report
{ "issue": 34217, "status": "done", "branch": "claude/issue-34217-packaged-rules-disabled", "pr": "https://github.com/objectstack-ai/objectstack/pull/38622", "session": "session_01ADHkmRar3Kkg6SpwVgaaVE", "premise_still_valid": true, "summary": "getPackagedObjectBase (packages/objectql/src/registry-platform-global.ts) now filters a disabled package's extend contributors once, before the extended test, packagedRules, the added fields and the placed tabs; before, only the fields and tabs filtered, so a disabled later extender's same-name rule became the packaged rule. Premise reproduced on origin/main ee9fd3d4 dist: the base answered ['Disabled says.'] while the fold served the enabled message. The getPackagedObjectBase docblock in packages/objectql/src/registry.ts said the rule half still reads disabled extenders; that sentence became false and is rewritten (same line count). Pin: a new top-level describe in packages/rest/src/meta-object-field-patch-i18n.test.ts beside the disabled added-field case, because meta-object-validation-message-i18n.test.ts mocks the protocol and has no real registry. The tenant-copy judgment (tenantRuleCopyRefusal) shares the defect (measured) but is NOT touched: the same filter would stop reserving a rule name only the disabled package ships, which is a behaviour change the card does not rule on (see open_questions).", "tests": "Red at 5e8988fc (pin only, objectql dist built from origin/main source): vitest run src/meta-object-field-patch-i18n.test.ts -> AssertionError: expected [ 'Disabled says.' ] to deeply equal [ 'A task needs a title.' ]; Tests 1 failed | 18 passed (19); lock VERDICT command-exit 1. Green at e4a20936 after objectql rebuild: meta-object-field-patch-i18n + meta-object-validation-message-i18n -> Test Files 2 passed (2), Tests 22 passed (22); VERDICT command-exit 0. @objectstack/objectql typecheck exit 0, @objectstack/rest typecheck exit 0, objectql full vitest run -> Test Files 641 passed (641), Tests 14544 passed (14544); VERDICT command-exit 0. The red/green pair is the ablation: the same test file against the dist without and with the fix. Head b1211b6b only adds the changeset on top of e4a20936. rest full suite and test:repo are not run locally (only one rest test file changed, rest public surface unchanged); CI Test Core covers both. Tenant-copy probe on the built dist: a message-only copy of the served rule is refused INVALID_METADATA ('this copy changes condition'); a copy carrying the disabled rule's condition is accepted.", "gates": "Local, at head b1211b6b: dispatch-gates --commands (repo objectstack-ai/objectstack, commit b1211b6b) derived 75 families; all 75 run, each exit code captured before any pipe; 73 exit 0; 2 exit 3 PREREQUISITE (NOT MEASURED): node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone, fixture commit unreachable), pnpm check:dual-build-cjs-loads (no full-workspace dist). --ran reconciliation: '75 derived, 73 run, 2 NOT-MEASURED, 0 UNRUN' (2 DERIVED from a recorded exit 3). PR check-runs: NOT MEASURED, reason: CI had not finished when this report was written; PM L1 reads them.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create -> POST /repos/objectstack-ai/objectstack/pulls (PR 38622, draft, body read back identical 4563 bytes); post-stamped -> POST /repos/objectstack-ai/objectstack/issues/34217/comments (this report). Not REST: git push of the branch (empty-branch probe + 3 commit pushes). One earlier relay pr_create carrying assignees was refused by the session permission classifier before sending, and one by the relay validator (actions file shape); zero writes from either.", "open_questions": [ { "question": "tenantRuleCopyRefusal judges a tenant's copy of a rule against packagedRules over every contributor, disabled ones included. Measured: a message-only copy of the SERVED rule is refused, and a copy carrying the disabled rule's condition is accepted. Should it judge against the rules the served fold enforces?", "options": [ "A: filter it with withholdDisabledExtensions(contributors)?.kept, exactly as the served fold does; a tenant may then save a rule of a name ONLY a disabled package ships with its own condition (it is withheld while disabled; on re-enable the package rule runs and reportChangedRuleCopies logs validation_rule_copy_changed). One line plus a pin, 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 disabled rule stays reserved for every name it ships." ], "recommendation": "B, because it fixes the measured wrong answer (a legitimate message edit refused, a condition change accepted) without opening a save that later collides with the package's rule on re-enable; A is simpler, but it means a disabled package no longer reserves its names, and that needs a product call." }, { "question": "The dispatch said not to assign the PR, while os-dev rule 2 says pr_create carries the claim's Account as assignee (and os-dev wins on conflict). The PR was opened with no assignee.", "options": [ "A: the seat assigns os-steve", "B: leave it unassigned" ], "recommendation": "A, the claim's Account, per os-dev rule 2; the zone was to do it anyway." } ], "security_findings": "none", "out_of_scope_findings": [ "class: b · 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): a message-only copy of the served rule is refused INVALID_METADATA, a copy carrying a disabled extender's condition is accepted · contract: tenantRuleCopyRefusal docblock (registry.ts) 'Judged against the code layers registered NOW, the packaged rule set the fold enforces' · Seam: runtime:tenantRuleCopyRefusal (registry-object-registration.ts) → runtime:protocol-authoring-gate tenant save · evidence in PR 38622 Acceptance notes · dedupe words: tenantRuleCopyRefusal disabled package; packaged rule copy refused disabled extender; packagedRules raw contributors", "carrier: none · noted, not filed: the storage fold (resolveStorageObject) folds every contributor including disabled ones, and its reportChangedRuleCopies judgment matches the rules that fold merges; consistent within that layer, not traced further" ], "deviations": "Pin host is packages/rest/src/meta-object-field-patch-i18n.test.ts (the file holding the #34156 pin it mirrors, real SchemaRegistry harness), not meta-object-validation-message-i18n.test.ts (mocked protocol, no registry). packages/objectql/src/registry.ts docblock edited (outside the claim's file surface): the sentence 'The rule half, packagedRules, still reads every code extender, disabled ones included' became false with this change. registry-object-registration.ts not edited (packagedRules stays caller-filtered; tenantRuleCopyRefusal left for a ruling). PR opened without assignee: the first attempt carrying assignees os-steve was refused by the session permission classifier (Destructive or Unwanted Actions); retried once on the same relay route without assignees, as the dispatch asked.", "files_changed": [ "packages/objectql/src/registry-platform-global.ts", "packages/objectql/src/registry.ts", "packages/rest/src/meta-object-field-patch-i18n.test.ts", ".changeset/34217-packaged-rules-disabled.md" ], "line_budget": "71 changed lines (+61 / -10, 4 files) vs the 3000 human-merge threshold: under" }objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-steve · session_01ADHkmRar3Kkg6SpwVgaaVE
Landed: PR #38622 merged as
1d19acfecb2b89a995eb3baf242240859f2c9dce;Fixes #34217closed this card.pm:dispatchedremoved in this stroke. Follow-up on the save side: #38624.fix(objectql): withhold a disabled extender's rules from the packaged…