Skip to content

feat(session-flow): measure handoff resume accuracy with an A/A-calibrated eval - #17387

Merged
kyle-sexton merged 39 commits into
mainfrom
feat/resume-eval-instrument
Nov 20, 2026
Merged

kyle-sexton merged 39 commits into
mainfrom
feat/resume-eval-instrument

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

No related issue: phase 2 of the handoff redesign plan, tracked in a local plan, not an issue.

Summary

The resume eval could not yet measure the failures the handoff redesign targets, or tell a real change from run-to-run noise. This PR extends the resume-eval instrument and adds the cases it needs, so a later handoff change can be compared against an A/A-calibrated baseline.

  • Harness (plugins/session-flow/scripts/harness/): non-delivery scoring, paired m1 token comparison (to the first action and over the whole run), task_relation subsets, per-arm frozen seeds built from each arm's plugin copy, an explicit seed shape per case, a hop allowed to fail with a stated FAIL (optionally per arm), a seeder option to reuse a retired id, an amend step on the newest hop, and size steering for shape 3. The report fails on any left out line.
  • Eleven new cases under plugins/session-flow/evals/: re-decision-trimmed-to-fit, re-rule-after-size-fail, re-retired-id-reused, re-oversized-brief, re-shape3-near-cap, re-late-event, re-transition-2-to-4, re-transition-3-to-4, and the continuation-router cases wf-same-task-compacts, wf-phase-boundary-hands-off, wf-unrelated-next-plain-clear. Each was approved by the owner before it landed.
  • Every re-* case carries a task_relation tag (same or boundary, by its next action).
  • plugins/session-flow/evals/resume-eval.md documents seeding, the report flags and the exit codes.

Fix

  • report scores accuracy on delivered runs only and gates non-delivery as its own per-case rate (--nondelivery-margin, a non-inferiority margin of 1.43h from an A/A pair), with the whole-run reader m1 change gated by --token-margin; every pair line prints h, so an A/A pair gives each margin directly.
  • run keeps graded rows across a crash, counts only final exclusions, and keeps eval-run worktrees inside the run's own directory.
  • The cases and seeder options listed under Summary reproduce each targeted failure.

Acceptance criteria

  • AC7: A baseline run of today's handoff and /compact through the resume eval exists before any change is compared. (The A/A and baseline batch is running; this PR carries the instrument for it.)
  • AC11: The resume eval includes cases for each of this week's failures: binding decisions dropped to fit, a dropped rule passing after a size failure, a retired id reused, oversized session-written text labeled UNVALIDATED, long chains near the cap, and late events; each rewritten case was approved by the owner before it landed.
  • AC16: A report lists every source filling a resumed session's context with its token count, before and after the work. (The report itself stays local; this PR does not add it.)

M, T and the first-action token cut are set from the 6-runs-per-cell A/A now running, in a follow-up PR that changes resume-eval.md's documented --margin; the owner approves T and the cut there. This PR changes only the eval harness and cases, no handoff runtime code.

Verification

  • harness suite: 198 passed locally (python3 -m pytest plugins/session-flow/scripts/harness -q).
  • Left out: the A/A batch and baseline results, still running; M, T and the token cut are not yet set.

Related

N/A

🤖 Generated with Claude Code

kyle-sexton and others added 23 commits November 18, 2026 19:03
The seed commit of a run repository failed when the host's signing
program timed out, killing the run before any model call. Run
repositories are throwaway, so child processes now get commit and tag
signing turned off through GIT_CONFIG_* variables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
build_predecessor_chain takes the save_point.py of the arm being seeded,
pinned by path. A case's explicit shape wins; otherwise the chain is built
in the shape that copy writes, read from its HANDOFF_SHAPE line rather than
imported, so a second copy never shadows the imported save_point module.
Shape 4 (or any shape the seeder cannot build) is an "unsupported seed
shape" error raised before any file is written. With no copy the default
stays shape 2, as before, so callers without an arm keep today's chains.

seed_hash hashes every file under handoffs/ with the run repository's path
written as {repo}, so two runs of one case and arm compare equal and any
content change shows.

target_bytes now steers shape-3 chains too: rules stay in the hot file, so
the count of generated rules per hop is steered from measured overhead, as
the shape-2 width steering does. Width steering capped out below target
(MAX_WIDTH), so count is the lever.

expected_fail states a hop that must FAIL validate and the pattern every
FAIL line must match; an unexpected pass or a different FAIL still stops
the build, and an unstated FAIL stops it as before.

load_case accepts task_relation: same or boundary.

test_shape3_spec_errors_are_refused_before_any_file_is_written drops its
target_bytes entry: shape-3 steering is now supported.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Exclusions are classed by a frozen Exclusion (source, kind) record. The
sources are writer, reader, follow-up and judge; a behavior kind (no
handoff, a denial, zero turns, a result error) scores 0 on every probe of
the run, and every other kind is infrastructure (usage limit, sandbox
start, a CLI that exited with no output, a judge with no verdict), which
stays an error. A judge failure is always infrastructure: it is the
grader's, not the arm's. Rows written before this carry only the error
text, so row_cause reads it to keep old graded files reportable.

run counts a behavior row done, re-runs infrastructure ones on the next
invocation (exit 6 while any remain), keeps stopping at the first usage
limit (exit 4), and stops on a seed whose hash differs from an earlier run
of its case and arm (exit 5). It refuses before any work when an arm has
no save_point.py to seed from; compact and free-hand seed with the before
copy.

Graded rows gain reader_m1 (reader tokens to the first state change, apart
from the writer's tokens in m1), reader_whole_m1 (the whole reader run, so
later reads of moved history count; codex_tokens gains the same whole
option) and seed_hash. Older rows' reader_m1 comes from reader_tokens.m1.

report takes --graded more than once (groups get @1, @2 so an A/A pair of
one arm stays two groups), prints accuracy, reader m1, whole-run m1 and the
pass count at T per group and per case, and with --baseline writes one
shared-probe result pair per compared group (same reader), runnable by
noise-report.py --baseline and win-test.py, and prints the paired accuracy
change, the paired token changes, case drop: and pass-to-fail: lines.
--subset same|boundary reads task_relation from the case files. It exits
1 on any left out (an excluded or missing run, or a case absent from one
side of a pair), case drop:, pass-to-fail:, untagged: or seed mismatch:
line. case drop: fails too because AC8's "no case drops" counts it.

Edited tests: the two flow tests seed from this checkout's plugin dir with
an explicit shape 2 (seeding now runs the arm copy's save_point.py, and
those shape-2 cases cannot build in shape 3) and assert the new row
fields; test_report_keeps_the_last_row_per_run_and_counts_every_exclusion
calls main() since --graded is repeatable.

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

A case present on both sides of a pair whose runs graded no probe both arms
share was skipped without a line, so the pair compared fewer cases and the
report still exited 0. It now prints a failing left out line. The pair test
also asserted on a split field that was always the word "case"; it now
checks the drop lines themselves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
"over 1 cases" and "over 1 runs" read as "over 1 case" and "over 1 run".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Seeding now follows the arm copy's shape unless a case names one. Seven
re-* cases hold shape-2 sections (constraints, side effects) with no
shape-3 home, so each names shape 2, the shape every case seeded in
before. Two seeding tests drop the pin in memory to keep testing the
arm-shape default. Adds the changelog fragment for the harness work.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The report loaded plugin-eval's noise-report.py at run time, a load
across plugins the boundary rule forbids. The harness now keeps its own
normal interval and case-drop share, and an agreement test, listed as an
accepted crossing, holds them equal to noise-report.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The network deny list refused every `git ls-remote`, though a run's
origin is a local bare repository. A compact-arm reader that checked
`git ls-remote origin refs/heads/main` was denied, and the run counted
as a non-delivery. Only https and ssh remote forms stay denied, as the
git fetch rules already do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A seven-hop shape-3 chain whose newest hot file sits about 500 bytes
under the hot-file cap carries two long early decisions (how releases
are tagged; how a schema question is settled). The probes check the
written handoff keeps each decision's binding clause and the resumed
reader honors both. It rewrites an observed loss one-to-one with every
detail changed, approved by the owner before it landed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A six-hop shape-3 chain whose newest hot file is over the cap, and is
seeded to FAIL validate on size, carries a hop-1 migration rule. The
probes check the written handoff keeps the rule whole and the resumed
reader runs the check and pastes its output before merging. The seed
test now honors a hop's stated FAIL. It rewrites a reproduced validator
failure one-to-one, approved by the owner before it landed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A shape-3 injection in an id section can name `reuse: <injection id>`
and take the id that injection held, once it was retired at an earlier
hop. This seeds the AC2 failure: a retired rule id reused for a
different rule, which `validate` accepts today.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Three test repositories committed with the global signing config, so a
slow signer failed the commit under a full-suite run. They now turn
signing off, as the harness's own fixtures already do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A shape-3 chain retires rule [R4] at hop 3 and reuses [R4] for a
different, contradicting rule at hop 4. The reader's next action, a
release, goes one way under each rule; the probes check the handoff
carries the live rule and the reader tags rather than hand-bumping the
version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each of the nine cases resumes in a fresh session from a handoff, so
each feeds the boundary compaction gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An expected_fail entry may name `arms`; it holds only when that arm's
copy builds the chain, so a case can seed one arm through a validator
FAIL the other arm's copy does not raise. The harness passes each arm
to the seeder.

The seeded-session reads move from resume_cases.py to resume_history.py
so resume_cases.py stays under the 1,000-line size reference.

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

resume-eval.md now states which copy seeds each arm and in which shape,
expected_fail, task_relation, the report's pair folders, flags and exit
codes, and run's exit codes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The newest predecessor's Resumption brief is about 29 KB of status
lines, so its core alone is over the hot-file cap and validate passes
it as UNVALIDATED. The one statement that warehouse 7 must backfill
from 2026-10-01 is the brief's last status line; the probes check the
handoff carries that bound and the reader runs the bounded backfill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A case is `same` when its next action continues the task in progress
and `boundary` when it starts the next item or task. Seven cases move
to `same`; the rule is stated in resume-eval.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A 12-hop shape-3 chain whose newest hot file sits 201 bytes under the
cap. The only purge rule was set at hop 1, and the next action breaks
it with a full-zone purge; the probes check the rule survives whole and
the reader purges by prefix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The newest handoff was written while CI on PR #4460 ran and says to
merge once green; after emit, CI failed test_backoff_cap and amend
rewrote Remaining actions and Next. The probes check the next handoff
carries the failure and the reader fixes the cap instead of merging.

A predecessor's `amend` object is applied to the newest hop with the
copy's own `save_point.py amend` before that hop validates, so a case
can start from a handoff a late event changed after emit.

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

One scenario seeded from a shape-2 and from a shape-3 chain: a hop-1
rule (reindex only into the staging alias) and decision (12 shards)
guard the next action. The artifact probes apply to the after arm, so
they run once shape 4 exists; the reader probes run on every arm.

The trap-number check now strips an id prefix as it strips a hop tag,
so a spec-written id-section entry passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e boundary and unrelated work

Three plugin-eval cases check the router's recommendation at each kind
of continuation: /compact mid-task, a handoff then /clear when the next
plan phase starts, and a plain /clear when the next ask is unrelated
and nothing carries over. Each invokes no continuation skill on a
natural-language license.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
kyle-sexton and others added 6 commits November 19, 2026 02:04
…tired-id case

The after arm's validator fails the reused [R4] at hop 4 and at hop 5,
which carries it; both hops are stated so that arm's seed builds on.

The every-hop test now applies expected_fail as the seeder does, ignoring entries scoped to other arms.

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

A hop stated in expected_fail retries a budget-refused fill once, as the writer's two-call path does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ersized-brief case

The after arm's validator fails hop 4's oversized Resumption brief by
slot; the entry lets that arm's seed build on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A batch killed mid-run left `<index>-<reader>` copies behind, and the
resumed batch crashed on the first one with FileExistsError. A run now
clears its directory and its reader copies before it starts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaqsQksryU8CarAPiU
…al exclusions

A run whose graded.json is complete but whose rows never reached
graded.jsonl (the batch died first) now has its rows appended on resume,
once, instead of being skipped and lost from the report. A job whose
runner raises no longer drops the rows of jobs still running: the batch
stops submitting, appends every other finished job, then re-raises the
first exception with its stack.

The report's exclusion count now reads the final row per (case, index),
so a run that errored and re-ran clean is no longer counted as excluded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaqsQksryU8CarAPiU
@github-actions github-actions Bot removed the needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory. label Nov 20, 2026

@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: ab42524f1e

ℹ️ 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".

A seeded file that starts with a shebang gets mode 755, so a Makefile
recipe that runs `./scripts/<name>.sh` works instead of failing with
Permission denied and adding repair turns to the measured run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaqsQksryU8CarAPiU
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 5c40090f6acecba4ae356eda5402d18225b7f8ec: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: incremental (1356265 → 5c40090)

No security issues found. This lane already reviewed an earlier head of this pull request, so this review reports only CRITICAL and IMPORTANT findings.

Scope. I read every hunk of both files this push changed: plugins/session-flow/scripts/harness/resume_eval.py and plugins/session-flow/scripts/harness/test_resume_eval.py. Neither file matches a trusted-path glob. The push does not touch any trust control, merge hold, token request, kill switch, workflow, plugin manifest or instruction file.

What I checked

  • The NETWORK_DENY list in resume_eval.py. This list becomes permissions.deny in the settings file the eval harness writes for each sandboxed session (resume_eval.py#L79-L80, #L93).
    • Before this push, three narrow patterns blocked git ls-remote only for URL or user@host forms: *://*, *@* and *:*/*.
    • Now two blanket patterns, Bash(git ls-remote:*) and Bash(git ls-remote *), block every form, including a call against a named remote such as origin.
    • The new patterns match everything the old ones matched, so the deny list only got stricter.
  • The test in test_resume_eval.py. It now asserts that both blanket patterns are in the deny list. It no longer expects git ls-remote origin to be allowed, and it still checks that local git fetch forms stay allowed. This is test code and has no security surface.
  • git fetch against a named remote. It is still allowed, but this push did not change that, so it is pre-existing and out of scope.

Settled and prior items. This push does not touch the code under any earlier settled thread. This lane's earlier summary-level post had no findings to carry over.

critical-findings: 0

The eval deny list matched only `https` and `git@` as the first argument,
so http, ssh, git, scp-style and option-first forms reached the network.
Deny any ls-remote argument holding a colon and any fetch URL or user@host,
which keeps the local `origin` queries readers need.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaqsQksryU8CarAPiU
@kyle-sexton

Copy link
Copy Markdown
Member Author

Security lane suggestion (resume_eval.py:81, git ls-remote deny gap): CORRECT, fixed in 3d831ee. Remote ls-remote is denied for any argument holding a colon (Bash(git ls-remote *:*)), and fetch for any URL or user@host (*://*, *@*), which covers http, ssh, git, scp-style and option-first forms while git ls-remote origin and git fetch origin stay allowed; test_settings_disable_the_installed_plugin_and_deny_the_network checks both sets.

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 5c40090f6acecba4ae356eda5402d18225b7f8ec: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, 1356265..5c40090, blocking only)

This round covers the 2 files changed in this push. I read every hunk of both files:

  • plugins/session-flow/scripts/harness/resume_eval.py
  • plugins/session-flow/scripts/harness/test_resume_eval.py

This lane already reviewed an earlier head, so this round reports only blocking findings. I found no blocking findings.

What changed

  • In NETWORK_DENY, the three URL-shaped git ls-remote rules are gone. They are replaced by blanket denies, Bash(git ls-remote:*) and Bash(git ls-remote *) (resume_eval.py#L79-L80). This brings back the base's blanket deny and closes the scp-style host:repo gap the owner recorded on the earlier thread.
  • The test now requires both blanket rules (test_resume_eval.py#L209).
  • It no longer expects a local git ls-remote origin to be allowed, which is consistent with the blanket deny. The commands it still expects to stay allowed are git fetch origin and git fetch --prune origin.

Checks I did by reading

  • Read as Claude Code does (:* → *), both new rules become git ls-remote *. That pattern matches every remote form the test lists, and the git fetch URL rules do not catch either local fetch command. Both assertion loops hold.
  • The plugin's only other ls-remote call, git -C "$root" ls-remote in plugins/session-flow/lib/default-branch-file.sh:56, runs inside a script rather than as the Bash tool's command, so these deny rules do not affect it.

Other checks

  • Closing issue: none. The PR context says the work is tracked in a local plan.
  • Loosened checks: Loosened checks would be marked: fail (default: the prompt has no loosened_check_verdict: line); patterns: 0. No loosened_check_decision_record: line was given, so the citation requirement was not checked.
  • Manifests: this push changes no plugin manifest.
  • Not run: I ran nothing; every result above comes from reading the diff and the files at head. The PR's test results are the author's claim and I have not checked them.

Verifier dropped 0 of 0 candidates.

@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 3d831eebdb5df533288f81e69ba353e8c923525e; the summary is in this lane's pull request comment.

claude-lane: claude-review

…ny rules

- Deny remote git ls-remote by URL shape without a trailing `:*`, which
  Claude Code reads as the old prefix form; the test now applies that reading.
- decision-no-hand-tag also catches `git -C <dir>` and option-first tags.
- expected_fail matches the arm's base, so after-promoted states its FAILs.
- The wf-* negation guard looks only at the words beside the command, so a
  one-line "No handoff needed: just /clear" passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaqsQksryU8CarAPiU
@kyle-sexton

Copy link
Copy Markdown
Member Author

claude-review findings on ab42524, each checked against the head source and the approved plan:

Finding Verdict Action
decision-no-hand-tag misses -C and option-first tags CORRECT Fixed in 2bcf6b5 with the suggested pattern; four fail samples added
git ls-remote deny narrowed CORRECT Fixed in 3d831ee, then again in 2bcf6b5 (no trailing :*)
test_every_hop_validates accepts a stated FAIL Not a loosening: settled The approved plan names it: "a hop allowed to fail with a stated FAIL" (plan Phase 2, owner-approved; per-arm entries are owner decision D19). The test still requires every FAIL line to match the case regex
shape-3 target_bytes refusal removed Not a loosening: settled The same approved plan line names "size steering for shape 3"; re-shape3-near-cap (owner-approved case) needs it
expected_fail uses the raw arm name CORRECT Fixed in 2bcf6b5: the seeder passes arm_base(arm)
wf-* negation guard fails a one-line answer (advisory) CORRECT Fixed in 2bcf6b5: the guard looks only at the words beside the command; a one-line pass sample added per case

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none (read lane)
Run 44761450535

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 44761450535

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@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 2bcf6b5261c7576975ddac44f4c4b015b3790e23; the summary is in this lane's pull request comment.

claude-lane: claude-review

The guard now skips a line when a negation comes within 30 characters
of the command with no clause break between, so "Instead of a /compact"
and "No need for /compact" stay negated while "No handoff needed: just
/clear" still names the command. Fail samples cover both forms per case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaqsQksryU8CarAPiU
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none (read lane)
Run 44762439227

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 44762439227

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 13562651db7d8b2280b3af4fe5421eef992bdfbe. What it wrote, as data:

What it wrote (44 lines)
Summary: Spec is the PR body of #17387 (no linked issue; source pull-request). It asks for the
  resume-eval instrument for the handoff redesign: harness changes, eleven new cases, a
  task_relation tag on every re-* case, and resume-eval.md docs. The diff delivers all of it.

Harness:
- `report` scores delivered runs only and gates non-delivery with --nondelivery-margin.
- The pair report shows the paired m1 change both to the first action and over the whole run, the
  whole-run change gated by --token-margin, and prints `h` on every pair line.
- --subset filters by task_relation.
- Each arm seeds from its own plugin copy, checked by a seed hash; a mismatch exits 5.
- A case can name an explicit `shape` and `expected_fail` (optionally per arm).
- A seeder injection can `reuse` a retired id, and `amend` applies to the newest hop.
- shape-3 chains steer to `target_bytes`.
- `run` keeps rows graded before a crash, separates behavior from infrastructure exclusions, and
  pins worktreeroot.path inside the run directory.

Cases: all eleven new cases are there with grader samples, and all nine existing re-* cases gain a
  task_relation tag. AC7/AC16 outputs and the M/T margins are left to follow-up work, as the body
  says.

Tests: new unit tests cover each harness feature. Test Python (0) passed on the judged head
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/44762695181/job/136379380317).
  There are no binary files and nothing touches the takeover set.

Two loosenings the body names are within the spec: a stated FAIL in test_every_hop_validates, and
  dropping the shape-3 target_bytes refusal.

Blocking: one change is not in the spec and weakens a guard. NETWORK_DENY in resume_eval.py used to
  deny every `git ls-remote`. It now denies only URL, user@host and host:org/repo forms. That lets
  an eval session run ls-remote against named remotes and scp-style `host:repo` (a gap the author
  acknowledges in a review comment). The test was rewritten to require that the blanket deny be
  absent. A pull-request spec can't authorize a weakened guard, so this blocks.

The `git fetch` deny was tightened (now any `://` or `@` form), which is fine.
- plugins/session-flow/scripts/harness/resume_eval.py:79 — The `git ls-remote` deny is narrower than
  on base. Base denied every invocation (`Bash(git ls-remote:*)` and `Bash(git ls-remote *)`). Now
  only `*://*`, `*@*` and `*:*/*` are denied, so `git ls-remote <named-remote>` and scp-style `git
  ls-remote host:repo` can reach the network from eval sessions. The spec does not ask for this.
  Restore the blanket ls-remote deny. If a reader's `git ls-remote origin` has to stay allowed, pass
  it through `allowed_denials` instead of opening the deny list.
- plugins/session-flow/scripts/harness/test_resume_eval.py:209 — The test now asserts that `Bash(git
  ls-remote *)` and `Bash(git ls-remote:*)` are absent from the deny list, which locks in the weaker
  guard. Revert this to assert the blanket ls-remote deny is present, keeping the new checks that
  the URL, user@host and host:org/repo fetch forms are denied.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 20, 2026
Eval sessions deny every `git ls-remote` again, as on main; narrowing it
loosened a network guard nobody approved. A reader's `git ls-remote origin`
now counts as a non-delivery, which the report gates as its own rate.
The `git fetch` deny keeps its URL and user@host forms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaqsQksryU8CarAPiU
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 20, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 20, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 5b19a3e Nov 20, 2026
46 checks passed
@kyle-sexton
kyle-sexton deleted the feat/resume-eval-instrument branch November 20, 2026 16:03
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 5, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 71%; mutation score 71%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/session-flow/scripts/harness/resume_cases.py 1 2 0 0 0 0
plugins/session-flow/scripts/harness/resume_eval.py 4 0 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/session-flow/scripts/harness/resume_cases.py:455 ROR unclassified none
plugins/session-flow/scripts/harness/resume_cases.py:938 other unclassified none

The run's summary has the full report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant