Make the requirements explicit
Describe permitted behavior, trust assumptions, and failure conditions.
Review AI-generated code by stating the required behavior, inspecting generated checks, investigating failures and rerunning checks after fixes. Formal verification applies to specified properties of supported code.
| Step | What to inspect |
|---|---|
| State the requirement | A withdrawal fee must not exceed 1% of the withdrawn amount, rounded down to the smallest unit. |
| Inspect the checks | Check whether generated tests and properties cover small amounts, rounding, fee-setting changes and alternate withdrawal paths. |
| Interpret the result | Investigate a failing trace. For a passing property, inspect the model and assumptions; it does not prove unrelated behavior. |
| Recheck the change | Rerun relevant checks after a fix and update requirements when intended behavior changes. |
Describe permitted behavior, trust assumptions, and failure conditions.
Review candidate findings, tests, and formal properties before relying on them.
Update the requirements and rerun the relevant checks as the implementation evolves.
| Question | Relevant approach |
|---|---|
| Does the code preserve the intended behavior? | AutoProver and Certora Prover for supported code and properties. |
| Are agent permissions and execution paths appropriately controlled? | Discuss agent permissions and execution controls with your security team. |
Bring your repository, intended behavior and current review workflow.