Repository navigation
The takeover's GitHub comment opens with TAKEOVER, a dash and the taker's lane, where it ran the lane taken over from into the verb (opensoft/openRepoTools#346) - #2
Merged
Conversation
…er's lane, where it ran the lane taken over from into the verb (opensoft/openRepoTools#346) `claim` took the comment's first word from `${takeover_from:+TAKEOVER}${takeover_from:-CLAIMED}`. The second expansion is the value of `takeover_from` when it is set, so a takeover's comment began `TAKEOVERrepoTc-1 — lane repoTc-2, …`. The word is now chosen before the `printf`, as `TAKEOVER` for a takeover and `CLAIMED` for a claim, which is the form Rule 1 gives (`TAKEOVER — lane <name>, session <id>, <UTC time>.`) and the one `gh_reads` greps for. The lane taken over from stays on the comment's `Logged in` line, and the log line is untouched. The new case in tests/test_lane_helpers.sh runs a plain claim and a takeover with LANES_NO_GITHUB=0 against the suite's fake `gh` and asserts each posted body's first line. Run before the fix, the takeover's two assertions fail. Lane: openRepoTools-3 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Reviewer's GuideImplementationChoose the takeover or claim verb before formatting the comment so takeover headings begin
TestsExercise GitHub-enabled claim and takeover comments and check their headings and source-lane placement.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Brings the PR for opensoft/openRepoTools#346 (the takeover comment's first word ran the lane taken over from into the verb) up to date with code main after Amendment 23's act 2 (code#16 to code#21). A merge in place: no rebase, no force. One conflict, in lanes-edit.sh, in the `claim` verb's comment `printf` arguments (6. the comment, AFTER the push): - The PR changed the first argument from `${takeover_from:+TAKEOVER}${takeover_from:-CLAIMED}` to `$comment_verb`. - main changed the last argument from `$reads` to `$reads_posted` (the three reads the comment cites whole, carried across the replay's exec). - Resolved by keeping main's `$reads_posted` and the PR's `$comment_verb`, so the hunk is main's text plus the PR's own change and nothing else. main's takeover paths (the dead-lane hold and the stale claim) both set `takeover_from`, which `comment_verb` tests, so both open `TAKEOVER`. tests/test_lane_helpers.sh merged without a conflict: the PR's new case (the opensoft/openRepoTools#346 block after the repoU claim cases) sits in main's file unchanged, and `git diff origin/main HEAD` is the PR's two files and nothing else (lanes-edit.sh +7 -1, tests/test_lane_helpers.sh +51). Lane: openRepoTools-3 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
This was referenced Nov 10, 2026
brettheap
marked this pull request as ready for review
November 10, 2026 12:03
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 4 days and 6 hours by commenting |
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Lane: openRepoTools-3
Claim: opensoft/openRepoTools#346 (comment)
lanes-edit.sh claim --forceposted a takeover's GitHub comment whose first word ranTAKEOVERstraight into the name of the lane taken over from, as inTAKEOVERrepoTc-1 — lane repoTc-2, …. With this change it opens as Rule 1 spells it,TAKEOVER — lane <taker>, session <id>, <UTC time>., which is also the linegh_readsgreps for.The cause.
claimbuilt the comment's first word from${takeover_from:+TAKEOVER}${takeover_from:-CLAIMED}. Whentakeover_fromis set, the second expansion gives its value, not nothing. The word is now chosen before theprintf:TAKEOVERfor a takeover, andCLAIMEDfor a claim.How this reads the issue. The issue asks that the first line name "the kind and the lane taken over from, in the form the manual gives".
Logged in …line, and is not added to the first line.Tests. A new case in
tests/test_lane_helpers.shruns a plain claim and a takeover withLANES_NO_GITHUB=0against the suite's fakegh, and asserts the first line of each posted body. Before the fix, the takeover's two assertions fail.mainin place as1c0fae3, from86d635b(Amendment 23's act 2, code#16 to code#21). One conflict, in the comment'sprintf, keepsmain's$reads_postedwith this PR's$comment_verb. Its diff againstmainis this PR's own lines, in two files.1c0fae3, found the code READY. It checked both takeover paths, the dead lane's and the stale claim's: each now opensTAKEOVER — lane <taker>. It also checked the one reader of that word,gh_reads, which looks forTAKEOVER —and so now finds a takeover comment where it never could before.Where it reaches. This changes the code leg only. Installs keep the code commit the root pins,
2a057a6d(v1.1.0), until a root pin bump carries it.Not in this PR. The review found two related defects, left for follow-up:
Stale claim: <link>, posted <UTC>, no PR after 4h., is never posted. On the stale-claim path,$takeover_payloadand$takeover_notereach the log line but not the comment's body. On the dead-lane path,$takeover_notereaches the comment'sLogged in …phrase. Tracked in lanes-edit.sh claim --force never posts Rule 1's second takeover line (Stale claim: link, posted UTC, no PR after 4h) openRepoTools#354.lane-handoff:3071(at codemain86d635b) printsrespawnend, from${do_restart:+respawn}${do_exit:+end}, whose flags are0or1and so always non-empty. It appears only in the die message when tmux is absent. Tracked in lane-handoff's no-tmux die message prints respawnend, since do_restart and do_exit are 0 or 1 and never empty openRepoTools#355.This PR carries no closing keyword. The issue is in the root repository, so it is closed by hand once this lands.
🤖 Generated with Claude Code
Summary by Sourcery
Correct takeover comment headers to follow the lane-collision protocol and identify the taking lane.
Bug Fixes:
TAKEOVER — lane <taker>instead of concatenating the source lane name toTAKEOVER.Tests: