Skip to content

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

Merged
os-zhuang merged 8 commits into
mainfrom
claude/project-thread-2a7f43
Nov 28, 2026
Merged

os-zhuang merged 8 commits into
mainfrom
claude/project-thread-2a7f43

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

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 跑覆盖率检查的项目,可能新报缺少定制包标签页标题的译文,补上即可。显示侧最坏是某个标签页标题换成了定制包的译文。都可以直接撤回。
  • 这是收窄,需要审批人批准;契约审核在 7ddcc64 上通过,没有必须改或应该改的项。d830f5af 只合入了 main,本 PR 自己的改动没有变。

What changes

os i18n extract / os i18n check agree with os validate (card item 1).

  • New 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's relatedLists first, then every list placement, then the paired .custom arrangement. Each arrangement entry replaces every entry it covers (relatedListNameCovers), in two passes per arrangement. It answers labels (list → served label + the layer that wrote it), names, hidden and stripped. The logic was lifted unchanged from validate-translation-references.ts, where it lived inline.
  • validate-translation-references.ts reads that fold. The rule's verdicts are unchanged; the 36595 pins and the full lint suite pass as before.
  • i18n-walk.ts pushRelatedListLabels (the walker behind collectExpectedEntries, which both CLI commands call) reads the same fold over the stack's objectExtensions:
    • no key over a list the arrangement hides, names bare or re-states without a label;
    • one key, carrying the arrangement's text, over a list the arrangement labels;
    • still no key for a label only a code extender's place entry gives. The rule accepts that key, but the registry does not apply a placement on a target with no relatedLists, or on a list the owner already names.
  • It lives beside 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/cli is 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, new objectPairRelatedListsBundleOf. It is used by both /meta/object reads, translateMetaDocument (by name) and translateMetaList (list).
    • An object still answers no servedOverrideBaseOf (ADR-0146 D10, unchanged). Instead, the read takes the pair of the base the object's packaged base ships in (packagedBase._packageId, the base withoutStaleObjectPlural already reads) and calls getPairTranslationBundle through the same per-page memo.
    • Only the objects.OBJECT._relatedLists subtree of each locale is handed on, as the existing pairBundle option.
    • The pair is asked only when the served object carries a tab title that diverges from the packaged base (hasRelatedListTitleOffBase, the divergence translateObjectRelatedLists judges 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 by packages/runtime/src/mcp-list-objects-statements.pin.test.ts.
    • A tab title that diverges from the packaged base now reads the pair's translation, then keeps its own text. On such an object, a title equal to the owner's reads the pair's translation first, then the deployment's, interleaved by locale, as the spec's labelCatalogs already 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.
    • Every other string of the object keeps the ranking it had. A slice that answers nothing for an object string reads exactly as no pairBundle; the scope pin below holds this.
  • No new export and no new option: TranslateDocumentOptions and packages/spec/src/system/i18n-resolver.ts are untouched.

Review follow-ups N2–N4.

  • N2: a pin for { 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.
  • N3/N4:
    • The two translation-target-unknown hints now name the list the key addresses ({ list: 'LIST', label }) instead of "the owner's label".
    • The stripped message says "replaces the entry that labelled it".
    • The ledger entry translation-related-list-key-under-arrangement-refused: its surface says "the owner or a list placement labels". Its replacement no longer claims a translated title needs the owner's label, which this PR makes false.
  • content/docs/protocol/kernel/i18n-standard.mdx: the _relatedLists row 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/rest and @objectstack/spec patch, with the BREAKING note for the coverage gate's expected key set and an ADR-0087 not-required (no-migration-prescription) disposition.

Tests

  • packages/lint/src/i18n-related-lists-arrangement-36595.test.ts (the existing harness):
    • New top-level describe "collectExpectedEntries — _relatedLists agree with the rule". Over nine arrangements, every key the extractor scaffolds is translated and judged by validateTranslationReferences, and none is refused.
    • The scaffolded keys and their source text are pinned per arrangement.
    • A placement-only label is not asked for and is still accepted.
    • The N2 pin. The no-label hint assertion now expects { list: 'contact', label }.
  • packages/rest/src/meta-object-related-list-pair-i18n.test.ts (new; the real SchemaRegistry / protocol / RestServer harness of meta-object-extension-plural-label.test.ts, pair translation rows read through getPairTranslationBundle), on both /meta/object reads:
    • The pair translates a relabelled tab and a newly titled one in zh-CN; en, which the pair does not translate, keeps the arrangement's text.
    • A title the pair does not translate keeps its own text, never the base's translation of another string.
    • Scope: an extension's renamed object label is NOT translated by the pair's label row, while its tab title is.
    • Controls: with no arrangement, and with one that keeps the owner's title. The deployment translation serves, and the pair's own translation serves first where it ships one.
    • Statement budget: the pair's catalog is asked 0 times for an object with no arrangement or one that keeps the owner's title, and more than 0 times for one that relabels.
  • packages/cli/test/i18n-coverage.test.ts: two cases, the zh keys os i18n check expects under an arrangement, and a control.
Readings (branch cut from origin/main 815e882, origin/main merged at d830f5a; head d830f5a)
  • Premise, at 815e882, two throwaway probes (deleted):
    • collectExpectedEntries scaffolded _relatedLists.crm_task and .crm_note over lists the arrangement hid or named bare, and validateTranslationReferences refused both as error. It did not scaffold .crm_call, which the arrangement labelled and the rule accepts.
    • Real translateMetaDocument and translateMetaList served ['Notes', '任务']: the arrangement's Notes was untranslated, though the pair ships 笔记. servedOverrideBaseOf('object', served) returned undefined, and the pair bundle was asked 0 times.
  • Ablation through scripts/ablation-replace.mjs on the committed head, each restore blob == HEAD and git diff HEAD empty:
    • by-name arm ?? objectPairRelatedListsBundleOf(…) removed: meta-object-related-list-pair-i18n.test.ts Tests 3 failed | 2 passed (5) (at 48c654c, before the sixth pin);
    • list arm removed: 3 failed | 2 passed (5) (same);
    • slice replaced by the whole pair bundle: 1 failed (the D10 scope pin);
    • at 7ddcc64, the hasRelatedListTitleOffBase gate removed: 1 failed | 5 passed (6) (the statement-budget pin);
    • foldRelatedListExtensions removed from pushRelatedListLabels: i18n-related-lists-arrangement-36595.test.ts 2 failed | 9 passed (11);
    • the layer === 'place' skip removed: 1 failed | 10 passed (11).
    • The subjects resolve from src/ (relative imports), so no build was needed.
  • Full package suites, under os-verify-lock.sh:
    • @objectstack/lint: Test Files 243 passed (243), Tests 9816 passed (9816);
    • @objectstack/rest at 7ddcc64: Test Files 439 passed (439), Tests 9288 passed | 376 skipped (9664);
    • @objectstack/runtime src/mcp-list-objects-statements.pin.test.ts at 7ddcc64: Tests 20 passed (20). At fe0f53e it failed 1 of 20 (memo list_objects 31 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/cli test/i18n-coverage.test.ts: Tests 32 passed (32).
  • turbo build --force of the lint, rest and objectql closures (dts included): 32/32. typecheck exit 0 for @objectstack/lint, @objectstack/rest, @objectstack/spec and @objectstack/objectql. @objectstack/spec check:generated: "All 14 generated artifacts are up to date".
  • eslint on the nine changed .ts: exit 0. check-adr-0087-registration --base origin/main: registered, not-required (no-migration-prescription).
  • Derived local gate set, dispatch-gates --ran at 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) and check:dual-build-cjs-loads (needs a full pnpm build). 7ddcc64 changes only packages/rest/src/meta-item-read-gate.ts and its new test. At 7ddcc64 these were re-run: the rest suite above, rest tsc --noEmit exit 0, eslint on the two files exit 0, and check-engine-double-contract exit 0. fe0f53eb added the new pin's findOne row to scripts/engine-double-contract.pinned.json; its absence was the engine-double-contract red at 48c654c.
  • Head d830f5a merges origin/main into 7ddcc64. The merge had no conflicts. git diff 7ddcc646 d830f5af over this PR's own files is empty, so the net diff is unchanged; the code readings above at 7ddcc64 stand for it.
  • CI on d830f5a: 70 check runs, 60 success, 10 skipped, 0 failed, 0 pending. Lint UI is skipped because the diff has no ui/ path.

Acceptance notes

  • A label only a code extender's place entry gives is accepted by translation-target-unknown but not scaffolded by os i18n extract. This is deliberate, and it is the harmless direction: the registry does not apply a placement on a target with no relatedLists or 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.
  • The public form route (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.
  • The pair's tab-title translations also outrank a tenant overlay's own tab label (a sys_metadata object row that relabels a tab). This is the ruled order of ruling record 6631250894: a pair translation, then the override's own text.
  • Skills: skills/objectstack-i18n/SKILL.md (the _relatedLists row) and skills/objectstack-data/rules/relationships.md (line 359) still say the remedy is to re-state the entry "with the owner's own label". 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; see Skills-docs: above.
  • Dogfood battery ((narrowing) arm and ! title), pnpm --filter @objectstack/dogfood test under os-verify-lock on the landing head d830f5a. It ran after pnpm install --frozen-lockfile and 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):

  1. packages/rest/src/meta-item-read-gate.ts: objectPairRelatedListsBundleOf and its two call sites. This is the served-read change: check that only the _relatedLists subtree is handed on.
  2. packages/lint/src/related-list-titles.ts: the fold, lifted from the rule. Diff it against the removed block of validate-translation-references.ts.
  3. 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.ts should 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

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 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.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibw44Q7BwdAY1RmfR73


Generated by Claude Code

@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

24 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
  • 5 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 180 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 5b8ca361c0662bfc2bfff31de86bd6b4ad0802e4 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from e0b1bf39d40d422eea67b9661a3121e2fda090b0 — the merge of head d830f5af03cc2ddb4e481c0b78522447e9825c58 into base 5b8ca361c0662bfc2bfff31de86bd6b4ad0802e4, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

… 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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibw44Q7BwdAY1RmfR73

Final head: 7ddcc64690282bb66f2c8baf5d8ea0aacf080884 (branch cut from origin/main 815e882; CI ran it merged with base f72f335).

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. Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset and PR-body guards are success; Lint UI is skipped (no ui/ path in the diff).

What changed since the body was written.

  • fe0f53eb: the engine-double ledger (scripts/engine-double-contract.pinned.json) records the new rest pin's findOne double; this was the engine-double-contract red at 48c654c.
  • 7ddcc646: at fe0f53e, Test Core (3/10) was red on packages/runtime/src/mcp-list-objects-statements.pin.test.ts ("the delegated callers pay their delegator once"): the memo list_objects read paid 31 statements at 150 objects against a bound of 24. This PR caused it. It reproduced locally, and the file went 20 passed with objectPairRelatedListsBundleOf ablated: the list read asked getPairTranslationBundle for every object. The fix: the pair is asked only when the served object carries a tab title that diverges from the packaged base (hasRelatedListTitleOffBase, the same divergence translateObjectRelatedLists judges). The runtime file is 20 passed at 7ddcc64. A sixth rest pin counts the asks: 0 for an object with no arrangement or one that keeps the owner's title, more than 0 for one that relabels. With the gate removed, that pin fails (1 failed | 5 passed (6)).
  • So one sentence of the body no longer holds as written. "A title equal to the owner's reads the pair's translation first, then the deployment's" is true only when another tab title of the same object diverges. When none diverges, every title reads the deployment catalog, which already deep-merges the pair's share, as before this PR. The controls pin both cases.

Readings that replace the body's "running" and "owed" lines.

  • dispatch-gates --ran at 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) and check:dual-build-cjs-loads (needs a full pnpm build). At 7ddcc64, which changes only packages/rest/src/meta-item-read-gate.ts and its new test, these were re-run:
    • @objectstack/rest vitest run: Test Files 439 passed (439), Tests 9288 passed | 376 skipped (9664);
    • rest tsc --noEmit exit 0;
    • eslint on the two files exit 0;
    • check-engine-double-contract exit 0.
  • Dogfood battery (the (narrowing) arm and the ! title), pnpm --filter @objectstack/dogfood test under os-verify-lock at fe0f53e: VERDICT command-exit 0, Test Files 490 passed | 3 skipped (493), Tests 4144 passed | 68 skipped (4212). 7ddcc64 only reduces when the object read asks the pair.
  • The Docs Drift Check comment lists no page for this diff's anchors.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 7ddcc64 · 2026-11-28T03:14Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:20Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7ddcc64690282bb66f2c8baf5d8ea0aacf080884
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.translation-related-list-key-under-arrangement-refused.ts (the published-schema hit), packages/rest/src/meta-item-read-gate.ts, packages/rest/src/meta-object-related-list-pair-i18n.test.ts, packages/lint/src/related-list-titles.ts, packages/lint/src/i18n-walk.ts, packages/lint/src/validate-translation-references.ts, packages/lint/src/i18n-related-lists-arrangement-36595.test.ts, packages/cli/test/i18n-coverage.test.ts, packages/objectql/src/registry-related-lists-label-translation-36528.test.ts, scripts/engine-double-contract.pinned.json + read, not reviewed: packages/spec/src/system/i18n-resolver.ts (labelCatalogs, translateObjectRelatedLists, valueOverridesPackagedBase), packages/metadata-protocol/src/protocol-discovery-and-bases.ts (getPairTranslationBundle), packages/core/src/fallbacks/authored-translation-sync.ts (readAuthoredTranslationLayer), packages/lint/src/object-graph.ts (objectExtensionsByTarget), packages/runtime/src/mcp-list-objects-statements.pin.test.ts, AGENTS.md (Post-Task Checklist 3)

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 815e882b), and the check-runs on the head: 70 runs, 60 success, 10 skipped, 0 failed, 0 pending.

① Derived judgments

  • os validate accept set: unchanged. Right. The fold in related-list-titles.ts is the block removed from validate-translation-references.ts, with the same order (owner, every placement, then each arrangement in two passes) and the same membership. A placement labels a list only where none is labelled yet, which gives the same label set as before. Only the two hints and the stripped message change their words.
  • collectExpectedEntries expected key set: changed, and declared. Right. Under a .custom arrangement it no longer expects a key over a list the arrangement hides, names bare or re-states with no label, and it newly expects a key over a list the arrangement labels. That second half can turn a passing os i18n check --strict red, which is the narrowing the changeset declares. A placement-only label is still not expected, as on main.
  • Served /meta/object answer: changed, on both reads. Right. A tab title that departs from the packaged base now reads the pair's own translation, where it kept its own text. No export, option or route is added: TranslateDocumentOptions and i18n-resolver.ts are not in the diff, and objectPairRelatedListsBundleOf and hasRelatedListTitleOffBase are module-private.
  • Ledger entry translation-related-list-key-under-arrangement-refused (published in @objectstack/spec): wording only. Right. surface, replacement and acceptanceCriteria now match the code: a label equal to the owner's reads the deployment catalog, any other label reads the pair's translation.
  • scripts/engine-double-contract.pinned.json: one new row, right. It records the single findOne double of the new rest test. It is the engine-double ledger, not the statement budget.

② Semver level

Clause-②: 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.

Metadata-protocol: none is right. No key, accepted value or metadata type moves; what moves is a tooling expectation and a served translation. Under AGENTS.md Post-Task Checklist 3, none takes patch, and a breaking non-protocol change ships patch with its BREAKING banner and its ADR-0087 disposition. The changeset has all three for @objectstack/lint, @objectstack/rest and @objectstack/spec, and the remedy (add the translation, or drop the entry's label) is in the body. Check Changeset is success on the head.

③ Boundary flags

  • open_questions: none in the os-dev-report.
  • Author point (1), the statement budget: the gate keeps the promised behaviour and the budget is honest. See ④ for the reading.
  • Author point (2), the body sentence: a body wording fix, not a contract defect. See ④.
  • Skills follow-up (skills/objectstack-i18n/SKILL.md, skills/objectstack-data/rules/relationships.md): the text there is still correct, only no longer the single remedy. Skills-docs: follow-up owed stands; the seat files the card.
  • Placement-only label accepted by the rule and not scaffolded: unchanged from main, and the accepting direction. It leaves one coverage gap that predates this PR: where the owner declares relatedLists and does not name the placed list, the registry does apply the placement, the title is served, and os i18n check does not count it. For the seat to file; not a finding on this head.
  • Public form route with no pair bundle: accepted. A public form draws no record-page tabs.
  • A pair translation outranks any diverged tab title, whoever wrote it: answered by ruling record 6631250894 (a pair translation, then the override's own text), and withoutStaleObjectPlural (A .custom object extension that renames only label keeps the base package's translated pluralLabel, so every list title keeps the old name #30391) already applies that order to an object on any divergence.
  • Deviation, PR body not patched after the last two commits: see N1.
  • SQL push-down: no new in-app join or id materialisation. The one new read is getPairTranslationBundle, one filtered sys_metadata read bound to the pair's package. The list read memoises it per base for the page, and since 7ddcc646 it is asked only for an object with a diverged tab title.
  • Out of the diff, for the seat: the read serves a diverged title from the pair's own translation rows only. Lint cannot tell which package ships a translation, so a stack that holds the owner and the arrangement can satisfy os validate and os i18n check with a translation shipped outside the pair, which the read does not use. This follows from feat(spec): a record-page tab title a relatedLists entry declares is translatable (objects.OBJECT._relatedLists.LIST.label) #36574 and route R1, not from this diff.

④ Design judgment

The 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 objects.NAME._relatedLists per locale is handed on. Read against labelCatalogs: a changed string of the object reads the slice, which answers nothing outside tab titles, so it keeps its text as it did with no pair bundle; an unchanged string reads the slice laid over the deployment catalog, which is the deployment catalog for every other key. ADR-0146 D10 holds, and the scope pin covers it (the renamed label stays Client).

Author point (1): the gate. hasRelatedListTitleOffBase asks the question translateObjectRelatedLists asks, entry by entry: an object-form entry with a non-empty list and a non-empty label, compared with the first packaged entry of the same list, a missing one counting as diverged. That is valueOverridesPackagedBase over the same two documents the translator is then given. So the gate is true exactly when at least one title would read the pair-only catalog, and every title the arrangement sets or changes still reads the pair's translation. The changeset's promise is kept in full.

The budget is honest. packages/runtime/src/mcp-list-objects-statements.pin.test.ts is not in the diff, so the bound of 24 was met and not raised, and Test Core (3/10) is success on this head. The json row is the engine-double ledger's count for the new test file, which is what that gate asks for. The sixth rest pin counts zero pair asks for an object with no arrangement and for one that keeps the owner's title, and more than zero for one that relabels.

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 main. The deployment catalog already holds the pair's rows above every code bundle (readAuthoredTranslationLayer builds both from the same rows), so the served text is the same in both cases. It can differ in one corner only: two authored translation rows of different packages translating the same _relatedLists key, where the merged catalog keeps the later row by name. That corner behaves as it does on main unless a sibling title diverges. Neither the changeset nor the ledger entry promises pair-first for an equal title; the ledger says such a label "reads the deployment's translation". So the contract is whole and the sentence is wrong only in the PR body.

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.

  • N1 (nit) — PR body. The sentence "A title equal to the owner's reads the pair's translation first, then the deployment's" should say this holds only when another tab title of the object diverges, and otherwise the title reads the deployment catalog. The body also still says the gate sweep is "running at 48c654c", the dogfood battery is "owed", and the two-minute check shows 5 passing (it is 6). The final-head comment has the right readings; move them into the body, which is what the approver reads. A body edit does not move the head.
  • N2 (nit) — meta-object-related-list-pair-i18n.test.ts, control "…and the pair first where it ships one". After 7ddcc646 that case asks the pair zero times; 人员 comes from the harness's deployment catalog, which lays the pair over the base. The assertion is right and the title misdescribes it. Left as an accepted deviation, or a follow-up: a fix moves the head.
  • N3 (nit) — translateMetaDocument passes no memo, so the by-name read of an object that both renames its label with no plural and diverges a tab title asks getPairTranslationBundle twice (once here, once in withoutStaleObjectPlural). One extra read on a rare shape, no effect on the answer. Follow-up.

Implemented-by: claude/project-thread-2a7f43
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 @ 7ddcc64690282bb66f2c8baf5d8ea0aacf080884 (card #37622)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face narrowing — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #37622: its body and EVERY comment (rulings and earlier records included)
· PR #38085: its body, its file list, and the net diff against main at 7ddcc64690282bb66f2c8baf5d8ea0aacf080884
· the check-runs on 7ddcc64690282bb66f2c8baf5d8ea0aacf080884: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the narrowing is declared of the whole PR, never of a path: the floor is EVERY path of the diff outside the
prose faces (.changeset/37622-related-list-keys-agree-under-arrangement.md, content/docs/protocol/kernel/i18n-standard.mdx), plus every file those hunks make a claim about, read in the cited code.
Widen it freely, ⛔ never below that floor; the record's Scope: line lists both. No path is the lane seat's remainder.
④ judges the narrowing itself over that floor: lockfiles, generated output, changesets and prose elsewhere in
the PR are not reviewed; the published spec and the cited code are READ to judge it, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-38085/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — the narrowing itself, read against the published spec on main: does it take a
declared capability away at the consumer, or make the spec's own refusal real? A capability declared
and not delivered is an implementation gap, implemented or retired, ⛔ never narrowed at the consumer.
Read the spec and the cited code in the live tree, and try to break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:21Z

L1-a: REWORK at 7ddcc64690282bb66f2c8baf5d8ea0aacf080884. Bookkeeping only: no code change is asked, and none of these steps moves the head.

  • The contract review is done. The CONTRACT_REVIEW_TIER record above, on the narrowing floor, is PASS with no must-fix and no should-fix.
    • Author point (1): the gate keeps the promised behaviour. hasRelatedListTitleOffBase makes the resolver's own comparison over the same two documents, so every title the arrangement sets still reads the pair. The budget is honest: the statement bound was met, not raised, and the new engine-double-contract.pinned.json row is the engine-double ledger, not the budget.
    • Author point (2): a body wording fix, not a contract defect.
  • Still owed before this L1 turns ACCEPT:
    1. The dogfood battery on the landing head. A (narrowing) arm and a ! title owe the full battery pinned to the head that lands (l1-face: "the full battery on 7ddcc64"). The battery ran on fe0f53eb, before the gate commit changed the object read. Run it at 7ddcc646 and record it under dogfood_battery.
    2. The Skills-docs: line. It still reads follow-up owed — skills/objectstack-i18n/SKILL.md, skills/objectstack-data/rules/relationships.md. File the follow-up card and rewrite the line to follow-up #N.
    3. The PR body (N1). Give the "title equal to the owner's reads the pair first" sentence its condition (only when a sibling title on the same object departs from the packaged base). Also replace the "running at 48c654c", "owed" and "5 passing" lines with the final-head readings.
  • Nits N2 (a test title that misdescribes a zero-pair-read control) and N3 (the by-name read can ask getPairTranslationBundle twice) are follow-ups. Two pre-existing gaps are listed in the record's ③ for the seat to file.
  • l1-face changeset flag: benign, because the cli and objectql files are tests. CI at this head: 0 failed, 0 pending.
  • After ACCEPT, the narrowing goes to the maintainer hand-off, not the queue.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T03:48Z

L1-a: ACCEPT at 7ddcc64690282bb66f2c8baf5d8ea0aacf080884 (after bookkeeping REWORK 7233021242)

  • All three owed items are done at this head, with no head move:
    1. Dogfood battery on 7ddcc646 (the PR body's Readings, and card comment 7232887284): pnpm --filter @objectstack/dogfood test, VERDICT command-exit 0, Tests 4144 passed | 68 skipped.
    2. Skills-docs: follow-up #38128.
    3. The conditional sentence and the stale readings lines are refreshed in the body.
  • Contract review: the CONTRACT_REVIEW_TIER record 7232996587 on the narrowing floor is PASS at this head, with no must-fix and no should-fix.
  • This ACCEPT covers this head only. The card thread is about to merge main (K=17). That merge-main head needs its own record: a merge is neither a regeneration nor a prose-only move. It also needs the dogfood battery re-run on it, because the narrowing owes the battery on the landing head. I will confirm the net diff is unchanged, and the same reviewer will post that head's record.
  • After that, the narrowing goes to the maintainer hand-off, not the queue.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head d830f5a · 2026-11-28T04:32Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T04:37Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d830f5af03cc2ddb4e481c0b78522447e9825c58
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.translation-related-list-key-under-arrangement-refused.ts (the published-schema hit), packages/rest/src/meta-item-read-gate.ts, packages/rest/src/meta-object-related-list-pair-i18n.test.ts, packages/lint/src/related-list-titles.ts, packages/lint/src/i18n-walk.ts, packages/lint/src/validate-translation-references.ts, packages/lint/src/i18n-related-lists-arrangement-36595.test.ts, packages/cli/test/i18n-coverage.test.ts, packages/objectql/src/registry-related-lists-label-translation-36528.test.ts, scripts/engine-double-contract.pinned.json + read, not reviewed: packages/spec/src/system/i18n-resolver.ts (labelCatalogs, translateObjectRelatedLists, valueOverridesPackagedBase), packages/metadata-protocol/src/protocol-discovery-and-bases.ts (getPairTranslationBundle), packages/core/src/fallbacks/authored-translation-sync.ts and memory-i18n.ts, packages/lint/src/object-graph.ts (objectExtensionsByTarget), packages/runtime/src/mcp-list-objects-statements.pin.test.ts, AGENTS.md (Post-Task Checklist 3)

This is the record for the merge-main head. It merges main 5b8ca361 into 7ddcc646, the head of the earlier PASS record, whose merge base was 815e882b. The full reading is in that record; this one states what was re-read for this head and what it found.

Inputs: card #37622 and its comments, PR #38085 (body as refreshed for this head, net diff against main at 5b8ca361), and the check-runs on this head: 74 runs, 62 success, 12 skipped, 0 failed, 0 pending. Lint & Repo Gates, Test Core (shard 3/10 included), Check Changeset, Governed Surface Queue Guard, Dogfood Regression Gate and PR-body guards are success.

① Derived judgments

  • The net diff is the one already judged. The head's parents are 7ddcc646 and 5b8ca361, and git diff 5b8ca361 d830f5af has the same stable patch-id as git diff 815e882b 7ddcc646 (0010f99c…). Every accept-set and public-surface judgment of the earlier record stands unchanged: os validate verdicts unchanged, the collectExpectedEntries key set changed as declared, the /meta/object answer changed on both reads with no new export or option, the ledger entry wording only, one engine-double ledger row.
  • main brought nothing that changes what the diff means. Between 815e882b and 5b8ca361, main touched none of: the PR's own files, i18n-walk.ts, validate-translation-references.ts, object-graph.ts, anything under packages/rest/src, i18n-resolver.ts, protocol-discovery-and-bases.ts, packages/core/src/fallbacks, packages/objectql/src, the list_objects statement pin, or scripts/engine-double-contract.pinned.json. What it did change nearby is unrelated: action-location and knowledge-source lint rules, two new ledger entries beside this one, and one example string in protocol-extension-arrangement.ts.

② Semver level

Clause-②: yes (narrowing) — unchanged, on the changeset and the PR body. Metadata-protocol: none at patch for @objectstack/lint, @objectstack/rest and @objectstack/spec, with the BREAKING note and the ADR-0087 disposition, is right as before. Check Changeset is success on this head.

③ Boundary flags

  • open_questions: none.
  • Statement budget: the pin file and its bound of 24 are unchanged on main and in the diff, and Test Core (3/10) is success on this head. The gate ruling of the earlier record stands.
  • Dogfood battery: the body records a re-run on this head, VERDICT command-exit 0, 4144 passed; the Dogfood Regression Gate check-run is success.
  • The skills follow-up, the placement-only coverage gap and the note on where a pair translation must ship stay with the seat, as recorded before.
  • SQL push-down: no change; no finding.

④ Design judgment

The narrowing is the same on this head: it makes the refusal of PR #37600 real in os i18n extract and os i18n check, and implements at the read a capability the rule has declared since #36574. Nothing is taken away at the consumer. The code it is judged against (labelCatalogs, translateObjectRelatedLists, valueOverridesPackagedBase, getPairTranslationBundle, the authored translation layer) is byte-identical on main at both bases, so both rulings of the earlier record hold here: the divergence gate keeps the promised behaviour with an honest budget, and the equal-title sentence was a body wording matter.

No must-fix, no should-fix.

  • N1: closed. The PR body now states the condition on the equal-title sentence, carries the final readings, and says 6 passing. One count in it is behind: it reads 70 check runs on this head, and the endpoint now answers 74 (62 success, 12 skipped).
  • N2 (nit) — the control test title "…and the pair first where it ships one" still misdescribes a case that asks the pair zero times. Accepted deviation or follow-up.
  • N3 (nit) — the by-name read passes no memo, so one rare shape asks the pair twice. Follow-up.

Implemented-by: claude/project-thread-2a7f43
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T04:38Z

L1-a: ACCEPT at d830f5af03cc2ddb4e481c0b78522447e9825c58, the merge-main head after the PASS record at 7ddcc646

  • I measured the net diff against main and it is byte-identical: git diff 5b8ca361 d830f5af and git diff 815e882b 7ddcc646 give the same git patch-id --stable (0010f99c…).
  • This head has its own record above (7234159642), from the same reviewer: PASS, no must-fix, no should-fix. Between 815e882b and 5b8ca361, main touched none of the PR's files and none of the code the narrowing is judged against: i18n-resolver.ts, getPairTranslationBundle, packages/core/src/fallbacks, packages/rest/src, packages/objectql/src, the list_objects statement pin and scripts/engine-double-contract.pinned.json.
  • The dogfood battery owed by the narrowing was re-run at this head: VERDICT command-exit 0, 4144 passed, and the Dogfood Regression Gate check-run is success.
  • CI at this head: 62 success, 12 skipped, 0 failed. A nit for the body: it says 70 check runs, and the endpoint now gives 74. N2 and N3 stay as nits or follow-ups.
  • This is a narrowing, so it goes to the maintainer hand-off and not to the queue.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Recorded 2026-11-28T04:46Z.

维护者速读

  • 改了什么:定制包改过或新加了相关列表标签页的标题时,翻译键的提取和校验两个命令现在给出一样的结论。记录页上,这类标题也会按定制包自己的译文显示,以前一直显示原文。
  • 为什么:给客户定制包做翻译的人以前会遇到两件事。一是覆盖率检查要求一个校验会拒收的键,永远过不了;二是在定制包里新写的标签页标题,翻了也不显示。
  • 风险:用 --strict 跑覆盖率检查的项目,可能新报缺少定制包标签页标题的译文,补上即可。显示这边,最坏的情况是某个标签页标题换成了定制包的译文。这是收窄(校验多拒一种写法),标题带 !,可以直接撤回。
  • 要你做什么:请审阅并亲手合并,或者批准后由本席落地。收窄改动按规则要人来批。契约审核在收窄档 PASS 7232996587,合 main 后的记录是 7234159642,Head-sha: d830f5af03cc2ddb4e481c0b78522447e9825c58。

席位意见:可以合。为了守住 ADR-0090 D10 的语句预算,加了一道门:只有对象的标签页标题偏离打包基线时,才去请求翻译对。第六个 rest pin 计数这些请求,消融这道门会让它变红;预算是靠满足上限守住的,没有调高上限。dogfood battery 在本 head 上 command-exit 0,4144 条通过。

席位核对 — ACCEPT · repo:objectstack#3 · head d830f5af03cc2ddb4e481c0b78522447e9825c58

  1. 形态:Fixes #37622;Clause-②: yes (narrowing),标题带 !;Skills-docs: follow-up #38128;+691 / −129。
  2. 前提实测:在 .custom 安排下,i18n extract 和 check 期望的 _relatedLists 键与 os validate 接受的不一致;对象读取不翻译安排里设置的标签页标题(卡线程实测,PR 正文 Readings)。
  3. 门禁 check-runs:本 head 上 completed/skipped=12 completed/success=62。dogfood battery:os-verify-lock: VERDICT command-exit 0,490 个文件、4144 条测试通过。landing-k 读出 K = 7。check-governed-merges ⇒ NOT governed by path;按收窄改动的规则交维护者。
  4. 接受的偏差:fe0f53eb 上语句预算 pin 红过(31 比 24),已在 7ddcc64 用上面那道门修好。正文里「与 owner 相同的标题先读翻译对」那句,已改成写明它成立的条件。cli 和 objectql 的 changeset 标记无害,那两个文件都是测试。L2 PASS 7232996587,简报 7233004968,L1 ACCEPT 7233420088(7ddcc646);合 main 后净 diff 字节一致,记录 7234159642,L1 7234172782。
  5. 范围外去向:技能文字的跟进是 技能:定制包里的相关列表标签页标题现在会按翻译对显示,更新「重写一遍 owner 的 label」这条唯一解法(接 #37622) #38128。
  6. 落地条款:收窄 ⇒ 维护者亲手合并,或 GOVERNED_APPROVERS(os-zhuang)批准后本席照落地前检落地。head 再动就重新判,dogfood 也要在新 head 上重跑。认领 7231606338,报告 7232887284。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Narrowing approval request at 2026-11-28T04:47Z. Seat record: the newest ## 席位核对 above (ACCEPT, Head-sha: d830f5af03cc2ddb4e481c0b78522447e9825c58). Contract review PASS on the narrowing floor 7232996587; merge-main record 7234159642. Dogfood battery on this head: command-exit 0.

@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 28, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 28, 2026 04:53
@os-zhuang
os-zhuang enabled auto-merge November 28, 2026 04:54
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/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review follow-ups of PR #37600

3 participants