Skip to content

The manual says lane-reconcile reads a swapped repository as wrong-repository and names a gone tree's prune, and READY counts recorded trees (opensoft/openRepoTools#116, opensoft/openRepoTools#117) - #22

Merged
brettheap merged 2 commits into
mainfrom
docs/116-117-wrong-repository-and-ready-count
Nov 10, 2026
Merged

brettheap merged 2 commits into
mainfrom
docs/116-117-wrong-repository-and-ready-count

Conversation

@brettheap

@brettheap brettheap commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openRepoTools-5
Claim: opensoft/openRepoTools#116 (comment), opensoft/openRepoTools#117 (comment)

One commit, bf9cafe, on spec main bb7a96e. It is the manual's half of opensoft/openRepoTools#116 (half 2) and opensoft/openRepoTools#117. The code half is opensoft/openRepoTools-code#29 (75cd0b0). Lane 3 offered both issues to lane 5 on opensoft/openRepoTools#165 (6767535266), under Brett's "Yes, extend it (Recommended)".

READY, with its paired code PR opensoft/openRepoTools-code#29.

The changes, all in docs/README-lanes.md

  • lane-reconcile's paragraph: it now says that reconcile compares the repository a record names with the one git answers for at its path now. Its list of classes gains wrong-repository.
  • A new wrong-repository bullet:
    • what reads that way: a clone, a moved checkout or a restored backup, on the same branch and commit;
    • that it counts toward recovery and is left as it is;
    • that a record without repo is not compared;
    • that an identity git cannot give is unreadable;
    • why the recorded checkout is not what is compared.
  • The stale-registration bullet: a gone tree that git still registers is one missing or possible-loss row naming the prune, wherever the git worktree list --porcelain read succeeds. A failed read names no prune, and the sweep reads again. The tree is never named twice through a symlinked spelling.
  • The tree record's keys: repo is optional, and a record without it is still whole.
  • The READY block: inventory: N worktree(s) recorded, or N of M polled where a tree was not recorded. The line is printed where the lane has a lifecycle, under the READY line.

Every claim was checked against 75cd0b0's code. Two were narrowed to it before this PR: where a failed read names no prune, and where the inventory line prints.

Checked

The code leg's manual readers in tests/test_repo_hygiene.py, pointed at this branch through OPENREPOTOOLS_SPEC_ROOT, gave 4 passed and 1 skipped. The skip needs an assembly root and never reaches the manual. No test reads the edited words.

🤖 Generated with Claude Code

Summary by Sourcery

Document repository mismatch detection, precise stale-registration handling, and READY inventory counts for lane worktrees.

New Features:

  • Document lane-reconcile classification of records whose current path belongs to a different repository as wrong-repository.
  • Document repository-aware handling of missing worktrees, including the applicable prune remediation and READY inventory counts.

Enhancements:

  • Clarify optional tree-record repository metadata and the rules for comparing it during reconciliation.

Documentation:

  • Update the lanes manual to describe repository mismatch detection, stale-registration reporting, optional repository metadata, and recorded-tree inventory counts.

…pository and names a gone tree's prune, and READY counts recorded trees (opensoft/openRepoTools#116, opensoft/openRepoTools#117)

The manual's half of opensoft/openRepoTools#116 (its second half) and
opensoft/openRepoTools#117, written against the code half 75cd0b0
(opensoft/openRepoTools-code#29):

- The worktree inventory section says the handoff's READY block counts the
  records it wrote, `inventory: N worktree(s) recorded` where every polled tree
  was recorded and `inventory: N of M polled worktree(s) recorded` where one was
  not (#117).
- The tree record's key paragraph says a record may also carry `repo`, its
  path's git common directory, and is whole without it (#116).
- The reconciliation section says lane-reconcile compares the repository a
  record names with the one git answers for at its path now, lists
  `wrong-repository` among the classifications and gives it a bullet (#116).
- The stale-registration bullet says a tree a sidecar records whose directory is
  gone while git still registers it is one row, `missing` or `possible-loss`,
  that names the same `git worktree prune` (#117).

Two claims were narrowed to the code half 75cd0b0: where a failed read names no prune, and where the inventory line prints.

Lane: openRepoTools-5
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Documentation

Document that tree records may optionally include repository identity and that reconciliation compares it with the identity Git reports at the tree’s path, including the wrong-repository classification and its limits.

  • docs/README-lanes.md L3493-3498, L3528-3533, L3605-3619

Clarify when a gone tree’s row names a prune, including the registration checks, failed reads, and symlink handling.

  • docs/README-lanes.md L3589-3601

Explain that READY inventory totals count recorded trees and distinguish complete from partial recording.

  • docs/README-lanes.md L3433-3440

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

@sourcery-ai

sourcery-ai Bot commented Nov 10, 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 3 days and 21 hours by commenting @sourcery-ai review. Upgrade to get a review now.

…ir registers, and says one clone swapped for another still reads ok (opensoft/openRepoTools#116, opensoft/openRepoTools#117)

Fix round for lane 3's review of #22, post
6779244411 on opensoft/openRepoTools#165, written against the code half
75cd0b0 (opensoft/openRepoTools-code#29):

- MUST 1, the stale-registration bullet: a gone tree is one row naming the
  prune "while its recorded checkout or the lane's `dir` still registers it",
  and the remedy is named "where one of those reads finds it", no longer
  "wherever that `git worktree list --porcelain` read succeeds". The bullet
  now says what happens otherwise: a gone tree that only another repository
  registers, in a lane with no legs, reads plain `missing` or `possible-loss`
  with no prune named and no stale-registration row (the review's probe P3).
  The symlinked-spelling claim is scoped to a tree one of those reads finds.
- SHOULD 1, the wrong-repository bullet: the tree reads `wrong-repository`
  only where the common directory git answers for differs from the recorded
  one, and a recorded tree that is itself a clone records `<path>/.git`, so
  another clone put at that path, or a restored backup of one, on the same
  branch at the same commit still reads `ok` (the review's NIT 1 and probe
  P2).

Nothing else of the manual changes. The review's SHOULD 1 on
opensoft/openRepoTools-code#29 changes code and is a later follow-up, so the
manual describes what 75cd0b0 does now. The review's SHOULD 2, the bare
references in bf9cafe's body, is met by lane 3's squash with its own
qualified message, so nothing is amended.

Lane: openRepoTools-5
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.

1 participant