Skip to content

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

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16125-43556667415-1
Nov 14, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16125-43556667415-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #16125

Summary

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

The retro session mode's Calibration step said to read the score history "if it exists", which models answered with a Bash ls of the plugin-data scores directory, often chained with a second command; in a claude plugin eval run that directory is denied and run-validity.py counts such a compound denial, so the result read INVALID. The step now says to read the file with one Read tool call of its own (no Bash, no existence check, nothing chained) and to treat a missing file or a denied read as no history, with a one-line reason matching run-validity.py's own_data_denial/own_data_compound behavior. The Score tracking append step, run-validity.py and the eval cases are unchanged.

Remaining work

  • Run the before/after eval the issue's third done-when item names (re-session-* and running-retro cases, 6 runs per case per side, judge claude-opus-5-5, auto memory off) and confirm the AFTER file reads VALID with no counted denial naming the scores directory and the compare shows no loss.

Not verified

  • Before/after claude plugin eval of the three re-session-* cases and the two running-retro cases (6 runs per case per side, judge claude-opus-5-5, CLAUDE_CODE_DISABLE_AUTO_MEMORY=1) per docs/review/skills-and-agents.md: this lane cannot run claude plugin eval (Bash is limited to the lane…
  • Tidy pass 5 (ai-slop:audit fix): the detector script cannot run under this lane's Bash restrictions, so only the rubric was applied by reading the scoped lines; no tells found. Passes 1-3 had nothing to do (markdown only).
  • Build/test: the change is markdown only; no test suite covers this prose, and plugin script tests are left to the PR's CI.
  • git status shows untracked sandbox placeholder files at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) that this run did not create or edit; they are not part of the change.

Fix

  • plugins/session-flow/skills/retro/context/session.md: rewrote the Calibration paragraph under Session health score to read the score history with a lone Read call, treat missing or denied as no history, and state why (the eval gate sets a lone denied call aside but can count a chained one).
  • .changes/session-flow/work-resolve-issue-issue-16125-43556667415-1-c8119a7a.md: new patch changelog fragment (### Fixed) for the session-flow plugin.

Verification

The runner ran each check from the base copy against 6c48c94:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 40 fragments valid (run after the final edit).
  • check-changed-skills: CHECK-SKILL retro PASS, 0 errors, 4 pre-existing warnings (quick.md:56 fresh-eyes, SKILL.md numbered procedure, session.md has no TOC, SKILL.md body length), none introduced by this change.
  • check-affected: 14 passed, 7 skipped, 0 failed over 2 changed files.
  • Read plugins/evals/skills/plugin-eval/scripts/run-validity.py:1997-2029: own_data_denial sets aside a lone denied non-Skill call whose paths are all under the run's plugin-data directory; own_data_compound counts a compound Bash command unless its other parts are placeable, which the new prose…
  • Grep for line citations into retro/context/session.md: only docs/upstream/cursor-pstack.md cites lines 128-322, all above the edit, so none shifted.
  • Fresh-context review subagent over the whole diff: no high or medium findings; two low wording findings (overstated 'counts' claim, ambiguous 'beside it') confirmed against run-validity.py and fixed.
  • Confirmed quick.md only appends to the score history (no read) and SKILL.md:51's existence check concerns ~/.claude/projects, which the issue puts out of scope.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43556667415

Left out: the items under Not verified.

Related

#16125

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #16137 (head 6c48c94)

I found no security issues.

What changed. Two markdown files:

  • plugins/session-flow/skills/retro/context/session.md: the Calibration paragraph under "Session health score" now reads the score history with one Read call. It also says to treat a missing file or a denied read as "no history yet".
  • .changes/session-flow/...md: a new patch changelog fragment.

Checks:

  • Instruction surface. This edits a skill body, so I checked it with the instruction-surface lens. It removes no guardrail. The old text said to read the file "if it exists". The new text says to use one Read call with no Bash, no existence check and nothing chained to it. That makes the step stricter. Treating a denied read as "no history" only skips the trend notes in a report. It does not get around any permission, allowlist or protected class, so none of the protected classes in the exception register are affected.
  • Untrusted input. No new data flow, untrusted input, credential, token, workflow, manifest or userConfig key.
  • Trusted paths. Neither changed file matches a TRUSTED PATHS glob.
  • Merge holds and kill switch. Not touched.
  • Embedded text. I saw no instruction-like text in the PR context file.

Prior findings. This lane had not reviewed this PR before, so this was a full review.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #16137 (head 6c48c94)

No findings. I read every hunk of both changed files.

What changed. The changed paragraph is the Calibration step under "Session health score" in plugins/session-flow/skills/retro/context/session.md. It now tells the model to read the score history (${CLAUDE_PLUGIN_DATA}/scores/<project-slug>.md, from SKILL.md "Paths") with one Read call of its own. There is no Bash existence check and nothing is chained with the read. A missing file or a denied read counts as no history. A patch-level changelog fragment comes with it.

What I checked

  • Wording: The new text keeps the old behaviour, which was to note trends when history exists. It also states the no-history fallback explicitly. That covers the old "if it exists" wording without needing Bash.
  • Other places that read this file: The Score tracking append step (session.md:462) is unchanged and still creates the file on first use. quick.md only appends to the history and never reads it, so this change doesn't need a matching edit there.
  • Where the path comes from: The path comes from SKILL.md:57. The slug is already computed for the session-data root earlier in the flow, so a plain Read call can reach the file.
  • Path-scoped rules: .claude/rules/skill-bodies-state-current-rules.md and .claude/rules/cost-claims.md both apply to the changed skill file. Neither is broken. The new reason sentence describes this repository's own eval validity gate, not an upstream product detail, and the change states no prices or cost figures.
  • Changelog fragment: bump: patch fits a wording fix in skill text. This PR changes no plugin manifest, so no manifest lines apply.

Closing issue. The PR only refers to #16125 ("Refs") and closes no issue. The PR context file has no closing-issue section, so there were no acceptance criteria to check.

Not verified (from the author). The before/after claude plugin eval run, which should show VALID runs with no counted denial on the scores directory, is listed under the PR's "Not verified" and "Remaining work". That run is the only evidence that the new wording fixes the INVALID result. I did not run it either. The changelog and skill checks in the PR description are the author's own reports, and I did not confirm them.

Spend. None. The change is markdown only.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 6c48c948bd70f665eea44bf8b0432356bf59765b, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 6c48c94

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-16137-6c48c948bd70f665eea44bf8b0432356bf59765b, expires on 2026-12-14.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=6c48c948bd70f665eea44bf8b0432356bf59765b rubric=9.0.0 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 9c3bc7f Nov 14, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16125-43556667415-1 branch November 14, 2026 04:55
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 9c3bc7fa99930b22ebf38cfb51f06ef550207d7e; later checks count it verified from this comment.

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.

0 participants