warehouse-systems fleet · executive briefing

warehouse-ops-agent

Reads across the warehouse and tells operators what needs attention today
seven capabilitys32 recorded decisions

This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic. · November 2026

the short version · read this if nothing else

The ops agent turns facts from many contexts into ranked advice operators can act on, with a human yes

1

A daily brief groups backlog, staffing gaps and stuck work by site.

2

Deterministic rules decide first; the optional LLM only arbitrates, with a fallback.

3

It writes in exactly two places, release next work and reassign labor, each after a human confirms.

The ask

Use the wired but idle clients, then review LLM agreement and move it from off to shadow, then on.

why it exists

Real problems hide in the gaps between contexts

An independently-deployable decision-support mechanism over the warehouse-systems fleet. It is a Customer of the bounded contexts' published MCP tool surfaces (never a new domain context): it correlates facts across contexts into ranked recommendations - flow-balance exceptions, stranded reservations, a daily operational brief, transfer watch…

Today

Backlog, staffing, queues and stock live in separate contexts, so spotting a real problem means joining them by hand.

The catch

Two act slices can now write, an optional hosted LLM sits on the request path, and the mutation gate is weak.

what it does

It spots trouble, ranks what to do, and asks a human before acting

Daily operational brief

Backlog, staffing gaps, queue depth and stuck tasks, grouped by site.

Flow-balance advisory

Ranks actions to rebalance flow, with an optional LLM to arbitrate.

Stranded reservations and signals

Finds stranded reservations, master-data gaps, stuck transfers and runtime trouble.

Human-confirmed act slices

Release next work and reassign labor: propose, then approve with a confirmation token.

Capacity outlook

Adds each path's capacity window, failing open if the data is missing.

Console BFF

Stitches one order's lifecycle and the WMS and WES dashboards for the console.

the shared language

It owns no data; it owns the rules that connect everyone's facts

THE LANGUAGEOF THE DOMAINPolicy functionspolicy.ArbitrateReasoner portApprovalUpstream facts cross MCP…
REST17 operations over 17 paths on :8095
MCPMCP server on /mcp (same :8095 router, Streamable HTTP…
how it is built

Deterministic policy sits in the middle; the LLM is optional

DRIVERS · INBOUNDOUTBOUND · ADAPTERSREST API :809517 operations over 17 pathsMCP tools :8095MCP serverDOMAIN CORENo aggregate and no…Policy functionspolicy.ArbitrateReasoner portStoragenone - no database and no…commands inevents inevents outstorage / infra
how we know it is healthy

Agreement counters tell us when the LLM is ready to lead

OTel (OTLP/gRPC push to the Collector; no /metrics endpoint of its own) + slog JSON on stdout tailed by Alloy into Loki; otelchi http.server metrics on every route incl. /mcp (ADR 0010)…

What we watch

  • ops_agent.llm.arbitrations and ops_agent.llm.agreement counters plus circuit_breaker.state gauge, registered only when LLM_MODE is shadow or on…
  • llm.tool_call structured audit log (sha256 args hash, never raw args) + OTel span per tool call…
  • Circuit breaker, deadline-derived timeout (LLM_TIMEOUT default 8s) and bounded retry on the reasoner path (ADR 0011)…

What stops a bad change

  • make check / check-all / check-fast + arch-test (hexagonal, zerowrite act-slice pins, no direct dependency on bounded contexts)
  • 90% coverage gate (domain, application, inbound adapters)
  • mutation-fast over internal/domain (blocking): .gremlins.yaml thresholds efficacy 80 / mutant-coverage 96, below the fleet 99/99 standard
by the numbers

32 decisions and 20 BDD feature files keep a stateless agent honest

32
Architecture decisions
#10 of 45 in the fleet
20
BDD feature files
#8 of 45 in the fleet

Ranked against all 45 briefed repositories (dot = one repository, highest on the left).

One-command workflows (make)

helpbuildvetfmtfmt-checklinttestintegrationcoveragebddarch-testmutation-fastvulnapi-lint
competitive position

Against the market leaders, we cover part of the ground

PartialAgentic Operations (AI) vs Manhattan (Wave Coordinator, Labor, Associate agents; Agent Foundry), Blue Yonder (Warehouse Ops Agent)

Where we match or lead

  • Read-only decision support across nine contexts via MCP with zero write capability
  • Daily brief, flow-balance advisory and stranded-reservation detection with blast radius
  • LLM reasoner in off/shadow/on modes with 8 s timeout and deterministic fallback
  • Per-path graceful degradation when an upstream is unavailable

Gaps to close

  • High No governed write path: autonomous action needs an authorization gate plus human confirmation first
  • Medium LLM reasoner covers flow-balance only; DailyBrief not yet; shadow mode doubles inference cost
  • Medium Two MCP clients (order-management, process-path-management) wired but unconsumed
  • Low No conversational interface or agent builder comparable to Agent Foundry

Leader capabilities are vendor-published; gaps reflect repo docs reviewed in November 2026.

what comes next

Next: use the wired clients, widen the LLM, then raise the test bar

NOW1Consume the wiredbut unused MCPclientsConsume thewired-but-unconsumed MCPclients: theretail-network contexts,task-interleaving,pick-face-replenishment,seller-inbound,returns-processing and …NEXT2Use the remainingplanning andproduct-masterConsume the threewarehouse-planning readtools and fourproduct-master toolswired beyond thecapacity outlook andmaster-data gaps reportNEXT3Extend the LLMbeyond flowbalance, then turnExtend the LLM reasonerbeyond flow-balance (ADR0004 is Accepted forflow-balance only;arbitration metricscarry onlyflow_balance_advisory)and move LLM_MODE from …LATER4Register an MCPresource andprompt on its ownRegister at least oneMCP resource and oneprompt on the agent'sown server: none isevidenced ininternal/adapters/inbound/mcp(warehouse-docsagent-catalogue tracks …LATER5Ratchet mutationthresholds from80/96 toward 99/99Ratchet the mutationthresholds from 80/96(.gremlins.yaml,measured 2026-09-14 atefficacy 80.85) towardthe fleet 99/99 byhardeningpolicy/utilization_corr…
what could go wrong · and what we do about it

Our biggest risk is two write paths behind a token and no auth

Auth is off by decision; a token guards two writes

Every REST (incl. the four act POSTs) and MCP endpoint is unauthenticated BY DECISION (ADR 0006)…

→

Tests pin writes to exactly two slices, and the LLM and MCP can never write.

Act-slice retries can rerun after a restart

Act-slice idempotency keys and nonces live in a process-local store; with the default ephemeral APPROVAL_SIGNING_KEY a restart forgets…

→

The Deployment is kept at one replica; the idempotency store is process-local.

A hosted LLM sits on the flow-balance path

Hosted-LLM dependency (ANTHROPIC_API_KEY, default model claude-sonnet-4-5) on the flow-balance request path when LLM_MODE is shadow or…

→

An 8s timeout, circuit breaker and deterministic fallback keep requests answering.

A missing upstream endpoint silently thins a section

Correlation quality depends on each upstream MCP endpoint being set and current: a client is built only when its endpoint is set (ADR…

→

An unavailable upstream degrades one section to a typed partial, never an error.

the decision we need

Use the wired but idle clients, then review LLM agreement and move it from off to shadow, then on.

WHAT ISBacklog, staffing, queues and stocklive in separate contexts, sospotting a real problem meansjoining them by hand.THE CATCHTwo act slices can now write, anoptional hosted LLM sits on therequest path, and the mutation gateis weak.WHAT COULD BEThe brief uses every wired context,the reviewed LLM covers more thanflow balance, and the two act slicesstay pinned.
Why it matters

The ops agent turns facts from many contexts into ranked advice operators can act on, with a human yes

appendix · for the engineers in the room

The fine print: how it is put together

StyleHexagonal / Ports & Adapters with a policy layer instead of a domain; write capability pinned by tests to exactly two act slices (zerowrite fitness tests)…
Layoutcmd/agent (single binary: main, reasoner, act, wire_clients, wire_decision_support) + internal/{domain/{policy,approval,authority}, application/usecases, ports…
Storagenone - no database and no migrations; the act slices keep a process-local idempotency store and, by default, an ephemeral signing key (ADR 0030)…
Testingunit tests with fakes (no DB, no live MCP), 90% coverage gate, godog BDD over the real router (20 feature files), integration tests on real in-process MCP Streamable HTTP…
REST17 operations over 17 paths on :8095: /healthz, /daily-brief, /flow-balance/{pathId}, /explain-travel-factor, /console/orders/{id}/lifecycle…
Go 1.27.4chi v5 + go-chi/corsMCP Go SDK v1.8.0a2a-go v2.7.0Anthropic Messages API with tool…Prometheus HTTP API + Loki…OpenTelemetrygobreaker + backoffgodogHelm chart warehouse-ops-agent