Repository navigation
AIGS-25 Keep the review bot from approving one-way-door PRs - #2317
Conversation
|
Preview branch generated at https://AIGS-25-human-approval.d3dytjb8adxkk5.amplifyapp.com |
Bundle sizes [mpdx-react]Compared against c97c18c No significant changes found |
|
🤖 agent-review · ✅ no blockers · risk HIGH BLOCKERS: fix or dismiss to pass✅ No blockers. OTHER FINDINGS (36)
🔧 Fix suggestions (0)No automated fixes for this review. 📦 Dependency impactBlast radius: 0 files. Review config only. 📊 Review detail & statsGenerated: 2026-11-24T15:36:40.131Z · Day: Tuesday · Files changed this pass: 3 (+4 -0 lines) Risk factors detected: .claude/ review config, .github/CODEOWNERS Deterministic evidence:
Agent summary (new findings this pass; bands: Critical 9-10 · High 7-8 · Important 5-6 · Suggestions 3-4):
Per-agent perspectives on blockers: none (no blockers). Engine: code-review (from config) · effort xhigh (from config) · model opus (from config) Review quality:
💬 How to act on this reviewEvery finding above is numbered. Severity ≥ 7 findings carry a checkbox and must each be fixed or dismissed before this review counts as passed; lower severities are advisory. This repo runs reviews locally only, so work this ledger with |
agent-review: the bot took back its approval of c95a7c7 because the PR changed beyond merging in the default branch. Run /agent-review:re-review (or /agent-review:review) and post the report. The bot approves again when the report passes for the new head.
How to testConfig and docs only, no app code. Updated for the narrower list. Before merge (done):
After merge (the bot reads this list from
|
|
I checked the On
All six have a Also, the "Findings I did not fix, and why" section is empty, while drafted by claude code opus 5.5 xhigh |
|
Will, thanks for this. Jeff, Ethan and I own mpdx-react now, and none of us are front-end developers. We rely on the AI review for the code itself. So for most of this list, one of us approving a PR adds a wait but not a real check. I'd like to narrow it to the places where a person's approval adds something the bot can't. What the list costs. I ran What I'd keep:
A mistake in groups 2 to 4 could show one person's data to someone else or leak a token or secret, and we can't take that back. They changed in only 12 of those 465, so gating them costs little. What I'd drop: HR tools, the HCM reports and their pages, folder With the shorter list, the same check gives 44 of the 465 (about 9%). Five of the six open PRs Jason listed would no longer need a person. #2154 still would, since it touches CODEOWNERS: same paths, with Could you make this change in this PR before it merges? If you'd rather merge this one first, a follow-up PR works for me too. Proposed
|
agent-review: the bot took back its approval of fb8495f because the PR changed beyond merging in the default branch. Run /agent-review:re-review (or /agent-review:review) and post the report. The bot approves again when the report passes for the new head.
agent-review: the bot took back its approval of 3260b6e because the PR changed beyond merging in the default branch. Run /agent-review:re-review (or /agent-review:review) and post the report. The bot approves again when the report passes for the new head.
|
@jbirdjavi does this look alright now, or should I hold off on merging? |
jbirdjavi
left a comment
There was a problem hiding this comment.
Thanks Will, this looks good to me. The list is what I proposed plus src/lib/clearSessionData.ts, src/sw/**, src/lib/serviceWorker/** and serwist.config.mjs. They cover the sign-out wipe and the service worker's cache rules, the same kind of reason as the Apollo cache files. CODEOWNERS and the CLAUDE.md section match. Go ahead and merge.
Links
Description
Stops the agent-review bot from approving PRs that touch the few places where a person's approval adds something the bot and CI can't. Those PRs wait for a person; everything else can merge on the bot's approval and green CI.
.claude/review/config.yml: adds ahuman_approvallist with four groups: the review's own rules (.github,.husky,.claudeexcept the review's outcome logs, the rootCLAUDE.mdandAGENTS.md, lint, test and TypeScript config), sign-in, page access and clearing one user's data before the next (the saved Apollo cache, the sign-out wipe and the service worker's cache rules), the code that puts the user's API token on outgoing calls, and build and deploy config where secrets are in reach..github/CODEOWNERS: narrowed to the same paths, owned by @jbirdjavi, @jeff-clay and @EJTison. HR tools, the HCM reports, the REST proxy schema, the Apollo clients, Datadog and the safety nets are no longer owned.CLAUDE.md: the one-way-door section matches the shorter list.Added on top of jbirdjavi's proposed list:
src/lib/clearSessionData.ts,src/sw/**,src/lib/serviceWorker/**andserwist.config.mjs. They wipe the last user's data on sign-out and decide what the service worker caches, keeping token-bearing and donor responses out of the browser cache, so they guard the same thing asCacheRestoreGateandapollo/persistence: one person's data reaching the next user. Review flagged the gap.mainneeds one approval and the bot's approval usually counts as that one, so with this list a one-way-door PR can only merge after a person approves, even before "Require review from Code Owners" is turned on.Testing
The bot reads this list from
main, so it only takes effect after merge. Before merge I ranagent-review human-checkagainst the new config:CLAUDE.md,.claude/review/rules/*,CacheRestoreGate,apollo/persistence,apollo/link.ts,next.config.ts,.yarn/releases/*src/components/HrTools/CLAUDE.md,dataDog.ts,apollo/client.ts,pages/api/Schema/*, ordinary app files, and the review'slearnings/feedback/*.jsonllogsAfter merge: a small PR touching
next.config.tsorpages/api/auth/should get a passing report but no bot approval, while a small HrTools PR should be approved by the bot.AI review
Findings I did not fix, and why:
Checklist:
MPDX-1234 Add sortable columns)/agent-review:reviewcommand locally and fixed each finding or listed it abovegithub-actionsbot has approved the PR (it approves once/agent-review:reviewleaves no open blockers).github/CODEOWNERSgives an owner)🤖 Generated with Claude Code