Anvil CoderLog in

Use cases

Bug fix with a regression-test cycle

One reported Laravel bug, three commits, about 24 minutes: the fix, the callers brought in line and a regression test that pins the bug down for good. Measured on a real run.

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

Case study in full

Reference run

Three commits, no manual intervention, about 24 minutes — fix and regression test are ready for review as a pull request.

Stack profile: php-laravel-13 · Measured: Aug 31, 2026 (one run, ~24 minutes) · Data origin: Reference run of Aug 31, 2026, figures from the run’s frozen usage snapshot.

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

What stays with your team: Whether a bug is reproducible and relevant is your team's call. Approving the fix and accepting it before the merge stay with you.

What you need

How the run works

  1. The bug report becomes the plan; stack detection recognises the PHP codebase and works in the existing files, no foreign scaffold.
  2. The fix switches the second pass to linear mode and extracts the filter construction into an independently testable method.
  3. A reconciliation step brings the dependent callers in line: six files across job, controller and Livewire layers.
  4. A Pest regression test pins down the filter graph of the second pass for good.
  5. Three commits go to the repository as a pull request; the ticket-surface check reports no missed path.

The trail of the run

  1. Ticket

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

  2. Plan

    The report becomes a plan of three slices; stack detection recognises the PHP codebase and works in the existing files.

  3. Slice 1 — Fix

    The second pass runs in linear mode, the filter construction becomes an independently testable method. One commit.

  4. Slice 2 — Callers in line

    The dependent callers follow: six files across job, controller and Livewire layers. One commit.

  5. Slice 3 — Regression test

    A Pest test pins down the filter graph of the second pass for good. One commit.

    tests/Unit/AudioProcessingLoudnormTest.php

  6. Pull request

    Three commits go to the repository as a pull request; the ticket-surface check reports no missed path. After about 24 minutes the story stands at “to verify” — your review begins.

What you get

Key figures

Scope

Stories/tickets
1
Slices
3
Files/modules
7

Throughput

Validated slices
3
Retries
3
Human interventions
0

Quality

Checks run
Guardrails, Flächen-Abgleich, Composer, Pest
Gates passed
0
Gates failed
0

Resources

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 in about 24 minutes; the prompt load ran almost entirely through the context cache.

What stayed open

The sandbox could not execute the Pest test: the verification image lacked PHP. The run reported that openly instead of claiming green; the test is traceable in the pull request, and PHP is on the image’s list.

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