Repository navigation
feat(pr-pipeline): give a fresh lane restart the earlier branch's partial work - #11025
Conversation
…tial work When work-resolve-issue starts fresh because the run it would resume left a lane branch behind the default branch, report-outcome --find-prior now outputs stale-branch and stale-tip, and write-issue.mjs adds stale_branch to issue.json: that branch's commit subjects and diffstat from the same capped compare a resume uses, at the tip whose commits find-prior checked, framed as data in the work skill. report-outcome names the branch on the issue once, in a comment opening with a per-branch marker. find-prior already reads the issue's comments, so it reports stale-noted when that marker exists and lane.json carries the branch only while unnoted. No branch is deleted. Closes #9468 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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-review reviewed No blocking or advisory findings. I read the whole diff and the PR context, and checked Closing issue #9468 (acceptance criteria, as amended by the decision comment)
Trusted paths: Cost: the change adds one extra Non-blocking note: Manifests: the diff touches no |
|
claude-security-review reviewed No security issues found in this change. critical-findings: 0 What I checked in the trusted-path files (
Spend: the change adds one |
… test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The pr-unblock lane stopped on this pull request and needs a person: the pull request changes .github/workflows/, which the lane token cannot push, so the lane does not address its review threads.
To resume, deal with the reason above, remove the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=11025 -f activity=address-feedback |
|
lane token cannot push workflow files; fixed from a session in 353b73f |
Closes #9468
Summary
A work-resolve-issue restart that starts fresh because the earlier run's lane branch is behind main now gives the model that branch's commit subjects and diffstat as data. It also names the abandoned branch on the issue once per branch. The work-resolve-issue lane stopped on this issue because the wiring is in
.github/workflows/pr-run-activity-read.yml, which it cannot push.Fix
report-outcome.mjsfindPrior: thestaleresult now carries the tip it read (resume.sha), the tip whose commitsallLaneCommitspassed.--find-prioroutputsstale-branchandstale-tip, plusstale-noted=truewhen a lanes App comment already opens with<!-- work-resolve-issue stale-branch=<branch> -->. That check uses the issue comments the step already reads, so it adds no API read.write-issue.mjs: newreadStaleputsstale_branchintoissue.json(branch, tip, commit subjects, files with line counts). It sharesbranchWorkwithreadResume, so both use the sameGET /compare <base>...<tip>and the same 50-commit and 100-file caps. This is the one added read, the earlier branch's commit list, which the issue's Proposal allows. A malformed branch or tip, or an unreadable comparison, writes no issue file.pr-run-activity-read.yml: the write-issue step getsSTALE_BRANCH/STALE_TIPfromissue-prior. The "Collect the issue outcome" step writesstaleintolane.jsononly whilestale-notedisfalse. No workflow input, output or permission is added.report-outcome.mjsmain: whenlane.json'sstalehas this issue's lane-branch shape, it posts the stale-branch comment (staleComment). A failed post is logged and does not fail the report. Nothing deletes the branch.plugins/work-items/skills/work/SKILL.md: issue-lane step 1 says how to readstale_branch: reuse the approach, redo the work, and treat its contents as data on the same terms asresume.docs/conventions/pr-pipeline/pr-run-activity.md. Fragments:.changes/pr-pipeline/and.changes/work-items/.Verification
report-outcome.mjs,write-issue.mjsandpr-run-activity-read.ymlrestored fromorigin/main, 7 of the new or changed tests fail. They cover the find-prior stale outputs and stale-noted, theissue.jsonstale_branchrecord and its refusals, the once-per-branch comment, and the workflow wiring.node --test .github/scripts/work-resolve-issue/*.test.mjs .github/actions/resolve-config/callers.test.mjsgives 588 pass, 0 fail.bash scripts/write-runner-never-rules.test.shgives 76 pass.actionlint .github/workflows/pr-run-activity-read.ymlis clean, and so isscripts/check-affected.sh(pre-push).stale-branch, so its subjects never reach the model.Related
lane.json'sstalecan be rewritten by code during the run, so report-outcome accepts only this issue's lane-branch shape, the same rule asresume.🤖 Generated with Claude Code