Skip to content

fix(session-flow): read the retro's score history with Read alone so eval runs stay valid #16125

Closed

Description

@kyle-sexton

Problem

The session-flow retro skill tells the model to read its score history "if it exists" (plugins/session-flow/skills/retro/context/session.md, the Calibration line, about lines 438-439 on main; the path is defined in skills/retro/SKILL.md:57-58 as ${CLAUDE_PLUGIN_DATA}/scores/<project-slug>.md). The model answers "if it exists" with an ls of the scores directory through Bash, often chained with another command in the same call.

In a claude plugin eval run that grants Bash, CLAUDE_PLUGIN_DATA sits in the run's config directory, which the sandbox makes unreadable, so that call is denied. run-validity.py sets a lone probe of the run's own plugin-data directory aside (plugins/evals/skills/plugin-eval/scripts/run-validity.py:1997-2011) but counts a compound call whose other part it cannot place (:2014-2073). The result file then reads INVALID.

Measured on main at 2cdd1a8cc9 (Sonnet, three re-session-* cases, 6 runs each, auto memory off): 3 counted denials in 18 runs, all of them the score-history probe chained with a second command (ls .work/handoffs, ls "$HOME/.claude/projects"). The same shape produced 1 counted denial in 18 runs on the branch of pull request 15961. No before/after eval of the retro skill can read VALID reliably while this holds.

Outcome

The retro reads its score history in a way the eval validity gate sets aside when the read is denied, so a run of the re-session-* cases on main has no counted denial from the score history.

Done when

  • The retro's instruction reads the score history with the Read tool on its own, never through Bash and never chained with another command, and treats a missing or denied read as "no history". The words "if it exists" no longer invite an existence check through Bash.
  • The append step at the end of the retro (create the directory and file, append this session's scores) is unchanged in behavior outside an eval.
  • A before/after eval of the changed text, per docs/review/skills-and-agents.md, on the three re-session-* cases and the two running-retro cases that read session.md, 6 runs per case per side, judge claude-opus-5-5, with CLAUDE_CODE_DISABLE_AUTO_MEMORY=1: the AFTER file reads VALID with no counted denial that names the scores directory, and the compare shows no loss.
  • No change to run-validity.py and no change to what any eval case is allowed to read.

Out of scope

  • The SESSION_DATA_DIR="$HOME/.claude/projects/..." lookup in SKILL.md:42-52. Pointing it at CLAUDE_CONFIG_DIR would add counted denials in evals.
  • Pull request 15961's own text.

Evidence

Run records and the per-call listing are in the hub session's eval notes for pull request 15961 (run 2, 2026-11-14). The denied call in one trace: ls <sandbox>/config/plugins/data/session-flow-inline/scores/ 2>&1; ls docs/conventions 2>&1.

Activity

  1. added
    needs-triage
    on Nov 14, 2026
  2. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: the session-flow retro's "if it exists" wording for its score history leads the model to run ls through Bash, often chained with another command. In claude plugin eval runs that call is denied and counted, so the result file reads INVALID. The request is to reword the instruction so the history is read with the Read tool alone, with a missing or denied read treated as "no history". run-validity.py and the eval cases' read permissions stay unchanged.

    The outcome and done-when items are exact, so I found nothing that needs an owner decision. I found no open duplicate and no merged pull request that already fixes this. The before/after eval step is checkable in the repository's eval process.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 14, 2026
  4. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"cc9ade804c533dae61b8cb3542924421371e4b76e0dc9367891733500717bba2","body_sha256":"3721305114985a374962a46349f5fe49e008d482d2522aa34deb3f081cfa74a1"}

  5. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor
    No description provided.
  6. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    Pull request #16137 merged with Refs:, so this issue stays open and nothing starts the lane on it again. work-unblock removed status: ready and agent-ready, so the hourly triage sweep sends it back to intake triage. Admission then parks it at status: confirmed for a check of what that pull request left, until a **Decision recorded.** comment says what is left or someone closes it.

  7. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  8. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: merged pull request #16137 names it with Refs: after its newest decision or refinement comment, so its work may already be done: close the issue if it is, or post a comment whose first line is **Decision recorded.** saying what is left, which sends it back through intake. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  9. kyle-sexton commented on Nov 14, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.

    Owner answer, 2026-11-14T20:49:17Z, in the GitHub Support hub session, to the question below: "Go with recommendations." Posted by that session.

    Question (Q151). The third done-when item asks for a before/after eval on the three re-session-* cases and the two running-retro cases, with the after file reading VALID. On main the two running-retro cases (rr-routes-never-codifies, rr-skill-fit-names-owner) read INVALID for the causes tracked in #16172, and the fourth done-when item forbids the changes that would make them valid. Record this issue without them?

    Answer: (a), the recommended option. The issue is recorded on the re-session-* evidence, the two running-retro cases are left out until #16172 is closed (the same rule the owner set for #15935's compare), and this issue closes. Not taken: (b) keep it open behind #16172; (c) a concurrent rerun of the re-session-* cases first.

    Eval record for the score-history change merged in #16137 (9c3bc7fa99). No new run was made. Every after-side file ran on a session-flow plugin copy byte-identical to main's, Claude Code 2.1.325, judge claude-opus-5-5, auto memory off, 6 runs per case; verdicts re-derived by the hub with run-validity.py --runs 6 --scaffolded.

    Side Model Source run Verdict Counted denials
    after, three re-session-* cases Sonnet an earlier compare's main side (0bfd6c0b) VALID 0
    after Opus same VALID 0
    after Sonnet the #15935 compare's main side (b92f682e09) VALID 0
    after Opus same VALID 0
    before (2cdd1a8cc9) Sonnet an earlier compare INVALID 3, the chained score-history probe this issue describes

    Paired compare, Sonnet, noise-report.py --margin 0.05 --threshold 0.8, each after file against the before file: change -0.00 (95% interval -0.00 to +0.00) and +0.02 (-0.02 to +0.07), both non-inferior.

    Limits, stated plainly: the before file is INVALID because of this defect; the two sides ran hours apart; the before text also lacks #16134's wording change. The two running-retro files read INVALID on main (14 and 18 counted denials, none naming the scores directory) and are not part of this record.

    Acceptance criteria for this decision:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    confirmed

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions