-
Notifications
You must be signed in to change notification settings - Fork 19
fix(skills): stop /sweep subagents from stalling or reporting stale status #2171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+43
−8
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7cadceb
fix(skills): stop /sweep subagents from stalling or reporting stale s…
carlos-alm 1b78a28
fix: scope Greptile trigger count to the sweep's own comments (#2171)
carlos-alm 66fd018
fix: run final live check before hard-stop report on trigger cap (#2171)
carlos-alm ff8c997
fix: pipe gh api output through jq for --arg, gh api --jq lacks it (#…
carlos-alm a1d86ab
fix: slurp paginated pages before counting triggers with jq (#2171)
carlos-alm 8691630
Merge branch 'main' into fix/sweep-skill-avoid-premature-completion
carlos-alm e986382
Merge branch 'main' into fix/sweep-skill-avoid-premature-completion
carlos-alm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the same authenticated GitHub account runs
/sweepagain for a PR, this query counts its bare@greptileaicomments from earlier runs as part of the new sweep's budget, causing the later sweep to stop early withneeds-human-reviewbefore using its permitted review rounds.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disagree, keeping as-is — the cap is deliberately per-PR-lifetime, not per-session. The rule text is explicit: "Hard cap: 3 total Greptile re-triggers per PR" and "it's a budget on wall-clock and review noise, not a correctness gate; a human reviews the rest." If 3 rounds already happened for this PR in an earlier sweep run and the PR still isn't clean, a fresh session should not get a new budget of 3 more triggers — that would let a problematic PR bounce indefinitely between sweep invocations, defeating the noise-budget's purpose. There's also no reliable signal in GitHub comment history to distinguish "this session's" triggers from "an earlier session's" triggers by the same actor, so scoping by session isn't practically implementable from live PR data anyway. Scoping to the authenticated actor (this fix) still correctly excludes other users'/workflows' triggers, which was the actual bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a convincing argument on all three counts — the rule text is unambiguous ("per PR"), the noise-budget rationale actively depends on cross-session accumulation, and the session-scoping isn't implementable from comment history anyway. The authenticated-actor scope is the right fix, and counting prior sessions' triggers against the cap is the intended behavior. I withdraw the concern.