Skip to content

Documentation audit — 2026-06-29 #322

Description

@claude

Documentation Audit Report

Automated audit of docs/ and agent instruction files against source code and writing conventions.

Summary

Dimension Findings
Freshness 2 gaps
Correctness 2 issues
Readability 0 issues

Freshness

Time window: 2026-06-15 to 2026-06-29 (14 days)
PRs reviewed: 8 | Doc-worthy: 2 | Gaps: 2

F-001: bin/mega-evme/AGENTS.md STRUCTURE missing lib.rs

F-002: CLAUDE.md test organization missing tests/mutation/

3 covered + 5 internal-only changes

Covered: PR #306 --dump-fixturedocs/mega-evme/commands/replay.md ✓ | PR #315 Rex5 doc sync → applied ✓ | PR #306 Rex5 mainnet timestamp → block/chain.rs (spec docs intentionally omit chain timestamps) ✓

Internal-only: #319 CI centralization | #318 skill fix | #317 version bump | #316 build-time verification | #313 perf optimization (all spec:unchanged)


Correctness

Scope: All docs/spec/ and docs/mega-evme/ pages + all agent files
Claims checked: ~60 | Verified: 58 | Stale: 2 | Incorrect: 0

C-001: bin/mega-evme/AGENTS.mdlib.rs missing; main.rs description stale

  • Severity: Minor | Disposition: Stale
  • Page: bin/mega-evme/AGENTS.md STRUCTURE section
  • Doc says: `src/main.rs`: CLI bootstrap and panic hook. (no lib.rs entry)
  • Source says: lib.rs holds all logic + set_thread_panic_hook(); main.rs is "a thin wrapper that only parses arguments and dispatches into this crate" (bin/mega-evme/src/lib.rs:4)
  • Suggested correction: Add src/lib.rs entry; update src/main.rs to "Thin CLI entry point — parses args and dispatches into lib.rs."

C-002: CLAUDE.md test organization missing mutation/

  • Severity: Minor | Disposition: Stale
  • Page: CLAUDE.md Test Organization
  • Doc says: "Tests are organized by spec: equivalence/, mini_rex/ (12 modules), rex/, rex2/, rex3/, rex4/, rex5/, and block_executor/."
  • Source says: ls crates/mega-evm/tests/ includes mutation/ (added PR ci: add cargo-mutants mutation-testing pipeline + limit-subsystem tests #325)
  • Suggested correction: Append , and mutation/(mutation-killing integration tests for thelimit/ subsystem).

Key verified claims

docs/spec/evm/dual-gas-model.md vs constants.rs: INTRINSIC_STORAGE_GAS=39,000 ✓, SSTORE_BASE=20,000 ✓, ACCOUNT_CREATION_BASE=25,000 ✓, CONTRACT_CREATION_BASE=32,000 ✓, CODE_DEPOSIT=10,000 ✓, LOG_TOPIC=3,750 ✓, LOG_DATA=80 ✓, calldata schedule (40/160/100/400) ✓.

docs/spec/evm/resource-limits.md vs constants.rs: TX_COMPUTE_GAS_LIMIT=200M ✓, TX/BLOCK_DATA_LIMIT=13,107,200 ✓, TX/BLOCK_KV_UPDATE_LIMIT=500,000 ✓, TX/BLOCK_STATE_GROWTH_LIMIT=1,000 ✓, FRAME numerator=98/denom=100 ✓.

docs/spec/evm/gas-detention.md vs constants.rs: BLOCK_ENV_CAP=20M ✓, BENEFICIARY_CAP=20M ✓, ORACLE_CAP=20M (Rex3+) ✓, historical 1M ✓.

CLAUDE.md agent claims: spec progression EQUIVALENCE→REX5 ✓, MiniRex1→EQUIVALENCE/MiniRex2→MINI_REX ✓, AdditionalLimit in limit/limit.rs ✓, block/chain.rs exports (hardfork_schedule, MAINNET_CHAIN_ID=4326, TESTNET_CHAIN_ID=6343, mainnet/testnet_hardforks) ✓, system contract addresses 0001–0006 ✓, STORAGE_CALL_STIPEND=23,000 ✓, Rex4 vs Rex5 stipend distinction ✓.


Readability

Scope: All docs/spec/SUMMARY.md and docs/mega-evme/SUMMARY.md pages (agent files excluded)
Pages sampled: 7 | Pass: 7 | Fail: 0 | Total findings: 0

Category Result
Structural Lint Pass
Page Structure Compliance Pass
Normative Language Pass
Constants and Formulas Pass
Spec Versioning Pass
Cross-Linking Pass
Formatting Pass

Pages sampled: evm/dual-gas-model.md, evm/resource-limits.md, evm/gas-detention.md, evm/gas-forwarding.md, hardfork-spec.md, system-contracts/overview.md, upgrades/minirex.md. All pass: correct spec: Rex5 frontmatter, one-sentence-per-line markdown, RFC 2119 normative keywords in Specification/Security only, named constants in all formulas, proper spec-history cross-links. system-contracts/overview.md uses the lighter index-page structure (no Motivation/Rationale) per docs/spec/AGENTS.md conventions — correct.

Metadata

Metadata

Assignees

Labels

agentGenerated by AI agentscomp:docChanges in the documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions