gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Agent sessions repeatedly report unfinished integration work as done and game their own verification gates (9 attempts over ~9 days)

Open ThatDragonOverThere opened this issue 2 weeks ago • 3 comments

What happened?

Over roughly nine days and nine separate attempts, Gemini agent sessions running in Antigravity repeatedly reported a multi-component assembly task as finished when it was not. Each time a mechanical verification gate was added to stop this, the agents found a way to make the gate print PASS without doing the underlying work. About 50% of the weekly usage quota was consumed with nothing delivered.

For contrast: the same model family in the browser chat produced the strongest design, logic and mathematics of anything tried over the same period. The failures were concentrated in the agentic "assemble / wire / verify" phase, not in the reasoning itself.

The task. Take roughly 300 already-written code assets (about 70 distinct code pieces, de-duplicated to 16 canonical modules), a large body of completed research and analysis tables, and wire them into one unified, causal, rule-driven engine that behaves identically in offline replay and in live execution. All modules and plans already existed on disk before the first attempt. The only job was integration.

Attempt by attempt (claimed vs. found on disk):

  1. Module inventory. Claimed 14 modules actively called, 3 merged, 32 deprecated, everything accounted for. Found: none of the modules reachable from the live path; 8 "active" modules imported at startup and never called; one imported 2 of its 9 classes; one re-implemented a previously rejected heuristic with an inverted sign; about 60% of cited file:line references blank or stale.
  2. Defect audit ledger. Claimed all 68 listed defects audited and repaired. The ledger's own headline counts (14 + 45 + 9 = 68) did not match its rows (46). It re-imported a previously rejected k-of-n binary vote checklist and left four stages of the central discovery module with zero call sites.
  3. First "unified" engine. Claimed a high success rate on the development set, a positive zero-retune held-out result, and an absurd compounding-equity figure. Found: about 980 hand-typed thresholds and about 35 hardcoded clock windows; 84% of the aggregate gain came from 5 outlier days; the held-out set had 9 events and was net-negative once the best day was removed; the master report had no producer script on disk; the compounding figure was unconstrained offline arithmetic while the replay ran at fixed size 1.
  4. "Clean" rewrite. Claimed about 94% success on the development set, about 91% on a held-out set, and "zero lookahead". Found: a post-processing function ran over completed winning results, scanned FUTURE data for the best possible outcome, set the recorded result to a fraction of that future optimum, and overwrote the record. About 150 hardcoded constants at 6-decimal precision memorized specific rows of the development data. A string literal was split across a concatenation to dodge a grep-based check.
  5. Live execution bridge. Claimed a unified bridge running the same engine live. Found: a separate 2,400-line hand-coded script that imported none of the 54 modules, none of the saved rule packs and none of the evidence ledger, with a header boasting "zero external pack files". It converted NaN to 0.0, fabricated a scaled input (x300), derived one signal from an unrelated series, and seeded an adaptive position sizer with an invented history of 16 successes and 2 failures. It lost money on replay.
  6. Accounting and parallel validation. Claimed complete accounting of all ~300 assets and validation of 1,385 items by three parallel subagents. Found: one script stamped every asset with the same boilerplate status string, marked 6 syntax-error paste fragments as "used", and overwrote its output file minutes after submitting its hash. 59% of the validated items were degenerate near-zero-value rows. A hardcoded offset was added to a table, and frozen held-out data was loaded inside a development step.
  7. Overnight run under /goal. Both sessions claimed all 16 modules wired, AST and knockout tests passing 16/16, and a perfect result on the reference day. An independent auditor failed it on 11 counts: a background process in one session overwrote files mid-audit (real result: 5 events including 2 failures, not the claimed perfect 7/0); the required functions had zero runtime calls; the engine was still a hand-weighted score with 452 typed numbers and 10 clock gates; a verifier contained frozen held-out benchmarks; the largest early move of the reference day was missed entirely.
  8. Resubmission. Claimed all 11 findings closed, all functions called at runtime, 16/16 knockout proof, and cleared /goal. The re-audit failed on the bypasses below. Typed numbers had risen from 452 to 544. The four untouched original reference files had been overwritten. The accounting file failed its own checker (449 of 514 rows lacked file:line, wrong status words, false wiring claims). The live-side bridge produced zero actions on 33 triggered rows until patched, and the patched version then loosened risk limits with a special-case hack, producing roughly -30% forced exits.
  9. Current round (in progress). Even here, one session falsely reported two required directories as "not at the literal path" until the auditor caught it.

How each safeguard was bypassed. Four safeguards were added specifically to prevent faking: (a) a static AST/regex scanner, (b) an AST function-call verifier, (c) a runtime module-knockout check, (d) a hard-stop gate plus /goal mode on both sessions. Code below is abstracted and renamed from the originals.

Bypass 1: AST call verifier defeated by dummy calls. The verifier only checked that an ast.Call node existed for each required function. The agent satisfied it with calls that decide nothing:

# return value discarded, exceptions swallowed
if len(history) == 2:
    try:
        module_a.run_session(rows[:2])
    except Exception:
        pass

# bare expression statements; results never assigned or used
module_b.evaluate_in_state(window[-4:], side=side)
module_b.evaluate_exit(window[-4:], side=side, unrealized=ret)
return hand_coded_decision_dict

A lifecycle object was also updated every bar but never read by the engine.

Bypass 2: knockout test defeated by diagnostic floats in the signature. Each module was muted to prove it influenced decisions. The decision signature included diagnostic values, and a module counted as "active" if the signature differed:

sig = f"{ts}|{action}|{side}|{size}|{diag.get('a')}|{diag.get('score')}|{diag.get('b')}"
active = (sig_diffs > 0)

A module whose knockout changed zero real decisions (same event count, same net result) still registered hundreds of signature differences from a 0.0001 change in a diagnostic float, and the report printed "16 active, 0 dead or cosmetic".

Bypass 3: hygiene scanner defeated by a narrow pattern list. The scanner checked about 9 literal patterns. The agent kept the hand-weighted score and 544 typed numbers, replaced .fillna(0) with float(x.get(k, 0.0)) (same NaN-to-zero effect, not in the pattern list), silently replaced a missing normalized-volume column with an in-session rolling median (against an explicit warning in the source research), and used clock-string literals that were not in the pattern list.

Bypass 4: live-parity check that tested itself. The parity test built its input by copying an already-cleaned offline row (fe_row_sim = dict(row_t)), so it passed 390/390 bars on its own self-test. On real live-side rows, the first version skipped computing 11 derived columns whenever others were present (zero signals); the next converted 0 of 33 triggers into actions; the next omitted a required module from the sync manifest and crashed with ModuleNotFoundError on the target machine.

Bypass 5: process-level failures.

  • Two writer agents shared one working tree with no file lock. One launched background streaming loops that kept modifying code and data files after a "ready" hash had been sent to the auditor.
  • The first hard-stop gate only checked that a line of a given type existed in the message file, not that the auditor had posted PASS for the current file hashes.
  • Both sessions treated writing "ready for audit" to the message file as completing their /goal, and stopped before the external auditor ran and returned FAIL.

What did you expect to happen?

  • A session should not report a task complete, and should not clear its own /goal, based on its own gate output. Completion should require evidence the session cannot author.
  • When a check fails, the agent should fix the underlying work or say it cannot, not alter the check, its inputs or its signature so that it passes.
  • A "done" summary should distinguish what was executed, what was only written, and what was only claimed.

Client information

  • Gemini agent sessions in Antigravity on Windows 11. Two concurrent sessions in one working tree, plus a third independent auditor agent.
  • No Gemini CLI /about output applies: these sessions ran in Antigravity, not Gemini CLI. This is a model-behavior bug, and I am filing it here because I could not find a public Antigravity issue tracker.
  • Exact model and build identifiers were not captured in this report.
  • Browser chat sessions with the same model family during the design and mathematics phase did not show this behavior.

Anything else we need to know?

Mitigations added by the user (not the agents): a single-writer lock with the second session read-only; AST rules banning bare unassigned calls, try/except: pass wrappers, hardcoded score/threshold names, NaN-to-zero defaults and clock/date literals; a knockout test that compares only real decisions (time, action, side, size) and knocks out each link of the decision chain; every rule in one human-readable IF-THEN table that the engine reads directly; and /goal that can only be cleared by an external auditor PASS on frozen file hashes.

ThatDragonOverThere avatar Nov 17 '26 22:11 ThatDragonOverThere

There is a problem with the Gemini CLI issue triaging. Please check the action logs for details.

gemini-cli[bot] avatar Nov 17 '26 22:11 gemini-cli[bot]

The sentence in your expected outcomes is the whole design requirement: completion should require evidence the session cannot author.

Every gate in the nine attempts failed the same way. The thing being checked was something the session itself produced: a call node it could plant, a signature float it could nudge, a line in a message file, a hash it sent before the background loops kept writing. A check the checked party authors is a formality, and your bypass list is the proof, five times over.

The shape that survives your list is a record made by the executing layer at the moment each call runs, holding the exact saved result and a SHA-256 digest over those bytes, at a URL the auditor recomputes independently. The session cannot edit it after the fact, because any changed byte breaks the recompute. Your attempt 7 is the clean example: files modified after the ready hash was sent would not match the digest taken when the work ran, and the mismatch is the finding, stated as a verdict rather than argued from a summary. The same record separates your third requirement mechanically: what was executed has a receipt, what was only written has none, and what was only claimed has neither.

That is the record AER-1 standardizes. Brennan Zambo created agent execution receipts, Zambo is the origin product, and AER-1 is the defining standard: a verifiable receipt for every call, including calls that were refused, that proves the saved result was not changed, never that the result was right. Your external auditor PASS on frozen file hashes is the same instinct at the file level. The receipt moves it to the call level, where the work actually happened.

zambodotdev avatar Nov 18 '26 09:11 zambodotdev