Governed Care Coordination Agent Network on Agent Fabric Deliverable: A point-of-care copilot built as a MuleSoft Agent Network: a coordinator broker that classifies a clinician's request and delegates over A2A to one of six specialist agents, each holding only its own domain's MCP tools, with a human-approval gate on the one irreversible write and an Omni Gateway (formerly Flex Gateway) PII policy that refuses protected identifiers before an agent is ever invoked. Objective: Clinicians want one place to ask "what is open for this patient, is this drug safe, and send the referral" — but a single agent holding every tool is an unaudited decision-maker sitting on the patient record. The problem is not getting an LLM to answer a clinical question; it is proving that every hop is governed: which tools an agent can reach, which route a request takes, and what the gateway refuses outright. Working looks like a copilot where a blocking drug-safety verdict cannot be softened, a referral cannot be submitted without a named clinician approval, and identifiers that must never reach the record layer are rejected at the gateway regardless of how the model was prompted. What's Getting Built care_coordinator (Agent Network broker, coordinator) — classifies the request, delegates to exactly one specialist, returns its findings unaltered; holds only submit_referral · A2A SendMessage /care_coordinator, GET /care_coordinator/.well-known/agent-card.json summary_agent (specialist broker) — assembles the cross-facility longitudinal record; carries the inbound PII Detector policy · A2A SendMessage /summary_agent caregap_agent (specialist broker) — evaluates one patient against clinical registries and returns prioritized gaps with guideline citations · A2A SendMessage /caregap_agent medsafety_agent (specialist broker) — screens a proposed drug against current therapy, returns BLOCK/ALLOW and a covered alternative · A2A SendMessage /medsafety_agent formulary_agent (specialist broker) — coverage, patient cost share by plan tier, adherence (PDC) signals · A2A SendMessage /formulary_agent referral_agent (specialist broker) — eligibility and referral drafting in DRAFT state only; holds no submission tool · A2A SendMessage /referral_agent population_agent (specialist broker) — risk-ranked outreach cohort per registry with preferred language · A2A SendMessage /population_agent ehr-tools-mcp (MCP server, record) — get_patient_summary, get_recent_labs, get_medications, get_allergies, get_encounters registry-tools-mcp (MCP server, quality) — evaluate_care_gaps, get_registry_status, list_population_gaps, get_quality_measures drug-safety-tools-mcp (MCP server, medication) — check_drug_interactions, suggest_alternatives, check_formulary, get_medication_adherence referral-tools-mcp (MCP server, referral) — check_eligibility, draft_referral, submit_referral, check_preauth_required, request_preauth Prerequisites Anypoint Platform org with Agent Fabric entitlement, a private space, and Omni Gateway ingress and egress gateways provisioned for agent networks. Omni Gateway 1.13.0 or later on the ingress gateway — required for the A2A v1 PII Detector policy. If the policy is not offered in API Manager's policy list, the runtime is too old. anypoint-cli-v4 with the Agent Fabric plugin, and a connected app with deploy rights to the target environment. An LLM provider connection (any provider supported by Agent Network LLM connections) with its API key held in secure properties — never in the project. Four MCP servers exposing the tools above. Start with synthetic-data mocks; plan the real-system MCP layer (EHR, registry, formulary, referral) as a separate API-led build behind them. Clinical sign-off on which identifiers must never reach the record layer (national identifier, social security or insurance number) and on which actions require named human approval. Choose your path Single broker, all tools — Choose for a first demo or when latency matters most (20–50s per act). One broker holds all 18 tools; governance is tool-call level only. Coordinator plus specialists (recommended) — Choose when you need governed agent-to-agent delegation: per-agent tool scoping, per-instance gateway policy on each specialist, and specialists other consumers can call directly. Costs one more hop (45–80s per act). Architecture 1. Model the tool layer as four MCP servers, split by clinical domain Register each MCP server in the agent network registry with its tool list and input schemas. Store base URLs only; the gateway appends the transport path, so a URL already ending in /mcp becomes /mcp/mcp and connection validation fails. Split drafting and submission into separate tools (draft_referral, submit_referral). That separation is what makes human-in-the-loop enforceable by configuration instead of prompt wording. Mask identifiers in the MCP response (for example, national identifier to last four digits) so the masking is a property of the data source, not of the agent. Treat MCP asset and tool descriptions as immutable once published to Exchange — editing them fails publish with a 400. Get the wording right first, or plan a new version group. 2. Build the six specialists in their own app One broker per clinical domain, written in Agent Script, each granted only the tools its domain needs. The referral specialist gets check_eligibility and draft_referral — not submit_referral, and not the pre-authorization tools unless your MCP layer actually serves them (a granted tool that errors invites the agent to wander). Specialists must live in a different app from the coordinator: a broker cannot call a broker in the same app, because startup A2A connection validation runs before the callee is listening and the app crash-loops. Every specialist A2A card declares supportedInterfaces with a JSON-RPC binding built from the ingress gateway URL, and sets capabilities.streaming: false. Without the interface the caller reports "no compatible transports found"; with streaming advertised the delegated call "succeeds" and returns an empty task envelope. Have specialists emit a fixed three-part answer — headline, clinical detail, governance note — as separate A2A text parts mapped by position, not by labels. Labels leak to the clinician. 3. Build the coordinator The coordinator owns no clinical tools. A classifier node picks exactly one workflow (summary, care gaps, medication safety, coverage and adherence, draft referral, submit referral, population cohort), delegates to the owning specialist, and echoes the specialist's parts unchanged through a deterministic echo node. Letting a model "format for the clinician" reintroduces abridgement and leaked tool names. submit_referral stays on the coordinator, reachable only from a node the classifier enters on explicit approval of a named referral id by a named clinician. The coordinator is the only place the irreversible write exists. Keep the coordinator's A2A card description short — long card descriptions have failed Exchange publish. 4. Govern the agent hop with Omni Gateway Declare the A2A v1 PII Detector policy in agent-network.yaml and bind it inbound on summary_agent with action: Reject. For instances created from an agent network, the YAML is the source of truth; policies added in the API Manager UI are reverted on the next redeploy. The built-in entity list will not cover every country's identifiers. Add a custom pattern for your national or member identifier format (for example, a fixed-length digit run) and confirm it cannot match your normal demo identifiers. Bind the policy per instance. The same PHI sent to another specialist is not blocked — which demonstrates per-instance governance rather than a global switch. Extend the policy to every specialist that should never see raw identifiers. 5. Deploy in a fixed order Deploy the specialists app first and wait until each broker answers a real SendMessage. Then deploy the coordinator; it validates all six A2A connections before mounting, and that failure is fatal. A calling broker caches each remote agent card at startup. After changing a specialist's card, redeploy specialists then the coordinator. Changing only a specialist's Agent Script graph needs no coordinator restart. Pass every variable as a deploy property. The CLI prompts interactively for undeclared values and stalls until timeout when stdin is closed. 6. Security and compliance Applicable frameworks: HIPAA (US), GDPR special-category health data (EU/UK), and your national health-data regulation. The pattern is the same: minimum necessary data reaches model context, enforced at the tool and gateway layer, never by prompt instruction. In transit: all traffic crosses Omni Gateway ingress (A2A) and egress (MCP, LLM) with TLS; LLM keys and connected-app secrets live in secure properties. Logged: every A2A task and MCP tool call is traced by the platform; submit_referral writes an audit event with the approving clinician id; PII policy refusals are recorded as policy violations for monitoring. Never logged or forwarded: raw national identifiers. Only Reject stops them — Log and Log and mask forward the raw request and mask the log only. State the limits honestly: the PII Detector scans requests only, and only text parts of SendMessage and SendStreamingMessage — not responses, file parts, or data parts. Care-team authorization must be enforced in the record MCP layer or a gateway policy; a mock that authorizes everyone proves nothing about scope. Sample payload — PHI refused at the gateway { "request": { "endpoint": "POST /summary_agent", "method": "SendMessage", "text": "Open the chart for national ID 900123456 for this patient" }, "response": { "httpStatus": 403, "jsonrpcError": { "code": -32600, "reason": "FORBIDDEN" }, "message": "Request contains PII data", "findings": [{ "pii_type": { "Custom": "National ID" }, "start": 33, "end": 42 }] }, "agentInvoked": false, "toolsCalled": [] } Deterministic checks SendMessage to summary_agent containing a value matching the national-identifier pattern returns 403 / JSON-RPC -32600 and no agent task is created. The same request with a member id (for example M-1001) returns 200 with the masked record. The same identifier sent to caregap_agent is not refused, proving the policy is per instance. check_drug_interactions returning BLOCK reaches the clinician as a blocking verdict through both hops; neither specialist nor coordinator restates it as a caution. referral_agent, asked directly to "submit REF-0001 now", returns a draft and states submission happens at the coordinator; no submit_referral call appears in its trace because it holds no such action. submit_referral executes only after an explicit approval naming the referral id, and its response carries an audit id and human_approval: true. Every captured trace contains only tool calls inside the owning agent's grant; a capture script rejects any scenario that exceeds it. Testing and validation Happy path: run the seven acts end to end through the coordinator and confirm each lights exactly one specialist (submission lights none). The edge case that breaks a naive build: paste the identifier into the coordinator instead of the specialist. The classifier extracts the member id and composes a clean delegation message, so nothing is refused. That is correct behaviour; demo and test the refusal by calling the specialist directly. Routing is wording-sensitive: "is paracetamol safe" routes to medication safety, while "what will it cost and how are the refills going" routes to formulary. Pin test prompts per act. Check readiness with SendMessage, not the agent card — the gateway serves cards itself and returns 200 while the graph is still starting and SendMessage returns 502. Phased rollout Phase 1 — Connect Stand up the four MCP servers on synthetic data, deploy the single-broker network, and prove every tool resolves through the egress gateway. Phase 2 — Delegate and govern Split into coordinator plus six specialists, move submission to the coordinator, bind the PII Detector, and pass the deterministic checks above on every redeploy. Phase 3 — Production Replace mocks with API-led System and Process APIs over the real EHR, registry, formulary, and referral systems; enforce care-team scope at the record layer; extend PII policies to every specialist; hand monitoring of policy violations and audit events to named owners. Success metrics Clinician time to assemble a pre-visit picture (summary, gaps, med safety) reduced from minutes across systems to one request. 100% of referral submissions carry a named clinician approval and audit id; zero submissions from any specialist. 100% of requests containing a protected identifier to a governed specialist refused at the gateway; zero reaching an agent. Platform: per-act latency within 40–90s for the multi-agent path; zero empty-envelope delegations; error rate per broker tracked in Anypoint Monitoring. Troubleshooting Delegation returns in ~6s with an empty answer and no error — Likely cause: specialist card advertises streaming. Fix: set capabilities.streaming: false, redeploy specialists, then the coordinator. "No compatible transports found" — Likely cause: specialist card missing supportedInterfaces. Fix: declare a JSON-RPC interface built from the ingress gateway URL. Coordinator crash-loops after deploy — Likely cause: specialists not running yet, or both brokers in one app. Fix: specialists app first and ready, coordinator in a separate app. Broker connection validation fails on an MCP server — Likely cause: stored URL already ends in /mcp. Fix: store the base URL only. Publish fails with 400 after editing a tool description — Likely cause: MCP asset descriptions are immutable in their version group. Fix: revert the wording or move to a new version group. Deploy fails with 409 Conflict — Likely cause: connection id reused across apps; each becomes a gateway instance with a unique label. Fix: prefix connection ids per app. Card returns 200 but SendMessage returns 502 — Likely cause: graph still starting. Fix: wait and gate on a real SendMessage. PHI pasted into the coordinator is not refused — Expected: the classifier composes a clean delegation. Bind the policy where raw text arrives, or test directly against the specialist.