diff --git a/AGENTS.md b/AGENTS.md index 4524e5a..126cd2f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -214,3 +214,21 @@ Release clean `main` after CI passes: align `CHANGELOG.md` and `package.json`, t Docker volumes, cloud drive and personal data. No cleanup daemons or installs from the orphaned home `package.json`. + +## Greptile review rules + +### Review before merge +1. Read every Greptile summary and inline comment for the PR, including earlier review rounds. +2. Fix each valid finding in the affected source. Reply to each disputed finding on the PR with evidence; never silently discard a finding. +3. Batch related fixes into one push where practical, then inspect the review for the final head. Repeat as needed and account for every finding. +4. Do not merge with unaddressed findings, failed required checks, or unresolved safety or release gates. + +### When automated review is unavailable +- A missing first review or stopped review is not proof of exhausted credits. Check available installation permissions, repository settings, review triggers, service status and quota evidence; record the confirmed cause or say it remains unknown. +- Preserve and address all earlier findings. If automated review cannot complete, require an explicit independent review of the final diff against current main, with reviewer identity, exact head SHA, scope, evidence, findings and remaining limits recorded on the PR. If that review or a required check is unavailable, keep the PR blocked. + +### Cost and reporting +- Do not assert numerical credit allowances, reset dates or account billing settings without current evidence. Do not enable paid overflow, buy credits or expand access to obtain a review. +- Avoid redundant review requests and duplicate PRs. Batch pushes without reducing verification. +- Report Greptile findings received, fixed and disputed with reasons, plus review availability, final head, checks performed and outstanding blockers. +- Preserve repository specific instructions, mirrored guides, formatting rules, production freezes and authorization boundaries. Review approval does not authorize deployment, live trading, sending messages or other external effects.