Repository navigation
docs(skills): objectstack-i18n teaches i18n.sourceLocale - #33934
Conversation
The i18n key table gains the sourceLocale row, with the English-authored, Chinese-default configuration and the fallbackLocale serving caveat; the coverage and extract sections say source locale. One eval case added. Claude-Session: https://claude.ai/code/session_01ADHkmSpA1arrHg2f7Nwofb Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract reviewServed-tier: Inputs read: card #33635 body and its three comments (triage 6888748066, claim 6895864936, os-dev-report 6896182022; no ruling and no earlier review record on the card); PR #33934 body, its 3-file list and the net diff against Check-runs on ① Derived judgments
② Semver level
Clause-②: no — consistent across the claim (6895864936), the PR body and the changeset; nothing in the diff narrows an accept-set or removes a declared capability. ③ Boundary flagsPR author login:
④ Design judgmentskills/objectstack-i18n/SKILL.md — every new or changed sentence checked against
skills/objectstack-i18n/evals/bundles-locales-coverage.json — case 11:
Findings: S1 (should-fix) — case 11 forbids two strings the skill at this same head hands the answering agent in "form to avoid" framing. SKILL.md line 50–51 teaches "never N1 (nit) — the caveat sentence describes the standard boot ( No must-fix. Implemented-by: VERDICT: PASS |
The source-locale case refuses the English-default and role-swapped configs, and the skill's warning no longer spells the refused literal. Claude-Session: https://claude.ai/code/session_01ADHkmSpA1arrHg2f7Nwofb Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract reviewServed-tier: Delta record. It follows the review of Check-runs on ① Derived judgments
② Semver level
Clause-②: no — unchanged; the delta narrows nothing. ③ Boundary flagsPR author login:
④ Design judgmentskills/objectstack-i18n/SKILL.md — line 50–51 now reads: an app authored in English for Chinese users declares
skills/objectstack-i18n/evals/bundles-locales-coverage.json — case 11
S1: closed. Both halves are fixed: the skill no longer hands the answering agent Lines 35 and 147 still carry N1 (nit, carried) — the caveat describes the standard boot; unchanged, no action. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
|
Requested by Steve · project thread
Fixes #33635
Clause-②: no
Metadata-protocol: none
维护者速读
objectstack-i18n技能的i18n键表新增sourceLocale一行(内联label:文本的语言,缺省即defaultLocale),并写明英文编写、中文用户的配法和fallbackLocale的服务端注意事项;--default-locale的说明改为"覆盖源语言"。defaultLocale,AI 给"英文写、卖给中国用户"的应用会写defaultLocale: 'en',丢掉用户默认语言,或得到大量误报的"缺 en"。skills/objectstack-i18n/SKILL.md键表下方新增的四行(服务端注意事项一句)、skills/objectstack-i18n/evals/bundles-locales-coverage.json的第 11 条用例。node scripts/check-skills-token-ratchet.mjs,预期 i18n 行显示6146 / 6333且全绿。What changes
skills/objectstack-i18n/SKILL.md(published, English):sourceLocalerow (optional, defaults todefaultLocale; the language inlinelabel:text is written in; read byos lint,os i18n check,os i18n extract). ThedefaultLocalerow now says what it is: the locale a user who has not chosen one gets.defaultLocale: 'zh-CN', sourceLocale: 'en', not an EnglishdefaultLocale(the warning does not spell the literal the eval refuses). The serving caveat as the spec change published it: label serving still reads inline text asdefaultLocaletext, so withoutfallbackLocale: 'en'anenrequest reaches the zh-CN bundle before the English inline label. The serving card (i18n: the serving layer readsdefaultLocale, noti18n.sourceLocale, as the authored label's language — withdefaultLocale: 'zh-CN'and nofallbackLocale, anenrequest is served the zh-CN row instead of the English inline label #33634) is still open, so the caveat names no future behaviour. One clause names the refused near-miss spellingssourceLanguage/authoringLocale/authoringLanguage.computeI18nCoverageraises errors against (resolveSourceLocale).--default-localeoverrides the source locale for one run (i18n.sourceLocale, elsei18n.defaultLocale, elseen). It moved out of the trailing flag list into that sentence, so the list no longer repeats it.Every taught fact is read from origin/main:
TranslationConfigSchema.sourceLocaleand itsaliasesinpackages/spec/src/system/translation.zod.ts;resolveSourceLocale/withGatedDefaultLocaleinpackages/cli/src/utils/i18n-coverage.ts; the--default-localehelp inpackages/cli/src/commands/{lint,i18n/check,i18n/extract}.ts.skills/objectstack-i18n/evals/bundles-locales-coverage.json: case 11 (English-authored app, Chinese users by default). It must containsourceLocale,defaultLocale: 'zh-CN',fallbackLocale: 'en'andsupportedLocales, and must not containdefaultLocale: 'en'orsourceLocale: 'zh-CN', shapes only a wrong (English-default or role-swapped) config writes. It is self-consistent: nomust_not_containstring occurs in its ownexpected_outputor in the skill passages a correct answer quotes (the only SKILL.md hits are the two English-default config examples). Spliced with the file's hand formatting kept..changeset/33635-i18n-source-locale-skill.md:'@objectstack/skills': patch.Size readings (tree: objectstack-ai/objectstack, origin/main 895783a → this head)
skills/objectstack-i18n/SKILL.mdlinesskills/objectstack-i18n/SKILL.mdbytesskills/objectstack-i18n/SKILL.mdtokens (ratchet convention)skills/*/SKILL.mdlinesskills/*/SKILL.mdtokensevals/bundles-locales-coverage.jsonbytesThe ratchet row is untouched: the file stays under its ceiling, so nothing is raised. No duplicate needed trimming to pay for it.
Tests
No code changed, so there is nothing to ablate. Gate readings are below under Verification.
Acceptance notes
dispatch-gates --tierputsskills/**at the contract-review tier (clause ①, no one-line exit). This card thread is served at the default build tier and cannot switch its own model. With the seat's consent, the authoring (all three files and the commit) ran in an isolated os-dev subagent pinned to the contract-review tier inside this worktree. The relay writes, gates and report ran in the thread.sourceLocaleneed not appear insupportedLocales" and "withsourceLocaledeclared,defaultLocaleis gated and scaffolded even whensupportedLocalesomits it". Both are true on main. They did not fit the +6-line budget, andcontent/docs/ui/translations.mdxcarries both.defaultLocale: 'en', which is correct for an English-default app.Verification
All readings are at head
5b52d088(review round 1; the derived list is unchanged fromd3909868) (git rev-parse --short HEADafter the last commit), tree objectstack-ai/objectstack.turbo run build --concurrency=2 --filter='./packages/**'underos-verify-lock.sh,VERDICT command-exit 0(held 9m38s).check:skill-docs✅ "Skill docs in sync";check:skill-refs✅ "9 generated files in sync with packages/spec";check:skill-examples✅ "346 prose examples type-check across 3 surface(s)";check-skills-token-ratchet✓ "57 authored bundle file(s) within their ceilings", i18n row6146 / 6333.dispatch-gates --ran: "47 derived famil(ies) accounted for — 47 run, 0 NOT-MEASURED (a DERIVED zero)". Two extra runs are recorded outside the derivation (check:skill-examples,check:skill-refs).Derived gate list, 47 + 2, exit codes captured before any pipe
Generated by Claude Code