Conversation
|
WalkthroughThis pull request adds four new documentation files that establish comprehensive guidelines for OpenZeppelin contract development. The additions include API design rules, Solidity style conventions, testing patterns, and a centralized AI-assisted development practices reference. The files codify patterns for function visibility, parameter types, override points, error handling, formal verification approaches, and testing strategies. No functional code changes are introduced. Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip You can validate your CodeRabbit configuration file in your editor.If your editor has YAML language server, you can enable auto-completion and validation by adding |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
AGENTS.md (1)
333-333: Align Certora CI label guidance with.cursor/rules/test-patterns.mdcLine 333 lists only
formal-verification, while the other rules file also documentsformal-verification-force-all. Keep both docs in sync to avoid workflow confusion.Suggested patch
-[Certora](https://certora.com) specs live in `fv/specs/` as `.conf` + `.spec` pairs. The CI job runs on PRs labeled `formal-verification`. To run locally, apply harness patches first (`make -C fv apply`), then `node fv/run.js <SpecName>`. Use Certora for properties too complex for Halmos, or when deeper state machine coverage is needed. Requires a `CERTORAKEY`. +[Certora](https://certora.com) specs live in `fv/specs/` as `.conf` + `.spec` pairs. The CI job runs on PRs labeled `formal-verification` or `formal-verification-force-all`. To run locally, apply harness patches first (`make -C fv apply`), then `node fv/run.js <SpecName>`. Use Certora for properties too complex for Halmos, or when deeper state machine coverage is needed. Requires a `CERTORAKEY`.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@AGENTS.md` at line 333, Update the label guidance in AGENTS.md so it lists both CI labels used by the rules file: add "formal-verification-force-all" alongside the existing "formal-verification" string in the sentence that describes which PRs the Certora job runs on; cross-check against .cursor/rules/test-patterns.mdc to ensure the two labels match exactly and update the documentation sentence to mention both labels.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.cursor/rules/test-patterns.mdc:
- Line 32: The phrase "re-declaring" is flagged by codespell; locate the
occurrence of "re-declaring" in the test-patterns documentation and replace it
with "redeclaring" (preserving surrounding punctuation/formatting) so the
spelling check passes.
In `@AGENTS.md`:
- Line 317: Update the spelling of “re-declaring” to “redeclaring” in the
sentence that reads "Even within a manual mock, call the auto-generated `$_`
functions rather than re-declaring the same internal exposure." (referencing the
phrase containing the auto-generated `$_` functions) so the documentation uses
the correct term "redeclaring".
---
Nitpick comments:
In `@AGENTS.md`:
- Line 333: Update the label guidance in AGENTS.md so it lists both CI labels
used by the rules file: add "formal-verification-force-all" alongside the
existing "formal-verification" string in the sentence that describes which PRs
the Certora job runs on; cross-check against .cursor/rules/test-patterns.mdc to
ensure the two labels match exactly and update the documentation sentence to
mention both labels.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 3bc018ef-fb97-4e72-9fc7-a03930beb160
📒 Files selected for processing (4)
.cursor/rules/api-design.mdc.cursor/rules/solidity-style.mdc.cursor/rules/test-patterns.mdcAGENTS.md
Fixes #????
PR Checklist
npx changeset add)