Skip to main content

Warehouse Ops Agent

Supporting Subdomain · Operator tooling, no aggregate

warehouse-ops-agent is the fleet's agentic layer: an "AI teammate that sees, analyzes, and recommends" over the warehouse-systems bounded contexts — an outbound MCP client for eleven of them: the five original ones (inventory-storage, wes-work-planning, fulfillment-execution, workforce-management, facility-layout), three second-wave clients (labor-performance, order-management, process-path-management, ADR 0007; the order-management and process-path-management MCP clients are wired but unused), and warehouse-planning (ADR 0013, read tools only, active when WAREHOUSE_PLANNING_MCP_ENDPOINT is set), network-inventory-planning (ADR 0019, transfer watch) and product-master (ADR 0020, four read tools, of which list_products feeds find_master_data_gaps and GET /master-data-gaps; active when PRODUCT_MASTER_MCP_ENDPOINT is set, which the reference deployment does) — and, separately, the Backend-for-Frontend behind the operator console's genuinely cross-cutting screens.

It is a Customer of those contexts' published MCP Open Host Services and plain REST APIs — never a Go-level dependency on any of them, and never a write (zero write capability is CI-enforced by internal/architecture/zerowrite/zerowrite_test.go). Its own REST and MCP surfaces are unauthenticated by deliberate decision — see ADR 0006.

Defining trait: no domain aggregate, no apis/openapi.yaml

Unlike every other bounded context documented in this fleet, warehouse-ops-agent owns no domain aggregate, no invariant, and no persisted domain state — and correspondingly ships no apis/openapi.yaml. Its REST and MCP surface is small enough, and changes fast enough, that it is documented in prose on the API surface page of its own docs site rather than generated from a spec. This is not an oversight this documentation pass is filling in — it is a deliberate, disclosed consequence of what this repository actually is: a read-side correlation and aggregation mechanism, not a bounded context with a domain layer to formalize. See Bounded Context Canvas for the full reasoning.

What it is​

A read-side / decision-support mechanism with three independent use-case families in one binary:

  1. Decision support (MCP-facing) — correlates facts read from upstream contexts' MCP Open Host Services through a pure policy layer into ranked, human-gated recommendations: the "daily brief", the "flow-balance exception" (with the ADR 0008 labor-utilization overlay and an optional, default-off LLM reasoner per ADR 0004), and explain_travel_factor (ADR 0009).
  2. Console BFF — a thin Backend-for-Frontend that fans out read-only REST calls to four contexts' OLTP APIs (Order Lifecycle) and seven contexts' *-reports analytics binaries (WMS/WES dashboards) on behalf of the operator console's browser SPA.
  3. Runtime signals — GET /runtime-signals reads Istio metrics from Prometheus and error logs from Loki and classifies each backend service's error rate and p99 latency.

What it is not​

It is not a bounded context in the domain sense (its own ADR 0001 frames this as "not a sixth bounded context"). There is no aggregate or invariant for this repo to own, so calling it a "context" in the tactical-pattern sense would be a domain in name only. See ADR 0001 in the repo's own docs for the full placement rationale.

This context's pages​

Every page above except the Business Context is synced from the warehouse-ops-agent repository. There is no Async API page, because this context has no Kafka integration.

Elsewhere​