Skip to content

docs(skills): objectstack-i18n eval 12 forbids the nested key a wrong answer writes - #39073

Merged
os-zhuang merged 2 commits into
mainfrom
claude/issue-38941-eval12
Dec 2, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/issue-38941-eval12

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Part of #38941
Claim for this branch: #38941 comment 7338066079
Clause-②: no
Metadata-protocol: none

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ

维护者速读

  • 改了什么:objectstack-i18n 技能评测第 12 题的禁用词。原来禁 error: {,正确答案只要提一句「不要拆成嵌套对象 error: { … }」就会被判错。现在只禁这个键写在对象里的位置:跟在前一项后面、对象里的第一项、或一行的开头(顶格、制表符、一个或多个空格缩进)。单独提到这个形状的答案通过。
  • 为什么:维护者 2026-12-02 在项目聊天里同意了这一行的修改(「i18n 评测第 12 题那一行, 同意」)。PR fix(skills): ten eval cases no longer fail a right answer on a named trap, a legitimate key or a one-spelling literal #38973 已修好同卡另外 10 题,这是最后一题。本题还没有带技能重跑过,所以 PR 只写 Part of:合并后卡片保留,等评测座位重跑第 12 题通过后再关。
  • 影响:只改评测断言;题目、参考答案、技能正文都不变。参考答案只写 'error.message',照样通过;把 error: { message: … } 嵌进 rows 列里的答案,在上述位置照样判错;把同一个对象整段写成「不要这样写」的示例也会判错,没有字面量能把两者分开(修改前同样判错)。键加引号或冒号后不留空格的写法,修改前后都不判。本题的用例哈希会变,跨轮比较要在重跑之后。

What changes

skills/objectstack-i18n/evals/bundles-locales-coverage.json, eval 12 (table column headers on an action's result dialog). must_not_contain on main is the one bare literal error: {. It becomes eight entries, each the same literal where an object holds it:

entry position
comma, space, then the literal after a previous entry
comma, then the literal the same, no space
opening brace, space, then the literal first in its object
opening brace, then the literal the same, no space
two spaces, then the literal start of a line indented by two spaces or more
newline, one space, then the literal start of a line indented by one space
newline, then the literal start of a line, flush left
tab, then the literal start of a line indented by a tab

A must_not_contain entry is a literal, case-sensitive substring, so the bare error: { also failed a right answer that names the nested shape as the thing to avoid. Every new entry contains the old literal, so no answer that passed on main fails now. The bundle's .md text, the prompt and the reference answer have 0 hits for the bare literal, so 0 for each entry.

The first commit on this branch (131281a74e) wrote two of the eight entries. The second (7b1f39571b) is the re-derivation at the mandated tier: a probe with the grader showed written spellings main failed and the two entries let through (rows W3 to W6 and W10 below), and adds an entry for each. The changeset now says which wrong spellings fail and which were never graded.

History: the edit was held on #38941 (status note on the card) because this session's auto-mode permission classifier refused it twice while the change had no maintainer okay; the zone did not route around those refusals. The maintainer's okay arrived 2026-12-02T07:14Z, and the edit went through directly.

Tests

Measured at 7b1f39571b.

Probe: 18 constructed answers graded by gradeAnswer (packages/qa/scenarios/src/skill-evals/grade.ts) with the case's own must_contain, against three must_not_contain sets. Every answer carries all four required tokens, so the verdict is the forbidden set's alone.

answer kind main: bare literal first commit (two entries) this head (eight entries)
R0 expected_output right pass pass pass
R1 names bare shape in backticks right FAIL pass pass
R2 names bare shape in plain prose right FAIL pass pass
R3 names bare shape, list item right FAIL pass pass
R4 names it wrapped in braces, inline right FAIL pass FAIL
R5 names full inline object right FAIL FAIL FAIL
R6 "don't" code sample, multi-line right FAIL FAIL FAIL
R7 shows the data row the path reads right FAIL FAIL FAIL
W1 single line, after email wrong FAIL FAIL FAIL
W2 multi-line, 4-space indent wrong FAIL FAIL FAIL
W3 single line, nested key first wrong FAIL pass FAIL
W4 multi-line, flush left wrong FAIL pass FAIL
W5 multi-line, tab indent wrong FAIL pass FAIL
W6 multi-line, one-space indent wrong FAIL pass FAIL
W7 JSON, double-quoted key wrong pass pass pass
W8 single-quoted key wrong pass pass pass
W9 no space before the brace wrong pass pass pass
W10 no space after comma/brace wrong FAIL pass FAIL
  • R1 to R3, a right answer that names the shape on its own, are what this card repairs: fail on main, pass now.
  • R4 to R7 fail before and after. No literal separates a right answer that shows the whole nested object as the thing not to write (inline with its braces, or as a "don't" code sample), or that shows the data row the path reads, from a wrong answer that writes the same object. This follows the ten merged cases, which also fail the key written in an object (runAs: 'system' }) and pass the key named alone.
  • W1 to W6 and W10, the nested key written in an object, fail on main and fail now. The first commit let W3 to W6 and W10 through.
  • W7 to W9 (the key in quotes, or no space before the brace) pass on main and pass now: never graded, and not added here, since an entry for them would not contain the old literal.
Gates (local subset; CI runs the rest)
  • node scripts/pm/dispatch-gates.mjs --commands derived 46 commands; --ran: 46 accounted for, 41 run (each exit 0), 5 NOT-MEASURED.
  • NOT MEASURED: check:doc-formula-expressions, check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content, each exit 3, PREREQUISITE NOT MET: they read built output and this worktree built no package (the diff touches no package source). CI owns them.
  • Outside the derivation, each exit 0: node scripts/check-skills-token-ratchet.mjs, pnpm check:changeset-fixed, pnpm check:skill-top-level-keys, node ui/scripts/check-skill-eval-tokens.mjs. The last one scans the ui/skills bundles only, so it does not judge this file; its own-answer check is row R0 of the probe.
  • loadSkillEvalCatalog over skills/ loads the case with the eight entries decoded. overlap-check.mjs before the push: clean.
  • Not measured: an eval re-run of the case (no API key in this session).

… answer writes, not the shape a right one names

Claude-Session: https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ
Co-authored-by: Claude <noreply@anthropic.com>
@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 Dec 2, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 131281a · 2026-12-02T07:19Z

…y position an object holds it

The first commit on this branch forbade the key after a comma-space and
after two spaces. A probe with the grader showed three written spellings
the bare literal on main failed and that set let through: the key first
in its object, flush left on its own line, and indented by a tab or by
one space, plus the comma or brace with no space after it. Each is now an
entry. Every entry contains the old literal, so no answer that passed
before fails now. The changeset says which wrong spellings fail and
which were never graded.

Claude-Session: https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 7b1f395 · 2026-12-02T07:49Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7b1f39571b57d9afd783b500208348b1ed122f70
Local-runs: none
Scope: skills/objectstack-i18n/evals/bundles-locales-coverage.json + none
Security-touching: no

A full record on this head; the record drafted on 131281a7 was never posted and governs nothing. Inputs read: card #38941 (body and every comment through dev report 7338607923), PR #39073 (body, two files, the net diff on main 78148226fd), and the 50 check-runs on this head (read 2026-12-02T07:50Z, all completed). The grader was read in the live tree and not run: packages/qa/scenarios/src/skill-evals/grade.ts matches each token with answer.includes(token), a literal, case-sensitive substring, nothing normalised; cases.ts reads the file with JSON.parse. The answer table below is worked by hand from that semantics on the file's decoded strings; the dev's probe table is not taken as evidence.

① Derived judgments

  • The eight entries decode as intended. In the committed file the three escaped entries are the JSON strings "\n error: {", "\nerror: {" and "\terror: {": a line feed plus one space, a line feed, and a tab, each followed by the literal. The other five are plain: , error: {, ,error: {, { error: {, {error: {, and two spaces then error: {.
  • Accept set of eval 12, right: it widens and only widens against main. Every one of the eight entries contains main's error: {, so no answer main passes is refused here, by any entry. must_contain, the prompt, expected_output and files are unchanged.
  • Against the unmerged first commit the set is narrower (six more entries). That comparison never reached main and changes nothing a consumer has seen.
  • Case hash, right: hashCase hashes mustNotContain, so eval 12 hashes anew and no other case of the file does.
  • Public surface, right: no schema, no published accept set, no skill text. skills/objectstack-i18n/SKILL.md line 117 still teaches resultDialog: { columns: { rows: { email: '邮箱', 'error.message': '原因' } } }, which agrees with packages/spec/src/system/translation.zod.ts on main (columns keyed by the field's literal path, then the column's literal path; keys may contain dots).
  • Gate conclusions on this head: 50 runs, 30 success, 20 skipped, none red, none pending. Among the successes: Check Changeset and PR-body guards (both runs of each), Governed Surface Queue Guard, Lint · PM dispatch-gates, Lint & Repo Gates, TypeScript Type Check, Build Core, Test Core, every Lint and Type Check lane.

② Semver level

.changeset/38941-eval12.md is a patch on @objectstack/skills: right for an eval fixture that changes no taught behaviour. Clause-②: no and Metadata-protocol: none stand on the changeset and the PR body: no published accept set widens or narrows. Check Changeset is green on this head.

The rewritten changeset now names the positions: after a previous entry with and without a space, first in its object with and without a space, and at a line start flush left, by a tab, by one space, by two spaces or more. That list matches the eight entries. It also says which answers no literal separates, which spellings were never graded, and that every entry contains the old literal. All four statements are true of the tree. Two imprecisions remain, both prose (N3 below).

③ Boundary flags

  • Tier deviation of claim 7338066079: resolved. The second commit 7b1f3957 is the re-derivation by the dev unit at the mandated tier (report 7338607923), which owns the final line and the changeset. Nothing further owed.
  • Maintainer okay and its scope, escalated to the seat: the okay is recorded on the card by the seat (amendment 7338000605, the project-chat line of 2026-12-02T07:14Z); the chat is not among this review's inputs. That amendment quotes the two-entry line. This head's line has eight entries. It is the same line of the same case, and it relaxes main's assertion LESS than the quoted edit did: every answer it passes the two-entry line also passed. So it stays inside what was okayed in the direction that matters, a weaker eval. It is still not the text the amendment quotes, so the seat should put the eight-entry line in front of the maintainer at the approval this PR waits on anyway.
  • Dev open question 1, keep Fixes #38941 with no re-run: escalated to the seat with the dev's condition endorsed. The card's "each changed case is re-run once with the skill" is NOT MEASURED, and the answer that produced the original red never left the runner's container. If it named the shape inside braces, this line leaves that red standing. One with-skill run of objectstack-i18n bundles-locales-coverage 12 on this head before the merge settles it; failing that, Part of and a close by hand.
  • Dev open question 2, the two brace entries: answered, keep. See ④, N1.
  • File surface: the two files of the claim and nothing else. No SKILL.md, rules/ or references/ file.
  • SQL push-down: not applicable, the diff holds no query and no code.

④ Design judgment

skills/objectstack-i18n/evals/bundles-locales-coverage.json, eval 12, against the grader's semantics, the card's acceptance note ("passes for an answer that is right, and still fails for the wrong shape its expected_output names") and the spec it teaches.

The reference answer passes its own assertions: expected_output carries all four must_contain tokens and writes the column as email: '邮箱', 'error.message': '原因'. After the comma and the space comes a quote, so no entry occurs; the bare literal does not occur in it at all.

Wrong answers, each nesting error: { message: … } in the rows columns:

  • inline after email ({ email: '邮箱', error: {): refused, entry 1. Without the space after the comma: refused, entry 2.
  • nested key first in an inline object ({ error: {, rows: { error: {): refused, entry 3; with no space after the brace, entry 4. The first commit passed these.
  • on its own line: two spaces or more, entry 5; one space, entry 6; flush left, entry 7; a tab, entry 8. The first commit passed the last three.
  • quoted key ("error": {, 'error': {) and no space before the brace (error:{): pass, as on main. Leaving them out is right for this card: an entry for them would not contain main's literal and would newly refuse answers main passes, which is outside a false-red repair.

Right answers:

  • names the shape alone, in a code span (a backtick before the key), in running prose after a word, or in a list item after - : pass. These are refused on main; this is the repair.
  • names it wrapped in braces ({ error: { message: … } } in a code span): refused by entry 3, as on main.
  • shows the whole object as a counter-example, inline after a previous entry or as an indented block, or shows the data row the path reads: refused, as on main.

No entry refuses any answer main passes, with or without braces, so the brace case is not a new red: it is one of main's reds that this line keeps.

No must-fix, no should-fix.

Nits, none fixed on this head (a change to the line moves the head):

  • N1 — the brace entries are a trade, and it could go either way. They keep main's red for a wrong answer that writes the nested key first on one line, at the price of keeping main's red for a right answer that names the trap with its braces. For this prompt the second is at least as likely as the first: the prompt lists email first, so a wrong answer rarely leads with error, while "never { error: { … } }" is a natural way to warn. It is the same rule the comma entry and the ten merged cases hold, and it regresses nothing against main, so it stands. The re-run in ③ is what decides it; if right answers name the shape in braces, dropping entries 3 and 4 is a follow-up that no other entry depends on.
  • N2 — a wrong answer written in prose passes: "under rows add email: '邮箱' and error: { message: '原因' }", each key in its own code span. Main refused it. No literal separates it from a right answer naming the trap, so this is the cost of the repair itself, not a defect of this line. Likewise the pre-existing quoted and no-space spellings. For a follow-up card only if a round measures one.
  • N3 — changeset prose. (a) "An answer that names the shape on its own still passes … in a sentence": not when the bare literal starts a line or follows a comma ("nested objects, error: { … }"), which entries 7 and 1 refuse. (b) The tab and two-space entries are described as line-start positions; they match that run anywhere in a line. Both are broader in the tree than in the words, and neither changes what the case accepts.
  • N4 — a line indented by a tab followed by one space is covered by no entry. Not a spelling a written answer uses.

Implemented-by: claude/issue-38941-eval12
Reviewed-by: session_01WGufzhGA3zoCFquQgku4pm

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

L1 review — ACCEPT on 7b1f39571b57d9afd783b500208348b1ed122f70

The head moved from 131281a7 by one commit: the eval-12 line, plus the rewritten changeset. The contract L2 record 7338743010 is on this head at CONTRACT_REVIEW_TIER: PASS, no must-fix, nits N1–N4. l1-face is CLEAN on this head (13 items). Check-runs: 30 success, 20 expected-skip, 0 failed, 0 pending.

  • Eval line: eval 12 now has 8 must_not_contain entries. Each contains main's error: {, so no answer that passes on main is newly refused, and the reference answer still passes. The JSON escapes decode to newline and tab as the changeset claims.
  • R4 trade: the cost the brace entries carry (record N1) is a red that main already has, not a new one. It follows the ten merged cases.
  • Changeset: N3 is prose only and is not a must-fix. "names the shape … in a sentence still passes" does not hold at a line start or after a comma.

Carried to the seat; neither is a must-fix on the tree:

  1. The maintainer's okay names a different line. Card amendment 7338000605 quotes a two-entry line; this head has eight. The eight entries relax main less than the quoted edit, but they are not the quoted text. Show the eight-entry line at the approval this PR waits on.
  2. Fixes #38941 is unmeasured. The body says a re-run of case 12 was "Not measured". Run it once with the skill on this head before the merge. If that cannot be done, change the PR to Part of #38941 and close the card by hand. Landing rule B then applies: the card keeps pm:dispatched.

Tier H (skills/**): this PR lands through os-zhuang, not the seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

席位核对

ACCEPT — PR #39073 @ 7b1f39571b (Part of #38941; zone osa-ai). Checked 2026-12-02T07:59Z against GitHub.

  • Shape: draft. skills/objectstack-i18n/evals/bundles-locales-coverage.json (eval 12) and a changeset, +25/−1.
  • The line the maintainer okayed vs. this head: card amendment 7338000605 quoted the first commit's two-entry must_not_contain, [", error: {", " error: {"]. This head carries eight entries, each the old literal error: { with a prefix that a nested key would have: ", error: {", ",error: {", "{ error: {", "{error: {", " error: {", "\n error: {", "\nerror: {", "\terror: {" (JSON escapes: newline plus space, newline, tab). main has the bare ["error: {"]. The eight relax main less than the two did, but they are not the quoted text, so the brief shows them.
  • Reviews: contract review at CONTRACT_REVIEW_TIER, PASS 7338743010 on this head; L1 ACCEPT 7338765929 on this head.
  • Part of, not Fixes: no with-skill re-run of case 12 exists on this head, because this container has no API key, so the card stays open with pm:dispatched (rule B) until the eval seat re-runs case 12.
  • Gates: 32 success · 22 expected skip · 0 failed, mergeable_state clean; landing-k K = 0; l1-face CLEAN.
  • Landing: Tier H (skills/**). Handed off to os-zhuang.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

维护者速读

  • 是什么:翻译技能的评测题 12 以前会把正确答案误判成失败(skills evals: eleven cases across five bundles fail a right answer, by forbidding a literal the bundle itself writes as the trap, matching a legitimate key, or demanding one spelling (GA test 3) #38941)。原来的禁用词 error: { 太宽,答对的也会被扣分;现在只禁止“嵌套写法”才会出现的 8 种前缀。
  • 和你批过的不一样:卡上修订(7338000605)里你看到的是 2 条,", error: {" 和 " error: {";复核后变成 8 条,每条都包含原来的 error: {,只是前面多了逗号、花括号、换行、制表符等前缀。比现在的 main 更严,但不是你看过的原文,请按 8 条来审。
  • 风险:只改一道评测题和 changeset,可整体撤回。复审(合约档)和 L1 都通过。
  • 卡不会自动关:这里没有 API key,跑不了带技能的第 12 题复测,所以写的是 Part of。卡继续开着,等评测席复测后再关。
  • 要你做什么:审阅后批准(Tier H),批准后席位落地。席位核对见上一条。Head-sha: 7b1f39571b。

@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 Dec 2, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 2, 2026 08:01
@os-zhuang
os-zhuang marked this pull request as ready for review December 2, 2026 08:11
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 356b874 Dec 2, 2026
62 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-38941-eval12 branch December 2, 2026 08:29
@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 Dec 2, 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/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.

3 participants