feat: add contract-size and settlement guardrails - #4
Merged
Conversation
- Replace invalid 'cast run --trace' with 'cast run' (traces print by default; verified against Foundry) in SKILL.md, GUIDE.md, PATTERNS.md. - Add type-4 EIP-7702 set-code transactions and EIP-1153 transient storage guidance to EVM/transaction sections. - Move Foundry/Hardhat/viem command recipes from SKILL.md into references/GUIDE.md so references extend rather than duplicate the entrypoint; SKILL.md drops from 578 to 474 lines. - Remove frontmatter keys no tooling consumes (sasmp_version, atomic, single_responsibility, parameters, retry_config, metadata); keep all OKF convention fields required by validate-skills.mjs. - Bump ethereum-development to 2.2.0 and record changes in log.md. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
ethereum-developmentto v2.1.0 with deployed-runtime budgeting as an architecture, testing, and deployment gate.viaIR, delegate modules, facets, proxies, and required verification.web3-protocol-design, plus a detailed reference for economic-ledger decomposition, penalty proportionality, claimant models, staged settlement, liabilities, and cross-chain resource budgets.Why
A real EVM port passed its existing behavioral suite but produced 27,931 bytes of deployed runtime—3,355 bytes above EIP-170—with a 7,268-byte feature delta. The reusable failure was broader than one contract: runtime-size feasibility was checked too late, and one slashing feature had accumulated restitution, reporter incentives, treasury routing, expiry, and multi-transaction settlement.
These changes make deployability and mechanism complexity explicit before implementation is substantially complete, while avoiding project-specific economic prescriptions.
Validation
npm run kb:formatnpm run validate— 17 skills validatedpython3 skills/ethereum-development/scripts/validate.pygit diff --checkImpact
Documentation and reusable validation tooling only. No production deployment, wallet, protocol, or published marketplace state changes are included.
Note
Low Risk
Documentation and a stdlib Python validation script only; no on-chain or production runtime changes.
Overview
Adds deployed-runtime budgeting to
ethereum-development(v2.2.0): discovery, testing, deployment runbook, and config validation now treat EIP-170 runtime size as a deployability gate, with a new Runtime Size And Architecture section andreferences/CONTRACT_SIZE.md(measurement workflow, remediation matrix, CI checker usage).Introduces
scripts/check_runtime_size.pyfor artifact-based hard/soft limits, baseline delta, and JSON output; wires it intovalidate.pyandGUIDE.md/PATTERNS.md. Tooling blocks move fromSKILL.mdtoGUIDE.md; frontmatter is simplified; EIP-7702, EIP-1153, ABI-encoder size notes, andcast run(no--trace) fixes are included.web3-protocol-designgains Complex Settlement Guardrails andreferences/slashing-and-dispute-settlement.md(economic ledgers, penalty proportionality, staged settlement, liabilities, cross-chain resource budgets), plus spec/review checklist updates and a references link inindex.md.Reviewed by Cursor Bugbot for commit 5d53ccd. Bugbot is set up for automated code reviews on this repo. Configure here.