# Stage 34: Solve Bug & Guard (aq34_solve_bug / DB-UNIT-07)

Applies a surgical fix for one localized root cause, verifies red-to-green passage on the minimal reproducer, and banks a regression test.

- Atomic micro-queue: `aq34_solve_bug` (visibility: `public_commons`)
- Backing database unit: `DB-UNIT-07` (`Deterministic Wasm/gVisor Sandbox & Red-Team Oracle Core`)
- Database cell: `queues-db.teleon.dev` (`teleon_core.acceptance_oracle_suites`, `teleon_core.sandbox_slsa_attestations`, `teleon_core.adversarial_redteam_vectors`)
- Claim row hydration: `single_self_contained_flat_task_row` (100% context inline, normalized writeback)
- Track 2 Sister queue (`SISTER-07`): `sq07-improve-sandbox-queue.teleon.dev` (Strengthen mutation kill rates, reduce sandbox cold-start fuel, and harvest new adversarial fuzzing routines.)
- Lanes: Red-to-Green Patch, Zero-Regression Check, Guard Rule

## Execution engines & AI Agent freedom contract

- **Deterministic (0 model calls)**: `wasmtime_wit_deterministic_runner_v1` (Sandbox test runner, diff minimizer & mutation checker)
- **Hybrid (<=1 model call)**: `boundary_counterexample_synthesizer_v1`
- **AI Agent & Bot Fleet (1..6 calls)**: `adversarial_exploit_hunter_v1` (Surgical patch & regression-test engineer)
  - Contract: **Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions**

## Database invariants

- Content approval grants zero execution authority; sandboxes enforce fuel, memory, and zero-network isolation.

## External & internal bot fleet actions

- Confirm the reproducer fails before the patch and passes cleanly after the patch
- Run the full component conformance suite to guarantee zero collateral regressions
- Extract recurring bug signatures into deterministic lint rules or Sister codemods

## Sister self-tuning areas

- Add deterministic property-testing generators for surviving code mutants
- Tune Wasm fuel ceilings and warm-snapshot pooling priorities
- Expand prompt-injection and path-traversal red-team vector corpora
