chore: add greptile.json AI code-review config#265
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
chore: add greptile.json AI code-review config#265devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
Tune Greptile reviews for the MARK monorepo (Solidity/Circom/TS): - security/soundness-focused custom rules per domain (contracts, circuits, workflows, frontend, scripts) - ignore vendored libs and build artifacts (contracts/lib, out, cache, circuits/build, *.zkey/*.ptau) - only review PRs targeting main/dev; status check instead of noise comments - reference ARCHITECTURE/THREAT_MODEL/BRANCHING docs as context
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
iap
approved these changes
Jun 5, 2026
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
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
Adds a repo-root
greptile.jsonso Greptile AI reviews are tuned to this monorepo instead of relying solely on dashboard defaults. The repo migrated from CodeRabbit to Greptile (perCHANGELOG.md) but had no committed config.Key choices (all params optional, validated against the greptile.json reference):
strictness: 2,commentTypes: ["logic","syntax","style"](drops low-valueinfo),triggerOnUpdates: true(review each commit),triggerOnDrafts: false,statusCheck: true(use a GitHub status check instead of "X files reviewed" noise comments).includeBranches: ["main","dev"]so only PRs targeting the real base branches are reviewed;excludeAuthors: ["dependabot[bot]"].ignorePatterns: vendored libs + build artifacts —contracts/lib/**,contracts/{out,cache,broadcast,coverage}/**,circuits/build/**,**/*.{zkey,ptau,wtns},node_modules/**,dist/**,public/**,supersim-logs/**,pnpm-lock.yaml.customContext.rulesscoped per domain: Solidity security (CEI ordering, access control, reentrancy, 24KB MARKPool size, Makefile layering guards), Circom soundness (fully-constrained signals, nullifier/double-spend), workflows (actions must be SHA-pinned — matches the new org policy), frontend (no client-side secrets, wagmi/viem checks), and governance/release scripts.customContext.files: referencesdocs/ARCHITECTURE.md,docs/THREAT_MODEL.md,docs/BRANCHING.mdas review context (all confirmed to exist).Note: Greptile reads config from the PR's source branch, so this takes effect on PRs once the branch carries the file.
.greptile/folder format is the newer alternative, but this usesgreptile.jsonas requested.Scope
Verification
greptile.jsonvalidated as well-formed JSON (python -m json.tool)ARCHITECTURE.md,THREAT_MODEL.md,BRANCHING.md) existNot applicable (config-only change, no code):
forge build/forge test/slither.Risk Review
Governance
dev)Linked Context
Link to Devin session: https://app.devin.ai/sessions/6f0be211d5e44cfc855cf5d6c9ac6d72
Requested by: @iap
Greptile Summary
Adds a
greptile.jsonconfiguration file at the repo root to tailor Greptile AI code reviews to this ZK-SNARK / UTXO monorepo, replacing dashboard defaults after the migration from CodeRabbit.strictness: 2,triggerOnUpdates: true, limits reviews to PRs targetingmain/dev, excludesdependabot[bot], and enables a GitHub status check.ignorePatterns: excludes vendored Foundry libs, build artifacts, ZK trusted-setup binaries (.zkey,.ptau,.wtns), and lock files as a newline-separated string (correct format per docs).customContext.rules: five domain-scoped rules covering Solidity CEI/access-control, Circom signal constraints, GitHub Actions SHA pinning, frontend secret hygiene, and governance scripts;customContext.filesreferences three existing architecture/threat-model docs.Confidence Score: 5/5
Config-only change with no executable code; all parameters are confirmed valid against the official greptile.json reference and no secrets or credentials are present.
The change adds a single JSON configuration file. Every top-level field maps to a documented parameter. The ignorePatterns string format and customContext.rules/files structure match the published schema. One scope pattern uses brace expansion that may not match .tsx files, but this affects review coverage quality rather than production behavior.
No files require special attention — the single changed file is a non-executable config with no runtime impact.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD PR[New Pull Request] --> B{Target branch\nin includeBranches?} B -- No --> SKIP[Skip review] B -- Yes --> C{Author in\nexcludeAuthors?} C -- Yes --> SKIP C -- No --> D{Draft PR?} D -- Yes / triggerOnDrafts=false --> SKIP D -- No --> E[Trigger review] E --> F{File matches\nignorePatterns?} F -- Yes --> SKIP2[File skipped] F -- No --> G[Apply matching rules] G --> R1["contracts/src/**/*.sol\n→ CEI, access control, 24KB limit"] G --> R2["circuits/**/*.circom\n→ signal constraints, nullifier soundness"] G --> R3[".github/workflows/**\n→ SHA-pinned actions"] G --> R4["src/**/*.ts/tsx\n→ no secrets, wagmi/viem"] G --> R5["scripts/**\n→ credentials, confirmation guards"]Prompt To Fix All With AI
Reviews (2): Last reviewed commit: "Merge branch 'dev' into devin/1780695439..." | Re-trigger Greptile