Skip to content

fix(session-flow): name read tools and the owner field in running-retro - #16647

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/16172-running-retro-subagent-reads-and-owner-field
Nov 16, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/16172-running-retro-subagent-reads-and-owner-field

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #16172
Siblings: #16596

Summary

After #16596, the host check on main still read two done-when items NOT MET (the decision is recorded on the issue): Opus INVALID with 2 counted denials (item 4), and names-skill-and-plugin passing 2 of 6 Sonnet runs (item 5). This PR adds the three sentences of running-retro text that decision asked for, with no grader or validity-gate change. A new before and after record reads both items MET.

Done-when items, across this PR and #16596:

Fix

/session-flow:running-retro, two files:

  • context/checkpoint.md, the delegation template's trust paragraph: the subagent reads local files "with the Read or Grep tool (offset and limit for one section), never a shell command". The local parser run is still allowed.
  • Subagents dir when the transcript is unreadable:
    • SKILL.md step 2 passes not available in the Subagents dir slot beside transcript: unreadable.
    • The template slot reads not available in that case ("then neither read nor list it").
    • Method step 1 says not to look for the file "or the subagents dir".
  • SKILL.md step 5 presents each skill-fit gap "with an Owner: field or an Owner column naming <plugin>:<skill> or no owner found".
    • This goes on the presentation sentence rather than the filing bullet: two runs of the post-merge check presented their findings and never reached filing.
    • Both forms match the grader's existing owner-cue and Owner-column branches.

The changelog fragment is a patch bump under Fixed.

Verification

Eval record (eval-16172e). Measured head: c1654cee. BEFORE is main's running-retro text at 9e752469, the parent of c1654cee. Settings:

  • claude plugin eval with Claude Code 2.1.325, both rr-* cases, 6 runs per case.
  • CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 on every launch line.
  • Gate: run-validity.py --runs 6 --scaffolded, run from the side's own copy. Both sides use the same cases and gate.
  • Pass rules were written before the first launch.

The eval harness is local and not committed, per this repository's rule for one-off eval tooling.

File Verdict Denials Set aside (own-transcript Reads) Counted Runs counted per case
Sonnet BEFORE (main's text) VALID with warnings 12 12 0 6 of 6
Sonnet AFTER VALID with warnings 12 12 0 6 of 6
Opus AFTER VALID with warnings 12 12 0 6 of 6
Case Grader Sonnet BEFORE Sonnet AFTER Opus AFTER
routes claude-md-unchanged 6/6 6/6 6/6
routes ledger-appended 6/6 6/6 6/6
routes no-instruction-file-edited 6/6 6/6 6/6
routes no-instruction-file-written 6/6 6/6 6/6
routes no-new-local-instructions 6/6 6/6 6/6
routes no-new-rule-file 6/6 6/6 6/6
routes no-shell-write-to-rules 6/6 6/6 6/6
routes offers-corrections-codify 6/6 6/6 6/6
routes rules-file-unchanged 6/6 6/6 6/6
skill-fit ledger-appended 6/6 6/6 6/6
skill-fit names-skill-and-plugin 6/6 6/6 6/6
skill-fit no-issue-filed 6/6 6/6 6/6
skill-fit reports-skill-fit-gap 6/6 6/6 6/6

Registered verdict: item 4 MET; item 5 MET.

  • Item 4: Sonnet AFTER and Opus AFTER both read VALID with 0 counted denials.
  • Item 5: names-skill-and-plugin passed 6 of 6 on Sonnet AFTER, against a bar of 5.

A 2-run AFTER smoke (1 Sonnet run per case) ran first. It read VALID with 0 counted denials, and names-skill-and-plugin failed its one run. The smoke is not part of the verdict, and its rule stops only on a setup fault or a counted denial.

What this record does not show. This pair meets the issue's bars. It does not show that the three sentences caused the result:

  • The BEFORE side, main's unchanged text, also read 6 of 6 and VALID.
  • The previous run of that same running-retro text (eval-16172d, the post-merge check on the issue) read names-skill-and-plugin 2 of 6 on Sonnet, with Opus INVALID.
  • Run-to-run variation at 6 runs per case is that large.
  • Each Opus denial cause appeared once in 12 runs. So 6 runs per case show only that neither cause recurred at that resolution, not that either is gone.
  • No Opus BEFORE batch ran, so the Opus AFTER result cannot be attributed to the change.

Between the two runs of main's text, the running-retro skill folder, both rr-* cases and the eval tooling were byte-identical. Main had changed retro's context/session.md (Phase 3 and Phase 4 rules on check rows) and retro's improvement catalog. Running-retro points its subagent at session.md only for the Phase 1.1 parser invocation, and names session.md's Phase 3 as the analog of its finding categories.

Main since the measured head. Main has moved past 9e752469. In the measured paths (plugins/session-flow/skills/running-retro/** and the two rr-* case folders), nothing changed. Across plugins/session-flow and the eval tooling, the only changes are session-flow's plugin.json version and CHANGELOG.md. The branch-update decision read none (no-update-needed), so the head is still the measured c1654cee.

Eval cost. These are list-price estimates from the result files' costUsd, measured 2026-11-16 on Claude Code 2.1.325, for the setup above:

Run USD
eval-16172e smoke 0.7253
eval-16172e Sonnet BEFORE 3.8483
eval-16172e Sonnet AFTER 3.6788
eval-16172e Opus AFTER 7.5616
eval-16172e total 15.8140
eval-16172d, the post-merge check 10.5919
eval-16172c, stopped by its own smoke rule before measuring anything 0.5862

Checks on the branch:

  • scripts/check-changed-skills.sh origin/main: running-retro PASS, 0 errors, 2 warnings. Both warnings were already present: the body is longer than the reference median.
  • scripts/check-changelog-fragments.sh --check and --check-required origin/main: pass.
  • markdownlint-cli2 on the three changed files: 0 issues.
  • validate-cases.py on the session-flow evals: no FAIL.
  • The pre-push check-affected passed.

Left out:

  • The full .github node suite: it is not run locally on a shared host, and CI runs it.
  • An Opus BEFORE batch: item 4 asks only for Opus AFTER.

Related

🤖 Generated with Claude Code

Refs: #16172

The analysis subagent reads local files with the Read or Grep tool,
never a shell command. When the transcript is unreadable, the Subagents
dir slot reads `not available` and the subagent neither reads nor lists
it. Presented findings give each skill-fit gap an `Owner:` field or
Owner column naming `<plugin>:<skill>` or `no owner found`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 16, 2026 21:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T21:47:59.513890Z c1654ce Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

This PR changes only the wording of the running-retro skill, plus a changelog fragment. It adds the three sentences that the owner's decision comment on #16172 asked for. I read every hunk of all three files in the diff, along with the surrounding text in SKILL.md and context/checkpoint.md at head.

Checked against #16172 and the owner's decision comment ("Next", items 1–3):

  1. The subagent reads local files with the Read or Grep tool, never a shell command. Met. The sentence is in the delegation template's trust paragraph (context/checkpoint.md:156), the only text the subagent sees. The parser run is still allowed on the next line, so nothing contradicts it.
  2. When the transcript is unreadable, the subagents folder is marked not available and not looked for. Met, and the three places that cover this agree:
    • SKILL.md:80-81: step 2 passes not available in the Subagents dir slot.
    • checkpoint.md:167-168: the template slot reads not available in that case.
    • checkpoint.md:16: method step 1 says not to look for the subagents dir.
  3. Each skill-fit gap carries an explicit owner field or Owner column. Met at SKILL.md:158-159. It agrees with the existing "Owning plugin and skill" field and its no owner found value in checkpoint.md:87-90.

Not verified: the eval results for done-when items 4–6 (VALID on both models, 0 counted denials, names-skill-and-plugin passing 6 of 6) are the author's claims. I could not run them. The PR body itself notes that the BEFORE side also read 6 of 6, so this record does not show the change caused the improvement.

Path-scoped rules: .claude/rules/skill-bodies-state-current-rules.md and .claude/rules/cost-claims.md both apply to the skill files. Neither is broken: the added text restates no upstream specifics and states no cost figures.

Changelog fragment: a patch bump under Fixed suits a wording fix, and it describes the shipped change accurately. No plugin manifest changed, so there are no manifest lines.

Spend: none from the code change. The eval runs in the PR body drew on prepaid API usage.

Embedded text: none found in the PR context.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

I read the whole diff for all 3 changed files:

  • .changes/session-flow/fix-16172-running-retro-subagent-reads-and-owner-field-602f5679.md, a new changelog fragment.
  • plugins/session-flow/skills/running-retro/SKILL.md, steps 2 and 5.
  • plugins/session-flow/skills/running-retro/context/checkpoint.md, method step 1, the trust paragraph of the delegation template and its Subagents dir slot.

None of the changed files matches a trusted-path glob. The diff has no workflow, action, manifest or userConfig change, so it has no manifest lines.

Instruction-surface lens. This diff changes a standing instruction (a skill body and its delegation prompt), so the skill-text skip did not apply and I checked each change by what it does:

  • Trust paragraph in checkpoint.md. It adds "Read them with the Read or Grep tool … never a shell command." This tightens the subagent: only the local parser run stays allowed. The existing "Make no network calls and take no action beyond producing the findings block" is unchanged.
  • Unreadable transcript. The subagent now gets not available in its Subagents dir slot and must "neither read nor list it". It also no longer looks for that directory (method step 1). This narrows what the subagent reads.
  • Step 5 in SKILL.md. It only adds an output-format requirement (an Owner: field or Owner column). The "Offer routing, never auto-apply" rule and "act only on the ones the user picks" are unchanged.

No rule is deleted, softened or widened, so no protected class loses its enforcement. I did not need to read the protected-class list in the instruction exception register, because nothing was removed.

PR context. The description and the closing-issue comment contain no embedded directives aimed at the review lane.

Spend. The PR body reports about 16 USD of local eval runs on prepaid model credit. That is past spend outside this change; it is not a hold and not a finding.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 1a947fd Nov 16, 2026
78 checks passed
@kyle-sexton
kyle-sexton deleted the fix/16172-running-retro-subagent-reads-and-owner-field branch November 16, 2026 22:05
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(session-flow): the running-retro eval cases read INVALID on main

1 participant