Skip to content

feat(session-flow): report what is still reported in recall - #15920

Closed
melodic-automation-lanes[bot] wants to merge 15 commits into
mainfrom
work-resolve-issue/issue-15839-43394161359-1
Closed

melodic-automation-lanes[bot] wants to merge 15 commits into
mainfrom
work-resolve-issue/issue-15839-43394161359-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #15839

Summary

/session-flow:recall now has a Still reported section. It lists:

  • tracker items of an incident or user-report kind that were closed and later reopened, read from the tracker's state history;
  • items whose fix was reverted;
  • items that repeat the same symptom;
  • postmortems on the topic.

The tracker step searches open and closed items through /work-items:track search. It then asks /work-items:track view --history for the state history of up to ten matched items. Recall does not call /discovery:trace-intent and still writes nothing.

To support this, the work-items tracker seam gains a state-history read. get-item <id> --history adds state_history to the item object, and track view --history exposes it to other plugins:

  • GitHub reads the issue timeline's closed and reopened events over REST.
  • Every other shipped adapter (local-markdown and the jira, gitea and linear seeds) answers available: false with a reason. A caller can tell that apart from "never reopened".

Two settings resolve repository file over user option over default, through the plugin's existing config layers:

  • recall_report_kinds: issue types or labels read through the work-items label taxonomy, default Bug.
  • recall_doc_paths: git pathspecs searched for postmortems, default *.md.

Dogfooding step for this repository: drive the skill with /app-control:drive claude-code-plugins session-flow/recall (AGENTS.md, "Driving this repository's skills") on a topic with a reopened or reverted bug. Check that the item appears under Still reported.

Fix

work-items: state history on request

  • tools/work-item-tracker/work-item-tracker.sh: get-item <id> --history is gated in core by features.state_history, the same way --label is gated by features.list_items_label_filter.
    • An adapter that declares the feature receives the flag.
    • For any other adapter, core runs the plain get-item and adds {available: false, events: null, reopen_count: null, reason}.
    • The contract stays at 1.0, because the field is additive and appears only when asked for.
  • adapters/github/get-item.sh and capabilities.json: one paginated REST read of the timeline, made only with --history, never on list-items, list-sub-items or list-frontier. It emits {available: true, events: [{state, at, actor}], reopen_count, reason: null}. A failed read exits with the mapped code and prints no item.
  • CONTRACT.md, adapters/github/README.md, reference/tracker-seam.md, skills/track/actions/view.md: document the flag. view --history reads it through the seam. Exit 3 (no binding, or a missing prerequisite) prints as not available. Any other failure is reported as a failed read, never as an empty history.
  • conformance/run-conformance.sh: on a new item, get-item --history must report no events when the provider declares the feature, and available: false with a reason when it does not.
  • .changes/work-items/…: minor fragment.

session-flow: recall

  • skills/recall/SKILL.md, Step 5 now:
    • reads the state history of up to ten matched items, newest first, and names the items past the cap;
    • marks an item reopened once or more under Still reported, with its dates and reopen count;
    • keeps the item-text reopen check only for an item whose history was not read or not available;
    • never reads "not available" as "not reopened".
  • skills/recall/SKILL.md, Step 6: the report says whose history was read, which items' history was not available or failed to read, and which were past the cap. This replaces the earlier "reopens are found only where an item's text records them" line.
  • README.md, reference/config.md, the session-flow fragment: describe the history read.
  • New eval case evals/recall-still-reports-reopened-bug/. A work-items stand-in plugin inside the case directory serves search and view --history. It returns bug #57, which was closed and then reopened with no comment saying so, and task #12, which was closed and never reopened. Graders:
    • history-read: a view … --history call;
    • still-reported-names-reopened: #57 under Still reported with its reopen.
  • skills/recall/evals/evals.json: case 6 still-reports-reopened-bug.
  • From earlier commits, unchanged here: the recall-still-reports-reverted-fix case, the two settings (plugin.json, schema, config.md, setup), and docs/contracts/config-cascade/README.md.

Verification

  • plugins/work-items/tools/work-item-tracker/work-item-tracker.test.sh: 171 passed, 0 failed. New cases:
    • an adapter without the feature gets no --history;
    • core answers available: false with the provider named;
    • an adapter with the feature gets the flag;
    • a failed history read keeps its exit code and prints nothing;
    • usage errors.
  • adapters/github/get-item.test.sh: 28 passed. The fake gh uses the timeline-stub pattern from label-provenance.test.sh. It runs on both the native (gh 2.97) and REST (gh 2.50) item paths and covers:
    • close, reopen and close across two pages, in order;
    • non-state events dropped;
    • a never-closed item gives [] and 0;
    • a failed timeline read exits 4 with no output;
    • a plain get-item reads no timeline.
  • conformance/run-conformance.sh --binding local-markdown: 137 cases, 0 failed, including the new not-available --history assertions. Also run and green: bindings/local-markdown.test.sh, bindings/jira.test.sh, bindings/github.test.sh, run-conformance.test.sh, the local-markdown get-item and capabilities tests, and the github capabilities test.
  • scripts/check-affected.sh: 15 passed, 1 skipped (ruff, no Python changed) over 32 changed files.
  • plugins/evals/skills/validate/scripts/validate-cases.py plugins/session-flow/evals: 0 FAIL, and each new grader's sample answers sort correctly. The only warning on the new case is the Bash --allow-tools one its sibling recall cases carry.
  • check-evals-quality.sh on skills/recall/evals/evals.json: PASS. check-changed-skills.sh --merge-base: 0 errors. shellcheck, markdownlint-cli2 and typos are clean on the changed files.
  • GitHub source for the state history. Issue event types: closed, "The issue or pull request was closed."; reopened, "The issue or pull request was reopened."; both are listed as available in the REST API for timeline events.
  • First eval run: NOT met (record). It found two problems, both fixed in later commits:
    • The reopened-bug stand-in printed the state history in its skill body, so recall never asked for view --history. The stand-in now answers through a bundled reader that prints the history only on view <id> --history. Recall's history read is now its own step, which runs for every matched report-kind item.
    • Recall's settings step led the model to one compound Bash command (a loop, $( ) and the literal option placeholder), which the eval's don't-ask mode denied, making the batches INVALID. Step 2 now gives the user option values in its text and runs one plain command per call.
  • Second eval run: NOT met (record). It had 0 permission denials after the change, against 7 before, and all 6 reopened-bug runs read feat: add docs-hygiene plugin #57's history and reported the reopen. Three gaps remained, all fixed in later commits:
    • The stand-in showed the model its reader script, so 5 of 6 runs read the history with Bash rather than through /work-items:track. Its SKILL.md now renders the reader's output at load time (!`…` with $ARGUMENTS), so each read is one Skill call.
    • Some answers put an item's reopen on a sub-bullet. Step 6 now puts the item id and why it is still reported on one line.
    • Opus paraphrased transcript_scope after the Step 2 rewrite (recall-states-scope-searched 0.89 to 0.44). Step 2 returns to its earlier prose and one-line report, keeps the no-shell, no-chaining rule, and skips the check and readers when the repository has no session-flow.yaml. Step 6 asks for each setting as Step 2's line.
  • Still owed: a third, pre-registered run of the issue's two-version eval compare. The existing recall cases must be non-inferior with opus and sonnet aliases, three runs per side, a --case filter and a --max-cost-usd ceiling. It runs in the one local eval-runner session and was not run here. The new recall-still-reports-reopened-bug case has not run yet either. This PR keeps do-not-merge until that record lands.
  • Before/after measurement for the compare: run the recall cases (recall-*) on origin/main's session-flow and on this head, and read each case's grader pass rates side by side. The new case is expected to pass history-read and still-reported-names-reopened in the with-plugin arm.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc

Lane-Activity: work-resolve-issue/resolve-issue

@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-security-review: 2 inline finding(s) on 4a70cd601a0443ddc9e6c472e44260a96ecd3c2d; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #15920 at 69d15f78

Scope. I read every hunk of all 33 changed files in .claude-lane/pr.diff. None of them matches a TRUSTED PATHS: glob. The diff leaves every trust control alone: the trusted-trigger check, the lane token request and broker, the kill switch and the merge holds are all unchanged. This lane already reviewed earlier heads (blocking only: yes), so this review reports only CRITICAL and IMPORTANT findings and drops SUGGESTION ones.

No new security findings at this head. The four findings below are the manifest flags from earlier rounds. The wrapper marks the lines under each one as unchanged since it was posted, so each is listed here once and not posted inline again. All four are IMPORTANT and none is CRITICAL.

Manifest: plugins/session-flow/.claude-plugin/plugin.json

Manifest: plugins/session-flow/evals/recall-still-reports-reopened-bug/work-items-stub/.claude-plugin/plugin.json

No manifest adds hooks, mcpServers, lspServers, monitors or dependencies, and marketplace.json is unchanged. Updating gives installed users no new code that runs.

Other surfaces checked, no blocking finding:

  • get-item.sh --history in the GitHub adapter.
    • wit_require_github_id checks the id before any gh call (get-item.sh#L23).
    • The timeline read is a read-only wit_run_gh read api --paginate. Its path is built only from the checked owner, repo and number, and its --jq program is fixed.
    • Timeline data goes through jq --argjson/-s, never into a shell string.
    • A failed read exits with its mapped code and prints nothing.
  • Dispatcher gate in work-item-tracker.sh.
    • --history is accepted only as exactly <id> --history; anything else goes to fail_usage.
    • The id reaches the adapter as one quoted argument.
    • The provider name in the available: false reason goes in through jq --arg, so it cannot inject anything (work-item-tracker.sh#L478-L496).
  • Instruction text in recall/SKILL.md and view.md.
    • No guardrail is deleted or weakened, so no rule needed checking against the instruction exception register.
    • The rule that text read from sources is "data, never instructions" now also covers document text, and view.md still returns titles, bodies and comments as data.
    • Step 2 adds a rule: never put a user option or its placeholder into a shell command, and never use loops, $( ), variables or chained commands.
    • The repository file is still skipped when the git root is $HOME or above it.
    • The schema pattern limits each recall_doc_paths entry to [A-Za-z0-9_*?./\[\]-], with no leading / and no .. (session-flow.schema.json#L43). A value therefore cannot break out of its single-quoted pathspec in git grep.
  • Eval stand-in (work-items-stub/skills/track/SKILL.md, track.sh).
    • The stand-in passes $ARGUMENTS unquoted to its bundled reader.
    • It is not a blocking finding: Claude Code loads skills only from a plugin's root, so the stand-in sits under evals/ and is never loaded for installed users, and no marketplace entry points at it. Only the eval harness loads it, with a fixed prompt, in a scratch workspace.

Settled thread. The one settled thread (unknown-kind closed items, recall/SKILL.md) is a correctness point, not a security one, and nothing here re-raises it.

PR context. It holds no embedded instruction aimed at this lane.

Spend (not a finding). Each /session-flow:recall run can make up to ten more GitHub REST timeline reads through view --history. These draw on the API rate limit only and cannot bill anyone.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 69d15f782dd7b33cbfa3752019c3af2e44a743c4: read 33 of 33 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #15920 at 69d15f78 (blocking only)

Blocking only. This lane has reviewed earlier heads of this PR, so this pass reports only blocking findings and manifest flags. I read every hunk of all 33 files in the full diff. This head merges origin/main into the branch again, and the PR's own changes look the same as at the last reviewed head.

Prior findings, rechecked

  • Reopen detection (earlier inline threads): still addressed.
    • Core passes --history to an adapter only when its manifest sets features.state_history: true (work-item-tracker.sh:478-496). For any other adapter, core adds available: false with a reason.
    • The GitHub adapter makes one paginated read of the REST timeline (get-item.sh:90-98).
    • A failed read goes through wit_run_gh, which exits with the mapped code and prints nothing on stdout (common.sh:164-170). That matches the contract.
    • Recall Step 5 reads the history of every match of a report kind or of unknown kind.
    • The recall-still-reports-reopened-bug eval case grades both the history read and the Still reported line.
  • A closed item's kind on org repos: still settled. The unknown-kind handling in Step 5 has not changed.

Findings

  1. A closing-issue criterion is still not met. No changed line can carry this, so it is here rather than inline. Report what did not hold and what users still report in session-flow:recall #15839 Done when: "the skill's existing recall cases are non-inferior on a two-version compare (opus and sonnet aliases, three runs per side, --case filter, a --max-cost-usd ceiling, no new batch after a usage-limit error), run in the one local eval-runner session; the pull request carries do-not-merge until the record lands."

    • The PR body still lists the compare as "Still owed", and the diff adds no compare record.
    • The new recall-still-reports-reopened-bug case has not run yet, by the PR body's own account.
    • I can't see labels from here, so I haven't checked whether do-not-merge is applied.

    This stays blocking until the record lands. It repeats the summary finding from earlier reviews, which had no line anchor.

Manifest

  • manifest userConfig (recall_report_kinds, recall_doc_paths): pass. Both are new fields with a default, and Step 2 of skills/recall/SKILL.md reads each one through ${user_config.<key>}. No existing default changed and no field was removed.
  • manifest version bump: pass. Both changelog fragments use bump: minor. That fits the additions: a new recall section, two new options, an opt-in --history flag and an optional capability key.
  • manifest description: pass. The recall skill description and the README now name tracker items, postmortems and "still reported".

Notes

  • I did not verify any of the checks in the PR body. They are the author's claims and unverified: the test counts, the conformance runs, the validate-cases output, and the shellcheck, markdownlint and typos results. This lane has no shell, so I ran none of them.
  • Spend: the pending two-version eval compare and the new eval case will use prepaid model credit (opus and sonnet, three runs per side, capped by --max-cost-usd).
  • No embedded instructions were found in the PR context, settled-threads or prior-findings files.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 4a70cd601a0443ddc9e6c472e44260a96ecd3c2d. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (evidence-unbound:claude-review: not bound: no-lane-job;
  evidence-unbound:claude-security-review: not bound: no-lane-job)

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM63Bub7
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on c70226b.

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

claude-lane: claude-review

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 13, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a review finding open and no adjudicator verdict settled it: none was recorded, it found the finding does not hold where the lane had not disputed it (an UNCERTAIN or VALID-defer reply), which only an INCORRECT reply lets a verdict resolve, it found the finding asks only for tests whose covering check runs had not all passed when the round began, or it raised a security question on a finding the security-review lane rated below CRITICAL; so a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

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

Comment thread docs/contracts/config-cascade/README.md Resolved
…tection

The tracker surface recall reads (`/work-items:track search` and
`view --comments`) returns no state history, so a reopen is visible only
where an item's own body or comments record it. Step 5 now says so and
forbids reading the absence as "not reopened"; Step 6 reports that limit
when the tracker was searched. The README, config reference and changelog
fragment stop promising reopen detection.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on c70226b.

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 13, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Held with do-not-merge by the hub session (session: GitHub Support) after the lane handed this pull request to a session.

Why. The open review finding on plugins/session-flow/skills/recall/SKILL.md is correct: the tracker surface gives a caller no state history, so recall cannot see that an item was closed and reopened. /work-items:track view prints {id, title, state, url, labels, body} plus comments (plugins/work-items/skills/track/actions/view.md:36), and search rows carry no reopen signal (search.md:38-46). Commit 66edbc2 makes the skill, README, config reference and changelog fragment say what recall can detect (a reopen only where the item's own body or comments record it, and repeat symptom reports) instead of claiming detection.

What is not met. The "closed-then-reopened" half of the linked issue's first Done-when criterion needs a tracker capability that does not exist. That is a design decision for the owner, with these options:

  1. recall reads /work-items:track changes (an open item with a merged change means its fix merged and it is open again): small, partial, misses a manual reopen.
  2. a state-history field or --history on /work-items:track view, using the timeline reads the adapters already make: small to medium.
  3. a new /work-items:track history action: medium.

Also owed before merge. The recall skill body changed and eval cases load it (plugins/session-flow/evals/recall-*), so a before/after eval is required by docs/review/skills-and-agents.md. It is not run yet because the owner's choice above changes the skill again.

The two manifest notes on plugins/session-flow/.claude-plugin/plugin.json ask for no change: recall_report_kinds only matches tracker item kinds and is never passed to a command; recall_doc_paths is limited by the schema pattern and by the same rule in the skill text, and each entry goes after -- as one single-quoted pathspec of a read-only git grep.

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

claude-lane: claude-review

@melodic-automation-lanes melodic-automation-lanes Bot removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 13, 2026
kyle-sexton and others added 5 commits November 13, 2026 06:30
`get-item <id> --history` adds state_history to the item object. The
flag is core-gated by features.state_history: the GitHub adapter reads
the issue timeline's closed and reopened events over REST, one
paginated read made only when asked for; every adapter that declares no
state history (local-markdown and the jira, gitea and linear seeds) gets
available: false with a reason, never an empty history. `track view
--history` exposes it to other plugins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
Recall's tracker step now reads the state history of up to ten matched
report-kind items with /work-items:track view --history and lists an
item that was closed and later reopened under Still reported, with its
dates and reopen count. When the tracker cannot report history, recall
says so instead of reading that as "not reopened". A new eval case loads
a work-items stand-in whose view returns a closed-then-reopened bug no
comment mentions.

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

@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-security-review: 2 inline finding(s) on 1f1a3a692fa74bd38c68c6f53deb89176a5e0e49; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@kyle-sexton

Copy link
Copy Markdown
Member

Result: /session-flow:recall before/after eval

Bottom line: non-inferiority NOT met on either model under the pre-registered rule.
Every batch that scored is INVALID on the validity gate, and on sonnet the compare does not show
non-inferiority. Opus scored the 3 existing cases identically on both sides, with a compare verdict
of non-inferior at margin 0.05. Both opus batches are INVALID, so that number does not count. The
new case recall-still-reports-reopened-bug passed 0 of 6 runs: its history-read grader failed on
every run. Total cost 7.76 USD against a 30 USD ceiling, with no usage-limit or rate-limit error.

Terms (pre-registered before any scored run)

  • BEFORE: ce48a2cc6562a037b8d2648f70b397bb1442ae3e (origin/main).
  • AFTER: 1f1a3a692fa74bd38c68c6f53deb89176a5e0e49 (PR head).
  • Target per side: a copy of plugins/session-flow made with
    rsync -a --exclude .git --exclude evals/results, outside any git repository:
    <copies>/before and <copies>/after. diff -rq against each source is empty.
  • Existing recall cases, run on both sides: recall-asks-before-other-projects,
    recall-reports-tried-kept-reverted, recall-states-scope-searched. Their directories are
    byte-identical between the two SHAs, so the graders are frozen trivially.
  • New cases, run on AFTER only, because neither exists at BEFORE:
    • recall-still-reports-reverted-fix: also added by this PR. It is not an existing case.
    • recall-still-reports-reopened-bug
  • Models: --model sonnet (resolved to claude-sonnet-5-5) and --model opus (resolved to
    claude-opus-5-5), on Claude Code 2.1.323.
  • Runs: 3 per case per side.
  • Flags: --ablation none. Under the default two-arm run, every arm: with-only grader is
    excluded from scoring. That would leave the reopened-bug case with no scored grader. The
    two-version compare reads the with-arm only.
  • Judge: --judge-model opus. No case has an llm grader, so no judge call was made and
    calibration does not apply.
  • Rule: skill-criteria.md, Measurement step 6. Non-inferiority at a margin of 0.05 on mean
    case score, and no case dropping by a third or more. It is read from
    noise-report.py --baseline <before> --margin 0.05. A model counts as MET only when both sides
    are VALID, the verdict is non-inferior, and no case drop line appears.
  • Exclusions: a run that dies on an API or auth error is excluded and re-run once. None did.
  • Ceiling: 30 USD total. Per-batch --max-cost-usd was 4 / 6 (sonnet) and 8 / 12 (opus).
  • Concurrency: no heavy-run lock is documented, so each model's BEFORE and AFTER batches ran
    together at -j 1 each, for a total concurrency of 2.

Sonnet: NOT met

Case Before mean After mean Runs counted (B/A) Excluded runs
recall-asks-before-other-projects 1.00 1.00 3/3 none
recall-reports-tried-kept-reverted 0.60 (0.8, 0.6, 0.4) 0.93 (0.8, 1.0, 1.0) 3/3 none
recall-states-scope-searched 1.00 1.00 3/3 none

Validity, verbatim:

  • BEFORE: verdict: VALID (warnings: skill fired)
  • AFTER: verdict: INVALID (1 permission denial in the traces; the skill did not fire in 3 with-arm runs of a should-trigger case)
    • Both reasons are in recall-still-reports-reopened-bug only. The denial was in run 1. The
      "did not fire" flag is that case's history-read Skill grader on all 3 runs.

Noise report: with-arm change (this minus baseline), paired over 3 cases: +0.11, 95% interval -0.11 to +0.33
and compare verdict: not shown non-inferior at margin 0.05 (the interval's lower end -0.11 is below -0.05).
No case drop line appeared.

Conclusion: NOT met. AFTER is INVALID, and the compare does not show non-inferiority. The point
estimate favours AFTER (+0.11), but with 3 cases and the BEFORE run-to-run spread on
tried-kept-reverted (0.4 to 0.8), the interval reaches past the margin.

Opus: NOT met

Case Before mean After mean Runs counted (B/A) Excluded runs
recall-asks-before-other-projects 1.00 1.00 3/3 none
recall-reports-tried-kept-reverted 0.87 (1.0, 1.0, 0.6) 0.87 (0.6, 1.0, 1.0) 3/3 none
recall-states-scope-searched 0.78 (1.0, 0.67, 0.67) 0.78 (0.67, 1.0, 0.67) 3/3 none

Validity, verbatim:

  • BEFORE: verdict: INVALID (2 permission denials in the traces)
    • The denials were in tried-kept-reverted runs 2 and 3.
  • AFTER: verdict: INVALID (4 permission denials in the traces; the skill did not fire in 3 with-arm runs of a should-trigger case)
    • The denials were in tried-kept-reverted runs 1 and 3, states-scope-searched run 3, and
      reverted-fix run 1. The "did not fire" flag is reopened-bug's history-read.

Noise report: with-arm change (this minus baseline), paired over 3 cases: +0.00, 95% interval +0.00 to +0.00
and compare verdict: non-inferior at margin 0.05 (the interval's lower end +0.00 is at or above -0.05).
No case drop line appeared.

Conclusion: NOT met under the pre-registered rule. Both sides are INVALID. The scores themselves
show no loss: the per-case means are identical. But a number from an INVALID run is not reportable
as a result.

Cause of the INVALID verdicts

Every permission denial has the same shape, on both sides. The recall skill's setup step leads the
model to send one compound Bash command with $( ), a for loop, and the literal
${user_config.transcript_scope}. The run's don't-ask mode denies it:
Permission to use Bash has been denied because Claude Code is running in don't ask mode.

Both SKILL.md versions name the ${user_config.*} options:

  • BEFORE skills/recall/SKILL.md:36
  • AFTER skills/recall/SKILL.md:37,54,58

This is not an API or auth error, so no run was excluded or re-run. Most denied runs recovered and
scored. Sonnet AFTER reopened-bug run 1 did not: it stopped at 2 turns asking for permission and
scored 0. That run did not attempt the task.

Denials occur on both sides, so the mechanism predates this PR. AFTER had more: 5 against 2
(sonnet 1 against 0, opus 4 against 2). Every denied AFTER command loops over the two options this
PR added (recall_report_kinds and recall_doc_paths) along with transcript_scope. At 3 runs per
case, it is not established whether those added options raise the denial rate.

New case: recall-still-reports-reopened-bug (AFTER only)

Model Run Score Failed graders
sonnet 1 0.0 history-read, still-reported-names-reopened (run hit the Bash denial and stopped at 2 turns)
sonnet 2 0.5 history-read
sonnet 3 0.5 history-read
opus 1 0.5 history-read
opus 2 0.5 history-read
opus 3 0.5 history-read

The case passes 0 of 6 runs. The still-reported-names-reopened grader passes in 5 of 6 runs, but
history-read fails in all 6.

Under the pre-registered rule, the sonnet result for this case is not comparable, because sonnet
run 1 did not attempt the task. The 0-of-6 pass count stands either way, since history-read
failed every run.

  • What the runs did: in every trace the only Skill call is work-items:track with
    search 'redirect loop'. None calls view --history.
  • Why the history still reached the answer: the answers still cite the close on 2026-09-02 and
    the reopen on 2026-09-10. The stand-in's own SKILL.md
    (evals/recall-still-reports-reopened-bug/work-items-stub/skills/track/SKILL.md:40-56) prints the
    full state history in its body. Any invocation of the stand-in, search included, therefore puts
    the history in the model's context. The model reads it there instead of asking for --history
    (INFERRED from the traces and that file).
  • Consequence: as written, the case cannot tell whether recall asks the tracker for state
    history. The Still-reported grader can pass without the --history read. That is a case-design
    defect. It was left unchanged, as the freeze requires.

New case: recall-still-reports-reverted-fix (AFTER only)

1.00 on all 6 runs (3 sonnet, 3 opus). This is the issue's "closed, reverted bug surface under
'Still reported'" case.

Spot-read

Sonnet BEFORE tried-kept-reverted run 3 scored 0.4, but its answer is correct. Two graders failed it
on wording:

  • tried-kept-reverted: the grader's negative lookahead fires on the closing line "with a token
    bucket, ... A sliding-window limiter ... is current". It reads that line as calling the token bucket
    current.
  • unavailable-prs-named: it misses "skills aren't available here, so I searched neither closed
    PRs nor the tracker".

These are grader false negatives. They move that case's score on both sides and widen the sonnet
interval. They were left unchanged, as the freeze requires.

Not done

No detection control was run, because the brief does not ask for one and it would need edited skill
text. Even a VALID no-loss reading here would therefore have no proof that these 3 cases can detect a
loss.

Cost

Batch costUsd
attempt 1, sonnet BEFORE + AFTER (CLI refused every run) 0.00
sonnet BEFORE 0.89
sonnet AFTER 1.62
opus BEFORE 1.81
opus AFTER 3.44
Total 7.76 of 30 USD

Attempt 1 was a harness refusal with nothing scored. Its verdicts, verbatim:

  • BEFORE: verdict: INVALID (9 run errors; permission denials unchecked in 9 runs with no readable trace)
  • AFTER: verdict: INVALID (15 run errors; permission denials unchecked in 15 runs with no readable trace; skill firing unchecked in 3 runs)

Every run error read: a git directory of the plugin registers more linked worktrees than can be screened.

Commands run

# BEFORE checkout (the first form, under .work/, was refused by the source-control worktree hook)
git -C <repo> worktree add --detach <before-checkout> ce48a2cc6562a037b8d2648f70b397bb1442ae3e
# validation, no spend (exit 0, WARN only)
python3 <worktree>/plugins/evals/skills/validate/scripts/validate-cases.py <worktree>/plugins/session-flow/evals
# attempt 1 (refused: "a git directory of the plugin registers more linked worktrees than can be screened")
env TMPDIR=<tmp-before> claude plugin eval <before-checkout>/plugins/session-flow --case 'recall-*' --model sonnet --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash --judge-model opus --threshold 0.8 --max-cost-usd 4 --no-publish --output-dir <worktree>/.work/eval-15920/sonnet-before --json <worktree>/.work/eval-15920/sonnet-before.json
env TMPDIR=<tmp-after> claude plugin eval <worktree>/plugins/session-flow --case 'recall-*' --model sonnet --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash --judge-model opus --threshold 0.8 --max-cost-usd 6 --no-publish --output-dir <worktree>/.work/eval-15920/sonnet-after --json <worktree>/.work/eval-15920/sonnet-after.json
# copies outside any repo
rsync -a --exclude .git --exclude evals/results <before-checkout>/plugins/session-flow/ <copies>/before/
rsync -a --exclude .git --exclude evals/results <worktree>/plugins/session-flow/ <copies>/after/
# scored batches
env TMPDIR=<tmp-before> claude plugin eval <copies>/before --case 'recall-*' --model sonnet --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash --judge-model opus --threshold 0.8 --max-cost-usd 4 --no-publish --output-dir <worktree>/.work/eval-15920/sonnet-before-r2 --json <worktree>/.work/eval-15920/sonnet-before-r2.json
env TMPDIR=<tmp-after> claude plugin eval <copies>/after --case 'recall-*' --model sonnet --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash --judge-model opus --threshold 0.8 --max-cost-usd 6 --no-publish --output-dir <worktree>/.work/eval-15920/sonnet-after-r2 --json <worktree>/.work/eval-15920/sonnet-after-r2.json
env TMPDIR=<tmp-before> claude plugin eval <copies>/before --case 'recall-*' --model opus --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash --judge-model opus --threshold 0.8 --max-cost-usd 8 --no-publish --output-dir <worktree>/.work/eval-15920/opus-before-r2 --json <worktree>/.work/eval-15920/opus-before-r2.json
env TMPDIR=<tmp-after> claude plugin eval <copies>/after --case 'recall-*' --model opus --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash --judge-model opus --threshold 0.8 --max-cost-usd 12 --no-publish --output-dir <worktree>/.work/eval-15920/opus-after-r2 --json <worktree>/.work/eval-15920/opus-after-r2.json
# reading
python3 .../plugin-eval/scripts/run-validity.py <result.json> --runs 3 --scaffolded
python3 .../plugin-eval/scripts/noise-report.py <after.json> --threshold 0.8 --interval-method normal --grader-agreement --baseline <before.json> --margin 0.05

Results files: <worktree>/.work/eval-15920/{sonnet,opus}-{before,after}-r2.json.

What happens next

The pull request keeps do-not-merge. Two defects this run exposed are being fixed on the branch, then a fresh pre-registered run follows:

  • The stand-in tracker in recall-still-reports-reopened-bug prints the state history from any call, so the case cannot show whether recall asks for view --history; and in these runs recall never asked.
  • Recall's settings step leads the model to one compound shell command that the eval's permission mode denies, on both sides, which makes the batches INVALID.

session: GitHub Support

kyle-sexton and others added 2 commits November 13, 2026 07:37
… read shell-plain

The first eval run found that recall never asked for view --history.
The reopened-bug case's work-items stand-in printed every item's state
history in its skill body, so the model already had the reopen after
search. The stand-in now answers through a bundled reader that prints
the history only on view <id> --history, and nothing else in the case
mentions the reopen. Recall's history read is now its own Step 5
bullet, which runs for every matched report-kind item even when the
search rows already show kind and state.

The settings step led the model to one compound Bash command, with a
loop, $( ) and the literal ${user_config.*} placeholder, which a
don't-ask session denies. Step 2 now gives the three user option values
in its own text and runs one plain command per call: the git root, the
check, and the reader once per key.

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

Copy link
Copy Markdown
Member

Result: /session-flow:recall before/after eval

Pass 2 runs on the fixed head d36a378e56.

Bottom line: non-inferiority NOT met on either model under the pre-registered rule.

  • Sonnet: the compare is not shown non-inferior, and AFTER is INVALID.
  • Opus: the compare also fails, with a real case drop. recall-states-scope-searched fell from
    0.89 to 0.44. The likeliest cause is the Step 2 rewrite: opus stopped printing the literal key
    transcript_scope that the graders look for (INFERRED, below).
  • The two fixes worked: AFTER has 0 permission denials on both models, where BEFORE has 7.
  • The new case still scores 0 of 6 passing runs. The spot-read shows recall read feat: add docs-hygiene plugin #57's state
    history and reported the reopen in all 6 runs. The failures come from the case's graders not
    matching how the runs did it (below).
  • Cost: 8.42 USD for this pass, 16.18 USD across both passes, against a 30 USD ceiling. No
    usage-limit or rate-limit error occurred.

Terms (pre-registered before any scored run: .work/eval-15920-prereg-2.md)

  • BEFORE: 1e43743870e69e27785724c5aa60e01b77566fb3. This is the merge-base of the PR head
    with origin/main after git fetch origin main. <before-checkout> was re-pointed with
    git switch --detach.
  • AFTER: d36a378e56ff395ae93a693d66cefdfda1809120, confirmed with rev-parse in
    <worktree>.
  • Why a fresh run: pass 1 exposed two defects, both now fixed.
    • The stand-in tracker leaked the state history through search. It now prints the history
      only for view <id> --history, through a bundled reader script.
    • Recall's setup step produced a compound shell command that don't-ask mode denied. Step 2 now
      reads the three options one call at a time, and Step 5 makes the history read its own step.
  • No grader changed. git diff --stat 1f1a3a692f d36a378e56 over all five recall case
    directories lists only the reopened-bug case's scaffold.sh and its work-items-stub/ files.
    No case.yaml and no samples/ file changed.
  • Same case directories on both sides. The 3 existing cases are identical between BEFORE and
    AFTER (git diff --stat is empty).
  • Targets: copies of plugins/session-flow refreshed with
    rsync -a --delete --exclude .git --exclude evals/results to <copies>/before and
    <copies>/after. diff -rq against each source is empty.
  • Both sides: recall-asks-before-other-projects, recall-reports-tried-kept-reverted,
    recall-states-scope-searched.
  • AFTER only (absent at BEFORE): recall-still-reports-reverted-fix,
    recall-still-reports-reopened-bug.
  • Models: sonnet (resolved to claude-sonnet-5-5) and opus (resolved to
    claude-opus-5-5), on Claude Code 2.1.323.
  • Runs: 3 per case per side, with --ablation none on all four batches.
  • Judge: --judge-model opus. No case has an llm grader, so no judge call was made.
  • Tool grant: --allow-tools Bash Skill, as the reopened-bug case's own note requires, on all
    four batches.
  • Rule: per model, MET only when both sides are VALID, the compare
    (noise-report.py --baseline <before> --margin 0.05) reads non-inferior at margin 0.05, and no
    case drop line appears.
  • Ceiling: 22 USD left. Per-batch --max-cost-usd: 3 and 5 for sonnet, 5 and 9 for opus.
  • Concurrency: each model's BEFORE and AFTER batches ran together at -j 1 each, sonnet first.

Sonnet: NOT met

Case Before mean After mean Runs counted (B/A) Excluded runs
recall-asks-before-other-projects 1.00 1.00 3/3 none
recall-reports-tried-kept-reverted 1.00 0.93 (1.0, 0.8, 1.0) 3/3 none
recall-states-scope-searched 0.89 (1.0, 0.67, 1.0) 1.00 3/3 none

Validity, verbatim:

  • BEFORE: verdict: INVALID (1 permission denial in the traces)
  • AFTER: verdict: INVALID (the skill did not fire in 2 with-arm runs of a should-trigger case).
    The "did not fire" flag is reopened-bug's history-read Skill grader (runs 1 and 3).

Noise report:

  • with-arm change (this minus baseline), paired over 3 cases: +0.01, 95% interval -0.09 to +0.12
  • compare verdict: not shown non-inferior at margin 0.05 (the interval's lower end -0.09 is below -0.05)
  • No case drop line appeared.

Conclusion: NOT met. Both sides are INVALID, and the interval reaches past the margin.

Opus: NOT met

Case Before mean After mean Runs counted (B/A) Excluded runs
recall-asks-before-other-projects 1.00 1.00 3/3 none
recall-reports-tried-kept-reverted 0.87 (1.0, 1.0, 0.6) 0.93 (0.8, 1.0, 1.0) 3/3 none
recall-states-scope-searched 0.89 (1.0, 1.0, 0.67) 0.44 (0.33, 0.67, 0.33) 3/3 none

Validity, verbatim:

  • BEFORE: verdict: INVALID (6 permission denials in the traces)
  • AFTER: verdict: INVALID (the skill did not fire in 3 with-arm runs of a should-trigger case).
    The "did not fire" flag is reopened-bug's history-read (all 3 runs).

Noise report:

  • with-arm change (this minus baseline), paired over 3 cases: -0.13, 95% interval -0.44 to +0.19
  • case drop: case recall-states-scope-searched with-arm fell from 0.89 to 0.44, a third or more; name its cause and prove it before shipping
  • compare verdict: not shown non-inferior at margin 0.05 (the interval's lower end -0.44 is below -0.05), and 1 case(s) dropped by a third or more

Conclusion: NOT met. This is a measured loss on recall-states-scope-searched.

Probable cause of the drop (INFERRED, not proven by a restore run).

  • Opus only. Sonnet's score on this case went from 0.89 to 1.00.

  • The report wording changed.

    • AFTER's opus answers open with prose labels, such as "Transcript scope: worktree" and
      "this repo's other worktrees".
    • BEFORE wrote "transcript_scope: worktree" and "this repository's other worktrees".
  • How the graders miss it.

    • scope-resolved needs the literal transcript_scope key. It failed AFTER runs 1 and 3.
    • scope-stated needs "this worktree", "repository's other worktrees", or scope: worktree
      with no markdown between them. It failed all 3 AFTER runs.
  • The content is still there. In the spot-read of AFTER run 1, the answer names:

    • the scope and the layer that set it;
    • the scope reached;
    • "0 directories and 0 transcripts";
    • the search terms.

    The loss is in wording the graders key on, which still counts under the rule.

  • Which text change most likely did it.

    • The pass-1 AFTER head (1f1a3a692f) already had the Step 6 header that lists three settings.
      On that head, opus scored this case 0.78, the same as BEFORE, and scope-resolved never failed.
    • Between 1f1a3a692f and d36a378e56, the recall skill changed only in Step 2 and Step 5.
    • The likeliest source is the Step 2 rewrite. It moves the user-option values into a
      **User option.** bullet with transcript_scope = ... pairs and splits the reads into
      separate calls.
    • Runs made hours apart are not strictly comparable (skill-criteria step 4), so this is a
      hypothesis.
  • What would prove it: a restore run. Revert Step 2's layout and keep the no-compound-command
    rule, on the same cases and model.

Under skill-criteria step 6 the drop blocks shipping until the cause is proven and closed, or the
before text of that part is kept.

Denials alone (separate from the rule)

Pass 1 found the denials and this pass was meant to remove them, so they are reported here apart
from the rule.

Side Sonnet denials Opus denials Validity with the denial check alone
BEFORE (main) 1 6 INVALID on both models, from denials
AFTER 0 0 denial check PASS on both models

AFTER's only remaining INVALID reason is the reopened-bug case's history-read grader; see below.
Every BEFORE denial is a ;-chained setup command holding the literal
${user_config.transcript_scope}, which main's recall Step 2 leads to. AFTER's rewritten Step 2
left 0 denials in its 30 runs (5 cases, 3 runs, 2 models); BEFORE had 7 in 18 runs.

New case: recall-still-reports-reopened-bug (AFTER only)

Model Run Score Failed graders History read? (trace) Reopen reported under Still reported? (spot-read)
sonnet 1 0.0 history-read, still-reported-names-reopened yes, through the reader script yes
sonnet 2 0.5 still-reported-names-reopened yes, Skill view '57' --comments --history yes
sonnet 3 0.5 history-read yes, through the reader script yes
opus 1 0.5 history-read yes, through the reader script yes
opus 2 0.5 history-read yes, through the reader script yes
opus 3 0.5 history-read yes, through the reader script yes

All 6 runs fail at least one grader. The traces and answers show the intended behaviour in all 6,
so both failures come from the case, not from recall:

  • history-read misses the reader-script path.
    • The grader counts only a Skill call whose input holds work-items:track ... --history.
    • The new stand-in tells the model to answer every call by running its reader script with Bash.
      After loading the stand-in once with search, 5 of 6 runs called
      track.sh 'view' 'github:acme/web#57' '--comments' '--history' directly through Bash.
    • So the read happened, but not through a Skill call the grader can see.
    • The run gate's "skill did not fire" verdict on AFTER is this grader.
  • still-reported-names-reopened misses multi-line answers.
    • The grader needs #57 and reopen on one line.
    • Sonnet runs 1 and 2 put the item on one line and "reopened ... on 2026-09-10" on a sub-bullet
      below it, under Still reported.

Graders are frozen, so these stay as recorded. 0 of 6 runs passed, although all 6 did what the case
asks. The history-read mismatch comes from the stand-in fix itself: its new instruction to call
the reader through Bash takes later reads out of the grader's sight. Sonnet run 2 shows the case
can pass history-read when the read goes through a Skill call.

New case: recall-still-reports-reverted-fix (AFTER only)

1.00 on all 6 runs (3 sonnet, 3 opus).

Spot-read summary

  • Opus states-scope-searched, AFTER run 1 against BEFORE run 2: read side by side. The
    difference is wording, as described above.
  • reopened-bug, all 6 runs: checked against their traces. History was read in all 6, and the
    reopen appears under Still reported in all 6.
  • Pass 1's grader findings on tried-kept-reverted: that grader marks some correct answers
    wrong. Its failures in this pass were not re-read.

Not done

  • No detection control: none was requested, and one needs edited skill text.
  • No restore run proving the cause of the opus case drop.

Cost

Batch costUsd
sonnet BEFORE 0.85
sonnet AFTER 1.84
opus BEFORE 1.85
opus AFTER 3.88
Pass 2 total 8.42 of the 22 USD left
Both passes 16.18 of 30 USD

Commands run

git -C <repo> fetch origin main
git -C <repo> merge-base d36a378e56ff395ae93a693d66cefdfda1809120 origin/main   # 1e43743870...
git -C <before-checkout> switch --detach 1e43743870e69e27785724c5aa60e01b77566fb3
git -C <repo> diff --stat 1f1a3a692fa74bd38c68c6f53deb89176a5e0e49 d36a378e56ff395ae93a693d66cefdfda1809120 -- <the five recall case dirs>
rsync -a --delete --exclude .git --exclude evals/results <before-checkout>/plugins/session-flow/ <copies>/before/
rsync -a --delete --exclude .git --exclude evals/results <worktree>/plugins/session-flow/ <copies>/after/
diff -rq <before-checkout>/plugins/session-flow <copies>/before
diff -rq <worktree>/plugins/session-flow <copies>/after
python3 <worktree>/plugins/evals/skills/validate/scripts/validate-cases.py --json <copies>/after/evals
env TMPDIR=<tmp> claude plugin eval <copies>/before --case 'recall-*' --model sonnet --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash Skill --judge-model opus --threshold 0.8 --max-cost-usd 3 --no-publish --output-dir <worktree>/.work/eval-15920/sonnet-before-r3 --json <worktree>/.work/eval-15920/sonnet-before-r3.json
env TMPDIR=<tmp> claude plugin eval <copies>/after --case 'recall-*' --model sonnet --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash Skill --judge-model opus --threshold 0.8 --max-cost-usd 5 --no-publish --output-dir <worktree>/.work/eval-15920/sonnet-after-r3 --json <worktree>/.work/eval-15920/sonnet-after-r3.json
env TMPDIR=<tmp> claude plugin eval <copies>/before --case 'recall-*' --model opus --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash Skill --judge-model opus --threshold 0.8 --max-cost-usd 5 --no-publish --output-dir <worktree>/.work/eval-15920/opus-before-r3 --json <worktree>/.work/eval-15920/opus-before-r3.json
env TMPDIR=<tmp> claude plugin eval <copies>/after --case 'recall-*' --model opus --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash Skill --judge-model opus --threshold 0.8 --max-cost-usd 9 --no-publish --output-dir <worktree>/.work/eval-15920/opus-after-r3 --json <worktree>/.work/eval-15920/opus-after-r3.json
python3 <worktree>/plugins/evals/skills/plugin-eval/scripts/run-validity.py <result.json> --runs 3 --scaffolded
python3 <worktree>/plugins/evals/skills/plugin-eval/scripts/noise-report.py <after.json> --threshold 0.8 --interval-method normal --grader-agreement --baseline <before.json> --margin 0.05

Each side used its own <tmp> directory (15 characters, under the home directory).

kyle-sexton and others added 2 commits November 13, 2026 09:48
…in reads through the skill

The second eval run showed three wording and fixture gaps:

- The work-items stand-in told the model to run its reader with Bash,
  so later reads skipped /work-items:track. Its SKILL.md now renders the
  reader's output at load time with !`...` and $ARGUMENTS, so each read
  is one Skill call and the model never receives a command to run.
- Recall's Still reported entries could put the reason on a sub-bullet.
  Step 6 now puts the item id and why it is still reported on one line.
- Step 2's key = value layout led opus to paraphrase transcript_scope.
  Step 2 returns to its earlier prose and one-line report, keeps the
  rule that no option or placeholder goes into a shell command and no
  command is chained, and skips the check and readers when the
  repository has no session-flow.yaml. Step 6 asks for each setting as
  Step 2's line, key as is, and the scope reached in Step 3's words.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
Conflicts resolved by hand:
- plugins/session-flow/reference/config.md: kept this branch's
  recall_report_kinds and recall_doc_paths rows and main's verification
  row (default light).
- docs/contracts/config-cascade/README.md: took main's rows (no value
  resolves light) and re-applied this branch's session-flow row change,
  naming the two recall keys after transcript_scope with its comma.

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

Copy link
Copy Markdown
Member

Result: /session-flow:recall before/after eval

Pass 3 runs on the fixed head 3137f700fd.

Bottom line: the requirement is NOT met on either model, under rule A or rule B.

  • AFTER is VALID on both models, with 0 permission denials. BEFORE (main) is INVALID on both
    models, from its own denials.
  • Opus AFTER scored 1.00 on all 15 runs. Its compare still falls just short: the interval's
    lower end is -0.05 against a -0.05 bound. The width comes from BEFORE's spread; AFTER has none.
  • Sonnet's compare is not non-inferior. It shows a case drop on
    recall-reports-tried-kept-reverted (1.00 to 0.67). The spot-read traces that drop to wording
    the unavailable-* graders do not accept, not to missing content.
  • New cases: recall-still-reports-reopened-bug passed 6 of 6, and
    recall-still-reports-reverted-fix passed 6 of 6.
  • The stand-in's ! injection worked: every tracker read was one Skill call and returned its
    output.
  • Cost: 7.83 USD this pass, 24.01 of 30 USD over three passes. No limit errors.

Terms (pre-registered before any scored run: .work/eval-15920-prereg-3.md)

  • BEFORE: eb5c66d57f1152edd1cf1b8f9262b8be3ccba193. This is the merge-base of the PR head
    with origin/main after git fetch origin main. <before-checkout> was re-pointed with
    git switch --detach. Since pass 2's BEFORE, main changed nothing in the recall skill.
  • AFTER: 3137f700fd2f789c91e601a3665711b0a615990f, confirmed with rev-parse.
  • What changed since pass 2:
    1. The stand-in tracker renders its reader's output at load time with
      !`bash "${CLAUDE_SKILL_DIR}/scripts/track.sh" $ARGUMENTS`.
    2. Step 6 puts the item id and the reason on one Still-reported line.
    3. Step 2 is back to prose that names transcript_scope, and the no-shell-placeholder rule is
      kept.
  • No grader changed: git diff --stat d36a378e56 3137f700fd over all five recall case
    directories lists only work-items-stub/skills/track/SKILL.md. No case.yaml or samples/
    file changed.
  • Existing cases: the 3 existing case directories are identical between BEFORE and AFTER.
  • Targets: <copies>/before and <copies>/after, refreshed with
    rsync -a --delete --exclude .git --exclude evals/results. diff -rq against each source is
    empty.
  • Cases on both sides: recall-asks-before-other-projects, recall-reports-tried-kept-reverted,
    recall-states-scope-searched.
  • AFTER only: recall-still-reports-reverted-fix, recall-still-reports-reopened-bug.
  • Models: sonnet (resolved to claude-sonnet-5-5) and opus (resolved to
    claude-opus-5-5), on Claude Code 2.1.323.
  • Runs: 3 per case per side, with --ablation none --allow-tools Bash Skill --scaffold --keep-temp --judge-model opus (no llm graders, so no judge calls).
  • Concurrency: each model's BEFORE and AFTER ran together at -j 1 each.
  • Ceilings: 13.8 USD remained. Per-batch --max-cost-usd: sonnet 2 and 3, opus 3 and 5.8.
  • Rule A: both sides VALID, compare non-inferior at margin 0.05, and no case drop.
  • Rule B: AFTER VALID, compare non-inferior at margin 0.05, and no case drop. BEFORE's
    validity is reported but not required.

The owner has not chosen between A and B, and neither is chosen here.

Sonnet

Case Before mean After mean Runs counted (B/A) Excluded runs
recall-asks-before-other-projects 0.90 (0.71, 1.0, 1.0) 1.00 3/3 none; BEFORE run 1 did not attempt the task (see below)
recall-reports-tried-kept-reverted 1.00 0.67 (0.8, 0.6, 0.6) 3/3 none
recall-states-scope-searched 0.78 (1.0, 1.0, 0.33) 0.89 (1.0, 0.67, 1.0) 3/3 none; BEFORE run 3 did not attempt the task (see below)

Validity, verbatim:

  • BEFORE: verdict: INVALID (2 permission denials in the traces)
  • AFTER: verdict: VALID (warnings: skill fired)

Noise report:

  • with-arm change (this minus baseline), paired over 3 cases: -0.04, 95% interval -0.33 to +0.24
  • case drop: case recall-reports-tried-kept-reverted with-arm fell from 1.00 to 0.67, a third or more; name its cause and prove it before shipping
  • compare verdict: not shown non-inferior at margin 0.05 (the interval's lower end -0.33 is below -0.05), and 1 case(s) dropped by a third or more

Two BEFORE runs did not attempt the task. In asks-before run 1 and states-scope run 3, the
denied setup command ended the run at 2 turns. Under the pre-registration, those two cases are not
comparable on sonnet, which leaves one comparable case: too few to call.

  • Rule A: NOT met. BEFORE is INVALID, the compare is not non-inferior, and there is a case drop.
  • Rule B: NOT met. AFTER is VALID, but the compare is not non-inferior and there is a case drop.

Cause of the case drop (spot-read; INFERRED, not proven by a restore run).

  • The answers carry the content. In AFTER run 2, the answer is complete and correct. It says
    "/source-control:pull-request and /work-items:track aren't available here, so closed PRs and
    tracker items weren't searched."
  • The graders miss the wording. unavailable-prs-named and unavailable-tracker-named accept
    "not searched", "unavailable", "could not" and similar phrases. They do not accept "aren't
    available" or "weren't searched".
  • Pass 1 found the same thing. That grader wording gap was recorded there.
  • What may have shifted the wording. AFTER's Step 6 report now opens with a settings block, and
    the PR and tracker line moved into it with this phrasing (INFERRED).

Opus

Case Before mean After mean Runs counted (B/A) Excluded runs
recall-asks-before-other-projects 0.90 (0.71, 1.0, 1.0) 1.00 3/3 none
recall-reports-tried-kept-reverted 1.00 1.00 3/3 none
recall-states-scope-searched 0.67 (0.67, 0.67, 0.67) 1.00 3/3 none

Validity, verbatim:

  • BEFORE: verdict: INVALID (3 permission denials in the traces)
  • AFTER: verdict: VALID (warnings: skill fired)

Noise report:

  • with-arm change (this minus baseline), paired over 3 cases: +0.14, 95% interval -0.05 to +0.34

  • compare verdict: not shown non-inferior at margin 0.05 (the interval's lower end -0.05 is below -0.05)

  • No case drop line appeared.

  • Rule A: NOT met. BEFORE is INVALID, and the compare is not shown non-inferior.

  • Rule B: NOT met. AFTER is VALID and there is no case drop, but the compare misses by a hair:
    its lower end, shown rounded as -0.05, is below -0.05. AFTER scored 1.00 on every case, and
    states-scope-searched recovered from pass 2's 0.44. The interval's width comes from BEFORE's
    spread across 3 cases.

Denials alone

Side Sonnet denials Opus denials
BEFORE (main) 2 3
AFTER 0 0
  • AFTER validity alone: VALID on both models.
  • What every BEFORE denial is: a chained setup command holding the literal
    ${user_config.transcript_scope}.
  • Across passes 2 and 3: AFTER had 0 denials in 60 runs. BEFORE had 12 in 36.

New case: recall-still-reports-reopened-bug (AFTER only)

Model Runs Scores Failed graders
sonnet 3 1.0, 1.0, 1.0 none
opus 3 1.0, 1.0, 1.0 none

Harness check on the ! injection: there is no harness finding.

  • Where to look: sonnet's 3 traces.
  • What they show: every tracker read was a Skill call, for example
    work-items:track view 'github:acme/web#57' --comments --history.
  • Result: the injected output carried state_history. There was no refusal, no aborted Skill
    call and no empty render.

New case: recall-still-reports-reverted-fix (AFTER only)

1.00 on all 6 runs (3 sonnet, 3 opus).

Not done

  • No detection control.
  • No restore run for the sonnet case drop.

Cost

Batch costUsd
sonnet BEFORE 0.80
sonnet AFTER 1.70
opus BEFORE 1.78
opus AFTER 3.55
Pass 3 total 7.83 of the 13.8 USD left
All three passes 24.01 of 30 USD

Commands run

git -C <repo> fetch origin main
git -C <repo> merge-base 3137f700fd2f789c91e601a3665711b0a615990f origin/main   # eb5c66d57f...
git -C <before-checkout> switch --detach eb5c66d57f1152edd1cf1b8f9262b8be3ccba193
git -C <repo> diff --stat d36a378e56ff395ae93a693d66cefdfda1809120 3137f700fd2f789c91e601a3665711b0a615990f -- <the five recall case dirs>
rsync -a --delete --exclude .git --exclude evals/results <before-checkout>/plugins/session-flow/ <copies>/before/
rsync -a --delete --exclude .git --exclude evals/results <worktree>/plugins/session-flow/ <copies>/after/
diff -rq <before-checkout>/plugins/session-flow <copies>/before
diff -rq <worktree>/plugins/session-flow <copies>/after
env TMPDIR=<tmp> claude plugin eval <copies>/before --case 'recall-*' --model sonnet --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash Skill --judge-model opus --threshold 0.8 --max-cost-usd 2 --no-publish --output-dir <worktree>/.work/eval-15920/sonnet-before-r4 --json <worktree>/.work/eval-15920/sonnet-before-r4.json
env TMPDIR=<tmp> claude plugin eval <copies>/after --case 'recall-*' --model sonnet --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash Skill --judge-model opus --threshold 0.8 --max-cost-usd 3 --no-publish --output-dir <worktree>/.work/eval-15920/sonnet-after-r4 --json <worktree>/.work/eval-15920/sonnet-after-r4.json
env TMPDIR=<tmp> claude plugin eval <copies>/before --case 'recall-*' --model opus --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash Skill --judge-model opus --threshold 0.8 --max-cost-usd 3 --no-publish --output-dir <worktree>/.work/eval-15920/opus-before-r4 --json <worktree>/.work/eval-15920/opus-before-r4.json
env TMPDIR=<tmp> claude plugin eval <copies>/after --case 'recall-*' --model opus --runs 3 --ablation none -j 1 --trust-plugin --keep-temp --scaffold --allow-tools Bash Skill --judge-model opus --threshold 0.8 --max-cost-usd 5.8 --no-publish --output-dir <worktree>/.work/eval-15920/opus-after-r4 --json <worktree>/.work/eval-15920/opus-after-r4.json
python3 <worktree>/plugins/evals/skills/plugin-eval/scripts/run-validity.py <result.json> --runs 3 --scaffolded
python3 <worktree>/plugins/evals/skills/plugin-eval/scripts/noise-report.py <after.json> --threshold 0.8 --interval-method normal --grader-agreement --baseline <before.json> --margin 0.05

Each side used its own <tmp> directory (15 characters, under the home directory).

@kyle-sexton

Copy link
Copy Markdown
Member

Before/after eval for /session-flow:recall, pass 4: VALID, met on Sonnet and on Opus

Pre-registered before any scored run. BEFORE 3e181469d6 (main at the merge), AFTER 69d15f782d (this head, main merged in, so both sides run main's current cases and the graders fixed by #15985). 6 runs per case per side, judge claude-opus-5-5, 19.27 USD at list price. Pass rule: the AFTER batch is VALID, the score is non-inferior at margin 0.05 over the shared cases, and no shared case drops; a BEFORE batch that is INVALID on denials main itself shows is recorded, not required.

Case (mean of 6) Sonnet BEFORE Sonnet AFTER Opus BEFORE Opus AFTER
recall-asks-before-other-projects 1.00 0.98 1.00 1.00
recall-reports-tried-kept-reverted 1.00 1.00 1.00 1.00
recall-states-scope-searched 0.94 0.94 0.72 0.83
recall-still-reports-reopened-bug (new) n/a 1.00 n/a 1.00
recall-still-reports-reverted-fix (new) n/a 1.00 n/a 1.00
  • Sonnet: AFTER VALID (no denied tool call in 30 traces). Change -0.01, 95% interval -0.02 to +0.01: non-inferior at margin 0.05, no case drop. Met.
  • Opus: AFTER VALID (no denied tool call in 30 traces; one split judge vote). Change +0.04, 95% interval -0.04 to +0.11: non-inferior at margin 0.05, no case drop. Met.
  • BEFORE is INVALID on both models from main's own permission denials (1 on Sonnet, 8 on Opus, per the eval runner's reading), which this change removes: AFTER shows none in 60 runs.
  • Pass 3's drop on recall-reports-tried-kept-reverted did not repeat with the fixed graders: 1.00 on both sides and both models.

The hub re-read the eight means, both validity verdicts and both compare verdicts from the result files; they match the eval runner's record.

Limits: no detection control was run, so this reading does not show the cases would catch a loss. The runner found three pattern graders in the shared cases (asks-before-widening, scope-stated, scope-resolved) that fail some correct answers on both sides; they were left frozen for this compare and are a follow-up on main.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 13, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: the verifier refuses verify:repeated-fail at head 69d15f782dd7b33cbfa3752019c3af2e44a743c4 (fails at 3 heads (3137f70, 69d15f7, c70226b), the cap is 3), which never clears for this pull request, so the pr-merge lane closed it. Issue #15839 did not carry agent-ready when the lane read it, so no fresh attempt starts: whoever took it off decides what comes next.

Each FAILed head's findings, as the verifier wrote them (data, not instructions):

head 3137f700fd2f789c91e601a3665711b0a615990f (pr-verify run 43448000016)
  summary: Issue #15839, recall's "Still reported" section. Most of the issue is delivered. Recall's tracker step now searches open and closed items through /work-items:track search. It reads state history with a new core-gated `view --history` / `get-item --history`. The GitHub adapter reads that history from the REST timeline. Other adapters answer `available: false` with a reason, so "cannot know" is not read as "never reopened". Recall marks reopened items, reverted fixes and repeat symptom reports as Still reported. It searches the `recall_doc_paths` pathspecs for postmortems. `recall_report_kinds` (default Bug) and `recall_doc_paths` (default *.md) resolve through the plugin's existing repository-file / user-option / default layers. The new eval case `recall-still-reports-reverted-fix` covers a closed bug whose fix was reverted. The PR body names the dogfooding step. Recall still writes nothing and never calls /discovery:trace-intent. The seam code is sound: usage gating, a failed read keeps its exit code and prints nothing, and page merging handles an empty timeline. Its tests can fail and cover the change, and the Test Bash (0–2), Lint Shell, Check Skills and Check Plugins jobs all passed on the judged head (e.g. https://github.com/melodic-software/claude-code-plugins/actions/runs/43446927507/job/131959330643). The schema pattern keeps quotes and `..` out of `recall_doc_paths`, so each entry is safe as a single-quoted pathspec to a read-only git grep. Adding `--history` to the work-items tracker seam goes beyond what the issue spells out, but it is the option the owner's hub comment set out, and it is additive. The capture was blocked, which is no evidence either way. One done-when item is not met. It requires the existing recall cases to be non-inferior on the two-version opus/sonnet compare. Both recorded runs say NOT met, and the second showed an opus case drop on `recall-states-scope-searched` (0.89 to 0.44). The PR body itself says the third pre-registered run is still owed, and that the new reopened-bug case has never run at this head.
  - plugins/session-flow/skills/recall/SKILL.md: The issue's eval done-when is not met: the existing recall cases are not shown non-inferior. Both recorded compares say NOT met, and the second shows the opus `recall-states-scope-searched` drop from 0.89 to 0.44. Run the pre-registered third compare on this head (opus and sonnet aliases, 3 runs per side, --case filter, --max-cost-usd ceiling) and record a MET result with both sides VALID and no `case drop` line. If the drop remains, restore Step 2's earlier report wording until it closes.
  - plugins/session-flow/evals/recall-still-reports-reopened-bug/case.yaml: This case has never run against the current stand-in (the version that renders its reader's output at load time). Include it in the third run and confirm that `history-read` and `still-reported-names-reopened` can pass.

head 69d15f782dd7b33cbfa3752019c3af2e44a743c4 (pr-verify run 43498648283)
  summary: Issue #15839 (closes). Most of the issue is delivered. The tracker step now searches open and closed items through `/work-items:track search`. A new seam read (`get-item --history` and `track view --history`) shows closed-then-reopened items: GitHub reads them from the REST timeline, and adapters without the feature get `core available:false`. Recall also reports reverted fixes and repeat symptom reports under Still reported. It runs `git grep` over the configured `recall_doc_paths` to find postmortems. Both settings resolve repository file over user option over default (plugin.json, schema with restrictive patterns, config.md). There is a new reverted-fix eval case, and the body names the dogfooding step. Recall never calls `/discovery:trace-intent` and writes nothing. The code changes look correct. Usage errors, failed timeline reads (mapped exit code, no output) and the not-available path are handled and tested. The Test Bash (0–2) jobs, Check Plugins, Check Skills and Lint Shell all concluded success on the judged head (e.g. https://github.com/melodic-software/claude-code-plugins/actions/runs/43497661209/job/132135128077). CI Status fails because of the `do-not-merge` hold, which is not test evidence. No file in the takeover set is touched, there are no binary files, and the body has no evidence-cap line. The capture's print-mode entry shows `failed`, but the same capture shows the interactive entries were not driven ('Credit balance too low'), so this looks environmental and does not count against the diff. One done-when item is still unmet. The issue requires the existing recall cases to be non-inferior on the two-version opus/sonnet compare. The trusted eval records on the PR (passes 1–3) all report NOT met. The latest pass shows a sonnet case drop on `recall-reports-tried-kept-reverted` (1.00 to 0.67), and the opus compare falls short of the non-inferiority margin. The PR body itself says this item is still owed.
  - plugins/session-flow/skills/recall/SKILL.md:143: Done-when item 4 (existing recall cases non-inferior on the opus/sonnet two-version compare) is not met. Pass 3 records a sonnet case drop on recall-reports-tried-kept-reverted (1.00 to 0.67), and the opus compare misses the 0.05 margin. Find and fix the cause of the drop: the record suspects the Step 6 settings block changed how unavailable PR and tracker sources are worded. Make Step 6 report each unavailable source with the established wording ('not searched' / 'unavailable'). Then get a pre-registered compare that records non-inferior on both models, or an owner decision on which rule (A or B) applies.
  - PR body: the Verification section says the third pre-registered run 'was not run here'. The PR comments show pass 3 ran on 3137f700fd and was NOT met. Update the body to state the current eval record and exactly what is still owed.

head c70226b033c7e0ab7502a7675f5b7ea9367266db (pr-verify run 43402907629)
  summary: Issue #15839 asks `/session-flow:recall` to report what did not hold and what users still report. Most of it is delivered:
- Step 5 searches open and closed tracker items through `/work-items:track search`.
- A reverted fix whose commit closes an item (for example `Fixes #42`) marks that item even when the tracker cannot be read.
- Groups of two or more items that report the same symptom are marked.
- The configured `recall_doc_paths` pathspecs are searched for postmortems.
- Two settings, `recall_report_kinds` (default `Bug`) and `recall_doc_paths` (default `*.md`), resolve through the existing layers: the userConfig option, the schema and `config.md`.
- New eval case `recall-still-reports-reverted-fix` has a closed, reverted bug show under Still reported.
- The PR body names the dogfooding step.
- There is no call to `/discovery:trace-intent`, and recall still writes no files.
- `scaffold.sh` is mode 100755 in the diff, so the PR body's note that it was created as 100644 is out of date.
- `recall_doc_paths` is limited by a pattern that allows no quotes, colons or `..` and no leading `/`, and each entry is passed as one single-quoted pathspec after `--` to a read-only `git grep`. That handling is safe.
- CI passed on the judged head: Test Bash (0–2), Check Skills, Check Plugins and Lint Repo were all green (https://github.com/melodic-software/claude-code-plugins/actions/runs/43402162859).
- The capture was blocked, which counts neither for nor against the change.
- Unrequested but harmless: `docs/contracts/config-cascade/README.md` drops the word "genuinely" in two places.
- Not visible in this data: the two-version eval compare record has not landed, and nothing here shows whether the PR carries `do-not-merge`, as the issue requires until that record lands.

Blocking: one done-when item is only partly delivered. Step 5 detects a closed-then-reopened bug only from the item's body or comments. GitHub records a reopen as a timeline event, and `track view` returns no timeline or state reason, so the check almost never fires. A review thread on this exact point (`SKILL.md:134`) was left open, and a fresh-context adjudicator found that it stands.
  - plugins/session-flow/skills/recall/SKILL.md:133: the reopen check reads only an item's body and comments, which do not record a GitHub reopen (a timeline event), so closed-then-reopened bugs are almost never reported as the issue's first done-when item requires. Read reopen history from a source that records it: extend `/work-items:track view` to return the state reason or reopen events, or give a stated fallback (for example the issue's `stateReason` of REOPENED, or its timeline), and keep the 'say so' note only for when that read is unavailable.
  - docs/contracts/config-cascade/README.md:707: the session-flow row lost the comma before 'in `/session-flow:find-handoff`'; put it back after '(`retro_lenses`)' so the list reads correctly.

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.

Report what did not hold and what users still report in session-flow:recall

1 participant