Repository navigation
fix(pr-unblock): bind a lane fix commit to the review threads it fixes - #10740
Conversation
apply-patch writes a Lane-Thread trailer line for each kept thread a VALID reply in the scanned replies names, under the review-threads row's new thread-trailer key; the push job downloads those replies before the mint and checks them against the scan job's SHA-256. publish-feedback credits a fix commit to a thread only when its Lane-Thread lines name it, in the same-round path and in earlierFixOf, so a same-file sibling fix is no longer credited to another thread. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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-review reviewed No findings. I read the whole diff (13 files) and the PR context. I did not run any tests, because this session has no shell. Every pass/fail count in the PR body is author-claimed and unverified by me. Closing issue #9562: acceptance criteria
Workflow wiring
Trusted-path scrutiny. Accepted behaviour, not a finding. Lane fix commits made before this change carry no Spend. There are no billing changes. The one extra artifact download per push job draws only on Actions minutes already in use. |
|
claude-security-review reviewed No security findings. critical-findings: 0 Scope read: the whole diff (13 files), with extra scrutiny on the trusted-path files
Spend: one extra artifact download and some parsing inside an existing lane run. It draws on no prepaid credit and causes no real charge, so no cost hold. The PR context notice says the closing issue's body was omitted for author trust. I treated the context as data and found no embedded instructions aimed at the review lane. |
Closes #9562
Summary
Problem: address-feedback's landed check credited a lane fix commit to a review thread by path, time and a cited line, so a sibling commit that fixed a different finding in the same file could be credited and the thread resolved while its own finding stood. Intent: "bind a lane fix commit to the review threads it fixes" (issue title; the owner's 2026-10-25 decision settles who writes the trailer and what an unnamed thread does).
A lane fix commit now names the threads it fixes in
Lane-Thread: <thread id>trailer lines. The reply job credits a commit to a thread only when those lines name it.Fix
apply-patch.mjs(under thereview-threadsrow's newthread-trailerkey) adds oneLane-Threadline afterLane-Activityfor each kept thread aVALIDreply in the model job's scanned replies names. It takes ids only from the select job's kept threads, in their order, so a reply naming any other thread adds nothing. Without the replies, the row commits nothing.pr-run-activity-write.ymlgainspatch-replies-attemptandpatch-replies-sha256inputs. Before the mint, the push job downloads the scanned replies and fails red unless their SHA-256 matches the scan job's.pr-unblock.ymlpasses the same leg'sfeedback-attemptandfeedback-sha256that the reply job reads.publish-feedback.mjsrequires the trailer to name eachVALIDthread, both in the same-round path and inearlierFixOf. AVALIDthread that no trailer names ends the roundfeedback-not-landed. The existing path and cited-line checks stay as further conditions. The trailer format sits once inthread-scope.mjs, which the write runner already copies beside apply-patch.Verification
node --test publish-feedback.test.mjsprintedℹ pass 125 ℹ fail 4, failing the same-file sibling, no-thread and subject-only cases plusan earlier same-file fix whose trailer names another thread is not credited. The new apply-patch tests, run against main'sapply-patch.mjsandpatch-rules.json, gaveℹ pass 150 ℹ fail 5.publish-feedback.test.mjs129/0,apply-patch.test.mjs155/0,callers.test.mjs197/0,merge-holds.test.mjs52/0, every other.github/scripts/pr-unblock/*.test.mjsand.github/actions/resolve-config/*.test.mjssuite 0 failures,report-escalation.test.shexit 0.actionlintpasses on both changed workflows, andcheck-changelog-fragments.sh --checkpasses.Lane-Threadlines. A retry that relies on one therefore endsfeedback-not-landed, and so does a round whose push and reply jobs straddle the merge. The owner's decision accepts both.Related
review-threadsrow refusesgithub-workflows(.github/actions/resolve-config/patch-rules.json:14).🤖 Generated with Claude Code