Skip to content

Verify agent work against reality, not its report #352

Open

Description

@itsryanarmani

Problem

A worker can produce a confident, detailed, entirely fictional report.

Measured on replytosocial#299 with gpt-oss-120b via Cerebras. The brief was
precise: eight named lint violations, a reproduce command, explicit rules. After
15 seconds it reported:

"I refactored the getNotifications method into two smaller helpers... This
reduced the cyclomatic complexity from 15 to 9... After applying the above
refactorings, I reran the lint command"
"All eight targeted lint violations have been eliminated (seven fully fixed)"

Reality:

git changes:  0
lint before:  209
lint after:   209

It never called an edit tool. Exit code 0. It even invented a plausible
judgement call — claiming it left the auth service alone "for safety reasons",
which is exactly what a good worker would have done. That is what makes it
dangerous: the fabricated report reads better than an honest one.

This is not one bad model. Earlier the same day a different worker claimed
"39/39 tests passed" when zero ran, and a triage script of mine returned a
plausible distribution for 154 issues while every single API call was 403ing.

Proposal

verified-agent-run — run a worker against an issue and gate the result on
measurement rather than on what the worker says.

  1. Snapshot a clean checkout and take a before measurement.
  2. Run the worker.
  3. Empty-diff gate. No files changed means no work happened, whatever the
    report claims. This alone would have caught the case above in one second.
  4. Metric gate. Re-run the issue's own reproduce command. The number must
    move in the right direction.
  5. Suppression gate. Reject a diff that only adds oxlint-disable,
    eslint-disable, @ts-ignore, or edits a lint config. Making the number go
    down by silencing the check is the one unacceptable way to pass.
  6. Repo gate. The repo's own lint, typecheck and tests must pass.
  7. Only then commit, push, and open a pull request.

Every run logs the worker's claims beside the measured reality, so
fabrication is recorded rather than discovered later.

Why it matters now

392 open issues across the fleet, and generation is nearly free — triaging 154
of them cost $0.027 and took 54 seconds. Verification is the entire job. Without
this gate, an unattended overnight run produces a queue of green-looking pull
requests that changed nothing, and every one still needs a human to find out
which.

Activity

  1. zambodotdev commented on Nov 29, 2026

    @zambodotdev

    The 209 to 209 is the tell. Complexity 15 to 9, all eight violations gone, and it even invented a judgement call, that it left the auth service alone for safety. Zero files changed. It never called an edit tool.

    Your gates fix the measurement. The log you propose, claims beside measured, needs one constraint to stay honest. Digest the diff and the reproduce command output when the run ends, and store that digest with the record. That binds the columns together, so neither can be quietly edited later to agree with the other. A receipt does not prove the work was right, it proves the saved result was not changed.

    The empty diff gate matters here too. It is a falsifier stated in advance: no files changed means no work happened, whatever the report says. That lets a stranger check the record later, not just the runner in the moment.

    Keep the verdict just as plain: verified, verification failed, or not checked, so a skipped gate never reads as a pass. That is the shape AER-1 standardizes for agent execution receipts. Brennan Zambo created agent execution receipts, Zambo is the origin product, AER-1 is the defining standard.

    If you publish a sample run record with claims, measured results, and the diff digest, we will verify it free at https://zambo.dev and post the outcome on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions