fix: gate the shadow review to validated repos (don't review not-ready repos) #244
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Total time spent: 51 seconds
Due date
igor
51 seconds
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor#244
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The shadow review (
do_review_tick) runs on the analysis set (everybot-accessible repo), so it reviews repos that aren't validated -- including
repos with an open "not ready for the agent" onboarding ticket.
Live example: it posted a
REQUEST_CHANGESverdict and requested the human onjoshtronic/devopsafterdark.com#3, a repo whose onboarding ticket #1 ("Reponot ready for the agent") is still open. #243 correctly prevented the autonomous
rework there (it handed to the human with a "not validated" comment) -- but
the review itself shouldn't have run at all.
A verdict on an unvalidated repo can never become a merge signal (an unvalidated
repo can't auto-merge), so reviewing it collects no useful auto-merge data --
it's just bot footprint on a not-ready repo.
Fix
Gate
do_review_tick's repo selection to the validated set, mirroring #243'srework gate. The function's own header comment already says "validated work set"
-- this aligns the code with that stated intent.
In the repo loop (
bin/tick.sh~L2495-2511, iteratingANALYSIS_REPOS_JSON),right after the
repo=line, skip unvalidated repos:maintenance_repo_validatedalready exists (checksVALIDATED_REPOS_JSONmembership; it's exactly what #243 used). It naturally also skips onboarding
repos, since an open onboarding ticket keeps a repo out of the validated set.
Watch out for
igorIS validated (it hastests + CI), so it stays in scope. Don't regress that.
ANALYSIS set, not the validated work set: a verdict is information, useful on
every repo." Flip it to the validated set and drop the "useful on every repo"
rationale -- we've decided the opposite: an unvalidated verdict can't graduate,
so it's just footprint.
bash -n bin/tick.shclean;bash bin/check-sync.shpasses.Definition of done
do_review_tickskips repos not in the validated set -- no verdict comment andno review-request on unvalidated / onboarding repos.
igoritself) still get reviewed, unchanged.like) gets NO shadow-review verdict at all.
bash -n bin/tick.shclean;check-syncpasses.