Governance note — this agent's write posture
This note records the governance decision specific to
warehouse-ops-agent, on top of the fleet-wide rules in the
MCP Governance Charter
(fulfillment-execution is the charter's canonical home; every sibling
context, and this agent, follow it). Read that charter first — this page
only covers what is specific to being a cross-context decision-support
agent rather than a bounded context.
The rule
This agent writes to a bounded context only through that context's own, already-published write MCP tool — never through a database, an internal API, or any mechanism that bypasses that context's own invariant enforcement. A mistaken or hallucinated agent call is safe by construction: the target context's existing domain layer is the backstop, exactly as it is for a human operator calling the same tool.
Concretely, the only write tools this agent could ever call are:
| Tool | Owning context | What it would do |
|---|---|---|
assign_labor | workforce-management | Assign heads to a path (E1's assign_labor recommendation) |
release_next_work | wes-work-planning | Release the next work unit into a path (E1's release_next_work recommendation) |
revoke_reservation | inventory-storage | Free a stranded reservation's stock back to usable (E2's revoke_reservation recommendation, now surfaced read-only via detect_stranded_reservation — see api-surface) |
complete_task | fulfillment-execution | Not currently reachable from any of this agent's decision policies |
v1 scope: read-only, recommendations-only
warehouse-ops-agent holds zero write capability. Every MCP tool this
agent's own inbound server exposes (get_daily_brief,
list_open_exceptions, get_flow_balance_exception,
explain_travel_factor, detect_stranded_reservation) is annotated
ReadOnlyHint: true, and its
outbound adapters (internal/adapters/outbound/mcpclient/,
internal/adapters/outbound/restclient/) implement only read ports
(see internal/ports/clients.go, clients_phase2.go) — there is no
AssignLabor, ReleaseNextWork, or RevokeReservation method anywhere
in this codebase to call even by mistake.
This is enforced the same way the "no direct bounded-context dependency"
rule is — statically, in CI, not by a runtime check that could be
bypassed: internal/architecture/zerowrite/zerowrite_test.go
(TestNoMutatingHTTPMethodInOutboundClients,
TestNoMutatingToolAnnotationInMCPServer) fails the arch-test job if an
outbound client gains a mutating HTTP method or an inbound tool is
registered without ReadOnlyHint: true. A future write-capable slice adds new outbound-client
methods and a new tool-registration entry deliberately; it cannot happen
by accident.
The act slice has landed (ADR 0027)
The first and only write is live behind the two guardrails below, decided in
ADR 0027:
release_next_work on wes-work-planning, delegated over A2A, via
POST /act/release-next-work/{proposals,approvals}. The rest of this page
still governs every other surface; the "v1 scope" section above is now true
except for this slice.
- The "re-introduced authorization gate" is a confirmation token, not caller identity — auth stays removed fleet-wide (ADR 0006). A short-lived HMAC-signed token binds exactly what the human was shown; approving needs it, so an execute can only run on a recommendation this agent made.
- Human confirmation is the mandatory second, explicit call, carrying the evidence.
- Not an MCP tool, not reachable by the LLM. Approving is a human act;
both are asserted statically in
internal/architecture/zerowrite/act_slice_test.go. revoke_reservationandcomplete_taskremain recommendation-only: the same test fails if either is declared. (assign_laborbecame the second act slice in ADR 0029 — see below.)
The second act slice: labor reallocation (ADR 0029)
ADR 0029 adds a second,
equally gated write: a pure policy ranks at most three moves that cover an
understaffed path from workforce-management's own readings, and
POST /labor-reallocation/proposals / .../{proposalId}/approve delegate ONE
human-approved move to workforce-management's assign_labor A2A skill with
proposalId, approvedBy and agentId. The guardrails are the same: a token
bound to the exact move, REST-only, never an MCP tool, never reachable by the
LLM. The MCP server holds only the token-less labor_reallocation_outlook
(authority L2). The write surface is now exactly two route pairs and two
verbs (ReleaseNextWork, AssignLabor); act_slice_test.go pins both and
fails when a third appears.
Advisory exception context (ADR 0028)
The act slice's propose step also asks exception-management, over A2A, what is
open (ADR 0028).
This is not a second write and does not touch the guardrails above: the
second A2A client implements a read-only port (one method, one allow-listed
read skill, no write verb), it runs after the minting decision is final and
cannot alter it, Approve never calls it, the answer is not persisted, and
neither the MCP server nor the LLM reasoner can reach it (all asserted
statically in internal/architecture/zerowrite/exception_context_test.go and
act_slice_test.go). The write surface is still exactly the two ADR-0027
routes and the one ReleaseNextWork verb.
The act slice's guardrails (as decided ahead of the implementation): authorization gate + human confirmation
When a write-capable slice does land, it inherits two guardrails already decided, not deferred:
- A separate, re-introduced authorization gate. The fleet-wide auth
layer this section originally described (
ScopeRead/ScopeReadWriteoverStaticKeyAuth) was removed fleet-wide — see ADR 0006, which supersedes ADR 0005. Per the charter (§7, §3), any write tool this agent's inbound MCP server ever exposes still MUST be gated by some explicit authorization mechanism distinguishing a read-only caller from a write-capable one — rejecting a read-only caller the way the old403did — even though the specific static-bearer implementation is gone; the act-slice picks the replacement mechanism when it lands. - Explicit human confirmation before the write executes. A
recommendation (
assign_labor,release_next_work,revoke_reservation) surfacing from this agent's read tools is not itself authorization to act. The act-slice's design — a human-in-the-loop confirmation step between "recommended" and "executed" — is a commitment recorded here ahead of the implementation, per ADR 0001's consequence that "human-in-the-loop and least-privilege" stay preserved as this agent's capability grows.
Auditability
Every tool call this agent's own MCP server handles emits an OTel span
(mcp.tool <name>) carrying the tool name (mcp.tool.name), per the
charter's §9 auditability rule — the same instrumentation pattern the
sibling servers use, so a call here is traceable in Jaeger alongside
every upstream call it triggers.