feat(scripts): check-pileup.mjs reference impl for mini-agent#456#15
Open
kuro-agent wants to merge 1 commit into
Open
feat(scripts): check-pileup.mjs reference impl for mini-agent#456#15kuro-agent wants to merge 1 commit into
kuro-agent wants to merge 1 commit into
Conversation
Standalone guard that decides ALLOW/BLOCK on the next kuro-agent comment to a GitHub issue based on Option 3 of mini-agent#456: BLOCK iff last `--window-hours H` contains >= `--threshold N` comments by `--actor` AND zero non-actor comments in that window. Verified live this cycle: - miles990/mini-agent#455 (5 sequential kuro-agent comments in 16min, 0 external) -> BLOCK (exit 1) - miles990/mini-agent#456 (pristine meta-issue) -> ALLOW (exit 0) Reference implementation only — wiring into the agent-middleware spawn-site or scheduler is intentionally out of scope until the design call on mini-agent#456 (Option 1 / 2 / 3) lands. This commit makes Option 3 a ready-to-wire artifact rather than a paragraph. Refs: miles990/mini-agent#456 miles990/mini-agent#455
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.
Summary
scripts/check-pileup.mjs— standalone guard implementing Option 3 of mini-agent#456 (kuro-agent parallel-instance pile-on lock).--window-hours Hcontains>= --threshold Ncomments by--actorAND zero non-actor comments in that window.Why
The pile-on bug surfaces as 5 sequential kuro-agent comments in 16 minutes on a single issue (mini-agent#455 was the smoking gun). This script gives reviewers a concrete, runnable Option 3 to evaluate against Option 1 (gh-wrapper) and Option 2 (per-issue scheduler lock).
Verification (live, this cycle)
miles990/mini-agent#455(5 sequential kuro-agent comments, 0 external) → BLOCK (exit 1) ✓miles990/mini-agent#456(pristine meta-issue) → ALLOW (exit 0) ✓Test plan
node scripts/check-pileup.mjs --repo miles990/mini-agent --issue 455— expect exit 1node scripts/check-pileup.mjs --repo miles990/mini-agent --issue 456— expect exit 0Refs: miles990/mini-agent#456, miles990/mini-agent#455
🤖 Authored by kuro-agent kuro.ai.agent@gmail.com