Skip to content

lanes-edit.sh: the Rule 6 line is appended at the end of LANES.md, so two lanes writing at once conflict on rebase and the lander must run the four-step RECOVERY by hand — resolve an append-only conflict as the union #145

Closed

Description

@brettheap

What happens

Every Rule 6 / Amendment 10 line (LANDING, LANDED, HOLD, PAUSED, …) is appended at the END of lanes/LANES.md (lanes-edit.sh:4571, "Rule 6 line also appended"). commit_push (lanes-edit.sh:1702) then commits and runs pull --rebase before the push. When another lane appended its own line at the end of the file between our read and our push, the rebase conflicts: both commits add lines at the same position (EOF), and git cannot order two adjacent additions. The helper correctly aborts the rebase and prints its RECOVERY (lanes-edit.sh:1816): fetch, git cherry = 1, reset --hard origin/main, redo the write.

The write itself is append-only by design, so the conflict is never a real one — the right result is always "their line, then ours". But the recovery is a four-step manual act in the middle of a landing, and until it is done the lane has committed a LANDING line locally that origin never saw.

Observed, 2026-10-03 (lane openRepoTools-3, Eagle)

Twice in one night, both while landing on Brett Heap's word:

  • LANDING opensoft/openRepoTools#119 conflicted at lanes/LANES.md:2595-2599 with lane openxfactory-4's PAUSED line of 00:43:12Z.
  • LANDING opensoft/openRepoTools#83 conflicted at lanes/LANES.md:2606 with lane opsXfactory-5's LANDED … PR #72 into opensoft/Opensoft-Tenant main line of 02:30:34Z.

Both recovered by the printed steps and a redo; nothing was written twice. Four lanes were landing on this workstation at once, so the window is not rare.

Proposed remedy

In commit_push, when the rebase stops on lanes/LANES.md and EVERY conflict hunk lies in the Rule 6 region after the register table (the file's trailing line block, never inside a | … | row), resolve it as the union — theirs first, ours after — re-verify the resulting file (one line added, our line present exactly once, the row region byte-identical to theirs), git add, git rebase --continue, and push. Any other conflict — a row, a hunk the helper cannot place, more than one of our lines — still aborts with today's RECOVERY. Do not reach for .gitattributes merge=union on the whole file: the table rows above the line block are replaced in place and a union there would duplicate a row.

Related: #127 (commit_push's direct-push path skips the pull --rebase entirely when another tracked file is dirty).

Lane: openRepoTools-3

🤖 Generated with Claude Code

Activity

  1. brettheap commented on Oct 3, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-10-03T14:01:18Z, for #145

    Logged in lanes/log/openRepoTools-3.md at c09e88739fee4b6b600a1a7bf8a390ea2a6958ee.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#145:
       none
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#145"`, kept where the row or its body names `#145`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `145` as a whole token:
       none
    
  2. brettheap commented on Nov 10, 2026

    @brettheap
    ContributorAuthor

    Lane: openRepoTools-3

    Verdict: fixed on code main, and not yet released. The fix is 8652321 (Amendment 23 S4), landed by opensoft/openRepoTools-code#17 (merge a8f6f01, 2026-11-10), the re-homed slice 1b of #198. It is on opensoft/openRepoTools-code main; it ships in the next release after v1.1.0. Closing as completed.

    • The mechanism the issue describes is gone. At code main 9a219ed, lanes-edit.sh has commit_publish() (:3156) and no commit_push() definition. The three lane-start mentions and lanes-edit.sh:3090 are comments, and :3090 says "commit_publish replaces commit_push, whose push loop pulled with rebase in front of every push".
    • commit_publish commits by pathspec, pushes with no pull and reads origin back (at 86d635b, :3244-3249). When the push is refused it drops its one commit and re-runs the verb on origin's new tip, six attempts at most (cp_replay, lanes-edit.sh:3598 at 9a219ed).
    • That re-run appends the Rule 6 line again after the peer's line, which is the union the issue asked for. Nothing rebases any more, so there is no rebase for two appended lines to conflict in.
    • Covered by tests/test_a23_publish_replay.py::test_refused_push_replays_on_a_fresh_fast_forward (:157 at 9a219ed). It was read, not run; the triage found CI green on code main 86d635b.
    • Not yet released: v1.1.0 (2a057a6d) still has commit_push() and no commit_publish() (checked today). The four-step RECOVERY in this issue still applies to the released v1.1.0 copy until the next release ships.

    Method: read, not run. Lane 3's triage read code main at 86d635b on 2026-11-10 and ran no tests; one cite per issue was re-read at 9a219ed.

    Brett Heap's word, given in lane openRepoTools-3's session on 2026-11-10 (the NEEDS-BRETT dialog, "Closing the six fixed or obsolete issues": #304, #145, #125, #124, #127 and #91, answered by 12:11:11Z): "Close all six (Recommended)". Its description: "Each gets one evidence comment and is closed, and lane 3 releases its claim on it."

    🤖 Generated with Claude Code

  3. brettheap commented on Nov 10, 2026

    @brettheap
    ContributorAuthor

    RELEASED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-11-10T12:44:04Z, for #145 — closed: fixed on code main by opensoft/openRepoTools-code#17 (a8f6f01; unreleased); evidence 6767590411

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions