Repository navigation
lane-handoff's no-tmux refusal names the mode its flag selects, respawn for --restart and end for --exit, where it printed respawnend (opensoft/openRepoTools#355) - #27
Merged
Conversation
…wn for --restart and end for --exit, where it printed respawnend (opensoft/openRepoTools#355) The refusal built its mode word from ${do_restart:+respawn}${do_exit:+end}. Both flags are 0 or 1 and never empty, so both expansions fired and the message named respawnend, which is not a mode. It now names end when --exit is 1 and respawn otherwise; --restart and --exit are refused together earlier, so exactly one is 1 at that line. The refusal's other words are unchanged. No other message in lane-handoff builds a word from these flags: the other ${x:+...} expansions test strings that can be empty. The new case runs lane-handoff --restart and --exit with no tmux and pins the word in each message, and respawnend not in either. Both cases fail at the base with respawnend. Lane: openRepoTools-5 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Reviewer's GuideImplementationUpdate the no-tmux refusal to select
TestsCover both flags’ refusal messages, checking the selected mode and ruling out
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
brettheap
marked this pull request as ready for review
November 10, 2026 20:38
|
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 3 days and 21 hours by commenting |
brettheap
added a commit
that referenced
this pull request
Nov 10, 2026
…the old lane is stamped where it is, its note is printed, and the rename still commits (opensoft/openRepoTools#123) (#28) opensoft/openRepoTools#123 asked whether a handoff not named `...-lane-<old>.md` should be refused at preflight or stamped where it is. Brett Heap's answer, relayed by lane 3 on opensoft/openRepoTools#165, is "Document it (Recommended)": the graceful degrade stays, the manual's clause (d) row says so (spec leg), and this case pins what it does. test_rename_in_place_handoff_prints_its_note_and_the_rename_still_commits runs a real `rename-lane` on a handoff named `notes.md` and holds that it exits 0; prints the note with the cell the row names, its words and "(Amendment 16(d))"; leaves the handoff at its old name with the Rule 3 `RENAMED from <old> ...` line under its header block, and nothing named for the new lane beside it; and commits the row (its handoff column still naming the same file), the log's move, the alias and the handoff in one commit. The case passes at ecd1bce. Against a scratch copy of lanes-edit.sh whose note reads "stamped in place", and against one whose in-place arm dies, it fails. No code in lanes-edit.sh changes. Lane openRepoTools-3's independent review read READY at 227043e. It landed through lane 3's merge queue as the second prefix, after #27: tests.yml run 42901387372 passed every job on tree 8f08e14, which this commit's tree equals. It lands under Brett Heap's standing landing word, which he extended to the lane-tooling fixes any lane writes once lane 3 reviews them READY. Lane: openRepoTools-5 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Nov 10, 2026
…es a gone tree's kept registration on one row; READY counts recorded trees (opensoft/openRepoTools#116, opensoft/openRepoTools#117) (#29) opensoft/openRepoTools#116, its second half. A tree record now carries `repo`, the path's git common directory, read with `git_common_real` before `set-lane-tree` takes the sidecar lock and passed to `lane_tree_put` as an optional thirteenth argument. `lane_reconcile` reads it from the sidecar and compares it with `git_common_real` of the path now: a different one is `wrong-repository`, counted toward recovery, and nothing else of the record is compared against that tree; an identity git cannot give now is `unreadable`; a record with no `repo` (every one a released helper wrote) is not compared. The recorded `checkout` is not what is compared: for a lane with no legs it is the lane's `dir`, even for a tree of another repository. `lane-trees`' row keeps its thirteen fields. The T018 goldens hold it byte for byte (tests/fixtures/t018/single-repository.golden, the `lane-handoff: inventory` section, and tests/fixtures/t018-handoff/single-repository-decoys.golden), and two shell readers, `lane_reconcile` and `worktree_rows`, read exactly thirteen names, so a fourteenth field would have been read into their schema word. So the identity is read from the sidecar rather than appended to the row. opensoft/openRepoTools#117. `lane-handoff` counts `writer_recorded` only where `set-lane-tree` succeeded, and its READY line says `N of M polled worktree(s) recorded` where the two differ; where every polled tree was recorded the line is the one the goldens hold. In `lane_reconcile`'s arm for a recorded path that is gone, the registrations of the recorded checkout and then of the lane's `dir` are asked for the path under its recorded spelling and its parent's physical one (`path_real`). Where one holds it, the `missing` or `possible-loss` row names `git -C <checkout> worktree prune` and the physical spelling joins the seen set, so the sweep neither drops the remedy nor names the tree a second time as `stale-registration`. Tests: tests/test_reconcile_identity_116_117.py, six cases, and two cases in tests/test_triad_lane_tooling_handoff.py. Each fails at ecd1bce and passes here; both T018 golden cases pass here unchanged. Lane openRepoTools-3's independent review read READY at 75cd0b0. Its SHOULD 1, a gone tree that only another repository registers in a lane with no legs, is a later follow-up, and the manual's half says what this commit does. It landed through lane 3's merge queue as the third prefix, after #27 and #28: tests.yml run 42901392793 passed every job on tree 6e62bb3, which this commit's tree equals. It lands under Brett Heap's standing landing word, which he extended to the lane-tooling fixes any lane writes once lane 3 reviews them READY. Lane: openRepoTools-5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Nov 11, 2026
…eeping both test blocks, #27's first The merge brings #28, #29, #31 and #33 onto this branch, on top of the #27 that lane 3 checked at 10799a5. One conflict, at the end of tests/test_a23_lane_handoff.py: #27 appended its test_the_no_tmux_refusal_names_its_mode_not_both_words block there, and this branch appended the #118 block (the _closed and _held helpers and the three test_118 cases) at the same place. Resolved by keeping both, unchanged and with two blank lines between them: code#27's block first, then this branch's. No other file conflicted; lane-handoff merged by itself. The resolved tests/test_a23_lane_handoff.py is blob 3927b53, the blob lane 3 computed on 10799a5. No commit after 10799a5 on code main touches that file or lane-handoff (git diff 10799a5 749e969 -- tests/test_a23_lane_handoff.py is empty), so the blob is the same. Checked before this commit: bash -n lane-handoff passes; each of the five test ids of the two blocks passes, run one at a time (2 for code#27's block, 3 for this branch's). Lane: openRepoTools-5 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Nov 11, 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-5
Claim: opensoft/openRepoTools#355 (comment)
One commit,
12319d2, on codemainecd1bce. It fixes opensoft/openRepoTools#355, which lane 3 offered to lane 5 on opensoft/openRepoTools#165 (6767535266) under Brett's "Yes, extend it (Recommended)": "Any lane may write a lane-tooling fix. Lane 3 reviews it and lands it under the standing word once it is READY and every check is green."READY for lane 3's review. CI ran the whole suite on this head,
12319d2, and all 14 checks are green.The defect
lane-handoff's refusal for a missingtmuxbuilt its mode word from${do_restart:+respawn}${do_exit:+end}. Both flags are always0or1, never empty, so both expansions fired, and the message namedrespawnend, which is not a mode.The fix
lane-handoff: the refusal namesendwhere--exitis 1, andrespawnotherwise.--restartand--exitare refused together earlier, so exactly one is 1 at that line. The message's other words are unchanged.lane-handoffbuilds a word from these flags. The other${x:+…}expansions test strings that can be empty.tests/test_a23_lane_handoff.py:test_the_no_tmux_refusal_names_its_mode_not_both_words, parametrized on--restart/respawnand--exit/end. Each case asserts exit 2, the mode word in the message, and norespawnend.Checked
2 passed, 20 deselected. At baseecd1bce, both cases fail onrespawnend.test_repo_hygiene.py: 240 passed and 18 skipped, both at the fix and at base.run.shverify (-k 'no_tmux_refusal_names_its_mode or repo_hygiene') is still queued behind py-bench's shared test lock, and it is a subset of what CI ran. Its result follows as a comment.🤖 Generated with Claude Code
Summary by Sourcery
Fix lane-handoff's no-tmux refusal to report the correct mode for restart and exit operations.
Bug Fixes:
respawnorendmode instead of the invalidrespawnendtext.Tests:
--restartand--exitrefusal messages, including exit status and preservation of the surrounding message text.