Repository navigation
lane-handoff's --exit refusals keep their words and name their mode: the /exit refusal prints /exit, and the row and handoff gates say ending, not respawning - #35
Conversation
…the /exit refusal prints /exit, and the row and handoff gates say ending, not respawning Three refusals that fire under --exit did not read true for it. Lane openRepoTools-3's review 6778792731 on opensoft/openRepoTools#165 found the first, and named the other two as its neighbours. Lines are at the base, refs/l3/queue-p3-29 (9bfedfa), where the three stood at :3081, :3083 and :3109. - :3109, the refusal for a /exit that tmux send-keys could not type, spelled the word with backquotes inside a double-quoted die message, so bash ran it as a command substitution. stderr gained "line 3109: /exit: No such file or directory" and the message read "the record is written and could NOT be typed into the pane". The backquotes are now escaped with a backslash, as every other message of the file that names a word spells it, and the message prints /exit. A scan of the whole file for a backquote in a double-quoted or bare position found no other: the rest are escaped, or inside single-quoted printf formats and the quoted usage heredoc. - :3081 (the ROW WAS NOT FLIPPED gate) and :3083 (the HANDOFF WAS NOT REFRESHED gate) fire under --exit as under --restart, and said "respawning" (the row gate also "replaced") to a lane whose session was about to be ended. The mode words are now set once, ahead of the gates, in the block that already holds opensoft/openRepoTools#355's tmux_act_word. --restart's messages are byte for byte what they were. --exit says "ending its session would leave the register reading RUNNING for a session that has just been ended", and "ending now would leave the new session to be started with the block of a handoff this act has replaced". The gate logic and the exit code (2) are unchanged, as are :3068's words, which already name both acts. Tests, in tests/test_a23_lane_handoff.py beside the opensoft/openRepoTools#355 test: - test_the_exit_refusal_prints_its_slash_exit_word_and_runs_no_command, with a tmux ahead of the sandbox's fake one that refuses send-keys; - test_the_row_and_handoff_gates_name_the_act_their_mode_takes, for each gate under each flag, with a LANES_EDIT whose set-row-state is refused for the row gate and the existing _forcing wrapper (write-handoff exits 1, writes nothing) for the handoff gate. Controls: the same tests pointed at p3's lane-handoff (OPENREPOTOOLS_CODE_ROOT at an archive of refs/l3/queue-p3-29, so the harness copies p3's file): the /exit test fails with "/exit: No such file or directory", and the row and handoff gates fail under --exit on the old words; the two --restart cases pass on both, as they pin words that did not change. All five pass on this commit. Authority: Brett Heap's "Yes, extend it (Recommended)", as lane 3 relays it on opensoft/openRepoTools#165 (6767535266): "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." This gives no new word of Brett's. Lane: openRepoTools-5 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Reviewer's GuideImplementationUpdate lane-handoff’s refusal messages so
TestsAdd a failing
Pin the row and handoff gate wording for both modes, checking that
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
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 17 hours by commenting |
…sals-keep-their-words Lane 3 asked for this merge and a fresh CI run before landing (opensoft/openRepoTools#165, 6783977065). Lane: openRepoTools-5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. |
|
Brett approved landing #35 and #36 through one narrow real-code Mergify batch after full CI and exact-head Codex review. Queue configuration is in #42. Please leave this PR unmerged and its branch unchanged for this bounded batch; no hold on other work or repository-wide freeze is requested. This coordination does not restart, rebind, retarget or edit any lane session. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@Mergifyio queue openrepotools-real-code-35-36 |
|
@Mergifyio refresh |
|
✅ Merged into
|
✅ Pull request refreshed |
…osed-lane code#35 landed first, so this PR takes main again, as lane 3 asked (opensoft/openRepoTools#165, 6784609742). The one conflict was the tail of tests/test_a23_lane_handoff.py, where both PRs append after code#27's block. The union keeps main's block first, then this PR's, and drops no line of either. Lane: openRepoTools-5 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…tten, as `--late` does, instead of taking it from CLOSED to SWAPPING (opensoft/openRepoTools#118) (#32) A lane whose log's last lane-kind line is an `ENDED` or a `RETIRED` is closed. `lane-handoff` on it read the lifecycle's `CLOSED` as the compare-and-swap's expected value and took the lane to `SWAPPING`, then `SWAPPED`, appending a `PAUSED` after the `ENDED`: a terminal lane reopened by a `/handoff` typed in a pane that was still there. - `lane-handoff`: `--late`'s read of `lane-last` and its `ENDED` or `RETIRED` refusal move into `read_last_lane_line` and `refuse_a_closed_lane`. Every mode but `--late` calls them right after the managed-ledger seam's refusal, before the restart intent, the window, the handoff, the register, the object log or the lifecycle is touched. A closed lane exits 2 with `--late`'s words, and `--late` keeps its own order and words. - The log is the lane's state: a lane that a later `STARTED` or `RESUMED` reopened is never refused, and a `lane-last` read that fails exits 1 before any write (Amendment 7(d)). - tests/test_a23_lane_handoff.py: a closed lane is refused before any write, for the plain handoff, `--restart`, `--exit` and `--in-process`; a failed read of the last line is not an open lane; and a lane started again after its close is handed off as before. It is the option Brett Heap chose for opensoft/openRepoTools#118, "Refuse, as --late does (Recommended)". The issue stays open for the transition table its "What's open" also asks for. Lane openRepoTools-3's independent review read READY at 1915f48, after the fix round for its MUST and SHOULD, and its delta check read READY at the merge 959e21a. The merge 4d211d2 took code main 92f9e10 (#36 and #35): lane 3 checked that its tree equals git merge-tree's in every file but tests/test_a23_lane_handoff.py, which holds both sides' blocks, main's first, and Codex found no major issue there. The head 0356714 then merges code main d3c55e5 (#44 and #45, two CI changes), and its tree, 3284253, is git merge-tree's of d3c55e5 and 4d211d2, so it adds nothing of its own. Codex found no major issue at 0356714. All 18 checks that ran passed at 0356714 on main d3c55e5 (Sourcery's review was skipped and the Mergify queue check was neutral), so the tested tree is this commit's tree, 3284253. Lane openRepoTools-3 lands it under Brett Heap's standing landing word, which he extended on 2026-11-10 to lane-tooling fixes any lane writes, once lane 3 has reviewed them. Part of opensoft/openRepoTools#118 Lane: openRepoTools-5 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>



Lane: openRepoTools-5
Claim: none (no issue; lane 3's finding in its review 6778792731 on opensoft/openRepoTools#165, taken by lane 5 in 6778832343)
One commit,
37129a3, on codemain749e969. Three oflane-handoff's refusals fire under--exitbut did not read true for it, and now they do:/exitrefusal prints/exit, where it used to run the word as a command substitution;--restart's messages are unchanged, byte for byte.READY for lane 3's review. Every check is green on
37129a3: 14 of 14 passed, SonarCloud Code Analysis among them (checked 2026-11-11T00:59:18Z).The defect
Line numbers are at lane 3's queue prefix p3 (
9bfedfa). The file is unchanged from there onmain.:3109is the refusal for a/exitthattmux send-keyscould not type. It spelled the word with backquotes inside a double-quoteddiemessage, so bash ran it as a command substitution.:3081and:3083are the ROW WAS NOT FLIPPED gate and the HANDOFF WAS NOT REFRESHED gate. They fire under--exitas under--restart, and said "respawning" to a lane whose session was about to be ended.The fix
tmux_act_word.:3068's words, which already name both acts.Tests
In
tests/test_a23_lane_handoff.py, beside the opensoft/openRepoTools#355 test:test_the_exit_refusal_prints_its_slash_exit_word_and_runs_no_command, with atmuxthat refusessend-keys;test_the_row_and_handoff_gates_name_the_act_their_mode_takes, for each gate under each flag, 4 ids.Checked
37129a3;main749e969, with this commit's test file, the three--exitids fail on the old words.ab0baaf(6778832343), and re-cut ontomainbygit merge-tree.630e20c3).A merge note for lane 3
This PR's tests and #32's both append after #27's block, at the end of
tests/test_a23_lane_handoff.py. Whichever lands second needs a merge ofmainthat keeps both blocks.Authority
Brett Heap's "Yes, extend it (Recommended)", as lane 3 relays it on opensoft/openRepoTools#165 (6767535266): "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." This gives no new word of Brett's.
🤖 Generated with Claude Code
Summary by Sourcery
Fix lane handoff refusal wording for exit mode while preserving restart behavior and existing failure handling.
Bug Fixes:
/exitis printed literally and exit-mode gate messages describe ending sessions rather than respawning them.Tests:
/exitdelivery and row/handoff gate wording across both--exitand--restartmodes.