Repository navigation
docs(agents): ration CodeRabbit reviews and bind agent servers to Tailscale - #1272
Merged
Merged
Conversation
…eview Agents open every PR as one account, so CodeRabbit's per-author allowance runs out and refills one review an hour, while a rate-limited review still shows a passing check. Re-ask only after a behaviour change, keep unfinished work in drafts, and hold only risky PRs for a real review.
|
Warning Review limit reachedYou'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 9 minutes. View limit details
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. Comment |
…e Tailscale address A loopback bind cannot be opened from the phone or another PC the maintainer checks from. A Tailscale-only bind is reachable inside the tailnet only and is not counted as LAN exposure by lanExposed().
Owner
Author
|
CodeRabbit did not review this PR: its check passed as "Review rate limited". Under the rule this PR adds, a docs-only change (AGENTS.md and a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
CodeRabbit's review allowance is per PR author, and agents open their PRs as one account. In the last 60 PRs, 23 of devswha's 45 got "Review rate limited" and none of the 15 external ones did. The 45 PRs came with 52
@coderabbitai reviewre-asks over about 36 hours, which puts the account in CodeRabbit's lowest refill band: on the plan shown in its comments, 80+ reviews in 7 days refills one review per hour (rate limits). The re-asks follow the.coderabbit.yamlcomment that says to ask again before every merge.A rate-limited review also posts a passing CodeRabbit check, so PRs merge with no review while looking reviewed. Waiting for a review on every PR would cap merges at about one an hour.
This adds two rules to AGENTS.md's Maintainer workflow:
server/,src/orshared/, an HTTP/WS contract or a workflow. A rebase, changelog fragment, docs, comment or test-only commit gets no re-review.--takeover, observe permissions, queued input, authentication, an HTTP/WS contract or a workflow waits for a real review. Any other PR says in a comment that CodeRabbit did not review it, and merges on its checks and the maintainer.The
.coderabbit.yamlcomment now points to that rule. Its settings are unchanged. Docs only, so there is no changelog fragment.Also: agent-started servers bind to the Tailscale address
A server an agent starts for someone to open (manual QA, a preview) now binds to
$(tailscale ip -4)instead of loopback, so the maintainer can open it from a phone or another PC.lanExposed()inserver/access.tscounts a Tailscale-only bind as tailnet, not LAN. Binding0.0.0.0stays out, and tests keepport: 0on loopback.Checked on an isolated herdr (
bun run check run):HOST=100.x.y.z PORT=7399 bun run serverlogslistening on http://100.x.y.z:7399,curl -i http://100.x.y.z:7399/api/healthanswersHTTP/1.1 200 OK, and 127.0.0.1:7399 does not answer.ssshows the listener only on the Tailscale address, and the port is free after stop.Validation
.coderabbit.yamlparses (Bun.YAML.parse), andauto_incremental_reviewis stillfalse.conventions.test.tssuites pass.