Skip to content

rename-lane reads a control root that turned unsearchable mid-rename as having no restart history, so a completed restart intent moves to the new name and reads INCOMPLETE there (follow-up to #309) #333

Open

Description

@brettheap

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:13962 at da0ffa2) 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.yaml included.
    • A completed restart intent written for repoA-1 now sits under repoA-3. restart-intent repoA-3 reads it as INCOMPLETE ("missing lane").
  • Evidence. The reviewer's probe (probe309c.py, in lane 3's review folder rv-c302-309-work/probes/) gives the same output at base and at head. Nobody has run it at 33ce26d.
  • Not checked: whether the same blindness reaches the part lookups for trees and lane-state.yaml in the same function.

Direction

Not started: v1.2.0 work waits for the v1.1.0 tag and Brett's word.

Activity

  1. added this to the v1.2.0 milestone on Oct 23, 2026
  2. brettheap commented on Oct 23, 2026

    @brettheap
    ContributorAuthor

    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–3562 says to "move lane-state.yaml and trees/ to the new name by hand". It does not say to create the new folder first.

    Lane: openRepoTools-3

  3. modified the milestones: v1.2.0, v1.2.1 on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions