Skip to content

test(session-flow): plugin-eval cases for handoff's task-tool branches - #8146

Merged
kyle-sexton merged 4 commits into
mainfrom
work-resolve-issue/issue-7988-39105983014-1
Oct 20, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
work-resolve-issue/issue-7988-39105983014-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #7988

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Adds two plugin-eval cases for /session-flow:handoff, one per task-tool branch: Task tools (recreate calls from a live TaskList call) and neither Task tools nor TodoWrite (one line saying there are no task tools, pointing at the workflow checklist). Each case pairs a result grader with a process grader and carries sample answers.

Not verified

  • The static eval validator (/evals:validate, validate-cases.py) was not run: the lane allows no direct python and check-evals-quality only accepts evals.json files. Sample answers were checked against the patterns by hand only. Left to the PR's eval-validation CI job.
  • The two new scaffold.sh files were written without the executable bit; the existing ones' mode was not compared.
  • No review subagent, build or lint steps were run; the change is YAML/JSON fixtures only.

Fix

  • plugins/session-flow/evals/ho-task-tools-recreate-calls/: case.yaml, scaffold.sh and samples; result grader on TaskCreate recreate calls, process grader requiring a TaskList call
  • plugins/session-flow/evals/ho-no-task-tools-says-so/: case.yaml, scaffold.sh (adds a workflow-checklist.md) and samples; result grader on the no-task-tools line pointing at the checklist, process graders on no TaskCreate recreate calls in any Write and on the save-point being written
  • .changes/session-flow/test-handoff-task-tool-evals-7a2c4e19.md: patch fragment

Verification

The run reports:

Left out: the items under Not verified.

Related

#7988

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, cbca1c1c)

Reviewed the change since da0adfe0: the states-no-task-tools grader in plugins/session-flow/evals/ho-no-task-tools-says-so/case.yaml and its sample file.

No security findings.

  • The grader moves from a regex over the whole trace to a tool_used check on Write. It now requires the written file to be under .work/handoffs/ and to contain the statement. This makes the check stricter, not weaker.
  • The sample file holds only synthetic placeholder paths (/tmp/<user>/w/...). It has no secrets, no machine-specific data and no raw transcripts.
  • The diff touches no standing instruction, hook, permission rule or workflow. The instruction-surface deletion lens does not apply, and I did not read the instruction exception register.

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

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

No findings. This was an incremental review of the changes since da0adfe, in case.yaml and samples/states-no-task-tools.json under plugins/session-flow/evals/ho-no-task-tools-says-so/.

The states-no-task-tools grader changed from a regex on the trace to a tool_used grader on Write. Its input_match requires a write under .work/handoffs/ whose content says "no (live) task tools" and then names workflow-checklist within 300 characters.

I traced each sample against that pattern by hand. I could not run the repo's static validator, validate-cases.py, because Bash blocked running python here.

  • Pass sample: a Write to .work/handoffs/… whose content says "no task tools; … workflow-checklist.md" matches.
  • Fail samples: a rebuilt list, a silent environment line, and the statement without the checklist pointer do not match. The new Read-only sample is rejected because the tool is not Write.

The compact-JSON serialization the validator uses (json.dumps(..., separators=(",", ":")) at validate-cases.py:928) fits the "file_path":"…" anchor. The same anchor is already used in ho-stops-after-resume-prompt.

The grader assumes file_path comes before content in the Write input. That is the schema order and what the samples use. If a model emitted them the other way round, the grader would fail the run.

Closing-issue criteria from #7988: the PR's other files were reviewed earlier and are unchanged. Nothing in this increment touches the changelog fragment criterion. The author did not run the validator, so the eval-validation CI job is the check that covers it.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on e2e3889.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 18, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: e2e38893b69850702cfef79ed0f7d5064b41370a (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=8146 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=8146 -f activity=address-feedback

kyle-sexton and others added 2 commits October 18, 2026 12:06
lint-repo's exec-bit gate refused these scripts at mode 100644.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of 3 on cbca1c1.

@kyle-sexton

Copy link
Copy Markdown
Member

Removing needs-human under the owner's overnight procedure (Issue Triage session). The one open review thread, the scaffold mode, was fixed by a pushed commit (100755 at head; the thread reply shows the git ls-tree proof) and is resolved. ci-status passed and both AI reviews finished on the current head. No protected paths, no hold. Pre-merge scan: no workflow trigger, permission, token or lane-start change.

@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 20, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit 15d9ed6 Oct 20, 2026
42 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-7988-39105983014-1 branch October 20, 2026 06:19
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: the verifier verdict refuses verify:earlier-fail at head cbca1c1c8e559037821843eedbbc5cf99981e0e7. That refusal needs a human, who merges in person; the pr-merge lane will not merge this pull request.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(session-flow): plugin-eval cases for handoff's task-tool branches

1 participant