Repository navigation
fix(session-flow): handoff purpose leads the Resumption brief again - #10038
Conversation
On shape 3 the brief slot told the writer to open with the write time and branch, and the purpose framing landed in Review before you continue, so the purpose argument no longer reliably led the brief or steered Suggested skills (eval case 9 fell from 2 of 3 to 0 of 3). `save_point.py new --purpose <text>` writes the purpose as the brief's first line and points the brief and skills slots at it. Sections, their order and the resume prompt are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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. |
|
claude-security-review reviewed No security issues found in PR #10038 at 725156d. critical-findings: 0 The PR adds a
Spend: nothing in this change draws on credits or a paid plan beyond ordinary CI runs. |
|
claude-review reviewed No findings. I read the full diff (6 files) and the PR context; I did not run the tests. The "268 passed" result in the PR is the author's claim and is unverified by me.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 725156d1ed
ℹ️ 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".
Refs: #9238
Summary
Handoff eval case 9 (
purpose-argument-tailors-emphasis-only,claude plugin eval --scaffold --ablation none, Opus writer and judge, 3 runs each, 2026-10-25) regressed when shape 3 shipped:Root cause: the purpose rule lives only in
reference/save-point.md("The purpose argument tailors emphasis only"), while the skeleton slot the writer fills tells it to open the brief with "when written and against which branch or commit" (scripts/save_point.py, shape-3 brief slot), and neither the brief slot nor the Suggested skills slot mentions the purpose. Every failing run whose slots survive in the eval evidence opened the brief withWritten <time>; branch …and put the purpose on line 2; the passing shape-2 run opened with the purpose. Shape 2 had the same slot text, so the slot alone is not the whole regression: on shape 3,Review before you continuesits above the brief and is "tailored to [the next action]", so the review framing lands there and the brief falls back to the slot's fixed opening.Fix
save_point.py new --purpose <text>writes the purpose as the Resumption brief's first line,Purpose: <text>(whitespace collapsed), and the brief slot becomes "five lines max below the Purpose line, framed from it", so the six-line cap holds. The Suggested skills slot adds "selected for the Purpose line in Resumption brief". Shapes 2 and 3 both take it.<!--or-->is refused (exit 2), since it would break the slot grammar.--purposethe skeleton is byte-identical. Section set, order and the resume prompt never change, so the purpose stays emphasis-only.continue-in-backgroundalso follows) and the save-point engine doc pass and describe--purpose.Verification
uvx --quiet pytest -q plugins/session-flow/scripts/tests: 268 passed. New tests: with--purpose, only Resumption brief and Suggested skills differ, the brief's first line is the collapsedPurpose:line,validateexits 0 andemitoutput is identical to the no-purpose run (shapes 2 and 3); a purpose with-->or a FILL marker exits 2./skill-quality:checkon the handoff skill: PASS, 0 errors, 3 warnings (description length and body length, both pre-existing; body +1 line).Related
🤖 Generated with Claude Code