Agent and workflow change checklist
Pre-merge engineering checklist for Conversational agents, routing guardrails, governance policies, and MCP/A2A contracts.
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
- Preserve domain ownership: Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs, Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs, Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-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 remain the sole authoritative owners of catalog, basket, order, and FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs state.
- Grounding & uncertainty: 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, 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 must cite only 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 results and report missing prices, availability, or ratings as unavailable rather than guessing.
- Inline sentiment without persistence: Emotional book feedback is handled inline by 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 without adding a separate sentiment agent or implying that a Reviews FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs record was persisted.
- Policy-only support: 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 must answer strictly from static store-policy guidance and never claim live access to customer accounts, baskets, or orders.
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
| Concern | Strategy & Guarantee | Failure / Edge-Case Behavior | Related Resources |
|---|---|---|---|
| Persistence | AG-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 & Contracts | mcp-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 & Protocols | Handoff 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 & Governance | Input 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
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.
Update governance allowlists & PII/auth middleware
Add explicit allow rules in the agent governance policy for any new tools, preserve
qa-agentCatalog tool denials, and keep Presidio PII middleware, Entra IDcustomerauthorization, andPerUserRateLimitactive.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.
Validate routing, handoff, and session test cases
Run
mise run format,mise run build, andmise run testto 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.
Related Resources
- Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs — Conversational workflow host
- 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 — Read-only Catalog MCP server
- 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, 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 — Primary conversational specialists
- 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 orchestration flow
- ADR-001: Keep conversational orchestration within the Chat SystemDecision Recordv1.0.0ADR-001: Keep conversational orchestration within the Chat SystemThe Chat System owns request validation, local specialist handoffs, and response formatting while business records remai...Ownerai-capabilities-teamOpen docs, ADR-005: Grant tools according to each agent's responsibilityDecision Recordv1.0.0ADR-005: Grant tools according to each agent's responsibilityChat agents receive only the MCP tools or delegated capabilities needed for their role, with governance policies limitin...Ownerai-capabilities-teamOpen docs, ADR-007: Use Microsoft Decision-1 for Chat routing, safety gating, and tool selectionDecision Recordv1.0.0ADR-007: Use Microsoft Decision-1 for Chat routing, safety gating, and tool selectionReplaces the generative router agent with a provider-agnostic IDecisionClient backed by Microsoft-Decision-1 for single-...Ownerai-capabilities-teamOpen docs