Skip to content

fix: keep self names inside the project the guard checks - #217

Merged
bompus merged 2 commits into
mainfrom
fix/guard-selfname-20261029
Oct 30, 2026
Merged

bompus merged 2 commits into
mainfrom
fix/guard-selfname-20261029

Conversation

@bompus

@bompus bompus commented Oct 30, 2026

Copy link
Copy Markdown
Owner

The git guard asks selfNames for this session's names in the guarded project. selfNames fell back to the session's default name for a project it never registered in, so the guard could exempt a same-named holder in a different project — the case the guard exists to catch.

A project-qualified lookup now returns only the name registered in that project. A session that never registered there has no name to exempt.

Tests cover the same name held only in another project (no exemption) and the ordinary same-project case. bun run check and the full suite pass (1453 pass, 0 fail, 7 skip).

selfNames fell back to the session's default name for a project it never registered in, so the guard could exempt a same-named holder in another project. A project-qualified lookup now requires the project.

Tests cover a name held only in another project and the ordinary same-project case.
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 37 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 487eae9 and 8a4ae40.

Files selected for processing: 3
  • CHANGELOG.md
  • src/registry.ts
  • test/guard.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@bompus

bompus commented Oct 30, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 6 minutes.

The reviewer noted the new tests only exercised selfNames. Stage a conflicting file and call the guard: a name registered in another project must not exempt the holder, and the holder's own registration in the guarded project must.
@bompus

bompus commented Oct 30, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 40 seconds.

@bompus-ai-review bompus-ai-review 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.

Bompus AI Review (GPT-6.1 Sol, xhigh reasoning): 0 finding(s).

@bompus-ai-review bompus-ai-review 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.

Bompus AI Review (GPT-6.1 Sol, xhigh reasoning): 0 finding(s).

@bompus

bompus commented Oct 30, 2026

Copy link
Copy Markdown
Owner Author

CodeRabbit had no quota for this head: its free OSS review limit was reached and its reply says "Review rate limited" (comments 6512698152 and 6512771347). Under the standing review exception through 2026-11-10 the review is skipped, with later findings as a follow-up PR. The repository's bompus-ai-review app posted 0 findings on both heads; the local Sol xhigh review passed the source change, and the second commit only adds the guard-level tests it asked for.

@bompus
bompus merged commit d8ba1e0 into main Oct 30, 2026
3 checks passed
@bompus
bompus deleted the fix/guard-selfname-20261029 branch October 30, 2026 01:40
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