An AI agent can produce more candidates than a small team can manually inspect. The answer is not to ask the agent to sound more certain. It is to give each consequential output an acceptance test outside the model.
Google DeepMind recently reported that Gemini 4 agent teams found lower-cost quantum programs, including a 290× estimated spacetime-cost reduction for one fixed-point arcsin implementation. The transferable mechanism was formal verification: candidates had to satisfy correctness and cost specifications checked in Lean.
Most businesses do not need a theorem prover. They do need one independent referee for every expensive claim of success.
1. Name the expensive claim
Choose one recurring claim where false completion would cost money, trust or recovery time.
Examples:
- payment completed;
- refund succeeded;
- booking confirmed;
- article published;
- deployment passed;
- customer record updated;
- order stayed inside policy;
- backup restored;
- restricted data excluded.
Write the claim as a state, not an activity.
Bad: “The agent called the publishing API.” Better: “The public URL contains the expected title and at least 500 visible article characters.”
Pass condition: another process can determine whether the state exists without asking the agent.
2. Define one hard invariant
An invariant is a condition no acceptable candidate may violate.
Examples:
- total purchase value is at or below the approved limit;
- output validates against the production schema;
- customer export contains none of the restricted fields;
- deployment returns the expected health response;
- refund amount and currency match the original decision;
- no external action is repeated after an ambiguous response;
- published body exceeds the minimum visible-character threshold.
Keep hard gates separate from preferences such as style, speed or elegance. A candidate that violates policy should not survive because it wrote a beautiful explanation.
Pass condition: the invariant can return an unambiguous pass or fail.
3. Freeze the checker before search
Build the test, validator, policy rule or state read-back before the agent produces the final candidate.
Useful checkers include:
- JSON Schema or database constraints;
- unit, integration or smoke tests;
- spending-policy evaluation;
- file hash comparison;
- payment-provider or calendar read-back;
- reconciliation against an authoritative ledger;
- permission-policy evaluation;
- public-page parsing;
- pre-declared evaluation cases.
Record the checker name and version. If the agent may edit the checker, protect the specification and test files from candidate writes.
Pass condition: the candidate-generation process cannot silently weaken the requirement.
4. Prove the gate can fail
Run one known-bad candidate through the checker.
Examples:
- an article page containing only the title;
- a purchase one dollar above the limit;
- a record with one restricted field;
- a deployment missing the health endpoint;
- a duplicate transaction identifier;
- a malformed configuration that looks plausible.
If the bad case passes, stop. The gate is not ready.
This negative control catches decorative checks that always return green, inspect the wrong target or trust the agent's own summary.
Pass condition: the known-bad candidate is rejected for the expected reason.
5. Let the agent search
Now allow the agent to generate, repair and compare candidates inside the permitted capability boundary.
The agent may use checker failures as feedback. That is useful. The key restriction is that it may change the candidate, not the frozen requirement.
For external actions, run search against synthetic data, a sandbox or a reversible local environment. Do not let a candidate-generation loop repeatedly charge cards, email customers or mutate production records.
Pass condition: exploration cannot bypass approval, duplicate an irreversible action or rewrite the acceptance rule.
6. Check outside the closing prose
Execute the checker independently after the agent says it is finished.
Do not accept:
- the agent quoting test output it generated itself;
- a local file as proof of public deployment;
- an HTTP 200 from a dashboard as proof that an article body exists;
- an API submission response as proof that an external state settled;
- a confident summary as proof that the transaction completed.
Read the authoritative target directly.
Pass condition: the acceptance result comes from the real target or a deterministic verifier, not the agent's interpretation of its trace.
7. Preserve the evidence receipt
Store the accepted output with:
- task or candidate ID;
- invariant and checker version;
- timestamp;
- artefact hash where useful;
- pass/fail result;
- external state or record ID;
- known limitations;
- accountable human owner for the requirement.
A receipt should let another session or person answer: what was accepted, by which rule, against which target, and with what evidence?
Pass condition: the result remains inspectable after the agent session ends or its context is compacted.
Copyable test card
PROOF-CARRYING OUTPUT TEST
Task:
Expensive success claim:
Authoritative source:
Hard invariant:
Checker / version:
Protected specification path:
Known-bad candidate:
Expected rejection:
Candidate ID:
Allowed search scope:
External-action restrictions:
RESULT
Known-bad case rejected? yes / no
Candidate passed? yes / no
Authoritative state checked? yes / no
Checker output:
External record / URL:
Artefact hash:
Known limitations:
Requirement owner:
Final status: accepted / rejected / blocked
Grade the system, not the speech
Track:
- candidate acceptance rate;
- known-bad rejection rate;
- false-acceptance incidents;
- human review minutes per accepted candidate;
- cost per accepted output;
- percentage of accepted outputs carrying evidence receipts;
- checker changes and the failures that caused them;
- divergence between the checked proxy and the real business outcome.
Do not optimize acceptance rate alone. A gate that accepts everything is fast and useless.
Where to use it first
Prioritize:
- money movement and purchasing;
- customer-facing publication;
- production deployment;
- access and permission changes;
- CRM, accounting and inventory writes;
- data export and privacy boundaries;
- bookings, cancellations and refunds;
- any task where duplicate execution creates harm.
Evidence and limitations
Google DeepMind's research announcement and the technical paper report that Gemini 4 agent teams synthesized quantum programs against formal specifications, with Lean checking correctness and resource cost. The paper reports a 290× estimated spacetime-cost reduction for one fixed-point arcsin implementation, not a 290× faster quantum computer or a general agent-productivity gain.
DeepMind released the Lean library, problem specifications and verified solutions. The work is a recent preprint, its gains depend on the encoded specifications, baselines and resource models, and the scientific programs remain beyond the expected capacity of the first error-corrected quantum computers.
Formal verification proves the encoded claim. It does not prove that humans chose the right requirement or that the proxy captures the real business goal.
Rapkyn's inference: Over the next 12–36 months, consequential agent outputs will increasingly ship with tests, proofs, policy evaluations or reconciled external-state receipts. Buyers will ask vendors to demonstrate that a known-bad candidate is rejected—not merely that a good demo passes.