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

Read the architecture guide →

Conversation architecture and boundaries

Workflow layers, session persistence tiers, governance controls, and domain boundaries for Chat API and MCP Tools.

Architecture

Purpose & Scope

This document defines the runtime workflow stages, three-tier session and memory model, governance controls, and cross-domain boundaries for Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs and MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs in 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 subdomain. Use it to verify where Conversational responsibilities start and end relative to CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...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, 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 ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs.

Visual Reference

The visual below shows how storefront chat requests traverse the API Gateway and Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs workflow layers to reach Microsoft Foundry, Chat 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 docs, Presidio APIServicev1.0.0Presidio APIExternal HTTP sidecar API for detecting PII in text and anonymizing detected entities in the Chat and Rating AI agent pi...SubscribesAnalyzeText, AnonymizeText +3APIsOpenAPIOwnerplatform-engineering-teamDiagramOpen docs, MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs, and 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.

Loading graph...

Conversational Workflow, Governance, and Integration Boundaries

Core Invariants & Design Rules

Warning

Tool governance is default-deny. Any new MCP tool, skill tool, Storefront UI tool, or handoff tool fails silently or returns a governance denial unless explicitly allowlisted for the calling agent identity, and qa-agent must remain explicitly denied access to Catalog tools.

Boundaries & Guarantees

ConcernStrategy & GuaranteeFailure / Edge-Case BehaviorRelated Resources
PersistenceAG-UI transcripts persist durably in chat-session-blob (ag-ui/ prefix) with claims-based per-user isolation; Foundry memory stores cross-session reading preferences by Entra ID subject; working file memory is container-local.Container restarts preserve AG-UI transcripts and Foundry preferences but discard ephemeral working file scratchpads unless backed by persistent storage.chat-session-blob, adr-006-user-scoped-episodic-and-semantic-memory
Caching & Transportmcp-server operates as a stateless Streamable HTTP (/mcp) adapter backed by catalog-api gRPC; chat-api exposes /ag-ui and /agents with PerUserRateLimit.Rate-limit exhaustion returns 429 Too Many Requests with Retry-After; missing Catalog attributes are reported as unavailable rather than guessed.mcp-server, adr-001-mcp-read-only-domain-adapter, adr-002-stateless-streamable-http-transport
Messaging & ProtocolsNo Kafka messaging; chat-api uses HTTP (/ag-ui), MCP Streamable HTTP (/mcp), and A2A gRPC (2m timeout with Entra Agent Identity token exchange to rating-api).Unavailable downstream MCP or A2A gRPC calls surface partial-evidence or fallback responses without fabricating catalog or review data.chat-api, rating-agent, adr-003-separate-interactive-and-agent-protocols
Concurrency & GovernancePer-user token-bucket rate limiting (30 token limit, 20 per 10s, queue 5) plus global concurrency limits; Presidio PII middleware redacts sensitive entities on specialist turns; conversation guardian bounds turns (30) and retry cycles (3).Guardrail, injection, or threshold violations short-circuit the turn with a structured rejection message before invoking specialist tools.presidio-api, adr-002-fail-closed-pii-middleware, adr-005-govern-agent-tools-per-agent

Safe Change & Verification Checklist

  • Preserve read-only boundaries across Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs and MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs; never introduce PostgreSQL, Redis, Kafka, or direct backend write clients.
  • Update per-agent governance allowlists whenever adding MCP, skill, harness, or Storefront UI tools, keeping qa-agent denied from Catalog tools.
  • Keep Presidio PII middleware, Entra ID customer authorization (chatting_read / chatting_write), claims-based session isolation, and Entra Agent Identity token exchange intact.
  • Verify prompt validation, routing thresholds (0.5 / 0.6), HITL disambiguation resume, specialist handoff preconditions, and session persistence in Chat unit tests via mise run test.