Repository navigation
fix(prototype): stop two handover eval graders failing correct runs - #16208
Conversation
switcher-inlined and snapshot-doctype now also accept a page assembled by a script: a Bash call that reads the bundled variant-switcher asset and writes (node writeFileSync, python write, cat into a redirect), and a doctype page or build-script template later run or copied into staging/. A page with no switcher or no doctype still fails. no-mktemp becomes a trace regex that fails only when output is staged in a temp location: a mktemp whose template names staging, the manifest or the data dir, or a manifest.json written outside interview-data/staging/. A scratch build directory from mktemp, the form SKILL.md gives, no longer fails the case. handover-shape condition (2) now says states sit on each variant's own line, as SKILL.md step 4 requires; one shared states line fails it. Refs: #16088 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Revert the ed-shared-interview-staging changes: shared-interview.md Placement says to write everything under the data dir's staging folder, so whether a scratch build directory outside it is allowed is the owner's decision, and the new patterns also passed a run whose snapshot never reached staging. switcher-inlined: a stdout/stderr .write( and a redirect to a digit no longer count as writes; write_text( and sed -i now do. Samples cover all four forms. handover-shape: a sub-bullet under a variant's line counts as that line, and a "same states" that names no source variant fails unless an earlier variant line named the states. Refs: #16088 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: no security issues foundI read the whole change in all 5 files. Every change is eval-case data for the
What I checked:
This was the first review of this pull request (blocking only: no). critical-findings: 0 |
|
claude-review reviewed Code review: PR #16208, fix(prototype): stop two handover eval graders failing correct runsScope: I read all 5 changed files in full. The PR changes only the
Path-scoped rules: Closing issue: the PR only says Changelog: Spend: the changed graders will flip pass/fail verdicts for this case. Re-baselining it spends only eval-run and judge usage (prepaid). Nothing is billed. The diff contains no embedded instructions aimed at the review lane. Verifier dropped 0 of 0 candidates. |
Refs: #16088
Summary
Two graders in the
prototypeplugin'sed-offline-mockup-handovereval case failed runs whose behaviour was correct, or judged one form both ways. This PR changes only files underplugins/prototype/evals/ed-offline-mockup-handover/and the plugin'sbump: nonechangelog fragment. No skill text,SKILL.md,reference/file or library changes. Theed-shared-interview-stagingcase is unchanged.This changes what the case accepts. Results taken with the old graders are not comparable with results taken after this merges:
switcher-inlinednow passes runs it used to fail, andhandover-shapenow fails a form it sometimes passed.Fix
graders/switcher-inlined.md(trace regex)vs-highlightappeared inside a Write input or a Bash heredoc/printf/tee/redirect line. Runs often write the page with a placeholder and then splice the bundledassets/variant-switcher.htmlin from disk: withnode -e(readFileSync, then writeFileSync), with Python, withcat asset >> page, or with{ cat part; cat asset; ...; } > page. These runs inlined the whole switcher and still failed.variant-switcher.htmland also writes, in either order. A write iswriteFileSync, a.write(not onstdout/stderr,write_text(,sed -i,tee, or a>/>>redirect after whitespace or}that targets neither/dev/nullnor a digit.cat ... | head,grep ... 2>/dev/null, a node read with=>ors.length > 0, andprocess.stdout.write(readFileSync(asset)).>comparison against a non-digit on the same line as the asset path passes.cat asset > separate-filepasses.head -npasses.node build.mjs, where no Bash line names the asset, still fails.graders/handover-shape.md(llm, last message)SKILL.mdstep 4 "Hand it over" asks for "under each one line per variant: its key, its name, its states".SKILL.mdsays "one line per variant" and does not say whether a nested line under it counts. I count it because it places the states with one variant and no other.Both samples files gain invented samples:
handover-shape: a pass with states named on the first line and referenced on later lines, a pass with states in a sub-bullet, two fails with a shared states line, and a fail with an unsourced "same states".switcher-inlined: the splice forms,sed -i,write_text, and the read-only forms it must still reject.Verification
Old and new
switcher-inlinedpatterns were applied offline to the traces of 48 kept runs of this case from earlier registered runs. The old pattern reproduces every recorded verdict (0 mismatches).switcher-inlinedcat). The run directories were not kept, so the final pages could not be read on disk.handover-shape: in 2 of the 48 final messages the states sit on each variant line, and the old judge passed both. The other 46 give the states once or leave them off the variant lines, and the old judge passed 24 of those 46. Under the new wording those 46 fail (2). These counts come from reading the messages, not from rerunning the judge.Checks:
validate-cases.py plugins/prototype/evals: exit 0, 0 FAIL. Every regex sample sorts correctly under JavaScriptRegExp.scripts/check-changelog-fragments.sh --check: all fragments valid.calibrate-judge.py(judgeclaude-opus-5-5, 3 runs per sample):Related
🤖 Generated with Claude Code