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

Read the architecture guide →

Crosscutting Concepts

Shared security, integration, resilience, observability, AI governance, and verification practices across BookWorm.

Architecture

These concepts establish conceptual integrity and uniform rules across every building block. They define the minimum trust, compatibility, failure, diagnostic, and delivery expectations that domain-specific designs and runtime scenarios must satisfy.

Concept Index

ConceptCore Rule / PrincipleAffected Building BlocksRelated ADRs / Quality Goals
Security and PrivacyCustom DocSecurity and PrivacyIdentity, authorization, and sensitive-data protections at BookWorm's API, AI, and logging boundaries.Ownerplatform-engineering-teamOpen docAuthenticate every trust boundary; authorize explicitly; minimize and protect data.Edge and frontends, capability APIs, AI workflows, operationsIdentity, data protection, confidentiality
Contracts and MessagingCustom DocContracts and MessagingOwned APIs and events connect independently maintained BookWorm capabilities without sharing business state.Ownerplatform-engineering-teamOpen docCommunicate through owned, versioned contracts and tolerate at-least-once delivery.Every capability, integration edge, messaging infrastructureInteroperability, evolvability, reliability
Validation, Errors, and ResilienceCustom DocValidation, Errors, and ResilienceShared request validation, HTTP error mapping, and capability-specific retry and duplicate-request behavior.Ownerplatform-engineering-teamOpen docReject invalid work at boundaries and bound all retryable operations.Public APIs, workers, external integrationsRobustness, availability, recoverability
ObservabilityCustom DocObservabilityShared structured logging, OpenTelemetry signals, and health checks support diagnosis across BookWorm services.Ownerplatform-engineering-teamOpen docProduce correlated telemetry and prove health from signals, not assumptions.Frontends, APIs, workers, AI and data pipelinesTraceability, operability, diagnosability
AI GovernanceCustom DocAI GovernanceInput screening, privacy middleware, policy enforcement, and tool boundaries for BookWorm's AI workflows.Ownerai-capabilities-teamOpen docApply privacy, policy, identity, and human decision controls before AI actions.Conversational discovery, review intelligence, tool catalogResponsible AI, privacy, human oversight
Testing and Change SafetyCustom DocTesting and Change SafetyLayered tests and schema checks protect BookWorm behavior, service boundaries, and contract compatibility.Ownerarchitecture-enabling-teamOpen docRequire evidence from every change and make releases reversible.Shared foundations, every capability, frontendsTestability, deployability, change safety
Info

Shared mechanisms are defaults, not implicit guarantees. A team must explicitly register and verify every control on the host or boundary that uses it.

Conceptual Integrity Rules

  1. Preserve domain ownership. A shared library may provide technical primitives, but it must not own business data or replace an authoritative capability.
  2. Separate acknowledgment from completion. A successful network call or broker acceptance proves only that the handoff occurred, not that downstream work finished correctly.
  3. Design for explicit opt-in. Identity, resilience, privacy, and governance behavior must be visible in service configuration and tested at the relevant boundary.
  4. Prefer reversible evolution. Additive contract changes, staged rollouts, and retained observability reduce the cost of a correction.