Repository navigation
docs(skills): five skills follow-ups — audit sealing, compareTo date key, i18n wording, nested relation conditions - #38196
Conversation
…, compareTo date key, i18n wording, nested relation conditions) Spec and client docblocks name the runtime HTTP dispatcher as the mounter of the i18n routes. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWxqfFaGCWssNvt6hh
📓 Docs Drift Check
What this run could not see
Coarse fallback — 183 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA (isolated contract reviewer) Contract reviewServed-tier: Inputs read: cards #33773, #34328, #38177, #33875, #37695 (bodies and every comment, dev report 7235492158 included), the PR body, the file list, the net diff against merge base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
S1 (should-fix) — the opening sentence now says
Open on this head: S1. Nits N1 to N3 are on prose faces and may ride the S1 fix; N4 sits in a spec comment and may be left as an accepted deviation. Implemented-by: VERDICT: PASS Generated by Claude Code |
…ters, milestone token path Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWxqfFaGCWssNvt6hh
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta review of record 7235538894 (head ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentS1: closed — N1: closed — N2: closed — eval case 16 says "a chain fault such as a row N3: closed — the sentence now gives the milestone path with angle-bracket placeholders, ending in N4: closed — the No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head baf4894 · cards #33773 #34328 #38177 #33875 #37695 · area s2-ai · 2026-11-28T07:29ZL1 checklist
Tier: H. Landing: hand-off to the maintainer follows this record. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-28T07:29Z · head baf4894 · approver 维护者速读
|
…elated-list skills name the two routes for a .custom arrangement's tab title (objectstack-ai#38205) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuLGxAx4KpiXZ5b78imiUHke)_ Fixes objectstack-ai#37988 Fixes objectstack-ai#38128 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:给客户写翻译包的人和 AI 现在能从技能和文档里学到两件新事:软件包的名称怎么按语言显示,定制包自己改的相关列表标签页标题怎么翻译;运行时行为不变。 - 为什么做:是两次已合并改动欠下的技能补课(软件包名称按语言显示、定制包标签页标题按译文显示),不补的话 AI 会漏写软件包名称的译文,或继续走「照抄原标题」这条已不是唯一的老路。 - 出错会怎样:最坏是技能里某句说法和实际行为对不上,AI 写出的翻译会多报或漏报一条提示;只改文字,可以直接撤回。 - 要你做什么:技能文件改动需要你批准合并。 ## What changes **objectstack-ai#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 objectstack-ai#37988 names). **objectstack-ai#38128: a `.custom` arrangement's own tab title translates (shipped in ee2ffca).** - `skills/objectstack-i18n/SKILL.md`, the `_relatedLists.{list}` row, and `skills/objectstack-data/rules/relationships.md`, the `relatedLists` bullet: the remedy is now "drop it, or re-state the entry, shown, with a `label`": the owner's own keeps the owner's translation, and the arrangement's own (relationships.md now says "the arrangement's own") is read at the same key from the `.custom` package's bundle, which `os i18n check` expects. The owner-label route stays. - `i18n-standard.mdx`'s `_relatedLists` row already says this (PR objectstack-ai#38085), so it is unchanged. **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 objectstack-ai#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 - Branch `claude/project-thread-o2yspl` is assigned by the harness, not the repo's `claude/issue-N-…` convention. - Open PR objectstack-ai#38196 edits other lines of `skills/objectstack-i18n/SKILL.md` (table separators, the Registration paragraph, the `os i18n check` examples). This diff stays out of those lines, and `git merge-tree` of this head with objectstack-ai#38196's head is clean. The i18n ratchet row will need a re-measure on whichever lands second; this branch merges `main` again after objectstack-ai#38196 lands. - Contract review 7235862784 (PASS on 49440c7): S1 fixed in 626d0d9 (the id `i18n/missing-package` is `os lint`'s, built by `foldCoverageIssues` in `packages/cli/src/commands/lint.ts`; `os i18n check` prints the key and `source: "package"`, never the id), in the skill and both docs pages; N1 fixed ("or the arrangement's own"); N2 kept as written, as the record accepts. - Setup's package list fallback to `manifest.name`: confirmed by the review's reading of `PackagesPage.tsx`. ## 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). <details><summary>Local gates at 626d0d9</summary> `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. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgX4oqMXTKRLtGx5S9c <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgX4oqMXTKRLtGx5S9c --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
Fixes #33773
Fixes #34328
Fixes #38177
Fixes #33875
Fixes #37695
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Five published skill files, one eval case, three comments. No ceiling row moved: every added byte is paid by a deletion in the same file. All
skills/**text was written by an isolated sub-agent served atCONTRACT_REVIEW_TIER(verify-review-tier.mjsPASS, 102 turns).skills/objectstack-data/rules/lifecycle.md§ Sealing + eval case 16 ofevals/objects-fields-relationships.json(#33773, matchescontent/docs/data-modeling/objects.mdxl.228-273 andcontent/docs/deployment/cli.mdxos audit verify)chainField(optional, defaulttenant_id) names the chain column; it is fixed once checkpoints exist (a change readslisted_twice). The parse refusal sentence now covers a chain column the object lacks or one that cannot name an organization, and absorbs the old one-line❌ valueFields: ['created_at']block.os audit verifyexits 1 on a row changed outside the platform and on a chain fault (link, signature,listed_twice).expected_outputstops saying "one checkpoint per organization"; itsmust_containset is unchanged and all present.skills/objectstack-ui/rules/dashboards.md§compareTo(#34328, matchescontent/docs/ui/dashboards.mdx"The Date Key of a Compare Widget")dateRange.field(defaultcreated_at), so the dataset declares a date dimension of that name, else400 INVALID_FIELDnaming the remedy; a related-record date path is covered by a date dimension over it under any name. "No author-time check catches it yet" (the docs page still says so; dashboard: no save or publish gate judges a compare widget's date key against the dataset's declared dimensions #34308 is open).skills/objectstack-i18n/SKILL.md(#38177, #37695 N2/N3 + its out-of-diff note){variable}notation, but that is not what the runtime implements.)" is gone; in its place, activity-milestone summaries keep their authored{field}tokens (translation.zod.ts,translations.mdxl.82, l.526-528).packages/cli/src/commands/serve.tsauto-registers only when no i18n plugin is present).getSourceLocale()(the declared one only, elseundefined) —packages/spec/src/contracts/i18n-service.ts.fallbackChain, if any (packages/runtime/src/domains/i18n.ts).skills/objectstack-query/SKILL.md+rules/filters.md(#33875, matchescontent/docs/protocol/objectql/query-syntax.mdxl.686-760)find/findOne/count/aggregatea single-valued relation is one in-database subquery per relationship, no id list, no cap, on drivers declaringDriverCapabilities.readableIdsLeaf; MongoDB and OData refuse itINVALID_FILTER/ 400 before reading.INVALID_FILTER/ 400.update/delete, and the docs' fallback cases (another datasource, federated, middleware/afterFind-shaped, different driver options).$neincluded. "one level" / "up to 1000 related ids" are gone.Comments (#37695 N1):
packages/spec/src/system/i18n-resolver.ts(two docblocks),i18n-resolver.test.ts(two comments),packages/client/src/index.ts(one docblock) name the runtime HTTP dispatcher as the mounter; service-i18n's own routes were retired by #23347.One changeset
.changeset/33773-skills-follow-merged-code-a.md,'@objectstack/skills': patch.Acceptance notes
filters.md§ Operator Reference is now one example per operator, without its Category and SQL-equivalent columns (SKILL.mdFilter Operators carries purpose and SQL for all 19);lifecycle.mddropped "a regulated tenant sets'2y'while dev keeps days" and "invoices" from an example cell;dashboards.mdlost its two-linecompareTo:fragment block (thedimensionexample moved into the table row).Read first:
skills/objectstack-query/rules/filters.md(the Limits paragraph is the densest rewrite), thenskills/objectstack-data/rules/lifecycle.md§ Sealing.Two-minute check:
node scripts/check-skills-token-ratchet.mjs→ "61 authored bundle file(s) within their ceilings".Tests
Prose and comments only; no test behaviour changed, no ablation.
Verification
skills/objectstack-data/rules/lifecycle.mdskills/objectstack-ui/rules/dashboards.mdskills/objectstack-i18n/SKILL.mdskills/objectstack-query/SKILL.mdskills/objectstack-query/rules/filters.mdskills/objectstack-data/evals/objects-fields-relationships.jsonWhole bundle: 303297 → 303363 tokens (+66, all in the eval fixture); sum of all
SKILL.md4953 → 4942 lines.Local gates on head b27a933 (
dispatch-gates.mjs --commands, 106 commands;--ranreconciles 106 of 106):104 exit 0 · 2 NOT MEASURED (local prerequisite missing) · CI runs the full farm
check-skills-token-ratchet("61 authored bundle file(s) within their ceilings"),check:skill-docs,check:skill-refs,check:skill-links,check:skill-identifier-liveness,check:skill-compatibility,check:skill-frame-sync,check:nul-bytes,check:docs,check:api-surface,check:authorable-surface.check-skill-examplesexit 0: "351 prose examples type-check across 3 surface(s)".check-skill-top-level-keysexit 0.node scripts/check-plugin-teardown-shape.mjs --self-testexit 3, reason: its positive control is pinned to a commit this shallow clone cannot reach ("Deepen the clone").pnpm check:dual-build-cjs-loadsexit 3, reason: it needs a fullpnpm build("This is NOT a pass: nothing was measured"); the diff touches only comments inpackages/specandpackages/client.skills/*/evals/*.json; the file parses,loadSkillEvalCatalog('skills')loads it, andtest/skill-evalsinpackages/qa/scenariospasses 38/38.node scripts/pm/verify-review-tier.mjson the writer sub-agent's transcript: "PASS — 102 assistant turn(s), every one served at CONTRACT_REVIEW_TIER".Review round 1 (contract review 7235538894 on b27a933) → head baf4894
lifecycle.md§ Sealing: "exits 1 on a row edited, inserted or deleted outside the platform" → "(read-only) exits with code 1 on a changed, missing or unsealed row or a chain fault (a link, a signature, a rowlisted_twice)". An inserted row islateand unsealed only untilsealLateseals it (sealer.ts, 7-day horizon);cli.mdxexit code 1 is the source.filters.md: "narrower than the rest of the table" → "narrower than the other operators'";query/SKILL.md: "Full table,$likeportability…" → "All examples,$likeportability…" (the full table now lives inSKILL.md).listed_twice".i18n/SKILL.md: → "A milestone summary (_milestones.<field>.<value>.summary) keeps its single-brace{field}tokens." (path notation oftranslations.mdxl.82; theobjects.<name>.prefix left out for the ceiling).i18n-resolver.ts: theResolvedFieldLabeldocblock's tense is one story now ("the branch the dispatcher checks first (as service-i18n's route did)").verify-review-tier.mjsPASS, 110 turns), N4 by the thread. Every skills file still ends exactly at its unchanged ceiling; bundle 303363 → 303370 (+7, eval fixture). Re-run on the new tree, each exit 0:check-skills-token-ratchet,check-skill-links,check-skill-identifier-liveness,check-skill-examples(351),build-skill-docs --check,build-skill-references --check,check:nul-bytes.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgWxqfFaGCWssNvt6hh