Repository navigation
Amendment 13: the register row says where a lane IS in one line, and its diary moves to the lane's own log — set-row-state, NOTED/RULED, history, migrate-state-cells; append-row-status retired - #82
Conversation
…and its diary moves to the lane's own log (Amendment 13) The `state` column was defined as a cell and used as a diary. Measured on Eagle the day the amendment was drafted: `lanes/LANES.md` was 1,141,283 bytes over 46 rows, its longest row 96,228 characters, and one lane's cell 7,016 characters after ONE day — three different things in one column (the lane's CURRENT state, which Rule 6 reads; a running narrative; and rulings quoted verbatim), appended for ever with ` · `, never replaced, in a table nobody can read in the table. Re-measured on 2026-09-15, before this: 1,335,595 bytes over 52 rows. lane-collision-protocol Amendment 13, in force 2026-09-13T21:08:36Z on Brett Heap's word "Ratify as drafted (Recommended)", with O1, O2 and O3 as recommended. This is its tooling, #29. **(a) The cell is ONE PHRASE, replaced on every write.** `lanes-edit.sh set-row-state <lane> "<STATE> · <one line>"` stamps the UTC itself and REPLACES the cell. STATE is one of LIVE, PAUSED, LANDING #<n>, LANDED, ENDED, RETIRED, HANDED OFF — Rule 6's reading of the cell is unchanged and is now the whole of what the cell says at that moment. The line is at most 240 characters (ratified decision O1) and carries neither a `|` nor a second ` · `. `append-row-status` is RETIRED and refuses, naming `set-row-state` for the state and `log NOTED` / `log RULED` for the narrative, so the cell can never grow again — because the act that grew it is gone, not because every caller remembered. WHICH TEXT IS THE STATE CELL is decided by splitting the row on ` | `: a seven-column row has exactly six separators, and then the two readings of the row — six from the left, the last cell from the right — are the same text. A row with more carries a ` | ` inside a cell, the two readings disagree about which text to overwrite, and it is REFUSED by name rather than written at a guess. Of the live register's 52 rows, 50 split cleanly. **(b) The narrative goes to the lane's own log**, under two new Amendment 7 verbs: `NOTED` (a status note) and `RULED` (a ruling, verbatim, with the object it bears on as its payload — canonicalised through `repos.tsv` like every other object this tooling writes). Both are lane-kind lines whose object is the lane. NEITHER IS A TRANSITION, so no reader's state moves because one was written: `who`, `lane-end` and `lanes` take a whitelist of the five lane verbs already, and `swapped_candidates` — the one reader that took a lane's last lane-kind line whatever its verb — skips the two by name. Without that, a lane that noted anything after its swap would have vanished from `swapped`, which is what `restart` reads to find the lane whose window name a new tmux session has lost. **(4) `lanes-edit.sh history <lane> [--since <UTC>]`** prints them in FILE order (R14), which is the diary the cell used to be; 8 for a lane that has written none, 64 for a caller's bad arguments. **(e) `lanes-edit.sh migrate-state-cells`** — the ONE act, a DRY RUN unless `--yes`. Per row it splits the cell on ` · `, writes `RULED` for an entry beginning RULING/RULINGS/RATIFIED and `NOTED` for the rest, takes the UTC from the entry's own leading timestamp (the row's `started` where it has none), the session from the LAST uuid of the row's session cell and the workstation from the row's own column; then replaces the cell with the state the last entry's leading verb names, else `MIGRATED`. ONE commit carries the archive `lanes/archive/LANES-pre-amendment-13-<UTC>.md`, every log it appended to and the register, so the narrative exists three times over. It REFUSES when no cell holds a ` · ` entry it can take, and a row it cannot take is SKIPPED and NAMED, its cell untouched, so a re-run after that row is settled migrates exactly it. Measured on a COPY of the live register (the act is Brett Heap's to run, on his word, after this is installed on both workstations — O3): 52 rows read, 20 migrated, 28 already one phrase, 4 skipped; 2,206 lines (2,158 NOTED, 48 RULED) into 20 logs; 782,465 characters of state cell become 1,495; one commit of 22 files; 1,336,371 bytes of register become 555,401. THE CALLERS ALL MOVE, because a retired verb with a caller is a broken command: `lane-start`'s Amendment 6(c) stamp, `add-row`'s brand-new row (born in the phrase rather than opening with the bare word `STARTING`), `lane-end`'s closing write — which now carries `RETIRED` itself, so `--retire`'s second write and the `--state-was` anchor it needed are gone — `lane-handoff`'s swap (one write where it made two guesses at a cell that was a history), the `/handoff` skill, and the name guard's MOVED marker. Two measurements decided details that are not obvious from the amendment: * `${row#"$body"}` — removing a literal prefix — walks every prefix length in turn, so splitting one 90,751-character row cost ELEVEN SECONDS, and a dry run of the migration ninety-four. `${row:${#body}}` is linear and the same answer: 5 seconds for the whole register. * A line cut with `${s:0:n}` can land INSIDE a character, because that counts BYTES wherever the locale is not a UTF-8 one — and these lines are full of `—`, `·` and `→`. Every caller cuts back to the last space, which takes the fragment with it. Tests: a new section in `tests/test_lane_helpers.sh` for each act, the migration on its own seeded workspace (it rewrites every row of the register it is pointed at, so it may not be pointed at the suite's own). The cases that asserted the old shape are re-pointed, and the two that asserted the PATHOLOGY — a row carrying one uuid three times because every stamp was appended — now assert the two it carries, which is still not one, which is why the session-cell append stays cell-scoped. Docs: `docs/README-lanes.md` gains "The row is current state; the log is history (Amendment 13)" and its writer lists, row-format paragraph, `lane-start` step 5 and `lane-end` paragraph follow. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
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 days and 13 hours by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuideAmendment 13 changes register state cells into concise replace-in-place current-state phrases, moves narrative history and rulings into per-lane logs, retires append-row-status, and provides a dry-run/atomic migration path with updated callers, documentation, and extensive tests. Sequence diagram for setting lane state and recording historysequenceDiagram
participant Caller
participant Writer as lanes-edit.sh
participant Register as LANES.md
participant Log as lanes/log/<lane>.md
Caller->>Writer: set-row-state <lane> "<STATE> · <one line>"
Writer->>Writer: row_state_check
Writer->>Register: replace_line
Writer->>Writer: commit_push
Caller->>Writer: log NOTED or RULED
Writer->>Log: append lane-kind event
Caller->>Writer: history <lane> [--since <UTC>]
Writer->>Log: lane_log_events
Log-->>Writer: NOTED and RULED lines in file order
Writer-->>Caller: filtered history
Flow diagram for migrating diary state cellsflowchart TD
Start([migrate-state-cells]) --> DryRun{--yes supplied?}
DryRun -->|No| Read[Read and validate register rows]
DryRun -->|Yes| Read
Read --> Eligible{Migratable diary cell?}
Eligible -->|No| Skip[Name skipped row; leave cell untouched]
Eligible -->|Yes| Convert[Convert entries to NOTED or RULED log lines]
Convert --> Replace[Replace cell with current state phrase]
Replace --> Report[Report rows, logs, and size changes]
Skip --> Report
Report -->|Dry run| EndDry([Write nothing])
Report -->|--yes| Archive[Write pre-Amendment-13 archive]
Archive --> Append[Append lane histories]
Append --> Commit[commit_push one atomic commit]
Commit --> EndWrite([Migration complete])
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate correctness issues remain in state parsing, cleanup, truncation, migration, and lifecycle writers.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Implements Amendment 13 by separating bounded lane state from per-lane history logs.
Changes:
- Adds state replacement, narrative logging, history, and migration commands.
- Updates lifecycle and handoff workflows.
- Expands tests and documentation.
File summaries
| File | Description |
|---|---|
tests/test_repo_hygiene.py |
Verifies shared state-line logic. |
tests/test_lane_helpers.sh |
Adds coverage for Amendment 13 workflows. |
skills/handoff/SKILL.md |
Updates handoff behavior and state writes. |
lanes-edit.sh |
Implements state, logging, history, and migration logic. |
lane-start |
Writes bounded current-state phrases. |
lane-handoff |
Updates handoff state handling. |
lane-end |
Writes closing state updates. |
docs/README-lanes.md |
Documents the revised state and history model. |
Review details
Suppressed comments (9)
docs/README-lanes.md:1847
- This section makes
<STATE> · <UTC> · <one line>the invariant, but the earlier "How to write to the registry" example still tells users to create a new row withadd-row ... | ACTIVE |(README-lanes.md:158). Following that documented command creates a legacy bare cell that this new format retires, and the migration currently labels it "already one phrase"; update the example or route new rows through the phrase-producing lifecycle path.
`STATE` is one of `LIVE`, `PAUSED`, `LANDING #<n>`, `LANDED`, `ENDED`,
`RETIRED`, `HANDED OFF`. **Rule 6 is unchanged** and is now the whole of what
the cell says at that moment. The line is at most **240 characters** (ratified
decision O1) and carries neither a `|` (it would forge a cell boundary) nor a
second ` · ` (it would read back as a fourth part of the phrase).
lane-end:1120
- This message tells the operator to read an "archived cell", but this
lane-end --forcepath creates no archive; it only replaces the row, and the migration archive is unrelated and may not exist. After the forced write there is no file to inspect under that name, so point to the previous row in git history or create an actual archive before overwriting.
state_line="lane-end on $ws: window closing; ENDED WITH --force while the state cell of $cell_source still showed an open $cell_word; read the archived cell before trusting it"
lane-handoff:1004
payloadcan contain a literal pipe from the recorded directory/path, but this conversion only replaces·. The followingset-row-staterejects that pipe, so a handoff can successfully write its log/file records and then leave the row state unset. Sanitize pipes before calling the setter, keeping the row writer's no-cell-boundary invariant.
hs_line="$(cut_to_line "${payload// · /; }")"
lanes-edit.sh:7029
- The fallback only recognizes
YYYY-MM-DDaftermig_lead_utcfails, so the explicitly documentedstartedvalue2026-09-04 ~15:30Zis converted to2026-09-04T00:00Z. Entries without their own timestamp are therefore migrated with the wrong event time, which also makeshistory --sincefilter them incorrectly. Parse the~HH:MMZform before the date-only fallback and cover it with a regression case.
case "$MIG_TRIM" in
[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]*) printf '%sT00:00Z' "${MIG_TRIM:0:10}" ;;
esac
lanes-edit.sh:6629
- This guard writes the destination name directly into a state line without the 240-character cut used by the other lifecycle writers. Lane names are accepted without a length bound, so a sufficiently long valid
$ga_tomakesset-row-staterefuse after the window has already been renamed andlane-starthas run, leaving the old lane unmarked as PAUSED. Apply the same bounded/safe state-line construction here before invoking the setter.
if "$RESOLVED" set-row-state "$ga_from" "PAUSED · this window moved to lane $ga_to; the session named $ga_to answered yes at the guard" >&2; then
lanes-edit.sh:7374
- The migration scans every row and builds all log blocks and replacement lines before acquiring the shared lock below. Another lane writer can commit between this scan and line 7374, so this act can archive the newer register but then overwrite a newer state with its stale cell snapshot and append history that was already recorded. Acquire the same lock before the write-mode snapshot (or re-read/revalidate while holding it) so the read set and the one commit are serialized.
acquire_lock
lanes-edit.sh:7315
- This generated phrase is not checked with
row_state_checkor bounded to O1's 240-character line cap.check_lane_nameaccepts arbitrarily long valid names, so a sufficiently long lane name makeshistory in lanes/log/<lane>.mdexceed the cap and leaves an invalid Amendment 13 state cell after migration. Skip/refuse rows whose generated phrase is too long, or use a bounded replacement that still points readers to the log.
msc_new="$msc_state · $msc_utc · history in $msc_rel"
skills/handoff/SKILL.md:528
- The skill also passes the payload directly to
set-row-stateafter only replacing·. A directory or other payload field containing|is valid input but is rejected by the state-cell writer, so the handoff can refresh its other records while failing to mark the row PAUSED. Encode pipes here before the setter, consistently with the row format contract.
hs_line="${payload// · /; }" # the cell's own separator, never inside the line
tests/test_repo_hygiene.py:296
- The tuple only checks
lane-start,lane-end, andlane-handoff, butskills/handoff/SKILL.md:528-534contains a fourth copy of this truncation logic and directly invokesset-row-stateat:547. A future edit can make the documented/handoffwriter disagree with the three commands while this invariant test stays green; include that snippet in the drift check or eliminate the duplicate.
writers = ("lane-start", "lane-end", "lane-handoff")
blocks = {name: block(REPO / name) for name in writers}
- Files reviewed: 8/8 changed files
- Comments generated: 5
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…refuses, lane-end reads the phrase's STATE and not its prose, LANDING #<n> ends where the word does, the staging goes, and a one-word cell is not "already the phrase" FIVE FINDINGS, ALL ACCEPTED. * **lane-end read the WHOLE cell for a merge hold.** The one path that still decides a hold from words — a lane with no object log — scanned every character of the state cell, so an Amendment 13 phrase whose LINE says "waiting for LANDING #7" was a false hold and the lane could not be closed. The line is PROSE; the STATE is where the lane is. A cell whose second ` · ` field is exactly an instant is the phrase and only its state part is scanned; a legacy diary cell is unchanged and still scanned whole. Both readings of the row — this checkout's and the published one — take it. * **A `|` in a launch flag or a directory reached `set-row-state`**, whose contract refuses every pipe, so a normal start would rename the window and then fail to stamp the row. The shared cut now fixes ALL THREE things that writer refuses — ` · ` spelled `; `, `|` spelled `¦`, and the 240-character cap — so no caller has to remember any of them, and the three copies stay byte-identical under the hygiene test that holds them together. * **`LANDING #123abc` derived the state `LANDING #123`** — a merge hold Rule 6 would read, out of an entry that names no PR at all. The number now ends where the word ends, exactly as `state_word_is_valid` bounds the other six. * **The staging directories were never removed.** `append_text_block` allocated one per lane (a whole copy of that log) and `migrate_state_cells` one per run, and a DRY RUN left them behind while reporting that nothing was written — on the live register that is twenty copies a run. Both are removed where their work is done; a refusal still keeps them, as every other refused write here does, because a refused write is evidence. * **A one-word cell is not "already the phrase".** `ACTIVE` and `LIVE` have no diary to move, so this act leaves them alone — but they are NOT `<STATE> · <UTC> · <one line>`, and reporting them together with the cells that are said the register was compliant when a third of it is not. The two are counted and reported apart, with the sentence that says what the one-word cells still owe: the next set-row-state on each lane writes it. Tests: the shared cut as a unit (the broken bar, the word-boundary cut, the marker); `lane-end` on a phrase whose line mentions a landing, on a phrase whose STATE is one, and on a legacy diary cell; the migration's sixth row, whose `LANDING #123abc` derives no landing; the report's two counts; and the dry run leaving no staging directory behind. The Amendment 13 section: 196 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…n rule and its own test `test_the_suite_descriptions_run_no_command_of_their_own` caught one line of the round-1 tests: a description reading "…and `LANDING #123abc` derives no landing" is a description bash runs `LANDING #123abc` inside, leaving a hole where those words were. The rule is one file over and the test is what holds it; this is the escape it asks for. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate findings remain in state writing and migration safety.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (5)
lane-start:2523
- This shared cutter never normalizes CR/LF, but
set-row-staterejects both.lane-startaccepts arbitrary arguments after--andquotedpreserves literal newlines in the launch command, so a multiline prompt reachesstate_line; after the session-cell append, the replacement is refused and the lane remains unstamped. Flatten newline characters before applying the cap, and mirror the fix in the other copies.
cut_to_line() { # <line> — the row's one line, safe to hand to set-row-state
ctl="${1// · /; }"
ctl="${ctl//|/¦}"
[ "${#ctl}" -gt 230 ] || { printf '%s' "$ctl"; return 0; }
lanes-edit.sh:8556
lane_log_eventscan return success even whenLOG_AWKemitsunreadable:diagnostics, because the parser reports its bad-line count on stderr without a nonzero exit. If a log contains only malformed lines (or malformed lines plus noNOTED/RULED), this path continues and the empty result exits 8, misreporting a failed read as “no narrative” instead of failing closed as the command contract requires. Propagate the parser's unreadable status or inspect the diagnostics before returning 8.
hi_lines="$(lane_log_events "$lane")" || hi_rc=$?
case "$hi_rc" in
0) : ;;
2) exit 2 ;;
*) die "history could not read lane $lane's log (exit $hi_rc). That is NOT 'this lane has written no narrative' — a read that failed is never an answer (Amendment 7(d))." 1 ;;
lanes-edit.sh:7337
- This generated phrase bypasses
row_state_check, so it never enforces the 240-character line cap thatset-row-stateapplies.check_lane_namepermits arbitrarily long names; a valid long lane can therefore be migrated to a nonconforminghistory in lanes/log/<lane>.mdline, leaving a state cell that the normal writer could not create. Validate the generated line and skip/refuse or shorten it while preserving an unambiguous history pointer.
msc_state="$(mig_lead_state "$msc_last")"
[ -n "$msc_state" ] || msc_state=MIGRATED
msc_new="$msc_state · $msc_utc · history in $msc_rel"
printf '%s%s%s%s%s%s%s\n' "$msc_n" "$US" "$msc_new" "$US" "$msc_head" "$US" "$msc_tail" >> "$msc_tmp/cells"
lanes-edit.sh:7029
- This date-prefix branch silently turns any
startedvalue beginning with a date into midnight, even though the migration comments document values such as2026-09-04 ~15:30Z; an untimestamped diary entry from that row is therefore logged at00:00Zinstead of its recorded start. For unsupported or missingstartedvalues, the later fallback tomsc_utchas the same problem. Parse each supported row-started format explicitly and skip/refuse a row that cannot provide its actual start time.
case "$MIG_TRIM" in
[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]*) printf '%sT00:00Z' "${MIG_TRIM:0:10}" ;;
esac
skills/handoff/SKILL.md:539
- The handoff skill's copied cutter has the same missing newline guard.
dircan come fromWORKBENCHES_CLAUDE_LANE_DIRwithout a newline validation; if it contains one, the log writer andset-row-staterefuse the record and the skill proceeds without a PAUSED row. Normalize CR/LF here as well and keep this copy covered by the shared writer check.
hs_line="${payload// · /; }"
hs_line="${hs_line//|/¦}"
if [[ ${#hs_line} -gt 230 ]]; then
hs_line="${hs_line:0:230}"; hs_line="${hs_line% *} ..."
fi
- Files reviewed: 8/8 changed files
- Comments generated: 3
- Review effort level: Lite
… as well as its write, an untracked target log is a peer's work and is skipped, and the cut flattens a newline THREE FINDINGS: two accepted, one half-declined with the code that already refuses it. * **The scan and the write were two different moments.** The act read every row's LINE NUMBER and cell, and then rewrote those lines BY NUMBER — with the mutex taken between the two. A peer's `add-row` or `replace-in-row` landing in this checkout in that window moves the lines under it, and `replace_line` then rewrites the wrong row: its one-line proof holds for the line it was given, not for the row a person meant. The lock and the register's capture now come BEFORE the scan, so what is read is what is committed. THE DRY RUN TAKES NO LOCK: it writes nothing, and a read that holds the estate's one register mutex for the seconds this scan takes is a read that blocks every lane's write to say what it would have done. * **An untracked target log is somebody's uncommitted work.** A TRACKED log that is dirty was already refused for the whole run — `refuse_dirty_checkout` exempts the register alone and `tracked_dirty` reads staged and unstaged alike — but an untracked file is in neither list, and appending to it here would put a peer's first lines into this migration's one commit under this migration's message. That row is now SKIPPED and the file named, as the other five reasons are, and its cell keeps every character, so a re-run after the peer commits migrates exactly it. * **The cut flattens CR and LF.** It is the fourth thing `set-row-state` refuses, beside ` · `, `|` and the 240-character cap: a row is ONE line of a table, so a newline in its text would split it in two and every row after it would be read as a lane. The register write was already fail-CLOSED on it (the writer refuses), which cost the row its state rather than corrupting it; now the caller spells it `; ` and the row is written. The OTHER half of that finding — `lane-handoff`'s free-form `--why` reaching `append-line`, whose one-line proof fails AFTER the append — predates this PR (it came with #47's `lane-handoff`, whose `sanitize` replaces ` — ` and nothing else) and is filed rather than fixed inside a diff about the state cell. Tests: the cut flattening a newline; a row whose object log is untracked skipped and named, then migrated once the peer commits it. The Amendment 13 section: 200 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…on $ctl now that CR and LF go first, and the newline is pinned too
The test I added in the same breath as the block is what caught the refactor — it
asserted `${1// · /; }` and the block spells it `${ctl// · /; }`, because the
CR/LF flattening now runs before it. That is the test doing its job one round
early; the assertions name the four substitutions as they are, newline included.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved correctness, concurrency, migration, parser, and documentation issues remain.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (7)
Previously missed (4) — in code that hasn't changed since the last review.
lanes-edit.sh:7029
mig_started_utcdoes not parse the repository's documentedYYYY-MM-DD ~HH:MMZform:mig_lead_utcrejects it, then this broad date-only branch returns midnight (T00:00Z). A diary entry without its own timestamp is therefore migrated with the wrong UTC, changing file-history ordering andhistory --sinceresults. Add an explicit~HH:MMZbranch before the date-only fallback.
lanes-edit.sh:7336- The migration builds the replacement phrase directly from the log path, but
check_lane_nameallows arbitrarily long valid names. For a sufficiently long lane this makeshistory in $msc_relexceed the 240-character line cap, so--yeswrites a state cell thatset-row-stateitself would reject. Validate the generated line against the cap and either apply the same safe truncation or skip/refuse that row before writing.
lanes-edit.sh:8564 - When the log contains only malformed/unreadable lines,
lane_log_eventsstill returns 0 becauseparse_log_streamreports the problem on stderr without a nonzero status. The filtered output is then empty and this returns 8, incorrectly telling callers that the lane has no narrative instead of failing closed as required by the read contract. Propagate or detect the parser error before using 8 for an empty result.
docs/README-lanes.md:463 - The new text says
--retireperforms the same whole-cell write, but the paragraph immediately below still documents the old behavior of replacing only the leading state word, preserving cell history, and requiring an exact--state-wasrerun. This contradicts the new implementation and gives operators obsolete recovery instructions; update or remove that paragraph.
lane-end:962
- This discriminator treats any cell whose second
·field is exactly a timestamp as an Amendment 13 phrase. However, migration explicitly supports timestamp-only diary entries, so a valid legacy cell such asACTIVE · 2026-09-12T10:00Z · LANDING #7is reduced toACTIVE;lane-endthen misses the open hold and closes the lane. Use a strict/unambiguous phrase discriminator or define how this legacy shape is handled before stripping the cell.
[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]Z | [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]Z)
cfs="${cfs%% · *}" ;;
lanes-edit.sh:7112
- This predicate treats any three-part
<STATE> · <UTC> · <line>value as already migrated, but it does not enforce the line's Amendment 13 constraints. A pre-existing phrase containing a|or a line longer than 240 characters is therefore skipped forever, even thoughset-row-staterefuses both and the register remains out of shape. Include the pipe and length checks before classifying the cell as compliant.
case "$mcp_c" in *' · '*) return 1 ;; esac # a fourth part is not the phrase
lanes-edit.sh:7522
- Although the block below claims the retired verb refuses before workspace resolution,
append-row-statusis omitted from the early dispatcher exceptions and therefore reaches the generic workspace/register guard first. Invoking the retired command outside a configured estate will get the generic refusal instead of the required message namingset-row-state,log NOTED/RULED, andhistory; dispatch this retired verb before the generic guard.
$LANES_REPO is the workspace repository $(lanes_ws_yaml) names, and it
carries no lanes/LANES.md. A repository seeded by \`openRepoTools wip init\`
- Files reviewed: 8/8 changed files
- Comments generated: 1
- Review effort level: Lite
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate findings remain.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (6)
lanes-edit.sh:8597
lane_log_events's parser reports malformed lines on stderr but returns success, so a log containing only an unreadable legacyNOTED/RULEDline reaches this branch with an emptyhi_outand exits 8. That exit code means the lane wrote no narrative, which is false and can make a caller treat a damaged history as an ordinary empty one; propagate the parser/read failure (or otherwise distinguish malformed input) before mapping an empty result to 8.
[ -n "$hi_out" ] || exit 8
lanes-edit.sh:7260
- When
msc_whyis already set (for an invalid/duplicate/ambiguous row),msc_cellis not assigned for this iteration but thiscasestill runs. On the first such rowset -ucan abort the migration on an unset variable; after any prior row, it instead inspects that row's stale cell and may count the current row asone word, no historyrather than naming it inSKIPPED. Guard this classification with[ -z "$msc_why" ]so every preclassified row reaches the skip block below.
case "$msc_cell" in
*' · '*) : ;;
*) msc_plain=$((msc_plain + 1)); continue ;;
esac
lanes-edit.sh:7561
- This retired-command arm is reached only after the generic workspace/registry guard above (the
*branch at lines 7515-7525). Thereforelanes-edit.sh append-row-status ...run outside a configured workspace, or against a checkout withoutlanes/LANES.md, reports the workspace/registry refusal instead of the promised Amendment 13 exit-2 message namingset-row-state,log NOTED/RULED, andhistory. Exempt the retired verb from that generic guard or dispatch it before the guard so retirement is unconditional.
append-row-status)
die "append-row-status is RETIRED (lane-collision-protocol Amendment 13(a), in force 2026-09-13T21:08:36Z). The state cell is ONE PHRASE — '<STATE> · <UTC> · <one line>' — and every write REPLACES it, so that the column that says where a lane IS can never grow into a diary again.
lanes-edit.sh:7353
- This migration emits only
NOTED/RULEDevents, butlanes_rowsderives the displayed state only fromSTARTED,PAUSED,RESUMED,ENDED, andRETIRED. For a legacy row with no existing transition log, migration therefore replaces the cell with (for example)PAUSEDorLANDEDwhilelanesstill rendersNO LOG, so the new current-state value is not visible to a primary reader. Either make the readers fall back to the migrated state cell or preserve a transition event, and add a regression test for a migration-only log.
printf '%s — lane %s, session %s@%s, %s, lane:%s — %s\n' \
"$msc_verb" "$msc_lane" "$msc_uuid" "$msc_ws" "$msc_eutc" "$msc_lane" "$msc_text" >> "$msc_tmp/block/$msc_n"
lanes-edit.sh:7179
log_syncis unconditional here, and it runsgit fetch, which updatesFETCH_HEADand the remote-tracking ref. As a result the default invocation changes repository metadata (and can emit fetch findings) even though it prints “DRY RUN, nothing is written” and the docs promise a read-only dry run. Keep the dry path read-only—using a temporary/read-only freshness check or explicitly reporting a stale local view—and add coverage for refs/FETCH_HEAD, not just worktree status andHEAD.
log_sync
lanes-edit.sh:7467
handle_preexistingrecords a swept dirty-row name inPRE_DIRTY_LANES, but this commit subject ignores it. Running the new mutating command with--sweepcan therefore fold an unrelated pre-existing register edit into the migration commit without the audit suffix used by the other writers. Append the established+ sweeps uncommitted edit to row ...annotation when that variable is set.
msc_msg="LANES(migrate@$WS): Amendment 13(e) — $msc_ok state cells become one phrase; $msc_lines lines ($msc_noted NOTED, $msc_ruled RULED) into the lanes' own logs; pre-migration register archived"
- Files reviewed: 8/8 changed files
- Comments generated: 2
- Review effort level: Lite
…s, and the /handoff skill's copy of the cut carries all four substitutions TWO FINDINGS, BOTH ACCEPTED, and both are the same shape: a check that was weaker than the rule it stands for. * **`cell_for_scan` tested only the second field.** A cell whose second ` · ` entry is nothing but a timestamp — `ACTIVE · 2026-09-12T10:00:00Z · LANDING #7` — has the phrase's SHAPE and none of its meaning, and narrowing the scan to `ACTIVE` there would CLOSE a pre-cutover lane holding an open landing. Narrowing is the fail-OPEN direction, so it is now taken only where the cell is certainly the phrase: the first field one of Amendment 13(a)'s seven states (or `MIGRATED`, which the migration writes and which holds nothing), the second exactly an instant, and a third part after it — which is `mig_cell_is_phrase`'s rule in `lanes-edit.sh`, said again where `lane-end` needs it. * **The `/handoff` skill's copy of the cut had two of the four substitutions.** It is the same act as `lane-handoff` under one name (Amendment 17(a)), so it writes the state cell too, and a copy that drops one is a line the writer refuses exactly where the command's line is accepted. It now carries CR and LF beside ` · ` and `|`, and a hygiene test pins all four in the skill as well as in the three commands. Tests: a diary cell whose second entry is only an instant still holds its lane (exit 2, naming the landing), beside the three cases from round 1 — a phrase whose LINE mentions a landing ends the lane, a phrase whose STATE is one refuses, and a legacy diary is scanned whole. The Amendment 13 section: 202 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate issues remain in migration, logging, lifecycle ordering, and documentation.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (7)
docs/README-lanes.md:1847
- This new contract is contradicted by the public
add-rowexample at line 158, which still tells users to write a bareACTIVEcell. A reader following that example creates a row outside the<STATE> · <UTC> · <one line>shape described here, so update the example to a phrase-shaped state as part of this documentation change.
`STATE` is one of `LIVE`, `PAUSED`, `LANDING #<n>`, `LANDED`, `ENDED`,
`RETIRED`, `HANDED OFF`. **Rule 6 is unchanged** and is now the whole of what
the cell says at that moment. The line is at most **240 characters** (ratified
decision O1) and carries neither a `|` (it would forge a cell boundary) nor a
second ` · ` (it would read back as a fourth part of the phrase).
docs/README-lanes.md:463
- This updated Amendment 13 description says
--retireis the same state replacement write, but the older paragraph immediately below still instructs operators to replace only the leading word and rerun with--state-was. That contradictslane-end's current behavior and can lead to an unnecessary second write; update/remove the stale instructions at lines 477–481.
Sets the row's state cell to `ENDED · <UTC> · lane-end on <workstation>:
window closing; NOTHING IN FLIGHT` — `RETIRED` under `--retire`, which since
Amendment 13(a) is the same write and not a second one — and **refuses (exit 2)
docs/README-lanes.md:397
- This step still says a new row's session cell is
pending, butlane-startuses the freshly minted session id when one is available (and the new-row test asserts that form); only the no-id branch is pending. Please make the documentation conditional so operators are not told that the row will omit an id that the command actually records.
one (Amendment 15(a)) — state `LIVE · <UTC> · <verb> by <uuid> (lane <lane>)
— lane-start on <ws>: row created`, which is Amendment 13(a)'s phrase from
birth (it was the bare word `STARTING` while the cell was a diary), session
id `pending — set by the session's first act`,
docs/README-lanes.md:1845
- The migration explicitly writes
MIGRATED · ...when no legacy entry has a state verb, butMIGRATEDis omitted from the documented state values here. Since it is intentionally not an input accepted byset-row-state, identify it as a migration-only marker so readers can distinguish an expected post-migration row from an invalid state.
`STATE` is one of `LIVE`, `PAUSED`, `LANDING #<n>`, `LANDED`, `ENDED`,
`RETIRED`, `HANDED OFF`. **Rule 6 is unchanged** and is now the whole of what
the cell says at that moment. The line is at most **240 characters** (ratified
lanes-edit.sh:7499
append-row-statusis still stopped by the generic workspace/registry guard before this retirement branch when no workspace is configured or the configured registry is missing, so the command exits with a workspace error instead of the promised replacement instructions at line 7560. Add the retired verb to the no-workspace exemption so it can always reach this refusal without making it an actual writer.
replace-in-row|append-session-id|append-line|add-row|set-row-state|migrate-state-cells|commit|log|claim|release)
lanes-edit.sh:7312
- This migration path bypasses
ensure_logand takesmsc_lf/msc_relfromlog_path_ci. If the row uses the canonical lane spelling but the only published/local log still has an old case, the migration appends to that old-cased path and commits it without Amendment 15's required case-only rename. The resulting write leaves the lane's log noncanonical; route the target through the canonical rename logic or skip it until the published spelling is settled.
# The lane's log, found whatever its case, and never created beside one
# this checkout has not pulled (Amendment 15, `ensure_log`'s own guard).
msc_pub=""; msc_prc=0
msc_pub="$(log_path_ci "$msc_lane")" || msc_prc=$?
if [ "$msc_prc" != 0 ]; then
msc_why="its object log is published twice under names that differ only by case (above) — 15(d)'s hand merge"
else
msc_loc="$(log_files_named_ci "$msc_lane")"
msc_ln="$(printf '%s' "$msc_loc" | grep -c . || :)"
if [ "$msc_ln" -gt 1 ]; then
msc_why="this checkout holds $msc_ln object logs for it whose names differ only by case — 15(d)'s hand merge"
elif [ "$msc_ln" = 1 ]; then
msc_lf="$msc_loc"; msc_rel="${LANES_LOG_PREFIX}${msc_loc##*/}"
if [ "${msc_rel##*/}" != "${msc_pub##*/}" ]; then
msc_why="its object log is published as $msc_pub while this checkout has ${msc_rel##*/} — a case-only rename whose commit never landed. Pull first, or merge them (15(d))"
elif [ "$NO_GIT" != 1 ] && ! git -C "$LANES_REPO" ls-files --error-unmatch -- "$msc_rel" >/dev/null 2>&1; then
# AN UNTRACKED LOG IS SOMEBODY'S UNCOMMITTED WORK, AND THIS ACT WOULD
# COMMIT IT (Copilot round 2 on openRepoTools#82). A log that is
# TRACKED and dirty is already refused for the whole run by
# `refuse_dirty_checkout` above, which exempts the register alone and
# reads staged and unstaged alike; an untracked file is in neither of
# those lists, so appending to it here would put a peer's first lines
# into this migration's one commit under this migration's message.
# The row is skipped and the file named, exactly as the other five
# reasons are, and its cell keeps every character.
msc_why="its object log ${msc_rel} exists here but is NOT TRACKED — somebody's uncommitted work, which this act would commit inside the migration's own commit. Commit it first (\`git -C $LANES_REPO commit -m \"<what it is>\" -- $msc_rel\`) and re-run"
fi
else
msc_rel="$msc_pub"; msc_lf="$LANES_LOG_DIR/${msc_pub##*/}"
fi
tests/test_repo_hygiene.py:328
- The skill parity check only asserts the four sanitizing substitutions. It does not verify the skill's 230-character cut, word-boundary removal, or ellipsis, so that copy could lose its truncation while this hygiene test remains green and
set-row-statethen rejects the resulting line over the 240-character cap. Add an assertion for the skill's truncation behavior (or compare that block with a shared reference).
skill = (REPO / "skills/handoff/SKILL.md").read_text(encoding="utf-8")
for spelling in ("hs_line=\"${payload//$'\\r'/ }\"",
"hs_line=\"${hs_line//$'\\n'/; }\"",
'hs_line="${hs_line// \u00b7 /; }"',
'hs_line="${hs_line//|/\u00a6}"'):
assert spelling in skill, (
f"the /handoff skill's row write no longer carries {spelling}, so "
f"it can hand `set-row-state` a line that writer refuses")
- Files reviewed: 8/8 changed files
- Comments generated: 3
- Review effort level: Lite
… sed answers nothing — the cut's unit test extracted no function at all
THE SHIPPED FUNCTION WAS NEVER THE PROBLEM, and the same job proves it: every
assertion about `lane-start`'s own row stamp passed on macOS, which is
`cut_to_line` running inside it. What failed was the TEST's extraction —
`sed -n "/^cut_to_line() {/,/^}/p"`, whose address carries an unescaped `{`.
POSIX leaves that undefined outside an interval; GNU sed reads it literally and
BSD sed answers NOTHING, so the `eval` defined no function, all three cases
came back empty, and TWO OF THEM PASSED VACUOUSLY against the empty string (a
zero-length line is "inside the cap" and carries no half character).
The address drops the brace — the function's own line is unique without it — and
the comment says why, so the next person writing a unit test of a shipped
function does not put a brace in a BRE again.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate correctness issues remain in lifecycle validation, migration, parsing, and state updates.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (4)
docs/README-lanes.md:1840
- The new Amendment 13 section makes the state-cell phrase mandatory, but the earlier
add-rowexample still instructs users to create a bareACTIVEcell. Following this documented command creates a row outside the invariant that this section says every writer must preserve; update the example to use<STATE> · <UTC> · <one line>(or direct readers to the lifecycle writer).
<STATE> · <UTC> · <one line>
lanes-edit.sh:8589
lane_log_events/parse_log_streamemitsunreadable:diagnostics but still exits 0 for malformed lines. As a result, a log containing only an unreadable line reaches the empty-output branch andhistoryexits 8, falsely reporting “no narrative” instead of failing the read. Propagate the parser error (or detect unreadable diagnostics) before reserving exit 8 for a valid log with noNOTED/RULEDentries.
hi_lines="$(lane_log_events "$lane")" || hi_rc=$?
case "$hi_rc" in
0) : ;;
2) exit 2 ;;
*) die "history could not read lane $lane's log (exit $hi_rc). That is NOT 'this lane has written no narrative' — a read that failed is never an answer (Amendment 7(d))." 1 ;;
lanes-edit.sh:7368
- This migration constructs the replacement free-text line directly, bypassing
row_state_check's 240-character cap.check_lane_nameaccepts arbitrarily long valid names, so a long lane can producehistory in lanes/log/<lane>.mdover the cap and--yescommits a state cell thatset-row-statewould reject. Validate or bound the derived line before adding the row to the migration plan.
# THE CELL IT BECOMES — clause (e): the state the LAST entry's leading verb
# names, where that verb is one of clause (a)'s, else `MIGRATED`.
msc_state="$(mig_lead_state "$msc_last")"
[ -n "$msc_state" ] || msc_state=MIGRATED
msc_new="$msc_state · $msc_utc · history in $msc_rel"
printf '%s%s%s%s%s%s%s\n' "$msc_n" "$US" "$msc_new" "$US" "$msc_head" "$US" "$msc_tail" >> "$msc_tmp/cells"
lanes-edit.sh:7029
- Rows in the live register can use
YYYY-MM-DD ~HH:MMZ, but this fallback's[date]*arm treats that entire value as a date-only row and returns midnight. Timestamp-less migrated entries therefore get00:00Zinstead of the recorded start time, despite this helper documenting the time form as supported. Parse the~HH:MMZform before the date-only arm and add a regression fixture.
case "$MIG_TRIM" in
[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]*) printf '%sT00:00Z' "${MIG_TRIM:0:10}" ;;
esac
- Files reviewed: 8/8 changed files
- Comments generated: 2
- Review effort level: Lite
…es it, a note names ITS OWN lane, and three lines that are built rather than passed are bounded like the ones that are FIVE FINDINGS: four accepted, one accepted in its ordering half and declined in its consequence, with the rule that decides it. * **`cell_for_scan` accepted a fourth part and an empty third.** `LIVE · <UTC> · a note · <UTC> LANDING #7` has the phrase's first two fields and a HISTORY after them; narrowing the scan to `LIVE` there would close a lane over the landing in that history. It now mirrors `mig_cell_is_phrase` to the letter — exactly three parts, the third not empty, the first a state, the second an instant — and narrowing stays the fail-OPEN direction it is taken in only when the cell is certainly the phrase. * **A `NOTED`/`RULED` could name another lane.** `is_lane_object` reads the `lane:` prefix and nothing more, so `LANES_LANE=repoA … log NOTED lane:repoB` wrote a line into repoA's log whose object named repoB — a note about a lane in a file that is not its log, which `history repoB` would never show. Clause (b) is explicit that these are "lane-kind lines whose object is the lane itself", so the object is now compared with `lane:$lane`, case-insensitively (Amendment 15). The five OLDER lane verbs keep the old laxity: changing them is a change to Amendment 7's writers and not to the state cell. * **Two lines that are BUILT rather than passed were unbounded.** The migrated cell carries `history in lanes/log/<lane>.md`, whose length is the lane's name — `check_lane_name` bounds a name's characters, not its length — and the guard's MOVED marker carried the destination lane's name TWICE. Both are cut at 230 back to the last space now, the same rule `cut_to_line` applies in the three commands, so neither can build a line `set-row-state` would refuse: one after the migration has read every row, the other after the window has already moved. * **The stamp was written before the session cell it names** on the `new_sid` path. ACCEPTED as an ORDERING defect and fixed: Amendment 8's rule is THE CELL FIRST, THEN THE STAMP, said in those words above the harness path one branch up, and this path did the opposite. DECLINED as a resume hazard, which is what the finding claims: the resume target is the SESSION CELL and nothing else (Amendment 6(b)), read from the PUBLISHED row — so a refused append left the next start resuming the id the register knew, never a wrong conversation, and the refusal already printed the act that cures it. What it left was a row saying two things a reader had to reconcile; in this order the common path says one. Tests: a cell with a fourth part still holds its lane; a NOTED naming another lane is refused and writes nothing to that lane's log; a lane whose name alone overruns the cap still migrates, with its line inside 240 and marked cut; and the session-cell commit is asserted as the one BEFORE the stamp, with the stamp naming the same id. The Amendment 13 section: 211 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
There was a problem hiding this comment.
🔵 Needs a closer look
Two moderate lanes-edit.sh issues remain unresolved.
Review details
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
lanes-edit.sh:7041
mig_started_utcdoes not actually support the older minute-precisionstartedform documented immediately above (2026-09-04 ~15:30Z): it falls through to the date-only pattern and emits2026-09-04T00:00Z. Any migrated entry without its own timestamp will therefore be assigned the wrong event time, losing the recorded 15:30 ordering/provenance; parse this legacy form before the date-only fallback.
lanes-edit.sh:7378
- This migration emits only
NOTED/RULEDlines, then replaces the legacy cell with the state named by its last entry. However,lanes_rowsderiveslr_stateonly fromSTARTED/PAUSED/RESUMED/ENDED/RETIREDlog events and otherwise falls back toNO LOG; consequently a migrated row whose cell isPAUSED(orLANDED) is listed asNO LOGand gets no restart/state display because the new current-state cell is ignored. Make the listing consume the current-state phrase and cover a migrated row in the listing.
# THE CELL IT BECOMES — clause (e): the state the LAST entry's leading verb
# names, where that verb is one of clause (a)'s, else `MIGRATED`.
msc_state="$(mig_lead_state "$msc_last")"
[ -n "$msc_state" ] || msc_state=MIGRATED
- Files reviewed: 8/8 changed files
- Comments generated: 0 new
- Review effort level: Lite
…the GNU-only guard reads as a BRE alternation `test_no_shipped_bash_reaches_for_gnu_only_utilities_unaccompanied` is a LINE test, deliberately: it cannot tell whose regex a `\|` belongs to, and the thing it exists to catch — an alternation handed to `grep` or `sed`, which BSD matches LITERALLY and reports no error for — is worth the false positive. The `\|` on that line was awk's own escape inside an ERE and never reached `grep`. The row is taken first and the awk that splits it runs on its own line, so neither line carries both. Same assertions, same values. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
|
There was a problem hiding this comment.
🔵 Needs a closer look
Unresolved moderate findings affect migration correctness, command compatibility, and lifecycle state consistency.
Review details
Suppressed comments (7)
Previously missed (1) — in code that hasn't changed since the last review.
lanes-edit.sh:7525
- The retired
append-row-statusarm is below both dispatcher guards, but this dispatch setup exempts it from neither. On a machine with no configured workspace, the generic guard at lines 7542–7550 exits 1 before the retirement arm, so the compatibility command does not return the documented retirement refusal (exit 2) or name its replacements. Add the retired command to the second guard's exemption (or dispatch it before the guards); adding it only to this writer list would still leave the generic guard in the way.
docs/README-lanes.md:463
- This updated paragraph correctly says
--retireis the same single replacement write, but the following paragraph still documents the removed behavior: replacing only the leading word, preserving the history cell, and retrying with--state-was. That contradicts Amendment 13 and can send operators to an obsolete two-step procedure; rewrite the later paragraph to describe the oneRETIREDphrase write.
Sets the row's state cell to `ENDED · <UTC> · lane-end on <workstation>:
window closing; NOTHING IN FLIGHT` — `RETIRED` under `--retire`, which since
Amendment 13(a) is the same write and not a second one — and **refuses (exit 2)
lane-end:995
- The copied phrase detector narrows the state-cell scan after checking only the state word and timestamp shape; it does not enforce the line cap or the writer's forbidden-character rules. Consequently, a malformed three-part cell can have its prose removed from
haystack, so in the no-object-log fallback an openLANDINGpresent in that prose is ignored andlane-endcan close the lane. Reuse a full phrase validator or keep malformed cells on the legacy whole-cell scan.
case "$cfs_two" in
[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]Z | [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]Z) : ;;
*) cfs_ok=0 ;;
esac
[ "$cfs_ok" = 1 ] && cfs="$cfs_one" ;;
lane-start:2697
- When the preceding
append-session-idis refused (for example because this checkout's row is stale), the code only prints a recovery hint and still reaches this stamp with the newly minted$new_sid. That writesSTARTED/RESUMED by $new_sidwhile the session cell still ends at the previous UUID, so the next launch resumes a different conversation from the one named by the state. Track the append result and do not stamp or launch with the new ID until the session-cell update succeeds (or use an explicit first-act recovery path).
state_line="$lane_verb by $stamp_who (lane $LANE) — lane-start on $ws: $did"
state_line="$(cut_to_line "$state_line")"
if (( dry_run )); then
plan "lanes-edit.sh set-row-state $LANE \"LIVE · $state_line\""
else
LANES_LANE="$LANE" "$LANES_EDIT" set-row-state "$LANE" "LIVE · $state_line"
lanes-edit.sh:7040
- The fallback pattern treats every
YYYY-MM-DD...value as date-only, butmig_started_utcexplicitly documents the existing2026-09-04 ~15:30Zform. Sincemig_lead_utcdoes not recognize that form, migration assigns midnight instead of 15:30 to entries without their own timestamp, changing their history. Parse and normalize the tilde-minute form before the date-only fallback.
[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]*) printf '%sT00:00Z' "${MIG_TRIM:0:10}" ;;
lanes-edit.sh:7298
- This migration writes directly to the case-insensitive log path it discovers, but it never calls
ensure_log. If a row spellsopenXfactory-2while the existing log isopenxfactory-2.md, this first write leaves the old-cased file in place and recordshistory in lanes/log/openxfactory-2.md, violating Amendment 15's rule that the first log write renames to the row's canonical spelling. Route each migrated log through the same rename path and include any case-only rename in the migration's single commit.
# The lane's log, found whatever its case, and never created beside one
# this checkout has not pulled (Amendment 15, `ensure_log`'s own guard).
msc_pub=""; msc_prc=0
msc_pub="$(log_path_ci "$msc_lane")" || msc_prc=$?
lanes-edit.sh:7128
- This recognizes a cell as an already-valid Amendment 13 phrase without checking the free-text part against the same O1 grammar enforced by
set-row-state(240-character limit and rejection of|, CR/LF, and·). A manually or previously malformedLIVE · <UTC> · ...cell is therefore counted as migrated and skipped, leaving an invalid state cell that the migration claims is compliant. Validate the third field fully, or classify and name malformed phrase-shaped cells instead of silently counting them as already migrated.
case "$mcp_c" in *' · '*) return 1 ;; esac # a fourth part is not the phrase
[ -n "$mcp_c" ] || return 1
case "$mcp_a" in
MIGRATED) : ;;
*) state_word_is_valid "$mcp_a" || return 1 ;;
- Files reviewed: 8/8 changed files
- Comments generated: 0 new
- Review effort level: Lite
`lane-start`'s row-write section was the one conflict, and it is a union: Amendment 13 (#82) re-ordered that block — the session cell first, then the stamp, which is now `set-row-state` and not the retired `append-row-status` — while this branch added the write that puts the transcript recovered from the lane's last PAUSED record back at the end of the session cell. The recovered-id write is a CELL write, so it keeps its place beside the harness-minted one and main's re-ordered stamp follows both, unchanged. The guard merged without a textual conflict and needed three words changed after it: the lane a `2` moves away from is marked with `set-row-state` (#82's writer) and the two lines that still called that answer a `yes` now call it choice 2, which is what the offer asks for. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
…e verbs it skips — and a source log or handoff git has never seen is a peer's work, not this rename's to commit Five threads on #81, all taken, plus one defect of my own that the suite caught behind them. THE ONE I BROKE IN THE MERGE. Amendment 13 (#82) landed `is_note_verb` for `NOTED`/`RULED` — lane-kind lines that are NOT transitions — which is exactly what clause (c) says `RENAMED` is, so the merge moved `RENAMED` out of `is_lane_verb` and into it. But `swapped_candidates` is the one reader that takes a lane's LAST lane-kind line whatever its verb is, and it NAMES the verbs it skips rather than asking the predicate: a lane whose last line was its rename stopped reading as PAUSED, so `swapped` would not list it and `restart` would not find it. One line, and a case that renames a swapped lane and asks `swapped` again. THE REST: * An UNTRACKED `lanes/log/<old>.md` was moved to a path this write always stages, so a peer's uncommitted log would be committed under this rename's message. `refuse_dirty_checkout` reads `tracked_dirty`, which reports no untracked file, so nothing above it saw one. Refused, naming the commit its author owes — and the same for an untracked handoff, which is a pathspec here the moment it exists. * The mutex was taken AFTER every collision check. Each of those checks asks what is NOT there, so two renames on one workstation could both answer "the target is free" and the second would move its log over the first's. The lock is taken before them now; across workstations the arbiter is the one Rule 1's claim has, whichever commit lands on `main` first, and the loser's next attempt meets its own refusals with nothing written. * `canon_lane`'s 66 was flattened by a `|| exit 2` in this arm, so the SAME fault — an alias table that cannot be read — answered 2 or 1 depending on whether the typed name happened to have a row of its own, because a name with one never reaches the table. One condition, one code: this writer's own 1. AND ONE THE SUITE FOUND UNDERNEATH ROUND 5. Resolving the handoff's containment physically made `cd -P` the test, and `cd -P` of a directory that does not exist fails — which is every lane before its first swap, because `lane-start` puts the path in the row and `lane-handoff` creates the file and its estate directory later. Read as "outside the workspace repository", that refused the ordinary case. The question is put to the NEAREST ANCESTOR THAT EXISTS now, which is the rule `openRepoTools --install` already states for its own targets, with a `..` among the components that do not exist refused rather than guessed at. EVIDENCE AS THIS COMMIT IS MADE. `bash tests/test_lane_helpers.sh` reached the end of the Amendment 16 section with 206 assertions and 0 FAIL in the run as a whole (log /tmp/a16-run14.txt); the run's tail was still going when this was committed for a handoff, so the footer count is not in hand. The state before this commit — f187feb, round 5 with Amendment 13 merged — is GREEN on all four CI platforms (tests, tests-macos, tests-no-submodule, tests-windows) and was 2657 passed / 0 failed locally. Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
…d work, and neither act may commit it The finding `migrate-state-cells` took in round 2 of #82, in the two acts that have its shape. A TRACKED file that is dirty is already refused for the whole run by `refuse_dirty_checkout`, which exempts the register alone and reads staged and unstaged alike; an UNTRACKED file is in neither of those lists, so appending to it would put a peer's first lines into this act's one commit, under this act's message. For the sweep that is a lane's object log: a dormant row usually has none at all, but a MIGRATED one has a log of NOTED lines, and that is the file this meets. For the move it is the archive itself. Both are checked in the scan, before a byte is written, and both name the commit that settles them. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
…lane-rename` moves the row, the log, the handoff and `lanes/aliases.tsv` together, and the old name resolves for ever in every reader (#81) * A lane is renamed by ONE WORD in ONE COMMIT, and its old name resolves for ever: `lane-rename` moves the row, the log, the handoff and `lanes/aliases.tsv` together, because any two of them apart is a state no reader can read (Amendment 16) lane-collision-protocol **Amendment 16**, ratified by Brett Heap 2026-09-14T09:24:35Z verbatim *"Ratify as drafted (Recommended)"*, on his request of the same day, verbatim: *"we need the ability to rename a lane. maybe lanes --rename <current lane name> <new lane name>."* #35. WHY: two renames by hand in one night. On 2026-09-14 two lanes renamed themselves by appending one `RENAMED` line to `LANES.md` — *"the lines are honest and they are all there is"*: the rows still carried the old keys, the logs and handoffs the old names, and a reader of either lane's history had to know the rename to follow it. THE ACTS * `lanes-edit.sh rename-lane <old> <new> ["<why>"] [--verbatim] [--no-github]` — ONE commit, refused or whole. Clause (a)'s refusals first, every one of them saying *"Nothing was written."*: no row under `<old>` in any case and through no alias; a row under `<new>` in any case (a CASE-ONLY rename is named as 15(d)'s hand act, not this command's); `<new>` not `<repo>-<n>` without `--verbatim`; a LIVE session holding `<old>` in another window (`live_holder`'s `here` verdict is the one exemption — a lane renames itself); two rows differing only by case; a cycle in the alias table; a session field that is not a transcript uuid; a published row or log this checkout has not pulled. Then the four moves of (b)–(e) in ONE commit: the row's key cell → `` `<new>` `` with `*(ex `<old>`, renamed <UTC>)*` beside it; `lanes/log/<old>.md` → `lanes/log/<new>.md` plus a `RENAMED` line; the handoff the row names → the same date with `lane-<new>` plus a Rule 3 stamp, SPLICED with the byte-for-byte proof `lane-start` makes for its own, with the row's handoff column following; and `lanes/aliases.tsv` += `<old><TAB><new> <TAB><UTC>`. Then (g): one GitHub comment per object the lane HOLDS, after the commit lands and citing its sha, exactly as `claim`'s is. * `RENAMED` joins `VERB_LIST` as a LANE-KIND verb that changes no state, and it is outside the last-line rule BY CONSTRUCTION: every state read here enumerates the five verbs that do. `log RENAMED` by hand is refused and names `lane-rename` — a line on its own is the hand rename this amendment replaces. * CLAUSE (e) IN ONE SEAT, not in a list of readers. Amendment 15 already put `canon_lane` in front of every `<lane>` argument and every `$LANES_LANE`, so the alias table is resolved there: a row wins over an alias, a chain resolves to its end, and the resolution says so on stderr. Two reads that take a name without going through it take the same function one layer down — `lane_named_ci` (the `SessionStart` block) and the guard's window and session lookups. And the LANE FIELD OF EVERY OLD LOG LINE is resolved on the way in, in `LOG_AWK`: clause (c) never rewrites those lines, so a renamed lane's log holds its history under two names in one file, and read byte for byte half of its holds would be invisible to `who --lane` and to `lane-end`'s refusal. * `lane-rename` on PATH, placed by `--install`: it renames the tmux window and types `/rename <new>` into the lane's own pane (Amendment 12(h) M1), which is what a register writer may not do. From elsewhere it prints what is left — and the name guard finishes both at the lane's next prompt, renaming the window itself (one tmux call) and typing the `/rename`. * `lanes --rename` is REFUSED with the one word to type, filled in: Amendment 11(j)'s *"it writes nothing"* is untouched (clause (h)). COUNTS: twelve files → THIRTEEN, twenty-six artifacts → TWENTY-SEVEN, derived from `INSTALLABLES` and from the three lists in `tests/test_openrepotools_command.py` and restated nowhere; the installer, `README.md`, `AGENTS.md`, `docs/README-lanes.md`, the macOS bash-3.2 parse list and `HELPER_BASH` all move with them. TESTS: a section of its own in `tests/test_lane_helpers.sh` on a seeded register — every refusal with the checkout proved untouched after each, the four moves in ONE commit, the old name resolving through `canon-lane`, `who --lane`, `who <object>`, `lane-objects`, `register-row`, `live-holder`, `lanes`, Rule 6 attribution and the `SessionStart` block, a chain, a cycle refused, the verb skipped by the last-lane-kind-line read, `lanes --rename`, the guard renaming a window that carries a former name and typing the `/rename`, and the word itself in and out of the lane's own window. Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * `lanes --rename` is in the SYNOPSIS as well as the parser, because an option a person cannot find is an option they do not use — and this is the spelling Brett Heap reached for `tests-windows` on 63fe837 caught it, by this repository's own rule (`test_every_option_the_parser_accepts_is_in_the_usage`): `lanes` parsed `--rename` and its synopsis line never named it. The rule exists for exactly this — `--prefix` was parsed, documented in the BODY and missing from the line a person reads first — and it bites harder here, because `lanes --rename <old> <new>` is the spelling the amendment's own request used, verbatim *"maybe lanes --rename <current lane name> <new lane name>"*. A person who types it and gets a usage line has been answered with nothing; a person who reads the synopsis should find it there and learn the word. So the synopsis carries it, and the body says what it is: a REFUSAL that names `lane-rename <old> <new>`, with the reason it is a word of its own — `lanes` writes nothing (Amendment 11(j)) and a rename is four files in one commit (Amendment 16(h)). Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Copilot round 1: a line's lane is the lane of its FILE — an alias lookup in the parse cannot tell a renamed lane's history from a NEW lane minted under the name it freed — and every failure between the first move and the commit is rolled back Fourteen threads on #81, taken in full except one, which is declined below with the clause it is measured against. THE ONE THAT CHANGED THE DESIGN. The parse resolved a log line's `lane <name>` field through the alias table. Copilot found the case that breaks: a rename FREES the old name — no row carries it, so `lane_next_free` hands the position out — and a new lane can legitimately be called it. From that moment the field `lane <old>` is ambiguous, and no amount of resolving a NAME tells the two apart, because the name is the same. Adding row precedence to the walk only moved the corruption: with it, the RENAMED lane's own historical lines were pulled on to the new lane instead. THE FILE ANSWERS IT, and it needed no table at all. Amendment 7's first sentence is one file per lane, single writer; Amendment 15 makes its name the row's own spelling; clause (c) MOVES it with the rename. So `lanes/log/<lane>.md` IS the statement of which lane every line in it belongs to. `LOG_AWK` now takes the lane (and the `lane:<name>` object, which is the writing lane by construction) from the file's own name, and the field stays on the line as the spelling somebody typed. That also settles, with nothing added, the two spellings of one lane Amendment 15 had to reason about line by line — and it deletes the alias map, the register map, the `AF`/`RF` plumbing and `alias_awkfile` from the parser outright. THE REST, in the order Copilot raised them: * An unreadable `lanes/aliases.tsv` read as an EMPTY table. It fails closed now: `lane_alias_text` answers 5 with the reason in `LANES_ALIAS_ERR`, every write that asks refuses, and `canon_lane` — which may not refuse, since every `<lane>` argument on the workstation passes through it — says out loud that whether the name is a former one is NOT established. * A `<new>` that is already an alias KEY is refused. A row wins over an alias, so minting one under a name another lane was renamed away from would END that name's resolution, which is the one thing clause (e) promises never happens. * The 32-hop cap truncated a valid chain as well as a cycle, so an estate that renamed one lane thirty-three times would have its earliest names resolve to an intermediate one. The `seen` set is what guarantees termination — every hop consumes one key of a finite map — so the bound is now the table's own size. * `rows_named_ci_alias` took the chain's END. It walks hop by hop, stopping at the first name that HAS a row: "a row wins over an alias" at every hop, which is the same rule the parse now gets from the file name. * A handoff OUTSIDE the workspace repository was moved, stamped and left out of the commit — so "four moves, one commit" was not true of that row. Refused before anything is written, naming the path `lane-start` computes. * A `lanes/log/<new>.md` of another CASE, here or on `origin`, was missed by the exact-path guard. Both scans are case-insensitive now, like every other case question in this file. * A handoff that cannot take Rule 3's stamp was a `note` and the rename committed anyway, leaving it moved and unstamped. It is a refusal, and the unchecked redirect that let an unwritable file reach the "stamped" note is checked — this file runs `set -u` and not `set -e`. * AND EVERY FAILURE BETWEEN THE FIRST MOVE AND THE COMMIT IS NOW ROLLED BACK. The refusals all happen before the first byte, but a filesystem can still refuse the third of four moves. The writes are made against a snapshot taken before the first of them, and `cleanup` restores it on EXIT and on both signals — which is the only hook that covers `replace_line`, a function that dies inside itself and after which a caller cannot put a line. The register is not in the snapshot and does not need to be: `replace_line` proves the new file before it writes a byte of `LANES.md`. * `lane-rename` computed "is this the lane's own window" from the typed `<old>`, so a lane renamed through an OLDER name skipped both acts clause (f) gives it. It asks `canon-lane` of the window's name instead, after the write. And the repair run it documented could not work — the writer resolves `<old>` through the alias it just wrote and refuses — so a refusal is now asked WHICH ONE it is: where `<old>` already resolves to `<new>`, the write is done and this command runs its own half. * Its usage said `lanes/aliases.tsv` gains `<old> <new>`; it gains a TAB-separated record with the UTC. DECLINED, with the clause: *"a missing handoff must fail closed"*. Clause (a)'s fail-closed is for "an unreadable register or records" — the register and the SESSION records, which is the `live-holder` read — and a row naming a handoff nobody has written yet is ORDINARY: every lane has one until its first swap. Refusing there would make those lanes unrenameable. A handoff that EXISTS and cannot be read or stamped is a different thing and is now a refusal, above. Tests: the Amendment 16 section is 122 assertions (from 93) — the alias-key refusal, a name that is an alias key AND a row again keeping its own holds under both readings, a case-variant target log, an external handoff, an alias table that cannot be read, a hand-written cycle read as no answer, and the rollback proved by making a handoff unwritable and reading the log back byte for byte. `bash tests/test_lane_helpers.sh`: 2469 passed, 0 failed, 0 skipped. Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Copilot round 3: an alias table nobody can read is not an estate with no renames — every reader fails closed on it — and the rollback stays armed until a commit exists Seven threads and three suppressed comments on #81, all taken. THE CLASS THAT RAN THROUGH FOUR OF THEM. `rows_named_ci_alias` turned a `lane_alias_hop` failure into a successful EMPTY answer, and every reader behind it then took its own not-a-lane branch: `canon_lane` answered the typed spelling, so `lane-start` would read a renamed lane as new and append a SECOND row — the duplicate Amendment 15(a) exists to refuse; the guard fell to `lane_shaped` and sent a running session to bind a row it already has; the `SessionStart` block said no lane binds a window that one does. The status is propagated now and each reader decides: * `canon_lane` REFUSES (2), naming the read and both paths to the table. R22's rule governs — a read that could not be performed is never an answer — and this one's answer is what a writer decides "is this lane new" by. * the guard REFUSES THE PROMPT on either lookup, which is clause (d)'s own fail-closed shape: a triple that cannot be verified is not a triple that agrees. * `session-start` may not refuse, so it SAYS SO: one warning line, printed only where the window resolved to nothing, so the line below it is read as what it is. AND ONE THE ROUND UNCOVERED UNDERNEATH. `live_holder` skips a record a PERSON named for another lane (Amendment 8). After a rename the lane's OWN session still carries its former name — the `/rename` is clause (f)'s and lands at the lane's next prompt, not before — so read byte for byte, the lane's live session stopped being its holder the instant the row moved: the rename's own window would lose the `/rename`, and `who` would call a running lane NOT LIVE. The comparison goes through the same seat as every other name now, and a name that resolves ELSEWHERE is still skipped, which is Amendment 8's rule unchanged. THE REST: * A handoff path that EXISTS and is not a regular file — a directory, a FIFO, a DANGLING symlink — read as "no handoff written yet" and the rename committed the other three. `-e` or `-L` beside `-f` now, and it is a refusal; an absent path is still passed over, which is the declined half of round 1. * An UNTRACKED old log moved away was still handed to `git add`, which fails on a pathspec that matches nothing — ending the write inside `commit_push` with all four moves on disk. It is a pathspec only where git knows the path. * `handle_preexisting` was given every pathspec of this write, most of which do not exist yet, so its `git add` could fail and a peer's uncommitted row be swept into this commit. It is given the register alone — the only file that can be dirty here, because every other tracked change was refused one line up. * `lanes/aliases.tsv` published on origin and absent here would have been CREATED with one mapping, dropping every alias already published. Refused, naming the pull, exactly as the row and the log guards do. * `replace_line`'s `cat > "$LANES_FILE"` was unchecked: on an unwritable register it returned 0 having written nothing, both proofs having passed against a temporary file. Checked, and it dies — which for a rename means the alias no longer lands while the row it points at never moves. That is the last act of every row edit in this file, so the fix is theirs too. * `RL_ACTIVE` was cleared before `commit_push`, which can die on `update-index`, `git add` or `git commit` BEFORE any commit exists. The undo stays armed through it and `rename_undo` decides by HEAD: unchanged means no commit carries the work and the four are restored; moved means the commit exists and `commit_push` owns the recovery, as its own exit 3 says. * `lane-rename` took its pane from `window-session`, which answers about the WINDOW — a second Claude session in another pane of it would have been typed into. It asks `live-holder <lane>`, which answers about the LANE because it reads only ids the row's session cell carries. Tests: the Amendment 16 section is 139 assertions (from 122) — the reader refusals with the table pointed at a path `origin` does not carry, the guard's own refusal, a handoff path that is a directory, an alias table published and not pulled, a session named for a former name still holding its lane, and the same session named for a former name somebody has since taken AS a lane not holding it. `bash tests/test_lane_helpers.sh`: 2486 passed, 0 failed, 0 skipped. Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * Copilot round 4: the alias-read refusal gets a number of its own because 2 already means two things to four commands; a symlinked log, handoff or alias table is refused because all three are written IN PLACE; and the register joins the rollback Seven threads on #81, all taken. THE EXIT CODE. `canon_lane` refusing with 2 was the right refusal on the wrong number: `lane-start`, `lane-end`, `lane` and `lane-handoff` each read a 2 as EITHER Amendment 15(d)'s two-rows refusal — told apart by the words in its message — or the unknown-subcommand 2 of a helper predating Amendment 15, which they carry on past with the name as typed. A third meaning lands in the second branch, which is the fail-OPEN the refusal exists to close: an unreadable alias table would make a renamed lane look new and `lane-start` would append a second row for one that has been running all day. It is 66 now — EX_NOINPUT, an input file that could not be read, which is exactly what happened. `lane` and `lane-handoff` already refuse every code they do not recognise; `lane-start` and `lane-end` are taught it here, each in its own words. THE THREE THAT ARE ONE RULE. A symlink at the object log, at the handoff or at `lanes/aliases.tsv` was accepted: `ls` lists one like any other file and `-f` is TRUE through one to a regular file. All three are written IN PLACE — the log's `>>`, the stamp's `cat >`, the alias row's `>>` — and a redirect follows a link, so the bytes would land at the far end, possibly outside this repository, while the commit recorded only the link and the rollback restored the wrong file. Refused, each with the write that makes it matter. It is the rule `openRepoTools --install` already states for every target it places, and the one this file's own header opens with for `sed -i` and the register's symlink. AND FOUR MORE: * `live_holder` piped `rows_named_ci_alias` into `grep | head || :` and threw its status away, so an unreadable table answered EMPTY, the record was skipped, and the read returned 8 — "no live session holds it" — about a lane that is running. That is the read `lane-start` renames a window over. It fails closed with 1 and `SESSION_FILES_ERR` naming the read, which is the contract its callers already have. * `refuse_dirty_checkout` exempted `lanes/aliases.tsv` because it is a pathspec of this write, and round 3 had narrowed the capture to the register alone — so a peer's half-finished rename could be appended to and swept into this lane's commit. The table has ONE writer and is not the mid-write state `LANES.md` is in half the day, so it is left out of the exemption and the generic refusal names it. * The register was written by `replace_line` after the snapshot and was not IN the snapshot, so a `commit_push` that died before committing rolled the other three back and left the row renamed — a split rename. It is snapshotted and restored with a `cat >`, which follows the register's own symlink where `mv` or `cp` would replace it with a regular file. * AND THE INDEX WITH IT: `commit_push` stages before it commits, so a `git add` that succeeded and a `git commit` that did not left the rename staged for the next writer to commit by accident. The undo resets those pathspecs. Tests: the Amendment 16 section is 169 assertions (from 139). The rollback case is now the real one — a `pre-commit` hook that refuses, which is the smallest honest way to reach `commit_push`'s pre-commit failure — and it reads back the register, the log, the alias table, the handoff, the index and HEAD, then runs the same rename again and watches it go through, which is what "refused or whole" is worth. `bash tests/test_lane_helpers.sh`: 2516 passed, 0 failed, 0 skipped. Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * Copilot round 5: the last six edges of the rename's transaction — a cached read, `..` out of the workspace, a dangling destination, a FIFO, an untracked table and a table with no newline at its end Six threads on #81, all taken. Every one of them is the same shape: a test that was nearly right, and a path through it that reaches a write. * THE CACHE'S OWN READ. `lane_alias_text` checked the fetch and the working-tree read and then answered an unchecked `cat` of its own cache with `return 0`. A cache this process wrote and cannot now read would answer EMPTY with status 0, and a former lane name would resolve as new — the one outcome every other branch of that function refuses. Checked, 5, `LANES_ALIAS_ERR`. * `..` IS STILL OUTSIDE. The workspace-containment test was a string prefix, so `handoffs/../../outside/x.md` — and any path whose PARENT is a symlink out of the checkout — matched `"$LANES_REPO"/*` while resolving elsewhere: the file would be moved and stamped before git refused the pathspec. The directory's own `cd -P` decides it now, which is the resolution `lane-start` already makes for this very path and for the reason it gives (`readlink -f` is not in the stock macOS userland). * A DANGLING SYMLINK AT THE DESTINATION IS OCCUPIED. `-e` is false on one, so `mv` would have replaced it — destroying a path this rename does not own. `-L` beside `-e`, which is what the source-side tests already say. * A FIFO AT THE OLD LOG PATH. `log_files_named_ci` lists one like any other name, and only symlinks were refused — so the snapshot's `cat` would BLOCK, for ever, holding this lane's mutex. The log must be a regular file; so must the alias table, for the same reason. * AN EXISTING UNTRACKED ALIAS TABLE. `refuse_dirty_checkout` reads `tracked_dirty`, which deliberately omits untracked files, so before this estate's FIRST rename a hand-written `lanes/aliases.tsv` walked past the guard and its lines were committed inside this lane's rename. `rename-lane` is that file's only writer and commits what it writes, so an untracked one was written by hand or left by a run that died: refused, naming both exits. * A TABLE WITH NO NEWLINE AT ITS END. `>>` would put the record on the END of the previous line — and `append_text_line`'s own proof PASSES, because the bytes it builds to compare are concatenated the same way, and the line count moves by one either way. The parser would then never see the new alias: the rename would land and the old name would stop resolving, which is the one thing clause (e) promises. Refused rather than repaired, because putting a newline on a file this command did not write is an edit to somebody else's lines. Tests: the Amendment 16 section gains a case for each of the five that can be staged — the `..` handoff with the far end read back, the dangling destination, the FIFO, the untracked table and the missing newline — and then runs the same rename with every edge cleared and watches it go through. Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * Copilot round 6: `swapped` has to be TOLD about RENAMED — it names the verbs it skips — and a source log or handoff git has never seen is a peer's work, not this rename's to commit Five threads on #81, all taken, plus one defect of my own that the suite caught behind them. THE ONE I BROKE IN THE MERGE. Amendment 13 (#82) landed `is_note_verb` for `NOTED`/`RULED` — lane-kind lines that are NOT transitions — which is exactly what clause (c) says `RENAMED` is, so the merge moved `RENAMED` out of `is_lane_verb` and into it. But `swapped_candidates` is the one reader that takes a lane's LAST lane-kind line whatever its verb is, and it NAMES the verbs it skips rather than asking the predicate: a lane whose last line was its rename stopped reading as PAUSED, so `swapped` would not list it and `restart` would not find it. One line, and a case that renames a swapped lane and asks `swapped` again. THE REST: * An UNTRACKED `lanes/log/<old>.md` was moved to a path this write always stages, so a peer's uncommitted log would be committed under this rename's message. `refuse_dirty_checkout` reads `tracked_dirty`, which reports no untracked file, so nothing above it saw one. Refused, naming the commit its author owes — and the same for an untracked handoff, which is a pathspec here the moment it exists. * The mutex was taken AFTER every collision check. Each of those checks asks what is NOT there, so two renames on one workstation could both answer "the target is free" and the second would move its log over the first's. The lock is taken before them now; across workstations the arbiter is the one Rule 1's claim has, whichever commit lands on `main` first, and the loser's next attempt meets its own refusals with nothing written. * `canon_lane`'s 66 was flattened by a `|| exit 2` in this arm, so the SAME fault — an alias table that cannot be read — answered 2 or 1 depending on whether the typed name happened to have a row of its own, because a name with one never reaches the table. One condition, one code: this writer's own 1. AND ONE THE SUITE FOUND UNDERNEATH ROUND 5. Resolving the handoff's containment physically made `cd -P` the test, and `cd -P` of a directory that does not exist fails — which is every lane before its first swap, because `lane-start` puts the path in the row and `lane-handoff` creates the file and its estate directory later. Read as "outside the workspace repository", that refused the ordinary case. The question is put to the NEAREST ANCESTOR THAT EXISTS now, which is the rule `openRepoTools --install` already states for its own targets, with a `..` among the components that do not exist refused rather than guessed at. EVIDENCE AS THIS COMMIT IS MADE. `bash tests/test_lane_helpers.sh` reached the end of the Amendment 16 section with 206 assertions and 0 FAIL in the run as a whole (log /tmp/a16-run14.txt); the run's tail was still going when this was committed for a handoff, so the footer count is not in hand. The state before this commit — f187feb, round 5 with Amendment 13 merged — is GREEN on all four CI platforms (tests, tests-macos, tests-no-submodule, tests-windows) and was 2657 passed / 0 failed locally. Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * Copilot round 7: clause (g)'s comment is the one act every case switched off, so the suite gets a fake `gh` — which also closes the door the workstation's own `gh` was standing behind One thread on #81, taken. Amendment 16(g) — one comment per object the lane HOLDS, posted after the commit and citing its sha — is the only act of `rename-lane` that happens after the push, and it had no test: this suite exports `LANES_NO_GITHUB=1` and every case passes `--no-github`, which is the rule that keeps it off the network and is also why that path never ran. THE FAKE `gh` MAKES THIS SUITE SAFER, NOT LOOSER, and that is worth saying plainly because adding one looks like the opposite. The fakebin is PREPENDED to `$PATH`, so until now a call that slipped past `LANES_NO_GITHUB` would have found THE WORKSTATION'S OWN `gh`. It cannot now: the fake answers the two comment forms `gh_comment` makes — `gh issue comment <n> --repo <o/r> --body-file -` and its `pr` twin, body on stdin — and REFUSES every other call with exit 90 and a line saying so. `LANES_NO_GITHUB=1` still stops the call being made; the fake decides what answers it where a case switches that off on purpose, which exactly one case now does. The cases: a lane holding two objects and having released a third is renamed with GitHub ON, and the log is read back for exactly TWO comments — on the two it holds and not on the one it released — each carrying the amendment's own sentence, Rule 10's wire form `Lane: repocmt-2 (repoCmt-2)`, the sha of the commit that carries the rename, and the alias table that keeps the old name resolving; and every URL reported on stderr. Then a `gh` made to refuse: the rename still exits 0, warns naming the object it could not reach, says the commit IS the rename and it has landed, and the row, the log and the push are all where they were — which is what "posted only after the commit lands" means when the posting fails. And the fake's own refusal is asserted, so the door it closes is a tested door. `bash tests/test_lane_helpers.sh`: 2692 passed, 0 failed, 0 skipped — the Amendment 16 section is 225 assertions. CI on 86407ed, the state before this commit, is GREEN on all four platforms. Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * Copilot round 8: a reader that shrugs at a path which is not a table is the fail-open the whole function closes, and an undo's pathspecs are an ARRAY because a handoff may live under a directory with a space Two threads on #81, both taken, plus one defect of my own underneath the first that would have made its refusal unreadable. THE READER'S FALLBACK (lanes-edit.sh:3494). With no alias blob on `origin`, the working-tree read was guarded by `-f` alone, and `-f` is FALSE for a directory, a FIFO, a socket and a DANGLING symlink alike — so the branch was simply skipped, `# no lane aliases` was cached, and the function answered EMPTY with status 0. That is the one outcome every other branch of it exists to refuse: a former lane name reads as NEW, and `lane-start` appends a SECOND row for a lane that has been running all day — Amendment 15(a)'s duplicate, arrived at through a read. `-L` is asked beside `-e` because `-e` is false on a dangling link, which is the pair the handoff's own destination test already uses. AND THE READER'S RULE IS NARROWER THAN THE WRITER'S, deliberately, which is why the two say different words. The writer refuses a LIVE symlink to a regular file as well, because it appends in place and a redirect follows one into whatever is at the far end. A READER that follows the same link gets the table's own bytes and is right to, so `-f` answers it and says nothing. What is refused here is only what cannot be READ. THE REASON HAD TO SURVIVE A SUBSHELL FIRST. Every one of those refusals printed `(unknown error)`, because `LANES_ALIAS_ERR` is set inside `lane_alias_text` and every caller reaches it through a COMMAND SUBSTITUTION — `lane_alias_hop`, `lane_alias_target`, `lane_alias_keys`, and `rows_named_ci_alias` through `canon_lane` — so the variable died with the subshell that set it. Fail-closed and silent about what to fix is half a refusal. The reason goes in a file beside the events cache, which `cleanup` already sweeps, exactly as `SE_WARN_FILE` carries a warning raised inside the same kind of substitution; the variable stays as the answer for a process whose `mktemp` failed; and the file is cleared where a fresh read begins, so it is never the reason for a read that has since succeeded. THE UNDO'S PATHSPECS (lanes-edit.sh:8995). `RL_PATHS_FOR_UNDO="${rl_paths[*]}"` flattened five quoted paths into one string that `rename_undo` expanded unquoted, so a handoff under `handoffs/team notes/…` became `handoffs/team` and `notes/…`: two pathspecs that match nothing. MEASURED, under bash: pathspecs git receives: 3 [reg.md] [handoffs/team] [notes/h.md] staged: handoffs/team notes/h.md reg.md --- the flattened, unquoted reset (the defect) --- exit=0 staged now: handoffs/team notes/h.md `git reset` resets what it matches, says NOTHING about what it does not, and exits 0 — so the `|| :` was never reached and no line of output said the index had been left half-reset. The rename stayed STAGED for the next writer to commit by accident, which is the half-transaction the snapshot exists to prevent. The array is kept as an array and passed quoted; `${#…[@]}` guards the expansion, which is the form `state_events`, `session_records` and `live_holder` in this same file already use under `set -u` on macOS bash 3.2. TESTS. Nine cases in the Amendment 16 section, twenty-four assertions: * the three shapes Copilot names — a DIRECTORY, a DANGLING SYMLINK and a FIFO (skipped where the host has no `mkfifo`) — each put to BOTH readers that matter: `canon-lane`, which is clause (e)'s one seat, refuses with 66 naming what is at the path, and `lane-start` refuses rather than adding the second row. Each asserts the message is NOT `unknown error`; * a LIVE symlink to a table that IS one is READ, and answers the name that table names — the asymmetry above, written down as a case; * the writer's own unreadable-table refusal now asserts the reason it carries (`aliases-unreadable.tsv is there and could not be read`) rather than a second copy of the assertion above it; * a lane whose handoff lives under `handoffs/team notes/` is renamed with a `pre-commit` hook that refuses: the register, the log, the alias table and the handoff all come back, HEAD is unmoved, and `diff --cached` is EMPTY — which is the assertion the flattened pathspec failed. Then the same rename runs again and goes through, moving the handoff under its spaced directory and landing it in one commit. `bash tests/test_lane_helpers.sh`: 2725 passed, 0 failed, 0 skipped. CI on f1fa32b, the state before this commit, is GREEN on all four platforms. Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01EaHzfTLW4u9ukpWuw8Dt6r --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…retires a repository's dormant rows on a word, and a retired position is never reissued (#93) * Nineteen lines for five lanes: a closed or dormant lane leaves the listing, one sweep retires a repository's dormant rows on a word, and a retired position is never reissued (Amendment 19) `lanes` inside the openxFactory checkout on 2026-09-14 listed NINETEEN rows for five lanes: the five live under team-01b, and fourteen marked `NO LOG` — lanes that ran between 2026-08-27 and 2026-09-02, before Amendment 7 gave every lane an object log, and that no writer today can close, because `lane-end` wants a live session or a log to write into and they have neither. They sat at the top of every listing and the next free position was read past them. Brett Heap, verbatim: "openxfactory has 19 lanes showing with command 'lanes'. we need tools to clean them up" — and, of the three choices he was given, "Retire them in one sweep", "Hide by default, --closed shows", "Amendment 19". Ratified 2026-09-14T13:46:16Z, verbatim "ratify 19". (a) TWO STATES BELOW PARKED. CLOSED is a lane whose object log's last lane-kind line is `ENDED` or `RETIRED`. DORMANT is a row with NO object log and no live session on this workstation — asked of the facts table the listing already builds, not of the filesystem, so it costs nothing. One row with no log is NOT dormant: one whose state cell is Amendment 13(a)'s phrase naming a state other than ENDED, RETIRED or the migration's MIGRATED. The register says where a lane IS (13(a)), and hiding a row that says PAUSED would hide a lane a person can still pick up. (b) THE LISTING. `lanes` lists neither by default; `--closed` adds them — a CLOSED lane with the closing line's verb and its time, a DORMANT row as `NO LOG` with its start date, its state cell's head and FLAGS where that cell says the work was unpushed, lost, a loss or owed, or still says LIVE. It combines with `--all`, `--here` and the narrowing flags, and `--lane <name>` is never filtered: its caller has named the lane, and an empty answer would read as "no such lane". The row gains four columns at the end — class, started, the cell's head, the flags — and both surfaces that split it by position were taught to read them. THE NEXT FREE POSITION IS COMPUTED OVER EVERY ROW: `next-free` now unions the rows on stdin with this checkout's register and the archive below, so a position the listing hides still holds, and a retired `<repo>-<n>` is never reissued. A LIVE lane's line now prints the ATTACH — `lane <name>`, the same word, under its own label (Amendment 18 Addendum 1: a lane live here is attached to and never started a second time). The column said `none` for the one row where the act is "go to it". (c) THE SWEEP. `lane-end --retire-dormant <repo> [--reason "<why>"] [--yes]` is a DRY RUN that names every dormant row of that repository with its start, its workstation and its cell's head, and FLAGS the ones above — so the person sees what the sweep will close before it closes it; an agent's stdin is not a terminal, so the word is `--yes` typed by a person. With `--yes` it is ONE commit (`lanes-edit.sh retire-rows`, the lock held once, the scan inside it): each lane's log is created with a single `RETIRED` line carrying the reason and the row's own last words, and the row's state becomes `RETIRED · <UTC> · <why>; was: <head>`. Clause (c) spells that cell `RETIRED <UTC> · <why> · was: <head>`, which is four parts where 13(a)'s cell has three and whose first word is a state no reader knows; the phrase written here carries the same four facts through `row_state_check`, the gate `set-row-state` uses. It refuses a lane a live session holds here, a row whose log carries a lane-kind line other than ENDED/RETIRED (a parked lane is not dormant), a repository with no dormant row (nothing to do is said, not done), and a session-record read that failed — a read that failed is not "nothing is live". Any one refuses the whole run before a byte is written, because one commit is one decision. Nothing outside the register and the logs is touched. (d) THE ARCHIVE, a second act on a second word: `lanes-edit.sh archive-rows <repo> [--yes]` moves every RETIRED row of that repository into `lanes/archive/LANES-retired.md` in one commit naming each lane. The archive is written FIRST and the rows removed second — `delete_lines` proves N removed and zero rewritten — so a refusal between them leaves a copy in the archive and the register whole, never a row in neither. `register_lanes`, the register index and the next-free reader all read the archive beside the register, which is the amendment's own sentence. The payload on a `RETIRED` line is this amendment's own: 7(b) gives that verb none and A11 clause (c) keeps it that way, and 19(c) — later, ratified, spelled out character by character — carries the row's last words into the log so that nothing the row said is lost when the row stops saying it. Tests: a seeded register of its own (a live lane, a parked one, an ended one, three rows with no log, and a seventh whose 13(a) cell says PAUSED) — the default lists two, `--closed` six, the dry run flags the `unpushed` cell and writes nothing, `--yes` writes three logs and three cells in ONE commit whose every path is under `lanes/`, a second `--yes` says nothing is dormant, a live lane and a parked one are refused by the writer itself, the RETIRED line's session field is the WRITER's uuid (7(b)), `archive-rows` moves the rows and the position still skips them, and the wrapper prints the attach for a live lane. Three existing cases are amended rather than worked around: the row's field count, the pair that asserted an ENDED lane is still in the listing (19(b) amends 11(j)), and the pick's fixture read, which now asks for `--closed` so that the partition still has a closed row to drop. Docs: the two states, the sweep and the archive in `docs/README-lanes.md`, plus the `--retire` paragraph that still described Amendment 13(a)'s removed two-step (Copilot round 4 on #82, suppressed comment `docs/README-lanes.md:463`). Closes #42 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * The retired `append-row-status` names its replacements on a machine with no workspace too (#82, Copilot round 4) It is out of the dispatcher's WRITER list and says of itself that it refuses "before the workstation guard and before the register is even looked for" — but the generic guard one case below caught it all the same. On a machine with no configured workspace the caller got the WORKSPACE refusal (exit 1) instead of the RETIREMENT refusal (exit 2) naming `set-row-state` and `log NOTED`, which are the two acts that replace it. A compatibility refusal that only fires where the register is already reachable is not one. Taken from the suppressed comments of Copilot's last review on #82 (`lanes-edit.sh:7525`), which its writer was cut off before reading; the rest are filed as issues of their own. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * `add-row` refuses a lane name the archive holds, so a retired position cannot be reissued by hand either (Amendment 19) `next-free` counts the archive and never OFFERS a retired `<repo>-<n>`, but nothing refused one that was typed: `archive-rows` moves a RETIRED row out of `lanes/LANES.md`, and every duplicate test this writer makes reads the register alone — so `lane-start <repo> 4` on an archived position would have appended a second row for a lane whose object log already exists. That log is APPEND-ONLY: the new lane would write its life into the old one's file, and every read of it — who holds what, when it was claimed, which session paused it — would answer for two lanes at once. The archive is asked beside the register, the refusal names the file, the spelling it found and that lane's log, and it stays a REFUSAL rather than a resolution: `row_line` and `canon_lane` still read the register alone, because a line number from the archive would rewrite the wrong file. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * A lane named twice in one sweep is a refusal, and the archive report drops a `--` sed will not need Two small ones, both about acts that are ONE commit. `retire-rows repo19-4 repo19-4` would have appended the same `RETIRED` line to that lane's log twice, inside a single commit, in a file that is append-only and that no later line can correct — so a duplicate in the argument list is refused by name, compared on the RESOLVED lane so that two spellings of one lane are one lane here as they are everywhere else (Amendment 15). And `archive-rows`'s dry run printed its names through `sed -n 's/^/ /p' -- <file>`; the `--` buys nothing there and this file is parsed and run under BSD userland on the macOS job. One `awk` instead, which is how the rest of this file indents a list. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * The pick's read case follows the amendment, and the archive's refusal of a reissued name is asserted Two test changes. `lanes --prefix repoPick` no longer carries the CLOSED lane — the pick hid it before the read did, and 19(b) takes it out of the read too — so that case now asserts the absence and a new one asserts that `--closed` puts it back with the line saying which verb closed it. What has not moved is the POSITION, and the footer assertion beside it still proves that. And the archive's half of "a retired `<repo>-<n>` is never reissued" is asserted where it is enforced: `add-row` refuses a lane name the archive holds, naming the archive and that lane's log, while the free position beside it is still added. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * The sweep's `--reason` is refused as an argument, once, rather than as a cell half-way down the scan It goes into every row the sweep rewrites, so a `|`, a second ` · ` or a newline in it is a refusal of the ARGUMENT — named as one, with the words that are wrong — instead of `row_state_check` dying on the first row with a message about a cell the caller never wrote. Nothing had been written either way (every test in that act is made before the first byte), but a refusal a person cannot act on is a refusal that costs them the run twice. The cap beside it is 180 where the cell's own line is 240, because the row's OWN last words go in beside the reason and a reason that fills the cell leaves none of them. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * The unknown-subcommand refusal names `retire-rows` and `archive-rows`, because it is where a person learns what this file answers to `tests/test_repo_hygiene.py::test_the_unknown_subcommand_refusal_names_every_ subcommand_there_is` caught it on the Windows job, which is the one that runs the static tests alone: the two new arms existed and worked, and a person who mistyped either was told by omission that it does not exist. That is F-X16's own defect — `fetch-age` was missing from the same list for the same reason — and the test derives the list from the dispatcher's own arms precisely because a restated list is the thing that drifts. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * A published archive this read could not render is not an empty archive `archive_text` swallowed a failed `git show` and answered with nothing, which for this file is not a small loss: its rows hold POSITIONS, and read as absent a retired `<repo>-<n>` comes back on offer — the one thing Amendment 19(d) exists to prevent. It now falls through to this checkout's own copy and says on stderr that it did, which is `log_sync`'s own posture for a fetch that did not answer. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * An untracked log — or an untracked archive — is somebody's uncommitted work, and neither act may commit it The finding `migrate-state-cells` took in round 2 of #82, in the two acts that have its shape. A TRACKED file that is dirty is already refused for the whole run by `refuse_dirty_checkout`, which exempts the register alone and reads staged and unstaged alike; an UNTRACKED file is in neither of those lists, so appending to it would put a peer's first lines into this act's one commit, under this act's message. For the sweep that is a lane's object log: a dormant row usually has none at all, but a MIGRATED one has a log of NOTED lines, and that is the file this meets. For the move it is the archive itself. Both are checked in the scan, before a byte is written, and both name the commit that settles them. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * The untracked-log refusal is asserted where the sweep would have committed it `repo19-6` — the row the `add-row` case leaves behind, dormant and with no log — gets an uncommitted log beside it, and the sweep refuses by name rather than carrying a peer's first lines into its own commit. Nothing is written and the file is taken away again. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * The manual names the six other refusals and what the archive does when it cannot be read The section listed clause (c)'s three refusals and stopped there, while the act also refuses a checkout behind or dirty, a row whose separators hide the state cell, a log needing Amendment 15's rename, an untracked log, a lane named twice and a `--reason` that would forge a cell — and the archive half now says that a published file it cannot render falls back rather than reading as empty, and that `add-row` refuses a name the archive holds. A manual that lists some of the refusals reads as a list of all of them. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * Copilot round 1 on #93: the liveness test reads both rows, the writer re-proves the listing's dormancy, the archive is read where it actually is, and a flag is never a value Six takes, each with its own reason. **A flag is not a value.** `lane-end --retire-dormant repo --reason --yes` took `--yes` as the reason, fell back to the dry run and exited 0 — a malformed line that RAN and did not do what it said. Refused now, in `lane-end`'s `--reason` and in `retire-rows`'s `--reason` and `--writer`, with the `=` spelling named for a reason that really begins with a dash. **The LIVE test reads BOTH rows' session ids**, in the listing and in the writer. The published cell is R19's source for everything else, but a lane whose `append-session-id` has landed in this checkout and not yet been pushed carries its current transcript in the local row alone — and `live_session_ids` can see that very session running. Read from the published cell only, such a lane is not LIVE, which under 19(a) makes it DORMANT: hidden, and offered to the sweep, while somebody is working in it. **The writer re-proves the row's own claim.** Amendment 13(a) makes the state cell the lane's current state, and the listing does not hide a no-log row whose cell is the phrase naming anything but `ENDED`/`RETIRED`/`MIGRATED`. The sweep trusted `lane-end`'s filtered list for that half, so `retire-rows <lane>` by hand could retire a row the listing calls parked — two surfaces disagreeing about one answer, which is the defect clause (h) exists to prevent. **`next-free` reads the PUBLISHED register and archive**, with this checkout's as the fallback: reading only the local files missed a row that is on `origin/<branch>` and not pulled here — hidden from the stdin rows by clause (b) and absent from the union, so its position came back on offer. And a source that EXISTS and cannot be read is now a refusal rather than an empty set, because a position is handed out once and a read that failed is never an answer (7(d)). **`add-row` asks both copies of the archive**: `archive_text` answers with the published file wherever there is one, so a move committed here and not yet pushed was invisible and its name came back on offer. **`archive-rows` refuses a row of its repository that it cannot take apart**, where it used to skip it silently: the act says it moves EVERY `RETIRED` row, and a row whose separators hide the state cell may be one — moving the others and saying nothing about that one reports a partial act as a whole one. Declined, with the amendment's own words: making DORMANT depend on a log FILE existing rather than on the log carrying a lane-kind line. The sweep's own refusal is "a log that already carries a lane-kind line other than ENDED/RETIRED", so the two must be the same test or they disagree; and `migrate-state-cells` creates logs of `NOTED` lines, which under the file test would take exactly the fourteen rows this amendment was written for out of the sweep's reach, silently. The one already fixed in this branch is the unknown-subcommand list, which now names both new verbs. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * The sweep's dry run holds its columns against the register's own free text Measured on the live register, where the fourteen dormant rows of openxFactory carry `started` cells like `2026-09-02 ~22:30Z; RESUMED 09-03 12:55Z and 19:27Z` and workstation cells reading `<workstation? — owner fills>`: either pushes every column after it out of line, in the one report a person reads to decide whether to say the word. Both are cut to their width; the LANE is widened instead of cut, because it is the name they act on. The cut is a bash expansion and not printf's `%.Ns`, which counts BYTES and would tear the `≤` and `—` those same cells carry. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * Copilot round 2 on #93: the pick drops a row by its class, the dry run previews the act it will run, and no read of the archive answers "empty" for "unreadable" Nine takes. **The pick was still reachable by a dormant row.** `lane_groups` filtered on the STATE word, and a dormant row's state is `NO LOG`, which is in none of its lists — so a row arriving from a read that does not hide it (`--closed`, or `lane <name>`'s own `--lane` read, which is never filtered because its caller named the lane) was grouped as available, and the word would have offered to bind a lane whose last act was its last. It drops on column 13 now, which is the read's own answer to exactly that question. **The dry run must be a preview of the act it prints.** `--reason` was checked only inside `retire_rows`, which `--yes` reaches and the dry run does not, so a reason carrying a `|` printed a clean preview of a run that could not happen. Checked in `lane-end` too, by the writer's own rules, before anything prints. And the reason is forwarded as ONE argument — `--reason=<why>` — because split in two, the documented spelling for a reason that BEGINS with a dash arrived at the writer as a flag and was refused there by design. **The liveness snapshot is taken inside the lock.** Read before `acquire_lock`, a lane could go live behind it: `lane-start` appends its id to the row under that same mutex, so the scan would read the new id and compare it against a fence that predates it. And the lane-kind check reads THIS CHECKOUT's copy of the log beside the published one, for the reason the session ids are read from both rows: the `behind` guard refuses a checkout that is behind, one that is AHEAD is legitimate, and there a `STARTED` that exists only here was invisible. **No read of the archive answers "empty" for "unreadable."** `archive_text` returns non-zero where the published file exists, will not render, and there is no local copy to fall back to; `lane_position_rows` treats an empty answer from a non-empty register as a failure; `add-row` refuses rather than missing a retired name; and the listing — which may not refuse, because it sits in front of a launch — SAYS that the archive could not be read and that the position will be refused rather than guessed. **`add-row` compares the POSITION and not only the name.** `lane_next_free` reserves `repo-4` and `repo-4a` as one position — "a re-cut position is not free" — so a name test alone let `repo-4a` through against a retired `repo-4`. **An empty listing is not an empty register.** Since 19(b) a repository whose every row is CLOSED or DORMANT lists nothing, and `lanes`'s empty branch offered "next free position: 1" — a number a dormant row holds. The position is asked for now (`next-free` reads the register and the archive itself, so it answers over an empty listing), and the line says which of the two emptinesses it is. Six cases added: the pick dropping on the class, the dormant-only repository's footer, the reason refused before the preview, the `=` spelling surviving, and the two from round 1's archive work. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * The manual says what an empty listing means now, and that the pick drops a row on its class Two sentences for two things a person meets: a repository whose every row is closed or dormant lists NOTHING, and the footer there says which emptiness it is and offers the position it read rather than assuming 1; and a closed or dormant row never reaches the numbered pick even when it is asked for by name, because `lane <name>`'s read is deliberately unfiltered and `lane-groups` drops it on the class rather than on the state word. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * The empty listing will not offer a position over a read that did not answer either The branch I added for a repository whose rows are all hidden fell back to 1 whenever `next-free` failed — including the case that read refuses ON PURPOSE since round 2, a source it must count that could not be read. Offering 1 there hands out a position a retired row may hold, which is the one thing the amendment is for. The un-upgraded workstation (exit 2, no `next-free` at all) keeps the old answer of 1, because that is what this branch printed before the read existed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * Copilot round 3 on #93: the sweep's flags belong to the sweep, the hidden rows are asked about rather than inferred, and no log read answers "no lane-kind line" for "could not be read" Six takes, one already in this branch, one declined again. **The sweep's own flags belong to the sweep.** They are parsed for every invocation, so `lane-end <lane> --yes` ran the ORDINARY ending — a line that reads like a confirmed sweep doing something else entirely — and `lane-end <lane> --reason "<why>"` dropped the words on the floor. Both are refusals now, each naming the act the word belongs to. **Whether there are hidden rows is ASKED.** The empty branch used `next-free != 1` as a proxy, which is wrong for the register holding ONE hidden row at position 2 or later: there the lowest free position really is 1, and the listing said "no lane of <repo> is recorded" about a repository that has one. The `--closed` read answers it directly, on the path that has already found nothing to show. **No log read answers "it has no lane-kind line" for "it could not be read."** `lane_log_events` ends in `git show … | parse_log_stream` and this file sets no `pipefail`, so a `git show` that failed was masked by the parser exiting 0 over empty input — and an unreadable log then read as the one answer that lets the sweep through. The published object is proved readable by name first, and this checkout's copy is read with the same posture instead of `|| :` (the untracked guard does not catch a TRACKED file that will not open). **`next-free` reads the published register even where the working tree has no file**, which is `register_text`'s own rule; gated on the local file existing, it skipped the published source entirely on a checkout that lacks it. **A row is never classed DORMANT over a liveness read that failed**: dormant is "no object log AND no live session here", and where the session records could not be read the second half was never established. The class is left unset, so the row stays LISTED and the sweep is never offered it — the listing already says the read failed; this is what it does about it. Already in this branch: the empty listing refusing to offer a position over a failed `next-free` (`a8e56dd`). Declined again, with 19(c)'s own words: refusing a lane whose log already ENDS. The clause refuses "a lane-kind line other than `ENDED`/`RETIRED`", so a closed log passing is the amendment's text, and writing a `RETIRED` line into a finished lane is Amendment 6(d)'s own act — what `lane-end --retire` has always meant, in a file where a second closing line loses nothing. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * One `log_path_ci` per lane in the sweep, not two Round 3's readability probe resolved the published log path and the guard below it resolved the same path again — `log_path_ci` is an `ls-tree` of the whole log directory and this loop runs per lane, so that is a second read of the same tree for an answer already in hand. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * Copilot round 4 on #93: a log only this checkout has is still an object log, the archive is not exempt from the dirty guard, and two more reads stop answering "empty" for "failed" Four takes and one decline. **A log this checkout has and `origin` has not is still an object log.** The facts pass reads the PUBLISHED logs (R19), so a log committed here and not yet pushed is in no fact the listing has — while the sweep has read the local log since round 3. The two would have disagreed about the amendment's own condition on a checkout that is merely AHEAD. One `ls` of the log directory for the whole listing, lower-cased and matched per lane, because a lane name is one name under any case. **The archive is no longer exempt from `refuse_dirty_checkout`.** It was, because this act writes it — but `handle_preexisting` captures the REGISTER alone, so a tracked edit somebody else left in the archive rode into this commit under this act's message. Dropping the exemption also makes a half-done move safe: if the append lands and the removal or the commit does not, the archive is dirty and the next run refuses by name instead of appending the same rows twice. **Two more reads stop answering "empty" for "failed".** `archive-rows` read the register inside a here-document, where a failed `awk` is discarded and the act reports "no row has the state RETIRED" about a file it never read; and `lane-end --retire-dormant` counted zero dormant rows and announced that none are dormant when the listing had just said this workstation's session records could not be read — a reason it has not got, since DORMANT is "no object log AND no live session here". **Declined**, with the sibling act's precedent: staging the log appends and replacing them atomically. Nothing is half-PUBLISHED — the commit is the only thing that publishes, and every refusal is made in the scan — and a failure in the writes themselves leaves the checkout dirty and the register unpublished, which `git status` shows and `git checkout -- lanes` undoes whole, with the next run refused by the dirty guard rather than made twice. That is what `migrate-state-cells` does under the same amendment family and the same review. The manual now says it in those terms rather than leaving it to the code. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * The pick stopped answering inside the terminal's minute: the state cell's head and its flag words leave the table every lane walks Amendment 19(b) put two FREE-TEXT fields — the state cell's head, up to 280 characters, and the flag words read from the whole of that cell — into `lanes_register_index`, which is the table `lanes_rows` hands to `table_lookup` ONCE PER LANE IN THE ESTATE. That is ruling 12's own trap, and it was measured: on a seeded register of 132 rows one `lanes --dir … --repo … --prefix <repo>` took **42 s** where this branch's parent took **14**, and on the live register 8.8 s against 4.9. `lane`'s numbered pick prints NOTHING until that read returns, so in CI its terminal cases — which write one answer into a pty and give the word sixty seconds to say something — were killed with no output at all. **Fifty assertions**, on every platform: the pick's own thirteen and every `lanes`/`lane-start` case downstream of them, plus the suite's `sleep 3000` liveness fixture, which the thirteen minutes of timeouts outran. **The two fields are a table of their own** — `lanes_register_index --cells`, `<lane>` and those two and nothing else — built ON FIRST USE and asked for BELOW the narrowing filter, and only for a row with NO OBJECT LOG. That is the only row they are about: 19(a)'s dormant row is a row whose CELL is all the listing has, while a row with a log has the log, and `lanes` prints neither field for it. The four short facts every row needs, `started` among them — `--closed` prints it for a CLOSED row too, and it is a date and not free text — stay where they were. Measured after: 16.7 s against the parent's 11.7 on the same 132 rows, and level with it on the live register. Every class (column 13) and every DORMANT row of the live register is byte-identical across the change; what moves is columns 15 and 16 of a row that HAS a log, which are `none` now. **The case that catches it** is the structure and not a stopwatch — a clock assertion on a shared runner is a flake, while a row that has a log carrying its cell's text is the defect itself, in one field. `repo19-3`'s cell now says `unpushed` and `lost` on purpose, and four assertions read the two fields off the two rows that have logs and off the dormant rows beside them. Three of the four fail on the parent commit and all four pass here. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01EaHzfTLW4u9ukpWuw8Dt6r * The manual says which rows carry the state cell's head, because "every row" is what cost the listing three times its time The table row in `docs/README-lanes.md` listed Amendment 19's four new columns without saying that the last two are a row's ONLY where it has no object log. That is not a detail of the rendering: they are free text of up to 280 characters per row, the table the listing joins on is walked once per lane, and carrying them for every row is what took `lanes --prefix <repo>` from 14 s to 42 s on a register of 132 rows and killed `lane`'s terminal cases in CI. The sentence carries the measurement, so the next person who wants a fifth free-text column reads the cost beside the column. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01EaHzfTLW4u9ukpWuw8Dt6r * A row the cells pass did not see is not a row with no state cell The split one commit up reads the state cell's head and flag words from a SECOND pass over the same register text, and an empty answer from it is not the same fact as an empty cell: `mig_cell_is_phrase` is false over nothing, so a row the second pass missed would be classed DORMANT — hidden from the listing and offered to the sweep — even where its cell says `PAUSED`, which is the one case Amendment 13(a) is in this rule to protect. The two passes read ONE register text, so a row in the first table and not the second is a read that answered differently the second time (Amendment 7(d)), and `lr_cellrow` carries whether it was seen. Without it the class is left unset and the row stays LISTED, which is the posture round 3 gave the liveness read one screen up. The published pass is the one that carries it, because the published row is the only one the class is ever decided on: `lr_row` is `lr_ixl`, and a row this checkout alone has is in no class either way. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01EaHzfTLW4u9ukpWuw8Dt6r * The ten macOS reds at 758a536 were two defects: a `-v` that spans lines, which one-true-awk refuses outright, and a liveness fixture bounded below the timeout that was raised past it Both are invisible on Linux, and both answered as something other than themselves, which is why the job's transcript had to be reverse-engineered before either could be named. SIX OF THEM: `awk -v` CARRIES ONE LINE, AND `delete_lines` HANDED IT MANY. A `-v name=value` is processed as if it were a string literal and a string literal cannot span lines: macOS's awk is the one-true-awk, which refuses a newline in one outright — `awk: newline in string … at source line 1`, exit 2, NO OUTPUT AT ALL — while gawk and mawk accept it silently. So `archive-rows --yes` appended the three rows to the archive, read an EMPTY rewrite of the register, failed its own line-count proof and died 5 with the register whole: `archive-rows --yes exits 0` got 5, `…in ONE commit` got 0, `…and the rows are out of the register` got 3, and three more fell out behind them. Measured both ways against a shim that IS that rule, on this workstation: pre-fix, one-true-awk rc=5 rows-left=4 archived=3 awk: newline in string list... at source line 1 lanes-edit: removing 3 row(s) changed the line count by 8; refusing post-fix, one-true-awk rc=0 rows-left=1 archived=3 committed post-fix, gawk rc=0 rows-left=1 archived=3 committed The list goes through the environment and is read with `ENVIRON`, which is POSIX awk and has no such restriction — the spelling `who_landing` settled on when it paid for this same rule in round 5 of A9 Addendum 4 (R-A9-11). The pass is read with its OWN status as well: an awk that failed writes an empty file, and an empty file is not "no rows matched" (Amendment 7(d)). AND THE CASE THAT CATCHES IT EVERYWHERE. A shim on `PATH` refuses a `-v` whose value carries a newline exactly as one-true-awk does and `exec`s the real awk for everything else; `repo19d` is a repository of two RETIRED rows archived under it, asserted to exit 0, in one commit, with the rows moved. The shim is itself asserted two cases above — it bites, and it passes a one-line `-v` through — so it cannot make the case pass vacuously. AGENTS.md now carries the rule beside the bash-3.2 one, for the reason that one is there: a constraint only one job can see belongs where it is read before the code is written. FOUR OF THEM: THE LIVENESS FIXTURE EXPIRED INSIDE A RUN THE WRAPPER WAS STILL WAITING ON. `tests/test_lane_helpers_suite.py` lets this file run for 3600 s — raised from 2400 when the macOS job spent 2722 s in it — while the fixture was still bounded at 3000, so the suite was licensed to outlive its own evidence by 600 s. It did: tests-macos reached the Amendment 19 section, the last 5% of the file, with the fixture already reaped, and the LIVE lane's attach line and the sweep's live-session refusal both read `none`. 4200 is 3600 plus ten minutes. The pair is now ASSERTED and not merely written down twice: the wrapper reads the `sleep <n> & LIVE_PID=$!` line and refuses a bound that does not exceed its own `TIMEOUT_SECONDS`, so the next person to raise one is told about the other in seconds on every platform, rather than in an hour on one. Copilot's round 5 on #93 is filed as #120 and claimed, under the two-round cap: the register rewrite's unchecked status in both places that make one, the sweep's published-path preflight asking a weaker question than `ensure_log`'s own, and `retire-rows`' refusal telling an already-CLOSED log to `lane-end` itself. The first two are taken there as real; the third is declined as a rule with 19(c)'s own word — *carries*, not *ends with* — and taken as a sentence. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01EaHzfTLW4u9ukpWuw8Dt6r * Keep lane fixtures isolated from host launchers and tmux names Provide a non-colliding window table for unrelated lane-start checks and pin the picker to its fake launcher. Lane: openRepoTools-3 * Fence archive writes and bypass grep wrapper Stop archive-rows when the register rewrite fails, and prove duplicate archive rows with the real grep command. Cover read-only register and wrapper retry cases. Lane: openRepoTools-3 * Keep live lane binding reads local Preserve the picker no-fetch contract for both register-row probes before a LIVE attachment; add a regression wrapper that refuses fetch-capable probes. Lane: openRepoTools-3 * fix: fence retired lane identities across rebase and attach Lane: openrepotools-3 (openRepoTools-3) * test: align helper dispatch and early fixture setup Lane: openrepotools-3 (openRepoTools-3) * fix: refuse divergent attach and malformed dormant rows Lane: openrepotools-3 (openRepoTools-3) * fix: neutralize rejected add-row before later pushes Lane: openrepotools-3 (openRepoTools-3) * test: keep lclaude visible in no-lane fixture Lane: openrepotools-3 (openRepoTools-3) * test: clear explicit launcher override in fallback case Lane: openrepotools-3 (openRepoTools-3) * Put the lclaude fixture back in a17bin, where the case that needs it can see it The one red line on Linux at 08dad90, in both `tests` and `tests-no-submodule`, was "the lane-aware restart line is printed when lclaude is installed": `lane-handoff` printed `pclaude --lane repoHF-1` because no `lclaude` was on the PATH that case runs under. 925995b meant to move the --restart case's fake `lclaude` into a directory of its own, but both cases open with the identical `cat > a17bin/lclaude` line and the hunk landed on the FIRST: that case then wrote its fake into `a17-launcher-only` (not on `$A17PATH`) and `chmod`ed an `a17bin/lclaude` that did not exist. The --restart case went on passing only because it picked up the first case's leftover file, made executable by its own `chmod`. What the --restart case actually lacked at afd5481 was not a directory: `a17bin` holds no `lane`, so `$A17PATH_NOLANE` keeps it. It was the `PCLAUDE` override 8326e68 exports for the picker cases, which `lane-handoff --restart` honours before any PATH lookup — and 08dad90's `env -u PCLAUDE` already removes it for that one invocation. So both cases return to main's `a17bin` form and the only difference from main here is that `env -u PCLAUDE`. Lane: openRepoTools-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Say what a published archive that will not render does: it refuses d0310f6 made `archive_text` fail closed when origin holds the archive and `git show` cannot render it — a local copy may lack a retired position the published one holds — but the manual's Amendment 19(d) paragraph still promised the fallback to this checkout's copy that the change removed. Taken from the review of d0310f6 on #93 (docs/README-lanes.md:2490). Lane: openRepoTools-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Offer the sweep's reason back as one shell-quoted --reason= word The dry run of `lane-end --retire-dormant` ends with the line that makes it the act, and it rendered an accepted reason as `--reason "<why>"`. For `--reason=--why` — the spelling the parser documents for a reason that begins with a dash — that line is a dash-led value the same parser refuses, so following the preview failed; and a reason carrying `"` or `$(` came back as shell syntax the person would run. The line now carries `--reason=%q`, which is the one-argument form the confirmed act already forwards to the writer. Taken from the review of 44b77c3 on #93 (lane-end:697); two assertions pin it. Lane: openRepoTools-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Give the shell suite 5400 s and its liveness fixture 6000, because darwin crossed 3600 tests-macos on this PR has failed the same way twice, and not in #107's class (the pty driver's 60 s SIGKILL, read as exit 137): the wrapper's own bound killed the whole shell suite — `subprocess.TimeoutExpired: … timed out after 3600 seconds` — at 08dad90 (`1 failed, 680 passed in 3961.39s`) and at 968ab5e (`1 failed, 693 passed in 3927.56s`), so neither run says which assertion was in flight. Amendment 19 adds ~220 cases, and main at 69bf48d was already within minutes of the bound (3741.66 s for the whole job's pytest). Since #119 `tests-macos` is the landing gate on the `ready` label, a bound the suite cannot finish inside is a gate nothing passes and nobody can read. This is the third raise for the same reason (900 -> 2400 -> 3600), dated and measured beside the other two. The liveness fixture moves with it, 4200 -> 6000, because the pair is asserted: the wrapper refuses a sleep that does not outlive its own timeout. The honest fix is still the suite's duration, #77. Lane: openRepoTools-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Ask lane-start's window-name fence only of a NEW lane, not of a lane Amendment 18 hands over At the #83 merge (7c1aef2) Linux `tests` went red on two of #83's own Amendment 18 cases, both `lane-start` exiting 2: FAIL …which it now does, with nothing refused expected [0], got [2] FAIL `lane-start --dry-run --request-handoff` prints a plan instead of refusing on a release it did not make expected [0], got [2] Both lanes (repoBind-3 after a forced release, repoBind-12 bound in another container) have their own window in the shared tmux server — `cloudsess:4 @62 repoBind-3`, `cloudsess:6 @65 repoBind-12` — and the server-wide window-name fence d0310f6 added to step 4 refused the second place's bind because another window carried the name. Amendment 18 rules that takeover in: a bench in another container keeps the lane's name until that session hands off, and binding after a release or through `--request-handoff` is the flow. main has no such fence and is green. The fence keeps the case it was written for: a NEW lane (no row), whose name on any other window is certainly foreign because nothing has bound it. That is this branch's own assertion — `REPOA-8` on @99 still refuses — and the manual's sentence now says which launches it asks. Lane: openRepoTools-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Let the sweep retire a no-log row whose cell already says RETIRED, as the listing says it may The listing classes a row with no lane-kind log line DORMANT unless its Amendment 13(a) cell names a state other than ENDED, RETIRED or MIGRATED, so a no-log row whose phrase says RETIRED is dormant and the preview names it. d0310f6 made `retire_rows` refuse that cell as "already retired", so the act could not take a row its own preview offered, and because the sweep is all-or-nothing that one row stopped every other retirement in the repository. The row a migration leaves is that row: the phrase in the cell, NOTED lines in the log. A second retirement is a second RETIRED line in an append-only log, and refusal 2 directly above already refuses that, reading the log. The cell test goes back to accepting ENDED, RETIRED and MIGRATED, so the read and the writer agree again, and a new case (`repo19ret-1`) pins it: dormant to the listing, retired by the writer, one RETIRED line in its new log. Taken from Copilot round 20 on #93 (lanes-edit.sh:10044). Lane: openRepoTools-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>



lane-collision-protocol Amendment 13, in force 2026-09-13T21:08:36Z — "Ratify as drafted (Recommended)", with O1, O2 and O3 as recommended. This is its tooling. Closes #29.
The
statecolumn was defined as a cell and used as a diary: three things in one column — the lane's CURRENT state, which Rule 6 reads; a running narrative; and rulings quoted verbatim — appended for ever with·, never replaced, in a table nobody can read in the table.lanes/LANES.mdThe acts, against the issue
1.
set-row-state <lane> "<STATE> · <one line>"— stamps the UTC itself and REPLACES the cell.STATE∈ LIVE, PAUSED, LANDING #, LANDED, ENDED, RETIRED, HANDED OFF (Rule 6's reading of the cell is unchanged and is now the whole of what the cell says at that moment); the line is at most 240 characters (O1) and carries neither a|nor a second·.add-row's brand-new row is born in the phrase rather than opening with the bare wordSTARTING;lane-start's Amendment 6(c) stamp andlane-end's closing write use it.WHICH TEXT IS THE STATE CELL is decided by splitting the row on
|: a seven-column row has exactly six separators, and then the two readings of the row — six from the left, the last cell from the right — are the same text. A row with more carries a|inside a cell, the readings disagree about which text to overwrite, and it is refused by name rather than written at a guess. 50 of the live register's 52 rows split cleanly; the two that do not are cured by escaping the pipe as\|, by hand, in acommit-wrapped edit.2.
append-row-statusRETIRED — it refuses, namingset-row-statefor the state andlog NOTED/log RULEDfor the narrative, andhistoryfor reading it back. The cell can never grow again because the act that grew it is gone, not because every caller remembered.3.
NOTEDandRULEDjoinVERB_LISTas lane-kind lines (objectlane:<lane>;RULEDtakes the object it bears on as an optional→payload, canonicalised throughrepos.tsv). Neither is a transition, so no reader's state moves because one was written:who,lane-endandlanestake a whitelist of the five lane verbs already, andswapped_candidates— the one reader that took a lane's last lane-kind line whatever its verb — now skips the two by name. Without that, a lane that noted anything after its swap would have vanished fromswapped, which is whatrestartreads to find a lane whose window name a new tmux session has lost.4.
history <lane> [--since <UTC>]— the two verbs in FILE order (R14), which is the diary the cell used to be. 8 for a lane that has written none; 64 for a caller's bad arguments.5.
migrate-state-cells [--yes]— clause (e)'s ONE act, a DRY RUN by default. Per row it splits the cell on·, writesRULEDfor an entry beginning RULING/RULINGS/RATIFIED andNOTEDfor the rest, takes the UTC from the entry's own leading timestamp (the row'sstartedwhere it carries none, minute precision accepted), the session from the LAST uuid of the row's session cell and the workstation from the row's own column; then replaces the cell with the state the LAST entry's leading verb names, elseMIGRATED. One commit carries the archivelanes/archive/LANES-pre-amendment-13-<UTC>.md, every log it appended to and the register. It refuses when no cell holds a·entry it can take, and a row it cannot take is skipped and named, its cell untouched, so a re-run after that row is settled migrates exactly it.6. Tests — a section in
tests/test_lane_helpers.shfor each act, with the migration on its own seeded workspace (it rewrites every row of the register it is pointed at, so it may not be pointed at the suite's own).7. Docs —
docs/README-lanes.mdgains "The row is current state; the log is history (Amendment 13)", and its writer lists, the row-format paragraph,lane-startstep 5 and thelane-endparagraph follow.Counts, before → after
The migration is Brett Heap's to run, on his word, after this is installed on both workstations (ratified decision O3). These numbers come from running it against a COPY of the live register in a sandbox — the live one was read and never written.
The four skipped rows, with the reason each gives:
openXfactory-2|separators where a seven-column row carries 6openxfactory-4app/openxfactory._-), so it names no log this writer would createcodeXfactory-3The dry run, on a seeded register
and the lines it wrote for
repoA-1when--yesfollowed:Two measurements that decided details
${row#"$body"}walks every prefix length in turn. Splitting one 90,751-character row cost eleven seconds, and a dry run of the migration ninety-four.${row:${#body}}is linear and the same answer: 5 seconds for the whole register. The entry split moved to oneawkpass for the same reason.${s:0:n}can land INSIDE a character, because that counts BYTES wherever the locale is not a UTF-8 one — and these lines are full of—,·and→. Every caller cuts back to the last space, which takes the fragment with it. Found by a refusal: "the line is 242 characters and the cap is 240", from a truncation that had appended a 3-byte…to 239 bytes.What moved, and what did not
Every caller of the retired verb moves —
lane-start,lane-end(whose--retireno longer needs a second write, so--state-wasis accepted and ignored),lane-handoff, the/handoffskill, and the name guard's MOVED marker.lane-start's stamp puts the launch clause FIRST and clause (c)'sdirandwindowafter it, because under a 240-character cap a line that must be cut should lose what a reader can look up elsewhere (both are sub-fields of the same act's log line and columns oflanes) rather than the one fact written down nowhere else.Unchanged: Rule 9 (every write is a commit), Rule 6 and Amendment 10, Amendment 6's session cell, Amendment 7's existing verbs and its last-line rule, Amendment 8's
SessionStartblock, Amendment 11'slanes, Amendment 12's guard reads, and the OBJECTS OWNED column (O2: one column at a time is how a migration stays reversible).🤖 Generated with Claude Code
Summary by Sourcery
Move lane narrative history out of register state cells while keeping each row as a bounded, readable representation of the lane's current state.
New Features:
set-row-state,history, and dry-run/confirmedmigrate-state-cellscommands for managing current lane state, reading narrative history, and migrating legacy state-cell diaries.NOTEDandRULEDnarrative verbs to per-lane logs without affecting lane state transitions.Bug Fixes:
Enhancements:
Documentation:
Tests:
Chores:
append-row-statusand direct callers toset-row-state,log NOTED/log RULED, andhistory.