Skip to main content

Engineering Quality Model

Why this chapter matters

Frontend teams often call code "good" when it is readable. Architects need a broader quality model: the system must be usable, measurable, secure, accessible, evolvable, and operable under real-world constraints.

The quality stack

The stack is ordered deliberately. Clean internals do not compensate for a broken user outcome.

Quality dimensions

DimensionArchitect questionEvidence
correctnessDoes the workflow produce the right result?tests, acceptance criteria, production validation
accessibilityCan users complete the workflow with different input and assistive models?keyboard pass, screen reader checks, WCAG evidence
performanceDoes the route feel fast on target devices and networks?budgets, traces, RUM
reliabilityWhat happens when dependencies fail?failure matrix, retry/degrade behavior, incidents
security/privacyAre trust boundaries and data handling explicit?threat model, CSP, storage policy, audit trail
maintainabilityCan teams change this safely?boundaries, ownership, test pyramid, dependency rules
operabilityCan production explain itself?dashboards, logs, traces, alerts, runbooks

Quality budget model

For critical surfaces, define budgets before implementation:

BudgetExample
interactionprimary action responds within target INP threshold
route bytesinitial JS stays under route-specific limit
errorscritical flow error rate stays below agreed threshold
accessibilityno keyboard trap or unlabeled control on critical journey
securityno new third-party script without owner, purpose, and data class
maintenanceno cross-domain import without ADR or ownership approval

Quality review flow

Common quality traps

  • Treating test count as quality.
  • Treating performance as a launch-week optimization.
  • Treating accessibility as a QA-only responsibility.
  • Treating security as backend-only.
  • Treating observability as logs after failure.
  • Treating maintainability as folder structure.

Review checklist

  • Are quality dimensions explicit for the surface?
  • Are budgets tied to user journeys rather than generic targets only?
  • Does risk classification change the strength of gates?
  • Can production signals prove the quality model after launch?
  • Are exceptions time-bound with owners?

Exercises

  1. Create a quality model for checkout, onboarding, billing, or dashboard search.
  2. Define three quality budgets for a route your team owns.
  3. Find one place where your current quality gates are too weak for the user risk.

Source lens

This chapter connects Part 0 production readiness with Part VI performance, Part VIII reliability/security/accessibility, and Part XII scorecards.