Change checklist
Pre-merge engineering checklist for Catalog API, schema, caching, search, and integration contract changes.
Purpose & Scope
This checklist defines the mandatory verification steps for engineers modifying 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 or Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs within the CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs subdomain. Use it before merging changes to HTTP v1 endpoints, gRPC contracts, Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs schemas, Catalog CacheContainerv1.0.0Catalog CacheNon-authoritative FusionCache and Redis caching layer owned by the Catalog bounded context for fast book detail lookups ...Ownercatalog-experience-teamDiagramOpen docs keys, Catalog VectorContainerv1.0.0Catalog VectorNon-authoritative Qdrant vector search index owned by the Catalog bounded context for hybrid semantic and keyword book d...Ownercatalog-experience-teamDiagramOpen docs indexing, or Kafka integration events.
Core Invariants & Design Rules
- Backward-compatible contract evolution: Keep REST (
/api/v1/{books,authors,categories,publishers}), gRPC (book.v1.BookGrpcService), and CloudEvents schemas additive; version breaking changes explicitly underApiVersionsor a new protobuf package version. - Authorization & rate-limit boundaries: Preserve Microsoft Entra ID policies (
catalog_readdefault,business_userfor catalog mutations,adminfor dashboard and privileged routes) and endpoint rate-limiting middleware. - End-to-end traceability: Keep book-identity, pricing, and availability mutations traceable by
BookIdin OpenTelemetry traces and structured logs. - No direct cross-domain writes: Never allow external services to write to Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs, and never bypass 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 when mutating catalog state.
Checked-in OpenAPI and SQL schema documentation assets in the catalog are not auto-regenerated by CI. Update them in the same pull request whenever HTTP contracts 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 tables change.
Boundaries & Guarantees
| Concern | Strategy & Guarantee | Failure / Edge-Case Behavior | Related Resources |
|---|---|---|---|
| Persistence | EF Core migrations for catalog-database must use snake_case identifiers and preserve database triggers feeding the pending vector-update queue. | Missing triggers or mismatched column names silently drop book edits from catalog-vector indexing. | catalog-database, book, author, category, publisher |
| Caching | Book mutations must invalidate book:{id}, book:summary:{id}, books:list, and books:search in catalog-cache; DTO shape changes require bumping the v1 key version. | Failing to bump versioned keys causes deserialization errors or stale shapes across rolling deployments. | catalog-cache, adr-004-fusioncache-redis-for-catalog-reads |
| Messaging | Integration events (FeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEvent, BookUpdatedRatingFailedIntegrationEvent, ProcessVectorBatchIntegrationEvent) must remain Pact-verified. | Breaking schema changes fail consumer-driven contract tests or route payloads to <code>bookworm.{env}.catalog.dead-letter-queue</code>. | <code>bookworm.{env}.rating.feedback-create</code>, <code>bookworm.{env}.rating.feedback-delete</code>, <code>bookworm.{env}.catalog.book-update-rating-failed</code>, scheduler.process-vector-batch |
| Concurrency | Preserve discount price bounds (0 <= DiscountPrice <= OriginalPrice), DeleteBehavior.Restrict on authors with books, and 24h Redis idempotency on rating event handlers. | Removing idempotency guards allows duplicate Kafka deliveries to double-count average_rating and total_reviews. | catalog-api, catalog-ingestion, adr-006-reviews-rating-projection-on-book |
Safe Change & Verification Checklist
Pre-merge verification workflow
Verify HTTP, gRPC, and Kafka contract compatibility
Confirm additive compatibility across REST endpoints,
book.v1.BookGrpcService(consumed by 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 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 all Pact contract suites with 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 and Scheduler ServiceServicev1.0.0Scheduler ServiceSingle-host Quartz.NET job execution engine and operational dashboard UI for scheduling recurring platform jobs and insp...PublishesProcessVectorBatchIntegrationEventAPIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs.Validate PostgreSQL migrations and vector triggers
Ensure any Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs migration preserves
snake_casenaming, updates pending-update triggers if searchable attributes changed, and plans a Catalog VectorContainerv1.0.0Catalog VectorNon-authoritative Qdrant vector search index owned by the Catalog bounded context for hybrid semantic and keyword book d...Ownercatalog-experience-teamDiagramOpen docs rebuild when indexed text changes.Audit cache keys, tags, and authorization policies
Confirm write paths invalidate affected Catalog CacheContainerv1.0.0Catalog CacheNon-authoritative FusionCache and Redis caching layer owned by the Catalog bounded context for fast book detail lookups ...Ownercatalog-experience-teamDiagramOpen docs keys/tags, DTO changes bump key versions, and Entra ID policies (
catalog_read,business_user,admin) remain enforced.Run formatting, build, and test suites
Execute
mise run format,mise run build, andmise run testto verify Catalog unit tests, architecture tests, and Pact contract tests pass with zero warnings.
Related Resources
- 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 — Authoritative catalog REST/gRPC API
- Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs — Scheduled vector indexing worker
- Product IngestionFlowv1.0.0Product IngestionCatalog API persists product changes in PostgreSQL; Scheduler triggers Catalog Ingestion over Kafka every five minutes t...Ownercatalog-experience-teamView flowOpen docs — Vector indexing and advisory-lock pipeline
- Get bookQueryv1.0.0Get bookReturns one book and its catalog relationships by identifier.Ownercatalog-experience-teamSchemaDiagramOpen docs, Get books over gRPCQueryv1.0.0Get books over gRPCReturns multiple Catalog books by identifier through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs, Get book details over gRPCQueryv1.0.0Get book details over gRPCReturns full Catalog book details by identifier through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs, List booksQueryv1.0.0List booksReturns a filterable collection of books with pricing, availability, relationships, and rating summaries.Ownercatalog-experience-teamSchemaDiagramOpen docs — Key read and gRPC contracts
- API and contracts indexCustom DocAPI and contracts indexConsolidated index of BookWorm HTTP v1, gRPC, AG-UI, MCP, A2A, and Kafka/Wolverine contracts grouped by service with aut...Ownerplatform-engineering-teamOpen doc — Consolidated HTTP, gRPC, and Kafka contracts