Repository navigation
docs(evals): keep plugin-eval runs attached until they exit - #7112
Conversation
A headless `claude -p` session that backgrounds `claude plugin eval` and ends kills the runs. On 2026-10-04 three suites backgrounded this way all ended partial and interrupted, and the validity gate marked them INVALID. The Run step now says: in a non-interactive session, run each suite in the foreground, one after another (-j for concurrency inside a suite), and give no final answer while a run is in flight. An interactive session backgrounds a run only as a harness-tracked task. The headless gotcha records the recurrence, and the new eval case headless-stay-attached fails a plan that backgrounds the runs and ends. Closes #6333 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01L8KdG7fWg2YrErVYWtohmR
|
The lanes run once the PR is marked ready. That flip waits for Kyle, because it also starts the review lanes. Until then, the local runs listed under Verification in the PR body are the signal. Generated by Claude Code |
Codex Review SummaryThis 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. |
|
Claude finished @kyle-sexton's task in 4m 43s —— View job Claude's code review
Scope. 7 files, all in What I checked
Finding posted inline (Suggestion, non-blocking): the new "Stay attached until every run exits" paragraph in No correctness, design, or test-coverage issues found beyond that one prose suggestion. claude-lane-summary: lane=claude-review sha=dfc1923fb37f264a5c50bad7cbb27b3c3c21cfba run=38346346629 |
|
Claude finished @kyle-sexton's task in 52s —— View job Security review complete
Scope: Instruction-surface check: The Other files: the eval case's grader regex Result: No security issues found. This PR is documentation- and eval-fixture-only; it has no claude-lane-summary: lane=claude-security-review sha=dfc1923fb37f264a5c50bad7cbb27b3c3c21cfba run=38346346636 |
|
claude-security-review has reviewed this pull request through 26d04ce; a later push is reviewed from there. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dfc1923fb3
ℹ️ 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".
|
claude-review has reviewed this pull request through 26d04ce; a later push is reviewed from there. |
… cap - Fold the new paragraph into the existing step 3 sentence instead of restating it, and point the 2026-10-04 recurrence at #6333 instead of restating its run details, which brings SKILL.md back under the 500-line hard cap. - Make the grader match the rule: a foreground wrapper that backgrounds the three runs and waits now fails, and its sample moves to fail. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W6SjPvY7DmXBGzboeCq8nj
|
Claude finished @kyle-sexton's task in 2m 25s —— View job Claude's code review
Scope (incremental). This lane last reviewed
I checked the updated grader against all 7 samples (2 pass, 5 fail) by hand and each verdict matches the tightened PASS/FAIL text; no remaining inconsistency with No new issues found in this incremental pass. claude-lane-summary: lane=claude-review sha=26d04ce3f35bb64d0e5479d168276e7b1acbf4be run=38347122625 |
|
Claude finished @kyle-sexton's task in 1m 5s —— View job Security review (incremental)
Scope: incremental, reviewed only the delta since
What changed: this is the fix commit for the three "VALID (fix now)" review comments from Codex and the earlier claude-review lane. The grader now fails backgrounding a run even inside a single foreground wrapper that Instruction-surface check: read Grader/sample change: Result: No security issues found. This increment is documentation- and eval-fixture-only, addressing prior review feedback; it has no security-relevant surface (no command execution, auth, secrets, or injection points) and no weakening of any standing instruction. claude-lane-summary: lane=claude-security-review sha=26d04ce3f35bb64d0e5479d168276e7b1acbf4be run=38347122514 |
Requested by Kyle · project thread
Closes #6333
Summary
Before:
/evals:plugin-evalsaid one thing about backgrounding, in its Run step: "Never background the CLI from a headless-psession". It said nothing about running several suites, or about when the session may end. On 2026-10-04 a headless session backgrounded three suites, said they were running, and exited. All three endedpartial: true,interrupted, INVALID.After: the Run step has a "Stay attached until every run exits" rule. In a
claude -por other non-interactive session, each suite's CLI call runs in the foreground, one suite after another (-jadds concurrency inside a suite), and there is no final answer while a run is in flight. In an interactive session, a run goes to the background only as a harness-tracked task that is waited for and read. The headless gotcha now records the 2026-10-04 recurrence as its observed-stumble evidence. A new eval case fails a plan that backgrounds the runs and ends.Fix
plugins/evals/skills/plugin-eval/SKILL.md: a new paragraph in Run step 3. The existing headless gotcha now also records the 2026-10-04 recurrence. The issue's dollar spend figures are left out, per.claude/rules/cost-claims.md.plugins/evals/evals/headless-stay-attached/: the case prompt is a headless nightly-script setup that asks for parallel runs. It has two graders:llmgrader,stays-attached, which passes foreground runs,-jinside a suite, or one foreground command that waits for all three, and fails backgrounding and ending;skill-firedindicator.The
stays-attachedsamples (3 pass, 4 fail) are written by hand, not taken from transcripts.A changelog fragment for
evals(patch).Choices I made:
[run-mechanics, headless], nothardorregression-guard, because no blind base answers were recorded to judge which it is.skill-firedgrader can fire (see case-authoring.md).Verification
python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/evals/evals: exit 0. The new case's only line is the standard "sample answers need judge calibration" WARN. The deterministicskill-firedgrader grades its samples cleanly.scripts/affected-tests.sh --base origin/main --run --jobs 4: 3/3 shell suites passed (validate-cases.test.sh,calibrate-judge.test.sh,check-summary-reader-parity.test.sh). The 2 Python suites it listed passed underpython3 -m unittest(32 and 66 tests OK); pytest is not installed here.scripts/check-changelog-fragments.sh --checkand--check-required origin/main: OK.scripts/check-changelog-parity.sh --check-bump origin/main: OK.claude plugin evalon the new case (a metered run). The judge rubric is uncalibrated, as the WARN says.Related
plugin-eval/SKILL.md. This PR adds its paragraph after the end of that hunk's context, so the two should merge cleanly. Recheck after whichever lands first.🤖 Generated with Claude Code
https://claude.ai/code/session_01L8KdG7fWg2YrErVYWtohmR
Generated by Claude Code