Repository navigation
fix(lint,rest)!: i18n extract/check expect the _relatedLists keys os validate accepts under a .custom arrangement, and the object read translates a tab title the arrangement sets - #38085
Conversation
…nt the way os validate does Claude-Session: https://claude.ai/code/session_01L9qibw44Q7BwdAY1RmfR73 Co-authored-by: Claude <noreply@anthropic.com>
… to the translator Claude-Session: https://claude.ai/code/session_01L9qibw44Q7BwdAY1RmfR73 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibw44Q7BwdAY1RmfR73 Co-authored-by: Claude <noreply@anthropic.com>
… header Claude-Session: https://claude.ai/code/session_01L9qibw44Q7BwdAY1RmfR73 Co-authored-by: Claude <noreply@anthropic.com>
…rangement leaves titled Claude-Session: https://claude.ai/code/session_01L9qibw44Q7BwdAY1RmfR73 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check24 anchor(s) derived from 3 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 180 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin e0b1bf39d40d422eea67b9661a3121e2fda090b0 && git checkout e0b1bf39d40d422eea67b9661a3121e2fda090b0
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5b8ca361c0662bfc2bfff31de86bd6b4ad0802e4 d830f5af03cc2ddb4e481c0b78522447e9825c58 && git checkout -B drift-repro 5b8ca361c0662bfc2bfff31de86bd6b4ad0802e4 && git merge --no-ff d830f5af03cc2ddb4e481c0b78522447e9825c58
node scripts/docs-audit/affected-docs.mjs --json 5b8ca361c0662bfc2bfff31de86bd6b4ad0802e4 |
… pair pin Claude-Session: https://claude.ai/code/session_01L9qibw44Q7BwdAY1RmfR73 Co-authored-by: Claude <noreply@anthropic.com>
… diverge from the packaged base The object reads asked getPairTranslationBundle for every listed object, so an MCP list_objects paid one more translation read than the ADR-0090 D10 budget in mcp-list-objects-statements.pin.test.ts allows. A tab title equal to the base's reads the deployment catalog, which already holds the pair's share, so the pair is now asked only when the served object carries a title off the base. A new pin counts the asks. Claude-Session: https://claude.ai/code/session_01L9qibw44Q7BwdAY1RmfR73 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-tesla · session_01L9qibw44Q7BwdAY1RmfR73 Final head: CI on that head, read from the check-runs endpoint at 2026-11-28T03:11Z: 70 check runs, 59 success, 11 skipped, 0 failed, 0 pending. What changed since the body was written.
Readings that replace the body's "running" and "owed" lines.
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 7ddcc64 · 2026-11-28T03:14Z |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Inputs: card #37622 (body and its five comments, the claim and the os-dev-report included), PR #38085 (body, the final-head comment 7232875384, the net diff against merge base ① Derived judgments
② Semver levelClause-②: yes (narrowing) — the changeset and the PR body carry the same line, and it is the right arm: the coverage gate can newly refuse a stack that passed.
③ Boundary flags
④ Design judgmentThe narrowing itself. It does not take a declared capability away at the consumer. Item 1 makes the refusal PR #37600 published real in the two commands that still contradicted it, so one key is no longer demanded by one gate and refused by another. Item 2 delivers a capability the rule has declared since #36574 (a key over a list the arrangement labels is accepted) by implementing it at the read, which is route R1 and the right direction: implemented, not narrowed. Scope of the pair bundle at the read. Only Author point (1): the gate. The budget is honest. Author point (2): the body sentence. With the gate, a title equal to the owner's reads the pair first only when another title of the same object diverges; otherwise it reads the deployment catalog, exactly as on Tried and held. A relabel to the owner's own text (not diverged, deployment catalog); a title on a list the owner names bare (diverged, pair); a locale the pair does not ship (own text kept); a pair that translates nothing for the object (no bundle handed, so the translator answers as before); a hidden entry beside a bare child, both orders (pinned). No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 The brief the contract reviewer above was handed, filled, for the seat to read before it adopts the record: Contract review brief — PR #38085 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a: REWORK at
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a: ACCEPT at
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head d830f5a · 2026-11-28T04:32Z |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: This is the record for the merge-main head. It merges Inputs: card #37622 and its comments, PR #38085 (body as refreshed for this head, net diff against ① Derived judgments
② Semver levelClause-②: yes (narrowing) — unchanged, on the changeset and the PR body. ③ Boundary flags
④ Design judgmentThe narrowing is the same on this head: it makes the refusal of PR #37600 real in No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a: ACCEPT at
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Recorded 2026-11-28T04:46Z. 维护者速读
席位意见:可以合。为了守住 ADR-0090 D10 的语句预算,加了一道门:只有对象的标签页标题偏离打包基线时,才去请求翻译对。第六个 rest pin 计数这些请求,消融这道门会让它变红;预算是靠满足上限守住的,没有调高上限。dogfood battery 在本 head 上 command-exit 0,4144 条通过。 席位核对 — ACCEPT · repo:objectstack#3 · head
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Narrowing approval request at 2026-11-28T04:47Z. Seat record: the newest |
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Requested by Tesla · project thread
Fixes #37622
Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: follow-up #38128
维护者速读
--strict跑覆盖率检查的项目,可能新报缺少定制包标签页标题的译文,补上即可。显示侧最坏是某个标签页标题换成了定制包的译文。都可以直接撤回。What changes
os i18n extract/os i18n checkagree withos validate(card item 1).packages/lint/src/related-list-titles.ts: the ONE fold of an object's record-page tab titles as the registry serves them. It runs the owner'srelatedListsfirst, then every list placement, then the paired.customarrangement. Each arrangement entry replaces every entry it covers (relatedListNameCovers), in two passes per arrangement. It answerslabels(list → served label + the layer that wrote it),names,hiddenandstripped. The logic was lifted unchanged fromvalidate-translation-references.ts, where it lived inline.validate-translation-references.tsreads that fold. The rule's verdicts are unchanged; the 36595 pins and the full lint suite pass as before.i18n-walk.tspushRelatedListLabels(the walker behindcollectExpectedEntries, which both CLI commands call) reads the same fold over the stack'sobjectExtensions:label;placeentry gives. The rule accepts that key, but the registry does not apply a placement on a target with norelatedLists, or on a list the owner already names.object-graph.ts, not in it. That file's receivers are tabled by the security-posture rule's key-read meta-test, which this fold is no part of.packages/cliis unchanged.The object read translates a tab title the arrangement sets (card item 2, seat route R1).
packages/rest/src/meta-item-read-gate.ts, newobjectPairRelatedListsBundleOf. It is used by both/meta/objectreads,translateMetaDocument(by name) andtranslateMetaList(list).servedOverrideBaseOf(ADR-0146 D10, unchanged). Instead, the read takes the pair of the base the object's packaged base ships in (packagedBase._packageId, the basewithoutStaleObjectPluralalready reads) and callsgetPairTranslationBundlethrough the same per-page memo.objects.OBJECT._relatedListssubtree of each locale is handed on, as the existingpairBundleoption.hasRelatedListTitleOffBase, the divergencetranslateObjectRelatedListsjudges a title by). An object list where no arrangement changed a tab title pays no new translation read, which keeps the ADR-0090 D10 statement budget pinned bypackages/runtime/src/mcp-list-objects-statements.pin.test.ts.labelCatalogsalready orders it. On an object where no title diverges, every title reads the deployment catalog, as before; that catalog already holds the pair's share.pairBundle; the scope pin below holds this.TranslateDocumentOptionsandpackages/spec/src/system/i18n-resolver.tsare untouched.Review follow-ups N2–N4.
{ list: 'event.related_to', hidden: true }beside a bare'event'(both orders). The wrong test comment that said the schema refuses that shape is removed.translation-target-unknownhints now name the list the key addresses ({ list: 'LIST', label }) instead of "the owner'slabel".translation-related-list-key-under-arrangement-refused: itssurfacesays "the owner or a list placement labels". Itsreplacementno longer claims a translated title needs the owner's label, which this PR makes false.content/docs/protocol/kernel/i18n-standard.mdx: the_relatedListsrow says the same.packages/objectql/src/registry-related-lists-label-translation-36528.test.ts: the header now says how the REST read builds the pair bundle, instead of claiming it did when it did not.Changeset:
@objectstack/lint,@objectstack/restand@objectstack/specpatch, with the BREAKING note for the coverage gate's expected key set and an ADR-0087not-required (no-migration-prescription)disposition.Tests
packages/lint/src/i18n-related-lists-arrangement-36595.test.ts(the existing harness):describe"collectExpectedEntries — _relatedLists agree with the rule". Over nine arrangements, every key the extractor scaffolds is translated and judged byvalidateTranslationReferences, and none is refused.{ list: 'contact', label }.packages/rest/src/meta-object-related-list-pair-i18n.test.ts(new; the realSchemaRegistry/ protocol /RestServerharness ofmeta-object-extension-plural-label.test.ts, pairtranslationrows read throughgetPairTranslationBundle), on both/meta/objectreads:zh-CN;en, which the pair does not translate, keeps the arrangement's text.labelis NOT translated by the pair'slabelrow, while its tab title is.packages/cli/test/i18n-coverage.test.ts: two cases, the zh keysos i18n checkexpects under an arrangement, and a control.Readings (branch cut from origin/main 815e882, origin/main merged at d830f5a; head d830f5a)
collectExpectedEntriesscaffolded_relatedLists.crm_taskand.crm_noteover lists the arrangement hid or named bare, andvalidateTranslationReferencesrefused both aserror. It did not scaffold.crm_call, which the arrangement labelled and the rule accepts.translateMetaDocumentandtranslateMetaListserved['Notes', '任务']: the arrangement'sNoteswas untranslated, though the pair ships笔记.servedOverrideBaseOf('object', served)returnedundefined, and the pair bundle was asked 0 times.scripts/ablation-replace.mjson the committed head, each restoreblob == HEADandgit diff HEADempty:?? objectPairRelatedListsBundleOf(…)removed:meta-object-related-list-pair-i18n.test.tsTests 3 failed | 2 passed (5)(at 48c654c, before the sixth pin);3 failed | 2 passed (5)(same);1 failed(the D10 scope pin);hasRelatedListTitleOffBasegate removed:1 failed | 5 passed (6)(the statement-budget pin);foldRelatedListExtensionsremoved frompushRelatedListLabels:i18n-related-lists-arrangement-36595.test.ts2 failed | 9 passed (11);layer === 'place'skip removed:1 failed | 10 passed (11).src/(relative imports), so no build was needed.os-verify-lock.sh:@objectstack/lint:Test Files 243 passed (243),Tests 9816 passed (9816);@objectstack/restat 7ddcc64:Test Files 439 passed (439),Tests 9288 passed | 376 skipped (9664);@objectstack/runtimesrc/mcp-list-objects-statements.pin.test.tsat 7ddcc64:Tests 20 passed (20). At fe0f53e it failed 1 of 20 (memolist_objects31 statements at 150 objects against a bound of 24), and with the pair arm ablated it passed 20 of 20. That failure was this PR's, and 7ddcc64 fixes it;@objectstack/clitest/i18n-coverage.test.ts:Tests 32 passed (32).turbo build --forceof the lint, rest and objectql closures (dts included): 32/32.typecheckexit 0 for@objectstack/lint,@objectstack/rest,@objectstack/specand@objectstack/objectql.@objectstack/spec check:generated: "All 14 generated artifacts are up to date".eslinton the nine changed.ts: exit 0.check-adr-0087-registration --base origin/main: registered,not-required (no-migration-prescription).dispatch-gates --ranat fe0f53e: 129 derived, 127 run, all exit 0. 2 are NOT MEASURED:check-plugin-teardown-shape --self-test(its fixture commit is outside the shallow clone) andcheck:dual-build-cjs-loads(needs a fullpnpm build). 7ddcc64 changes onlypackages/rest/src/meta-item-read-gate.tsand its new test. At 7ddcc64 these were re-run: the rest suite above, resttsc --noEmitexit 0,eslinton the two files exit 0, andcheck-engine-double-contractexit 0.fe0f53ebadded the new pin'sfindOnerow toscripts/engine-double-contract.pinned.json; its absence was the engine-double-contract red at 48c654c.origin/maininto 7ddcc64. The merge had no conflicts.git diff 7ddcc646 d830f5afover this PR's own files is empty, so the net diff is unchanged; the code readings above at 7ddcc64 stand for it.Lint UIis skipped because the diff has noui/path.Acceptance notes
placeentry gives is accepted bytranslation-target-unknownbut not scaffolded byos i18n extract. This is deliberate, and it is the harmless direction: the registry does not apply a placement on a target with norelatedListsor on a list the owner already names, so asking for it could ask for a string no screen shows. Whether the rule should refuse those keys is a separate narrowing, not taken here.form-routes.ts) still translates its object with no pair bundle. A public form renders no record-page tabs, so the gap does not reach a screen; its comment stays true.sys_metadataobject row that relabels a tab). This is the ruled order of ruling record 6631250894: a pair translation, then the override's own text.skills/objectstack-i18n/SKILL.md(the_relatedListsrow) andskills/objectstack-data/rules/relationships.md(line 359) still say the remedy is to re-state the entry "with the owner's ownlabel". That is still correct but no longer the only way, because the object read now translates any arrangement label through the pair. The follow-up is filed as 技能:定制包里的相关列表标签页标题现在会按翻译对显示,更新「重写一遍 owner 的 label」这条唯一解法(接 #37622) #38128; seeSkills-docs:above.(narrowing)arm and!title),pnpm --filter @objectstack/dogfood testunderos-verify-lockon the landing head d830f5a. It ran afterpnpm install --frozen-lockfileand a build of the dogfood closure (@objectstack/dogfood^...,@objectstack/cli,@objectstack/client-react), because the merge brought in main's lockfile and version moves. Result:VERDICT command-exit 0(held the lock 2166s, shared-box seconds),Test Files 490 passed | 3 skipped (493),Tests 4144 passed | 68 skipped (4212). The same battery read the same counts at 7ddcc64 and at fe0f53e.Verification
Read first (by risk):
packages/rest/src/meta-item-read-gate.ts:objectPairRelatedListsBundleOfand its two call sites. This is the served-read change: check that only the_relatedListssubtree is handed on.packages/lint/src/related-list-titles.ts: the fold, lifted from the rule. Diff it against the removed block ofvalidate-translation-references.ts.packages/lint/src/i18n-walk.ts:pushRelatedListLabels, and which layer it skips.Two-minute check:
pnpm --filter @objectstack/rest exec vitest run src/meta-object-related-list-pair-i18n.test.tsshould show 6 passing. Delete the?? (await objectPairRelatedListsBundleOf(…))arm of the by-name read and the same command should show the by-name pins failing.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibw44Q7BwdAY1RmfR73
Generated by Claude Code