Skip to content

The lane listing reads a row's state phrase when its log is missing, so a migrated PAUSED row stops showing NO LOG (#89) - #206

Merged
brettheap merged 3 commits into
mainfrom
fix/listing-reads-state-cell-89
Oct 18, 2026
Merged

brettheap merged 3 commits into
mainfrom
fix/listing-reads-state-cell-89

Conversation

@brettheap

@brettheap brettheap commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openRepoTools-5 (claim on #89 held by the lane's coordinator).

What was wrong

lanes_rows took a lane's STATE only from its log's last lane verb, and fell back to NO LOG. A row that migrate-state-cells left behind has Amendment 13(a)'s phrase in its cell and only NOTED lines in its log, so the listing printed NO LOG over a cell that says PAUSED. Amendment 13 exists to make that column authoritative, and the listing never read it. #93 (c1bac0d) stopped such rows being hidden as DORMANT. It did not change the word they were shown under.

Evidence at f87fd5a, using the suite's own Amendment 19 seed (repo19b-1: no log, cell PAUSED · 2026-09-13T00:00:00Z · migrated; …):

lanes-edit.sh lanes --prefix repo19b
  col 2  NO LOG
  col 10 none
  col 16 PAUSED · 2026-09-13T00:00:00Z · migrated; history in lanes/log/repo19b-1.md
lanes-edit.sh lane-groups Eagle       -> available   (filed on the workstation column alone)
lane --dir <d> repo19b-1 team-05a     -> rc 0, launcher ran: argv=--lane repo19b-1 --dir <d> team-05a

The last line matters most. A row whose log records no directory, profile or binding was numbered in the pick, and lane launched it.

What changed

  • lanes-edit.sh lanes_rows: a new rung, placed below the Amendment 19 class decision and the hide filter. Where the state is NO LOG and mig_cell_is_phrase proves the cell is the phrase, the STATE becomes the cell's leading word followed by (row), for example PAUSED (row) or LANDING #12 (row). mig_cell_is_phrase is called, not changed (migrate-state-cells: the ~HH:MM start form is dated midnight, the first log write skips Amendment 15's rename, and a malformed phrase counts as migrated (#82 round 4, suppressed) #88 owns it).
    • LIVE stays NO LOG. A cell cannot prove a session is running; only a live record can, and that read has already been made by this point. Column 17 still flags the cell.
    • ENDED, RETIRED and MIGRATED stay NO LOG. These are Amendment 19(a)'s DORMANT rows, which 19(b) and the manual show as NO LOG, with the cell's head on its own line.
    • Why the rung sits below the class: the cell table is built only for no-log rows, and only below the narrowing filter (ruling 12). The class is the log's question, so it is decided on the log's answer before this rung changes the word that gets printed.
  • lanes-edit.sh lane_groups: a state ending in (row) is filed in a new group, rowonly. The check runs before the workstation test. The partition comment above the function names the new group.
  • lane: new go_rowonly, plus a rowonly) branch in go_row.
    • The pick only renders available, live and elsewhere, so it never numbers a rowonly row.
    • lane <name> refuses with 2. The refusal names lanes-edit.sh register-row <lane> as the read, and gives the by-hand start: cd <the lane's checkout> && pclaude --lane <lane> <profile>.
    • The header comment gained one paragraph.
  • docs/README-lanes.md: one paragraph under lane's three-branch table, and one under Amendment 19's "One row with no log is NOT dormant".

The design call, for Brett to confirm

The brief's conservative call is implemented: a cell-derived state is DISPLAYED, but lane never picks or resumes it, because there is no log to resume from.

The (row) mark is my implementation choice for that call, and I think it is the safer one. It goes in the STATE word itself rather than a new column, and the word is not the bare PAUSED, for these reasons:

  • Readers fail safe by default. Every reader that keys on the log's own PAUSED (column 10's lane <name> line, lane_groups's PAUSED -> available, and lanes's bind it: line) passes PAUSED (row) by without any change of its own.
  • Old and new copies still fail closed when mixed. An older lane given a newer lanes-edit.sh reaches go_row's existing *) refusal ("no branch for"). A newer lane given an older helper never sees the mark.
  • No column count changes. lanes, lane and lane-end each read the row as exactly 17 named fields.

Behaviour change to note: before this PR, such a row on this workstation was numbered under AVAILABLE, and lane would launch it when given --dir and a profile. That is no longer possible.

If Brett would rather a cell-derived PAUSED be pickable, the switch is small: drop the rowonly arm in lane_groups and the refusal in go_row, and decide what column 10 should offer.

Left untouched on purpose: the liveness-failure note at lanes-edit.sh:7377 still calls the STATE column "the LOG's verb alone". That line is inside lane 4's #138 hunk, so I did not reword it. Its safety intent holds, because a (row) state is never pickable either way.

Functions and regions edited

  • lanes-edit.sh: lanes_rows: one block inserted after the Amendment 19 hide filter (new lines 7607–7643). The lr_verb case at ~7500 and the class block are untouched, and nothing is reflowed.
  • lanes-edit.sh: the partition comment above lane_groups, 4 lines (new 7816–7819).
  • lanes-edit.sh: lane_groups: one awk rule plus its comment, after the ENDED/RETIRED drop (new 7841–7849).
  • lane: the header comment, 5 lines (new 69–73).
  • lane: go_rowonly: new function, inserted before go_row (new 1192–1212).
  • lane: go_row: comment and one case arm (new 1214–1215 and 1222).
  • docs/README-lanes.md: the lane section after the three-branch table (new 253–257), and the Amendment 19 section after "One row with no log is NOT dormant" (new 2969–2980).
  • tests/test_lane_helpers.sh: the Amendment 19 section, after the repo19b-1 case (new 12070–12103), and at the end of the section after repo19ret-1 (new 12572–12582).

Tests

These are in the Amendment 19 section of tests/test_lane_helpers.sh.

repo19b-1 (the PAUSED case):

  • column 2 is PAUSED (row)
  • column 10 is none
  • lane-groups files it rowonly
  • the rendered lanes listing shows PAUSED (row) and not NO LOG

The lane picker case (the conservative call):

  • a bare lane inside a repo19b checkout exits 8 and never numbers the row
  • lane --dir <d> repo19b-1 team-05a exits 2, says "no lane-kind line" and names lanes-edit.sh register-row repo19b-1
  • the fake launcher's log stays empty

A guard for the asymmetric case: a new no-log row repo19live-1, whose cell is LIVE · … and which has no live record. Its STATE stays NO LOG, and column 17 is LIVE. This assertion passes before the fix as well; it is there to keep the asymmetry from being removed later.

Fail-before / pass-after, run locally in isolation (temp $HOME, temp bare repositories, the LANES_* seams unset; not the full suite):

  1. Mini-suite. I built it from the suite's own text: the preamble (lines 1–971, with its live-session fixture), the E/LOGD and LANE/pclaude definitions, the whole Amendment 19 section, and the footer. I ran it once against the f87fd5a scripts and once against this branch, both times with this branch's test file.
    • f87fd5a: 194 passed, 10 failed. The 10 failures are exactly the new regression assertions: expected [PAUSED (row)], got [NO LOG], expected [rowonly], got [available], expected [8], got [0], expected [2], got [0], and the launcher log non-empty.
    • this branch: 204 passed, 0 failed.
  2. The new blocks alone, extracted from the test file and run on a minimal sandbox: f87fd5a 7 passed, 10 failed; this branch 17 passed, 0 failed.
  3. bash -n passes on lanes-edit.sh, lane and tests/test_lane_helpers.sh. python3 -m pytest tests/test_repo_hygiene.py -q reports 152 passed.

Closes #89

🤖 Generated with Claude Code

Summary by Sourcery

Show authoritative state-cell values for migrated no-log rows while keeping those rows read-only and unavailable for automatic lane startup.

New Features:

  • Display state-cell phrases for migrated no-log rows as marked read-only states such as PAUSED (row).
  • Prevent row-only states from being included in lane picks and refuse direct launches without a resumable log, with guidance for manual startup.

Bug Fixes:

  • Stop migrated rows from being displayed as NO LOG when their authoritative state cell contains a non-dormant state phrase.

Enhancements:

  • Keep LIVE, ENDED, RETIRED, and MIGRATED no-log rows on their existing handling while routing cell-derived states into a distinct rowonly group.

Documentation:

  • Document the display-only and non-pickable behavior of state-cell-derived rows and the manual startup path.

Tests:

  • Add regression coverage for displayed row states, grouping, picker exclusion, direct-launch refusal, and the special LIVE case.

…so a migrated PAUSED row stops showing NO LOG (#89)

`lanes_rows` took a lane's STATE from its log's last lane verb alone and
fell back to `NO LOG`. A row `migrate-state-cells` left behind has the
Amendment 13(a) phrase in its cell (`PAUSED · <UTC> · …`) and only NOTED
lines in its log, so it listed as `NO LOG` with its real state one field
along in column 16. The pick then filed it AVAILABLE on the workstation
column alone, and `lane --dir <d> <lane> <profile>` launched it.

A new rung, below the Amendment 19 class and the hide filter, reads the
cell's leading word where the log gave none and `mig_cell_is_phrase`
proves the cell is the phrase, and prints it as `<WORD> (row)`. `LIVE`
stays `NO LOG` (a cell cannot prove a session is running), and so do
`ENDED`, `RETIRED` and `MIGRATED`, the DORMANT rows 19(b) shows as
`NO LOG`.

The conservative call, for Brett Heap to confirm: a cell-derived state
is displayed, never picked or resumed. ` (row)` keeps every reader that
keys on the log's own `PAUSED` (column 10, `lane_groups`, the `bind it:`
line) from treating it as one. `lane_groups` files it `rowonly`, which
`lane` never numbers and refuses by name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR makes migrated, no-log rows display their authoritative cell state with a (row) marker while explicitly keeping them out of lane selection and resumption, adds the corresponding refusal and documentation paths, and covers the behavior with focused Amendment 19 regression tests.

Sequence diagram for refusing a row-only lane

sequenceDiagram
    actor User
    participant lane
    participant lanes_edit as lanes-edit.sh
    participant Launcher as pclaude
    User->>lane: lane name
    lane->>lanes_edit: register-row name
    lanes_edit-->>lane: no lane-kind line
    lane-->>User: refuse with exit 2 and manual start
    Note over Launcher: Not called
Loading

State diagram for migrated no-log row handling

stateDiagram-v2
    [*] --> NoLog
    NoLog --> RowOnly: cell is phrase and state is not LIVE or dormant
    NoLog --> NoLog: cell is LIVE
    NoLog --> NoLog: cell is ENDED, RETIRED, or MIGRATED
    RowOnly --> Displayed: render WORD (row)
    RowOnly --> Unpickable: lane_groups = rowonly
    Unpickable --> ManualStart: no log available to resume
Loading

Flow diagram for displaying and handling row-derived lane states

flowchart TD
    A[lanes_rows reads log state] --> B{STATE is NO LOG?}
    B -- No --> C[Keep log-derived STATE]
    B -- Yes --> D{mig_cell_is_phrase proves cell state?}
    D -- No --> E[Keep NO LOG]
    D -- Yes --> F{Cell state is LIVE or dormant?}
    F -- Yes --> E
    F -- No --> G[Display cell word with row marker]
    G --> H[lane_groups assigns rowonly]
    H --> I[lane never numbers or resumes rowonly]
    I --> J[lane refuses and directs manual pickup]
Loading

File-Level Changes

Change Details Files
Make migrated row-state cells visible in the lane listing without treating them as resumable lane records.
  • When the log has no lane-kind state and the migration cell contains a non-terminal phrase, render its leading state as <STATE> (row) while preserving NO LOG for LIVE and dormant states.
  • Classify marked states as rowonly before workstation-based grouping so they cannot enter the pick.
  • Add a dedicated lane refusal path that explains the missing lane-kind log and directs manual startup via register-row and pclaude.
lanes-edit.sh
lane
Document the distinction between displaying a migrated row state and picking or resuming a lane.
  • Explain the (row) marker, non-pickable behavior, manual recovery, and LIVE asymmetry.
  • Describe the row-only behavior in the Amendment 19 guidance.
docs/README-lanes.md
Add regression coverage for row-state rendering, grouping, picker exclusion, refusal behavior, and LIVE handling.
  • Verify PAUSED rows render as PAUSED (row) with no column-10 action and are grouped as rowonly.
  • Verify bare and directed lane invocations do not number or launch the row and provide the expected refusal guidance.
  • Verify a cell-only LIVE state remains NO LOG while column 17 flags it.
tests/test_lane_helpers.sh

Assessment against linked issues

Issue Objective Addressed Explanation
#89 Show a migrated row’s state-cell phrase in the listing instead of displaying NO LOG when the log has no lane-kind state verb. ✅
#89 Keep a cell saying LIVE from being presented as live without a live record, while allowing other eligible state phrases to be displayed. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

…s this PR on today's main

Main moved 15 commits past this branch's base f87fd5a, through the suite's machinery and pin (.github/workflows/tests.yml, contracts/openreposhape-pin.yaml, tests/conftest.py, tests/test_repo_hygiene.py, upstream/openRepoShape), after this PR's last green run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s this PR on today's main

Main moved 4 commits past this branch's base 2cb14a9, through the suite's machinery and pin (), after this PR's last green run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

brettheap added a commit that referenced this pull request Oct 18, 2026
…ane holds the object (#74) (#204)

Landed on Brett Heap's word "land #204 #206 #208 #218 #220 #221 when green" (2026-10-18), by lane openRepoTools-5. Required Linux CI (guard-launch-mode, tests, tests-no-submodule; run 39137725493) was green on head af5b7ce with main 586dea2 in its tree.

Independent review (lane 5, Opus, of 4996156; the merges of main add nothing to the PR's diff): LAND.

Closes #74

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brettheap
brettheap marked this pull request as ready for review October 18, 2026 15:56
@sourcery-ai

sourcery-ai Bot commented Oct 18, 2026

Copy link
Copy Markdown

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 1 day and 9 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit be82c20 into main Oct 18, 2026
5 checks passed
brettheap added a commit that referenced this pull request Oct 18, 2026
…or binding log instead of guessing a branch (#60) (#208)

Landed on Brett Heap's word "land #204 #206 #208 #218 #220 #221 when green" (2026-10-18), by lane openRepoTools-5. Required Linux CI (guard-launch-mode, tests, tests-no-submodule; run 39137741203) was green on head 3edaf0a with main 586dea2 in its tree. Main be82c20 merged with head 3edaf0a is tree cfd2ee6, which queue run 39137988005 (workflow_dispatch of tests on 9db4863) tested whole and green.

Independent review (lane 5, Opus, of c252a3c; the merges of main add nothing to the PR's diff): LAND.

Closes #60

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 18, 2026
…s why refuse it before writing, and the deferred lane-start command keeps --agent (#85, #72 items 5, 6) (#218)

Landed on Brett Heap's word "land #204 #206 #208 #218 #220 #221 when green" (2026-10-18), by lane openRepoTools-5. Required Linux CI (guard-launch-mode, tests, tests-no-submodule; run 39137747959) was green on head bfc5ddd with main 586dea2 in its tree. Main fca60f5 merged with head bfc5ddd is tree b188309, which queue run 39137992777 (workflow_dispatch of tests on 586df3b) tested whole and green.

Independent review (lane 5, Opus, of 99f3853; the merges of main add nothing to the PR's diff): LAND. Brett Heap confirmed refusing CR/LF at the door (2026-10-18).

Part of #85. Part of #72 (items 5-6).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 18, 2026
…ane-handoff renames the window only once the handoff can no longer be refused (#80 slices B and C) (#220)

Landed on Brett Heap's word "land #204 #206 #208 #218 #220 #221 when green" (2026-10-18), by lane openRepoTools-5. Required Linux CI (guard-launch-mode, tests, tests-no-submodule; run 39137756635) was green on head 0b531e5 with main 586dea2 in its tree. Main 01eff2c merged with head 0b531e5 is tree a388312, which queue run 39137998354 (workflow_dispatch of tests on f335793) tested whole and green.

Independent review (lane 5, Opus, of 9f6fd2d; the merges of main add nothing to the PR's diff): LAND. Brett Heap confirmed the rename trade as built (2026-10-18).

Part of #80 (slices B and C).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 18, 2026
…ession ids, so the dead-lane --force check and duplicate-holder fail closed (#67) (#221)

Landed on Brett Heap's word "land #204 #206 #208 #218 #220 #221 when green" (2026-10-18), by lane openRepoTools-5. Required Linux CI (guard-launch-mode, tests, tests-no-submodule; run 39137764839) was green on head 14696c7 with main 586dea2 in its tree. Main be0743b merged with head 14696c7 is tree 0052eff, which queue run 39138003629 (workflow_dispatch of tests on 147cbf6) tested whole and green.

Independent review (lane 5, Opus, of fbd2bb1; the merges of main add nothing to the PR's diff): LAND.

Closes #67

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The listing never reads the row's current-state phrase, so a migrated PAUSED row shows as NO LOG (#82 round 3, suppressed)

1 participant