You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tree_id_for is not injective and the recorded checkout is never compared with git's, so two trees can share one sidecar and a replaced repository reads as ok #116
A tree in the lane inventory is identified by its path with everything outside the manifest-key set folded to -, and its repository is recorded and never checked. Two halves of one question: is this the tree the record is about?
/tmp/a/b and /tmp/a-b both fold to tmp-a-b, and tr -s '-' squeezes repeats, so /tmp/a//b joins them. The id is the sidecar's FILE NAME, so the second tree's record replaces the first's: a lane with two valid worktrees loses one from lane-trees, from lane-reconcile, and from every classification the reconciliation makes — the lost one can only be rediscovered as unmanaged, with no stored observation to compare against, which is the difference between missing and possible-loss.
The digest that would separate them is already in the function and is applied only to long paths:
and lane_reconcile recomputes branch, head, upstream, dirty and unpushed for every tree and compares those five — and not this one. If the path is occupied by a DIFFERENT checkout that happens to be on the same branch at the same commit (a re-clone, a git worktree move of something else onto the path, a restored backup), every observation reads ok and the report says the tree is current. A recovery then relaunches a writer into a repository that is not the one the record is about.
Copilot review rounds are capped at two per pull request (Brett Heap's ruling of 2026-09-16); #97 is at round six and took only the two safety holes it could not land with. Neither of these is a small edit: the id is a MIGRATION — every sidecar already on disk is named by the current spelling, and changing the derivation renames all of them — and the repository check needs an identity that is stable across a clone (the common dir, or the origin URL, each with its own answer for a worktree of a worktree).
What's open
For the id: an injective encoding, or the cksum prefix on every path rather than on long ones only, plus a migration that reads the old name and writes the new one once. For the repository: record an identity git can answer for (git rev-parse --path-format=absolute --git-common-dir, or the origin URL) and compare it in lane_reconcile, classifying a mismatch as inconsistent rather than ok.
Filed from Copilot round 6 on #97 — #97 (comment) and #97 (comment) — and named in openspec/changes/add-crash-consistent-lane-worktree-recovery/tasks.md section 7.
CLAIMED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-16T13:05:55Z, for #116
Logged in lanes/log/openRepoTools-3.md at 0de8997e6b7a1a5a3e8fe5b503b6288a10d20ad2.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoTools#116:
none
2. `gh pr list --repo opensoft/openRepoTools --state all --search "#116"`, kept where the row or its body names `#116`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `116` as a whole token:
none
RELEASED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-11-10T12:46:46Z, for #116 — handed to lane openRepoTools-5 (#165 6767583421) under Brett's extended landing word; lane 5 claims it next
CLAIMED — lane openRepoTools-5, session 0d83dca2-c18c-4bb0-99ce-896e6cafea02@Eagle, 2026-11-10T13:41:32Z, for #116
Logged in lanes/log/openRepoTools-5.md at 297bb73acbece27d83f869e61bad1b138b6e4e41.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoTools#116:
6:CLAIMED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-16T13:05:55Z, for opensoft/openRepoTools#116
13:1. existing `CLAIMED —` comments on opensoft/openRepoTools#116:
26:RELEASED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-11-10T12:46:46Z, for opensoft/openRepoTools#116 — handed to lane openRepoTools-5 (#165 6767583421) under Brett's extended landing word; lane 5 claims it next
2. `gh pr list --repo opensoft/openRepoTools --state all --search "#116"`, kept where the row or its body names `#116`:
97 Crash-consistent lane worktree recovery: a lane now says WHERE its session stopped — RUNNING → SWAPPING → SWAPPED with a generation/operation fence, a machine-readable worktree inventory taken at every handoff, and a resume reconciliation that reports and resets nothing feat/crash-consistent-lane-worktree-recovery MERGED
3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `116` as a whole token:
none
RELEASED — lane openRepoTools-5, session 0d83dca2-c18c-4bb0-99ce-896e6cafea02@Eagle, 2026-11-10T23:57:19Z, for #116 — its fix landed as opensoft/openRepoTools-code#29 (squash 10799a5) with opensoft/openRepoTools-spec#22 (squash 120ece9), LANDED by lane openRepoTools-3 at 2026-11-10T21:53:47Z and 21:55:05Z; the issue was marked completed at 21:53:37Z
Activity
brettheap commentedon Sep 16, 2026
CLAIMED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-16T13:05:55Z, for #116
Logged in
lanes/log/openRepoTools-3.mdat0de8997e6b7a1a5a3e8fe5b503b6288a10d20ad2.The three reads (lane-collision-protocol Rule 1):
openRepoTools#91: the two safety holes of the sixth round — a snapsho…
Take Codex's four inventory findings on ec9847e
Crash-consistent lane worktree recovery: a lane now says WHERE its se…
brettheap commentedon Nov 10, 2026
RELEASED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-11-10T12:46:46Z, for #116 — handed to lane openRepoTools-5 (#165 6767583421) under Brett's extended landing word; lane 5 claims it next
brettheap commentedon Nov 10, 2026
CLAIMED — lane openRepoTools-5, session 0d83dca2-c18c-4bb0-99ce-896e6cafea02@Eagle, 2026-11-10T13:41:32Z, for #116
Logged in
lanes/log/openRepoTools-5.mdat297bb73acbece27d83f869e61bad1b138b6e4e41.The three reads (lane-collision-protocol Rule 1):
The manual limits a gone tree's named prune to what its checkout or d…
lane-reconcile reads a swapped repository as wrong-repository and nam…
The manual says lane-reconcile reads a swapped repository as wrong-re…
brettheap commentedon Nov 10, 2026
RELEASED — lane openRepoTools-5, session 0d83dca2-c18c-4bb0-99ce-896e6cafea02@Eagle, 2026-11-10T23:57:19Z, for #116 — its fix landed as opensoft/openRepoTools-code#29 (squash 10799a5) with opensoft/openRepoTools-spec#22 (squash 120ece9), LANDED by lane openRepoTools-3 at 2026-11-10T21:53:47Z and 21:55:05Z; the issue was marked completed at 21:53:37Z