Repository navigation
fix(cli,lint): gate the i18n flow coverage bucket on the liveness ledger - #12442
Conversation
`os lint` computes i18n coverage and runs the authoring-rule registry in one
pass over the same stack, and for the `flows` translation group the two halves
pointed opposite ways: omitting the keys drew `i18n/missing-flow`, authoring
them drew `liveness-planned-property` ("sets `flows` but this translation
property is planned"). Measured on one stack: 4 demands vs 2 warnings, and no
third move — `os lint` has no per-rule suppression, only `--skip-i18n`, which
silences the whole `i18n/missing-*` family.
The warning is true and is unchanged: no shipped screen-flow runner reads the
group. The demand is the premature half.
`collectExpectedEntries` — the single definition of what is translatable at
all, shared by the coverage gate and the `os i18n extract` skeleton — now
leaves out any translation group the liveness ledger warns authors for
authoring, reading that set from `@objectstack/lint`'s new
`authorWarnedProperties(type)`: the very warn map `lintLivenessProperties`
iterates, so the demand side and the warn side read ONE verdict.
Reading the ledger rather than switching on `flows` by name means the bucket
turns itself back on the day the row flips to `live`, and any future warned
group is covered on the day it is marked.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UjujZN219uFzBhSYfMykCd
`check:i18n-coverage` counts untranslated declared strings per example config against a shrink-only baseline. Gating the `flow` bucket removes the `flows.*` demands, so the count improves on exactly the three example apps that declare a `type: 'screen'` flow and on no other config: examples/app-crm 93 -> 89 examples/app-showcase 424 -> 393 examples/app-todo 140 -> 120 The other 9 baselined configs are unchanged — `examples/embed-objectql` and the 8 platform/plugin extract configs declare no screen flow. Regenerated with `node scripts/check-i18n-coverage.mjs --update`, the repair the gate itself prescribes for a ratchet DOWN. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UjujZN219uFzBhSYfMykCd
…8n-flow-bucket-liveness-gate
📓 Docs Drift Check7 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 26 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 d5fc40ec65fcf4c9a46553438443b180f48b441a && git checkout d5fc40ec65fcf4c9a46553438443b180f48b441a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5150053a495797de0524e5bbca56eb0232f2ce2d 52991eb9e7137e356862d673a6ce2c8289075c9d && git checkout -B drift-repro 5150053a495797de0524e5bbca56eb0232f2ce2d && git merge --no-ff 52991eb9e7137e356862d673a6ce2c8289075c9d
node scripts/docs-audit/affected-docs.mjs --json 5150053a495797de0524e5bbca56eb0232f2ce2d |
… the translated heading (objectstack-ai#33575) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XPgd8ZZWd9bveFNaYXhzdnR)_ domain:ui#1 · os-project-manager · session_01FEkQ5p26Duousy4rdtkRMB Fixes objectstack-ai#33471 Clause-②: no Metadata-protocol: none Seat `domain:ui#1` · card thread `session_01FEkQ5p26Duousy4rdtkRMB` · claim 6886592905 ## 维护者速读 - 改了什么:Studio 给没有字段分组的对象新建完整记录页(或把默认页「转为完整页面」)时,「More details / 更多详情」分区的标题不再写成英文原文,而是写成每种内置语言各一条的多语言写法(取自语言包 `detail.sectionMoreDetails`),保存后的页面按查看者的语言显示。对象自己语言包里的 `_sections.details.label` 仍然优先。 - 为什么改:运行中的记录页会翻译这个标题,但 Studio 生成的页面把它存成英文字符串,非英文用户打开保存过的页面看到的是 "More details"。objectstack-ai#33470 已为「其他」分区用了同一写法。 - 风险与回滚:只改 Studio 生成页面的方式,不改 spec、不改运行中的记录页、不迁移已保存的页面(它们仍显示英文,对象语言包的覆盖照样生效)。回滚即还原本 PR。 - 先看:`ui/packages/app-shell/src/views/recordDetailSections.ts` 的 `loadPersistedSectionLabels`;`metadata-admin/previews/PagePreview.tsx` 的 `convertToFull`;`metadata-admin/anchors.ts` 的 record 页 `createSeed`。 - 两分钟验证:`pnpm --dir ui exec vitest run packages/app-shell/src/views/recordDetailSections.studioMoreDetailsHeading-33471.test.tsx`,预期 5 条全绿(中文显示「更多详情」,英文显示 "More details",对象语言包的标题优先)。 - 需要你做的:无,席位落地。 ## What changes **Measured first, on `origin/main` (`8e63ed87`).** Studio's create seed (`metadata-admin/anchors.ts`, record page `kind: 'full'`) and `PagePreview.tsx` `convertToFull` passed `MORE_DETAILS_DEFAULT_LABEL` as the `details` section's label, so the saved section was `{ name: 'details', label: 'More details', … }`. The red-first run below draws that saved seed through the real `RecordDetailsRenderer` under `zh-CN`: 「更多详情」 is not on the page (the English text is), while en and an object bundle carrying `_sections.details.label` read correctly. It reproduces. **How `record:details` resolves the heading (the measurement the order asked for).** In `plugin-detail` `record-details.tsx`, a section's `label` is first resolved for the viewer with `pickLocalized(s.label, language)`, and when the section has a `name`, that text is passed as the FALLBACK to `sectionLabel(objectName, s.name, rawTitle ?? s.name)`, which answers `objects.OBJECT._sections.NAME.label` when the bundle has it (`useObjectLabel` `sectionLabel` → `resolve(objectSuffixes(…), fallback)`). So an inline locale map never shadows the per-object override: the override wins over the map exactly as it wins over a string. Leaving `label` unset would not help either: the fallback then becomes the literal section name `details`. ⇒ the form objectstack-ai#33470 chose for the ungrouped bucket fits here too, and this PR uses it. The CONTROL pin below draws the override winning over the map. **The change.** - `recordDetailSections.ts`: `loadPersistedUngroupedHeading` becomes `loadPersistedSectionLabels(objectDef)`, which answers both headings the derivation writes itself, each as the inline locale map of its catalogue key over every catalogue `@object-ui/i18n` ships (`BUILT_IN_LANGUAGE_CODES` + `loadBuiltInLocale`): `moreDetails` from `detail.sectionMoreDetails`, `ungrouped` from `common.ungroupedSection` (unchanged). It loads the catalogues only when the page writes one of them (the object's `fieldGroups` apply, or the flat split yields a `details` section), and otherwise answers the English defaults, which no section reads. One catalogue that fails to load rejects the whole call (`Promise.all`), so no partial map is ever saved (the objectstack-ai#33470 rule). `RecordDetailSectionLabels.moreDetails` widens from `string` to `SectionHeading` (app-shell internal). - `anchors.ts` (create seed) and `PagePreview.tsx` (`convertToFull`) pass `loadPersistedSectionLabels`' answer. "Convert to full page" stays disabled until it has loaded for the current object, as before, and stays unavailable if a catalogue fails. - The running record page (`RecordDetailView`) and the slotted preview still pass the translated text; they are untouched. **What an existing page shows.** No migration. A page saved before this change keeps `label: 'More details'` (a plain string): every viewer reads English, unless the object's bundle carries `_sections.details.label`, which still wins. An author can change the heading in the page designer, or re-create the page. ## Why The running record page translates the "More details" heading for every viewer; a page Studio seeded saved it as English, so the same page read differently once saved. objectstack-ai#33470 settled the persisted form for the sibling "Other" heading; this applies it to the other heading the seed writes itself. ## Tests - **New: `recordDetailSections.studioMoreDetailsHeading-33471.test.tsx`** (5 tests, the real `RecordDetailsRenderer` under `I18nProvider`, as objectstack-ai#33470's pins). - The seed for a flat object with a long-text field writes `details.label` as the map of every shipped catalogue's `detail.sectionMoreDetails` (keys = `BUILT_IN_LANGUAGE_CODES`, `en` "More details", `zh-Hans` 「更多详情」), never a string; firing control: the split yields `[['name','subject'],['notes']]`. - The seeded sections parse under the spec's `RecordDetailsProps`. - Drawn under `zh-CN`: 「更多详情」, no "More details", above the `notes` value. - CONTROL, `en`: "More details". - CONTROL: an object bundle with `_sections.details.label` (「补充信息」) wins over the saved map. - **New leg in `PagePreview.slottedDefault-27054.test.tsx`**: "Convert to full page" on a flat object with a textarea writes the `details` section under the same map, and the converted page passes `validateMetadataDraft('page', …)` and the block props check. - **Adjusted sibling pins** (they asserted the English string this card removes): - `recordDetailSections.studioUngroupedHeading-33377.test.tsx` CONTROL: a flat object's primary section stays unheaded and only its `details` section carries a map; a page that writes neither heading answers the English defaults (it called the removed `loadPersistedUngroupedHeading`). - `recordDetailSections.agreement-12442.test.ts`: the flat seed equals the runtime split with the persisted headings, and `details.label.en` is "More details". <details><summary>Red-first on origin/main sources (the three source files checked out at 8e63ed8, tests at head): 3 failed | 8 passed (11)</summary> ```text × the details section carries the locale map of every shipped catalogue 29ms × zh-CN: the section is headed 更多详情, never the English text, above its field 87ms × writes the details section under the locale map of every shipped catalogue 39ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯ AssertionError: expected 'string' to be 'object' // Object.is equality TestingLibraryElementError: Unable to find an element with the text: 更多详情. AssertionError: expected 'string' to be 'object' // Object.is equality Test Files 2 failed (2) Tests 3 failed | 8 passed (11) os-verify-lock: VERDICT command-exit 1 · held the lock 16s · waited 0s · ⚠ SHARED-BOX SECONDS — this lock excluded other LOCKED runs, NOT unlocked sibling work (`check:*` gates and the rest), so these ``` </details> <details><summary>Ablation at head 8ade4c0: the map put back to the English string — 3 failed | 8 passed (11); restored, blob == HEAD</summary> ```text ablation-replace: anchor " return { moreDetails, ungrouped };" x1 (before) ablation-replace: replace " return { moreDetails: MORE_DETAILS_DEFAULT_LABEL, ungrouped };" x0 -> x1 ablation-replace: ok mutation landed: anchor 1 -> 0, blob 01bc7b3 -> 161be10235f8 × the details section carries the locale map of every shipped catalogue 69ms × zh-CN: the section is headed 更多详情, never the English text, above its field 132ms × writes the details section under the locale map of every shipped catalogue 39ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯ Test Files 2 failed (2) Tests 3 failed | 8 passed (11) ablation-replace: ok restored: blob == HEAD (01bc7b3) and `git diff HEAD` is empty ``` </details> <details><summary>Touched and sibling files at head 8ade4c0</summary> ```text 8 touched/sibling files (the new pin, objectstack-ai#33377, objectstack-ai#12442, 27054, PagePreview, 27177, anchors.page-seed, 6190): Test Files 8 passed (8) Tests 54 passed (54) os-verify-lock: VERDICT command-exit 0 · held the lock 42s · waited 0s · ⚠ SHARED-BOX SECONDS — this lock excluded other LOCKED runs, NOT unlocked sibling work (`check:*` gates and the rest), so these Every app-shell test file importing recordDetailSections, metadata-admin/anchors or PagePreview (41 files): Test Files 41 passed (41) Tests 370 passed (370) os-verify-lock: VERDICT command-exit 0 · held the lock 219s (3m39s) · waited 0s · ⚠ SHARED-BOX SECONDS — this lock excluded other LOCKED runs, NOT unlocked sibling work (`check:*` gates and the rest), ``` </details> ## Acceptance notes - `@object-ui/app-shell` is private; its dist ships in `@object-ui/console`, so the changeset names both (the objectstack-ai#33470 precedent). `Clause-②: no`: no published API or metadata contract moves; the inline locale map is a form `record:details` `sections[].label` already declares (`I18nLabel`). `Metadata-protocol: none`. - No out-of-scope finding. ## Verification All local readings at head `8ade4c0d` (the PR head). - `pnpm --filter @object-ui/app-shell run type-check` (both `tsc --noEmit` and `tsc -p tsconfig.test.json`), after `pnpm --filter '@object-ui/app-shell^...' build`: exit 0 (`os-verify-lock: VERDICT command-exit 0 · held the lock 145s …`). - `pnpm check:new-line-citations` (ui): `VERDICT new-cross-file-line-citations: 0 new citation(s), enforcement report-only -> exit 0`. - Control-byte / NBSP scan of the added lines: 0 hits. - Derived gate families (`node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`), each exit code captured before any pipe; reconciliation `✓ dispatch-gates --ran: 36 derived famil(ies) accounted for — 36 run, 0 NOT-MEASURED (a DERIVED zero — all 36 recorded an exit code and none of them is 3).` <details><summary>36 derived families, all exit 0</summary> ```text node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0 node scripts/check-adr-0087-registration.mjs --self-test :: exit 0 node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-empty-changeset.mjs --base origin/main :: exit 0 node scripts/check-empty-changeset.mjs --self-test :: exit 0 node scripts/check-sdui-manifest.mjs :: exit 0 node scripts/check-sdui-manifest.mjs --self-test :: exit 0 node scripts/ci/snapshot-next.mjs --self-test :: exit 0 node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0 node scripts/release-pending-publish.mjs --self-test :: exit 0 pnpm --dir ui exec vitest run scripts/ :: exit 0 pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0 pnpm check:changeset-gate-self-tests :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:dispatcher-error-vocabulary :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:engine-double-contract :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:published-files :: exit 0 pnpm check:query-options-erasure :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:registry-log-declared :: exit 0 pnpm check:rest-log-spy-declared :: exit 0 pnpm check:skill-identifier-liveness :: exit 0 pnpm check:test-source-alias :: exit 0 pnpm check:tier-file-adoption :: exit 0 pnpm check:type-check-coverage :: exit 0 pnpm check:type-check-debt :: exit 0 pnpm check:undeclared-dep-imports :: exit 0 pnpm check:watch-hint-literal :: exit 0 pnpm check:where-matcher :: exit 0 ``` </details> Every family CI runs (the full Test UI shards, lint, the artifact roster) is read off this PR's check-runs; nothing there is re-run locally. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No `packages/spec` change.) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` is CI's run. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 block is the seat channel's Chinese). --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5p26Duousy4rdtkRMB)_ Co-authored-by: Claude <noreply@anthropic.com>
Fixes #11624
The collision, reproduced before it was fixed
os lintcomputes i18n coverage and runs the authoring-rule registry in a single pass over the same stack —Lint.runcallslintConfig(→runAuthoringRules('lint'), which carrieslintLivenessProperties) andcomputeI18nCoverageone after the other. For theflowstranslation group the two halves pointed opposite ways. Measured on one stack, one run, atcdbd9204b:i18n/missing-flowliveness-planned-propertyflows.*from the bundleos i18n extractscaffolds it)The warn side's exact text:
sets `flows` but this translation property is planned — declared, and a consumer is being built against it (not read YET).On the "no third option" claim — the card's central assertion, verified and refined rather than falsified.
os linthas no per-rule or per-bucket suppression: the flags are--skip-i18n,--include-platform,--i18n-strict,--default-locale, and nothing else; the authoring-rule registry has no opt-out field. So a third option exists only in the coarse sense —--skip-i18nsilences the entirei18n/missing-*family, i.e. exactly the signal #11485 was filed to restore. At the granularity of theflows.*keys themselves the card is right: there is no move that satisfies both rules. Under--i18n-strictthe demand side becomes an error, so a project could be forced to author keys it is then warned for.The warn side is live, not inert — confirmed.
lintLivenessPropertieswalks locale-keyed bundles (packages/lint/src/lint-liveness-properties.ts:391,asArray(stack.translations)then one level into each locale), which is #11288's fix, and it fired on both locales of a real authored bundle in the measurement above.⛔ The warning is true and is not softened here. No shipped screen-flow runner reads the group, so a translated wizard string is stored and never shown — the failure mode
validationMessageswas removed in 17.0.0 for. Its rule id isliveness-planned-property, i.e. keep the key, not remove it. The premature half is the demand, and that is what this PR gates.The fix
collectExpectedEntriesinpackages/cli/src/utils/i18n-extract.ts— the file's own docstring calls it "the single definition of what is translatable at all", consumed by both the coverage gate and theos i18n extractskeleton — now drops any entry whose top-level translation group the liveness ledger warns authors for authoring.It gets that set from a new
authorWarnedProperties(type)exported by@objectstack/lint, which returns the very warn maplintLivenessPropertiesiterates. That is the load-bearing choice: a demand side and a warn side can only be kept from contradicting each other by reading one verdict, and the first thing a second reader of the same JSON would do is drift from it.Three properties follow from reading the ledger instead of switching on
flowsby name:live(dropping itsauthorWarn, which exists precisely because nothing reads the group), both the coverage report and the extract skeleton pick the group up again. No flag, no follow-up edit.lintLivenessPropertieswarns on nothing. The state that must never arise is one of them speaking alone.Gating
os i18n extracttoo is deliberate, not incidental. The card names extract as the other door into the same trap ("adds it, e.g. fromos i18n extract"), andi18n-coverage.tscarries an explicit invariant — the walker is shared "so the gated surface and the scaffolded surface can never disagree". Gating only the coverage bucket would have satisfied the letter of the suggested shape while moving the collision from lint-vs-lint to extract-vs-lint, and broken that invariant on the way.Join depth. The match is on the group (
path[0]) and stops there, because that is the only depth at which the warn side can fire for file-authored bundles:getNestedfans out over arrays, and a translation group is a record keyed by target name, so a warned child row (flows.label) would resolvedata.flows.label— a path no real bundle has — and warn nobody. Matching deeper would suppress keys nothing warns about.Measurements the card asked for
Every line number re-measured on
origin/main; ⛔ not reconciled with the card's 2026-08-24 figures.cdbd9204blint-liveness-properties.ts:387—asArray(stack.translations)authoring-rules.ts:1081— registrationname:), call at :1090;commands: ALL,surfaces: CLI_ONLY,tier: 'advisory', severitywarning— all as describedpackages/spec/liveness/translation.json:63— theflowsrowstatus: planned,authorWarn: true, childrenlabel/screensbothplannedwithoutauthorWarni18n-extract.ts—walkScreenFlowsi18n-coverage.ts—COVERAGE_SOURCE/flowbucketThe⚠️ census —
flowsis the only affected group. Of the 14 top-level groups intranslation.json, 13 arelive;flowsalone isplanned+authorWarn. The two otherauthorWarnrows in the wholeliveness/tree arefield.json'srelatedListFilterandobject.json'sexternalSharingModel— object/field properties, which the i18n walker never harvests into a translation bundle, so they cannot collide this way. Pinned as an equality (toEqual(['flows'])), not atoContain, so a second warned group goes red and is considered before it ships.Instrument discipline. Every zero-hit reading here is paired with a positive control from the same instrument on a term independently known present and never a substring of the term under test — e.g.
flowsscores 0 in the committed example bundles whileobjectsscores 4 in the same file;embed-objectqlscores 0 screen-flow files while scoring 2 on the control term. The committed test carries the same pairing: theflows-is-warned assertion supplies the positive, and the six live groups supply the negatives.Tests
Fixture triage of the existing #11485 pins, stated because "green" and "green by emptiness" are different things.
i18n-flow-screen-coverage.test.ts's 13 pins are all about the bucket itself — which keys the walker harvests, how the report attributes them, what the skeleton looks like — and none of that changed. What changed is when it runs. Retiring them would have left the flip with no proof the bucket still works; leaving them to run gated would have turned four of them into assertions over an empty walk. So the file now mocksauthorWarnedPropertiesto the empty set — the post-flip ledger — and keeps all 13 verbatim. The gated half is pinned next door in the newi18n-flow-liveness-gate.test.ts, against the real shipped ledger, so it goes red the day the row moves and someone must look at both halves together.Reverse verification — two ablations, each with its restore leg proven on disk. Predicted direction first, both times "the gate test goes red, the as-if-live file does not":
collectExpectedEntries:i18n-flow-liveness-gate.test.ts5 failed / 16 passed;i18n-flow-screen-coverage.test.tsstayed fully green, as predicted (it is as-if-live either way). The three gate pins that survived are the ones that do not route through the filter (the census, the negative control, thewarnedGroups: new Set()self-activation pin).i18n-flow-screen-coverage.test.ts: 9 failed / 4 passed, proving those pins really do assert over a walked surface. The 4 survivors are the silent-either-way ones — and one of them,never emits the keys the schema refuses by name(.toEqual([])), is green-by-emptiness without the mock, which is exactly why the mock is there rather than the pins being retired.Mutation was confirmed on disk each time by counting the removed text and the injected marker separately (
before=1 / after=0 / marker=1) plus agit hash-objectdiffering from theHEADblob — never by an editor's exit code. Each script installed atraponEXIT INT TERMcalling a named restore function, which seedsREPO_ROOTfromgit rev-parse --show-topleveland restores the absolute path"$REPO_ROOT/$REL"withgit checkout HEAD -- "$REPO_ROOT/$REL"— pinned toHEAD, never the bare two-argument form, which restores from the index and would have put the mutation straight back on disk at exit 0. Restoration was proven bygit diff HEADbeing empty and the blob hash returning to theHEADvalue, not by the trap having run. No rebuild was needed for either leg: both suites import the CLI's TypeScript source (../src/utils/i18n-extract.js), so nodist/sits between the mutation and the reading.Suites and gates, all at the final commit
52991eb9e(re-run after theorigin/mainmerge, not carried over from the pre-merge tree):pnpm --filter @objectstack/cli test— 184 files / 2102 passed, after one unrelated flake was isolated (see below)pnpm --filter @objectstack/lint test— 81 files / 2298 passedpnpm --filter @objectstack/cli typecheck,pnpm --filter @objectstack/lint typecheck— cleanpnpm check:type-check-debt—--re-measure: OK — 32 ledger entr(ies) re-measured in 214.8s, 1843 raw tsc error(s) total, none above its recorded number, withsurplus: none — every entry sits exactly at its measurement, so any new error is red. This is what typechecks the new test files: both packages hide their tests from their owntscprogram (packages/lint/tsconfig.jsonexcludes**/*.test.ts;packages/cli/tsconfig.jsonincludes onlysrc), so the packagetypecheckscripts say nothing about them — stated rather than left to read as coverage they do not have.pnpm check:i18n—OK (9 package(s) — all bundles in sync, no undeclared authoring keys)pnpm check:i18n-coverage—OK (12 config(s), 602 baselined untranslated string(s), none new)(see the ratchet below)check:nul-bytes,check:cross-package-test-inputs,check:test-source-alias,check:engine-double-contract,check:where-matcher,check:query-options-erasure,check:type-check-coverage,check:cli-test-child-env,check:published-files,check:page-declaration-shape,check:slot-lookup,check:type-source-resolution,check:cli-command-ids,check:entry-guard,check:parse-guard,check:pnpm-filter-targets,check:agent-test-spelling,check:bash32-floor,check:react-page-adapter-contract,check:role-word,check:published-readme-links,check:doc-anchors,check:doc-authoring,check:docs-single-h1,check:docs-redirects,check:docs-audit-scope,check:objectui-changeset,check:changeset-gate-self-tests, spec'scheck:docs/check:liveness/check:strictness-ledger/check:empty-state/check:variant-docs/check:skill-examples, lint'scheck:doc-formula-expressions/check:doc-security-posture, and the script-formcheck-doc-frontmatter,check-doc-route-spelling,check-docs-section-name,check-section-landing-index,check-empty-changeset,check-changeset-no-major,check-adr-0087-registration,check-ci-filter-parity,check-plugin-teardown-shape,check-comment-mask-adoption,docs-audit/check-affected-docs,docs-audit/check-drift-comment,pm/release-rehearsal-clone --self-test.pnpm lintwas narrowed, and the narrowing is measured rather than asserted. ① The examined population is read from ESLint's own config, not guessed: run over all 9 changed paths, ESLint itself reportscontent/docs/ui/translations.mdx,scripts/i18n-coverage-baseline.jsonand the changeset.mdas "File ignored because no matching configuration was supplied" — outside the linted population by config. ② The count comes from--format json: 5 in-scope.tsfiles, 0 errors, 0 findings. ③ Invariance for untouched files:eslint.config.mjsis the repo's single config and never enables type-aware linting for any file — noparserOptions.project, no typed@typescript-eslintrules, a claim the config itself records as positive-control-measured at line 328. Each file's verdict is therefore a pure function of that file plus the shared config, and this diff touches no config, so it cannot move the verdict of a file it does not contain. CI runs the full farm regardless.One unrelated flake, isolated and filed, not swept. The first full CLI run came back 1 failed / 2101 passed on
test/serve-node-env-production-default.e2e.test.tswith✗ Port 49402 is already in use— a port bind race with a parallel agent in this shared container, not an assertion failure and nothing this diff can reach. Re-run in isolation: 3 passed. The mechanism (a blindMath.random()port draw with no bind probe, under a docblock claiming it "never contends") is filed as #12441, unassigned, and ⛔ not fixed here.The i18n coverage ratchet moved down, and only where it should
check:i18n-coveragecounts untranslated declared strings per example config against a shrink-only baseline. Removing theflows.*demands improved it on exactly the three example apps that declare atype: 'screen'flow, and on no other config:The other 9 baselined configs are byte-unchanged —
examples/embed-objectqland the 8 platform/plugin extract configs declare no screen flow, censused with the paired positive control described above. Regenerated withnode scripts/check-i18n-coverage.mjs --update, the repair the gate itself prescribes for a ratchet DOWN, and confirmed independently:os lint --jsononapp-crmafter the change reportsi18n/missing-flow: 0while every other bucket is intact (missing-object8,missing-option34,missing-field22,missing-action2,missing-navigation6,missing-dashboard2,missing-widget12,missing-page3) — total 89 warnings, matching the new baseline exactly.scripts/i18n-coverage-baseline.jsonis a shared hot file; a sibling agent was observed runningcheck:i18n-coveragein the same container during this work. If it conflicts at merge, the resolution is to re-run--update, never to hand-merge the numbers.Scope, and the two boundaries declared rather than crossed
packages/specis untouched (ruling ②). Theflowsrow keepsstatus: plannedandauthorWarn: true; the ledger is read, never written. ⛔ No row was flipped, reshaped, or dropped.authorWarnwas not dropped from the row (ruling ①). The warning is true and stays.Clause-② holds as determined at claim time. The declared accept set is unchanged: no schema, no key, no validity boundary moves.
TranslationDataSchemastill accepts exactly the sameflows.*keys it accepted before — an author who writes them still parses clean, and still gets the (true) liveness warning. What changed is which keys a reporting tool asks for. This isdeclared = enforcedrestoration on the tooling side.File-surface delta, stated because it exceeds the claim comment's literal list by one file. The claim comment (5419223296) named
i18n-extract.ts,lint-liveness-properties.ts,authoring-rules.ts, their sibling tests, andtranslations.mdx. Two departures, both upward-visible:packages/lint/src/index.ts— one added re-export line.@objectstack/lintpublishes exactly two subpaths (.and./runtime), so a symbol added tolint-liveness-properties.ts(which is in the surface) is unreachable without its barrel line. The only alternative was to re-derive the ledger predicate insidepackages/cli— precisely the drift this card exists to close. No API-surface artifact exists for this package, so the delta is the one line.scripts/i18n-coverage-baseline.json— a generated ratchet artifact this change necessarily moves, regenerated by the command the gate's own failure text prescribes.And one file the retriage ruling named that turned out not to need editing:
packages/cli/src/utils/i18n-coverage.ts. The ruling (5415947100) placed the remedy onCOVERAGE_SOURCE; measurement showed the shared walker is the single definition, so gating there gives the coverage gate and the extract skeleton one consistent answer with zero edits to that file. Worth flagging because the claim comment's file surface omitted it while the ruling named it — the discrepancy is real, and it resolved in the direction of a smaller diff.packages/lint/src/authoring-rules.tswas read (to confirmcommands: ALL/surfaces: CLI_ONLY) and not edited.Docs
content/docs/ui/translations.mdx"Current boundaries" told an author the group is declared-not-applied and that the compile lint warns — but not what the tooling would do. It now carries the other half:os lintdoes not reportflows.*as missing andos i18n extractdoes not scaffold them, both reading the sameplannedrow; authoring the copy anyway yields the liveness warning and nothing else, which is telling the truth rather than asking for a deletion; and the day the row flips, both surfaces pick the group up with no flag to turn on.Generated by Claude Code