Skip to content

test(developer-experience): grade more S1 and S4 build-turn items - #12443

Merged
kyle-sexton merged 5 commits into
mainfrom
host-run/9953-s1-s4-build-graders
Nov 2, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
host-run/9953-s1-s4-build-graders

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #9953

Summary

Grades more of the S1 and S4 build-turn items in s1-branch-start-build and s4-migrator-build, replaces both turn-1.jsonl files with the final message of a recorded plugin-arm plan turn, and fixes four developer-experience graders that Claude Code 2.1.316 cannot load.

Fix

  • S1 item 8, no-token-option half: no-token-option-write and no-token-option-edit (tool_used, max: 0) fail a Write or Edit that reads a --token or --forge-token value from args or declares it as an Option<T>. Code that rejects those flags still passes.
  • S1 item 12b: names-pagecount-failure, a regex on the last message for PageCount or paging. On the build-turn messages of the 12 committed S1/12b samples it agrees with all 12 Opus labels.
  • S4 item 7, import half: no-third-party-import-write and -edit fail a .py Write or Edit that imports a module outside sys.stdlib_module_names, bfk or tests.
  • S1 item 11b and S4 item 9b: smoke-result-reported llm graders on the last message, using the source rubric's instructions. Each has 6 PASS and 6 FAIL samples plus an empty answer. The samples are the build-turn messages of the committed labeled samples, relabeled on that message alone by an isolated Opus call (model-produced, not reviewed by a person). Calibration stays on test(developer-experience): port eval cases S3 and S6 #9966.
  • turn-1.jsonl, both cases: the prompt plus the final message of a plan turn recorded on 2026-11-02 (Claude Code 2.1.316, plugin arm, claude plugin eval --keep-temp). The file stays text-only, so the Skill and Read calls are not in it. The final message is model output on the synthetic case prompt and holds no paths, so .claude/rules/eval-case-transcripts.md's second paragraph covers it.
  • Load fix: in four grader patterns (nm-script-build-exit, q-build-page-count, t1-setup-init, t2-setup-rerun), the literal --- is now -{3}.

Verification

  • validate-cases.py plugins/developer-experience/evals: exit 0, 0 FAIL, with node on PATH. Every new free grader sorts its pass and fail samples.
  • scripts/check-changelog-fragments.sh --check-required origin/main: exit 0.
  • scripts/check-affected.sh --tests on the first commit: 13 passed, 3 skipped.
  • Paid run of the four S1/S4 cases on the pre-grader tree: 2 plan cases × 1 run, then 2 build cases × 3 runs, -j 2.
    • Bash ran in every build trace, but every call exited 1. Each run's sandbox TMPDIR and HOME were read-only, so dotnet build and every temp-file step failed.
    • So the S1 smoke-run and project-check-run fails in that run measure the sandbox, not the plugin.

Remaining on #9953

  • S1 items 4-7 and 9, and S4 items 1-5, need the built command executed after the run. None of the six grader types (regex, tool_order, tool_used, file_exists, llm, baseline) runs the artifact, so these cannot be met as written.
  • The eval sandbox's read-only TMPDIR and HOME on this host block dotnet build in the S1 build case. A real measurement of the build cases waits on that.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 2, 2026 12:30
Add free graders for S1 item 8's no-token-option half and item 12b,
and S4 item 7's standard-library-import half, each with pass and fail
samples, plus judge graders for S1 item 11b and S4 item 9b. Replace
both build cases' turn-1.jsonl with the final message of a recorded
plugin-arm plan turn.

Write the literal --- in four grader patterns as -{3}: Claude Code
2.1.316 ends the frontmatter at the first ---, so those cases failed
to load and the binary refused the whole suite.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… 9b judges

The build-turn messages of the committed S1 11b and S4 9b samples,
each relabeled on that message alone by an isolated Opus call, and the
S1 12b messages as further regex samples.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T17:46:45.581631Z 4b206b7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4b206b7d78

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 28a2f06e994c459443c2a9e3be527ca3afc61ba0: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review of PR #12443: changes since 962e87c6. No security issues found

This round covers only the 4 files in .claude-lane/incremental.diff. I read every hunk of all four.

What changed

  • no-token-option-edit.md and no-token-option-write.md: the second regex alternative now stops at three more points: return, throw, or a new line that starts with }. It already stopped at the next flag literal, at break and at a new case line, and it is still capped at 400 characters. The other three alternatives are unchanged.
  • The two sample files: each gains two pass samples. In both, the code rejects --token, then reads a positional args[0]. One sample puts the rejection in a block, the other on one line.

What I checked

  • Trusted paths and trust controls: none of the 4 files match a TRUSTED PATHS: glob. Nothing in this change touches workflows, actions, the token broker, the kill switch, merge holds, trusted actors or CODEOWNERS.
  • Plugin manifests: no plugin.json or marketplace.json changes, so there are no manifest lines.
  • Removed instructions: none. These files are eval grader patterns and labeled samples, not standing instructions.
  • Regex behavior: the new stops only add fixed literals to a negative lookahead inside the bounded {0,400}? scan, so backtracking stays limited. Even a slow match would only slow a local eval run over the eval agent's own Write or Edit input. That run holds no credentials and feeds no GitHub automation, so there is no leak, compromise or charge path.
  • Sample content: no secrets. TARNQUILL_FORGE_TOKEN appears only as an environment variable name in the made-up scenario.
  • PR context and settled threads: nothing in them is directed at this review lane. This round's change follows up the settled thread on no-token-option-write.md (marked lines changed since resolution: yes). I found no security problem on those lines.

Prior findings: the only earlier post is the last round's summary, which reported 0 findings, so nothing carries over. The round cap does not apply (past the cap: no).

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 4b206b7d78eb838ee91347982301169e1ac0905f; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 28a2f06e994c459443c2a9e3be527ca3afc61ba0: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #12443 (incremental since 962e87c6)

This round changes the alt 2 stop lookahead in no-token-option-{write,edit}.md and adds two pass samples to each sample file. I read every hunk of all 4 in-scope files. I found no new problems.

Prior findings

  • Correct answer that rejects the flag and then reads a positional argument (#discussion_r4446561187): fixed. Alt 2 now also stops at \breturn\b, \bthrow\b and \\n\s*\}. I traced both new pass samples by hand:
    • Block rejection. The scan starts at \"--token\" and stops at the \"--forge-token\" literal. It starts again there and stops at return 2, before it reaches var issue = args[0].
    • One-line rejection. The scan stops at return Fail(...) straight away.
    • Other alternatives. Alt 1 and alt 4 can't match either sample. Alt 5 doesn't fire on TARNQUILL_FORGE_TOKEN because the regex is case-sensitive, and the variable issue doesn't contain token.
  • Existing samples. All nine fail samples in no-token-option-write.json still fail. The unguarded reads (single-line, case label, Allman block, guarded case ... when) reach = args[ before any return, break or \n}. The two bounds-guarded reads are now stopped at return in alt 2, but alt 5 still catches them because their variable is named token. The earlier pass samples still pass.

Notes

  • Known trade-off, not raised as a finding. A guarded read into a variable whose name doesn't contain token (for example case "--forge-token":\n if (...) return Usage(...);\n cred = args[++i];) was caught by alt 2 at 962e87c6 and now passes. This lane's last round suggested this exact change and named the trade-off. The cap also applies (see below), and this is advisory, so I didn't post it inline.
  • Round cap. The round cap applied (past the cap: yes, 3 of 3 rounds), so I would only have posted blocking findings. None came up.
  • Verification. I traced the regexes by hand and didn't run them. That validate-cases.py exits 0 is the author's claim, and I haven't checked it.
  • Closing issue. The PR refs test(developer-experience): port eval cases S1 and S4 #9953 but doesn't close an issue, so there were no acceptance criteria to check.
  • Spend. This increment changes nothing that costs anything.

- no-token-option: a flag's value read on a later line (an Allman if
  block, a guarded case label) now fails the grader.
- names-pagecount-failure: paging must name the class (Paging.) or a
  paging check, test or bug; the plan's fix-paging branch example no
  longer passes.
- no-third-party-import: every module in a comma-separated import is
  checked, not only the first.

Each fix adds the sample that showed the gap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 313af282112deb3fdd9e1ae2491803e415da2ae7; the summary is in this lane's pull request comment.

claude-lane: claude-review

no-token-option now crosses guard statements between the flag literal
and the read, stopping at the next flag literal, a break or a case
label, and also fails any assignment from args into a variable whose
name contains token. Adds the two guarded shapes as fail samples and a
guarded non-token option as a pass sample.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 962e87c6dde8795c143ff2bb60292a463783150e; the summary is in this lane's pull request comment.

claude-lane: claude-review

…k end

no-token-option's flag-to-read scan now also stops at return, throw and
a line that closes a block, so a rejection that returns before a later
positional read (args[0]) no longer fails a correct answer. Guarded
token reads stay caught by the token-named assignment alternative. Adds
the block and one-line rejection-then-positional-read shapes as pass
samples for both the Write and Edit graders.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant