◉ANTIGRAVITY LABJP
Articles/Integrations
⬡ Integrations/2026-05-24Advanced

Catching "Running but Doing Nothing" Antigravity Subagents — A 3-Layer Observability Pattern

Logs green, output zero — the silent failure every overnight Antigravity subagent eventually produces. A three-layer design (Heartbeat / Output Trace / Decision Log) that tells missed starts, stale inputs, and write-less loops apart, with the SQL and code to copy.

antigravity475observability19subagent4bigquery4cloud-scheduleroperations33

✦ Premium Article

At 2 a.m. the Cloud Scheduler dashboard was a wall of green "success" rows. In the morning I opened the store and nothing had changed since the night before. The first month after I handed nightly update jobs to Antigravity subagents, I woke up to mornings like that more than once.

There were no errors and no exceptions. The agents had run — they just hadn't actually done anything. I had always assumed the painful incidents arrive when something crashes.

Nothing crashed, so I had no way to notice. That is what separated this from every outage I was used to.

This article is the implementation memo for the three-layer observability design I built afterward: Heartbeat, Output Trace, and Decision Log. It is how I keep "running but doing nothing" out of production — the state Antigravity's own run screen does not surface — with the code and SQL included.

The one principle I want to put first:

Don't count whether the agent finished. Count whether the world changed — from outside the agent.

The Three Archetypes of Silent Failure — stale context / no-op loop / silent retry

Let me pull "silent failure" apart into three shapes first. Run Background Agents or subagents long enough and you will meet at least one of them.

stale context — treating an old snapshot as ground truth

The agent does exactly what you asked. But the repository snapshot or AdMob report cache it is reading is hours or days old, so it concludes "nothing changed" and does nothing.

Real quiet days exist too, so you cannot simply equate "zero output" with "failure." That was the awkward part.

no-op loop — tasks advance but no side effect ever happens

Tool calls do happen, but they are all read-only: grep, read_file, and the like. The agent ends with "conclusion: no issues" and exits normally.

The write-side tools you actually wanted — write_file, gh pr create — were never called.

silent retry — internal retries swallow the real error

When an external API returns a 5xx, the subagent's own retry policy quietly tries again. After a few attempts it returns the same stale result as the first try and finishes. The log says success, but the API's current state never made it in.

The three look different, so each needs its own detection logic — and I took a detour before I understood that. My first attempt was one catch-all alert, and it drowned in false positives until I stopped trusting it.

The 3-Layer Picture, and Why the Stacking Order Matters

To catch silent failures you need three independent sources of truth, kept outside the agent in separate channels.

  1. Layer 1 Heartbeat — measure from outside whether the agent started and finished
  2. Layer 2 Output Trace — compare hashes to confirm the artifacts actually changed
  3. Layer 3 Decision Log — record tool calls so you can answer "why didn't anything change?"

The order has a reason. Build Decision Log first and the volume balloons until nobody can read it, and the whole effort stalls. Heartbeat plus Output Trace already covers most of the archetypes. I recommend shipping that light pair first and using Decision Log to close what remains.

How the archetypes map to the layers:

ArchetypeHeartbeatOutput TraceDecision Log
Never started (outside the three)◎ caught by matching against dispatch——
stale context×◎ reference vs input hash mismatch○ rising empty ratio
no-op loop×○ changed stays false◎ zero write-side tool calls
silent retry○ attempt is 2 or more○ output identical to last run◎ repeated calls with identical arguments

The data flows one way:

Cloud Scheduler (cron)
    ↓ HTTP POST
Dispatcher (Cloud Run) ── writes a dispatch row to BigQuery (issues start_token)
    ↓ starts the agent with start_token
Antigravity Subagent (your workload)
    ├─ [Layer 1] Heartbeat      → BigQuery (duration, exit_code, attempt)
    ├─ [Layer 2] Output Trace   → BigQuery (hashes of reference, input, output)
    └─ [Layer 3] Decision Log   → BigQuery (tool, result kind, side effect)
                       ↓
          Scheduled queries (every few minutes via Cloud Scheduler)
                       ↓
       Slack #ops (minor) / PagerDuty (severe)
✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦A minimal setup that separates "clean exit, zero output" using an externally issued start_token and three kinds of hashes
✦Which layer and which query catches each of the three archetypes: stale context, no-op loop, silent retry
✦A Cloud Scheduler + BigQuery + Slack/PagerDuty stack, and the pitfalls of log volume, leaked secrets, and retention
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⬡ Integrations2026-03-27
Assembling Observability with Antigravity × OpenTelemetry — Instrumentation, Sampling, Cardinality, and AI Anomaly Detection in Production
A record of running OpenTelemetry in production on a Node.js backend: measured instrumentation overhead, tail sampling configuration, avoiding cardinality explosion, and operating AI anomaly detection behind an approval gate.
⬡ Integrations2026-11-03
Turning a Spreadsheet Chore into Apps Script: The First Request a Non-Engineer Can Hand to Antigravity
For non-engineers who want a weekly copy-and-paste routine handled by Apps Script: how to word the request to Antigravity, build in a dry run, keep the data safe, set a trigger, and sort out the usual snags.
⬡ Integrations2026-10-17
When Antigravity's Browser Agent Stops at the Login Screen: Four Things to Check
The browser agent came back with only a sign-in page. Here are four checks, built on the fact that it runs in a separate Chrome profile, to get its login state sorted.