Codebase map · read from source
A human-governed AI operations demo. Laravel owns the truth; a model proposes; a person decides; nothing leaves the building. Click any box on the architecture map, or step through the governance flow with a scenario selected.
A fictional specialty coffee retailer built as a Laravel Cloud technical demonstration. Support, returns, wholesale and gift-code messages arrive on a queue; the AI SDK classifies, extracts and drafts; a staff member approves, edits or rejects; and only an approved proposal may write to a held outbox. No email, payment or refund is ever actually sent — AI_STUB=true runs the whole workflow deterministically with no API keys and no network.
Laravel 12 on PHP 8.4, Livewire 3 for every UI surface, Eloquent as the single system of record.
laravel/ai with a single structured-output agent. Anthropic first, OpenAI as failover, deterministic fixtures when stubbed.
Redis + Horizon, five named queues, each with its own wait threshold and job tags.
A Next.js 16 App Router storefront in apps/storefront that owns no writes at all.
Read from the repository source on 20 August 2026. Every class name, route, queue and threshold on this page was taken from the source, not inferred.
One Laravel application is the authority for product, order, proposal and outbox truth. Everything else — queues, the model, the socket server, the object store, the Next.js storefront — is an attachment that can be swapped without changing who is allowed to write.
Reverb also pushes back to the staff browser and the Laravel product page — those arrows are left off to keep the map readable. On a narrow screen, scroll the diagram sideways.
This is the core story of the app. Pick a scenario to see where the path bends — the interesting engineering is in the branches, not the happy case.
"Human in the loop" is a claim until you can point at the line that stops the machine. These are those lines.
92 PHP classes under app/, organised by responsibility rather than by Laravel's default folders.
| Namespace | Files | What it holds |
|---|
Thirteen web routes, two read-only API routes, one health check.
| Route | Handler | Guard |
|---|
Seven artisan commands drive the live demo deterministically.
| Command | What it does |
|---|