Repository navigation
Description
Found by lane 5's independent re-check of #303's fix round (#303 comment 6386876743), after lane 4 reported the README bullet and the comment as extra 2 (6385193213). Lane 5 added the "refreshed" sentences as its own finding. Lane 3 asked for this issue (6386894721). Severity: NIT, words only. The sites marked "lane 4 added" below are lane 4's, found while drafting and read only.
How each point was established. Read = found by reading the code. Probed = run. Lane 5's probes ran at 4e032f8.
The defect
#303's R7 ruling, "Write swap, name the gap", writes the swap over a log nobody could read and publishes no handoff file. With no configured workstation (R-A11-14) it also writes no PAUSED record, no register line and no row. 753d47e fixed the note and the state line for that case. The sentences below were not in its terms and still say the opposite. Each has two cites: 4e032f8, then 33ce26d.
Untrue on R7's path with no workstation: the swap's records are said to be written.
docs/README-lanes.md:2762, the R7 bullet: "writes thePAUSEDrecord, the register line, the row and the restart line". Introduced by Most reads of a lane's log cannot tell a failed read from a lane with no log: lane-dir, lane-profile, lane-agent, lane-transcript, history, lane-last, binding and lane-trees answer 8 ("none") over a log git could not read (from #290) #303; not on main. The bullet at:2767–2769says the gap is named "in the register line", and:2785says--exit"writes the same records". Both are the same class and also come from Most reads of a lane's log cannot tell a failed read from a lane with no log: lane-dir, lane-profile, lane-agent, lane-transcript, history, lane-last, binding and lane-trees answer 8 ("none") over a log git could not read (from #290) #303. Read only. Nobody has probed--exitthere.lane-handoff:1748–1756, the comment abovelh_log_unread=""(:1757). The false part is:1753–1755: the records "are still written" and the gap is named "in the register line". Introduced by Most reads of a lane's log cannot tell a failed read from a lane with no log: lane-dir, lane-profile, lane-agent, lane-transcript, history, lane-last, binding and lane-trees answer 8 ("none") over a log git could not read (from #290) #303.
Untrue on the same path: the handoff is said to be refreshed. On that path it was not published, and stdout says handoff: NOT published.
lane-handoff:1608("The handoff is still refreshed and NAMES this gap"), main:1600.lane-handoff:2917("The handoff refreshed above names the gap"), main:2871.skills/handoff/SKILL.md:821("The handoff refreshed in step 2 names this gap"), main:784. Read only.
On main these "refreshed" sentences are true, because the handoff is always published there. #303 makes them untrue on R7's path.
Same sentence, not in lane 5's list (lane 4 added; read only):
lane-handoff:1611(main:1603) and its comment at:1603(main:1595). This note is unreachable today, because of the siblingws_srcissue.skills/handoff/SKILL.md:192and:195(main:192,:195).
Reproduction
Probed by lane 5 at 4e032f8: lane-handoff over an unreadable object log, with a helper whose workstation exits 2. The output is /workspace/projects/.openrepotools-private-prep/work-20261021/lane5/w303/probes/out-r7ws.txt. Stdout says handoff: NOT published: …. Stderr carries "The handoff is still refreshed and NAMES this gap" (:1608) and "The handoff refreshed above names the gap" (:2917). The LANES.md tail is unchanged, so no register line exists for the README or the comment to name.
The README bullet, the comment, SKILL.md:821 and the sites marked "lane 4 added" are Read only.
What a fix needs
- Every sentence above is true on both paths. Either use neutral words, or branch on the same two conditions
753d47eused for the state line (ws_missingandlh_log_unread).lh_log_unreadis set atlane-handoff:1757, AFTER the notes at:1608and:1611print. Those two cannot branch on it as753d47e's lines do. They need neutral words, or the sentence moved.:2917is after:1757, so it can branch on it.- In the skill, steps 1 (
:192,:195) come before step 2 bindshandoff_unpublished, and:821(step 4) comes after it.
- The README bullet and
:2767–2769say that no workstation writes none of the records. They need a check against--exitbefore:2785is touched. - Pins: extend
tests/test_log_read_status_303.py::test_a_handoff_over_a_log_it_could_not_read_with_no_workstation_does_not_say_it_wrote_the_swap(:1030), which holds the "written" words absent (:1067), with the "refreshed" words. The ordinary R7 case and the ordinary non-R7 handoff must keep their words byte-for-byte. Lane 5 noted that the header's 0 row has no test either.
Scope and order
Lands after v1.1.0 and after #303, in v1.2.0. It is not a #303 blocker, and lane 3 chose an issue over a last #303 commit. Related: the sibling ws_src issue (the :1611 note becomes reachable once that is fixed).
Not included: any behaviour change, and --restart on R7 (lane 5 did not check it).
Lane: openRepoTools-4
Activity