Repository navigation
docs(agents): add AGENTS.md with the repo's verification, spec and safety rules - #101
Merged
Merged
Conversation
…fety rules AGENTS.md states how to set up, which gate to run before pushing, the spec and property-id traceability rule, the generated and deployment-record files not to edit, Gateway storage-layout rules, that agents don't deploy or hold keys, private handling of vulnerabilities, and commit and PR conventions. CLAUDE.md imports it so there is one source.
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 23 minutes for your next included review. View limit details
|
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.
Description
Adds
AGENTS.md, the conventions file that coding agents (Claude Code, Codex) and the review bots (Codex, CodeRabbit) read, and aCLAUDE.mdthat only imports it (@AGENTS.md), so there is one source. Until now these rules lived in people's heads, the Makefiles and PR history. The file is about 60 lines. It holds only general conventions, nothing deployment- or incident-specific, since the repo is public.What it covers:
make verify-tools, and the fact that CI's hashed lock is the authority for Halmos and Slither.gw-verify,bcs-verify,<name>-verify), what "green" includes,npm run lint:sol, and a new gate for a new contract.docs/<contract>-spec.mdproperty IDs, and test names that carry them, which*-traceabilitychecks;artifacts/, which Hardhat compile and parity rewrite (restore them before committing);.openzeppelin/anddeployments/;__gap,gw-storage-layout). Agents don't deploy, upgrade or transfer ownership. No keys, mnemonics,.envfiles or keyed RPC URLs in commits.SECURITY.md, privately, never in public issues, PRs or commits.mainin rather than rebasing shared branches.For review:
References
AGENTS.md(same commit and attribution conventions).SECURITY.md,Makefile,gateway-verify.mk,bcs-verify.mk,README.md(Foundry and Hardhat layout).Testing
Documentation only: no contract, test or CI change. I checked each statement against
main: the Makefile targets, the CI-pinned versions in.github/workflows/*.yml, the trackedartifacts/files,__gapinGateway.solandGatewaySettingManager.sol, and thepackage.jsonscripts.Checklist
mainGenerated by Claude Code