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
| Concept | Core Rule / Principle | Affected Building Blocks | Related 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 doc | Authenticate every trust boundary; authorize explicitly; minimize and protect data. | Edge and frontends, capability APIs, AI workflows, operations | Identity, data protection, confidentiality |
| Contracts and MessagingCustom DocContracts and MessagingOwned APIs and events connect independently maintained BookWorm capabilities without sharing business state.Ownerplatform-engineering-teamOpen doc | Communicate through owned, versioned contracts and tolerate at-least-once delivery. | Every capability, integration edge, messaging infrastructure | Interoperability, 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 doc | Reject invalid work at boundaries and bound all retryable operations. | Public APIs, workers, external integrations | Robustness, availability, recoverability |
| ObservabilityCustom DocObservabilityShared structured logging, OpenTelemetry signals, and health checks support diagnosis across BookWorm services.Ownerplatform-engineering-teamOpen doc | Produce correlated telemetry and prove health from signals, not assumptions. | Frontends, APIs, workers, AI and data pipelines | Traceability, operability, diagnosability |
| AI GovernanceCustom DocAI GovernanceInput screening, privacy middleware, policy enforcement, and tool boundaries for BookWorm's AI workflows.Ownerai-capabilities-teamOpen doc | Apply privacy, policy, identity, and human decision controls before AI actions. | Conversational discovery, review intelligence, tool catalog | Responsible 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 doc | Require evidence from every change and make releases reversible. | Shared foundations, every capability, frontends | Testability, 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
- Preserve domain ownership. A shared library may provide technical primitives, but it must not own business data or replace an authoritative capability.
- Separate acknowledgment from completion. A successful network call or broker acceptance proves only that the handoff occurred, not that downstream work finished correctly.
- Design for explicit opt-in. Identity, resilience, privacy, and governance behavior must be visible in service configuration and tested at the relevant boundary.
- Prefer reversible evolution. Additive contract changes, staged rollouts, and retained observability reduce the cost of a correction.
Related Views
- Building Block ViewCustom DocBuilding Block ViewStatic decomposition of BookWorm into owned business capabilities, services, and shared foundations.Ownerarchitecture-enabling-teamOpen doc — Building-block ownership and boundaries.
- Runtime ViewCustom DocRuntime ViewRepresentative BookWorm runtime scenarios across commerce, discovery, customer feedback, and platform operations.Ownerarchitecture-enabling-teamOpen doc — End-to-end interactions governed by these concepts.
- Architecture DecisionsCustom DocArchitecture DecisionsNavigable register of whole-system and capability-specific architecture decisions.Ownerarchitecture-enabling-teamOpen doc — Decisions that constrain these policies.