Protocol security

Architecture Review vs Smart Contract Audit

An architecture review evaluates whether the system design creates acceptable trust and failure assumptions. A smart contract audit evaluates whether a defined implementation behaves safely within those assumptions. The two activities overlap, but one does not replace the other.

By RStorm LabsPublished 3 min read

Different primary questions

An architecture review asks whether the proposed system should be built in a particular way. It examines asset custody, privileged roles, external dependencies, upgradeability, economic incentives, and what happens when a component fails. A design can be implemented exactly as specified and still be unsafe because the specification places excessive trust in one actor or data source.

A smart contract audit asks whether the code under review implements its intended behavior without exploitable defects. It examines control flow, state transitions, arithmetic, access control, reentrancy, integration assumptions, and other code-level or protocol-level issues within a defined scope.

Different inputs and deliverables

Architecture work uses protocol goals, diagrams, specifications, trust boundaries, dependency documentation, governance processes, and economic assumptions. Deliverables may include a threat model, invariants, design alternatives, risk register, and implementation roadmap.

An audit additionally needs a repository and commit, in-scope contracts, compiler settings, dependencies, deployment assumptions, tests, and a description of expected behavior. Its deliverables usually include prioritized findings, reproduction details, remediation guidance, and verification of fixes.

  • Architecture output: design decisions and system-level risk treatment.
  • Audit output: implementation findings and remediation evidence.
  • Shared output: explicit assumptions, limitations, and unresolved questions.

When each review is most useful

Architecture review has the greatest leverage before implementation, before a major upgrade, or when adding an oracle, bridge, new collateral asset, or governance mechanism. At these stages, changing a trust boundary is usually less expensive than rewriting deployed components.

An audit is most useful when the implementation and intended behavior are stable enough to review. Auditing rapidly changing code without a frozen commit can leave important paths unreviewed and makes remediation verification harder.

How the activities overlap

A code auditor may identify a design-level problem, and an architecture reviewer may inspect prototype code to understand a boundary. The distinction is not a rigid organizational rule. It is a way to ensure that both system design and implementation receive explicit coverage.

Findings should move between the two activities. An audit finding about missing access control may reveal an unclear governance model; an architecture assumption about oracle behavior should become a concrete test during the audit.

For a shared starting point between architecture and implementation reviews, see DeFi Protocol Threat Modeling Before Implementation.

What neither activity guarantees

Neither review can guarantee the absence of vulnerabilities or eliminate market, key-management, governance, and operational risk. Coverage depends on the evidence, time, scope, and correctness of the stated assumptions.

A strong process tracks residual risk after the review and repeats targeted analysis when material assumptions change. A report is an assurance artifact, not a permanent security certificate.

Primary documentation and further reading

These sources describe the underlying protocols and tools. They are provided for technical verification and further study.

Related engineering experience

Explore Roman Storm’s project roles and contributions in these areas.

Tornado Cash: privacy protocol

Co-Founder & Lead Developer

Project profile covering Roman Storm’s role in the architecture and development of the open-source Tornado Cash privacy protocol.

PepperSec: security consulting

Co-Founder & Security Expert

Project profile covering Web3 threat modeling, code review, remediation, and security consulting work at PepperSec.