Skip to content

fix(pr-pipeline): bind a lane fix commit to the review threads it fixes #9562

Closed

Description

@kyle-sexton

Problem

address-feedback's landed check (.github/scripts/pr-unblock/publish-feedback.mjs, fixesLanded and earlierFixOf) credits an earlier lane commit to a review thread by path and time. The commit must touch the thread's path and come after the thread's newest reviewer, verifier or lane comment. A sibling commit that fixed a different finding in the same file can therefore be credited, and the thread resolved, while its own finding stands. The closure rule still holds, because a finding closes only on a new head with a clean whole review, so the cost is a resolved thread whose finding comes back, not a wrong merge.

Fix

Bind a fix commit to the thread ids it addresses: a commit trailer the lane writes, such as Lane-Thread: <thread id>, which the landed check requires, in place of the path-and-time match.

Done when

  • A lane fix commit names the thread or threads it fixes in a trailer.
  • The landed check credits a commit to a thread only when the commit's trailer names that thread.
  • A test shows that a same-file sibling fix is not credited to another thread.

Activity

  1. added
    needs-triage
    on Oct 24, 2026
  2. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Decision recorded. The owner answered in the Refinement and Issue Triage sessions (2026-10-25), deciding the open items below on the facts:

    go with whatever the facts/data/metrics + /discovery:research says and ensure we're aligned with SOLID, DRY/SSOT principles

    [quote truncated; the full decision is at the link]

    #9562 (comment)

    The decision settles the open questions. apply-patch writes a Lane-Thread trailer for each kept thread that the model job's VALID replies name. A VALID thread that no trailer names ends the round feedback-not-landed.

    What is left is the build. It edits .github/workflows/pr-run-activity-write.yml, which the lanes App cannot push. The decision names a host session on the owner's machine as the builder, so I applied needs-human.

    Automated triage, applied by the lanes App.

  3. added and removed
    needs-triage
    on Oct 24, 2026
  4. added
    status: ready
    agent-ready
    needs-human
    on Oct 24, 2026
  5. melodic-automation-lanes commented on Oct 24, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane did not start this issue: it needs a person to make it clearer first.

    Why, in the run's own words:

    The issue describes a check that is not in the code. .github/scripts/pr-unblock/publish-feedback.mjs has fixesLanded but no earlierFixOf, and fixesLanded does not credit an earlier lane commit by path and time. It compares the PR head the select job read (run.head_sha) to the current head and requires exactly one lanes-App fix commit in that range (fixCommitOf, matched on the Lane-Activity: pr-unblock/address-feedback trailer). That commit must touch every VALID thread's path, or a cited line, or the skill directory for a SKILL.md thread (touchesThread). Please say which behavior to change: (1) Is the premise out of date, so the issue should be closed or rewritten against the current code? (2) Or should the current range check be tightened so one commit can only be credited to the threads it names? If (2), a person must decide who writes the trailer. The model job commits nothing, and apply-patch writes the Lane-Activity trailer from patch-rules.json. A Lane-Thread: &lt;id&gt; trailer would have to come from the model's replies.jsonl or from the patch, and that is new trust surface. Also decide what happens to a VALID thread whose id the fix commit does not name: feedback-not-landed, or a different escalation.

    What the run says it did not do:

    • All work: stopped with pushback before any edit. I could not run git history (git log -S) to see whether earlierFixOf was ever in the file.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40060783114

    To retry, answer the question here, remove needs-human and add agent-ready again.

  6. removed
    agent-ready
    on Oct 24, 2026
  7. kyle-sexton commented on Oct 25, 2026

    @kyle-sexton
    MemberAuthor

    Re-checked on main (2d9ac7f): the earlier pushback's premise, that the described check is not in the code, came from lane run 40060783114, which started at 04:02Z on a base older than #9560 (merged 04:38Z). On main, earlierFixOf (.github/scripts/pr-unblock/publish-feedback.mjs:271-294, used at :384) matches by path, time and a cited line in a hunk and skips claimed commits; nothing binds a commit to a thread id. The bug stands, narrower than first written. Still open from the lane: who writes the Lane-Thread trailer, and what happens to an unnamed VALID thread. Releasing for re-triage.

  8. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner answered in the Refinement and Issue Triage sessions (2026-10-25), deciding the open items below on the facts:

    go with whatever the facts/data/metrics + /discovery:research says and ensure we're aligned with SOLID, DRY/SSOT principles

    I should only ever be in the loop ONLY when necessary (intent/vision changed, something came up during implementation that impacts trajectory/alignment, OR a high security risk) - I've covered this all before

    No owner ledger (.work/*/interview-checklist.md, .work/gh-monitor-owner-decisions/) names this issue. The re-check on main (#9562 (comment)) left two questions open; both are answered here.

    The bug stands on origin/main: earlierFixOf (.github/scripts/pr-unblock/publish-feedback.mjs:285-308, called at :393) credits a lane fix commit by path, time and a cited line, and skips commits a lane reply already named, but nothing binds a commit to a thread id. The same-round path credits the one fix commit to every VALID thread it touches (:367-378).

    1. Who writes the Lane-Thread trailer?
      Decided: apply-patch, naming the threads the model job's VALID replies name, kept to the select job's kept threads. apply-patch already writes every lane fix commit's message and trailer (.github/scripts/apply-patch/apply-patch.mjs:360-371; publish-feedback.mjs:102-103) and reads the select job's kept threads (KEPT_THREADS_FILE, apply-patch.mjs:50-51, passed at .github/workflows/pr-run-activity-write.yml:1877); the thread file carries ids (thread.id, .github/scripts/pr-unblock/adjudicate-feedback.mjs:155), though keptThreadsFrom keeps only path and named_paths today (apply-patch.mjs:960-982). Paths alone cannot tell same-file siblings apart: if threads A and B share a file and the patch fixes only A, a path-based trailer names both, and a retry round credits that commit to B, the bug itself. Only the model job knows which threads its patch addresses. The write workflow already receives the replies artifact (review-replies inputs, pr-run-activity-write.yml:118-163), but the apply step's environment does not pass it (:1855-1885), so the apply step gets the scanned replies file too. A reply naming a thread outside the kept set is dropped. A wrong VALID claim costs a resolved thread whose finding comes back, which the body already accepts, since closure still needs a clean whole review.
    2. What happens to a VALID thread no trailer names?
      Decided: Its fix has not landed. The landed check returns null and the round ends feedback-not-landed, the outcome that already covers a fix it cannot find (publish-feedback.mjs:26, :509, :561). The thread stays open. Closure still needs a new head with a clean whole review, per the body.

    Build: host session (the apply step needs the replies file, a .github/workflows/pr-run-activity-write.yml edit; lane patches refuse github-workflows, .github/actions/resolve-config/patch-rules.json:14).

    Acceptance criteria (the body's three lines stand; the decisions amend the first two):

    • A lane fix commit carries one Lane-Thread: <thread id> line for each kept thread the model job's VALID replies name, written by apply-patch; a reply naming a thread outside the select job's kept threads adds no line.
    • The landed check, in both the same-round path and earlierFixOf, credits a commit to a thread only when the commit's trailer names that thread; a VALID thread no trailer names ends the round feedback-not-landed.

    Builder: the Automation Lanes session builds this from the owner's machine, because the fix edits .github/workflows, which the lanes App cannot push. agent-ready stays off so the issue lane does not race the build.

  9. removed
    needs-human
    on Oct 26, 2026
  10. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    Released for re-triage under the owner's 2026-10-26 rule: a person is involved only for "1. A change in original intent/vision 2. Something comes up during implementation ... that alters intent/vision or the primary design 3. If there is a HIGH/CRITICAL security issue". None applies here, so the hold label came off and intake triage runs again now.

    To hold this issue again, add needs-human (or status: needs-decision) and name which of the three applies.

  11. added
    needs-human
    on Oct 26, 2026
  12. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    The triage verdict left this issue at status: needs-decision:

    • held by needs-human
    • no lanes App verdict comment shows whether an earlier verdict was flagged
  13. added
    needs-owner-decision
    and removed
    status: ready
    on Oct 26, 2026
  14. added
    status: confirmed
    and removed
    needs-human
    on Oct 27, 2026
  15. kyle-sexton commented on Oct 28, 2026

    @kyle-sexton
    MemberAuthor

    Re-triage. Not an owner stop. Both questions the lane raised were decided on 2026-10-26 (#9562 (comment)), and the change tightens a check without widening any boundary. The leftover status: needs-decision label comes off.

    Re-checked against origin/main at 1ac46f0: no file under .github names a Lane-Thread trailer, and earlierFixOf (.github/scripts/pr-unblock/publish-feedback.mjs:310) still credits a commit by path and time. The bug stands.

    Build: host session. The Automation Lanes session builds this from the owner's machine, because the apply step needs the replies file passed in .github/workflows/pr-run-activity-write.yml, which the lanes App cannot push (.github/actions/resolve-config/patch-rules.json:14). agent-ready stays off so the issue lane does not race the build.

    Acceptance criteria (the decision's two amended lines plus the body's test line):

    • A lane fix commit carries one Lane-Thread: <thread id> line for each kept thread the model job's VALID replies name, written by apply-patch. A reply naming a thread outside the select job's kept threads adds no line.
    • The landed check, in both the same-round path and earlierFixOf, credits a commit to a thread only when the commit's trailer names that thread. A VALID thread that no trailer names ends the round feedback-not-landed.
    • A test shows that a same-file sibling fix is not credited to another thread.
  16. removed
    needs-owner-decision
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: confirmed

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions