Skip to content

test(session-flow): eval cases for the TodoWrite task-tool branch - #11317

Merged
kyle-sexton merged 4 commits into
mainfrom
host-run/6892-todowrite-evals
Oct 30, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
host-run/6892-todowrite-evals

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Refs: #6892

Summary

Problem: /session-flow:handoff and /session-flow:workflow branch on the session's task tools, and the TodoWrite branch had no eval case. Intent: "the handoff renders the latest TodoWrite list in the environment section, and workflow keeps the stage list in TodoWrite."

A probe on Claude Code 2.1.314 showed that a claude plugin eval run launched with CLAUDE_CODE_ENABLE_TASKS=0 exported inherits it. Each run's session then has TodoWrite and none of TaskCreate, TaskList, TaskGet or TaskUpdate. The kept traces of all 12 runs confirm it. That makes the branch measurable, so this PR adds one case for each skill.

Fix

  • ho-todowrite-renders-list: result grader on a .work/handoffs/ save-point that renders the TodoWrite items as glyph lines. Both graders score in both arms. The process grader (a TodoWrite call) fails when the run was started without the variable.
  • wf-todowrite-tracks-stages: result grader on the answer naming TodoWrite or the todo list, not negated. Process grader on a TodoWrite call with at least three stages.
  • ho-task-tools-recreate-calls: the result grader scored 0 in both arms on a correct save-point. The trace escapes the recreate call's quote with three backslashes, and the pattern allowed one, so it now accepts any number. A pass sample covers the nested form.
  • Each new case description names the required CLAUDE_CODE_ENABLE_TASKS=0. Changelog fragment included.

Verification

  • validate-cases.py plugins/session-flow/evals: exit 0, no FAIL, every sample checked. A mutated must-fail sample on a copy was caught.

  • /evals:plugin-eval, sonnet (claude-sonnet-5-5), 3 runs, with/without, run-validity.py VALID on each pass:

    Case With Without Delta
    ho-task-tools-recreate-calls (after fix) 1.00 0.00 +1.00
    ho-no-task-tools-says-so 1.00 1.00 0 (ceiling)
    wf-task-tools-track-stages 1.00 1.00 0 (ceiling)
    wf-no-task-tools-checklist-file 1.00 0.00 +1.00
    ho-todowrite-renders-list (CLAUDE_CODE_ENABLE_TASKS=0, after scoring both arms) 1.00 0.50 +0.50
    wf-todowrite-tracks-stages (CLAUDE_CODE_ENABLE_TASKS=0) 1.00 0.83 +0.17

    Noise report: the four-case pass is within noise (delta +0.25, 95% interval -0.24 to +0.74, measured before the grader fix). The TodoWrite pass has too few cases to call. No gain is claimed.

  • scripts/check-affected.sh --tests on the committed head: 14 passed, 2 skipped.

  • Left out: no full rerun after the two grader changes. Only each changed case was rerun.

Related

N/A

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 30, 2026 13:30
…d workflow

Adds ho-todowrite-renders-list and wf-todowrite-tracks-stages. A run
needs CLAUDE_CODE_ENABLE_TASKS=0 exported: a case env takes only EVAL_*
keys, and a plugin eval run inherits the variable from the launching
shell, which gives the session TodoWrite and no Task tools.

Refs: #6892

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n the trace

ho-task-tools-recreate-calls scored 0 in both arms on a correct with-arm
save-point: the trace escapes the recreate call's quote as three
backslashes, and the pattern allowed one. Accept any run of backslashes.

Refs: #6892

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 30, 2026 17:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-10-30T17:34:14.537080Z 21f7ec1 Draft marked ready
ℹ️ 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.

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 3251a276a7b0e59533beeafcc403f7aac99d70d6: 0 finding(s), 0 as inline comments.

No security issues in the incremental change since 21f7ec1.

I reviewed two files:

  • .changes/session-flow/test-todowrite-branch-evals-3f9c61a8.md adds a changelog "Fixed" note. It is prose only.
  • plugins/session-flow/evals/ho-todowrite-renders-list/case.yaml changes one grader's arm from with-only to both. That grader is a regex match on a Write call in an eval trace. It adds no tool grant, no secret handling, no workflow and no manifest field.

Neither file matches a trusted path or trust control. The PR also touches no plugin.json or marketplace.json in this range, so there are no manifest <field> lines.

The changelog "Fixed" entry names the ho-task-tools-recreate-calls grader, but this incremental diff doesn't touch that case. I assume that change landed in the earlier reviewed range. I didn't check it, and it is not a security matter.

Spend: running the grader on both arms adds one more eval run per execution. That uses prepaid or subscription usage only, so it is not a hold.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 3251a276a7b0e59533beeafcc403f7aac99d70d6: 0 finding(s), 0 as inline comments.

Incremental review of two files changed since 21f7ec1: no findings.

  • plugins/session-flow/evals/ho-todowrite-renders-list/case.yaml: the todo-list-rendered grader moves from arm: with-only to arm: both. This matches the PR description ("Both graders score in both arms") and the case's own wording. The arm: both setting is already used across this plugin's cases. The samples/ directory still has a sample for each grader, so sample validation should be unaffected. I did not run validate-cases.py.
  • .changes/session-flow/test-todowrite-branch-evals-3f9c61a8.md: the new Fixed entry describes the ho-task-tools-recreate-calls grader change. That change is in the PR's full diff. The entry is accurate, and the patch bump fits.

This change spends no billable resources beyond eval runs on prepaid API credits. No hold.

… arms

With the grader with-only, the case's only scored grader was the
TodoWrite call both arms make, so it sat at ceiling by construction. A
no-plugin run writes no save-point, so scoring it in both arms makes
the case measure the handoff branch (1.00 with, 0.50 without).

Refs: #6892

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 667b3c0 Oct 30, 2026
42 checks passed
@kyle-sexton
kyle-sexton deleted the host-run/6892-todowrite-evals branch October 30, 2026 21:41
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