linea-monorepo / tracer
AGENTS.md126 starsChanged 3 months agoApache-2.0View on GitHub
Inherits all rules from root AGENTS.md. Only overrides and additions below. EVM trace generation system for Linea's ZK proving pipeline. Implements the constraint system (arithmetization) that translates EVM execution into algebraic constraints. Includes Besu plugins for runtime tracing, reference test infrastructure, and Go Corset integration for constraint compilation.
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 83
Test memory: 256m min, 8g max (local), 32g max (CI)
- Very specific: line 96
Always run ./gradlew :tracer:arithmetization:test for unit test changes
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — tracer
Inherits all rules from root AGENTS.md. Only overrides and additions below.
Package Overview
EVM trace generation system for Linea's ZK proving pipeline. Implements the constraint system (arithmetization) that translates EVM execution into algebraic constraints. Includes Besu plugins for runtime tracing, reference test infrastructure, and Go Corset integration for constraint compilation.
How to Run
# Build
./gradlew :tracer:arithmetization:build
# Unit tests
./gradlew :tracer:arithmetization:test
# Fast replay tests (integration)
./gradlew :tracer:arithmetization:fastReplayTests
# Nightly tests
./gradlew :tracer:arithmetization:nightlyTests
./gradlew :tracer:arithmetization:nightlyReplayTests
./gradlew :tracer:arithmetization:nightlyModexpTests
# Weekly tests
./gradlew :tracer:arithmetization:weeklyTests
# Besu node tests
./gradlew :tracer:arithmetization:besuNodeTests
# PRC call tests
./gradlew :tracer:arithmetization:prcCallTests
# Ethereum reference tests
./gradlew :tracer:reference-tests:referenceExecutionSpecBlockchainTests
# Lint and format
./gradlew spotlessCheck
./gradlew spotlessApply
# Sonarqube analysis
./gradlew :tracer:sonarqube -Dtests=UnitTracer-Specific Conventions
- Languages: Java (primary), with Go Corset for constraint compilation
- Build plugins:
net.consensys.besu-plugin-library+net.consensys.besu-plugin-distribution - Corset integration:
gradle/corset.gradlecompiles Go Corset into Java sources atbuild/generated/gocorset/main/java - Lombok: Enabled via
lombok.config - Javadoc: Strict mode with
-Xdoclint:all,-missingand-Xwerrorfor HTML5
Directory Structure
tracer/
├── arithmetization/ Main constraint system implementation
├── plugins/ Besu plugin distributions (tracer + Shomei)
├── reference-tests/ Ethereum execution spec reference tests
├── testing/ Test utilities and helpers
├── gradle/ Custom Gradle scripts (tests, corset, lint)
├── scripts/ Build and deployment scripts
└── docs/ DocumentationTest Types and Tags
| Test Type | Command | Timeout | Tag |
| Unit | test | 15 min | — |
| Fast replay | fastReplayTests | 30 min | replay |
| Nightly | nightlyTests | 60 min | nightly |
| Nightly replay | nightlyReplayTests | 60 min | nightly, replay |
| Nightly modexp | nightlyModexpTests | 60 min | nightly-modexp |
| Weekly | weeklyTests | 60 min | weekly |
| PRC calls | prcCallTests | 60 min | prc-calltests |
| Besu node | besuNodeTests | 20 min | — |
| Reference blockchain | referenceExecutionSpecBlockchainTests | — | BlockchainReferenceTest |
JVM Configuration
- Test memory: 256m min, 8g max (local), 32g max (CI)
- Max parallel forks: 1 (most tests), 3 (Besu node tests)
- JUnit5 parallelism configurable via
JUNIT_TESTS_PARALLELISMenv var
Tracer-Specific Safety Rules
- Corset constraint changes affect ZK proof validity — verify with replay tests
- Reference tests validate Ethereum spec compliance — do not skip
- SPDX license headers required on all source files
- Plugin dependencies (tracer plugin, Shomei) are auto-downloaded and extracted during build
Agent Rules (Overrides)
- Always run
./gradlew :tracer:arithmetization:testfor unit test changes - For constraint changes, also run
./gradlew :tracer:arithmetization:fastReplayTests - Reference the tracer's own README.md, SETUP.md, and PLUGINS.md for detailed docs
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 28,693 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- contracts/AGENTS.mdAGENTS.md
- coordinator/AGENTS.mdAGENTS.md
- e2e/AGENTS.mdAGENTS.md
- maru/AGENTS.mdAGENTS.md
- postman/AGENTS.mdAGENTS.md
- prover/AGENTS.mdAGENTS.md
- prover-ray/AGENTS.mdAGENTS.md
- transaction-exclusion-api/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/documentation.mdcCursor rule
- .cursor/rules/security-logging-guidelines/EXAMPLES.mdCursor rule
- .cursor/rules/security-logging-guidelines/RULES.mdCursor rule
- .cursor/rules/smart-contract-guidelines/RULE.mdCursor rule
- .cursor/rules/versioning-guidelines/EXAMPLES.mdCursor rule
- .cursor/rules/versioning-guidelines/RULES.mdCursor rule
- developing-smart-contractsSkill
- linea-dependency-maintenanceSkill
- squash-bugbotSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

