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

Read the architecture guide →

Agent and workflow change checklist

Pre-merge engineering checklist for Conversational agents, routing guardrails, governance policies, and MCP/A2A contracts.

Architecture

Purpose & Scope

This checklist defines the mandatory pre-merge verification steps for engineers modifying Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen 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, or any specialist agent 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 whenever changing agent instructions, routing thresholds, governance policies, MCP tool signatures, or A2A gRPC integrations.

Core Invariants & Design Rules

Warning

Governance rules default to deny. Adding a tool to an agent prompt or 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 without updating the corresponding agent’s governance allowlist will silently block or reject tool execution at runtime.

Boundaries & Guarantees

ConcernStrategy & GuaranteeFailure / Edge-Case BehaviorRelated Resources
PersistenceAG-UI sessions persist in chat-session-blob (ag-ui/) per Entra ID user; Foundry memory stores reading preferences; local file memory is ephemeral.Session blobs survive container restarts; local research scratchpads do not.chat-session-blob, adr-006-user-scoped-episodic-and-semantic-memory
Caching & Contractsmcp-server tool schemas (search_catalog, get_book, list_categories, list_authors) must stay aligned with agent definitions and catalog-api gRPC contracts.Schema drift between mcp-server and agent definitions breaks tool invocation or degrades research synthesis.mcp-server, adr-004-use-domain-apis-as-mcp-backends
Messaging & ProtocolsHandoff to rating-agent uses A2A gRPC (2m timeout, Entra Agent Identity token exchange); Storefront UI tools execute client-side with user confirmation.Unresolved book IDs must block Book -> Rating handoff; Rating remains terminal with no back-handoff.chat-api, rating-agent, adr-003-separate-interactive-and-agent-protocols
Concurrency & GovernanceInput truncation (> 2000 → 1900), decision guardrails (< 0.5 reject, < 0.6 HITL pause), Presidio PII redaction, and PerUserRateLimit protect every turn.Multi-turn injection patterns or turn/retry limits (30 turns / 3 retries) halt execution safely before tool misuse.presidio-api, adr-002-fail-closed-pii-middleware, adr-005-govern-agent-tools-per-agent

Safe Change & Verification Checklist

Pre-merge verification workflow

  1. Audit workflow layer & boundary impact

    Confirm whether the change affects input validation, decision routing/disambiguation, specialist sub-workflows, or response formatting, and verify no backend write clients or databases were introduced.

  2. Update governance allowlists & PII/auth middleware

    Add explicit allow rules in the agent governance policy for any new tools, preserve qa-agent Catalog tool denials, and keep Presidio PII middleware, Entra ID customer authorization, and PerUserRateLimit active.

  3. Verify MCP Tools & Rating A2A contracts

    Confirm 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 tool signatures match specialist definitions 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 A2A gRPC token exchange remains intact.

  4. Validate routing, handoff, and session test cases

    Run mise run format, mise run build, and mise run test to verify input validation, decision thresholds (0.5 / 0.6), HITL resume normalization, handoff preconditions, formatting fallbacks, and 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 round-trips.