Skip to content

docs(skills): objectstack-i18n teaches the packages group, and both related-list skills name the two routes for a .custom arrangement's tab title - #38205

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

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

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #37988
Fixes #38128

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:给客户写翻译包的人和 AI 现在能从技能和文档里学到两件新事:软件包的名称怎么按语言显示,定制包自己改的相关列表标签页标题怎么翻译;运行时行为不变。
  • 为什么做:是两次已合并改动欠下的技能补课(软件包名称按语言显示、定制包标签页标题按译文显示),不补的话 AI 会漏写软件包名称的译文,或继续走「照抄原标题」这条已不是唯一的老路。
  • 出错会怎样:最坏是技能里某句说法和实际行为对不上,AI 写出的翻译会多报或漏报一条提示;只改文字,可以直接撤回。
  • 要你做什么:技能文件改动需要你批准合并。

What changes

#37988: the translation bundle's packages group (shipped in ab04434).

  • skills/objectstack-i18n/SKILL.md, the top-level group list: packages holds name / description keyed by manifest.id, the dotted id one key, with an inline example; a locale with no row shows manifest.name; os lint warns i18n/missing-package (os i18n check lists the same gap by key) until the package's own bundle carries the row.
  • content/docs/ui/translations.mdx: a "Package name / description" row in "What you can translate" (Setup's package list and Studio's switcher, where an app-carrying package keeps its app's label), and a paragraph with an example under "Draft with the CLI, gate in CI": os lint reports i18n/missing-package, os i18n check lists the key, and the row clears both.
  • content/docs/protocol/kernel/i18n-standard.mdx: a packages line in the TranslationData example with a paragraph on the key grammar, the refused spellings and the fallback; and a paragraph in "Orphan Keys and Option Keys": packages keys are held to the id grammar at parse, not resolved against manifests, and their coverage is os lint's i18n/missing-package warning, which os i18n check lists by key. No row in the "Resolves when it names" table, because os validate does not resolve these keys (the out-of-scope question skills(objectstack-i18n) + docs: teach the translation bundle's packages group (a package's display name and description per locale, from #35513) #37988 names).

#38128: a .custom arrangement's own tab title translates (shipped in ee2ffca).

Token ratchet (scripts/check-skills-token-ratchet.mjs): no raise, no ruling spent. Each addition is paid by deleting restatement in the same file.

  • objectstack-i18n/SKILL.md row 6333 → 6315, pinned at the measurement. Cut: the translation-reference paragraph's six-item list of action keys judged against a declaration (each item is already conditioned in the _actions row; now one sentence pointing at it, and the row gains "non-empty" on submitText, the one nuance only the list carried), and the three code-comment tails of the first example ("one TranslationData per locale", "assemble the locales into one bundle…", "…and register it on the stack"), which repeat the sentence introducing it.
  • objectstack-data/rules/relationships.md row 4181 → 4179, pinned at the measurement. Cut: "(cascade delete)" in the type table (Delete Behaviors states it), "to aggregate" after the roll-up intro, the grid example comment "(a field group names invoice_line, as above)", and "places the lines and" in the inline-entry example's comment.

Changeset: .changeset/37988-skills-i18n-packages-group.md, @objectstack/skills patch. No package ships content/docs.

Skills readings (lines / bytes / tokens)

before after
skills/objectstack-i18n/SKILL.md 506 / 25359 / 6333 504 / 25285 / 6315
skills/objectstack-data/rules/relationships.md 383 / 16724 / 4181 384 / 16714 / 4179
all skills/*/SKILL.md 4953 / 262572 4951 / 262498
all of skills/** 23330 / 1224868 23329 / 1224784

Tests

Text only; no runtime code changes. The shapes taught were read on main: packages/spec/src/system/translation.zod.ts (the packages member: id-grammar key, name / description, aliases package, label, title, displayName), packages/cli/src/utils/i18n-coverage.ts (the package bucket, i18n/missing-package), StudioPackageSwitcher.tsx (appLabel || packageName(p)), and PR #38085's commit body plus i18n-standard.mdx's _relatedLists row. A tsx probe of defineTranslationBundle from source refused a crm key (id grammar) and answered package → packages and leaf label → name.

Acceptance notes

Verification

Two-minute check: node scripts/check-skills-token-ratchet.mjs, expect exit 0 with skills/objectstack-i18n/SKILL.md 6315 / 6315 and skills/objectstack-data/rules/relationships.md 4179 / 4179.

Read first, by risk: skills/objectstack-i18n/SKILL.md (the _relatedLists row and the replaced action-key sentence), skills/objectstack-data/rules/relationships.md (the remedy), content/docs/protocol/kernel/i18n-standard.mdx (the packages paragraphs).

Local gates at 626d0d9

node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran FILE with each command recorded as CMD :: exit N: 92 derived, 91 run, 1 NOT-MEASURED, 0 UNRUN; every run family exit 0, among them check-skills-token-ratchet.mjs (and --self-test), check:doc-authoring, spec check:docs / check:skill-docs / check:skill-examples / check:skill-served-sections / check:liveness, check:empty-changeset, check-adr-0087-registration.mjs --base origin/main.

  • NOT MEASURED: check:dual-build-cjs-loads, exit 3 (prerequisite not met: it reads every package's dist/, and only the spec and client-react closure was built). The diff publishes skills text only.
  • CI at 626d0d9: 33 success, 15 skipped, 0 failed; mergeable.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgX4oqMXTKRLtGx5S9c

…ed-list skills name the two routes for a .custom arrangement's tab title

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgX4oqMXTKRLtGx5S9c
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 49440c7801a8df9b62e420f41f21a2ebd1a6e81d
Local-runs: none
Scope: skills/objectstack-data/rules/relationships.md, skills/objectstack-i18n/SKILL.md + scripts/check-skills-token-ratchet.mjs
Security-touching: no

Inputs read: card #37988 (body, 3 comments, dev report 7235781864), folded card #38128 (body, 2 comments), PR #38205 (body, 6 files, net diff against merge-base 4f7aa88a, which is origin/main), and the check-runs on the head. Cited code was read on main, nothing was built or run.

① Derived judgments

  • No accept-set change. The diff touches no schema, validator, lint rule or runtime file; nothing an author can write is accepted or refused differently. Right.
  • Public surface: the published text of @objectstack/skills (two files) changes. Right, and carried by the changeset.
  • scripts/check-skills-token-ratchet.mjs: the skills/objectstack-i18n/SKILL.md ceiling tightens 6333 to 6328 and the relationships.md ceiling holds at 4181. Both agree with the blobs at the head: 25339 bytes, ceil((25339 - 27) / 4) = 6328; 16721 bytes, ceil(16721 / 4) = 4181 (base blobs 25359 and 16724). No raise, so no ruling is owed. Right.
  • content/docs/** ships in no package. Right.

② Semver level

.changeset/37988-skills-i18n-packages-group.md declares @objectstack/skills patch. The diff publishes skill wording only, so patch is the right level. Clause-②: no on the PR body and the changeset is right: no accept set narrows and no published schema moves. Metadata-protocol: none is right.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Dev flag, "Setup's package list fallback to manifest.name not verified by running": answered by reading. ui/packages/app-shell/src/views/metadata-admin/PackagesPage.tsx (l.843, l.1620-1625) and StudioPackageSwitcher.tsx (l.73 pkg.name || pkg.id, l.93 appLabel || packageName(p)) do what the text says, including the switcher keeping an app's label.
  • Dev flag, "the os lint spelling of the warning not verified by running": the os lint spelling is right (packages/cli/src/commands/lint.ts l.79, i18n/missing- plus the package bucket of i18n-coverage.ts l.410). The attribution of that id to os i18n check is not; see S1.
  • Dev flag, PR docs(skills): five skills follow-ups — audit sealing, compareTo date key, i18n wording, nested relation conditions #38196 edits other lines of the same SKILL.md: outside this review. The i18n ratchet row is re-measured by whichever lands second.
  • Dev flag, check:dual-build-cjs-loads not measured locally: the diff has no built code; Build Core on the head is green.
  • SQL push-down: no code path, no query, no id materialisation in the diff. Nothing to find.
  • Check-runs on the head: every completed run is success or skipped, none failed. One re-run of Check Changeset (started 07:15Z, after the PR body edit) was still in progress at read time; the earlier run of the same check on this head concluded success.

④ Design judgment

skills/objectstack-i18n/SKILL.md

The packages group, against packages/spec/src/system/translation.zod.ts l.2551-2592 on main:

  • "name / description by manifest.id": holds. The member is a record keyed by MANIFEST_ID_PATTERN holding a strict object of name and description.
  • "the dotted id one key": holds. The key is one record key, and the docblock says a client reads the row by direct property access, never a dot path. The example packages: { 'com.acme.crm': { name: '客户关系' } } passes the id grammar (address-grammar.ts l.70).
  • "a locale with no row shows manifest.name": holds, in the spec docblock and both console readers named under ③.
  • "until that package's own bundle carries it": coverage is judged over the merged bundles (mergeTranslationBundles), so a row in any bundle of the stack clears the warning. The package's own bundle is the placement the spec docblock prescribes. See N2.

S1 (should-fix) — the group text says "os i18n check warns i18n/missing-package". On main that id is produced by os lint alone: foldCoverageIssues in packages/cli/src/commands/lint.ts l.79 builds i18n/missing- plus the source. packages/cli/src/commands/i18n/check.ts prints the missing key (packages.com.acme.crm.name) and the sentence "Package ... missing translation for locale ...", and its --json carries source: "package"; the string i18n/missing-package appears in neither. This is the first i18n/missing-* id the skill names, and it is the one sentence the card's acceptance ("names the i18n/missing-package warning and how to clear it") rests on. An agent told this looks for the id in os i18n check output and does not find it. The fix is to name os lint as the reporter of the id, with os i18n check listing the same gap by key; it costs no tokens. The two docs pages carry the same attribution ("os i18n check and os lint report a missing one as the warning i18n/missing-package") and should take the same wording in the fix; they are the lane seat's remainder and are not graded here.

The _relatedLists.{list} row, against the object read on main (PR #38085, ee2ffca3):

  • "re-state the entry, shown, with a label: the owner's own keeps its translation": holds. hasRelatedListTitleOffBase in packages/rest/src/meta-item-read-gate.ts (l.3717) treats a label equal to the packaged base's as not diverged, and such a title reads the deployment catalog, which holds the owner's row.
  • "any other reads this key from the .custom package's own bundle": holds. objectPairRelatedListsBundleOf (l.3688) hands on only objects.{name}._relatedLists of the pair of the package the object's base ships in, at the same key. An entry the base does not label counts as diverged, so a label added where the owner had none is covered too.
  • "(os i18n check expects it)": holds; the i18n-standard.mdx _relatedLists row on main and the related-list-titles.ts fold say the same.
  • The refusal half of the sentence (os validate refuses the key where the arrangement re-states without a label or hides the entry) is unchanged and still true.

The cuts, judged for what a reader still needs:

  • The six-shape list in the translation-reference paragraph becomes one sentence pointing at the _actions row. Each of the six is conditioned in that row: the outcome, the resultDialog.fields and preflight.fields paths, the columns field and column paths, the resultDialog copy, cancelText, and submitText, whose row now says "a non-empty params", the one nuance only the list carried. The new sentence keeps the severity ("The same error") and the reason. Nothing needed is lost.
  • The "one TranslationData per locale" code comment repeated the sentence that introduces the example. Nothing lost; the example still passes the skill example checks on the head.

skills/objectstack-data/rules/relationships.md

  • The relatedLists bullet now reads "re-state the entry, shown, with the owner's label, or its own, translated at that key in the .custom package's bundle". Both routes hold against the same code as above, and the key is the one the bullet names two lines up. The antecedent of "its own" is loose; see N1.
  • Cuts: "(cascade delete)" in the type table (the Delete Behaviors section states cascade or restrict, so the cut also removes an overstatement), "to aggregate" after the roll-up intro, and the grid example's "as above" comment. Nothing a reader needs is lost.

scripts/check-skills-token-ratchet.mjs (implementing file)

  • Both rows agree with the measured blobs, as computed under ①. The two comment blocks describe the additions and the cuts as the diff makes them, sentence by sentence. The trailing history note on the i18n row ("then -5 (was 6333)") is right.

Nits:

  • N1 (nit) — relationships.md: "or its own" can be read as the entry's or the owner's own; "or the arrangement's own" would be unambiguous. The SKILL.md row says it clearly.
  • N2 (nit) — SKILL.md: "until that package's own bundle carries it" names the prescribed placement, not the only one that clears the warning; coverage reads the merged bundles. Accepted as written.

One should-fix (S1), no must-fix. The record passes the contract as taught, and S1 earns a delta review of its fix on the new head.

Implemented-by: claude/project-thread-o2yspl
Reviewed-by: isolated contract-review sub-agent of session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

…ts the key; name the arrangement's own label

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgX4oqMXTKRLtGx5S9c
@github-actions github-actions Bot added size/m and removed size/s labels Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 626d0d95d7340f92b16a48192e30b518f6418989
Local-runs: none
Scope: skills/objectstack-data/rules/relationships.md, skills/objectstack-i18n/SKILL.md + scripts/check-skills-token-ratchet.mjs
Security-touching: no

Delta review of the record on 49440c78. Judged: the one commit 626d0d95 (git diff 49440c78 626d0d95, six files, +28 / -24), the PR body as it now reads, and the check-runs on this head. The rest of the diff against main is unchanged from the reviewed head and stays covered by that record. Cited code was read on main; nothing was built or run.

S1: closed
N1: closed

① Derived judgments

  • No accept-set change in the delta: wording in two skill files, two docs pages, the changeset body and two ratchet rows. Right.
  • scripts/check-skills-token-ratchet.mjs: the skills/objectstack-i18n/SKILL.md row is now 6315 and the relationships.md row 4179. Both agree with the blobs at this head: 25285 bytes, ceil((25285 - 27) / 4) = ceil(25258 / 4) = 6315; 16714 bytes, ceil(16714 / 4) = 4179. Both rows move down, so no raise and no ruling is owed. Right.

② Semver level

Unchanged: @objectstack/skills patch, Clause-②: no, Metadata-protocol: none. The delta publishes skill wording only, so each still holds. The changeset body now states the corrected attribution and the new row values (6333 to 6315, 4181 to 4179), matching the tree.

③ Boundary flags

  • No new dev flag and no open_questions entry in the delta.
  • SQL push-down: no code path in the delta. Nothing to find.
  • Check-runs on this head: every completed run is success or skipped, none failed. One re-run of Check Changeset (started 07:45Z, after the PR body edit) was in progress at read time; the earlier run of the same check on this head concluded success.

④ Design judgment

skills/objectstack-i18n/SKILL.md

  • S1: the group text now reads "os lint warns i18n/missing-package (os i18n check lists the key) until that package's own bundle carries it". This agrees with main: foldCoverageIssues in packages/cli/src/commands/lint.ts l.79 builds the id, and packages/cli/src/commands/i18n/check.ts prints the missing key and never the id. Closed.
  • New cut: the two remaining code-comment tails of the first example ("assemble the locales into one bundle…", "…and register it on the stack"). The sentence introducing the example says "one TranslationData per locale, assembled with defineTranslationBundle and registered on the stack", and the file-path comments stay, so nothing a reader needs is lost. The example's code is untouched.

skills/objectstack-data/rules/relationships.md

  • N1: the bullet now reads "with the owner's label, or the arrangement's own, translated at that key in the .custom package's bundle". Unambiguous, and still true against objectPairRelatedListsBundleOf in packages/rest/src/meta-item-read-gate.ts. Closed.
  • New cut: "places the lines and" in the inline-entry example's comment. The paragraph directly above says the group "draws the child's table at its place in the record's details and in the parent's entry form", so the comment restated it. Nothing lost; "the group holds no fields" stays.

scripts/check-skills-token-ratchet.mjs (implementing file)

  • Both rows agree with the head blobs, as computed under ①. The comment blocks name the cuts as the delta makes them (three comment tails in the i18n example; four phrases in relationships.md), and the trailing history notes ("then -18 (was 6333)", "then -2 (was 4181)") are right.

The two docs pages (the lane seat's remainder, not graded) now carry the same attribution as the skill: os lint reports the id, os i18n check lists the gap by its key.

N2 is left as written, an accepted deviation, as the first record allowed.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-o2yspl
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA (isolated contract-review sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 626d0d9 · cards #37988 #38128 · area s2-ai · 2026-11-28T07:48Z

L1 checklist

Tier: H. Landing: hand-off to the maintainer follows this record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Tier H hand-off · 2026-11-28T07:49Z · head 626d0d9 · approver os-zhuang

维护者速读

@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 08:14
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 23fa361 Nov 28, 2026
58 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-o2yspl branch November 28, 2026 08:56
@objectstack-fleet objectstack-fleet Bot removed 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
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 size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants