These docs track main. Latest release: v2.0.0.

Skip to Content
antigravity-booster
Concepts

Prosecution

Cross-model prosecution, dry passes and hollow-test

A green gate shows the tests pass. It does not show the change is right. After a ticket's gates pass, agb hands the branch diff to a prosecutor: a model from a different family than the builder, in a fresh context, charged with refuting the change (lib/prosecute.mjs).

Who prosecutes whom

C20 Gemini builders are prosecuted by Claude 5.5 (claude-sonnet-5-5-medium / claude-sonnet-5-5-high / claude-opus-5-5-high) whenever claude pool capacity is available, and automatically fall back to a distinct fresh-context Gemini model (gemini-4-carbon-high for Neon builders; gemini-4-neon-high for Hydrogen/Carbon builders) with prosecutionMode: "same-family-fallback" recorded in .adlc/manifest.jsonl when claude capacity is 0 (such as Free/Plus/Pro-Trial Gemini-only plans or depleted 5-hour Claude windows). Claude builders are prosecuted by gemini-4-neon-high (with gemini-4-carbon-high and gemini-4-hydrogen-high next in line) (lib/pools.mjs). The full table is on Pools and tiers.

The prosecutor runs read-only in a scratch directory with an 8-minute timeout and must answer in a JSON schema (lib/prosecute.mjs, lib/scheduler.mjs).

How a verdict is decided

The JSON contract, not the model, decides (lib/prosecute.mjs):

ConditionVerdict
Empty diffblock (critical: no committed change)
Diff over 120,000 charactersblock: a partial review cannot certify what it did not see; split the ticket
Any critical or high findingblock, whatever the model's own verdict says
adlc hollow-test reports a surviving mutantblock
block with no findings, or a verdict other than ship/blockerror (schema violation)
Otherwisethe model's ship or block

The oversize rule exists because truncating let a builder pad an early file and hide a change in a later one (lib/prosecute.mjs).

Hollow-test evidence

When the plan has a test gate, agb runs adlc hollow-test --test-cmd <gate.test> --base <base> in the ticket worktree before prosecuting. It mutates the changed lines and checks that the tests catch every mutant (lib/prosecute.mjs).

  • The result goes into the prosecutor's prompt as evidence.
  • Pre-prosecution short-circuit (v2.0): when adlc hollow-test detects surviving mutants, prepareProsecutionPrecheck() returns block immediately with 0 System-2 quota leases and 0 agy spawns (disable via plan.prosecution.shortCircuitHollowTest: false).
  • On clean non-frontier diffs, computeDiffBlastRadius() scales the cross-family prosecutor tier (selectRiskTieredProsecutor()) and locks static-diff prosecutors to 1 turn (read_file(*) denied unless contextPack.truncatedContext === true). When Google's Gemini Decisions API is active (GEMINI_API_KEY), low-blast-radius tickets with 0 surviving mutants can also pass fail-closed System-1 fast-ship (>= 0.92 AC satisfaction, < 0.10 charge risk, >= 0.85 confidence). See Token efficiency.
  • If hollow-test cannot run (no test gate, adlc missing, timeout), the evidence is shown as unavailable and the cross-model pass still runs.

hollow-test runs again after merge in the integration worktree when the merged change touches test/; a failure there stops the merge (lib/scheduler.mjs).

Dry passes

One clean pass is a model prior, not a coverage certificate. plan.prosecution.dryPasses (default 1) sets how many consecutive ship verdicts a ticket needs. Any non-ship verdict ends the loop (lib/scheduler.mjs).

plan.json (excerpt)
{
  "prosecution": { "dryPasses": 2 }
}

After a block

A block counts as a strike. agb first asks adlc consensus-fix for candidate fixes (passing --rails <gate.test> --require-rails when the ticket or active store declares frozen rails); an applied candidate must pass rails-guard, the gates and prosecution again. Otherwise the builder regenerates with the blocking findings attached. Under the two-strike rule, a second failure fails the ticket (lib/scheduler.mjs).

Each prosecution outcome is recorded as gate evidence: see Gate evidence. To prosecute a branch outside a run, use agb review.

On this page