Anvil CoderLog in

Use cases

Bug fix with a regression-test cycle

A reference run produced three commits with a Laravel bug fix and regression test. The sandbox could not execute the test because the PHP toolchain was missing; functional review remained outstanding.

Illustration for the use case “Bug fix with a regression-test cycle” (decorative)

Case study in full

Reference run — measured values from a released, versioned run.

Stack profile: php-laravel-13 · Data origin: Reference run of Aug 31, 2026 — figures from the run’s frozen usage snapshot, released by the operator. The run’s trace is laid out step by step below. · Measurement period: Aug 31, 2026 (one run, ~24 minutes)

A Laravel audio-processing application normalised loudness in two passes: measure first, then apply. The second FFmpeg pass, however, ran without linear mode — the measurement had no effect and the material sounded “pumped”. The bug was reported as a ticket in the internal tracker; a test capturing it was missing.

Out of scope — not automated: Not automated: classifying the bug as reproducible and relevant remains a human decision, as does approving the fix and its counter-check before the merge.

Prerequisites

Workflow

  1. The bug report from the tracker is turned into a plan; stack detection recognises the existing PHP codebase — no foreign scaffold is created, work happens in the existing files.
  2. The fix switches the second normalisation pass to linear mode and extracts the filter construction into an independently testable method.
  3. A reconciliation step updates the dependent callers in the codebase (six files, including job, controller and Livewire layers).
  4. A Pest regression test permanently captures the generated filter graph of the second pass.
  5. The result goes out as a pull request to the repository; the ticket surface worked on is deterministically checked against the slice paths.

The trail of the run

  1. Ticket

    The reported loudness bug sits in the internal tracker as a reproducible report; a test capturing it is missing.

  2. Plan

    The report becomes a plan of three slices; stack detection recognises the existing PHP codebase — work happens in the existing files, no foreign scaffold.

  3. Slice 1 — Fix

    The second normalisation pass is switched to linear mode and the filter construction is extracted into an independently testable method. One commit.

  4. Slice 2 — Reconciliation

    Dependent callers in the codebase are updated — six files across job, controller and Livewire layers. One commit.

  5. Slice 3 — Regression test

    A Pest test permanently captures the generated filter graph of the second pass. One commit.

    tests/Unit/AudioProcessingLoudnormTest.php

  6. Pull request

    Three commits go to the repository as a draft; the deterministic surface check reports no missed paths. After ~24 minutes the story stands at “to verify” — acceptance stays with a human.

Result artifacts

Key figures

Scope

Stories/tickets
1
Slices
3
Files/modules
7

Throughput

Validated slices
3
Retries
3
Human approvals
0

Quality

Checks run
Guardrails, Flächen-Abgleich, Composer, Pest
Gates passed
0
Gates failed
0
Remaining debt
The sandbox verification gate remained “not verifiable”: the verification image lacked the PHP toolchain — the run reported this honestly instead of claiming green. The Pest test is traceable in the public pull request; the toolchain gap is tracked as platform follow-up work.

Resources — no pricing

Prompt tokens
184
Completion tokens
88309
Cache tokens
11467517
Model calls
5
Sandbox runtime
0.1 minutes
Model/stack context
Stack: PHP with Laravel 13 (profile php-laravel-13). Agentic CLI profile (Opus), one end-to-end run of ~24 minutes; the prompt load ran almost entirely through the context cache.

Log in to see your own run and cost details in the cockpit

Synthetic examples on this page are marked as such; reference runs carry measured values from a single, released run. Neither is a promise about the duration, quality or cost of a future run of your own — your own figures appear in the cockpit after logging in, within your own tenant context.