Repository navigation
docs(skills): objectstack-data teaches translating fieldPatches text in the patching package's own translations - #35039
Conversation
…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
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB L1 review (#34785) · 2026-11-17T23:53ZL1: ACCEPT
Must-fixNone. Should-fix
What I checked
Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: Inputs read: card #34785 (body and its 4 comments), PR #35039 (body, 3 files, net diff against merge-base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings:
No must-fix. S1 is open on this head. Implemented-by: 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
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB L1 delta review (#34785) · 2026-11-18T00:07ZL1: ACCEPT Delta from my ACCEPT 6964538801 at Must-fixNone. Should-fixNone. What I checked
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: Delta review of record 6964628467 (head The delta is one commit ( ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings:
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz Landing · area o3-C · head ba3ed91
Dev-effort: medium · Rounds: 2 State: ready + auto-merge now; on MERGED, #34785 closes via |
Requested by Yibo Wang · project thread
Fixes #34785
Clause-②: no
Metadata-protocol: none
Served-tier: CONTRACT_REVIEW_TIER
维护者速读
objectstack-data技能的fieldPatches段落加了一句,说明补丁改写的标签、帮助文字、选项名由发补丁的包在自己的translations里翻译;另加一条评测用例。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, thefieldPatchesparagraph, gains one sentence after the example:(In the file the last key is spelled with the option value in angle brackets; it is written
VALUEhere so the body survives the sanitizer.)Each clause was checked against the merged code of PR #34784 (commit
071323e1e7), not only the docs page:patchTranslationBundlesOfinpackages/rest/src/meta-item-read-gate.tsreadsgetPackageTranslationBundle(packageId)per patching packagetranslateObjectinpackages/spec/src/system/i18n-resolver.tslooks the slot up withlookupObjectFieldAttr(label,help) andlookupObjectFieldOption(options) in the catalogpartCatalogpickspartCatalogreturns the patch catalog or the pair's for a changed slot, never the deployment catalog/metapatchCatalogsOflays the pair bundle over the package's;form-routes.tspasses nopairBundle, so the public form has no pair rank, which is why the sentence says/metaskills/objectstack-data/evals/objects-fields-relationships.jsongains case 21: a dependent package that already patchescrm_accountasks where its zh-CN strings go.A root changeset,
@objectstack/skillspatch.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.mjsis untouched.{ 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, …)."multiple: truelookup ≠ junction object") and the two Relationship Patterns rows above it: "Many-to-Many (simple): multi-valuelookup(multiple: true), an array column of ids" and "Many-to-Many (with attributes): Junction object with twolookupfields". The positional-read sentence is kept'organization'/'global'—" in the pointer under the index exampleunique: 'organization'(unique per organization) andunique: 'global'(unique platform-wide)skills/objectstack-data/SKILL.md, linesskills/objectstack-data/SKILL.md, tokens (ceiling 6665)skills/*/SKILL.md, linesskills/*/SKILL.md, tokensTests
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/: everymust_containtoken is a substring of its case'sexpected_output, nomust_not_containtoken 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 spellingoverrides:, as cases 5 and 7 spell it, so a correct answer that says a pair translation overrides the package's still passes), becausepackages/qa/scenarios/src/skill-evals/grade.tsmatches 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 underobjects.crm_account.fields) cannot be told from a wrong placement by a layout-free token, so no assertion checks it. It is stated inexpected_outputonly.Acceptance notes
fieldPatchesparagraph only" inSKILL.md. The three cuts are outside that paragraph; the dispatch order asks for the payment to come from restatement in the same file, and each cut is listed above.inlineTitleandrelatedListTitle, and with two patching packages the slot reads the package whose text it serves. The docs page carries the longer form.ownership…" in the paragraph above reads as if its subject was removed earlier. Not measured (shallow checkout), not touched.skills/objectstack-data/evals/README.mdlists what each fixture covers and is not on the file surface, so it does not mention the new case.overlap-checkmerges both cleanly. feat(skills): trigger cases for the six metadata skills; eval assertions and prompts that grade the skill #35022 adds no case 21, and chore: version packages #33849 changes only the unpriced version stamp line.Verification
Head
ba3ed91491, baseorigin/main4443014. Round 2 (contract review 6964628467, S1 and N1) changes only case 21's assertion tokens. Onba3ed91491: the eval script check above,node scripts/check-skills-token-ratchet.mjsexit 0 withskills/objectstack-data/SKILL.md is 6665 tokens (ceiling 6665; headroom 0),node scripts/check-nul-bytes.mjsexit 0 andnode scripts/pm/overlap-check.mjsVERDICT clean exit 0. The other derived families were not re-run on this head (NOT MEASURED onba3ed91491, reason: a two-line change to an unpriced eval fixture; CI runs them); the readings below are from0b60aa4ce7.Derived gates: 48 derived, 46 exit 0, 2 NOT MEASURED
node scripts/pm/dispatch-gates.mjs --commandsderives 48 commands for the three paths. All 48 were run on0b60aa4ce7, exit code captured before any pipe: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.pnpm check:dual-build-cjs-loadsandpnpm check:lean-entry-closure, both exit 3 ("Runpnpm buildfirst"), reason: they need a full-repo build, and only the@objectstack/lintdependency 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...' buildunder the verify lock,VERDICT command-exit 0.node scripts/pm/overlap-check.mjs:VERDICT clean exit 0againstorigin/mainand 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