Skip to content

Support grouped project folders in lane and estate lookup - #104

Merged
brettheap merged 9 commits into
mainfrom
011-grouped-project-lookup
Nov 15, 2026
Merged

brettheap merged 9 commits into
mainfrom
011-grouped-project-lookup

Conversation

@brettheap

@brettheap brettheap commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Name-based lane and estate lookup misses development repositories moved below grouping folders in the projects directory. This adds bounded discovery to lane-start, park, resume and status, including estate enumeration, family-ID lookup and --repo origin lookup.

  • Support flat projects and projects beneath up to two grouping folders under the configured projects root.
  • Stop at repository/estate boundaries and exclude supporting worktree and lane collections. Deduplicate aliases to one physical target; refuse distinct matching names or origins.
  • Preserve explicit and recorded lane-directory precedence, missing-record refusal, existing identity checks and independent register clones.

Companion specification: opensoft/openRepoTools-spec#67

Task set S01 owns T001–T002. It is an independent source PR targeting main, with no immediate predecessor. The canonical task mapping and behavior contract are in the companion spec branch: tasks, requirements.

Validation:

  • All 20 new grouped-lookup cases pass on the source and on the exact installed candidate.
  • All 280 selected existing estate/lane regression cases pass on the installed candidate. The four initial new-fixture setup failures were corrected and the new case set rerun; command bytes did not change after the broad regression run.
  • Fast verification: tests/run.sh -k grouped_project_lookup --tb=short -rA.
  • Bash syntax checks pass. Live alias-free discovery and native Linux resolution were checked separately from the isolated CLI tests.

Full CI and exact-head review remain required. This PR does not change assembly pins, the installer payload list, queue/release controls, lane-state or register data. Local installation qualification does not grant source landing, release or assembly adoption. The safe intermediate state is a source-only change with existing assembly pins still authoritative.

Summary by Sourcery

Enable bounded, unambiguous project discovery beneath grouped project folders without changing lane state or register data.

New Features:

  • Support name-, family-ID-, estate-enumeration-, and repository-origin-based lookup for projects nested beneath up to two grouping folders.
  • Extend grouped-project discovery across lane-start, park, resume, and status while honoring configured project roots.

Bug Fixes:

  • Prevent supporting worktrees, lane collections, repository boundaries, and family members from being treated as independent project candidates.
  • Reject ambiguous names or origins and deduplicate aliases that refer to the same physical estate.
  • Preserve explicit and recorded lane-directory precedence and refuse fallback when recorded directories are missing or invalid.

Enhancements:

  • Add comprehensive grouped-project lookup coverage for nested repositories, aliases, estate families, origin matching, sweeps, and boundary handling.

Tests:

  • Add integration tests covering grouped discovery behavior across all affected commands and lookup modes.

@sourcery-ai

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

@sourcery-ai

sourcery-ai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Read the shared bounded project-discovery logic and its integration across lane-start, park, resume, and status, including grouped lookup, alias deduplication, ambiguity handling, repository boundaries, and recorded-path precedence.

  • lane-start L1085-1156, L1161-1165, L1430-1448 (+3 small edits)
  • park L400-478, L596-611, L617-631 (+8 small edits)
  • resume L384-462, L580-595, L601-615 (+6 small edits)
  • status L521-599, L717-732, L738-752 (+8 small edits)

Tests

Review the grouped-project regression coverage for discovery bounds, aliases, ambiguity, origin and family lookup, lane precedence, and sweep behavior.

  • tests/test_grouped_project_lookup.py L1-386

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

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T21:36:35.592522Z e820b0a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e8fca0213f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread park Resolved
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 9d462a074c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@brettheap

Copy link
Copy Markdown
Contributor Author

Fixed the full-CI shell regression in 0f5ba5d. Grouped name defaults had intercepted legacy home-only lane records before their origin-verified recovery rungs. The historical flat default remains in place; grouped defaults apply when no recorded home exists, while home-only recovery retains manifest/origin proof and refusal when no matching origin exists.

Added two isolated register regressions. Local tests/run.sh -k "grouped_project_lookup or discovery_copies_match" --tb=short -rA: 30 passed. Bash syntax and diff checks pass. The complete existing shell suite is running locally; fresh full hosted CI and exact-head Codex review are required before landing. The earlier failed head is not claimed qualified. No installed tools, lane data, primary checkouts or pins were changed by this fix.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0f5ba5d090

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/test_grouped_project_lookup.py Resolved
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0df2e4d628

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread park Resolved
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7de8123ea6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread park Resolved
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 08e15e18f2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap brettheap closed this Nov 15, 2026
@brettheap brettheap reopened this Nov 15, 2026
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 08e15e18f2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b56d1e4cba

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread park Resolved
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: e820b0aacc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap
brettheap merged commit 9efef8d into main Nov 15, 2026
35 checks passed
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