Repository navigation
feat(session-flow): look back over one pull request in audit-sessions - #16015
Conversation
audit-sessions gains a pr action: given a PR number and repository, it finds the sessions that linked the PR or ran on its head branch, from main and subagent transcripts, measures them, reads them in subagents sized to the transcripts, and hands review comments to /corrections:codify reviews when that plugin is installed. The store records subagent branches and PR links in branches_sub and prs_sub. retro stays single-session and routes a PR retro to the new action. Its Phase 4 now states that a change may skip approval only where an evaluation set scores the changed surface and the score does not drop. Co-authored-by: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0db719f81d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Lane run report
Failed GitHub API calls
|
Lane-Activity: pr-refine/fix-docs
Lane run report
Failed GitHub API calls
|
|
claude-review reviewed Code review (blocking only): PR #16015No blocking findings. This lane has reviewed two earlier heads, and the prior-findings file says What I checked
Not checked by me. I had no shell, so I ran no tests. The pytest, ruff, check-skill and markdownlint results in the PR description are the author's claims and unverified. Other checks
Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: PR #16015 at
|
Lane run report
Failed GitHub API calls
|
Lane-Activity: pr-unblock/address-feedback Lane-Thread: PRRT_kwDOTCGFQM63Qlmx
Lane run report
Failed GitHub API calls
|
|
pr-unblock / address-feedback finished round 1 of max 4 on 0282e53. |
Lane run report
Failed GitHub API calls
|
- pr matches a head branch only in the PR's repository: a session whose repo_identity names another repository no longer matches by branch name. A null identity still matches, since a removed worktree leaves it null. - pr hands review comments to /corrections:codify reviews only when --repo is the current checkout's repository, which that action reads; otherwise it skips the hand-off and says so. Co-Authored-By: Claude Opus 5.5 <[email protected]>
No related issue: owner decision in a design review of our review, PR-body and retro skills
Summary
A retro could cover one session or one ticket, but not one pull request: the sessions that built it (subagents included) and the review comments it drew had to be gathered by hand across two skills.
audit-sessionsnow takes a pull request as its scope. Retro stays single-session and routes a PR retro there. Retro's approval phase also now states when a change may be applied without a person's approval.Fix
audit-sessions pr --number <n> --repo <owner/repo> [--branch <name>](skills/audit-sessions/actions/pr.md): takes the head branch from/source-control:pull-request view, finds the matching sessions through the store, measures them with the existing--sessionsweep, reads their main and subagent transcripts in fresh subagents each given at most a quarter of its context window (larger files split by line range), and invokes/corrections:codify reviewswhen the PR is merged and the corrections plugin is installed.sweep.py --pr N --repo OWNER/REPO [--branch NAME]: new envelopeaudit-sessions.pr/v1listing each matching session withmatched_by(pr,branch, or-subwhen only a subagent transcript shows it). Automated sessions stay in and are labeled.collect.py: stores subagent branches and PR links in newbranches_sub/prs_subfields, kept apart so ticket keys and per-PR churn still count the main session only. The collector digest changes, so the next collect re-reads every transcript once.retro: a PR-scoped request names the new action and stops;context/session.mdPhase 4 states that a change skips approval only where an evaluation set scores the changed surface and the change does not lower the score.Left out:
/corrections:codify reviewshas no public argument that selects one PR (it mines the lastreview_mining_prsmerged PRs), so the hand-off reports whether this PR was among those read and skips an open PR.Verification
pytest plugins/session-flow/skills/audit-sessions/scripts/tests: 414 passed, including new tests for the PR match (link or branch, main or subagent side, other repository and PR excluded, argument refusals) and for subagent branch and PR-link storage.pytest plugins/session-flow/skills/audit-friction/scripts: 27 passed.scripts/run-ruff.sh checkon the audit-sessions scripts: clean.check-skill.sh plugins/session-flow/skills: 18 passed, 0 failed.check-evals-quality.shon both changed eval files: pass.Related
.changes/session-flow/feat-audit-sessions-pr-scope-54c359f8.md.🤖 Generated with Claude Code