Repository navigation
Description
Found by lane 5's independent re-check of #303's fix round (#303 comment 6386876743), after lane 4 reported it as extra 1 (6385193213). Lane 3 asked for this issue (6386894721). Severity: low to medium. The skill's copy of the defect (SKILL.md:193) and the test that hides it (test_lane_helpers.sh:7284, :7286) are lane 4's additions while drafting. Lane 5 did not check them.
How each point was established. Read = found by reading the code. Probed = run. Lane 5's probes ran at 4e032f8. Main is 33ce26d, and the defect's lines are the same text there, so main's result is by reading.
The defect
lanes-edit.sh workstation prints eight tab-separated fields: <workstation> <source> <host> <source> <os> <source> <container> <source> (Read: the printf at lanes-edit.sh:18211, main :17743; docs/README-lanes.md:1768, main :1743). lane-handoff wants the second one, which rung answered. Its own comment says so (lane-handoff:1593, main :1585). It reads it as:
ws_src="${ws_pair##*TAB}"
Here TAB stands for a tab character. The line is lane-handoff:1597 at 4e032f8, and :1589 on 33ce26d. ##*TAB strips the longest prefix ending in a tab, so it keeps the LAST field, the container's source (seam, kernel, outside, …), never the workstation's.
The one consumer is elif [ "$ws_src" = container-unset ] || [ -z "$ws" ] (:1609, main :1601). It can never match container-unset. In a container with no LANES_WORKSTATION, ws is the container's id and ws_missing stays empty. So none of the gates on ws_missing fire: the "NO WORKSTATION" note, the skip of the PAUSED, register and row writes (:2916, main :2870), the top block's "WERE NOT MADE" sentence (:2582, main :2556) and the --late refusal (:1936, main :1916). The gates at :2916, :2582 and :1936 were Read. Only the first of these was Probed.
It dates from 6faed35 (2026-10-02, #83, Amendment 18 acts 1-10), which grew the read from two fields to eight. Probed: git show 6faed35^:lanes-edit.sh prints '%s\t%s\n' "$WS" "$WS_SOURCE" for the verb, and 6faed35 is an ancestor of 33ce26d. That commit did not touch lane-handoff. The line came in with fcccbe0 (2026-09-14), when two fields made it right.
The skill has the same expression (Read, not probed): skills/handoff/SKILL.md:193, main :193, elif [[ "${ws_pair##*TAB}" == container-unset || -z "$ws" ]].
The shell test that pins it cannot fail. tests/test_lane_helpers.sh:7267–7286 extracts that block and feeds it a stub that prints TWO fields (abc123<TAB>container-unset, at :7284 and :7286, same lines on main). With two fields, the last is the second.
For contrast, lane:321 and lanes:448 read the second field with cut -f2. lane-start:3718 and lane-end:2396 use lanes_workstation_pair, which has two fields.
Reproduction
Probed by lane 5 at 4e032f8: the test suite's own estate (_a_lane_with_a_row_and_a_handoff) with LANES_WORKSTATION unset and LANES_IN_CONTAINER=1. The driver is /workspace/projects/.openrepotools-private-prep/work-20261021/lane5/w303/tools/drive.py <repo> <base> container, and the output is .../probes/out-container.txt.
- The read printed
'cd4c6add0230\tcontainer-unset\teagle\tseam\tlinux\tseam\tnone\tseam\n', rc 0. The script counted 8 fields, secondcontainer-unset, lastseam. lane-handoffran asworkstation=cd4c6add0230, with no "NO WORKSTATION" note, and exited 0. It committed and pushed (to the sandbox's origin)handoff(repoB-1@cd4c6add0230): PAUSED.- The helper's own writers then refused, exit 2: "this is a container and $LANES_WORKSTATION is not set". So no record was written under the container id.
lane-handoffturned that refusal into a note telling the operator to write the PAUSED line by hand. The payload in it carriesworkstation cd4c6add0230, the recordR-A11-14forbids.- The lifecycle read SWAPPING generation 1 before and SWAPPING generation 2 after.
The drafter ran one expansion check, which touches no repo file:
last=[seam]
second=[container-unset]
two-field stub: last=[container-unset]
What a fix needs
lane-handoff:1597andskills/handoff/SKILL.md:193take the SECOND field, aslane:321does withcut -f2. Nothing else in either block changes.- Pins that can fail:
- A
lane-handoffcase withLANES_WORKSTATIONunset andLANES_IN_CONTAINER=1. Lane 5'scontainerscenario is the model. It assertsws_missingis set: the "NO WORKSTATION" note, no PAUSED, register or row write attempted, "WERE NOT MADE" in the top block, andworkstation=<none>. - The stub at
tests/test_lane_helpers.sh:7284and:7286prints all eight fields, as the real helper does.
- A
- Must not change: the ordinary path with
LANES_WORKSTATIONset (byte-identical); theNO WORKSTATION READbranch for a read that failed; the first-two-fields contract.
Scope and order
Lands after v1.1.0 and after #303, in v1.2.0. It is not #303's. It predates R7, and #303's 1004 case (753d47e) reaches ws_missing only through a failed workstation read, which is why that case is rare. After this fix, the container case reaches it too.
It meets the sibling words-only issue. The elif note at lane-handoff:1611 is unreachable today and carries the same "handoff is refreshed" sentence that is untrue on R7's path. Whichever lands first, check the other.
Not included: any wording change, and the other lane-handoff paths.
Lane: openRepoTools-4
Activity