Repository navigation
Open
Milestone
Description
This comes from lane 3's review of lane 4's #309 phase-2 code (#309 comment 6371845187, finding 768). It is filed on Brett Heap's approval, "yes, file the issues", given in lane 3's session at about 20:13Z on 2026-10-23.
Under the mutex and before it writes, rename-lane already refuses a restart record it cannot read ("restart intent could not be read. Nothing was written."). It does so at #291's head 3e97ae5 (lanes-edit.sh:15800) and at #309's head da0ffa2 (:15825). This issue is a later check in the same rename, which still reads a blocked file as absent. #309 leaves it as it is.
What is wrong (at da0ffa2, #309's head; the same at 3e97ae5)
- The later check. After the rename has landed,
lane_state_rename(lanes-edit.sh:13962atda0ffa2) asks again whether the old name has a restart history, with[ -e "$lsn_old/restart-intent.yaml" ] || [ -L … ](:14001). With a history, it keeps the completed record where it is and moves the other parts. Without one, the whole control root moves.[ -e ]and[ -L ]both answer false for a file under a directory nobody can search, so a blocked read looks the same as no restart history. - The scenario. A control root is readable at the up-front check, so that refusal does not fire. It then turns unsearchable before the later check, but its own entry is still found.
- The later check reads "no restart history", and the whole root moves to the new name,
restart-intent.yamlincluded. - A completed restart intent written for
repoA-1now sits underrepoA-3.restart-intent repoA-3reads it as INCOMPLETE ("missing lane").
- The later check reads "no restart history", and the whole root moves to the new name,
- Evidence. The reviewer's probe (
probe309c.py, in lane 3's review folderrv-c302-309-work/probes/) gives the same output at base and at head. Nobody has run it at33ce26d. - Not checked: whether the same blindness reaches the part lookups for
treesandlane-state.yamlin the same function.
Direction
- Tell "cannot be seen" from "not there" in the later check, with A lane control root that cannot be searched reads as "no trees", so an inventory sync removes its rows (from #289's review) #291's
lookup_blocked, as A control root nobody can search reads as an empty one in two writers: rename-lane leaves the lifecycle records behind without a word, and set-lane-state's fence says 7 for a race that never happened (from #291) #309 does in the writers it fixes.- A blocked read moves nothing, names the blocked directory in A control root nobody can search reads as an empty one in two writers: rename-lane leaves the lifecycle records behind without a word, and set-lane-state's fence says 7 for a race that never happened (from #291) #309's wording, and says what is left for a person to do.
- It never moves a restart history as if there were none.
- Check the
treesandlane-state.yamlpart lookups for the same reading, and give them the same rule where it applies. - Keep the exit status
rename-lanehas after A control root nobody can search reads as an empty one in two writers: rename-lane leaves the lifecycle records behind without a word, and set-lane-state's fence says 7 for a race that never happened (from #291) #309. The new words are notes on stderr, like A control root nobody can search reads as an empty one in two writers: rename-lane leaves the lifecycle records behind without a word, and set-lane-state's fence says 7 for a race that never happened (from #291) #309's. - Order. It lands after A lane control root that cannot be searched reads as "no trees", so an inventory sync removes its rows (from #289's review) #291 and A control root nobody can search reads as an empty one in two writers: rename-lane leaves the lifecycle records behind without a word, and set-lane-state's fence says 7 for a race that never happened (from #291) #309, whose helper and wording it reuses. It also lands after any act 2 slice that rewrites
lane_state_rename. - Review.
lanes-edit.shis lane 3's tooling, so lane 3 reviews the design before any code. Lane 3's refined lock-lines term (Triad migration (feature 004-migrate-to-triad): execution tracking under Brett Heap's word of 2026-10-07 #186 6352336244) applies.
Not started: v1.2.0 work waits for the v1.1.0 tag and Brett's word.
Metadata
Metadata
Assignees
Labels
No labels
Activity
brettheap commentedon Oct 23, 2026
A note for whoever takes this issue (lane 3's finding 961, from the re-check of #309's fix commits).
docs/README-lanes.md:3560–3562says to "movelane-state.yamlandtrees/to the new name by hand". It does not say to create the new folder first.c5d3df6: "create … first, then move its lane-state.yaml and trees/ into it by hand and leave any restart-intent.yaml where it is".Lane: openRepoTools-3