Quality Scenarios
Measurable runtime and change scenarios for BookWorm's quality requirements.
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.
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
| ID | Quality Attribute | Stimulus (Trigger) | Context / Environment | Expected Response | Measurable Metric | Priority |
|---|---|---|---|---|---|---|
| QS-01 — Authoritative purchase | Correctness | A 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 outcomes | Correctness | Basket 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 diagnosis | Operability | An 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 freshness | Reliability | A 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 delivery | Reliability | The 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 boundaries | Security | A 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 minimization | Security and privacy | A 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 feedback | Usability | A 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 load | Performance | A 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 availability | Reliability | Synthetic 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 state | Reliability | A 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 execution | Security and privacy | A 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 journey | Usability and accessibility | A 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
| ID | Quality Attribute | Stimulus (Trigger) | Context / Environment | Expected Response | Measurable Metric | Priority |
|---|---|---|---|---|---|---|
| QS-03 — Compatible contracts | Interoperability | A 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 release | Deployability | A 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 change | Maintainability | A 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 onboarding | Maintainability | A 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
For the selected BookWorm quality scenario, prepare a verification plan using synthetic data in an
isolated environment. Record the software versions, environment, data set, workload, dependency
health, and active governance policies. Define the measurement boundary: checkout ends when the
order is persisted, search freshness ends when the updated revision is queryable, and notification
evidence ends at provider acceptance. Specify the per-operation and per-customer-path percentiles
and error rates to collect, the failures that count against the metric, and the persisted side
effects or asynchronous states to verify. Do not claim exactly-once behavior or promote proposed
targets to approved commitments.For the selected BookWorm quality scenario, prepare a verification plan using synthetic data in an isolated environment. Record the software versions, environment, data set, workload, dependency health, and active governance policies. Define the measurement boundary: checkout ends when the order is persisted, search freshness ends when the updated revision is queryable, and notification evidence ends at provider acceptance. Specify the per-operation and per-customer-path percentiles and error rates to collect, the failures that count against the metric, and the persisted side effects or asynchronous states to verify. Do not claim exactly-once behavior or promote proposed targets to approved commitments.
Create an evaluation record for the selected quality scenario with these fields: scenario ID and
owner; target approval status; evaluation date; frozen conditions and workload; measured result
against the stated metric; sanitized evidence; known gaps; follow-up owner; and the event that
should trigger re-evaluation. Report timeouts, incorrect results, and dependency outages as
failures wherever the scenario requires them. Use only synthetic data and exclude sensitive values
from the record.Create an evaluation record for the selected quality scenario with these fields: scenario ID and owner; target approval status; evaluation date; frozen conditions and workload; measured result against the stated metric; sanitized evidence; known gaps; follow-up owner; and the event that should trigger re-evaluation. Report timeouts, incorrect results, and dependency outages as failures wherever the scenario requires them. Use only synthetic data and exclude sensitive values from the record.
Alignment and trade-offs
| Concern | Architectural position | Scenario evidence still required |
|---|---|---|
| Correctness versus latency | Checkout 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 freshness | Catalog 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 effects | Retries 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 coordination | Compatible 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 privacy | Correlation supports diagnosis without retaining raw sensitive values. | Approve retention and access controls and verify redaction in QS-06 and QS-10. |
| Availability versus recovery cost | Infrastructure 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 privilege | Model workflows use explicit policies; denied tools and failed providers do not create fabricated outcomes. | Evaluate policy coverage and provider failure behavior in QS-15. |
Related architecture documentation
- Quality GoalsCustom DocQuality GoalsPrioritized, scenario-based quality goals for BookWorm and the current status of their acceptance targets.Ownerarchitecture-enabling-teamOpen doc — Prioritized quality goals.
- Solution StrategyCustom DocSolution StrategyExecutive summary of the architectural decisions that satisfy BookWorm's quality goals and constraints.Ownerarchitecture-enabling-teamOpen doc — Architectural approaches addressing those goals.
- Risks and Technical DebtCustom DocRisks and Technical DebtPrioritized architectural exposures and known compromises with actionable treatment and closure evidence.Ownerarchitecture-enabling-teamOpen doc — Open exposures and verification gaps.