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

Read the architecture guide →

Internal system that hosts BookWorm's conversational workflow and specialist AI agents for customer support and catalog-backed book discovery.

Internal

System Purpose & Boundary

The Chat System delivers BookWorm’s interactive conversational assistant and multi-agent orchestration within the ConversationalDomainv1.0.0ConversationalRoutes BookWorm customer requests through privacy-filtered AI agents for catalog-backed book discovery and read-only sto...Ownerai-capabilities-teamDiagramOpen docs domain. It serves Customers seeking store-policy answers, catalog-backed book discovery, personalized recommendations, and review insights. Modifying shopping baskets (ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs), placing or mutating orders (OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs), and persisting customer reviews (ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs) are explicitly out of scope—the system operates strictly as a read-only advisor.

Warning

All conversational inputs and outputs pass through fail-closed PII detection and anonymization in Data PrivacySystemv1.0.0Data PrivacyExternal Presidio system that detects and anonymizes personally identifiable information in the Reviews feedback-summari...Ownerplatform-engineering-teamDiagramOpen docs. Streaming replies are buffered until privacy screening succeeds; if privacy screening is unavailable, the turn fails rather than bypassing redaction.

Contained Capabilities

Service / AgentRole in SystemPrimary Data StoreInteraction Style (Sync / Async)
Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docsHosts the interactive AG-UI conversational workflow, routing, safety validation, and agent discoveryChat Session Blob StorageContainerv1.0.0Chat Session Blob StorageAuthoritative Azure Blob Storage container owned by the Conversational bounded context for durable AG-UI multi-turn chat...Ownerai-capabilities-teamDiagramOpen docsSync (HTTP / Streaming)
QA AgentAgentv1.0.0QA AgentRead-only customer support and store-policy specialist that answers operational, shipping, returns, account, and billing...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docsAnswers store policy and general service questions from approved policy contextChat Session Blob StorageContainerv1.0.0Chat Session Blob StorageAuthoritative Azure Blob Storage container owned by the Conversational bounded context for durable AG-UI multi-turn chat...Ownerai-capabilities-teamDiagramOpen docsSync (In-process)
Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docsCoordinates book search, catalog details, recommendations, and feedback discussionsChat Session Blob StorageContainerv1.0.0Chat Session Blob StorageAuthoritative Azure Blob Storage container owned by the Conversational bounded context for durable AG-UI multi-turn chat...Ownerai-capabilities-teamDiagramOpen docsSync (In-process + MCP / A2A)
Book Catalog ResearcherAgentv1.0.0Book Catalog ResearcherInternal delegated subagent that performs low-temperature factual catalog lookups for the Book Agent and never communica...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docsInvestigates catalog-backed book, author, and category factsNone (Stateless)Sync (In-process + MCP)
Book Recommendation ResearcherAgentv1.0.0Book Recommendation ResearcherInternal delegated subagent that curates catalog-verified book shortlists matching customer preferences for the Book Age...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docsBuilds catalog-backed book shortlists tailored to stated reader preferencesNone (Stateless)Sync (In-process + MCP)

External Interactions & Trust Boundaries

System Visualizations

System Context

Component Topology

Architecture Decisions

Architecture Decision Records (9)

Decisions that apply to this Chat System. Search, filter by status, or sort by clicking a column.
Summary
ADR-007: Use Microsoft Decision-1 for Chat routing, safety gating, and tool selectionAcceptedNov 20, 2026Replaces the generative router agent with a provider-agnostic IDecisionClient backed by Microsoft-Decision-1 for single-pass routing, safety gating, and per-turn tool selection.
ADR-BW-014: Compose shared governance on each enabled AI pathProposedNov 7, 2026Reuse privacy, guardrail, and policy mechanisms across Chat and Rating while verifying registration and permissions on each model and tool path.
ADR-006: Add user-scoped episodic and semantic memory to BookAgentProposedNov 5, 2026Proposes private, cross-session memory so BookAgent can use past book discussions and stated reading preferences, while giving users control over stored information.
ADR-001: Keep conversational orchestration within the Chat SystemAcceptedNov 4, 2026The Chat System owns request validation, local specialist handoffs, and response formatting while business records remain in their owning domains.
ADR-002: Apply PII filtering to agent input and outputAcceptedNov 4, 2026Chat agents use Presidio middleware to analyze and anonymize sensitive text, and privacy-processing failures are not bypassed.
ADR-002: Use stateless Streamable HTTP for MCP transportAcceptedNov 4, 2026MCP clients communicate with the server over stateless Streamable HTTP, keeping protocol transport independent of client session persistence.
ADR-003: Separate interactive chat from agent-to-agent protocolsAcceptedNov 4, 2026Chat exposes AG-UI for the composed customer workflow and A2A endpoints for agents that explicitly register an A2A server.
ADR-004: Keep Chat workflow sessions in memoryAcceptedNov 4, 2026The Chat workflow uses an in-memory session store and does not treat conversation history as durable business data.
ADR-005: Grant tools according to each agent's responsibilityAcceptedNov 4, 2026Chat agents receive only the MCP tools or delegated capabilities needed for their role, with governance policies limiting tool use.
  • Chat Agent OrchestrationFlowv1.0.0Chat Agent OrchestrationA customer submits a conversational request through Storefront; Chat API screens input, routes via a non-LLM classifier ...Ownerai-capabilities-teamView flowOpen docs — End-to-end conversational routing and specialist handoff flow.
  • domains/bookworm/subdomains/conversational/engineering/01-conversation-architecture — Conversational workflow architecture and governance boundaries.
  • domains/bookworm/subdomains/conversational/guides/01-route-customer-requests — Request routing and scope enforcement guide.
  • domains/bookworm/subdomains/conversational/guides/02-handle-book-discovery — Catalog-backed book discovery guide.