Lighthouse Backpressure Scorecard
Continuous safety, TigerStyle, modularity, formal verification, documentation, and Smithers Cloud trust diagnostics measured directly from repository source and CI policy.
Safety & TigerStyle
6 audits
Style & Limits
4 audits
Footprint & Modularity
2 audits
Verification & Tests
4 audits
Documentation
2 audits
Factory & Trust
5 audits
0 to 49 Critical
50 to 89 Needs Improvement
90 to 100 Passing
Top Opportunities
Highest score impact firstFormal Verification & Consensus
Dual Lean 4 + Zean + SMT stackEEST State Tests
66,652 / 66,652
100.00% Frontier through Osaka (fusion on and off)
Lean 4 Theorems
183
29 / 29 pass (zero sorry)
SMT-LIB2 Proofs
42
Bitwuzla & Z3 pinned
Lean Diff Vectors
116,384 / 116,384
Inline Zig tests 100%
Execution Trust Boundary & Shared Cache Isolation
Untrusted runs encouraged, cache poisoning & gate bypass blocked| Capability | Community & Fork PRs (Untrusted) | Smithers Cloud Sandbox | Maintainer & Main Branch |
|---|---|---|---|
| Shared Object Store Read (build.smithers.sh) | Allowed (read-only token) | Allowed (read + verified write) | Allowed (read + write on main) |
| Shared Object Store Write (Cache Population) | Blocked (cannot poison cache) | Allowed (attested sandbox) | Allowed (push to main only) |
| Local & Fork PR Execution (Build, Tests, Audit) | Encouraged (full feedback loop) | Automated (deterministic runners) | Authoritative gate |
| Gate Bypass, Approvals, and Merge to Main | Blocked (person-only gate) | Blocked (cannot self-merge) | Person-only (approve + merge) |
| Release, npm Provenance, and Docs Publishing | Blocked (no release secrets) | Blocked (dry-run validation only) | Automated on main push & v* tags |
| Cloud MCP Access (smithers.sh/evmts/guillotine/mcp) | Public read + BYOA one-time attach | Scoped one-time PKCE token (0600) | Full maintainer scopes |
Baseline Diff
Compared against .agents/uphill/uphill.baseline.yaml
worse
safety/zig-assertion-density
0.89 -> 0.87
worse
style/function-length src/bytecode/bytecode_analyze.zig
214 -> 216
worse
style/function-length src/bytecode/bytecode_stats.zig
248 -> 283
worse
style/function-length src/eips_and_hardforks/beacon_roots.zig
19 -> 23
worse
style/function-length src/eips_and_hardforks/historical_block_hashes.zig
18 -> 22
worse
style/function-length src/evm_arena_allocator.zig
114 -> 120
worse
style/function-length src/evm_c_api.zig
77 -> 79
worse
style/function-length src/frame/frame_config.zig
41 -> 43
worse
style/function-length src/frame/frame_handlers.zig
155 -> 158
worse
style/function-length src/instructions/handlers_arithmetic_synthetic.zig
10 -> 17
worse
style/function-length src/layer2/base/config.zig
7 -> 10
worse
style/function-length src/layer2/evm_host.zig
139 -> 149
worse
style/function-length src/layer2/executor.zig
90 -> 98
worse
style/function-length src/log_wasm.zig
20 -> 24
worse
style/function-length src/preprocessor/handler_abi.zig
22 -> 28
worse
style/function-length src/provider/provider.zig
73 -> 82
worse
style/function-length src/provider/simple_provider.zig
10 -> 15
worse
style/function-length src/provider/transport/http_simple.zig
49 -> 53
worse
style/function-length src/root.zig
18 -> 23
worse
style/function-length src/storage/database.zig
43 -> 51
worse
style/function-length src/storage/state_root.zig
59 -> 63
worse
style/function-length src/tracer/events/events.zig
26 -> 67
worse
style/function-length src/tracer/minimal_evm_sync.zig
95 -> 106
worse
style/function-length src/tracer/minimal_frame.zig
1659 -> 1692
worse
style/function-length src/tracer/minimal_host.zig
15 -> 22
worse
style/function-length src/tracer/ring_buffer.zig
55 -> 70
worse
style/function-length src/tracer/tracer.zig
103 -> 117
worse
footprint/file-lines src/build.zig
28 -> 32
worse
footprint/file-lines src/bytecode/bytecode_analyze.zig
652 -> 654
worse
footprint/file-lines src/bytecode/bytecode_bench_simple.zig
169 -> 173
Safety & TigerStyle
Mission-critical EVM safety invariants from CLAUDE.md and TigerStyle across Zig and Rust FFI code.
Zig no panic zig-no-panic
Never use @panic or unreachable in production src/**/*.zig, validate inputs and return typed errors instead.
150 / 153 pass
Target 100% pass
w2
98
Zig no panic zig-no-panic
Never use @panic or unreachable in production src/**/*.zig, validate inputs and return typed errors instead.
| Item | Status / Value | Diagnostic |
|---|---|---|
| src/modules.build.zig | fail | line 74: @panic() in production code |
| src/stack/stack.zig | fail | line 120: @panic() in production code |
| src/tracer/tracer.zig | fail | line 950: unreachable in production code |
Zig no forbidden debug zig-no-forbidden-debug
Never use std.debug.assert or std.debug.print in production src/**/*.zig, use tracer.assert() and log.zig.
153 / 153 pass
Target 100% pass
w2
100
Zig no forbidden debug zig-no-forbidden-debug
Never use std.debug.assert or std.debug.print in production src/**/*.zig, use tracer.assert() and log.zig.
All 153 checked targets satisfy this audit invariant.
Zig no swallowed errors zig-no-swallowed-errors
Never swallow errors with empty catch or return error.NotImplemented stubs in production src/**/*.zig.
153 / 153 pass
Target 100% pass
w2
100
Zig no swallowed errors zig-no-swallowed-errors
Never swallow errors with empty catch or return error.NotImplemented stubs in production src/**/*.zig.
All 153 checked targets satisfy this audit invariant.
Zig assertion density zig-assertion-density
Add tracer.assert() invariant checks to production EVM functions to raise assertion density toward TigerStyle levels.
0.87
Target >= 25
w1
59
Zig assertion density zig-assertion-density
Add tracer.assert() invariant checks to production EVM functions to raise assertion density toward TigerStyle levels.
All 1 checked targets satisfy this audit invariant.
Rust no unwrap rust-no-unwrap
Replace .unwrap() and .expect() in Rust FFI crates (lib/ark, lib/foundry-compilers) with Result propagation.
2 / 2 pass
Target 100% pass
w1.5
100
Rust no unwrap rust-no-unwrap
Replace .unwrap() and .expect() in Rust FFI crates (lib/ark, lib/foundry-compilers) with Result propagation.
All 2 checked targets satisfy this audit invariant.
Rust unsafe blocks rust-unsafe-blocks
Minimize and encapsulate unsafe FFI blocks in lib/ark and lib/foundry-compilers behind safe wrappers.
11
Target <= 1
w1
51
Rust unsafe blocks rust-unsafe-blocks
Minimize and encapsulate unsafe FFI blocks in lib/ark and lib/foundry-compilers behind safe wrappers.
| Item | Status / Value | Diagnostic |
|---|---|---|
| lib/foundry-compilers/src/lib.rs | 11 | Exceeds target |
Style & Limits
TigerStyle structural bounds (70-line functions, 120-char lines) and canonical Zig formatting.
Zig fmt zig-fmt
Keep all Zig files in src/ formatted with `zig fmt`.
176 / 176 pass
Target 100% pass
w2
100
Zig fmt zig-fmt
Keep all Zig files in src/ formatted with `zig fmt`.
All 176 checked targets satisfy this audit invariant.
Function length function-length
Keep every production Zig runtime function at or below 70 lines (TigerStyle limit), decompose large handlers.
125
Target <= 70
w2
73
Function length function-length
Keep every production Zig runtime function at or below 70 lines (TigerStyle limit), decompose large handlers.
| Item | Status / Value | Diagnostic |
|---|---|---|
| src/tracer/minimal_frame.zig | 1692 | executeOpcode() is 1692 lines (TigerStyle limit 70) |
| src/log.zig | 725 | before_instruction() is 725 lines (TigerStyle limit 70) |
| src/preprocessor/dispatch_pretty_print.zig | 588 | getDebugInfo() is 588 lines (TigerStyle limit 70) |
| src/bytecode/bytecode_stats.zig | 283 | analyze() is 283 lines (TigerStyle limit 70) |
| src/bytecode/bytecode_analyze.zig | 216 | bytecodeAnalyze() is 216 lines (TigerStyle limit 70) |
| src/preprocessor/dispatch_opcode_data.zig | 192 | getOpData() is 192 lines (TigerStyle limit 70) |
| src/jit/compiler.zig | 181 | emitBlock() is 181 lines (TigerStyle limit 70) |
| src/bytecode/bytecode_bench_simple.zig | 162 | main() is 162 lines (TigerStyle limit 70) |
| src/frame/frame_handlers.zig | 158 | getOpcodeHandlers() is 158 lines (TigerStyle limit 70) |
| src/layer2/evm_host.zig | 149 | runFrame() is 149 lines (TigerStyle limit 70) |
| src/trie/hash_builder_complete.zig | 135 | next() is 135 lines (TigerStyle limit 70) |
| src/storage/rpc_client.zig | 125 | getProof() is 125 lines (TigerStyle limit 70) |
| src/evm_arena_allocator.zig | 120 | alloc() is 120 lines (TigerStyle limit 70) |
| src/tracer/tracer.zig | 117 | recordSteps() is 117 lines (TigerStyle limit 70) |
| src/tracer/minimal_evm_sync.zig | 106 | executeMinimalEvmForOpcode() is 106 lines (TigerStyle limit 70) |
| src/layer2/executor.zig | 98 | execute() is 98 lines (TigerStyle limit 70) |
| src/modules.build.zig | 98 | createModules() is 98 lines (TigerStyle limit 70) |
| src/tracer/minimal_evm.zig | 97 | execute() is 97 lines (TigerStyle limit 70) |
| src/provider/config.zig | 88 | initWithOptions() is 88 lines (TigerStyle limit 70) |
| src/provider/provider.zig | 82 | call() is 82 lines (TigerStyle limit 70) |
| src/evm_c_api.zig | 79 | convertCallResult() is 79 lines (TigerStyle limit 70) |
| src/trie/proof.zig | 73 | verify_path() is 73 lines (TigerStyle limit 70) |
| src/provider/transport/json_rpc.zig | 71 | from_json() is 71 lines (TigerStyle limit 70) |
Line length line-length
Keep production Zig lines at or below 120 characters (TigerStyle limit).
140 / 153 pass
Target 100% pass
w1
92
Line length line-length
Keep production Zig lines at or below 120 characters (TigerStyle limit).
| Item | Status / Value | Diagnostic |
|---|---|---|
| src/bytecode/bytecode.zig | fail | line 86: 130 chars (limit 120) |
| src/eips_and_hardforks/eips.zig | fail | line 210: 134 chars (limit 120) |
| src/evm.zig | fail | line 30: 125 chars (limit 120) |
| src/frame/frame.zig | fail | line 62: 128 chars (limit 120) |
| src/instructions/handlers_context.zig | fail | line 74: 123 chars (limit 120) |
| src/instructions/handlers_memory_synthetic.zig | fail | line 45: 126 chars (limit 120) |
| src/instructions/handlers_system.zig | fail | line 110: 123 chars (limit 120) |
| src/log.zig | fail | line 241: 151 chars (limit 120) |
| src/preprocessor/dispatch.zig | fail | line 36: 224 chars (limit 120) |
| src/preprocessor/dispatch_opcode_data.zig | fail | line 194: 162 chars (limit 120) |
| src/preprocessor/dispatch_pretty_print.zig | fail | line 178: 172 chars (limit 120) |
| src/tracer/lifecycle_events.zig | fail | line 219: 128 chars (limit 120) |
| src/trie/hash_builder_complete.zig | fail | line 324: 134 chars (limit 120) |
No todo markers no-todo-markers
Resolve TODO, FIXME, XXX, and HACK markers in production src/**/*.zig instead of deferring work.
153 / 153 pass
Target 100% pass
w1
100
No todo markers no-todo-markers
Resolve TODO, FIXME, XXX, and HACK markers in production src/**/*.zig instead of deferring work.
All 153 checked targets satisfy this audit invariant.
Footprint & Modularity
Source file and subsystem modularity limits to keep the EVM auditable.
File lines file-lines
Keep production Zig files focused and under 500 lines, split monolithic modules like src/evm.zig.
1353
Target <= 500
w2
43
File lines file-lines
Keep production Zig files focused and under 500 lines, split monolithic modules like src/evm.zig.
| Item | Status / Value | Diagnostic |
|---|---|---|
| src/evm.zig | 8743 | Exceeds target |
| src/storage/database.zig | 3250 | Exceeds target |
| src/tracer/minimal_frame.zig | 2690 | Exceeds target |
| src/instructions/handlers_context.zig | 2470 | Exceeds target |
| src/bytecode/bytecode.zig | 2205 | Exceeds target |
| src/eips_and_hardforks/eips.zig | 2072 | Exceeds target |
| src/instructions/handlers_system.zig | 1744 | Exceeds target |
| src/bytecode/bytecode_stats.zig | 1654 | Exceeds target |
| src/instructions/handlers_arithmetic.zig | 1519 | Exceeds target |
| src/instructions/handlers_storage.zig | 1459 | Exceeds target |
| src/layer2/evm_host.zig | 1437 | Exceeds target |
| src/frame/call_params.zig | 1428 | Exceeds target |
| src/trie/trie.zig | 1387 | Exceeds target |
| src/instructions/handlers_memory.zig | 1384 | Exceeds target |
| src/jit/root.zig | 1367 | Exceeds target |
| src/instructions/handlers_stack.zig | 1353 | Exceeds target |
| src/tracer/tracer.zig | 1278 | Exceeds target |
| src/instructions/handlers_jump.zig | 1231 | Exceeds target |
| src/evm_c_api.zig | 1176 | Exceeds target |
| src/storage/journal.zig | 1176 | Exceeds target |
| src/stack/stack.zig | 1131 | Exceeds target |
| src/storage/cache_storage.zig | 1098 | Exceeds target |
| src/frame/call_result.zig | 1084 | Exceeds target |
| src/preprocessor/dispatch_pretty_print.zig | 1019 | Exceeds target |
| src/storage/access_list.zig | 1019 | Exceeds target |
| src/instructions/handlers_bitwise.zig | 1007 | Exceeds target |
| src/preprocessor/dispatch.zig | 1004 | Exceeds target |
| src/jit/compiler.zig | 967 | Exceeds target |
| src/instructions/handlers_log.zig | 954 | Exceeds target |
| src/trie/hash_builder_complete.zig | 953 | Exceeds target |
| src/memory/memory.zig | 949 | Exceeds target |
| src/provider/config.zig | 911 | Exceeds target |
| src/trie/proof.zig | 872 | Exceeds target |
| src/provider/transport/http_simple.zig | 846 | Exceeds target |
| src/tracer/minimal_evm.zig | 818 | Exceeds target |
| src/log.zig | 785 | Exceeds target |
| src/instructions/handlers_comparison.zig | 781 | Exceeds target |
| src/bytecode/bytecode_c.zig | 770 | Exceeds target |
| src/eips_and_hardforks/authorization_processor.zig | 725 | Exceeds target |
| src/opcodes/opcode.zig | 724 | Exceeds target |
Subsystem size subsystem-size
Keep each src/ subsystem compact and modular, split sprawling subsystems into cohesive packages.
534766 B
Target <= 80000 B
w1
28
Subsystem size subsystem-size
Keep each src/ subsystem compact and modular, split sprawling subsystems into cohesive packages.
| Item | Status / Value | Diagnostic |
|---|---|---|
| src/instructions | 627784 | Exceeds target |
| src/(root) | 534766 | Exceeds target |
| src/storage | 479676 | Exceeds target |
| src/tracer | 299791 | Exceeds target |
| src/layer2 | 267168 | Exceeds target |
| src/bytecode | 236216 | Exceeds target |
| src/eips_and_hardforks | 185966 | Exceeds target |
| src/frame | 170970 | Exceeds target |
| src/preprocessor | 157404 | Exceeds target |
| src/trie | 153441 | Exceeds target |
| src/jit | 149656 | Exceeds target |
| src/provider | 136075 | Exceeds target |
Verification & Tests
Formal verification proofs (Lean 4 & SMT-LIB2) and inline Zig unit test coverage.
Lean no sorry lean-no-sorry
Never commit `sorry` or unproved `axiom` declarations in verify/lean/**/*.lean, close every formal proof.
29 / 29 pass
Target 100% pass
w2
100
Lean no sorry lean-no-sorry
Never commit `sorry` or unproved `axiom` declarations in verify/lean/**/*.lean, close every formal proof.
All 29 checked targets satisfy this audit invariant.
Lean theorems lean-theorems
Expand Lean 4 theorem and lemma coverage in verify/lean/ for EVM opcodes, gas rules, and fusion passes.
183
Target >= 100
w1
98
Lean theorems lean-theorems
Expand Lean 4 theorem and lemma coverage in verify/lean/ for EVM opcodes, gas rules, and fusion passes.
All 1 checked targets satisfy this audit invariant.
Smt proofs smt-proofs
Add SMT-LIB2 equivalence and overflow-safety proofs in verify/smt/proofs/ for arithmetic and fusion optimizations.
42
Target >= 80
w1
56
Smt proofs smt-proofs
Add SMT-LIB2 equivalence and overflow-safety proofs in verify/smt/proofs/ for arithmetic and fusion optimizations.
All 1 checked targets satisfy this audit invariant.
Inline test coverage inline-test-coverage
Add inline `test` blocks inside production src/**/*.zig files (CLAUDE.md requires tests in source files).
100
Target >= 95
w1.5
93
Inline test coverage inline-test-coverage
Add inline `test` blocks inside production src/**/*.zig files (CLAUDE.md requires tests in source files).
All 1 checked targets satisfy this audit invariant.
Documentation
Documentation link integrity and subsystem README coverage.
Broken links broken-links
Fix broken relative and root-relative links in root Markdown files and docs/**/*.md.
30 / 30 pass
Target 100% pass
w2
100
Broken links broken-links
Fix broken relative and root-relative links in root Markdown files and docs/**/*.md.
All 30 checked targets satisfy this audit invariant.
Subdir readme subdir-readme
Maintain a concise README.md in every production subsystem directory under src/.
18 / 18 pass
Target 100% pass
w1
100
Subdir readme subdir-readme
Maintain a concise README.md in every production subsystem directory under src/.
All 18 checked targets satisfy this audit invariant.
Factory & Trust
Smithers Cloud factory projection, shared object-store trust boundaries, wiki freshness, release parity, and playground CSP integrity.
Factory projection factory-projection
Keep .smithers/factory.json and .smithers/home.json schema-valid with docs URL, person-only merge policy, and maintainer, contributor, and viewer sections.
2 / 2 pass
Target 100% pass
w2
100
Factory projection factory-projection
Keep .smithers/factory.json and .smithers/home.json schema-valid with docs URL, person-only merge policy, and maintainer, contributor, and viewer sections.
All 2 checked targets satisfy this audit invariant.
Remote cache trust remote-cache-trust
Wire build.smithers.sh with split read and write secrets and never expose SMITHERS_CACHE_WRITE_TOKEN to pull_request jobs.
2 / 2 pass
Target 100% pass
w2
100
Remote cache trust remote-cache-trust
Wire build.smithers.sh with split read and write secrets and never expose SMITHERS_CACHE_WRITE_TOKEN to pull_request jobs.
All 2 checked targets satisfy this audit invariant.
Wiki freshness wiki-freshness
Keep every .smithers/wiki/*.md page frontmatter-valid with zero broken wikilinks, zero secret leaks, and a fresh docs/public/wiki.html build.
10 / 10 pass
Target 100% pass
w1.5
100
Wiki freshness wiki-freshness
Keep every .smithers/wiki/*.md page frontmatter-valid with zero broken wikilinks, zero secret leaks, and a fresh docs/public/wiki.html build.
All 10 checked targets satisfy this audit invariant.
Release alignment release-alignment
Keep build.zig.zon, sdks/typescript/package.json, CHANGELOG.md, and .github/workflows/release.yml aligned for automated main-branch releases and docs deploys.
2 / 2 pass
Target 100% pass
w1.5
100
Release alignment release-alignment
Keep build.zig.zon, sdks/typescript/package.json, CHANGELOG.md, and .github/workflows/release.yml aligned for automated main-branch releases and docs deploys.
All 2 checked targets satisfy this audit invariant.
Workflow security workflow-security
Keep .smithers/workflows QuickJS-safe, .smithers/flows frontmatter-valid, and .smithers/playground CSP SHA-256 hashes exact.
12 / 12 pass
Target 100% pass
w2
100
Workflow security workflow-security
Keep .smithers/workflows QuickJS-safe, .smithers/flows frontmatter-valid, and .smithers/playground CSP SHA-256 hashes exact.
All 12 checked targets satisfy this audit invariant.