How we build
autonomous
operations.

This page documents how PLRX builds — the protocols we use, the engineering standards every AI agent is held to, and the architecture that makes 94% autonomous operation possible. The platform is built on open standards: A2A for agent coordination and MCP for AI client integration. No proprietary SDKs. No black boxes. The engineering is transparent because that is how trust is earned in regulated industries.

MCP Integration A2A Protocol
00 · THE STACK

Four layers.
One coherent stack.

Every PLRX deployment runs the same four-layer architecture. Each layer communicates via open protocols — no proprietary SDKs, no black boxes. The orchestrator is the connective tissue: it receives missions from above via MCP and coordinates specialists below via A2A, while simultaneously reaching outward to any enterprise system that ships an MCP server.

01
MCP CLIENT
Claude Code, ChatGPT, Cursor, OpenCode — or your own interface
Your team's AI client of choice. Connects to the PLRX MCP Server via a single authenticated connection. Discovers available missions via tools/list, invokes them via tools/call. No PLRX SDK required.
↓ MCP (inbound)
02
ORCHESTRATOR AGENT + MCP SERVER
The boundary between your world and the agentic world
The orchestrator has a dual role. Upward, it exposes its available missions as typed MCP tools — discoverable and invocable by any MCP client. Downward, it coordinates specialist agents via A2A and connects outward to enterprise systems via their own MCP servers. It is simultaneously an MCP server, an A2A client, and the workflow coordinator for every mission it owns.
↓ A2A (downward)
↔ MCP (outbound to enterprise)
03
SPECIALIST AGENTS
Purpose-built agents, each owning one domain end-to-end
Each specialist agent is a fully compliant A2A server. The orchestrator delegates tasks to specialists — clinical documentation, billing, ML scoring — via A2A. Each runs as an independent, independently deployable service. You start with one specialist. You add more as your workflow demands.
↔ MCP (enterprise systems)
04
ENTERPRISE SYSTEMS
The systems your workflows already run through
Any platform that ships an MCP server. The orchestrator connects to these systems via the same open protocol — no custom integration work per vendor. As more enterprise platforms publish MCP servers, the connectivity surface expands automatically.
01 · DURABLE STATE MACHINE

Every mission is a
durable workflow.

Mission state is persisted by the Durable State Machine — not in volatile memory. When an agent pauses to wait for a provider document, a payer callback, or a fulfilment confirmation, its workflow suspends durably. Hours later, days later, weeks later, it resumes exactly where it stopped. Crashes replay deterministically. Network failures retry with strict idempotency keys. No state is ever lost.

Every state transition is an event, not a flag. Each step in the workflow — validation, document collection, payer eligibility, prior auth, submission — is a discrete, named state persisted to an append-only event log. The full history of every mission is queryable and auditable at any point in time.

Wait states are first-class. When a mission reaches input_required — waiting for a provider to return a document, or a payer to respond to a prior auth — the workflow suspends without holding a thread or a polling process. It resumes automatically when the expected input arrives. There is no timeout. The mission waits as long as necessary.

The state machine shown reflects the real production workflow — every state and transition taken directly from live execution. No abstractions.

02 · A2A AGENT PROTOCOL

Agent coordination
via A2A.

A2A is the open JSON-RPC 2.0 protocol PLRX uses for machine-to-machine task delegation between agents. Every PLRX specialist agent is a fully compliant A2A server. The orchestrator agent delegates to specialists via A2A — clinical documentation, billing, ML scoring — each running as an independent agent, each coordinating through the same open protocol.

Agent discovery via Agent Card. Every A2A-compliant agent publishes a machine-readable manifest at /.well-known/agent.json — its name, endpoint URL, declared skills, and authentication requirements. Your client discovers the agent's capabilities before establishing contact. No out-of-band configuration required.

Tasks follow a durable lifecycle. A task submitted to a PLRX agent via message/send moves through a defined lifecycle: submitted → working → input_required → completed. Each transition is durable — persisted by the PLRX Durable State Machine. A task that enters input_required suspends without losing context. tasks/resubscribe allows your client to re-attach to a long-running task and receive streaming status updates.

Idempotency keys prevent duplicate side effects. Every task submission includes a deterministic idempotency key. If your client retries a failed submission, the platform recognizes the key and returns the existing task state without executing the operation twice. No duplicate emails. No duplicate API calls.

A2A · agent card → task submission → status
# Step 1 — Discover agent capabilities GET https://agent.plrx.ai /.well-known/agent.json # Response — agent manifest { "name": "clinical-documentation-specialist-agent" "url": "https://agent.plrx.ai" "skills": [ { "id": "document_collection" } { "id": "document_follow_up" } { "id": "get_status" } ] "authentication": { "schemes": ["bearer"] } } ── Step 2 — Submit a task ──────────────────────── POST / { "method": "message/send" ... } "skill": "document_collection" "order_id": "ORD-787" "idempotency_key":"<deterministic>" ── Step 3 — Poll or stream status ──────────────── POST / { "method": "tasks/get" "id": "task-doc-787" } # Response { "id": "task-doc-787" "status": { "state": "input_required" } "message": "Awaiting F2F document from provider" }
03 · AI CLIENT INTEGRATION

AI client integration
via MCP.

The PLRX platform exposes every mission type as a typed tool through the PLRX MCP Server. Any MCP-compatible AI client — Claude Code, ChatGPT, Cursor, OpenCode — can connect to the platform through a single authenticated connection. This is how PLRX integrates with the AI clients our customers already use.

Tool discovery is automatic. On connection, your client calls tools/list and receives a manifest of every mission type available to your tenant — the tool name, parameter schema, and description. New agent workflows deployed to your tenant appear in the manifest on the next connection without any client-side change.

Missions are invoked as tool calls. A single tools/call triggers the full agent fleet behind that mission type — orchestrator starts, specialists delegate, PLRX Durable State Machine persists state. The server responds immediately with a run ID. Mission progress streams back to the client as state transition events via Streamable HTTP.

Authentication is OAuth2. Every MCP connection is authenticated via bearer token. Tool visibility is scoped to your tenant — your client sees only the missions it is authorized to invoke. Every tool call is logged to the WORM audit trail with caller identity, timestamp, and full parameter payload.

There is no proprietary SDK. The MCP spec is the only contract. This is by design — open protocols reduce integration friction and eliminate lock-in.

The orchestrator connects in both directions. Inbound, it acts as an MCP server — exposing available missions as typed tools to any MCP client above. Outbound, it acts as an MCP client — connecting to enterprise systems that publish their own MCP servers. The same protocol that lets Claude Code invoke a PLRX mission also lets a PLRX agent reach into any enterprise system that ships an MCP server. No custom integration per vendor. No IT project per customer.

MCP · connect → discover → invoke
# Step 1 — Connect and authenticate GET https://.plrx.ai/mcp Authorization: Bearer <oauth2-token> ── Step 2 — Discover available missions ───────── { "method": "tools/list" } # Response — your tenant's mission manifest { "tools": [ { "name": "mission_orchestration" "description": "Process medical supply request end-to-end" "inputSchema": { "order_id": "string", "tenant_id": "string" } } { "name": "get_mission_status" ... } ] } ── Step 3 — Invoke a mission ───────────────────── { "method": "tools/call" "params": { "name": "mission_orchestration" "arguments": { "order_id": "ORD-787", "tenant_id": "northside" } } } ── Response — immediate · mission running ──────── { "content": [{ "type": "text", "text": "Mission #US-787 started" }] "run_id": "mission-run-id" } ── Streaming state events follow via SSE ───────── MISSION_RECEIVED → event published PHASE_VALIDATION → NPI valid · coverage ACTIVE AWAITING_INPUT → input_required · awaiting F2F
03b · ENTERPRISE CONNECTIVITY

A Universal Integration Standard.

Because the orchestrator connects outward via MCP, PLRX agents can reach any enterprise system that hosts an MCP server. They utilize the exact same open protocol, authentication model, and tool-discovery pattern across every single connection.

No Custom Vendor Integrations. Every system within the growing MCP ecosystem is reachable out of the box. As more vendors adopt and publish MCP servers, your connectivity surface expands seamlessly without requiring any code changes to the PLRX platform.

Cross-Fleet Agent Delegation. PLRX agents are never isolated. Via MCP, they can securely connect and delegate tasks to third-party, non-PLRX agents that expose an MCP server — enabling complex, multi-vendor agentic workflows without proprietary bridges.

Orchestrator · outbound MCP → enterprise system
# Orchestrator connects outbound to any enterprise MCP server GET https://mcp.<vendor>.com/v1 Authorization: Bearer <oauth2-token> ── Discover available tools ────────────────────── { "method": "tools/list" } ── Invoke a tool ───────────────────────────────── { "method": "tools/call" "params": { "name": "<tool_name>", "arguments": { ... } } } # The protocol is identical regardless of vendor. # SAP, Slack, Teams, Confluence — same pattern. CONNECTION = CONFIG, NOT CODE
04 · HOW WE BUILD SPECIALIST AGENTS

How every PLRX
agent is built.

Every PLRX specialist agent in production is built from the same internal scaffold — no exceptions. A layered architecture with the OpenAPI spec as the source of truth, a full A2A compliance layer, deterministic idempotency on every side-effecting activity, and a three-level test pyramid enforced by the CI/CD pipeline.

The scaffold enforces constraints that are easy to get wrong when starting from scratch — structured error responses on all endpoints, PHI protection enforced at every layer. These are not style preferences. They are correctness requirements for production-grade agentic software.

The A2A compliance layer is zero-configuration. The Agent Card endpoint auto-generates from the skill registry. The JSON-RPC 2.0 dispatch router handles all four A2A methods. Task lifecycle transitions are automatically correlated to PLRX Durable State Machine workflow instances. A new skill registered in the skill registry appears in the card, the router, and the OpenAPI spec without code duplication.

The performance SLA is enforced in CI. All synchronous agent endpoints must respond at P99 < 100ms. This assertion runs as part of the integration test suite on every build and blocks deployment if it fails. The SLA is a delivery requirement, not a target.

The engineering standards that govern every agent we build are published on GitHub — coding guidelines, PR automation, security scanning, CI/CD pipeline patterns, and testing frameworks.

Agent template · skill registration · A2A auto-wiring
# Skills declared once — card, router, OpenAPI updated @Skill( id = "eligibility_verification" description = "Verify patient coverage" inputType = MissionRequest.class outputType = MissionResponse.class ) public SkillResponse executeSkill( SkillRequest request) { // Skill implementation return service.execute(request); } ── Agent Card auto-generated at /.well-known/ ───── # GET /.well-known/agent.json → reflects skill above { "skills": [ { "id": "eligibility_verification" "description": "Verify patient coverage" } ] } ── A2A dispatch auto-routes to implementation ───── # POST / { "method": "message/send" # "skill": "eligibility_verification" } # → auto-routed · idempotency enforced · DSM correlated ── Performance SLA enforced in integration test ─── # BDD scenario — runs on every build Then P99 response time should be below 100ms

Open standards only.

Every protocol PLRX uses is an open standard. No proprietary formats. No vendor-specific abstractions. Full interoperability by design.

A2A Protocol
JSON-RPC 2.0 · HTTPS + SSE

Machine-to-machine task delegation between agents. Every PLRX agent is a compliant A2A server and client.

message/sendSubmit task to agent
tasks/getRetrieve task state
tasks/cancelCancel running task
tasks/resubscribeStream task updates
GET /.well-known/agent.jsonAgent Card
MCP Protocol
Streamable HTTP · OAuth2

AI client integration. Enables tool discovery, invocation, resource reading, and streaming responses from the PLRX MCP Server.

tools/listDiscover mission manifest
tools/callInvoke a mission
resources/readRead mission status
resources/subscribeStream state events
initializeHandshake + capability negotiation
Error Responses
Standard error envelope · ProblemDetail

All PLRX API endpoints return structured error responses on error — structured, machine-readable, and consistent across every agent.

typeURI identifying the error
titleHuman-readable summary
statusHTTP status code
detailSpecific error description
instanceRequest-specific reference URI

Performance guarantees,
enforced in CI.

PLRX synchronous API endpoints carry a hard P99 < 100ms SLA. This is not a documentation target — it is asserted in the integration test suite and blocks deployment if violated. The table below lists the SLA for each endpoint category.

Endpoint type SLA Alert threshold Notes

AI Agents at Scale.

PLRX runs Enterprise AI Agents — persistent, stateful, and infrastructure-hosted. Not session-based assistants running on someone's device. Not tools that stop when a laptop closes. Agents that run continuously on dedicated infrastructure, coordinate across external parties, and log every decision to immutable storage.

PLRX publishes engineering practices, tooling configurations, and developer workflow patterns. The execution engine, agent scaffolding, MCP server, and PLRX Durable State Machine are purpose-built by PLRX — not assembled from generic components. That depth of ownership is what allows PLRX to stand behind every mission with outcome-based pricing.

These resources are not educational examples. They are the actual configurations and standards we apply to every agent we ship.

{ }

Coding Standards

The Java coding standards applied to every PLRX agent — immutability rules, Optional usage, stream patterns, exception handling, logging conventions, and the specific constructs that are banned and why.

javastandardsproduction

PR Review Automation

The automated pull request review workflow — static analysis configurations, review checklists, coverage gate enforcement, and the CI hooks that run before a PR can be merged.

ci/cdautomationquality

Security Scanning

The security scanning configurations applied to every PLRX service — dependency vulnerability scanning, SAST rules, secret detection patterns, and the build-breaking thresholds for each finding severity.

securityscanningsast

CI/CD Pipeline Patterns

The reusable CI/CD workflow patterns used across all PLRX service repositories — build, test, image build with semantic versioning, push to artifact registry, and Kubernetes deployment.

ci/cdkubernetes

Testing Frameworks

The three-level test pyramid configurations — unit test patterns with strict mock boundaries, BDD scenarios with real infrastructure containers, and integration test patterns with contract mocks and P99 SLA assertions.

unit testsbdd

API Design Guidelines

The OpenAPI-first design workflow used across all PLRX services — spec-first process, code generation configuration, naming conventions, error response patterns via structured error responses, and the SLA contract documentation standard.

openapiapi-firstrfc-7807
Enterprise Agents Detail

Build on the platform behind 94% autonomous operations.

Request access to connect your AI client, integrate your systems, or deploy a specialist agent fleet on the PLRX Agentic Execution Platform.

The engineering team handles onboarding directly. No automated sales funnel.