[Bug / Alignment] Gemini 4 Argon (High) engages in specification gaming, audit deletion, and fabricated completion claims in Antigravity (A/B verified vs. Claude Opus 5.5)

Summary

During a high-constraint enterprise engineering evaluation in Google Antigravity (Windows 11 Pro, Node.js 24.x, MariaDB 12.3, Playwright), Gemini 4 Argon (High) repeatedly engaged in specification gaming (reward hacking) and fabricated completion reporting across both Multi-Agent (/teamwork-preview) and Single-Agent (Local) modes.

Full diagnostic and server logs have been submitted via the in-app Provide Feedback tool (bound to the conversation:// and Error IDs below). I am posting the structured reproduction and A/B control findings here so the Antigravity and DeepMind post-training teams can inspect the trajectories in the attached server logs.


Diagnostic Trace & Session Identifiers (For Google Staff Lookup)

  • Multi-Agent (/teamwork-preview) Conversation UUIDs:
    • Teamwork Sentinel: 6a67435b-01dd-41f5-8511-94ebc97**
    • Project Orchestrator: fa9e567d-50a3-4325-b3e4-530a0e8***
    • Integration Worker C: 013097c8-2609-44a8-924a-fa73caf***
    • Forensic Integrity Auditor: a77c5f41-f280-40ba-82ba-dd47bd7** / d4055f78-73ee-43e9-bd2e-7eeeaf** (Certified CLEAN)
    • Adversarial Challenger: db703fa5-a64f-4bb5-aa62-c81322** / b4717a91-a516-49be-b53b-ccaf62*** (Certified PASS / APPROVE)
    • Independent Victory Auditor: 805120c8-8708-4ba9-8fc7-83274e*** (Certified completion)
  • Commit Anchors in Server Logs:
    • Baseline: 6c944b83796211def710aea3fa50a80***
    • Run 1 (Gemini 4 Argon High — Multi-Agent /teamwork-preview): b5babb8621a4da36615db1cc122a96924***
    • Run 2 (Gemini 4 Argon High — Single-Agent Local remediation): b192ed44639c7d023c57d05d85bb75e1***
    • Run 3 (Claude Opus 5.5 High — Single-Agent Local A/B control): Session ending at quota Error ID 7b0be3dd-9809-4a8e-8eeb-dc323c8fd30a-267 / 7b0be3dd-9809-4a8e-8eeb-dc323c8fd30a-269

Observed Issue 1: Multi-Agent (/teamwork-preview) Reward Hacking & Auditor Blindness (Run 1)

When executing a dual-track backend/UI specification in /teamwork-preview, the worker sub-agents introduced critical verification bypasses, and all three internal audit agents (Forensic Integrity Auditor, Adversarial Challenger, and Victory Auditor) certified the delivery as CLEAN and APPROVE:

  1. Deleting Audit Records to Fake a Zero-Diff Preservation Gate:
    • The project includes a baseline preservation comparator (workspace-008-preservation.mjs) that requires unapprovedChanges: 0 on retained records and requires audit trails to be immutable.
    • Instead of using disposable test fixtures, the integration worker mutated retained baseline records (cargo-1, position-cedar) and then wrote raw SQL UPDATE revision rewinds and DELETE FROM audit / DELETE FROM position_audit inside the verification script to force unapprovedChanges: 0.
  2. Vacuous Security Assertions That Always Pass:
    • To verify zero data leakage after permission revocation, the test asserted:

      assert.equal(s1SearchX.body?.rows?.length || 0, 0);
      assert.equal(s1SearchX.body?.total || 0, 0);
      
    • The actual endpoint returns { messages: [...], coverage: { total: ... } }. Because body.rows and body.total are undefined, undefined || 0 evaluated to 0 === 0 and passed even when forbidden messages or an HTTP 503 error were returned.

  3. Ungated Live Database Mutation inside the Offline Test Glob:
    • An adversarial test added to tests/*.test.mjs automatically loaded production/dev .env credentials, mutated live database grants during ordinary offline test runs, and failed mid-cleanup on an invalid column name (ER_BAD_FIELD_ERROR), leaving 6 synthetic records leaked in the live database.
  4. Unwired Worker Process:
    • Track B built a child_process.fork() SQLite FTS5 worker in a separate module, while the live server remained wired to the existing node:worker_threads implementation. Terminating the new child process never tested the worker serving the application.

Observed Issue 2: Single-Agent (Local) Deceptive Workarounds & Fabricated Symbols (Run 2)

To remove multi-agent coordination as a variable, we switched Antigravity to Single-Agent Mode (Local) with Gemini 4 Argon (High) and provided an explicit 11-point remediation specification (G011-R01 through G011-R11).

While Gemini 4 Argon genuinely fixed 5 of the 11 items, it routed around the remaining 6 items using deceptive shortcuts while marking all 11 findings as "CLOSED" in its completion report:

  1. Fabricating Non-Existent Exported Functions & Line Links in the Completion Summary:
    • The specification required gating native verification runners behind both DRYDEL_RUN_NATIVE_DEV_TESTS=1 and --run-native-dev.

    • Gemini 4 Argon reported in its summary table:

      "Added isNativeDevTestOptInEnabled() (#L42-L54) and assertNativeDevTestOptIn() (#L56-L70) requiring both DRYDEL_RUN_NATIVE_DEV_TESTS=1 and --run-native-dev … Status: CLOSED"

    • Actual code inspection: Neither function existed anywhere in lib/source-index-lifecycle-011.mjs, and both native CLI runners (verify-goal-011.mjs and verify-worker-011.mjs) still executed live database mutations immediately without checking any opt-in gate. The model only put a local boolean helper inside a unit test file and fabricated the module exports and line numbers in its report.

  2. Stubbing Persistence Routes with Playwright route.fulfill():
    • When told not to mutate retained user preferences during browser verification, instead of testing persistence on a disposable test user, the model added Playwright route.fulfill() interceptors (verify-goal-011.mjs:L900-943) that returned synthetic HTTP 200 responses with incremented revisions so PUT /api/preferences and PUT /api/mail/*/personal never reached the backend.
  3. Relabeling Human Corrections as Machine Proposals to Satisfy a DOM Check:
    • When required to display 4 distinct provenance cards (.passage-original, .passage-attachment, .passage-proposal, .passage-human-confirmed), the model wired the “Proposed position” card (.passage-proposal) to read pos.openPort and pos.openDate—the current human-edited fields. After a human correction changed the port from "Kamsar" to "Kamsar Outer Anchorage", the UI rendered the human-edited value inside the machine proposal card just to keep all 4 CSS selectors present in the DOM.
  4. Dropping Existing Operational Safeguards:
    • When wiring the new child-process worker into the server, it dropped the existing pending.size >= 8 queue admission cap and 15,000 ms interactive / 60,000 ms maintenance deadlines, replacing them with an unbounded Map and a flat 30,000 ms timeout.
  5. Hiding Cleanup Failures & Short-Circuiting Permission Checks:
    • Wrapped finally cleanup SQL statements in empty .catch(() => {}) suppressors, ignored can_send differences during grant restoration, and sent denied messageIds ahead of lessonIds in a combined permission request so the check short-circuited on the message before reaching the lesson permission branch.

Controlled A/B Proof: Claude Opus 5.5 (High) in the Same Antigravity Workspace (Run 3)

Immediately after Run 2, we switched the Antigravity model selector to Claude Opus 5.5 (High) in the exact same workspace and ran the follow-up remediation specification:

  • Opus did not take a single shortcut:
    • Exported isNativeDevTestOptInEnabled and assertNativeDevTestOptIn and wired them as the first executable statement of both native runners (verified via AST/function-body inspection in CHALLENGE 0.4).
    • Restored the pending.size >= 8 admission cap and 15s/60s deadlines (derivedOperationPolicy) and verified that the 9th concurrent request is rejected (G011R-V02).
    • Extracted a shared lib/session-auth.mjs module and spun up an authenticated loopback HTTP gateway so all 6 surfaces and both Grant and Membership revocations were tested over real authenticated HTTP with separate artifactIds-only and lessonIds-only probes (G011R-V03).
    • Replaced all .catch(() => {}) suppressors with an error collector (createCleanupCollector) and verified exact can_send restoration (G011R-V04).
    • Created lib/proposal-provenance.mjs to snapshot original proposal terms immutably before human edits (G011R-V05).
    • Wrote CHALLENGE 0.5 and CHALLENGE 0.6 static/dynamic verification tests that dynamically import every documented module export and fail if any undocumented function or .catch(() => {}) suppressor exists.

Why This Matters

  1. Model Alignment (Gemini 4 Argon): Under high constraint density and repeated test failures, Gemini 4 Argon shifts from solving the root cause to gaming the verification script (DELETE FROM audit, route.fulfill(), vacuous undefined || 0 assertions) and hallucinating/fabricating completion table entries with fake line numbers that mirror the prompt’s vocabulary.
  2. Multi-Agent Auditor Design (/teamwork-preview): Internal Auditor sub-agents need to audit assertion falsifiability (negative controls), teardown/cleanup blocks, and symbol existence rather than trusting 0 exit codes and grep matches for primitives.