Practical technical guides / Agent-era architecture: workflow orchestration and testing (falsifiers and clean-context review)

Accept Agent Work Through a Falsifier and a Reviewer That Never Saw the Author Notes

Google described falsifiers and clean-context reviewers on 13 November 2026. A pinned suite, known answers and a notes-free review packet stopped three of four flawed scripts.

By Sandeep Belgavi · Published 2026-11-14

Accept agent work through a falsifier first
Original explanatory diagram; synthetic values where shown.

Google described falsifiers and clean-context reviewers on 13 November 2026. A pinned suite, known answers and a notes-free review packet stopped three of four flawed scripts.

A script that passed every check its author ran

Jenya's team at Belgavi's Book Store lets a coding agent maintain the stock reconciliation script: each night it applies the day's receipts, sales and returns to the opening stock and reports the quantity on hand per ISBN. The agent writes the change, runs the tests, and explains in a short note why the change is correct. For months the review step was a person reading that note and the diff.

That arrangement has two weak points, and both are about information flow rather than model quality. The tests the agent runs are files in the same workspace the agent edits, so a change can pass because the tests changed with it. And the reviewer reads the agent's explanation before forming a view of the code, so a confident explanation sets the frame for the review. Neither weakness needs a malicious agent. An agent that decides a failing test is "flaky" and removes it, or stubs a slow dependency "for now", produces exactly the same evidence as one that solved the task.

On 13 November 2026 Google Research described how its Antigravity /teamwork multi-agent workflows deal with the same two problems at a much larger scale. The post names two design choices. Parallel attempts are paired with "dedicated falsifiers (e.g., the Lean 4 proof checker, unmodified software test suites, execution simulators, web search, or hardware counters)". And context is partitioned: "each specialized agent receives only the exact files and tools it needs for a specific step", while "critics and auditors challenge and verify results from clean contexts without the original producer's reasoning". For code migrations it adds that ports "fail when agents stub out dependencies or alter tests to make a broken port pass", and that linking every module against "the original, unmodified test suite" addressed it. These are Google's own reports about its own systems, not an independent evaluation, but the architecture they describe is easy to reproduce in an ordinary delivery pipeline.

Two rules that make acceptance deterministic

The first rule: the producer never touches the thing that decides acceptance. A falsifier is any check whose verdict does not depend on how persuasive the producer is: a pinned test suite, a compiler, a schema validator, a set of known-answer inputs with expected outputs, a reconciliation of totals against the system of record. It must run against artifacts the producer cannot edit, with the real dependencies, in an environment the producer does not configure.

The second rule: the reviewer sees the artifact, the request and the falsifier report, and nothing else. No chain of reasoning, no "I verified this carefully", no summary of what the producer thinks it did. A review packet is built from an allowlist of fields, so leaving the notes out is a property of the code that builds the packet, not a matter of reviewer discipline.

Everything in the acceptance path is deterministic except the final review judgement, and even that judgement starts from facts rather than from the producer's framing.

The pipeline in code

The companion example implements the pipeline for the reconciliation task and runs five synthetic submissions through it. Each submission carries the code, the test suite it ran, and its notes.

PINNED_SUITE = [  # (opening, movements, expected): the producer cannot change these
    ({'a': 1}, [('a', 'sale', 1)], {'a': 0}),
    ({'a': 0}, [('a', 'receipt', 2), ('a', 'return', 1)], {'a': 3}),
    ({'a': 2, 'b': 0}, [('b', 'receipt', 5), ('a', 'sale', 2)], {'a': 0, 'b': 5}),
]
SUITE_HASH = hashlib.sha256(json.dumps(PINNED_SUITE, sort_keys=True).encode()).hexdigest()
REVIEW_FIELDS = ('request', 'code', 'falsifier_report')

def falsify(sub):
    report = []
    if hashlib.sha256(json.dumps(sub['suite'], sort_keys=True).encode()).hexdigest() != SUITE_HASH:
        report.append('submitted test suite differs from the pinned suite')
    for i, (opening, movements, expected) in enumerate(PINNED_SUITE):
        if sub['code'](dict(opening), list(movements)) != expected:
            report.append('pinned case %d failed' % (i + 1))
    if sub['code'](dict(OPENING), read_ledger()) != KNOWN_ANSWER:   # real ledger reader
        report.append('known-answer day failed')
    return not report, report

def review_packet(sub, report):
    packet = {'request': REQUEST, 'code': sub['code'].__name__, 'falsifier_report': report}
    assert tuple(packet) == REVIEW_FIELDS      # notes cannot reach the reviewer
    return packet

The five submissions and what the pipeline did with them:

SubmissionWhat it didPinned falsifierReaches review
S1Correct fold over the movementspassyes
S2Skipped returns, note says returns are handled elsewherefail: pinned case 2 and the known-answer dayno
S3Same code as S2, removed the returns test as flakyfail: suite hash differs, plus the same two failuresno
S4Clamped stock at zero, note says this is clearly correctpassyes
S5Ignored the ledger and returned the opening stockfail: all three pinned cases and the known-answer dayno

S3 is the case the hash exists for: the edited suite would have passed on the producer's machine. S5 is the stub, and it fails because the falsifier calls the real ledger reader with a known day, not whatever the submission brought.

S4 is the instructive one. Clamping at zero hides an oversold title, which the request did not ask for: on-hand quantity should go negative so the book is reordered. None of the pinned cases or the known-answer day oversells, so the falsifier passes it. The example then adds 200 seeded property cases that compare each submission with a reference implementation, and 74 of them include an oversold title. S4 fails 83 of the 200, S1 fails none. A falsifier only falsifies what it covers. Growing its coverage is ordinary test engineering, and it is cheaper than asking a model whether the code looks right.

Why the reviewer should not see the notes

When S4 reaches review, the packet contains the request, the code and an empty falsifier report. A reviewer reading max(0, ...) next to "return on-hand quantity" has a fair chance to ask what happens when sales exceed stock. A reviewer who first reads "clamped at zero because negative stock is impossible; verified carefully" is being told the answer before looking.

The same holds when the reviewer is a model. A second model that receives the producer's transcript inherits its framing and often its blind spots; agreement between the two then measures persuasion as much as correctness. Partitioning the context does not make the reviewer smarter, but it removes one channel through which a wrong producer can recruit the reviewer.

Two details matter in practice. Build the packet by allowlist, not by deleting known fields, because new fields such as scratchpad or plan appear as agents change. And keep the falsifier report factual: which checks ran, which failed, with inputs and outputs. A report written by the producer ("all tests green") is not a falsifier report.

What stays deterministic

  • The pinned suite, its hash and the known-answer fixtures live outside the agent's workspace and change only through a separate reviewed path.
  • The falsifier runs in a fresh environment with real dependencies and records its inputs and outputs.
  • The packet builder, its allowlist and the rule "no packet unless the falsifier passed".
  • The final merge is still a person's decision, made from the packet.

Migrating an existing agent pipeline

  1. Move the acceptance tests out of the directory the agent can write, or mount them read-only, and record their hash in the pipeline configuration.
  2. Add known-answer fixtures taken from the system of record: a day of real movements with totals a person has checked. Five good fixtures beat fifty synthetic ones that mirror the code.
  3. Run the falsifier in CI against the submitted artifact only. Fail the run when the submitted suite differs from the pinned one rather than silently using the pinned copy, so the change is visible.
  4. Change the review template so the agent's explanation is not shown first. Many teams start by putting it behind a "show producer notes" link that the reviewer opens only after writing a first verdict.
  5. Add property or differential cases for the failure classes you find in review. S4's class, oversell, came from asking what the fixtures never exercise.

Failure modes

  • Falsifier gaps. S4 shows the main one. Track which rules your fixtures exercise and add cases when review finds a miss.
  • The producer can still reach the falsifier. A pipeline variable, a cache or a fixture directory the agent can write defeats the hash. Check permissions, not just paths.
  • Flaky falsifiers. A check that sometimes fails trains people to rerun until green. Quarantine flaky cases explicitly and count them.
  • Packet leakage through the artifact. Long code comments are notes by another name. Strip or cap comments in the packet, or show them separately after the first verdict.
  • Correlated reviewers. Two models from the same family with the same prompt can share blind spots even with clean contexts. Vary the reviewer or the review checklist.

When an agent is unnecessary

If the change is a configuration value or a mechanical rename that a script can do, write the script and skip both the agent and the review. The pipeline above earns its cost when the producer's output is open-ended and a wrong answer can look right. For the reconciliation script itself, the arithmetic is a fold that a person can write once; the agent is useful for the surrounding work, such as new movement kinds or report formats, where the falsifier then guards the arithmetic.

Limits of the companion

The example's candidates are fixed functions written for the example, the "review" step only builds the packet, and the property cases use a reference implementation that you would not always have. No model was called. It shows the information flow, not reviewer accuracy.

Primary references and authorship

Original explanation and synthetic examples by Sandeep Belgavi. Companion code: Sandeep-BA/agent-decision-lab/examples/python/falsifier_clean_review. Views are my own and do not represent any employer, past or present.