Repository navigation
lane-start's transcript follow counts a holder only when transcript-holders verifies it, not on kill -0 (#56) - #203
Merged
Conversation
…older only when transcript-holders verifies it (#56); the lane-start fix is not yet made Adds an ended-record case, a recycled-pid (procStart mismatch, Linux only) case and the transcript-holders exit-3 and exit-2 cases beside the LV fixture. They are written before the fix and not yet run. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…olders verifies it, not on kill -0 (#56) follow_transcript refuses to move a transcript out of another profile when a live process holds it (Amendment 18(h)). live_holders_of_id decided "live" with `kill -0` alone, one of the three tests the estate's liveness contract (record_is_live) makes, so an ended record or a recycled pid read as a live holder and refused a lane nothing held. live_holders_of_id now asks `lanes-edit.sh transcript-holders <id>` (#52), the way dup_check already does: exit 8 is none, exit 2 is an old helper (a note, carry on), and any other nonzero sets FOLLOW_WHY and refuses with 2. It sets a LIVE_HOLDERS global and is called without a subshell so the refusal survives. The earlier tests added in the previous commit now pass. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Reviewer's GuideThe PR makes File-Level Changes
Assessment against linked issues
Possibly linked issues
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 2 hours and 49 minutes by commenting |
…so CI tests this PR on today's main GitHub's refs/pull/203/merge stayed on aaa7bc8 after main moved, so a re-labelled run tested the old base. A head that contains main is tested on it whatever base the run merges with. Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Oct 18, 2026
…le's (#55) (#201) Landed on Brett Heap's word "land #200 #201 #203 when green" (2026-10-17), by lane openRepoTools-5. Required Linux CI (guard-launch-mode, tests, tests-no-submodule; run 39079829533) was green on head afe2eb7 with main 2732d59 in its tree. Main has since moved to 83d2690 only through files this PR does not change. Independent review (lane 5, Opus, of f42b982; the merge of main adds nothing to the PR's diff): LAND, no blocking defect. Closes #55 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…so CI tests this PR on today's main Main moved through files this PR also changes (#199 or #216, and #201) after the last green run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…so CI tests this PR on today's main Main moved through tests/test_lane_helpers.sh (#215) after the last green run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…so CI tests this PR on today's main Main moved through the suite's machinery (#229's tests/test_repo_hygiene.py) and the openRepoShape pin (v1.1.0) after the last green run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
brettheap
added a commit
that referenced
this pull request
Oct 18, 2026
…rename the only act there is (#78, #79) (#200) Landed on Brett Heap's word "land #200 #201 #203 when green" (2026-10-17), by lane openRepoTools-5. Required Linux CI (guard-launch-mode, tests, tests-no-submodule; run 39089233488) was green on head d745325 with main f595e44 in its tree. Main has since moved to cb3a2c7 only through files this PR does not change. Independent review (lane 5, Opus, of 28937d2; the merges of main add nothing to the PR's diff): LAND, no blocking defect. Closes #78 Closes #79 Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap
pushed a commit
that referenced
this pull request
Oct 18, 2026
Brings in cb3a2c7 (#203, lane-start's transcript follow counts a holder only when transcript-holders verifies it) and f5c3bcd (#200, every shell block in the handoff skill parses) on top of f595e44. Neither touches a file this branch changes, and git merged with no conflict. lane-start's seven rung-5 reader lines, which test_t018_the_legs_reader_is_lane_starts_rung_5_line_for_line holds equal to lanes-edit.sh's legs reader, are byte-identical at f595e44 and f5c3bcd. bash -n passes on lane-start and tests/test_lane_helpers.sh, the two shell files the merge touches. Lane: openRepoTools-3 Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap
pushed a commit
that referenced
this pull request
Oct 18, 2026
… this PR on today's main The branch was cut from f87fd5a; main has since moved fourteen commits, through lane-start (#203's verified transcript holders), lanes-edit.sh, the lanes docs and tests/test_lane_helpers.sh, the same four files this PR edits. The merge is clean, and it lets the required checks run against the main this PR would land on. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 18, 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.



What was wrong
lane-start'sfollow_transcriptrefuses to move a transcript out of another profile'sprojects/when a live process holds it (Amendment 18(h)). It askedlive_holders_of_id, which read every profile'ssessions/*.jsonitself and decided "live" withkill -0alone. That is one of the three tests the estate's liveness contract makes (record_is_live: status not ended, the pid answers,procStartstill the one the record wrote). So a record whose status wasended, or whose pid had been recycled onto some other process, counted as a live holder and refused the lane with "a LIVE process there holds it" and the retire act, about a process that is not that session. The read is fail-closed, so the cost was a refusal, never a corruption.Evidence: on unmodified
lane-start, the new cases below fail. The ended record and the recycled-pid record each get rc 2 where 0 is expected, and atranscript-holdersthat exits 3 is not read as a refusal at the follow (the transcript is moved, and the run then dies atdup_checkwith rc 1).What changed
live_holders_of_idnow askslanes-edit.sh transcript-holders <id>(built in #52), the waydup_checkalready does, and reads its exits the same way:dup_checkdoes;FOLLOW_WHYis set and it returns 2, failing closed.Rows are read by their format only (
pid US kind US tgt US profile US where US verdict US file). Every row counts, whatever its verdict, so a change to which verdict a row gets cannot change this. It prints the raw tmux target (field 3), andbgwhere the record names none (transcript-holderswritesnone), which is what the refusal text said before. It now sets aLIVE_HOLDERSglobal instead of printing, andfollow_transcriptcalls it without$( ), because a subshell would lose theFOLLOW_WHYit sets. The doc comment, which described thekill -0scan, is rewritten.PROFILES_HOMEstays, becauseprofile_projects_dirsstill uses it.Known limit, shared with
dup_checkand not fixed here:lanes-edit.sh'ssession_fileswalks$HOME/.claude-profiles/profilesand$HOME/.claude/sessionsand does not readCLAUDE_PROFILES_HOMEorCLAUDE_CONFIG_DIR, which the old scan here honoured (Copilot round 1 on #47). On a workstation that moved the profile store,transcript-holderswould see no records, here and indup_check. That belongs in a change tosession_files, not this one.Functions and regions edited:
lane-start:live_holders_of_id(rewritten, plus its doc comment, and the newLIVE_HOLDERSglobal above it)lane-start:follow_transcript(the one call site, at the live-holder check)tests/test_lane_helpers.sh: newseed_follow_lanehelper and four new case groups after the existing LV ("a LIVE process holds it") assertions, before the--dry-runcaseTests
Added to
tests/test_lane_helpers.sh, each with its own lane and a transcript in another profile'sprojects/:repoEN: a record with statusendedand a live pid is not a holder, so the transcript is followed (moved) and no refusal is printed.repoPS: a record whoseprocStartis not the pid's own is not a holder. This runs only where/proc/<pid>/statis readable (pid_aliveskips the third test elsewhere, so macOS gets askipthat says why).repoTF: atranscript-holdersthat exits 3 refuses with rc 2, names "transcript-holders exited 3", passes the helper's stderr through, and moves nothing.repoTF: the same helper exiting 2 carries on with the "has notranscript-holders(exit 2)" note and follows.othersess:@99.%99, with the retire act and nothing moved) is unchanged and still passes.Fail-before and pass-after were proved in isolation, not with the full suite. A scratch slice of
tests/test_lane_helpers.sh(its setup, the a17 fakes, the LV block and the new block) ran in a temp$HOMEwith temp bare repositories, withLANES_EDIT,LANES_WORKSPACE_ROOT,LANES_REPOandLANES_LANEunset:lane-start):10 passed, 12 failed; the ended, recycled-pid and exit-3 cases failed as described above.22 passed, 0 failed, 0 skipped.Also:
bash -n lane-startpasses, andtests/test_repo_hygiene.pypasses (152 tests, run on its own).Closes #56
🤖 Generated with Claude Code
Summary by Sourcery
Use verified transcript-holder results when deciding whether a transcript can be followed between profiles.
Bug Fixes:
Enhancements:
Tests: