Source of truth
Exact frontend, backend, schema, and deployment paths.
Prototype to learn, then freeze boundaries and build reliably.
| Phase | Goal | AI role |
|---|---|---|
| Prototype | Discover interaction and behavior | Explore and challenge disposable ideas |
| Transition | Document golden behaviors and ownership | Audit source-of-truth paths and invariants |
| Real build | Make implementation maintainable | Small bounded changes, tests and QA |
Exact frontend, backend, schema, and deployment paths.
What must always remain true independent of model output.
Written expected user outcomes before implementing.
Which layer owns routing, validation, persistence, and authority.
Real schema, cost, latency, failures.
Deployed journeys proving baseline usability.
| Role | Use |
|---|---|
| Architect | Find simplest owning design and invariants |
| Builder | Implement one bounded slice |
| QA | Attack assumptions and capture regressions |
| Product | Test actual user confusion and value |
| Symptom | What went wrong | Product/engineering lesson |
|---|---|---|
| Wrong factual answer | Frontend used the wrong execution path; the model was not the owning layer | Check routing, retrieval, context and authoritative state before prompt changes |
| Broken deployed modal | Conflicting CSS/JS visibility mechanisms and accumulated overrides | Remove the conflict; give the behavior one owner instead of patching again |
| AI calls felt slow | Model inference dominated latency, not SQL | Measure provider timing and optimize the real bottleneck; use interaction design or genuine streaming where useful |
| Useful complexity | Avoidable complexity |
|---|---|
| Explicit authority and product invariants | Duplicate runtime paths and ambiguous routing |
| Meaningful state transitions and review history | Patch-on-patch CSS or hidden fallback behavior |
| User journeys learned through testing | Multiple files claiming to own the same behavior |