Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Quality Scenarios

Measurable runtime and change scenarios for BookWorm's quality requirements.

Architecture

The scenarios below refine the priorities in Quality GoalsCustom DocQuality GoalsPrioritized, scenario-based quality goals for BookWorm and the current status of their acceptance targets.Ownerarchitecture-enabling-teamOpen doc and the approaches in Solution StrategyCustom DocSolution StrategyExecutive summary of the architectural decisions that satisfy BookWorm's quality goals and constraints.Ownerarchitecture-enabling-teamOpen doc. Each states a stimulus, operating context, required response, measurable acceptance metric, and priority. All numerical service budgets are proposed until their owners approve them.

Non-negotiable conditions and proposed targets

Checkout must use authoritative purchase facts; access denials must not expose protected data or cause protected writes; sensitive data must not be disclosed to model providers or telemetry; and failed asynchronous work must not be represented as successful business completion.

The response-time, availability, recovery, freshness, accessibility, rollout, and onboarding budgets below are proposed baselines, not approved service-level commitments. Assign owners and approve test conditions before treating them as release gates.

Usage scenarios

IDQuality AttributeStimulus (Trigger)Context / EnvironmentExpected ResponseMeasurable MetricPriority
QS-01 — Authoritative purchaseCorrectnessA customer submits checkout with valid, missing-item, or altered-price input.Checkout reads the customer’s persisted basket and current catalog facts.Accept valid purchases using catalog-derived prices and basket quantities; reject unavailable items; never trust a client-supplied price.100% of accepted fixtures preserve authoritative quantities and prices; 0 purchases are created for unavailable-item fixtures.High
QS-02 — Truthful coordination outcomesCorrectnessBasket cleanup, a retry, notification submission, or timeout returns success, failure, or an uncertain result.Order coordination and downstream work may be retried or partially complete.Determine completion or cancellation only from authoritative order state; expose cleanup and delivery failures without implying that retries prove business completion.0 order-state transitions are caused solely by cleanup, retry count, or notification outcome across the complete success and failure fixture set.High
QS-06 — Incident diagnosisOperabilityAn operator receives a request, message, scheduled-work, or order identifier associated with a failure.A deployed verification environment includes correlated traces and execution records.Identify the owning capability, failed boundary, and actual execution state.Proposed: diagnose 100% of injected incidents within 15 minutes.Medium
QS-07 — Recoverable search freshnessReliabilityA catalog update, deletion, indexing failure, or newer concurrent update occurs.1,000 catalog changes at 10 changes per minute with healthy dependencies.Keep failed updates recoverable, prevent older revisions replacing newer ones, and remove deleted items from search.Proposed: p95 commit-to-search visibility is at most 10 minutes; 100% of updates converge to the latest revision after recovery.High
QS-08 — Honest notification deliveryReliabilityThe mail provider or idempotency store fails before or after provider acceptance.Notification work is delivered asynchronously with retries and a dead-letter recovery path.Retry transient failures within configured bounds, retain exhausted work for investigation, and distinguish provider acceptance from recipient delivery.100% of exhausted failure fixtures are recoverable from the dead-letter mechanism; 0 provider failures are reported as confirmed recipient delivery.High
QS-09 — Enforced access boundariesSecurityA request has missing or invalid credentials, insufficient permissions, or targets another customer’s data.Protected APIs and internal message-driven workers operate in a production-like environment.Deny unauthorized access without exposing protected records or performing protected writes; valid authorized requests continue to work.100% of denial fixtures return an authorization failure; 0 protected records are disclosed and 0 protected writes occur.High
QS-10 — Sensitive-data minimizationSecurity and privacyA request, response, tool result, or exception contains synthetic personal data, a token, or another classified value.Data crosses model-provider, API error, log, and telemetry boundaries.Remove or protect sensitive values before disclosure; return public errors without credentials or internal diagnostic details.0 raw synthetic secrets appear in logs or telemetry; 0 raw synthetic personal data crosses protected model boundaries.High
QS-11 — Actionable interaction feedbackUsabilityA customer submits invalid data or waits on an outstanding operation.Customer-facing forms include validation, conflict, and unexpected-error states.Identify invalid fields, prevent invalid writes, provide progress feedback, and show a correlation reference without internal details for unexpected failures.100% of invalid fixtures identify the affected field and cause no write; proposed: progress feedback appears within 1 second.Medium
QS-12 — Interactive performance under loadPerformanceA representative workload runs for 30 minutes at 50 requests per second with 100 concurrent users.10,000 active books, baskets up to 20 items, healthy dependencies; workload mix is 60% catalog reads/search, 30% basket operations, and 10% checkout.Maintain correct results while responding within operation-specific latency budgets; measure asynchronous work separately.Proposed: p95 catalog and basket latency at most 500 ms; p95 checkout response after order persistence at most 2 s; p99 at most 2x each p95 budget; unexpected error rate below 1% per group.Medium
QS-13 — Customer-path availabilityReliabilitySynthetic probes exercise browsing, basket, and checkout once per minute.Production-like environment measured over a rolling 30-day window, separately for each path.Complete each eligible journey within its latency budget; count timeouts, incorrect results, and required-dependency outages as failures.Proposed: at least 99.9% successful executions per path; exclude only intentional invalid-input and authorization-denial probes.Medium
QS-14 — Restore authoritative stateReliabilityA service and its authoritative store are restored after simulated loss.Each authoritative store is exercised independently; derived search data can be rebuilt from catalog records.Restore usable service, reconcile queued and saga work, and avoid claiming exactly-once effects.Proposed: RTO at most 30 minutes and RPO at most 5 minutes for committed authoritative data, measured per store.Medium
QS-15 — Govern model and tool executionSecurity and privacyA prompt-injection fixture, denied tool request, rate-limit event, or tool-provider failure occurs.Governed model workflows and registered tools run under their deployed policies.Rejected inputs cause no agent handoff; denied tools do not run; allowed flows use only permitted tools; failures produce explicit degraded or failed outcomes.100% of policy fixtures follow the expected decision; 0 denied tool calls execute; rate-limited requests return an explicit limit response.High
QS-16 — Accessible core journeyUsability and accessibilityA customer completes browsing, basket, checkout, and error states using keyboard navigation or a screen reader.Agreed desktop and mobile browser and assistive-technology combinations.Provide accessible names, logical focus order, field-associated errors, announced status changes, and no keyboard traps.Proposed: meet applicable WCAG 2.2 AA criteria; 0 keyboard traps and 0 unresolved applicable conformance failures.Medium

Change scenarios

IDQuality AttributeStimulus (Trigger)Context / EnvironmentExpected ResponseMeasurable MetricPriority
QS-03 — Compatible contractsInteroperabilityA producer proposes an additive or breaking interface change.Supported consumers use documented HTTP, RPC, or event contracts.Verify compatibility with every supported consumer before release; provide an explicit migration and versioning plan for a breaking change.100% of supported consumers pass compatibility verification; 0 unplanned breaking changes are released.High
QS-04 — Independent compatible releaseDeployabilityA capability releases a compatible change and rehearses rollback.Unchanged consumers remain deployed during the release.Release and roll back without unrelated capability releases; unchanged consumers continue to work in both versions.0 unrelated releases required; proposed: rollout and rollback each complete within 15 minutes.Medium
QS-05 — Local business-rule changeMaintainabilityA team implements an agreed small rule change that needs no new cross-capability contract.The change is limited to one capability and includes focused verification.Change the owning capability without altering another capability’s data schema or implementation.0 changes to other capabilities’ schemas or implementations; proposed: complete implementation and focused verification within 2 engineer-days.Medium
QS-17 — New-contributor onboardingMaintainabilityA contributor unfamiliar with the system is assigned an agreed small behavior change.Documentation, development tools, and required access are available; waiting time is tracked separately.Find the owning capability and its contracts, implement the change, and pass focused behavior and boundary checks.Proposed: complete within 5 working days; report active effort separately from access and review delays.Low

Scenario evaluation prompts

Plan a quality-scenario evaluation
Open in Cursor
Record quality-scenario evaluation evidence
Open in Cursor

Alignment and trade-offs

ConcernArchitectural positionScenario evidence still required
Correctness versus latencyCheckout uses authoritative basket and catalog facts; latency targets do not justify bypassing validation.Evaluate QS-01 with QS-12 and define explicit behavior when dependencies fail.
Durable work versus freshnessCatalog changes do not wait for search indexing; asynchronous work must converge after recovery.Approve freshness and backlog budgets and evaluate recovery under sustained outages in QS-07.
Retries versus duplicate effectsRetries preserve work but may repeat cleanup or provider submissions; exactly-once behavior is not assumed.Evaluate uncertain outcomes and duplicate handling in QS-02 and QS-08.
Independent release versus coordinationCompatible changes may be released independently; breaking changes require planned migration.Approve supported mixed-version windows and rollback criteria in QS-03 and QS-04.
Diagnosis versus privacyCorrelation supports diagnosis without retaining raw sensitive values.Approve retention and access controls and verify redaction in QS-06 and QS-10.
Availability versus recovery costInfrastructure configuration is not evidence that recovery objectives have been met.Run isolated drills and verify external dependency commitments for QS-13 and QS-14.
AI usefulness versus least privilegeModel workflows use explicit policies; denied tools and failed providers do not create fabricated outcomes.Evaluate policy coverage and provider failure behavior in QS-15.