| name | soundness-review-checklist |
| description | Structured checklist for reviewing soundness-critical code changes in STWO. Run this checklist before approving ANY modification to: constraint logic, FRI protocol, verifier, field arithmetic, polynomial commitment scheme, Fiat-Shamir channel, proof serialization, or security parameters.
|
Soundness Review Checklist
Canonical Theory Sources
.agents/papers/llm/INDEX.llm.md — first stop to map concepts and notation
.agents/papers/llm/Circle_STARKs.llm.md — circle-FFT/FRI/AIR math anchors
.agents/papers/llm/Stwo_Whitepaper.llm.md — STWO protocol/soundness/parameter anchors
When to Run
Run this checklist for ANY change touching:
crates/stwo/src/core/fri.rs or crates/stwo/src/prover/fri.rs
crates/stwo/src/core/verifier.rs
crates/stwo/src/core/pcs/
crates/stwo/src/core/fields/
crates/stwo/src/core/constraints.rs
crates/stwo/src/core/channel/
crates/stwo/src/core/proof.rs
crates/stwo/src/prover/mod.rs (prove functions)
crates/constraint-framework/src/logup.rs
- Any file tagged [SOUNDNESS-CRITICAL]
Pre-Review: Context Loading
1. Mathematical Correctness
2. Constraint System Integrity
3. FRI Protocol Correctness
4. Fiat-Shamir Transcript
5. Field Arithmetic
6. Verifier Completeness
7. Security Parameters
8. Test Coverage
9. Unsafe Code (if applicable)
Post-Review Actions
Escalation Protocol
If ANY of the following are true, escalate to human review:
- The change modifies a mathematical identity and you cannot prove equivalence
- The change affects security parameters
- You find an undocumented divergence from the distilled references
- A soundness-critical component has zero test coverage for the modified path
- The change introduces or modifies
unsafe code in a soundness-critical file
- You are not confident the change preserves all invariants listed above
Format:
SOUNDNESS-ESCALATION:
File: [path]
Change: [description]
Invariant at risk: [which invariant]
Paper reference: [Circle_STARKs.llm.md anchor / Stwo_Whitepaper.llm.md anchor]
Confidence: [percentage]
Reason for escalation: [why]