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

Read the architecture guide →

Risks and Technical Debt

Prioritized architectural exposures and known compromises with actionable treatment and closure evidence.

Architecture

This register separates uncertain future exposures from known compromises and missing verification, ranks them by likelihood and impact, and tracks mitigation through observable closure evidence. Review it when contracts, data ownership, security controls, or operational assumptions change; qualitative ratings are not risk acceptance.

Immediate attention

R-03: Confirm that every model and tool path enforces privacy and authorization controls; disable any path that fails verification.

R-01: Exercise duplicate delivery and timeout-after-side-effect cases; make uncertain outcomes visible and safe to reconcile.

R-02: Rehearse restoration and dependency-outage procedures for authoritative state before relying on recovery targets.

Architectural and operational risks

The likelihood and impact ratings are qualitative: H high, M medium, and L low. “Mitigating” means safeguards or treatment exist but closure evidence is incomplete.

IDRiskAffected Building Blocks / Quality GoalsLikelihood (H/M/L)Impact (H/M/L)Mitigation / ContingencyStatus
R-03A model integration or tool path may bypass privacy screening or authorization, exposing personal data or allowing an unapproved action and causing a privacy incident or loss of customer trust.Conversational, Reviews, MCP Tools; Security, Privacy, Correctness; QS-09, QS-10, QS-15MHInventory every model and tool path; verify least privilege, sensitive-data handling, and fail-closed behavior with synthetic fixtures. Disable a path that fails verification and use a non-AI fallback until corrected.Mitigating; full-path evidence open
R-01At-least-once delivery, retries, or ambiguous timeouts may repeat basket cleanup or external notification effects, creating duplicate customer-visible outcomes or difficult reconciliation.Ordering, Finance, Basket, Notification; Correctness, Reliability, Operability; QS-02, QS-08MHTest duplicate delivery and timeout-after-effect cases. Define idempotency per operation and surface uncertain outcomes. Reconcile before replay when the prior effect cannot be determined.Open
R-02A store, service, or external provider outage may exceed recovery expectations because availability, alerting, failover, and restore behavior have not been demonstrated under production-like conditions; recovery may lose data or prolong an outage.All service-owned stores, Platform, external providers; Reliability, Operability; QS-06, QS-13, QS-14MHRun isolated outage and restore drills for each authoritative store; measure recovery and data loss against approved targets. Maintain provider-specific recovery steps and degrade affected customer journeys when dependencies are unavailable.Open
R-05An undocumented consumer or semantic contract change may evade schema checks and break a dependent capability, causing failed requests or message processing.All contract producers and consumers; Interoperability, Deployability; QS-03, QS-04MHMaintain a producer-consumer inventory, review behavioral changes as well as schema changes, and require compatibility evidence before release. For a regression, roll back or use a staged version migration.Mitigating; unknown-consumer exposure remains
R-04A backlog or dependency outage may leave derived search or rating views stale after authoritative data changes, misleading discovery even though catalog data remains authoritative for purchase decisions.Catalog, Scheduler, Catalog Ingestion, Reviews; Correctness, Reliability, Performance; QS-07MMMeasure per-change projection lag, alert on growing backlog, and verify replay and rebuild behavior. Keep purchase decisions on authoritative catalog data; suppress or clearly degrade stale discovery results when needed.Mitigating; freshness target unapproved

Technical debt

These are known compromises or evidence gaps, not uncertain future events. Priority reflects the cost of leaving each item unresolved.

IDTechnical Debt ItemAffected ScopeBusiness / Technical ImpactRemediation PlanPriority
TD-01The duplicate-request guard does not make the complete checkout operation an atomic exactly-once transaction; a concurrent request or failure after key creation can leave an outcome requiring recovery.Ordering checkout and downstream effectsA retry may be blocked after incomplete work, or an ambiguous result may lead to repeated downstream effects.Document the actual guarantee; test concurrent requests and failures after request registration; choose and implement explicit recovery or compensation semantics. Link: Quality ScenariosCustom DocQuality ScenariosMeasurable runtime and change scenarios for BookWorm's quality requirements.Ownerarchitecture-enabling-teamOpen doc (QS-02).High
TD-02The production operations profile is incomplete: service-specific alerts, scaling limits, ingress protections, and store recovery procedures are not all finalized and rehearsed.Platform operations and service ownersIncidents may go undetected or take longer to contain and recover; configured infrastructure alone does not demonstrate readiness.Assign an owner to each operating control, finalize thresholds and runbooks, and rehearse the procedures in the target environment. Link: Quality ScenariosCustom DocQuality ScenariosMeasurable runtime and change scenarios for BookWorm's quality requirements.Ownerarchitecture-enabling-teamOpen doc (QS-06, QS-13, QS-14).High
TD-03Numerical quality budgets remain proposals rather than owner-approved service commitments.Product, service owners, and operationsTeams cannot consistently judge release readiness or resolve trade-offs against shared targets.Assign decision owners and approve or revise measurement conditions and thresholds before using them as release gates. Link: Quality ScenariosCustom DocQuality ScenariosMeasurable runtime and change scenarios for BookWorm's quality requirements.Ownerarchitecture-enabling-teamOpen doc (QS-04 through QS-17).Medium
TD-04No recorded pass/fail evaluation evidence exists for the quality scenario set under frozen conditions.All quality attributesArchitecture reviews cannot distinguish implemented mechanisms from demonstrated end-to-end outcomes.Evaluate scenarios by risk, record conditions and measured results, and track failures to an owner and retest trigger. Link: Quality ScenariosCustom DocQuality ScenariosMeasurable runtime and change scenarios for BookWorm's quality requirements.Ownerarchitecture-enabling-teamOpen doc (QS-01 through QS-17).High
TD-05Critical cross-service persistence workflows and the customer checkout journey lack sufficient automated integration and end-to-end verification.Ordering, Finance, Catalog, Shopping, and customer commerceRegressions across persistence, messaging, and customer-visible behavior may pass unit or contract checks.Add isolated integration coverage for checkout, saga, and persistence boundaries; add customer-journey and accessibility checks for checkout. Link: Quality ScenariosCustom DocQuality ScenariosMeasurable runtime and change scenarios for BookWorm's quality requirements.Ownerarchitecture-enabling-teamOpen doc (QS-01, QS-11, QS-12, QS-16).High
TD-06Older architecture records still describe persistence choices that have been superseded for Reviews, Finance, Notification, and Chat.Architecture records and operational guidanceContributors may follow obsolete ownership or recovery assumptions, resulting in incorrect changes or incident procedures.Mark superseded records clearly, link each to its current decision, and review related guidance when persistence changes. Reference: Architecture DecisionsCustom DocArchitecture DecisionsNavigable register of whole-system and capability-specific architecture decisions.Ownerarchitecture-enabling-teamOpen doc.Medium

Known Contract and Runtime Quirks

Concrete contract/runtime mismatches discovered during post-rewrite catalog verification. Service-level engineering invariants and workarounds live alongside each owning service.

IDQuirk / MismatchAffected ResourcesImpactRemediation Direction
TD-07Image upload pre-processor expects a different multipart field shape than the endpoint validator under certain payloads.Create bookCommandv1.0.0Create bookCreates a book listing and returns its generated UUID.Ownercatalog-experience-teamSchemaDiagramOpen docs, Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docsValid client uploads may fail validation unexpectedly.Align pre-processor binding and endpoint validation rules; add contract regression tests.
TD-08Publisher creation and update enforce inconsistent maximum name lengths.Create publisherCommandv1.0.0Create publisherCreates a publisher in the Catalog.Ownercatalog-experience-teamSchemaDiagramOpen docs, Update publisherCommandv1.0.0Update publisherUpdates an existing publisher in the Catalog.Ownercatalog-experience-teamSchemaDiagramOpen docs, Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docsNames accepted on creation can be rejected on update.Unify max-length constraints across create/update validators.
TD-09Creating a buyer with an existing identifier surfaces a database duplicate-key violation as 500 instead of 409.Create buyerCommandv1.0.0Create buyerCreates a Buyer profile for the authenticated customer from the supplied address.Ownercommerce-fulfillment-teamSchemaDiagramOpen docs, Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docsClients treat 500 as transient and retry instead of reconciling existing buyer state.Map duplicate-key exceptions to 409 Conflict ProblemDetails.
TD-10Get basket over gRPCQueryv1.0.0Get basket over gRPCReturns the current basket through the basket.v1 gRPC contract.Ownercommerce-fulfillment-teamSchemaDiagramOpen docs returns an empty basket rather than NotFound, and checkout does not reject an empty item list.Create orderCommandv1.0.0Create orderCreates an Order for the authenticated Buyer using the current basket and Catalog pricing.Ownercommerce-fulfillment-teamSchemaDiagramOpen docs, Get basket over gRPCQueryv1.0.0Get basket over gRPCReturns the current basket through the basket.v1 gRPC contract.Ownercommerce-fulfillment-teamSchemaDiagramOpen docs, Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs, Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docsEmpty baskets can persist as 201 Created orders with zero line items.Reject empty-item checkouts with 400 Bad Request before persistence.
TD-11Deleting a buyer with existing orders triggers an ON DELETE SET NULL foreign-key conflict against non-nullable buyer_id.Delete buyerCommandv1.0.0Delete buyerDeletes a Buyer profile by identifier; the operation is restricted to administrators.Ownercommerce-fulfillment-teamSchemaDiagramOpen docs, Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docsBuyer deletion fails at runtime when historical orders exist.Enforce explicit pre-check (409 Conflict) or soft-delete semantics before persistence.
TD-12OpenAPI metadata declares 404 as application/problem+json, while runtime returns application/json.Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs, Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs, Rating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs, Delete feedbackCommandv1.0.0Delete feedbackDeletes an existing feedback record by its UUID.Ownercatalog-experience-teamSchemaDiagramOpen docsStrict schema-validating clients may fail to parse 404 error bodies.Standardize 404 responses on RFC 9457 application/problem+json (see ADR-BW-011: Reuse request validation and structured HTTP errorsDecision Recordv1.0.0ADR-BW-011: Reuse request validation and structured HTTP errorsValidate applicable requests before handlers and expose predictable HTTP problem responses without leaking internal exce...Ownerarchitecture-enabling-teamOpen docs).

Review and acceptance

  • Reassess likelihood and impact when new evidence changes an assumption; do not lower a rating solely because a safeguard has been configured.
  • Close a risk only when its mitigation evidence is recorded or an accountable decision-maker accepts the residual exposure with a review date.
  • Reprioritize debt when customer impact, operational exposure, or the cost of remediation changes.

Changelog

  • Rewrote index.mdx to rank assessable architectural risks separately from known technical debt, add impacts and actionable treatments, and define closure evidence.