ADR-001: Keep conversational orchestration within the Chat System
The Chat System owns request validation, local specialist handoffs, and response formatting while business records remain in their owning domains.
1. Context & Problem
BookWorm needs a conversational entry point for book discovery and store-support questions without turning the AI workflow into the owner of CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs, ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs, BasketEntityv1.0.0BasketCustomer-scoped, mutable pre-order collection of requested books and quantities managed prior to checkout.Ownercommerce-fulfillment-teamOpen docs, or OrderEntityv1.0.0OrderDurable purchase record owned by a Buyer, capturing immutable purchase-time line items and governing order lifecycle tra...Ownercommerce-fulfillment-teamOpen docs data. Routing every customer inquiry through one general-purpose assistant would also blur specialist responsibilities and make it much harder to constrain which tools and data each question can access.
The request path therefore needs explicit architectural boundaries separating input screening, specialist selection, output formatting, and the core business domains that own the underlying facts and transactions.
2. Business Value
- Protects system-of-record integrity: Keeps product facts, customer reviews, baskets, and orders under their owning domains so conversational replies never create competing sources of truth or unapproved state changes.
- Enables independent delivery: Allows routing rules, validation checks, and response formatting to evolve without coupling to CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs, ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs, ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs, or OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs release cycles.
- Improves safety and least-privilege control: Restricts each specialist assistant to the approved read capabilities and context required for its job.
- Sets clear expectations: Ensures neither customers nor teams mistake a conversational answer for confirmation that a basket, order, review, or catalog record was created or changed.
3. How It Works
Chat SystemSystemv1.0.0Chat SystemInternal system that hosts BookWorm's conversational workflow and specialist AI agents for customer support and catalog-...Ownerai-capabilities-teamDiagramRepositoryOpen docs owns and coordinates the full interactive conversational workflow:
- Input screening: Incoming messages are checked upfront—rejecting empty or suspicious inputs and bounding oversized messages before routing begins.
- Specialist routing: A dedicated routing step directs book requests (and review requests without a specific book identifier) to Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs, store-policy and service questions to QA AgentAgentv1.0.0QA AgentRead-only customer support and store-policy specialist that answers operational, shipping, returns, account, and billing...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs, and review or rating requests with an already identified book to Rating AgentAgentv1.0.0Rating AgentRead-only review intelligence specialist that summarizes customer feedback over A2A gRPC and map-reduce workflows while ...PublishesAnalyzeText, AnonymizeTextOwnercatalog-experience-teamDiagramRepositoryOpen docs.
- Delegated book research: For complex book inquiries, Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs may delegate independent research tasks to 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 docs and 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 docs before synthesizing a reply.
- Centralized formatting: Final assistant replies pass through a shared formatting step before delivery.
- Read-only domain assistance: Chat provides guidance, not business transactions. CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs remains the source of truth for book facts, ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs owns individual feedback, and ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs and OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs own their respective business state. Assistants use only approved read capabilities and never mutate those records.
4. Trade-offs & Lessons Learned
Operational & Governance Consequences
- Cross-stage alignment: Screening, routing, handoffs, delegation, and formatting are separate responsibilities that must be kept aligned whenever routing behavior changes.
- Explicit grounding: Specialists must rely on owning systems and approved interfaces for business facts, clearly distinguishing unavailable details from verified information.
- Explicit authorization for future state changes: Any future capability that reads or modifies protected business state requires an explicit ownership and authorization decision—it must never be added implicitly through a general-purpose assistant.
Alternatives Considered
- Route every request to one general-purpose agent: Would reduce orchestration structure, but would combine unrelated support and catalog duties and make it harder to limit capabilities per request type.
- Let Chat own or mutate the business records it discusses: Could make conversations appear self-contained, but would duplicate domain rules and create competing sources of truth. Mutations belong behind owning systems’ contracts and authorization checks.
- Allow each specialist to handle all user-facing workflow stages: Would couple input acceptance, routing, and formatting to individual agent instructions instead of keeping cross-cutting stages explicit and independent.
5. Technical Reference
- Decision status:
accepted(2026-11-04) - Orchestration composition: Chat SystemSystemv1.0.0Chat SystemInternal system that hosts BookWorm's conversational workflow and specialist
AI agents for customer support and catalog-...Ownerai-capabilities-teamDiagramRepositoryOpen docs composes input validation,
DecisionRouterExecutorrouting (viaMicrosoft-Decision-1), specialist sub-workflows for Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs, QA AgentAgentv1.0.0QA AgentRead-only customer support and store-policy specialist that answers operational, shipping, returns, account, and billing...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs, and Rating AgentAgentv1.0.0Rating AgentRead-only review intelligence specialist that summarizes customer feedback over A2A gRPC and map-reduce workflows while ...PublishesAnalyzeText, AnonymizeTextOwnercatalog-experience-teamDiagramRepositoryOpen docs, delegated researchers (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 docs and 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 docs), and response formatting within the interactive AG-UI workflow. - Domain ownership boundaries: CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs (book facts), ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs (individual feedback), ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs (BasketEntityv1.0.0BasketCustomer-scoped, mutable pre-order collection of requested books and quantities managed prior to checkout.Ownercommerce-fulfillment-teamOpen docs state), and OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs (OrderEntityv1.0.0OrderDurable purchase record owned by a Buyer, capturing immutable purchase-time line items and governing order lifecycle tra...Ownercommerce-fulfillment-teamOpen docs state).