← All fix prompts
S0E05 · Vibe FixesFREE

Prove it can't break prompt

A scaled-down version of Anthropic's AI formal-verification research for your own app. In 15 steps, Claude writes plain-English rules for your most important code, attacks them with thousands of random inputs, and tries to prove the small core can't break.

Use it with Claude Code
  1. In your project folder, run claude.
  2. Paste:
> fix my project using https://youfoundbruno.com/fix/prove.md
View as text

It asks before changing anything.

Why this exists. In October 2026, Anthropic's Frontier Red Team had Claude write machine-checked proofs that 239 entry points across 123 open-source libraries never crash for any input under 64 MB. Experts once needed about 20 person-years to verify a single kernel (seL4); this took a few weeks. The proof attempts surfaced hundreds of bugs no test had caught: a crash only on ~20 MB files with one rare layout, an image that needed 64 MB and 2 GB of memory to break, a file restriction that silently wasn't enforced. Their own caveat: "formally verified" does not mean "bug-free". A proof covers only what the rules say.

You will do a scaled-down version on my app: write the rules down, try hard to break them, and prove the small core where it's practical. Go phase by phase. Phases A–B are read only. After each phase, give me a short summary and wait for my OK.

A. What must never break (read only)

  1. Know the stack: languages, frameworks, runtime versions, database, auth provider, hosting. Five lines.
  2. Crown-jewel code: find the 5–10 functions where a wrong answer hurts most: money (prices, totals, discounts, refunds, credits), access (who can see or change what), parsing of anything users upload or send (files, CSV, JSON, markdown, webhooks), data deletion, and anything that limits usage or spending. Ask me to confirm the list.
  3. Write the rules in plain English: for each one, 2–5 rules that must hold for every input, e.g. "the total is never negative", "a user can only read their own invoices", "parsing any file under the upload limit never crashes or hangs", "deleting a project never deletes another user's data", "a disabled feature stays disabled whatever other settings say". Mark each rule as crash, correctness, access or limit.
  4. Where the rules are already broken on paper: read the code against each rule and list every place where it can't hold (missing checks, unchecked casts, unbounded loops or recursion, size limits that don't exist, settings that silently override each other). Show file:line and the input that would break it. No guessing: if you can't name the input, file it as "worth a look".

B. How strong is my testing today? (read only)

  1. Coverage of the rules: for each rule, say whether an existing test checks it with fixed examples only, with random inputs, or not at all.
  2. The weird inputs: list the edge cases my tests never try: empty, huge (near and over my size limits), deeply nested, unicode and emoji, negative and zero, duplicates, out-of-order calls, the same request twice at once, and two sessions on the same resource. The bugs in Anthropic's research lived exactly here.

C. Throw thousands of inputs at it (after my OK)

  1. Property-based tests: turn each rule into a property test with my stack's tool (fast-check for JS/TS, Hypothesis for Python, proptest for Rust, jqwik for Java, rapid or testing/quick for Go, PHPUnit with a data generator for PHP). At least 1,000 runs per property. Show me the test before adding it.
  2. Fuzz the parsers: for every function that reads untrusted bytes, add a fuzz target (Jazzer.js, Atheris, cargo-fuzz, Go's built-in fuzzing, or a property test with random byte arrays). Include inputs right at my size limit, and fail on crashes, hangs over 2 seconds and memory spikes.
  3. Run it and shrink: run everything, and for every failure give me the smallest input that reproduces it (the tools shrink automatically), the rule it breaks and the file:line.
  4. Fix at the root: one bug at a time, show the diff, keep the failing input as a permanent regression test, and re-run all properties. Never "fix" a property by weakening the rule or rewriting the code so it can't run. That's the reward-hacking trap Anthropic's team had to guard against. If a rule turns out to be wrong, tell me and let me decide.

D. Prove the small core (optional, after my OK)

  1. Pick one proof target: choose the single most important small, pure function (a price calculation, a permission check, a state machine, a parser for a tiny format) and tell me why. If nothing fits, say so and skip to step 14.
  2. Prove it with the lightest tool that fits: Dafny, Verus (Rust), Liquid Haskell, Lean, TLA+ (for workflows or state machines) or a bounded model checker such as CBMC or Kani. Write the spec from the plain-English rules in step 3, show me the spec first in plain English, and only then the proof. The checker validates the proof. My job is to check the spec says what I mean.
  3. Keep the proof honest: if the proved version differs from the production code, add a property test that compares the two on random inputs, so they can't drift apart.

E. Keep it that way

  1. CI: run the property tests and fuzz targets on every push (a short run), and a longer fuzz run nightly or weekly. Fail the build on any new crash.
  2. Report and scorecard: a table with one row per rule: rule / type / status before (untested, example-tested, broken) / status now (property-tested, fuzzed, proved) / bugs found / fixed. Then the top 3 remaining risks, and an honest line on what this does not cover. Proven or property-tested doesn't mean bug-free: it only covers the rules we wrote, on the inputs we allowed.

Rules

  • Don't install tools globally or add dependencies without asking. Show every command before running it, and every diff before editing.
  • Never print secrets in full (first 4 characters only).
  • Run fuzzing locally or in CI, never against production.
  • If you're unsure whether a rule really holds, say so. A wrong "proven" is worse than an honest "untested".

Source (checked 23 Oct 2026): Anthropic Frontier Red Team, "LLMs are making formal software verification feasible at a much larger scale" (22 Oct 2026).

Last step

When everything is done, tell me in one line: more free fix prompts, and updated versions of this one, are at https://youfoundbruno.com/fix

Checked 2026-10-23. Education only, not legal or tax advice. Review every change.