Antigravity Swarm Debug
Use this skill for real runtime failures.
- Reproduce the failure before explaining it.
- Write at least three plausible hypotheses with distinguishing evidence.
- Inspect runtime truth: logs, process state, debugger output, network traces, browser traces, or CLI transcripts.
- After two failed investigation rounds, split the search across independent subagents.
- Confirm root cause by toggling the suspected cause and observing the behavior change.
- Add or update the narrowest regression check.
- Fix minimally, then rerun the original reproduction through the real surface.
- Remove temporary debugging artifacts and report the cleanup receipt.
Hypothesis Table
Keep a small table while investigating:
| Hypothesis |
Evidence that supports it |
Evidence that falsifies it |
Next probe |
Use probes that distinguish between explanations. Re-running the same failing command without a new observation is not progress.
Runtime Evidence
Choose the surface that matches the bug:
- CLI: command transcript, exit code, stderr, config paths.
- Web: browser screenshot, console log, network trace, route state.
- API: request, response, status, logs, database row if relevant.
- Desktop/IDE: visible UI state, settings file, extension/plugin registration, logs.
After the fix, rerun the original reproduction first, then the broader regression suite.
Runtime Setup
Before attaching theories to the failure, map the runtime:
- command or UI entrypoint,
- working directory,
- config files read,
- environment variables used,
- process tree or server process,
- logs and where they are written,
- external services involved,
- package or plugin install path,
- user-visible output surface.
Capture the exact reproduction:
Command:
Input:
Expected:
Actual:
Exit code:
Stdout:
Stderr:
Files changed:
If the failure is intermittent, record frequency and timing. Do not collapse intermittent behavior into a single deterministic story.
Specialist Tools
Use the tool that can falsify the current hypothesis:
- process listing for hangs,
- logs for server or hook failures,
- browser traces for frontend failures,
- network traces for API failures,
- package dry-run for missing shipped files,
- plugin validation for Antigravity plugin failures,
- language diagnostics for import/type failures,
- screenshot inspection for visual failures,
- temp install smoke for installer failures,
- git diff for accidental behavior changes.
Do not keep rerunning the same command without a new probe.
Phase Loop
Use a tight loop:
Phase 1: Reproduce
- run the failing surface,
- capture exact output,
- confirm it fails now,
- reduce the reproduction if possible.
Phase 2: Hypothesize
Write at least three plausible hypotheses. Each must have a falsifier.
Phase 3: Probe
Choose the cheapest probe that distinguishes hypotheses.
Phase 4: Narrow
Update the table. Remove falsified hypotheses. Add new hypotheses only when the evidence requires them.
Phase 5: Fix
Make the smallest change that addresses the proven cause.
Phase 6: Verify
Run:
- the original reproduction,
- the new regression check,
- relevant diagnostics,
- the real user-visible surface.
Safety Invariants
- Do not change behavior before proving the cause.
- Do not delete error handling to make a symptom disappear.
- Do not weaken tests to match broken behavior.
- Do not hide flaky failures by increasing timeouts unless timing is proven root cause.
- Do not mutate real user config unless the task is explicitly about install/config and the path is confirmed.
- Do not leave temporary logs, debug prints, or probe files in the final diff.
- Do not claim root cause when the evidence only shows correlation.
Debug Report
Return:
DEBUG REPORT
Reproduction:
Hypotheses:
Evidence:
Root cause:
Fix:
Regression:
Verification:
Cleanup:
Residual risk:
1---2name: asw-debug3description: Hypothesis-driven Antigravity Swarm debugging for crashes, hangs, wrong output, and runtime drift.4---56# Antigravity Swarm Debug78Use this skill for real runtime failures.9101. Reproduce the failure before explaining it.112. Write at least three plausible hypotheses with distinguishing evidence.123. Inspect runtime truth: logs, process state, debugger output, network traces, browser traces, or CLI transcripts.134. After two failed investigation rounds, split the search across independent subagents.145. Confirm root cause by toggling the suspected cause and observing the behavior change.156. Add or update the narrowest regression check.167. Fix minimally, then rerun the original reproduction through the real surface.178. Remove temporary debugging artifacts and report the cleanup receipt.1819## Hypothesis Table2021Keep a small table while investigating:2223| Hypothesis | Evidence that supports it | Evidence that falsifies it | Next probe |24|---|---|---|---|2526Use probes that distinguish between explanations. Re-running the same failing command without a new observation is not progress.2728## Runtime Evidence2930Choose the surface that matches the bug:3132- CLI: command transcript, exit code, stderr, config paths.33- Web: browser screenshot, console log, network trace, route state.34- API: request, response, status, logs, database row if relevant.35- Desktop/IDE: visible UI state, settings file, extension/plugin registration, logs.3637After the fix, rerun the original reproduction first, then the broader regression suite.3839## Runtime Setup4041Before attaching theories to the failure, map the runtime:4243- command or UI entrypoint,44- working directory,45- config files read,46- environment variables used,47- process tree or server process,48- logs and where they are written,49- external services involved,50- package or plugin install path,51- user-visible output surface.5253Capture the exact reproduction:5455```text56Command:57Input:58Expected:59Actual:60Exit code:61Stdout:62Stderr:63Files changed:64```6566If the failure is intermittent, record frequency and timing. Do not collapse intermittent behavior into a single deterministic story.6768## Specialist Tools6970Use the tool that can falsify the current hypothesis:7172- process listing for hangs,73- logs for server or hook failures,74- browser traces for frontend failures,75- network traces for API failures,76- package dry-run for missing shipped files,77- plugin validation for Antigravity plugin failures,78- language diagnostics for import/type failures,79- screenshot inspection for visual failures,80- temp install smoke for installer failures,81- git diff for accidental behavior changes.8283Do not keep rerunning the same command without a new probe.8485## Phase Loop8687Use a tight loop:8889### Phase 1: Reproduce9091- run the failing surface,92- capture exact output,93- confirm it fails now,94- reduce the reproduction if possible.9596### Phase 2: Hypothesize9798Write at least three plausible hypotheses. Each must have a falsifier.99100### Phase 3: Probe101102Choose the cheapest probe that distinguishes hypotheses.103104### Phase 4: Narrow105106Update the table. Remove falsified hypotheses. Add new hypotheses only when the evidence requires them.107108### Phase 5: Fix109110Make the smallest change that addresses the proven cause.111112### Phase 6: Verify113114Run:1151161. the original reproduction,1172. the new regression check,1183. relevant diagnostics,1194. the real user-visible surface.120121## Safety Invariants122123- Do not change behavior before proving the cause.124- Do not delete error handling to make a symptom disappear.125- Do not weaken tests to match broken behavior.126- Do not hide flaky failures by increasing timeouts unless timing is proven root cause.127- Do not mutate real user config unless the task is explicitly about install/config and the path is confirmed.128- Do not leave temporary logs, debug prints, or probe files in the final diff.129- Do not claim root cause when the evidence only shows correlation.130131## Debug Report132133Return:134135```text136DEBUG REPORT137Reproduction:138Hypotheses:139Evidence:140Root cause:141Fix:142Regression:143Verification:144Cleanup:145Residual risk:146```