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

Read the architecture guide →

Read-only review intelligence specialist that summarizes customer feedback over A2A gRPC and map-reduce workflows while leaving final quality tier classification to deterministic service logic.

Microsoftmodel-routerAI Agent

Role & Autonomy Boundary

Rating Agent is the read-only review analysis and quality-signal specialist hosted inside 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 in the Reviews bounded context. It is triggered through two runtime paths: remote Agent-to-Agent (A2A) gRPC handoffs from Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs (routed or handed off from 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), 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‘s in-process map-reduce summarization pipeline backing Summarize feedbackQueryv1.0.0Summarize feedbackReturns a generated feedback summary, classification, rating metrics, evidence, and confidence for a book.Ownercatalog-experience-teamSchemaDiagramOpen docs.

Rating Agent never writes to Rating DatabaseContainerv1.0.0Rating DatabaseAuthoritative Azure Cosmos DB system of record owned by the Reviews bounded context for customer feedback documents part...Ownercatalog-experience-teamDiagramOpen docs or Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs, never executes destructive queries, and never assigns final quality tiers—classifications (No Data, Bad, Good, Top Rated) are computed deterministically by service code rather than the language model.

Agent Profile & Model Governance

PropertyValue
Bounded Context / DomainReviews (BookWormDomainv1.0.0BookWormCore e-commerce domain for the BookWorm online bookstore, coordinating catalog discovery, customer baskets, order fulfil...Ownerarchitecture-enabling-teamDiagramRepositoryOpen docs)
Owner TeamCatalog Experience TeamTeamCatalog Experience TeamStream-Aligned team owning BookWorm's product catalog, customer reviews, and storefront/backoffice discovery experience....Open docs, Catalog Experience TeamTeamCatalog Experience TeamStream-Aligned team owning BookWorm's product catalog, customer reviews, and storefront/backoffice discovery experience....Open docs
Hosting ServiceRating 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
LLM Provider & ModelMicrosoft Foundry model-router (2025-11-18; temperature: 0.4, maxOutputTokens: 1500, reasoningEffort: medium)
Interaction ProtocolRemote A2A gRPC server (rating_read policy, Entra Agent Identity); in-process workflow invocation; MCP Streamable HTTP (outbound to 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)
Memory / Context ScopeStateless per-request with four-stage context compaction; summarized results cached by 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 in Rating CacheContainerv1.0.0Rating CacheNon-authoritative FusionCache and Redis caching layer owned by the Reviews bounded context for AI-generated book feedbac...Ownercatalog-experience-teamDiagramOpen docs
Fallback BehaviorRe-runs reduction up to configured iteration limits when confidence is low; fails closed on PII or write-policy violations

Tools & Capabilities

NameTypeDescriptionURL
GetCustomerReviewsfunctionRead-only in-process lookup returning raw customer reviews (review ID, rating, comment) for a book; rate-limited to 30 calls per minute.-
get_bookMCPRetrieves catalog book metadata (title, authors, category, price, average rating, total reviews) from the MCP Server before fetching reviews.-
Capability / ToolAccess LevelTarget ResourceGuardrail / Constraint
GetCustomerReviewsReadRating DatabaseContainerv1.0.0Rating DatabaseAuthoritative Azure Cosmos DB system of record owned by the Reviews bounded context for customer feedback documents part...Ownercatalog-experience-teamDiagramOpen docsRead-only partition query; rate-limited to 30/minute by governance policy
get_bookReadMCP 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 docsAlways invoked before GetCustomerReviews to refresh catalog metadata and review counts

Data, Messaging & Handoff Boundaries

  1. Partition and map review batches

    For Summarize feedbackQueryv1.0.0Summarize feedbackReturns a generated feedback summary, classification, rating metrics, evidence, and confidence for a book.Ownercatalog-experience-teamSchemaDiagramOpen docs, the summarization workflow partitions customer reviews into bounded batches and fans out parallel structured summarization calls to Rating Agent.

  2. Reduce and assess quality signals

    A reduce stage merges batch outputs into unified sentiment, recurring themes, strengths, weaknesses, and confidence-scored quality signals, repeating reduction if confidence falls below threshold.

  3. Apply deterministic tier classification

    Deterministic service logic evaluates review count, average rating, and dominant negative pattern flags to assign No Data, Bad, Good, or Top Rated—never delegated to the LLM.

Safety, Privacy & AI Governance

  • Fail-Closed PII Redaction: 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 (AnalyzeText and AnonymizeText) screens model inputs and outputs alongside regex PII patterns (email, phone, credit_card), ensuring reviewer personal details are masked before reaching the model or caller.
  • Default-Deny & Write Protection: High-priority governance rules (block-write-operations, block-destructive-sql) block all mutations and non-SELECT SQL patterns, while capping GetCustomerReviews at 30/minute.
  • Dual Output Guardrails: Combines shared prompt/response guardrails with Rating-specific output checks across both buffered and streaming responses.
  • Four-Stage Context Compaction: Applies tool-result compaction (> 20 messages), LLM summarization (> 3,000 tokens), sliding window (> 12 turns), and hard truncation (> 24,000 tokens) to prevent context overflow on large review sets.
Warning

Rating Agent is explicitly instructed never to emit a final quality classification or equate review counts with sales volume. All write operations are denied by policy, and final quality tiers are always computed deterministically outside the model.

Architecture Visualizations

Review Intelligence Invocation and Data Boundary

Loading graph...