Skip to content

fix(skills): ten eval cases no longer fail a right answer on a named trap, a legitimate key or a one-spelling literal - #38973

Merged
os-zhuang merged 5 commits into
mainfrom
claude/issue-38941-eval-false-reds
Dec 2, 2026
Merged

os-zhuang merged 5 commits into
mainfrom
claude/issue-38941-eval-false-reds

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

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

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

Ten of the card's eleven cases are here. The eleventh, objectstack-i18n bundles-locales-coverage case 12, is not: see the last item under Acceptance notes. The card stays open for it.

维护者速读

  • 用户能看到什么变化:用户无感;四个技能自带的十道评测题换了判分条件,技能文字和产品行为都不变。
  • 为什么做:替做技能评测的人解决:这十道题把答对的回答判成错,技能改写后的对等读数和正式发布前的评测读数因此偏低。
  • 出错会怎样:只会让这十道题判分偏松,不影响任何用户;撤回本改动即可复原。
  • 要你做什么:这是对外发布的技能包,需要你审阅后亲手合并。

What changes

assertions of ten eval cases in six files of four skills, plus one changeset. Every prompt, expected_output and files list is byte-identical, and no SKILL.md, rules/ or references/ file is touched. Every change loosens a condition: each new forbidden token contains an old one, no must_contain token is added, and each must_contain token that leaves is a member of the any-of group that replaces it. So every answer that passed before still passes.

The grader matches a literal, case-sensitive substring (packages/qa/scenarios/src/skill-evals/grade.ts) and already supports the any-of form, must_contain_any (cases.ts, anyOfProblem). No grader feature is added.

Three repairs, one per class of the card:

  • A, a forbidden literal the bundle writes or a right answer names while warning. The literal becomes the spelling a wrong answer writes. For a key, that is the written key: the literal followed by ,, }, } or the end of the line. A prose mention in backticks is followed by a backtick, so it passes.
  • B, a forbidden token that also matches a legitimate key. It becomes the object-level block only.
  • C, a required single spelling. It moves into a must_contain_any group.
case before after a right answer that failed and now passes the wrong shape, and what still fails it
automation flows-triggers-approvals 5 forbids label: 'error' dropped one that repeats the skill's "A label: 'error' alone does nothing", or labels its fault edge an edge routed by the label alone: fails on the required type: 'fault'
same case forbids query_record type: 'query_record', "type": "query_record" one that repeats the skill's "no query_record" a node of that type
automation flows-triggers-approvals 7 forbids current_user.positions in current_user.positions, current_user.positions.exists(, .contains(, .includes( one that repeats the skill's "never on current_user.positions inside it" a condition in the flow that reads the run user's positions
same case forbids onEmptyApprovers: 'auto_approve' that literal followed by ,, }, } or a newline one that says it is refused beside excludeSubmitter the key written on the node, with or without a trailing comma
automation flows-triggers-approvals 11 forbids runAs: 'system' that literal followed by ,, }, } or a newline one that explains why the grant cannot run as system (the prompt asks for it) the flow written with runAs: 'system',, or with the key last on its own line
same case forbids sudo sudo(, sudo: one that repeats the skill's "never with sudo" a sudo call or key
automation flows-triggers-approvals 15 requires once per run any of once per run, evaluated once, fan-out, fan out one that says "evaluated once, before fan-out" an answer that never says why templateData cannot carry the label: meets no member
automation integrations-declared 1 requires /connection any of /connection, manage_connector_connections, once per organization, not connected one that describes the administrator's connect step without the route an answer with no connect step: meets no member
data objects-fields-relationships 13 forbids ownership: 'user' that literal followed by ,, }, } or a newline one that repeats the skill's owner row, "(ownership: 'user', the default)" an object that declares the key (the reference answer leaves it unset); a hand-added owner lookup still fails on reference: 'sys_user'
data hooks-security-seeds-datasources 16 forbids permissions: permissions: { one that registers its sets with the stack key defineStack({ permissions: [...] }) a permissions block on the object
same case forbids sharingModel: 'public_read_write' that literal followed by ,, }, } or a newline one that says neither object is sharingModel: 'public_read_write' an object written with that posture
formula cel-predicates-formulas 4 forbids new Date( : new Date(, = new Date( one that says "never a JS new Date()" a seed value or a variable assigned a JavaScript date
formula cel-predicates-formulas 7 forbids label( label(record.kind) or label(record.status) followed by == or != one that repeats the skill's label() rule a predicate that compares a label() result
platform config-plugins-ops 5 forbids os rollback, os data seed each as a script writes it: at the start of a line, after two spaces, after $ , npx or pnpm , or after && one that says "os rollback was removed" or "there is no os data seed", quoted or in plain prose a script, a CI step, a shell transcript or a chained command that runs either

Five of the rows go beyond the tokens the card lists: query_record, onEmptyApprovers: 'auto_approve', sudo, sharingModel: 'public_read_write' and os data seed. Each sits in a listed case, and its bundle names it the same way (as the trap, or as the right spelling for another object), so the case could not meet "passes for an answer that is right" with it left bare.

Case 13 is settled in the case. The data SKILL.md owner row is unchanged.

Tests

All readings are on head 0a66dc9db5, against merge base 45e4457cfe.

(a) No forbidden token is in its own expected_output: 0 of 57, over the ten cases.

(b) No forbidden token is in the bundle's taught text in the sense the case forbids. grep -rnF --include='*.md' -- TOKEN skills/BUNDLE, one run per token (the two newline-led tokens as grep -rnE '^os (rollback|data seed)', the four newline-ended ones as grep -rnE "LITERAL$"): 55 of the 57 have no hit. Two have hits, and each hit is a code sample for another flow or object:

  • runAs: 'system', has 4: references/examples-flows.md:310 and :379 (two schedule flows), references/integration-recipes.md:44 (a schedule sweep) and :118 (an api callback). None is an identity grant, which is what case 11 forbids.
  • sharingModel: 'public_read_write', has 5: rules/relationships.md:24, :40, :117 and rules/validation.md:325, :386, on contact, invoice, project_assignment, invoice and sales_order. The reference answer calls this "the posture for an ordinary shared business object"; case 16 forbids it on a performance review and a price list.

(c) Graded probes. 66 answers graded by the runner's own reader and grader (parseEvalFile, gradeAnswer), against each case at the merge base and at the head. No model is involved. A right probe is the reference answer, alone or with the bundle's own sentence appended verbatim from the file and line named. A wrong probe is the reference answer plus the wrong shape.

  • 10 of 10 reference answers pass before and after.
  • 23 of 23 other right answers fail before and pass after.
  • 33 of 33 wrong-shape answers fail before and still fail after. Fourteen of them are the spellings the review named: a key last on its own line with no trailing comma (four cases), and each command indented, after $ , after npx , after pnpm and after && (two commands).
Probe output, per case
== objectstack-automation/flows-triggers-approvals#5   hash 19ce738cd3d0 -> 1570b1f9b883
  [right] reference answer
      before: PASS
      after:  PASS
  [right] + SKILL.md:127-128, the bundle's own `label: 'error'` sentence
      before: FAIL forbidden ["label: 'error'"]
      after:  PASS
  [right] + a fault edge that also carries the label
      before: FAIL forbidden ["label: 'error'"]
      after:  PASS
  [right] + SKILL.md:84, "no `query_record`"
      before: FAIL forbidden ["query_record"]
      after:  PASS
  [wrong] label-only edge, no `type: 'fault'` anywhere
      before: FAIL missing ["type: 'fault'"] forbidden ["label: 'error'"]
      after:  FAIL missing ["type: 'fault'"]
  [wrong] + a `query_record` node
      before: FAIL forbidden ["query_record"]
      after:  FAIL forbidden ["type: 'query_record'"]

== objectstack-automation/flows-triggers-approvals#7   hash 98f324689e63 -> ba7c6678b2d1
  [right] reference answer
      before: PASS
      after:  PASS
  [right] + SKILL.md:140-142, the bundle's own `current_user.positions` sentence
      before: FAIL forbidden ["current_user.positions"]
      after:  PASS
  [right] + state-machines-and-approvals.md:342, "`onEmptyApprovers: 'auto_approve'` is refused beside it"
      before: FAIL forbidden ["onEmptyApprovers: 'auto_approve'"]
      after:  PASS
  [wrong] + a decision node on the run user's positions
      before: FAIL forbidden ["current_user.positions"]
      after:  FAIL forbidden ["in current_user.positions"]
  [wrong] + `onEmptyApprovers: 'auto_approve',` written on the node
      before: FAIL forbidden ["onEmptyApprovers: 'auto_approve'"]
      after:  FAIL forbidden ["onEmptyApprovers: 'auto_approve',"]
  [wrong] + `onEmptyApprovers: 'auto_approve'` last on its own line, no trailing comma
      before: FAIL forbidden ["onEmptyApprovers: 'auto_approve'"]
      after:  FAIL forbidden ["onEmptyApprovers: 'auto_approve'\n"]
  [right] + prose ending a line on the back-ticked key: "never set `onEmptyApprovers: 'auto_approve'`"
      before: FAIL forbidden ["onEmptyApprovers: 'auto_approve'"]
      after:  PASS

== objectstack-automation/flows-triggers-approvals#11   hash 1fb1c0e78929 -> 813e1e74cb91
  [right] reference answer
      before: PASS
      after:  PASS
  [right] + SKILL.md:134-137, the bundle's own `runAs: 'system'` sentence
      before: FAIL forbidden ["runAs: 'system'"]
      after:  PASS
  [right] + examples-flows.md:133, "never with `sudo`"
      before: FAIL forbidden ["sudo"]
      after:  PASS
  [wrong] + the flow written with `runAs: 'system',`
      before: FAIL forbidden ["runAs: 'system'"]
      after:  FAIL forbidden ["runAs: 'system',"]
  [wrong] + the flow written with `runAs: 'system'` last on its own line, no trailing comma
      before: FAIL forbidden ["runAs: 'system'"]
      after:  FAIL forbidden ["runAs: 'system'\n"]
  [right] + prose ending a line on the back-ticked key: "cannot be done with `runAs: 'system'`."
      before: FAIL forbidden ["runAs: 'system'"]
      after:  PASS
  [wrong] + a `sudo(` call
      before: FAIL forbidden ["sudo"]
      after:  FAIL forbidden ["sudo("]

== objectstack-automation/flows-triggers-approvals#15   hash d1e4f4776071 -> d583ff88aec8
  [right] reference answer
      before: PASS
      after:  PASS
  [right] the point in other words: "evaluated once, before fan-out"
      before: FAIL missing ["once per run"]
      after:  PASS
  [right] the point in other words: "computed a single time, before recipients fan out"
      before: FAIL missing ["once per run"]
      after:  PASS
  [wrong] the point left out
      before: FAIL missing ["once per run"]
      after:  FAIL none-of [["once per run","evaluated once","fan-out","fan out"]]
  [wrong] + `label()` in `templateData`
      before: FAIL forbidden ["source: 'label("]
      after:  FAIL forbidden ["source: 'label("]

== objectstack-automation/integrations-declared#1   hash 27932088b85c -> b410855b0d8f
  [right] reference answer
      before: PASS
      after:  PASS
  [right] the connect step with no path literal
      before: FAIL missing ["/connection"]
      after:  PASS
  [wrong] the connect step left out
      before: FAIL missing ["/connection"]
      after:  FAIL none-of [["/connection","manage_connector_connections","once per organization","not connected"]]

== objectstack-data/objects-fields-relationships#13   hash 02301be8b78f -> 92ff684bff42
  [right] reference answer
      before: PASS
      after:  PASS
  [right] + SKILL.md:145, the bundle's own owner row
      before: FAIL forbidden ["ownership: 'user'"]
      after:  PASS
  [wrong] + the object written with `ownership: 'user',`
      before: FAIL forbidden ["ownership: 'user'"]
      after:  FAIL forbidden ["ownership: 'user',"]
  [wrong] + the object written with `ownership: 'user'` last on its own line, no trailing comma
      before: FAIL forbidden ["ownership: 'user'"]
      after:  FAIL forbidden ["ownership: 'user'\n"]
  [right] + prose ending a line on the back-ticked key: "the default is `ownership: 'user'`"
      before: FAIL forbidden ["ownership: 'user'"]
      after:  PASS
  [wrong] + a hand-added owner lookup
      before: FAIL forbidden ["reference: 'sys_user'"]
      after:  FAIL forbidden ["reference: 'sys_user'"]

== objectstack-data/hooks-security-seeds-datasources#16   hash aca966e66a43 -> 6a5dd9d8a42f
  [right] reference answer
      before: PASS
      after:  PASS
  [right] + rules/security.md:19, the stack key `defineStack({ permissions: [...] })`
      before: FAIL forbidden ["permissions:"]
      after:  PASS
  [right] the reference answer's "Neither is" sentence with the key spelled in full
      before: FAIL forbidden ["sharingModel: 'public_read_write'"]
      after:  PASS
  [wrong] + a `permissions: {` block on the object
      before: FAIL forbidden ["permissions:"]
      after:  FAIL forbidden ["permissions: {"]
  [wrong] + an object written `sharingModel: 'public_read_write',`
      before: FAIL forbidden ["sharingModel: 'public_read_write'"]
      after:  FAIL forbidden ["sharingModel: 'public_read_write',"]
  [wrong] + an object written `sharingModel: 'public_read_write'` last on its own line, no trailing comma
      before: FAIL forbidden ["sharingModel: 'public_read_write'"]
      after:  FAIL forbidden ["sharingModel: 'public_read_write'\n"]
  [right] + prose ending a line on the back-ticked key: "neither is `sharingModel: 'public_read_write'`."
      before: FAIL forbidden ["sharingModel: 'public_read_write'"]
      after:  PASS

== objectstack-formula/cel-predicates-formulas#4   hash 3557cc5e5f10 -> b128d6a2238d
  [right] reference answer
      before: PASS
      after:  PASS
  [right] the warning naming the constructor: "never a JS `new Date()`"
      before: FAIL forbidden ["new Date("]
      after:  PASS
  [wrong] + the seed written `close_date: new Date(...)`
      before: FAIL forbidden ["new Date("]
      after:  FAIL forbidden [": new Date("]
  [wrong] + a helper `const d = new Date()`
      before: FAIL forbidden ["new Date("]
      after:  FAIL forbidden ["= new Date("]

== objectstack-formula/cel-predicates-formulas#7   hash 7fbb4fa0deaa -> 3097ed52f5cf
  [right] reference answer
      before: PASS
      after:  PASS
  [right] + SKILL.md:111-115, the bundle's own `label()` rule
      before: FAIL forbidden ["label("]
      after:  PASS
  [wrong] + a predicate comparing `label(record.kind)`
      before: FAIL forbidden ["label("]
      after:  FAIL forbidden ["label(record.kind) !="]
  [wrong] + `visibleWhen` comparing `label(record.status)`
      before: FAIL forbidden ["label("]
      after:  FAIL forbidden ["label(record.status) =="]

== objectstack-platform/config-plugins-ops#5   hash 1d29988ab66e -> 665016236a21
  [right] reference answer
      before: PASS
      after:  PASS
  [right] + references/operations.md:92, "`os rollback` was removed"
      before: FAIL forbidden ["os rollback"]
      after:  PASS
  [right] + references/operations.md:89, "there is no `os data seed`"
      before: FAIL forbidden ["os data seed"]
      after:  PASS
  [wrong] + a script that runs `os rollback`
      before: FAIL forbidden ["os rollback"]
      after:  FAIL forbidden ["\nos rollback"]
  [wrong] + a script that runs `os data seed`
      before: FAIL forbidden ["os data seed"]
      after:  FAIL forbidden ["\nos data seed"]
  [right] unquoted prose: "the os rollback command does not exist"
      before: FAIL forbidden ["os rollback"]
      after:  PASS
  [wrong] + `os rollback` indented in a CI step
      before: FAIL forbidden ["os rollback"]
      after:  FAIL forbidden ["  os rollback"]
  [wrong] + `$ os rollback` at a shell prompt
      before: FAIL forbidden ["os rollback"]
      after:  FAIL forbidden ["$ os rollback"]
  [wrong] + `npx os rollback`
      before: FAIL forbidden ["os rollback"]
      after:  FAIL forbidden ["npx os rollback"]
  [wrong] + `pnpm os rollback`
      before: FAIL forbidden ["os rollback"]
      after:  FAIL forbidden ["pnpm os rollback"]
  [wrong] + `os migrate apply && os rollback`
      before: FAIL forbidden ["os rollback"]
      after:  FAIL forbidden ["&& os rollback"]
  [right] unquoted prose: "the os data seed command does not exist"
      before: FAIL forbidden ["os data seed"]
      after:  PASS
  [wrong] + `os data seed` indented in a CI step
      before: FAIL forbidden ["os data seed"]
      after:  FAIL forbidden ["  os data seed"]
  [wrong] + `$ os data seed` at a shell prompt
      before: FAIL forbidden ["os data seed"]
      after:  FAIL forbidden ["$ os data seed"]
  [wrong] + `npx os data seed`
      before: FAIL forbidden ["os data seed"]
      after:  FAIL forbidden ["npx os data seed"]
  [wrong] + `pnpm os data seed`
      before: FAIL forbidden ["os data seed"]
      after:  FAIL forbidden ["pnpm os data seed"]
  [wrong] + `os migrate apply && os data seed`
      before: FAIL forbidden ["os data seed"]
      after:  FAIL forbidden ["&& os data seed"]

probes with an unwanted after-verdict: 0

The runner's reader over the whole catalog (loadSkillEvalCatalog): 14 bundles, 377 cases, 0 refusals, before and after. The case hash moves on exactly the ten cases named and on no other. skill-evals --regrade therefore sets these ten apart from a round recorded before this change.

Model re-runs: NOT MEASURED. They are the eval seat's round. The ten case keys, for --case:

objectstack-automation/flows-triggers-approvals#5
objectstack-automation/flows-triggers-approvals#7
objectstack-automation/flows-triggers-approvals#11
objectstack-automation/flows-triggers-approvals#15
objectstack-automation/integrations-declared#1
objectstack-data/objects-fields-relationships#13
objectstack-data/hooks-security-seeds-datasources#16
objectstack-formula/cel-predicates-formulas#4
objectstack-formula/cel-predicates-formulas#7
objectstack-platform/config-plugins-ops#5

Size (skills/**). Changed files, whole file before and after, in lines: flows-triggers-approvals.json 451 to 463, integrations-declared.json 35 to 36, objects-fields-relationships.json 533 to 536, hooks-security-seeds-datasources.json 392 to 392, cel-predicates-formulas.json 145 to 145, config-plugins-ops.json 397 to 407. Whole package: every SKILL.md summed, 2141 lines before and after. Tokens, by check-skills-token-ratchet: authored text 181698 of 181698 (+0); eval fixtures, measured and not ratcheted, 91043 to 91350. No ceiling moves.

Acceptance notes

  • A literal cannot tell a counter-example from an answer. An answer that writes the wrong shape out in full as its "do not" example still fails, in every case here. The narrowing lets a mention pass, not a written copy.
  • Case 5, label: 'error' is dropped, not narrowed. A type: 'fault' edge may carry that label (flow-error-label-not-fault reports an ordinary edge only; packages/lint/src/lint-flow-patterns.ts skips e.type === 'fault'), so the written key is also a right answer's. An answer that has a fault edge and a second edge routed by the label alone now passes.
  • Case 13 still fails an object that declares ownership: 'user', as before and as the reference answer asks ("leaves ownership at its default"). Declaring the default changes nothing at run time. Whether that should count as a wrong answer is not decided here.
  • The written-key spellings are single-quoted, with ,, }, } or a newline after the value. A prose mention in backticks is followed by a backtick, so it passes. A prose line that ends on the bare literal, with nothing after it, fails now as it failed before. The JSON spelling of the same key is not forbidden: the old token did not match it, so adding it would fail answers that passed before.
  • Platform case 5 forbids twelve spellings of two commands. Each contains the old token, so nothing that passed can now fail. A sentence that names either command, in backticks or in plain prose after a single space, passes.
  • fan out is the reference answer's spelling; the skill writes fan-out. check-skill-eval-tokens asks that every any-of member be a whole token of its bundle. In CI it walks skills/objectui alone. Pointed at the whole catalog (an off-label reading of its analyze), objectstack-automation goes from 11 untaught tokens to 12, and fan out is the one added. The other seven members are taught. The other three bundles are unchanged (data 31, formula 6, platform 6).
  • Noted, not touched: the same off-label reading finds four forbids-own-answer cases in bundles outside this PR, at the merge base and at the head: objectstack-ai skills-tools-knowledge 11 (aiReadable), objectstack-ask metric-selection-fallback 12 (is empty) and 15 (unknown), objectstack-ui views-apps-actions-pages 24 (definePage).
  • Not in this PR: objectstack-i18n bundles-locales-coverage case 12 (forbids error: {). Claim amendment 7316101116 moved that file into this branch, case 12 only. The edit was not made: this session's permission layer refused the write to that file twice, and it was not retried a third time. The intended change is in the report on the card: error: { becomes , error: { and the key at the start of an indented line.

Verification

Local, on 0a66dc9db5:

  • pnpm --dir ui run check:skill-eval-tokens --self-test exit 0; pnpm --dir ui run check:skill-eval-tokens exit 0 ("Red under the chosen oracle: 0").
  • node scripts/check-skills-token-ratchet.mjs --self-test exit 0; node scripts/check-skills-token-ratchet.mjs exit 0.
  • node scripts/pm/dispatch-gates.mjs --commands derives 46 commands; --ran answers "46 derived famil(ies) accounted for — 41 run, 5 NOT-MEASURED". The 41 exit 0, among them check:skill-compatibility, check:skill-frame-sync, check:skill-identifier-liveness, check:skill-links, check:doc-authoring, check:nul-bytes, check:published-files and the changeset gates.
  • NOT MEASURED, each exit 3 (PREREQUISITE NOT MET, the workspace is not built; this diff touches no package, so no build is owed locally): check:doc-formula-expressions, check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. CI measures them.
  • NOT MEASURED: skill-evals --dry-run (it needs a built @objectstack/spec). The reader it uses was run directly, as above.

Read first:

  1. skills/objectstack-automation/evals/flows-triggers-approvals.json, the case 5 hunk: the one forbidden literal that is dropped. Then the case 15 hunk: which spellings the any-of group accepts.
  2. skills/objectstack-platform/evals/config-plugins-ops.json, case 5: the twelve spellings of the two commands.
  3. skills/objectstack-data/evals/objects-fields-relationships.json, case 13: the limit named third under Acceptance notes.

Two-minute check, from the repository root. It reads every forbidden token of the six files against its own reference answer and prints one line per hit:

node -e "let n=0;for(const f of process.argv.slice(1))for(const e of require('./'+f).evals){for(const t of e.assertions?.must_not_contain??[]){n++;if((e.expected_output??'').includes(t))console.log('FORBIDS OWN ANSWER',f,e.id,t)}}console.log(n+' forbidden token(s) read')" skills/objectstack-automation/evals/flows-triggers-approvals.json skills/objectstack-automation/evals/integrations-declared.json skills/objectstack-data/evals/objects-fields-relationships.json skills/objectstack-data/evals/hooks-security-seeds-datasources.json skills/objectstack-formula/evals/cel-predicates-formulas.json skills/objectstack-platform/evals/config-plugins-ops.json

Expected: the single line 256 forbidden token(s) read.

Governed surface (skills/**, Tier H): this PR stays draft. No reviewer is requested and nothing is queued or armed by the author.


Generated by Claude Code

… it warns against

Assertions only, in six eval files of four skills (automation, data,
formula, platform). A forbidden literal the bundle itself writes, or that a
right answer writes while warning against it, is narrowed to the spelling a
wrong answer writes; one that also matches a legitimate key is narrowed to
the object-level block; a required single spelling moves to the any-of
form. No prompt, reference answer or skill text changes.

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_01WGufzeatqKfTRUzTJVa9jQ

Final green head · 2026-12-01T16:21Z · zone osa-ai
Head-sha: 3815df5

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 3815df5 · 2026-12-01T16:22Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Round 1 · 2026-12-01T16:28Z · PR #38973 · card #38941

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3815df598ebbb041ed953bb641cfb9ac72220606
Local-runs: probe — one read-only script over the head blobs (JSON.parse plus String.includes) for the own-answer check; no build, runner, gate or test was run
Scope: skills/objectstack-automation/evals/flows-triggers-approvals.json, skills/objectstack-automation/evals/integrations-declared.json, skills/objectstack-data/evals/hooks-security-seeds-datasources.json, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-formula/evals/cel-predicates-formulas.json, skills/objectstack-platform/evals/config-plugins-ops.json + none
Security-touching: yes

① Derived judgments

  • Accept-set of the grader: unchanged. The diff adds no grader feature; must_contain_any is already read by packages/qa/scenarios/src/skill-evals/cases.ts and graded by grade.ts (literal, case-sensitive includes, nothing normalised, the raw result text). Right.
  • Accept-set of each case: widened only. Every new must_not_contain token is a superstring of a token it replaces, one forbidden token is dropped, no must_contain token is added, and each must_contain token that leaves is a member of the any-of group that replaces it. So an answer that passed before still passes. Verified by reading the diff token by token, not from the dev report. Right.
  • Own-answer check: 0 of the 43 forbidden tokens in the ten cases occur in the case's own expected_output; every must_contain token and every any-of group is met by its own expected_output. Right.
  • Public surface: skills/*/evals/ ships in @objectstack/skills (its README names evals/). Ten case hashes move; no prompt, expected_output, files list, SKILL.md, rules/ or references/ byte changes. Right.
  • Check-runs on the head: every run is success or skipped, none failed or pending. Check Changeset, PR-body guards and Governed Surface Queue Guard are success.
  • The dev report's 46 probe answers were not re-run (read-only). The monotone claim and the own-answer claim hold on the tree. The claim "19 of 19 wrong shapes FAIL to FAIL" holds only for the spellings probed: S1 and S2 name wrong shapes that failed before and pass now.

② Semver level

'@objectstack/skills': patch matches what the diff publishes: fixture text in a released package, no behaviour. Clause-②: no and Metadata-protocol: none are line-initial in both the PR body and the changeset, and both are right: nothing a metadata author can write changes. The changeset names the ten cases and the re-run note for the moved hashes. No .claude/** path is in the diff, so no rule-change is owed.

Clause-②: no

③ Boundary flags

  • Part of #38941, not Fixes: right. i18n eval 12 is unchanged on this branch and the card's eleventh case stays open; the PR-body Part-of guard is green. Amendment 7316101116 asked for Fixes; that is correctly not carried out while the case is missing.
  • Open question (how eval 12 lands): not this record's to decide. It waits on the maintainer, as comment 7317013305 says. Option A (its own small PR) is consistent with this PR as it stands.
  • Deviation 1, five unlisted tokens narrowed in listed cases (query_record, onEmptyApprovers: 'auto_approve', sudo, sharingModel: 'public_read_write', os data seed): in scope. The card's unit is the case ("each case is narrowed to a shape only the wrong answer writes"), and each of the five is a literal the bundle or the case writes as the trap: SKILL.md:84 "no query_record", references/state-machines-and-approvals.md:342 "onEmptyApprovers: 'auto_approve' is refused", references/examples-flows.md:133 "never with sudo", the case's own "Neither is public_read_write", references/operations.md:89 "there is no os data seed". Left alone, the listed cases would still fail a right answer. Correct, subject to S1 and S2.
  • Deviation 2, flows 5 drops label: 'error': correct, and no real catch is lost. FlowEdgeSchema has label and type side by side, and lint-flow-patterns.test.ts:941 pins { label: 'error', type: 'fault' } as clean, so the literal sits on a right edge too. The label-only edge still fails on the required type: 'fault'.
  • Deviation 3, key spellings with a trailing comma or brace only: half right. It does let the prose mention through, and it does catch the key written mid-object. It is not robust to a key written last on its own line without a trailing comma. The dev's stated reason for leaving that spelling out ("adding them would fail answers that passed before") is wrong for it: the literal followed by a newline is a superstring of the old token, so no answer that passed before can contain it. The reason holds only for the JSON spelling. See S1.
  • Deviation, fan out as an untaught any-of member: accepted; see N3.
  • Deviation, union run on the merge base 665dfc4: none of the six files changed on main since, checked.
  • Security-touching: yes is meant narrowly: three of the cases grade permission and sharing answers (flows 7 and 11, hooks 16), so the line keeps the PR on a human approval. No security finding is raised and nothing is routed.
  • SQL push-down: not applicable, the diff has no code.

④ Design judgment

Each case was read against its prompt, its expected_output, the skill text on main and, where cited, the code.

flows-triggers-approvals.json

  • Case 5: holds. type: 'query_record' and its JSON form are the node a wrong answer writes; SKILL.md:84 says get_record, no query_record, and flow.zod.ts:56 agrees.
  • Case 7: the current_user.positions forms hold (SKILL.md:140-142). The onEmptyApprovers forms do not: S1.
  • Case 11: holds. SKILL.md:134-137 matches the reference answer. The key-spelling gap of S1 is harmless here, because runAs: 'user', PERMISSION_DENIED, delegated-administration and granted_by are all required.
  • Case 15: holds. option:opportunity.stage and template still carry the case; the any-of group asks for the reason in any of four spellings (SKILL.md:120-123).

integrations-declared.json

  • Case 1: holds. Three of the four members are the skill's own words (references/integration-recipes.md:175-178); see N3 for not connected.

hooks-security-seeds-datasources.json

  • Case 16: holds. permissions: { leaves the stack key through (rules/security.md:19, an array). A wrong public_read_write posture still loses one of the two required sharingModel literals.

objects-fields-relationships.json

  • Case 13: holds for the card's second acceptance note (narrowed in the case; the owner row at SKILL.md:145 is untouched). object.zod.ts:4412 confirms 'user' is the default. Same spelling gap as S1, folded into its fix.

cel-predicates-formulas.json

  • Case 4: holds (SKILL.md:54). See N1.
  • Case 7: holds (SKILL.md:111-115). See N2.

config-plugins-ops.json

  • Case 5: the reference answer and references/operations.md:89,92 agree. The narrowed tokens do not hold: S2.

S1 (should-fix) — flows 7: onEmptyApprovers: 'auto_approve' written as the last key on its own line with no trailing comma (or followed by a line comment) now passes, beside excludeSubmitter: true. That is the exact wrong shape the expected_output names ("anything but auto_approve, refused beside it"), and none of the three must_contain tokens gates it. Before this diff it failed. Fix: add the literal followed by a newline, "onEmptyApprovers: 'auto_approve'\n". It is a superstring of the old token, so the change stays monotone, and a backticked prose mention is followed by a backtick, not a newline. Add the same newline spelling to ownership: 'user' in objects 13 (nothing else gates it there) and, for one rule across the PR, to runAs: 'system' in flows 11 and sharingModel: 'public_read_write' in hooks 16. Correct the changeset and PR body sentence on the written-key spellings to match.

S2 (should-fix) — platform 5: "\nos rollback" and "\nos data seed" catch the command only at column 0. The prompt asks for "the commands to run", and a command list is commonly a fenced block indented under a numbered step, or a line with a $ , npx or pnpm prefix, or the second half of an && chain. Each of those is a script running a removed command, failed before, and passes now; no must_contain token gates it. Fix: add superstring spellings that only a script writes, for both commands: two spaces before the command (covers any indented block), $ , npx , pnpm and && before it. All are superstrings of the old token, so monotone holds, and "os rollback was removed" in prose still passes.

N1 (nit) — formula 4: new Date( as an argument (addDays(new Date(), 45), a template ${new Date() passes the forbidden list. The required daysFromNow( gates it in practice. Accepted deviation.
N2 (nit) — formula 7 and flows 7: enumerated spellings miss rare forms ('Signed' == label(record.status), no spaces round the operator, .exists_one(, .all(, has(current_user.positions), and flows 5 misses the double-quoted TS spelling type: "query_record". Accepted deviation; a follow-up may widen them.
N3 (nit) — not connected (integrations 1) and fan out (flows 15) are loose any-of members: the first is ordinary prose, the second is not the skill's spelling. The other required tokens carry both cases. Accepted deviation.

Implemented-by: claude/issue-38941-eval-false-reds
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 · PR #38973 (#38941) · head 3815df5 · 2026-12-01T16:29Z

VERDICT: should-fix, 2 items (S1, S2, carried from L2). No must-fix.

  • Face. l1-face is CLEAN at 3815df5, with 13 items read and none flagged. Checks are 29 success, 18 expected skip and 0 failed, and mergeable_state is clean. The diff is seven files: six eval fixtures and the changeset. '@objectstack/skills': patch is right. Clause-②: no and Metadata-protocol: none are right, and no Rule-change is owed.
  • L2. I adopt contract-tier record 7317684903. It PASSES with S1, S2 and three nits, N1–N3. Its own-answer check found 0 of 43 forbidden tokens in their case's expected_output. The monotone claim holds token by token: each new forbidden token is a superstring of an old one.
  • Part of. Part of #38941 is right. i18n eval 12 waits on the maintainer, and the card stays open.
  • Deviations.
    • Narrowing the five unlisted tokens is accepted. Each is a trap literal the bundle or the case itself writes.
    • Dropping label: 'error' from flows 5 is accepted: lint pins { label: 'error', type: 'fault' } as clean, and a label-only edge still fails the required type: 'fault'.
    • The trailing-comma-or-brace spelling is only half right, which is S1.
  • S1 (should-fix), flows 7. onEmptyApprovers: 'auto_approve' written as the last key, with no trailing comma or brace on its line, now passes. That is the wrong shape the case names, nothing in must_contain gates it, and it failed before this diff.
    • Add the literal followed by a newline. That stays a superstring, so the change is still monotone.
    • Apply the same rule to ownership: 'user' in objects 13, which nothing else gates. For one rule across the PR, apply it also to runAs: 'system' in flows 11 and sharingModel: 'public_read_write' in hooks 16.
    • Correct the matching sentence in the changeset and the PR body.
  • S2 (should-fix), platform 5. \nos rollback and \nos data seed catch the command only at column 0. An indented fence line, a $ , npx or pnpm prefix, or an && chain now passes, and each failed before.
    • Add superstring spellings for both commands with those prefixes.
    • Prose such as "os rollback was removed" still passes.
  • Nits. N1 is formula 4 new Date( as an argument. N2 is rare operand and quote spellings. N3 is the loose any-of members not connected and fan out. They can ride the fix round or be accepted.

Next: a fix head for S1 and S2, then an L2 delta and an L1 delta. After that the PR goes to the seat as Tier H (governed skills/**).

…e and a scripted command

A written key with no trailing comma, last on its own line, passed the
forbidden list of four cases; the literal followed by a newline now fails
it. The platform migration case caught `os rollback` and `os data seed`
only at the start of a line; it now also catches the command indented,
after a `$ ` prompt, after `npx ` or `pnpm `, and after `&& `.

Every added token contains the token it replaced at the base, so an
answer that passed before still passes.

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_01WGufzeatqKfTRUzTJVa9jQ

Final green head (fix round 1) · 2026-12-01T16:57Z · zone osa-ai
Head-sha: 0a66dc9 (was 3815df5)

  • CI at this head: 31 success, 20 skipped, 0 failure, 0 running (PR-body guards and Check Changeset re-ran green on the body edit); mergeable_state clean.
  • Answers L2 PASS 7317684903, S1 and S2. Merge of origin/main at 45e4457 first (no conflict, nothing to regenerate).
  • S1: the four written-key cases (automation 7, 11; data 13, 16) also forbid the key followed by a newline (…'\n), so a key written last on its line is caught.
  • S2: platform case 5 forbids os rollback and os data seed in five more script spellings each (two-space indent, $ , npx , pnpm , && ); the \nos … forms stay.
  • Still monotone: every added token contains the token it replaced at the base; 14 added, none removed (43 → 57 over the ten cases). Probes 66: 10/10 reference PASS→PASS, 23/23 other right answers FAIL→PASS, every wrong shape FAIL→FAIL. Residual by construction (named in the dev delta): a prose line ending on the bare unquoted key, and a command after sudo or ; .
  • Diff now 7 files, +73 / −15. Changeset sentences on the written key and the command corrected. PR body replaced to match (the dev may not patch it after pr_create).
  • objectstack-i18n eval 12 still not here: it waits for the maintainer's own okay in the thread.
  • Dev delta: 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 comment 7318337250. Sent to osa-L1-a for the L2 delta and L1 delta, then the seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 0a66dc9 · 2026-12-01T16:58Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Delta round 1 · 2026-12-01T17:00Z · PR #38973 · card #38941 · delta to record 7317684903 (head 3815df5)

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0a66dc9db520e475303517e70815059e56be6f6f
Local-runs: probe — one read-only script over the head blobs (JSON.parse plus String.includes) for the own-answer check; no build, runner, gate or test was run
Scope: skills/objectstack-automation/evals/flows-triggers-approvals.json, skills/objectstack-automation/evals/integrations-declared.json, skills/objectstack-data/evals/hooks-security-seeds-datasources.json, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-formula/evals/cel-predicates-formulas.json, skills/objectstack-platform/evals/config-plugins-ops.json + none
Security-touching: yes

① Derived judgments

  • Delta read: the head against 3815df5 on the PR's seven paths, and against main (merge base 45e4457). The move between the two heads is a merge of main plus one fix commit; the PR's file list against main is the same seven files, and no .claude/** or skills/objectstack-i18n/** path is in it.
  • The fix commit touches five files: four eval fixtures and the changeset. It adds 14 forbidden tokens and removes none. integrations-declared.json and cel-predicates-formulas.json are byte-identical to the earlier head, as are the six other cases' assertions. No prompt, expected_output or files list changed.
  • Monotone: each of the 14 added tokens is a superstring of a token forbidden on main (onEmptyApprovers: 'auto_approve', runAs: 'system', ownership: 'user', sharingModel: 'public_read_write', os rollback, os data seed). All 57 forbidden tokens of the ten cases, read against main, are superstrings of an old one or unchanged; no must_contain token is added. An answer that passed before still passes. Right.
  • Own-answer check, re-run on this head: 0 of the 57 forbidden tokens occur in their case's own expected_output; every must_contain token and any-of group is met by its own expected_output. Right.
  • Check-runs on this head: 31 success, 20 skipped, none failed or pending.
  • The dev delta's 66 probes were not re-run (read-only). Its token list matches the tree exactly.

② Semver level

Unchanged: '@objectstack/skills': patch, Clause-②: no and Metadata-protocol: none, line-initial in the PR body and the changeset, all right. The changeset's two corrected sentences match the diff: eval 7 and 11 now read "a comma, a closing brace or the end of the line" and "the key last on its own line", and eval 5 of the platform file names the start of a line, two spaces or more, $ , npx , pnpm and && . Evals 13 and 16 refer to "the spellings above", which now include the end of the line. No rule-change is owed.

Clause-②: no

③ Boundary flags

  • Part of #38941: still right. i18n eval 12 is not in the diff, the card stays open, and that case waits on the maintainer.
  • PR body: replaced by the seat and it matches the tree. The written-key sentence, the four table rows, the platform row, the head and merge-base shas and the counts (57 tokens, 66 probes) agree with the diff. The acceptance note no longer gives the wrong reason for the newline spelling; its remaining reason is given for the JSON spelling alone, where it holds.
  • Dev residuals, both accepted as stated: a prose line that ends on the bare, unquoted key literal fails (it failed on main too); a command after a single space and some other prefix (sudo , ; ) passes the forbidden list.
  • Security-touching: yes is meant as before: three cases grade permission and sharing answers, so the PR stays on a human approval. No security finding is raised.
  • SQL push-down: not applicable, the diff has no code.

④ Design judgment

S1: closed
S2: closed

  • S1: the four written-key cases (flows 7 and 11, objects 13, hooks 16) each add the literal followed by a newline. A key written last on its own line with no trailing comma now fails in all four; a backticked prose mention is followed by a backtick and still passes.
  • S2: platform 5 keeps the two line-start tokens and adds, for each command, two leading spaces, $ , npx , pnpm and && . An indented fenced block, a shell transcript, a package-runner line and a chained command now fail; "os rollback was removed" in prose still passes.
  • New defects: none found. The added tokens can only fail an answer that already failed on main, and none collides with a reference answer.
  • N1, N2 and N3 of record 7317684903 were not edited and stand as accepted deviations.

No must-fix, no should-fix.

Implemented-by: claude/issue-38941-eval-false-reds
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 delta · PR #38973 (Part of #38941) · head 0a66dc9 · 2026-12-01T17:01Z

VERDICT: ACCEPT. S1 and S2 are closed. No must-fix and no should-fix.

  • L2 delta. I adopt contract-tier delta record 7318614269. It PASSES with S1: closed and S2: closed.
    • Flows 7 and 11, objects 13 and hooks 16 each add the key literal followed by a newline.
    • Platform 5 adds the indent, $ , npx , pnpm and && spellings for both commands.
    • The fix commit adds 14 forbidden tokens and removes none. Every token is a superstring of one forbidden on main, so the change is monotone.
    • None of the 57 forbidden tokens occurs in its case's own expected_output.
    • No prompt, reference answer or files list changed.
  • Face. l1-face is CLEAN at 0a66dc9. Checks are 31 success, 20 skipped and 0 failed, and mergeable_state is clean. The changeset and PR body sentences match the diff. Part of #38941 still stands, because i18n eval 12 waits on the maintainer.
  • Accepted residuals and nits.
    • A prose line ending on the bare unquoted key fails, as it did on main.
    • A command after sudo or ; passes the forbidden list.
    • N1–N3 stand as accepted deviations.

Next: hand off to the seat as Tier H (governed skills/**).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

ACCEPT — PR #38973 @ 0a66dc9db5 (Part of #38941; zone osa-ai). Checked 2026-12-01T17:06Z against GitHub.

  • Shape: draft, mergeable_state clean; assertions of ten eval cases in six files of four skills, plus a changeset (+73/-15). Prompts, expected_output and files are byte-identical; no SKILL.md, rules/ or references/ file is touched.
  • Read myself: every change loosens a check that failed a right answer, and each still fails the wrong shape the case exists for (the table in the body names both per case): forbidden literals become the written key or call; one forbidden token narrows to the object-level block; single required spellings become must_contain_any groups. No grader feature is added.
  • Part of: objectstack-i18n bundles-locales-coverage case 12 is not here; the edit was refused by the agent's permission check, and the card stays open for it.
  • Gates: 31 success · 20 expected skip · 0 failed. Reviews: L2 delta PASS 7318614269 (S1/S2 closed), L1 delta ACCEPT 7318647224.
  • Landing: Tier H (skills/** evals). Handed off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

维护者速读

@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 1, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 1, 2026 17:09
@hotlong
hotlong marked this pull request as ready for review December 1, 2026 23:12
@hotlong
hotlong added this pull request to the merge queue Dec 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 1, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

2026-12-01T23:42Z · Landing seat: taking this Tier H pull out of the merge queue and back to draft (Governed Surface Queue Guard, remedy 1).

  • Reading: this pull is governed (Tier H) and has no APPROVED review from an account in GOVERNED_APPROVERS (os-zhuang). It was enqueued from an account outside that set, so every queue group that holds it fails the guard (docs(skills): the objectstack-automation entry carries a save notice's translation key and names the gate that judges a grant made from a flow #38971's group: run 46771525309), and the groups behind it fail with it. This is not a code failure.
  • Stroke: the seat sends the relay's pr_dequeue (cause seat-asks), then disables auto-merge and converts the pull to draft. Out of the queue and in draft is where a governed pull waits for its approval.
  • To land it: an APPROVED review from os-zhuang on this pull (any head; a later push does not expire it). The seat then lands it as ruling C says. Or the maintainer merges it by hand from an authorized account. The hand-off request above still holds.

@os-zhuang
os-zhuang marked this pull request as ready for review December 2, 2026 01:31
@os-zhuang
os-zhuang enabled auto-merge December 2, 2026 01:31
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 2f9a68c Dec 2, 2026
48 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-38941-eval-false-reds branch December 2, 2026 02:01
@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