Machine-readable mirror for AI coding agents & RAG:
/tour.md · /llms.txt
6-Step End-to-End Trace

Trace a contested order across five modules.

Follow one purchase order from synchronous SKU snapshotting to atomic Outbox persistence, O(1) topic routing over System.Threading.Channels, deterministic FOR UPDATE stock locking, idempotent Inbox fan-out, and OpenTelemetry verification.

LIVE SAGA & OTEL TRACESnapshot SKUs via Catalog PublicApi
Orbit.Api (.NET 11 Host)PostgreSQL 18 Schemas & OpenTelemetryBuyer / APIPOST /api/ordersAI AgentClaude / Codex / AGY8 SKILL.md+ 49 ArchTestsCatalogICatalogPublicApiOrdersOrder AggregateInventoryStockItem LockShipmentsPick · Pack · ShipOrbit.EventBus (System.Threading.Channels)FrozenDictionary O(1) Topic Router · Bounded Queuesorders.*Order + Itemsoutbox + inbox+ trace_parentinventory.*FOR UPDATE + xminAspire OTelTraces & Metrics
01Orders → Catalog

Snapshot SKUs via Catalog PublicApi

Orders never queries catalog.products directly. PlaceOrderCommandHandler calls ICatalogPublicApi in-process to verify active SKUs and snapshot unit prices before opening a database transaction—keeping Catalog free to change prices later without mutating historical orders.

Buyer HTTP Request POST /api/ordersOrders Module
Snapshot SKU & price via ICatalogPublicApiCatalog.PublicApi
Download the diagram (SVG)
02Orders

Commit Order & Outbox with W3C Trace

Inside OrdersDbContext, InsertOutboxMessagesInterceptor captures OrderPlacedDomainEvent alongside Activity.Current?.Id (W3C trace_parent) in orders.outbox_messages within the exact same PostgreSQL commit, then pulses OutboxWakeupSignal for sub-10ms dispatch.

Orders Module Commit Order + OutboxMessage + trace_parentOutbox + trace_parent
Download the diagram (SVG)
03Orbit.EventBus

Route Topic in O(1) via Channels Bus

ModuleOutboxProcessor publishes OrderPlacedIntegrationEvent to Orbit.Common.EventBus. TopicSubscriptionRegistry looks up orders.order-placed in O(1) via an immutable FrozenDictionary and writes only to subscribed bounded Channel<IntegrationEventEnvelope> queues.

Outbox + trace_parent Pulse OutboxWakeupSignal (<10ms)Orbit.EventBus (Channels)
Route orders.order-placed in O(1)Inventory Module
Download the diagram (SVG)
04Inventory

Lock Stock Row with SELECT FOR UPDATE

Inventory wraps its handler in IdempotentIntegrationEventHandler and executes SELECT *, xmin FROM inventory.stock_items ... ORDER BY product_id FOR UPDATE. When five buyers race for the last unit, PostgreSQL serializes the lock: one order wins reservation and four receive StockRejected.

Orbit.EventBus (Channels) Route orders.order-placed in O(1)Inventory Module
SELECT *, xmin FOR UPDATE in sorted orderinventory.stock_items
Download the diagram (SVG)
05Inventory → Orders + Shipments

Deduplicate Inbox & Fan Out Fulfillment

OrderStockReservedIntegrationEvent fans out across two independent bounded channels: Orders transitions the purchase order to Confirmed while Shipments creates a Pending warehouse pick-list. Each module records its own inbox_message_consumers receipt atomically.

Inventory Module Publish inventory.order-stock-reservedOrbit.EventBus (Channels)
Fan out to Orders + Shipments inboxesShipments Module
Download the diagram (SVG)
06Software Factory

Enforce 49 Guardrails & OTel Feedback

49 automated guardrails inspect .csproj graphs, NetArchTest layer rules, EF Core snake_case schemas, and raw Dapper SQL strings in under two seconds—while Aspire Dashboard (:18888) renders the full multi-module OpenTelemetry waterfall for both humans and AI coding agents.

AI Coding Agent Load task-specific SKILL.md playbook.agents/skills/*
Run 5-second zero-warning + SQL boundary gate49 Architecture Tests
Inspect live W3C distributed spansAspire OTel Dashboard
Download the diagram (SVG)
Architecture Vector Deck

Downloadable System & Saga Diagrams.

Every SVG contains selectable text and maps directly to the verified Orbit revision (3c8d0cf5).