Skip to content

docs(skills): objectstack-data teaches translating fieldPatches text in the patching package's own translations - #35039

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-34785-fieldpatches-own-translations
Nov 18, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-34785-fieldpatches-own-translations

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34785

Clause-②: no
Metadata-protocol: none
Served-tier: CONTRACT_REVIEW_TIER

维护者速读

  • 改了什么:objectstack-data 技能的 fieldPatches 段落加了一句,说明补丁改写的标签、帮助文字、选项名由发补丁的包在自己的 translations 里翻译;另加一条评测用例。
  • 为什么改:这个行为已随 PR feat(i18n): a dependent package's fieldPatches text is translated from that package's own translations #34784 上线,文档页也已写明,但对外发布的技能还没教,写元数据的 agent 不知道译文该放哪。
  • 风险与回滚:纯文字,无代码、无 schema 变化;为付字数删了同文件三处重复表述。回滚即 revert 本 PR。
  • 先看:skills/objectstack-data/SKILL.md(新增的那句,以及「multiple: true lookup」提示块被删的后半段,风险最高)、skills/objectstack-data/evals/objects-fields-relationships.json(用例 21)。
  • 两分钟验证:node scripts/check-skills-token-ratchet.mjs,预期 skills/objectstack-data/SKILL.md is 6665 tokens (ceiling 6665; headroom 0),整体退出 0。
  • 需要你做的:无。check-governed-merges 判为 Tier H(skills/**),按低风险 skills 通道(2026-11-14 pm: land low-risk governed PRs on the seat review (Tier S arm for skills wording and docs), per the 2026-11-14 delegation ruling #33501 裁决)由席位落地:前提是本 head 有席位达档合同审记录,且写明 Security-touching: no。

What changes

skills/objectstack-data/SKILL.md, the fieldPatches paragraph, gains one sentence after the example:

Translate patched text in the patching package's translations, under the owner's keys (objects.crm_account.fields.industry.label, .help, .options.VALUE): the owner's translation of the replaced text never applies, a pair .custom translation comes first on /meta, and an untranslated locale serves the patch text.

(In the file the last key is spelled with the option value in angle brackets; it is written VALUE here so the body survives the sanitizer.)

Each clause was checked against the merged code of PR #34784 (commit 071323e1e7), not only the docs page:

Clause Where the code says so
the patching package's own translations patchTranslationBundlesOf in packages/rest/src/meta-item-read-gate.ts reads getPackageTranslationBundle(packageId) per patching package
the owner's keys translateObject in packages/spec/src/system/i18n-resolver.ts looks the slot up with lookupObjectFieldAttr (label, help) and lookupObjectFieldOption (options) in the catalog partCatalog picks
the owner's translation never applies partCatalog returns the patch catalog or the pair's for a changed slot, never the deployment catalog
the pair comes first on /meta patchCatalogsOf lays the pair bundle over the package's; form-routes.ts passes no pairBundle, so the public form has no pair rank, which is why the sentence says /meta
an untranslated locale serves the patch text no catalog hit leaves the served value as is

skills/objectstack-data/evals/objects-fields-relationships.json gains case 21: a dependent package that already patches crm_account asks where its zh-CN strings go.

A root changeset, @objectstack/skills patch.

How the new text is paid for

The file was at 6657 of 6665 tokens. The sentence adds 327 priced bytes; three cuts in the same file delete 295, and the row does not move. scripts/check-skills-token-ratchet.mjs is untouched.

Cut Text that still carries it
The lead-in line "Detailed rules, with incorrect/correct examples:" under the Quick Reference heading The heading itself ("Quick Reference — Detailed Rules"); "incorrect/correct examples" stays in Naming Rules Summary
The multi-value-lookup note: the inline { type: 'lookup', reference: 'x', multiple: true } spelling, and "It is NOT a junction table. Reach for a junction object (two lookups) only when the relationship itself carries attributes (role, added_at, …)." The note's own title ("multiple: true lookup ≠ junction object") and the two Relationship Patterns rows above it: "Many-to-Many (simple): multi-value lookup (multiple: true), an array column of ids" and "Many-to-Many (with attributes): Junction object with two lookup fields". The positional-read sentence is kept
"'organization' / 'global' —" in the pointer under the index example The example block right above it: unique: 'organization' (unique per organization) and unique: 'global' (unique platform-wide)
Reading Before After
skills/objectstack-data/SKILL.md, lines 473 472
skills/objectstack-data/SKILL.md, tokens (ceiling 6665) 6657 6665
All 12 skills/*/SKILL.md, lines 4730 4729
All 12 skills/*/SKILL.md, tokens 61622 61630
The eval file (unpriced), lines 367 386

Tests

Text only; no package test applies and nothing was ablated.

Eval assertions, checked by script on ba3ed91

For both JSON files under skills/objectstack-data/evals/: every must_contain token is a substring of its case's expected_output, no must_not_contain token is, and the ids are distinct. Result: 24 cases and 21 cases, 0 violations.

Case 21's tokens carry no whitespace or quoting (translations, acme_billing, zh-CN, objects, crm_account, industry, customer; forbidden: the key spelling overrides:, as cases 5 and 7 spell it, so a correct answer that says a pair translation overrides the package's still passes), because packages/qa/scenarios/src/skill-evals/grade.ts matches literal case-sensitive substrings with no normalisation. No token depends on whitespace, quoting or line breaks.

Left out on purpose: the placement itself (that the strings sit in acme_billing's own bundle and not in HotCRM's files, and that the entry is nested under objects.crm_account.fields) cannot be told from a wrong placement by a layout-free token, so no assertion checks it. It is stated in expected_output only.

Acceptance notes

Verification

Head ba3ed91491, base origin/main 4443014. Round 2 (contract review 6964628467, S1 and N1) changes only case 21's assertion tokens. On ba3ed91491: the eval script check above, node scripts/check-skills-token-ratchet.mjs exit 0 with skills/objectstack-data/SKILL.md is 6665 tokens (ceiling 6665; headroom 0), node scripts/check-nul-bytes.mjs exit 0 and node scripts/pm/overlap-check.mjs VERDICT clean exit 0. The other derived families were not re-run on this head (NOT MEASURED on ba3ed91491, reason: a two-line change to an unpriced eval fixture; CI runs them); the readings below are from 0b60aa4ce7.

Derived gates: 48 derived, 46 exit 0, 2 NOT MEASURED

node scripts/pm/dispatch-gates.mjs --commands derives 48 commands for the three paths. All 48 were run on 0b60aa4ce7, exit code captured before any pipe:

  • 46 exit 0, among them node scripts/check-skills-token-ratchet.mjs (and its --self-test), pnpm --filter @objectstack/spec run check:skill-docs, pnpm --filter @objectstack/lint run check:doc-formula-expressions, pnpm check:skill-links, pnpm check:skill-identifier-liveness, pnpm check:skill-compatibility, pnpm check:skill-frame-sync, pnpm check:doc-authoring, pnpm check:nul-bytes, pnpm check:published-files, pnpm check:dts-closure, pnpm check:sourcemap-no-sources-content.
  • NOT MEASURED: pnpm check:dual-build-cjs-loads and pnpm check:lean-entry-closure, both exit 3 ("Run pnpm build first"), reason: they need a full-repo build, and only the @objectstack/lint dependency closure was built here. CI runs them.

node scripts/pm/dispatch-gates.mjs --ran: 48 derived famil(ies) accounted for — 46 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3).

Build: pnpm --workspace-concurrency=2 --filter '@objectstack/lint...' build under the verify lock, VERDICT command-exit 0.

node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 against origin/main and PR heads #35022 and #33849.

Not run locally, declared to CI: test:repo, the repo-wide lint, the full dogfood battery (no ! in the title, no narrowing arm).

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz

…in the patching package

The fieldPatches paragraph names where the patched label, help text and
option label are translated (the patching package's translations, under the
owner's keys), that the owner's translation of the replaced text never
applies, that a pair .custom translation comes first on /meta, and that an
untranslated locale serves the patch text. One eval case exercises it. The
file pays by dropping restatement; its token ceiling does not move.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…okens only

Each must_contain / must_not_contain token of the new case is a single word,
so an answer written across lines or with double quotes grades the same.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
@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 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

L1 review (#34785) · 2026-11-17T23:53Z

L1: ACCEPT
Head-sha: 0b60aa4

check-governed-merges --branch at this head reads GOVERNED, landing tier H (skills/**, 3 files, +38 / −10). The low-risk skills arm cannot be read from a path list, so the seat makes the at-tier call. This verdict does not ready the PR.

Must-fix

None.

Should-fix

  • S1 (PR body, patch before landing; the head need not move). 维护者速读's last bullet says 「席位落地(skills-only 文字,Tier S,待席内达档复核记录)」. The register reads this diff as Tier H, landing through the low-risk skills arm only on a contract-review record for this head that the arm accepts. The relay request says the same. A body states only what was measured, so the bullet should name Tier H and the low-risk arm. Otherwise the maintainer reads that no approval path applies when one does. No re-review is needed for a body-only patch: note it on this thread with the head unchanged.

What I checked

  • Each clause of the new sentence against the code at this head.
    • packages/spec/src/system/i18n-resolver.ts:512-516 documents the rank for a patched field slot: "the pair's translation, then that patching package's own … then the served text". patchCatalogsOf (:570) lays the pair over each patching package's bundle.
    • The deployment (owner) catalog is not on that path, so the owner's translation of the replaced text never applies.
    • packages/rest/src/meta-item-read-gate.ts:3466 patchTranslationBundlesOf feeds the /meta reads. form-routes.ts:389 passes patch bundles and no pair, which is why "comes first on /meta" is scoped right.
    • The keys (.label, .help, .options.<value>) and the patching package's own translations match content/docs/data-modeling/object-extensions.mdx:132-139, which the skill now agrees with.
    • validate-translation-references.ts skips an objectExtensions[] target wholly (:202), so the taught objects.crm_account… keys in a dependent package's bundle draw no false translation-target-unknown.
  • Cuts.
    • The multi-value-lookup note keeps its title and the positional read. Its dropped half is carried by the Relationship Patterns rows directly above (SKILL.md:306-307: "Many-to-Many (simple) … multi-value lookup (multiple: true)" and "Many-to-Many (with attributes) | Junction object with two lookup fields").
    • The unique scopes are in the example block (:345-346).
    • The Quick Reference heading carries the lead-in.
    • Nothing that was cut becomes untaught. The ratchet row is untouched at 6665 of 6665.
  • Eval 21. Its tokens are single words, all present in expected_output, and overrides is absent. The option value is a plain string under options, as the i18n key table teaches. The body explains why placement is not assertable layout-free. That is a fair limit for the grader's literal substring match.
  • Scope and shape. The SKILL.md paragraph, the eval file and the root changeset are inside claim 6963949473's surface. The three cuts outside the paragraph are same-file payment, as the order allows, and each is listed. Fixes #34785, Clause-② no and Metadata-protocol none match the claim. The changeset names @objectstack/skills (patch).

Notes

  • N1 (nit): "an untranslated locale serves the patch text" is exact for a locale with no entry anywhere in its fallback chain. Where the patching package translates the fallback locale, that entry is served. The docs page words it the same way, so this is consistent and only loosely precise.
  • N2 (nit, reflow): the index pointer's middle line is now 125 characters ("(on a declared index bare unique: true is refused), the retired …").
  • N3: evals/README.md's one-line coverage list for this fixture does not mention the new extension-translation case. It is incomplete rather than false, and outside the claimed surface.
  • N4: CI at this head when I read it: 14 success, 16 skipped, 11 in progress (Test Core shards, Live E2E UI, the Type Check jobs, ESLint, and the repo/tooling, CI/release/engine and docs/code Lint gates), 0 failed. Landing waits for all of them to finish green, including the skills token ratchet and the two families left to CI (check:dual-build-cjs-loads, check:lean-entry-closure).
  • N5: feat(skills): trigger cases for the six metadata skills; eval assertions and prompts that grade the skill #35022 and chore: version packages #33849 touch the same files. Whichever lands later re-reads the ratchet on its final head, because this file is at headroom 0.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head 0b60aa4ce7b57189a15d98a84bce51e26e3a35e1 · 2026-11-17T23:54Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0b60aa4ce7b57189a15d98a84bce51e26e3a35e1
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/objects-fields-relationships.json + none
Security-touching: no

Inputs read: card #34785 (body and its 4 comments), PR #35039 (body, 3 files, net diff against merge-base 4443014630, +38 / -10), the check-runs on this head. Code outside the diff was read at this head, never reviewed. The diff holds no implementing file: no gate, validator or runtime code changes.

① Derived judgments

  • No accept-set change, no public-surface change in code or schema. The diff is one skill file, one eval fixture and one changeset. Right.
  • Published skill text gains one taught rule (where a patching package translates its fieldPatches text). It teaches behaviour main already ships (PR feat(i18n): a dependent package's fieldPatches text is translated from that package's own translations #34784), it adds no new authorable key. Right: additive teaching.
  • Three restatement cuts in the same file. Each cut was checked for a surviving carrier at this head:
    • the lead-in line under "Quick Reference — Detailed Rules": the heading carries it. Right.
    • the second half of the multi-value-lookup note ("It is NOT a junction table. Reach for a junction object … only when the relationship itself carries attributes"): the Relationship Patterns rows directly above carry it (SKILL.md:306-307, "Many-to-Many (simple) | multi-value lookup (multiple: true) — an array column of ids" and "Many-to-Many (with attributes) | Junction object with two lookup fields"), and the note keeps its title and the positional read. Right.
    • 'organization' / 'global' in the index pointer: the example block above it carries both (SKILL.md:345-346). Right.
      Nothing taught before is untaught after.
  • Token ratchet row untouched; the file is declared at 6665 of 6665. The gate's conclusion is the check-run's, see ③.

② Semver level

③ Boundary flags

  • open_questions in dev report 6964486109: empty. Nothing to answer.
  • Dev deviations: (a) the three paying cuts sit outside the fieldPatches paragraph the claim names. Accepted: same-file restatement, each with a surviving carrier (①). (b) The served-model note is a harness reading, not a contract matter.
  • Dev out-of-scope notes: evals/README.md does not list case 21 (incomplete, not false, outside the claimed surface), and the "Not the same key as object-level ownership" sentence in the Object Extension Model paragraph reads orphaned (SKILL.md:363-365, pre-existing, untouched by this diff). Neither is this PR's to fix; both are follow-up material for the seat.
  • L1-a S1 (PR body 速读 said Tier S): the body at this read says Tier H through the low-risk skills arm, on an at-tier record with Security-touching: no. Body-only, the head did not move.
  • SQL push-down: no code in the diff, so no id materialisation and no in-app join. Nothing to find.
  • Security: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. The added sentence is about where translation strings live and which catalog a label reads; the cuts are a lead-in line, a relationship-modelling note and an index-scope pointer. Security-touching: no stands.
  • Check-runs on this head when read: 0 failed. Concluded success include Governed Surface Queue Guard, Check Changeset, Lint · docs & code guards, Lint · PM dispatch-gates, Lint · ESLint, Type Check · source gates, Build Core. Still in progress: Test Core (1/10), Test Core (2/10), Lint · repo & tooling gates, Lint · CI, release & engine gates, Type Check · workspace, Type Check · consumer gates, Type Check · debt ledger, and a second Check Changeset / PR-body guards run started by the body edit. Those families are NOT yet answered, and the two the dev left to CI (check:dual-build-cjs-loads, check:lean-entry-closure) and the token ratchet are among what must finish green before landing. This record does not vouch for them.

④ Design judgment

skills/objectstack-data/SKILL.md — the added sentence, clause by clause against the code at this head.

  • "in the patching package's translations" — true. getPackageTranslationBundle reads registry.getPackage(packageId).manifest.translations, then that package's active translation rows over them (packages/metadata-protocol/src/protocol-discovery-and-bases.ts:1019-1052). patchTranslationBundlesOf asks it once per package that patches the object (packages/rest/src/meta-item-read-gate.ts:3466-3497), and both /meta exits pass the result as patchBundles (:3629-3635, :3707-3712).
  • "under the owner's keys (objects.crm_account.fields.industry.label, .help, .options.VALUE)" — true. translateObject reads the patch catalog with the same lookups the owner's text uses: lookupObjectFieldAttr(…, 'label') and (…, 'help') (packages/spec/src/system/i18n-resolver.ts:5272-5292, lookup at :4272-4286) and lookupObjectFieldOption (:5322-5330, lookup at :4679-4697). FieldTranslationSchema declares exactly label, help, options as a value-to-string map (packages/spec/src/system/translation.zod.ts:229-232). The skill does not claim placeholder, which the patch whitelist allows but translateObject never translates: the omission is correct.
  • "the owner's translation of the replaced text never applies" — true. partCatalog (i18n-resolver.ts:5254-5266) returns the deployment catalog only for a slot whose value still equals the packaged base; a changed slot reads the first patch catalog whose patchedBase wrote that value, else the pair's alone. It also holds when the patching package ships no translation at all (no patchBundles entry, the slot falls to catalogs.changed).
  • "a pair .custom translation comes first on /meta" — true, and correctly scoped. patchCatalogsOf lays the pair bundle over each package's (i18n-resolver.ts:570-581, rank documented at :512-516); the public form passes patchBundles and no pairBundle (packages/rest/src/form-routes.ts:389-394), so the pair rank exists on the /meta reads only.
  • "an untranslated locale serves the patch text" — true: no catalog hit leaves next.label and the option untouched (i18n-resolver.ts:5276, :5330).
  • Agreement with other teaching. Matches content/docs/data-modeling/object-extensions.mdx:132-139 clause for clause. No contradiction in skills/objectstack-i18n/SKILL.md (it teaches defineStack({ translations: [...] }) at :449 and option keys as value-keyed strings at :217, :505) or skills/objectstack-platform/SKILL.md. packages/lint/src/validate-translation-references.ts skips an objectExtensions[] target the stack does not define wholly (rung 2b, :202), so the taught keys draw no translation-target-unknown. ObjectTranslationDataSchema.label is optional (translation.zod.ts:550), so a bundle carrying only fields under crm_account parses.

skills/objectstack-data/evals/objects-fields-relationships.json — case 21.

  • expected_output is true against the code: the bundle shape 'zh-CN': { objects: { crm_account: { fields: { industry: { label }, type: { options: { customer: STRING } } } } } } is what the lookups and FieldTranslationSchema read; help under the field's help; pair first on /meta; untranslated locale serves Sector.
  • Every must_contain token is a literal substring of expected_output, the must_not_contain token is not, ids are distinct (read off the fixture at this head). All six tokens are single words with no whitespace, quote or line break, so gradeAnswer's answer.includes(t) (packages/qa/scenarios/src/skill-evals/grade.ts:28-29, case-sensitive, nothing normalised) can match them whatever the answer's layout.

Findings:

  • S1 (should-fix) — case 21 forbids the bare word overrides. The grader matches a literal substring, and overrides is an ordinary English verb that a correct answer reaches for when it paraphrases the very clauses the case tests: "the hotcrm.custom translation overrides yours on /meta", "your zh-CN label overrides HotCRM's", or the skill's own next paragraph, "it takes no overrides declaration" (SKILL.md:385). Each of those is a right answer that this assertion fails. The file's own precedent forbids the code spelling, overrides: (cases 5 and 7), which a prose sentence does not hit and which is as layout-stable as namespace: or partial: in cases 1 and 3. Fix: spell it overrides: as cases 5 and 7 do, or drop the forbidden token. The head moves, so the fix earns a delta review.
  • N1 (nit) — five of the six must_contain tokens (acme_billing, zh-CN, crm_account, industry, customer) are already in the prompt; only translations is new, so an answer that puts the strings in HotCRM's files also passes. The PR body states this limit. A layout-free token the prompt lacks, objects (the key root of the taught address), would tighten it a little; could ride S1's fix or be left as an accepted deviation.
  • N2 (nit) — "an untranslated locale serves the patch text" is exact when no locale of the request's fallback chain has an entry; lookupObjectFieldAttr walks localeChain(opts), so a fallback locale the package does translate is served first. The docs page words it the same way.
  • N3 (nit) — .help is served on the field's inlineHelpText when it authors one, on description only when it authors none (i18n-resolver.ts:5283-5293); the skill's bare .help leaves that to the docs page. Consistent with the one-sentence budget at headroom 0.
  • N4 (nit) — the index pointer's middle line is now about 125 characters (SKILL.md:352), unwrapped against the file's hand-wrapped prose.

No must-fix. S1 is open on this head.

Implemented-by: claude/issue-34785-fieldpatches-own-translations
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

… key, not the bare word

A correct answer may say a pair translation overrides the package's; the
token is spelled as cases 5 and 7 spell it. objects joins must_contain.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head ba3ed914914fefbd31dd5d6d104de3bb1bebcf5f · 2026-11-18T00:06Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

L1 delta review (#34785) · 2026-11-18T00:07Z

L1: ACCEPT
Head-sha: ba3ed91

Delta from my ACCEPT 6964538801 at 0b60aa4ce7. This verdict supersedes that one for this head. The landing tier reading in that verdict is unchanged.

Must-fix

None.

Should-fix

None.

What I checked

  • The delta is one commit and one file. 0b60aa4ce7..ba3ed91491 is ba3ed914 and touches only skills/objectstack-data/evals/objects-fields-relationships.json, +2/−1, in the fieldPatches translation case. The taught text is unchanged.
  • The seat's S1 is met.
    • must_not_contain now forbids overrides:, the key shape the case means to refuse, instead of the bare word overrides. A correct answer that explains why there is no overrides block no longer fails.
    • must_contain adds objects, so the answer has to place the translation under the bundle's objects subtree.
  • Every assertion holds against expected_output. I ran a script over all 21 cases at this head. Every must_contain token appears in its case's expected_output, and no must_not_contain token does: 0 violations. In this case expected_output carries objects: { crm_account and has no overrides:.
  • CI on this head, read at review time. Nothing is red. Concluded green: PR-body guards, Check Changeset, Check PR Size, Governed Surface Queue Guard, Build Core, Test UI, Live E2E UI, Dogfood Regression Gate, Type Check · workspace, source gates and debt ledger, Lint · docs & code guards, and the Lint scoped and PM dispatch-gates families. Still in progress: Test Core shards, Lint · ESLint, Lint · repo and CI families, and Type Check · consumer gates. Landing waits for these to go green.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ba3ed914914fefbd31dd5d6d104de3bb1bebcf5f
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/objects-fields-relationships.json + none
Security-touching: no

Delta review of record 6964628467 (head 0b60aa4ce7b57189a15d98a84bce51e26e3a35e1, PASS with S1 open). Inputs read: card #34785 (body and its 5 comments), PR #35039 (body, 3 files, net diff against merge-base 4443014630, +39 / -10), the delta 0b60aa4ce7..ba3ed91491, and the check-runs on this head. Code outside the diff was read at this head, never reviewed. The diff holds no implementing file.

The delta is one commit (ba3ed91491) and one file: skills/objectstack-data/evals/objects-fields-relationships.json, +2 / -1, both lines in case 21's assertions. skills/objectstack-data/SKILL.md, the changeset and scripts/check-skills-token-ratchet.mjs are byte-identical between the two heads (empty diff), so the earlier record's reading of them is carried, not re-derived here.

① Derived judgments

  • No accept-set change, no public-surface change in code or schema, on the delta or on the net diff. Right.
  • Case 21 must_not_contain: overrides becomes overrides:. A narrowing of what the eval refuses, from the bare word to the key spelling. Right: it is the spelling cases 5 and 7 of the same fixture already forbid (lines 96 and 135 at this head).
  • Case 21 must_contain gains objects. A tightening: the one added token is not in the prompt. Right.
  • Token ratchet: does not move. SKILL.md is unchanged in the delta, the ratchet row still reads ['skills/objectstack-data/SKILL.md', 6665] (scripts/check-skills-token-ratchet.mjs:703), and evals/** is unpriced by that script's own account (:212-215). The declared 6665 of 6665 therefore cannot have moved on this delta; the gate's conclusion is the check-run's (③).

② Semver level

  • Unchanged from the earlier record: .changeset/34785-skills-fieldpatches-own-translations.md, @objectstack/skills patch, for skill wording plus an eval case. The delta publishes nothing more. Check Changeset concluded success on this head.
  • Clause-②: no, Metadata-protocol: none on the PR body and the changeset: correct, no schema, accept set or runtime behaviour moves.

③ Boundary flags

  • open_questions in dev report round 2 (6964688409): empty. Round 1 (6964486109): empty. Nothing to answer.
  • Dev round 2 declares the other derived families NOT MEASURED locally on this head (two-line change to an unpriced fixture). Accepted: the check-runs on this head answer them.
  • SQL push-down: no code in the diff. Nothing to find.
  • Security: the net diff was read hunk by hunk. The added skill sentence is about where translation strings live and which catalog a label reads; the three cuts are a lead-in line, a relationship-modelling note and an index-scope pointer; the eval case asks where zh-CN strings go. No hunk teaches permission, sharing, credential, token or authentication behaviour. Security-touching: no stands.
  • Check-runs on this head when read (47 runs): 0 failed. Concluded success: Lint & Repo Gates, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · docs & code guards, Lint · ESLint, Lint · PM dispatch-gates, the three Lint · scoped families, TypeScript Type Check, Type Check · workspace, · source gates, · consumer gates, · debt ledger, Build Core, Test UI, Live E2E UI, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset (both runs), PR-body guards (both runs), Check PR Size. Still in progress: Test Core (1/10) and Test Core (2/10). Those two are NOT yet answered and this record does not vouch for them; landing waits for them to conclude green. The rest are skipped by path filter.

④ Design judgment

skills/objectstack-data/evals/objects-fields-relationships.json — case 21, the delta.

  • overrides: forbidden instead of overrides. gradeAnswer is answer.includes(t), case-sensitive, nothing normalised (packages/qa/scenarios/src/skill-evals/grade.ts:27-31). The three right answers S1 named now pass: "the hotcrm.custom translation overrides yours on /meta", "your zh-CN label overrides HotCRM's", and the skill's own "it takes no overrides declaration" (SKILL.md:385) carry no overrides:. The wrong answer the token exists for, an overrides: { … } block on the object, is still caught. Same token, same reach as cases 5 and 7.
  • objects required. It is a literal substring of expected_output (objects: { crm_account: …), single word, no whitespace or quoting, and absent from the prompt. Both forms of a correct address carry it: the nested bundle (objects: { crm_account: …) and the dotted key the skill teaches (objects.crm_account.fields.industry.label).
  • The case as a whole at this head. All seven must_contain tokens are in expected_output; overrides: is not (the word overrides does not occur in it at all). Ids 1 to 21 are distinct. The JSON edit keeps the array well formed.
  • Tried to break it: an answer that quotes the key as JSON ("overrides": {) slips the forbidden token, exactly as it does in cases 5 and 7, and is not new to this delta. An answer that gives the right placement in prose only, never spelling a key, now fails on objects; that is the tightening N1 asked for, and an answer to "where do the strings go" that names no key is short of expected_output anyway.

skills/objectstack-data/SKILL.md — unchanged in the delta; the earlier record's clause-by-clause reading stands for this head.

Findings:

  • S1: closed
  • Earlier N1 (case 21's tokens were all but one in the prompt): met by the added objects.
  • Earlier N2, N3, N4 (fallback-chain wording, bare .help, the 125-character line): unchanged, left as accepted deviations; none affects correctness or the contract.
  • N5 (nit) — objects is matched case-sensitively, so an answer that only ever writes the word capitalised in prose ("Objects subtree") and never the key would miss it. A correct answer spells the key; no effect on the contract.

No must-fix, no should-fix.

Implemented-by: claude/issue-34785-fieldpatches-own-translations
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz

Landing · area o3-C · head ba3ed91

Probe Reading
check-governed-merges.mjs --pr 35039 GOVERNED under skills/**, landing Tier S on the low-risk skills arm (maintainer ruling 2026-11-14 on #33501): modified skill files and prose only, bare Clause-②: no and Metadata-protocol: none, clean changeset, no security label, and a record on this head reading Security-touching: no
Review L1-a delta ACCEPT 6964796576 at ba3ed91; seat contract review (CONTRACT_REVIEW_TIER) delta PASS 6964862402 at ba3ed91, Security-touching: no, S1 of 6964628467 closed, no must-fix or should-fix open
Open findings nits only: L1 N1 (fallback-locale nuance, consistent with the docs page), N2 (one 125-character reflow line), N3 (evals/README.md does not list case 21; outside the surface)
Ratchet skills/objectstack-data/SKILL.md 6665 of 6665 (headroom 0), unchanged by round 2; CI's ratchet step is green on this head
CI K = 11 (< 15, no branch update); on ba3ed91: 30 success, 18 skipped, 0 failed

Dev-effort: medium · Rounds: 2

State: ready + auto-merge now; on MERGED, #34785 closes via Fixes and its pm:* state label comes off.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 18, 2026 00:16
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit eb7b09d Nov 18, 2026
49 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-34785-fieldpatches-own-translations branch November 18, 2026 00:48
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/s 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.

skills(objectstack-data): teach that a package's translations of its own fieldPatches text now apply (after #33952)

2 participants