MIT-LICENSED COMPANION REPOSITORY
BrewQueue Reference Architecture
Rather than relying on abstract snippets, The Autonomous Engineer grounds every pattern in brewqueue/—a complete, runnable order-ahead café platform built to demonstrate Verification-First Autonomy end to end.
1. Production-Style Full-Stack Surface
- Backend (
api/): FastAPI service on Python 3.14 backed by SQLite with PostgreSQL-compatible DDL, enforcing integer-cent money (api.money.Money), idempotent payment capture, and an append-onlyloyalty_ledger. - Frontend (
web/): Vite 6, React 19, and TypeScript 5 organized by feature colocation (web/src/features/:board/,menu/,loyalty/,orders/,payments/). - Concise Context Map: A 33-line
AGENTS.md(442 tokens) paired with five user-centric feature maps checked automatically for drift bycheck_feature_maps.py.
2. Nine-Step Local & CI Verification Suite
Running python scripts/verify.py executes the entire mechanical trust stack in one deterministic pass:
ruff check api tests tools— fast Python lint.mypy api— strict static typing across all 14 backend modules.pytest -v— 16 passing checks covering SQL data contracts, payment retry idempotency, integer-cent money, AST security/provenance rules (BQ-007,BQ-012,BQ-019), and skill-mirror parity.check_feature_maps.py— verifies 5/5 feature maps match live source files.npm --prefix web run lint— ESLint 9 with zero errors or warnings.npm --prefix web run check:deps—dependency-cruisermodule boundary verification.npm --prefix web run build— TypeScripttsc --noEmitand Vite production bundle.python -m api.seed— deterministic seed of 40 open orders and 6 menu items.npx playwright test --trace on— live browser verification including Barista Board render-count assertions (786 → 2cardRenders) and live delta-sync menu updates.
3. Hard CI Guardrails That Teach the Fix
BQ-007(Boundary Guard): Blocks UI modules from importingpayments/internal/chargeClientdirectly via ESLint,dependency-cruiser, and Pytest—and points agents straight tomarkOrderReady()in@features/orders/api.BQ-012(Integer-Cent Money & No Lint Escapes): Bans float literals in money paths and banseslint-disablecomments via AST inspection.BQ-019(Security & Provenance): Scans AST SAST sinks, enforces mutation-route validation guards, and checks dependency lockfile provenance.
4. Blind Multi-CLI Skill Evaluations
Skills in skills/debug-evidence-first/SKILL.md and skills/investigate-data-anomaly/SKILL.md are mirrored byte-identically to .agents/skills/ and .claude/skills/, then scored deterministically on a 12-point rubric (including a hidden refund-invariant check) across real Claude Code and GitHub Copilot CLI runs—with zero LLM-as-judge noise.