Skip to content

docs(agents): add AGENTS.md with the repo's verification, spec and safety rules - #101

Merged
chibie merged 1 commit into
mainfrom
chore/agents-md
Nov 21, 2026
Merged

chibie merged 1 commit into
mainfrom
chore/agents-md

Conversation

@chibie

@chibie chibie commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Description

Adds AGENTS.md, the conventions file that coding agents (Claude Code, Codex) and the review bots (Codex, CodeRabbit) read, and a CLAUDE.md that 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:

  • Setup: the toolchain CI pins (Foundry v1.8.1, Node 22, Python 3.12), make verify-tools, and the fact that CI's hashed lock is the authority for Halmos and Slither.
  • Before pushing: the full gate of every contract you changed (gw-verify, bcs-verify, <name>-verify), what "green" includes, npm run lint:sol, and a new gate for a new contract.
  • Specs and tests:
    • docs/<contract>-spec.md property IDs, and test names that carry them, which *-traceability checks;
    • show that a new check matters (mutation);
    • real third-party bytecode fixtures, never edited by hand and pinned by code hash.
  • Files not to edit:
    • tracked artifacts/, which Hardhat compile and parity rewrite (restore them before committing);
    • .openzeppelin/ and deployments/;
    • generated and vendored directories.
  • Upgrades, deployments and keys: Gateway / GatewaySettingManager storage rules (append only, shrink __gap, gw-storage-layout). Agents don't deploy, upgrade or transfer ownership. No keys, mnemonics, .env files or keyed RPC URLs in commits.
  • Security: suspected vulnerabilities go through SECURITY.md, privately, never in public issues, PRs or commits.
  • Commits and PRs:
    • Conventional Commits with the Jira key;
    • no AI co-author trailers and no AI attribution in PR titles or descriptions, matching paycrest/aggregator;
    • the PR template;
    • merge main in rather than rebasing shared branches.

For review:

References

  • paycrest/aggregator 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 tracked artifacts/ files, __gap in Gateway.sol and GatewaySettingManager.sol, and the package.json scripts.

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not main

Generated by Claude Code

…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.
@chibie
chibie requested a review from onahprosper as a code owner November 21, 2026 15:10
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 2 billable files and costs up to $0.50.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 70 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 409aa8ce-4dab-4a2b-8644-754fcdb09ca4
Commits

Reviewing files that changed from the base of the PR and between 9245273 and 1111529.

Files selected for processing: 2

  • AGENTS.md
  • CLAUDE.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chibie
chibie merged commit 07f3480 into main Nov 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants