Repository navigation
Description
Three non-blocking notes from the Opus review of PR #230, left after it. PR #230 fixes the lanes-edit.sh items of #138 (items 1, 2, 4, 5, 7–12, 17 and 18) and #157 item 4b. Each note below is a read that still turns a failure into an answer, next to one #230 closed. Lines are lanes-edit.sh at a284f71 (#230's head).
Searched first: no open or closed issue names remote_log_events, a present skip-worktree archive, or the other log_files_named_ci callers. #138's remaining items (3, 6, 13–16: lane-start, lane-end and the wrappers, in #210/#216) and #120/#122 are on other lines.
1. remote_log_events' failed ls-tree goes unreported (lanes-edit.sh:3092)
git -C "$LANES_REPO" ls-tree --name-only "origin/$LANES_BRANCH" -- "$LANES_LOG_PREFIX" 2>/dev/null | while … — when the ls-tree itself fails (a tree object git cannot read), the loop gets no paths:
- the published event stream is empty, and nothing says why;
- Register sweeps and reads refuse what they could not read: retire-rows, archive-rows, migrate-state-cells, the DORMANT class, next-free and add-row (#138 lanes-edit.sh items, #157 item 4b) #230's item-11 fence reads only the
unreadable log:lines that a failedshowleaves, so it stays empty too; lanes_rowsthen classes every row with no local log and a readable liveness read DORMANT, andlane-end --retire-dormantoffers those rows.
Item 11 in #230 covered a failed show of one log, not a failed listing of all of them.
Fix sketch: capture the listing with its status, and on failure note a fixed sentence carrying "no row is classed DORMANT here". lanes_rows withholds the class on it, as for an unlistable log directory, and lane-end already refuses on that sentence since #230.
2. A present skip-worktree archive leaves a staged row deletion (lanes-edit.sh:11957)
#230's item 2 refuses a published archive that this checkout does NOT have. Its guard is [ ! -e "$LANES_ARCH_FILE" ] && [ ! -L "$LANES_ARCH_FILE" ] (:11957), so a skip-worktree archive that IS present here passes:
archive-rows <repo> --yesappends to the skip-worktree file (invisible togit status) and deletes the rows from the register;commit_push'sgit addthen refuses the path ("outside of your sparse-checkout definition") and the act exits 6.
Reproduced at a284f71 on a throwaway register: exit 6, git status --porcelain shows M lanes/LANES.md (the row deletion, STAGED), and the archive's new row is on disk where no dirty check sees it.
Fix sketch: in the same preflight, refuse (2) an archive path the index marks skip-worktree or outside the sparse checkout (git ls-files -t -- <path> tags it S), whether or not the file is present.
3. Other callers of log_files_named_ci ignore its new status (lanes-edit.sh:2678, :2698, :10930)
#230 made log_files_named_ci return 1 where lanes/log exists and cannot be listed, and only retire_rows (:11781) reads that status. Three callers still take the empty answer as "no log of any case":
log_path_ci(:2678) answers the canonical path as though no local file exists;ensure_log(:2698) goes on to create the canonical file beside one it could not see;migrate_state_cells(:10930) plans a row's log at the canonical path.
rename-lane (:14182, :14193) has two more, in the rename-publication region another writer owns.
Fix sketch: each caller refuses with 1 on that status, before any write: ensure_log dies, migrate_state_cells skips the row with a reason, and log_path_ci returns a status distinct from its "two logs" 2 that its callers already refuse on.
🤖 Generated with Claude Code
Activity
brettheap commentedon Oct 18, 2026
Two more from the re-review of #230 (at a284f71). Left as they are there, and filed here. Lines are
lanes-edit.shat 19ecf54, #230's head after that round.4. Other
cat-file -eprobes that read an unreadable blob as an absent path#230 moved the register (
register_text,lane_position_rows) and the archive (archive_text) ontoregister_published, which asksls-treeof the path and answers 0 published, 8 absent, 1 tree unreadable. Four probes still usecat-file -e, which fails for a missing or corrupt blob exactly as for a path that is not there:lane_log_exists(:3200): a published log git cannot read answers "no log".lane_alias_text(:4772):lanes/aliases.tsvpublished and unreadable falls through to this checkout's copy. Theshowfailure branch is only reached wherecat-file -esucceeded.rename-lane's published-log check (:14253): an unreadable published log of the old name is "not published", so the case-only-rename refusal does not fire. This is in the rename-publication region another writer owns.rename-lane's aliases check (:14300): a published, unreadablealiases.tsvis "not published", so a table holding only this rename can be written. Same region.Fix sketch: each asks
register_published <path>(it takes a path since #230) and treats 1 as a refusal, or aslane_alias_fail5, never as absent.5.
have_remote_reffailing reads as "no origin" (P1)have_remote_ref(:3067) isgit rev-parse --verify -q "origin/$LANES_BRANCH". A ref that exists and cannot be resolved therefore looks the same as a checkout with no origin at all. Those are a broken packed-refs or loose ref file, or an unreadable.git. Every published read then takes its working-tree fallback:register_text,archive_text,log_path_ci,lane_log_events, and #230'sregister_published, whose 8 means "use the local copy".Fix sketch: tell "no such ref" from "could not read the refs":
git show-ref --verifyorfor-each-refwith its status, orrev-parsewith stderr kept and the ref files' presence checked. Then have the published reads refuse (1) on the latter instead of falling back.brettheap commentedon Oct 18, 2026
6. An unreadable register in an estate with no object logs reads as "no lane recorded" (minor)
From the final re-review of #230, at 19ecf54. Take a published register that git cannot read, in an estate with no object logs at all:
lanes_rowsreturns 8 at[ -n "$lr_names" ] || return 8(lanes-edit.sh:7365), before Register sweeps and reads refuse what they could not read: retire-rows, archive-rows, migrate-state-cells, the DORMANT class, next-free and add-row (#138 lanes-edit.sh items, #157 item 4b) #230's oneregister_textcheck (:7409–7410) is reached;lanesexits 8, andlane-end --retire-dormant <repo>exits 8 with "no lane of is recorded at all", instead of saying the register could not be read.It is minor: nothing is written, and every live estate has had object logs since Amendment 7.
Fix sketch: run the
register_textstatus check (and its note) before that early return, and have an unreadable register refuse there rather than answer 8.brettheap commentedon Oct 18, 2026
(lane openRepoTools-4) Caller audit for #248, from the independent review of #230.
Lines are
lanes-edit.shat main 08e7550. The reviewer judged this non-blocking for #230, because main does the same today whengit showis refused.who --landing <repo>answersnone open(exit 0) over a register it could not read.register_text(:3280) isregister_text_checked || :, so it drops the status thatregister_text_checked(:3254) returns, and a failed read looks like an empty register. It matters because another lane that readsnone opensees no merge hold, and may land into one.chmod 000, no origin): readable givesLANDING owner/repo#5 …; unreadable givesnone open — no LANDING on owner/repo is still open …, exit 0. Thecat: … Permission deniedline is on stderr only. I did not reproduce a refusedgit show, but it takes the same|| :.register_text_checkedhas one caller on main,session_ids_checked(:5144).register_textand notregister_text_checked:who_landing(:5957): the read isregister_text | … awk "$RULE6_AWK"at :5977. Empty text leaveswd_nat 0, so :5991 printsnone open, and the function returns 0.lane_of_session(:6058):register_text | awkat :6061 prints nothing and returns 0.session-lane(:16683) then exits 8, which its own header (:16662) reserves for "no row names it", so that a caller can tell none from could not read. Reproduced the same way:session-lane <uuid>exits 0 with the lane when readable and 8 when unreadable. The SessionStart hook reads it at :8566.lane_workstation(:5170): it reachesregister_textthroughrow_of_lane(:4702,register_text | awk), not directly. An unreadable register gives an empty row andreturn 1, solane_is_elsewhere(:5175) answers "not elsewhere", andprint_holder_detail(:5607, :5648) andcross_repo_warn(:5295) take the local-lane branch. Read from the code; not run.row_of_lanehas other callers, so changing it widens the audit; reading the register inlane_workstationitself does not.register_text_checkedand fails closed on its status 1: exit 1 with a message that the register could not be read, nevernone open, an empty answer or "no lane". Forlane_of_sessionthat status must stay distinct from the 8 of "no row".who_landing,lane_of_session,lane_workstation,lane_is_elsewhereandrow_of_laneare text-identical to main's. Lane 4 is landing Register sweeps and reads refuse what they could not read: retire-rows, archive-rows, migrate-state-cells, the DORMANT class, next-free and add-row (#138 lanes-edit.sh items, #157 item 4b) #230 as it stands, and this is left for Three reads left after #230 still turn a failure into an answer: remote_log_events' ls-tree, a present skip-worktree archive, and log_files_named_ci's other callers #248.Lane: openRepoTools-4