> This is part 1 of 7 of the full documentation (pages 1–100 of 359).
> The content is paginated: fetch every part to see all of it.
> Next part: https://docs.concurrence.com/llms-full.txt/1
> Page index: https://docs.concurrence.com/llms.txt

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.concurrence.com/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

---

# Concurrence Platform

Evaluate connected healthcare workflows, fit with your existing systems, implementation responsibilities, and evidence of completed work.

Concurrence is a healthcare data and AI platform for connecting patient interactions, agent workflows, and human operations. Start with a result that matters to your team: a confirmed appointment change, information available to the responsible care team, or an exception resolved by an operator.

Build the evaluation around your existing systems and one defined workflow. Identify the context it needs, the actions it can take, and the evidence of completion. Then assess what another workflow can reuse. [What Concurrence Does](https://docs.concurrence.com/platform-overview/what-amigo-does) explains where the platform fits.

## Choose Your Path

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><a href="https://docs.concurrence.com/platform-overview/evaluating-amigo"><strong>Evaluate Concurrence</strong></a></td><td>Compare ways to deliver a workflow, define success, and examine the evidence.</td></tr><tr><td><a href="https://docs.concurrence.com/developer-guide"><strong>Build an integration</strong></a></td><td>Choose access, run the starter, and verify an answer before connecting an external action.</td></tr><tr><td><a href="https://docs.concurrence.com/developer-guide/guides/operate-and-improve"><strong>Operate a deployment</strong></a></td><td>Inspect runs, reconcile outcomes, handle exceptions, and evaluate a proposed change.</td></tr><tr><td><a href="https://docs.concurrence.com/api-reference"><strong>Find an API contract</strong></a></td><td>Look up Platform or Classic operations, schemas, and upgrade guidance.</td></tr></tbody></table>

Plan a deployment with [Architecture and Deployment](https://docs.concurrence.com/platform-overview/architecture-and-deployment), or go directly to [Regional Coverage and Data Residency](https://docs.concurrence.com/platform-overview/data-residency).

For an existing service, try [First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation). To extend a deployment, use [Connect Another Workflow](https://docs.concurrence.com/data/connect-another-workflow).

## Understand the System

New to the platform? [How a Call Works](https://docs.concurrence.com/platform-overview/how-a-call-works) follows one call from the channel through the service, Context Graph, tools, safety layers, transfer, run record, and evals.

For a technical deep dive, follow [Data Architecture](https://docs.concurrence.com/data/data-architecture) from source access through shared state, clinical meaning, authorized action, and verification.

The Health World Model connects source records into shared patient and operational context. Applications, including agents, can use that context and contribute observations through configured integrations. Teams define each application's permissions, supervise its actions, and evaluate the results.

A useful deployment brings these pieces together. An agent rescheduling an appointment needs the right patient context, current availability, permission to make the change, confirmation from the scheduling system, and a person to handle exceptions. The conversation is one part of the work.

A second workflow can reuse authorized connections, identity mappings, and source-linked context from the first while keeping its own permissions and transactions. The [Shared Context and Applications](https://docs.concurrence.com/platform-overview/shared-context-and-applications) map shows how the pieces fit together.

Prefer a concrete example? [Patient Context Walkthrough](https://docs.concurrence.com/data/patient-context-walkthrough) follows shared patient context from a clinician-reviewed note to a confirmed booking, with source evidence and ownership at each step.

<details>

<summary>Read the concepts in order</summary>

1. [How a Call Works](https://docs.concurrence.com/platform-overview/how-a-call-works) - one call end to end, from channel to evals, with a link to each deep page.
2. [What Concurrence Does](https://docs.concurrence.com/platform-overview/what-amigo-does) - the product, the problem it addresses, and where it fits in an existing organization.
3. [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts) - how workspaces, world-model data, services, agents, Context Graphs, and runs relate.
4. [Shared Context and Applications](https://docs.concurrence.com/platform-overview/shared-context-and-applications) - a visual map of the data foundation, events, and application ownership.
5. [How It Works](https://docs.concurrence.com/platform-overview/how-it-works) - follow an appointment change from source data to a confirmed outcome and later evaluation.
6. [Design Principles](https://docs.concurrence.com/platform-overview/design-principles) - the engineering choices and trade-offs behind that architecture.
7. [Operating Model](https://docs.concurrence.com/platform-overview/operating-model) - who defines the workflow, operates it, and decides what changes.
8. The Design pages - why the platform is built this way: [safety layers](https://docs.concurrence.com/design/safety-layers), [voice families](https://docs.concurrence.com/design/voice-families), [verified actions](https://docs.concurrence.com/design/verified-actions), and [provable releases](https://docs.concurrence.com/design/provable-releases).

</details>

## Follow Your Question

### Review an Enterprise Architecture

Follow [Architecture and Deployment](https://docs.concurrence.com/platform-overview/architecture-and-deployment) for a connected path from ownership and regional scope to implementation and release. Use the decision index below to jump to a specific question.

#### Architecture Decision Index <a href="#architecture-decision-index" id="architecture-decision-index"></a>

Use these pages together to decide where Concurrence fits in your application and data architecture. Record the selected arrangement in the [Technical Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet).

| Decision                                             | Read                                                                                                                                                                                                                | Leave with                                                                                    |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| What does our application own?                       | [Shared Context and Applications](https://docs.concurrence.com/platform-overview/shared-context-and-applications), then [Reference Deployment](https://docs.concurrence.com/platform-overview/reference-deployment) | Boundaries between shared context, application transactions, and authoritative source records |
| Where does each component run, and what can we move? | [Cloud Ownership and Integration Boundaries](https://docs.concurrence.com/platform-overview/cloud-ownership)                                                                                                        | Execution, data, operating-access, billing, and portability decisions                         |
| Which data crosses each boundary?                    | [Data Residency](https://docs.concurrence.com/platform-overview/data-residency) and [Compliance and Audit](https://docs.concurrence.com/operations-and-safety/compliance)                                           | Processing paths, access scope, retention questions, and review evidence                      |
| What is available for this deployment?               | [Capability and Availability](https://docs.concurrence.com/platform-overview/capability-availability) and [Healthcare Interoperability](https://docs.concurrence.com/data/healthcare-interoperability)              | Supported interfaces, prerequisites, and dependencies to confirm                              |
| What drives total cost and response time?            | [Cost and Latency Optimization](https://docs.concurrence.com/platform-overview/cost-and-latency)                                                                                                                    | Cost categories, measurement boundaries, and workload assumptions                             |
| Who approves, releases, and operates it?             | [Operating Model](https://docs.concurrence.com/platform-overview/operating-model) and [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model)                                           | Named responsibilities, release evidence, and recovery ownership                              |

### Explore a Capability

| Your question                                                      | Continue here                                                                                                                                                                                                                                                                  |
| ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| How does Concurrence represent conflicting or incomplete records?  | [World Model](https://docs.concurrence.com/data/world-model), then [Connectors and EHR](https://docs.concurrence.com/data/connectors-and-ehr)                                                                                                                                  |
| How can a later interaction use what a patient has already shared? | [Memory](https://docs.concurrence.com/agent/memory), then [Evaluate Memory](https://docs.concurrence.com/platform-overview/evaluating-amigo#evaluate-memory-on-tasks-that-need-continuity)                                                                                     |
| How is an agent configured and constrained?                        | [Agents](https://docs.concurrence.com/agent/agents), [Context Graphs](https://docs.concurrence.com/agent/context-graphs), and [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety)                                                              |
| How does a workflow reach a patient or operator?                   | [Channels](https://docs.concurrence.com/channels/conversations) and [Operators and Escalation](https://docs.concurrence.com/operations-and-safety/operators)                                                                                                                   |
| How do we establish that it works and release a change?            | [Testing and Evaluation](https://docs.concurrence.com/testing/testing), [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model), and [Improving Agent Behavior](https://docs.concurrence.com/agent/pattern-discovery-and-reuse)                    |
| Where does data go, and what can we inspect?                       | [Data Residency](https://docs.concurrence.com/platform-overview/data-residency), [Compliance and Audit](https://docs.concurrence.com/operations-and-safety/compliance), and [Intelligence and Analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence) |
| How do we understand workflow results and choose what to improve?  | [Intelligence and Analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence), then [Improving Agent Behavior](https://docs.concurrence.com/agent/pattern-discovery-and-reuse)                                                                            |
| What evidence supports a deployment decision?                      | [Evaluating Concurrence](https://docs.concurrence.com/platform-overview/evaluating-amigo)                                                                                                                                                                                      |

The [healthcare use cases](https://docs.concurrence.com/use-cases/use-cases) apply these concepts to specific workflows. They are design patterns. Provisioning, integrations, and operating decisions determine the deployed behavior.

For the architecture thesis, read [Reasoning Architecture](https://docs.concurrence.com/agent/universal-reasoning): how software defines the problem, data supplies evidence, and exact programs, fast decisions, and deliberative models divide the work.

## Concepts, Implementation, and Reference

This space explains behavior, architecture, and operating boundaries. The [Developer Guide](https://docs.concurrence.com/developer-guide) provides authentication, endpoint contracts, SDK guidance, and integration examples. Start its [Getting Started path](https://docs.concurrence.com/developer-guide/getting-started) when you are ready to implement. The [API Reference and Change Logs](https://docs.concurrence.com/api-reference) provide generated operation schemas and historical changes. The [Glossary](https://docs.concurrence.com/reference/glossary) is a lookup reference, and [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts) explains the relationships behind the names.

Unless a page says otherwise, these concepts describe the Platform API. The Classic API remains supported for existing integrations and has its own resources and contracts. Use the API named in the implementation guide for your deployment.

## Read Capability Claims in Context

A documented interface can require provisioning, configuration, or a particular runtime. The [capability matrix](https://docs.concurrence.com/platform-overview/capability-availability) distinguishes those requirements from private previews. Confirm the capabilities needed for your deployment before committing to scope or timing.

When evaluating a deployment, trace the claim to its prerequisites and observable result. A recorded request, a completed agent turn, a delivered message, and a confirmed external change are different pieces of evidence.

{% hint style="info" %}
**Integration identifiers.** Classic API hosts, SDK packages and imports, and other integration identifiers use the names shown in their contracts, including `amigo`. See [Rebrand and Compatibility](https://docs.concurrence.com/reference/concurrence-rebrand).
{% endhint %}


# How a Call Works

Follow one call end to end: channel, service and voice family, Context Graph state, tools and records, safety layers, transfer, run record, and evals.

This page follows one phone call from the first ring to the evidence a team reviews afterward. Each step names the part of Concurrence that acts, what it decides, and the page that explains it in depth. Read it first if you want one mental model before the detailed chapters.

The example is a patient calling a clinic line to move an appointment. Text conversations follow the same path apart from the voice steps, and the differences are noted where they matter.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-ab877eab963cc38621ccc481f182d3930340fb1b%2Fhow-a-call-works.svg?alt=media" alt="A channel starts the call and the service sets its runtime. A Context Graph state guides each turn, tools read and write records after caller verification, and safety layers act on replies. A transfer or an operator can take the call, the run records what ran, and evals and simulations test the result."><figcaption><p>One call, eight steps. Each step links to its owning page below.</p></figcaption></figure>

## 1. A Channel Starts the Conversation

A conversation reaches Concurrence through a channel: a phone call to a provisioned number, an SMS or other managed message, a text conversation from your web application, or a voice session from your own app. Each channel has its own identity, consent, delivery, and lifecycle rules, so a working text client says nothing about SMS delivery or phone routing.

For a phone call, the number is routed to exactly one service. A matching phone number points to a candidate patient record. It is not proof of who is speaking.

**Go deeper:** [Channels Overview](https://docs.concurrence.com/channels/conversations), [Phone](https://docs.concurrence.com/channels/voice), [Text Sessions](https://docs.concurrence.com/channels/text-sessions), [SMS](https://docs.concurrence.com/channels/sms), and [Run a Voice Session in Your App](https://docs.concurrence.com/developer-guide/guides/app-voice-session).

## 2. The Service Selects the Agent, Graph, and Voice Family

The service is the unit that runs. It binds an agent (identity and guidance), a Context Graph (the workflow), the tools the workflow can use, and the voice settings. Version sets can pin the agent and graph versions the service resolves, so a release is a deliberate change of pins.

For voice, the service chooses one of five voice families with `voice_config.session_provider`:

| Family                | How it runs a call                                                                                                                                                                |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `concurrence` cascade | Separate speech recognition, Concurrence reasoning, and speech generation, with multi-state graphs, warm transfer, outbound calls, and operator takeover on supported phone calls |
| `gpt_realtime`        | A speech-to-speech model on one action state or a graph of 2 to 12 action states                                                                                                  |
| `eleven_realtime`     | A speech-to-speech session in an ElevenLabs voice on exactly one action state                                                                                                     |
| `gpt_live`            | Realtime speech that delegates tool requests to Concurrence reasoning on multi-state graphs, in US workspaces                                                                     |
| `grok_voice`          | A speech-to-speech session in a built-in Grok voice on exactly one action state                                                                                                   |

The families share the service contract, but their channels, regions, graph support, transfers, and safety coverage differ. Check the family before you rely on a control.

**Go deeper:** [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts), [Voice Families](https://docs.concurrence.com/channels/voice#voice-families), [Choosing a Realtime Voice Family](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#choosing-a-realtime-voice-family), and [Voice Families as Swappable Runtimes](https://docs.concurrence.com/design/voice-families).

## 3. A Context Graph State Guides Each Turn

The call opens with an AI and recording notice, then the agent works from the current Context Graph state. A state carries an objective, guidance, boundary constraints, the tools it may call, and the exits that move the conversation on. Context Graphs accept action, decision, annotation, and data-collection states.

The graph makes the intended workflow reviewable. It does not make model output deterministic: on every runtime, the model can still miss an exit or misread a request.

**Go deeper:** [Context Graphs](https://docs.concurrence.com/agent/context-graphs), [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine), and [Audio Pipeline](https://docs.concurrence.com/channels/voice/audio-pipeline).

## 4. Tools Read and Write Through Checked Paths

To move the appointment, the agent needs the patient's record and the scheduling system.

* **Caller verification.** A caller matched by phone number starts unverified, and built-in record reads return `verification_required`. The record loads only after the caller's full name and date of birth match exactly one record through `world_confirm_patient_identity`. After that, built-in record reads return only the caller's own record or a household member's that names them.
* **World model reads.** The world model supplies source-linked context. Its projections are asynchronous, so a write that was just accepted may not be queryable yet.
* **Integration actions.** The appointment change goes through a configured integration endpoint. The endpoint's own result is the evidence of what the destination accepted. A write with no settling answer reports `"outcome": "unknown"` and is not sent again in that conversation.
* **Context bindings.** A value your application supplies at conversation start can fill a tool parameter directly, so the model doesn't supply that value.

**Go deeper:** [Clinical Tools](https://docs.concurrence.com/agent/clinical-tools), [Platform Functions](https://docs.concurrence.com/agent/platform-functions), [World Model](https://docs.concurrence.com/data/world-model), [Caller Verification](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#caller-verification), and [Verified Actions Over the World Model](https://docs.concurrence.com/design/verified-actions).

## 5. Safety Layers Act Around the Model

Several controls run beside the model rather than inside its prompt. Which ones apply depends on the runtime and channel:

* **Emergency recognition.** On `gpt_realtime`, a caller line recognized as describing a medical emergency or self-harm, in English or Spanish, cuts off the agent's reply, and the model speaks an authored emergency script first. GPT-Live and Grok Voice play their emergency scripts from prerecorded audio. On platform-managed voice, the agent's own reply plays.
* **Emergency calls stay open.** Once a caller describes a medical emergency or self-harm, the agent doesn't end the call on platform-managed voice or `gpt_realtime`, unless a `gpt_realtime` service sets `medical_emergency_ending: end_after_script` and the emergency is medical and described in English.
* **Crisis lines.** The agent's instructions carry the deployment region's crisis resource. On text, a message that matches the self-harm patterns gets an authored script with the crisis line where one exists and the emergency number.
* **Reply checks.** On both voice runtimes, a pattern check and a model check review each reply, and a stopped reply is cut off and corrected. A claim that a booking or message is done needs a matching write that succeeded. On text, the pattern check only logs.
* **Safe exit.** When a platform-managed or `gpt_realtime` call can't set up or a turn gets no reply, the agent plays fixed audio and transfers to the service's `fallback_to` or fixed forwarding number, or closes the call.

Recognition covers a limited set of phrasings and can miss others. The crisis rule covers suicidal thoughts, self-harm, and an overdose. Any other missed emergency rests on the agent's own instructions.

**Go deeper:** [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety), [Reply Checks](https://docs.concurrence.com/operations-and-safety/runtime-safety#reply-checks), and [Safety Layers That Don't Depend on the Model](https://docs.concurrence.com/design/safety-layers).

## 6. A Person Can Take the Call

When the caller asks for a person, the agent is told to transfer when it can, to take a message only through a tool that records one, and otherwise to explain how to reach the team.

* **Transfer.** The service's `voice_config.forwarding` block enables `forward_call` and selects warm or cold transfer. In dynamic mode, the agent can dial only numbers in `approved_destinations`, and each number must also be on the line's forwarding allowlist. Public emergency and N11 short codes are refused as transfer destinations. A transfer that can't connect returns the caller to the agent.
* **Operator takeover.** On supported platform-managed phone calls, an operator can join by phone, listen, take over, and hand the call back. Text runs support takeover through the operator APIs, a beta feature a workspace must be enabled for. The realtime families don't support operator takeover.

**Go deeper:** [Operators and Escalation](https://docs.concurrence.com/operations-and-safety/operators) and [Call Forwarding](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#call-forwarding).

## 7. The Run Records What Ran

Each conversation appears as a run in the unified Runs inventory. The run reports `session_provider`, the runtime that handled it, and a `manifest` with the agent and graph versions, the version set, and the models the first session started with. Depending on the runtime and on successful persistence, the record holds turns with timing, tool calls with inputs and outputs, state transitions, and escalation events. Recordings and trace analysis are separate artifacts with their own availability.

A missing artifact is a gap to investigate, not proof that nothing happened.

**Go deeper:** [Runs](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs), [Call Recordings](https://docs.concurrence.com/channels/voice/recordings), [Call Intelligence](https://docs.concurrence.com/intelligence-and-analytics/intelligence/call-intelligence), and [Call Trace Analysis](https://docs.concurrence.com/developer-guide/platform-api/safety/call-trace-analysis).

## 8. Evals and Simulations Test the Result

Before a release, simulations run the same reasoning path against synthetic callers. Tools run in simulation mode and return a `dry_run` result, except that a launch can run chosen reads for real or return configured results. Writes never run for real. After a release, production evals can score completed conversations against the workspace's active definitions on a best-effort basis.

Neither result moves a release on its own. A person reviews the evidence and changes the version-set pin.

**Go deeper:** [Testing Overview](https://docs.concurrence.com/testing/testing), [Simulations](https://docs.concurrence.com/testing/testing/simulations), [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model), and [Provable Releases](https://docs.concurrence.com/design/provable-releases).

## Next

Continue with [What Concurrence Does](https://docs.concurrence.com/platform-overview/what-amigo-does) for product scope, or [How It Works](https://docs.concurrence.com/platform-overview/how-it-works) for the same appointment change traced through data, configuration, and evidence boundaries. To build one yourself, follow the [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path) path in the Developer Guide.


# What Concurrence Does

Connect healthcare workflows across existing systems, evaluate a first outcome, and understand the data, agent, and operational capabilities behind it.

Concurrence helps healthcare teams carry a request through the systems and people needed to complete it. Evaluate a deployment by the work it completes: an appointment changed and confirmed, information collected and available to the responsible team, or an exception resolved by an operator. Conversation quality is one part of that assessment.

Existing systems retain authority over the records and operations they own. Scope Concurrence around the workflow that needs to connect them, including its data access, permitted actions, and human handoffs. [Cloud Ownership and Integration Boundaries](https://docs.concurrence.com/platform-overview/cloud-ownership) explains how to review that fit with your architecture.

## The Problem the Platform Addresses

A scheduling application, a documentation tool, and a follow-up team can each perform their own task while the handoff between them still needs coordination. The receiving team needs relevant context, authority to take the next action, and a way to know whether the work finished.

Consider a patient trying to move an appointment. Their identity may be stored in one system, availability in another, and the reason for the change only in the conversation. A new time can become unavailable between lookup and booking. A request can be recorded successfully even when the scheduling system never accepts it.

The workflow depends on accurate identity, current information, permission to act, and confirmation from the scheduling system. Those dependencies remain even when the conversation itself works well.

Concurrence provides configuration, data access, execution, and operational tools for connecting those steps. The implementation team defines the required sources, verification rules, permitted actions, and exception handling.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-215465f9612d4e733e3dfabc0a179d3c8d82b8af%2Fworkflow-value-map.svg?alt=media" alt="In an illustrative appointment-change workflow, a patient request enters a configured Concurrence workflow with identity checks, availability lookup, and permitted actions. An integration requests a change from the scheduling system, which accepts or rejects it. An authored handoff routes an exception to a human team."><figcaption><p>Illustrative scheduling workflow. The scheduling system confirms the change; the implementation team defines the permitted actions and human handoffs.</p></figcaption></figure>

## Start with a Workflow You Can Verify

Choose a recurring task with an operating owner and an observable result. Use the [healthcare workflow guides](https://docs.concurrence.com/use-cases/use-cases) to identify the required sources, actions, and completion evidence. Agree on the [implementation deliverables](https://docs.concurrence.com/platform-overview/operating-model#agree-on-implementation-deliverables) and customer responsibilities alongside the workflow scope.

Three questions help establish whether the broader platform is useful to that task:

* **Does the work continue across interactions?** [Memory](https://docs.concurrence.com/agent/memory) explains how preferences and reported barriers can inform later interactions when processing and access permit. Test a correction as well as a remembered detail. Current operational facts still need authoritative retrieval.
* **Does another application need the result?** Follow [Patient Context Walkthrough](https://docs.concurrence.com/data/patient-context-walkthrough) to examine a configured handoff from a reviewed note to a confirmed booking. Identify what the receiving application reuses and what it must own.
* **Can the team see what to improve?** Use [analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence) alongside external outcome records to examine completed work, unresolved cases, and human handling. Connect a finding to a tested change through [Improving Agent Behavior](https://docs.concurrence.com/agent/pattern-discovery-and-reuse).

Compare the same task, implementation effort, and ongoing responsibilities across alternatives using [Evaluating Concurrence](https://docs.concurrence.com/platform-overview/evaluating-amigo#compare-ways-to-deliver-the-workflow).

## A Shared Data Foundation

Concurrence is a healthcare data and AI platform connecting patient context, specialized applications, and human operations. The Health World Model preserves source-linked understanding across interactions. Agents and customer applications can connect to that foundation through configured interfaces and integrations while owning the work they perform.

The [world model](https://docs.concurrence.com/data/world-model) retains supported source observations and derives current views of entities such as patients, practitioners, and appointments. Provenance records where an observation came from. Confidence classes and projection rules help resolve competing observations without treating all inputs as equally authoritative.

Agents, operators, customer applications, and analysts can use this data through their supported interfaces. Each interface has its own permissions, available records, and freshness. Source mappings and business definitions remain part of the integration design.

Source history remains important when records disagree. A patient's report of a new address can be retained even while a stronger source still supplies the projected address. The workflow then determines whether to verify the report or request an external update.

## Configured Agent Workflows

Agent workflows are one way to use this foundation. Other applications own their tasks and transactions. They can read shared context and contribute observations without sharing one operational database or one decision policy. The [Shared Context and Applications](https://docs.concurrence.com/platform-overview/shared-context-and-applications) map explains these boundaries.

An [agent](https://docs.concurrence.com/agent/agents) supplies identity and general guidance. A [Context Graph](https://docs.concurrence.com/agent/context-graphs) organizes the workflow into objectives, states, transitions, and eligible tools. A service brings the selected configuration into an operating context, with channel and runtime settings.

The runtime combines that configuration with the current interaction and selected data. It can retrieve additional facts, call supported tools, respond, or use an authored escalation path. Model-driven decisions remain probabilistic. Permissions and action validation belong in enforced controls as well as in the workflow's instructions.

[Voice, text, messaging, and Surfaces](https://docs.concurrence.com/channels/conversations) deliver different parts of a workflow. Their capabilities, identity rules, and delivery semantics differ. Reusing agent configuration across channels still requires testing each channel and provisioning the relevant resources.

## Operations and Improvement

A deployment also needs people who can inspect and act on exceptions. [Operators](https://docs.concurrence.com/operations-and-safety/operators) can monitor and intervene in eligible runs. Supported approval workflows can require a decision on a specific proposed action. External systems report their own delivery or mutation outcomes.

[Testing](https://docs.concurrence.com/testing/testing), [analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence), and [configuration versions](https://docs.concurrence.com/platform-overview/deployment-model) support ongoing improvement of the deployment. Teams investigate evidence, author a candidate change, validate it, and make an explicit release decision. Production observations do not autonomously rewrite or promote the agent.

The next application can reuse the foundation built for the first. Evaluate that reuse through an accepted second outcome, the integration effort it requires, and how coherently the workflows operate together. [Connect Another Workflow](https://docs.concurrence.com/data/connect-another-workflow) turns that evaluation into a scoped plan.

## How Concurrence Fits into Your Organization <a href="#how-amigo-fits-into-your-organization" id="how-amigo-fits-into-your-organization"></a>

Concurrence supplies the configured agent, supported data and action interfaces, and operational evidence. The deployment team connects those capabilities to the organization's processes. Name who delivers and operates each part in the implementation agreement.

The Developer Console supports configuration, testing, and operation. APIs and provisioned data access let customer teams integrate their own applications and reporting. Integration coverage, custom implementation work, and access requirements should be confirmed for each interface.

The [operating model](https://docs.concurrence.com/platform-overview/operating-model) assigns responsibility for clinical and operational policy, source access, consent, exception handling, and release decisions. The [deployment model](https://docs.concurrence.com/platform-overview/deployment-model) describes how to move from a baseline to a reviewed release. Hosting, residency, retention, and external data access follow the arrangement agreed for that deployment.

Continue with [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts) for the system's vocabulary, then [How It Works](https://docs.concurrence.com/platform-overview/how-it-works) for the complete interaction lifecycle.


# Core Concepts

The relationships between workspace data, deployed configuration, live interactions, and outcome evidence in the Concurrence Platform.

Concurrence separates workspace data, workflow configuration, and execution records. Data supplies context, configuration defines the intended work, and execution records show what happened. Each has its own lifecycle.

This page introduces the Platform concepts. The [Glossary](https://docs.concurrence.com/reference/glossary) provides shorter definitions, and the [Developer Guide](https://docs.concurrence.com/developer-guide) maps them to API resources.

Start with the [Shared Context and Applications](https://docs.concurrence.com/platform-overview/shared-context-and-applications) map to distinguish the data platform, change events, and transactional applications. The agent configuration and execution concepts below describe one application family. They are not the lifecycle contract for every application on the foundation.

## Workspace: The Shared Boundary

A [workspace](https://docs.concurrence.com/data/workspaces) scopes data, configuration, and access. A service, a patient entity, and an operator's permissions are evaluated within that boundary. Organizations use separate workspaces when they need separate access, configuration, or operational control.

A workspace is not a workflow or a version of an agent. One workspace can contain several services. Creating a workspace also does not provision every channel or establish a particular hosting, retention, or compliance arrangement.

## Data: Records, Events, and Projections

| Concept                       | What it represents                                                             | Example                                                       |
| ----------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------- |
| **Data source**               | A configured origin of supported records                                       | A scheduling-system connection or a registered intake source  |
| **Entity**                    | A modeled person or resource within the workspace                              | A patient, practitioner, or appointment                       |
| **World-model event**         | A source-attributed observation or recorded change                             | A patient reports a new contact preference                    |
| **Projection**                | A derived read view computed from relevant retained inputs                     | The current projected patient context                         |
| **Provenance and confidence** | Where an observation came from and how its source is ranked on supported paths | Distinguishing a patient report from a verified source record |

The [world model](https://docs.concurrence.com/data/world-model) is the shared event and entity layer. A projection gives consumers a usable read without making them reconstruct the entire history. Projection is asynchronous, and some derived products use their own processing paths. An accepted event can exist before a later read reflects it.

Entity identity also needs an explicit basis. A recognized phone number can help resolve a caller binding; it is not, by itself, the workflow's identity verification. See [Connectors and EHR](https://docs.concurrence.com/data/connectors-and-ehr#entity-resolution) for the current resolution and binding boundaries.

## Configuration: What a Service Deploys

| Concept                          | Responsibility                                                                                                                 |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **Agent**                        | Identity, general behavioral guidance, and communication style                                                                 |
| **Context Graph**                | Workflow objectives, states, transitions, state guidance, and tool bindings                                                    |
| **Tool**                         | A specific operation the runtime can invoke under its access and execution rules                                               |
| **Skill**                        | A prompt-driven companion definition that can use its declared tools. Its state binding controls execution and result handling |
| **Service**                      | The deployment configuration connecting selected agent and Context Graph versions with runtime and channel settings            |
| **Version set**                  | A named selection of component versions and supported runtime preferences for a service                                        |
| **Channel use case and binding** | Provisioned channel identity and purpose, connected to the service that handles that route                                     |

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-4175e90e8960c76e25aa841cb2c9e42d753d5c88%2Fservice-concept-map.svg?alt=media" alt="A provisioned channel use case binds a service. The service selects a version set and runtime settings; the version set selects agent and Context Graph versions, and states bind workflow tools and Skills."><figcaption><p>Supported runtime tools may also come from service and channel configuration.</p></figcaption></figure>

This is a configuration relationship, not a processing sequence. A deployed interaction combines these pieces. State bindings govern workflow tools, while supported runtime and platform tools can also be exposed through service and channel configuration.

Agent guidance and Context Graph instructions steer model behavior. Server-side authorization and tool validation determine which operations may execute. A tool's presence in a prompt does not grant new permissions.

These definitions separate the agent's perspective from the problem it is solving. The same agent can work through different Context Graphs, and a graph can be evaluated with different agent guidance. The [reasoning engine](https://docs.concurrence.com/agent/reasoning-engine#what-the-designer-controls) combines them with current context and runtime controls during execution.

Version sets can pin agent and Context Graph versions. An unpinned component can resolve to a newer version when configuration is loaded. Source data, generated memory, integrations, and other settings have their own lifecycles. Pinning a graph does not freeze the entire environment. See [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model).

## Execution: Conversations, Sessions, and Runs

A **conversation** holds an interaction's history and lifecycle on a supported channel. A **session** is the runtime context processing the interaction. Continuity, termination, and retained configuration depend on the selected path. A new message does not universally create a new session or reload all configuration.

A **run** is the operational record used to inspect supported execution in the unified Runs surface. Run inventory and detail connect the operator or developer to the underlying interaction. Listing a run does not mean that its kind can be started.

### Configuration in a Running Interaction

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-57f8b48e7b16a11cf62773ae06bc4b899be25650%2Fconfiguration-runtime-map.svg?alt=media" alt="A service selects a version set, which selects agent and Context Graph versions. The agent supplies guidance; graph states bind workflow tools and Skills. At session load, selected configuration informs execution. Requests and current context feed a reasoning turn. The runtime can produce a reply for channel delivery or invoke an eligible tool; tool results can return to reasoning without another user message. Tool activity provides evidence under the binding persistence policy. Service and channel configuration can also expose supported tools. This text-path map does not imply identical voice orchestration or deterministic model behavior."><figcaption><p>The selected configuration informs the session. This text-path view shows the tool-result loop and separates a generated reply from channel delivery.</p></figcaption></figure>

A tool result can resume reasoning while the interaction remains open. Its binding determines execution, delivery, and persistence behavior. Supported tools can also come from service and channel configuration. The arrows show dependencies and possible flows, not a fixed model sequence. Voice runtimes use their own orchestration.

The [reasoning engine](https://docs.concurrence.com/agent/reasoning-engine) uses signals for inputs and typed effects for outputs. An effect can request delivery or report work already executed, such as a tool invocation. It is not always an uncommitted action. Text and simulation can expose materialized effects. Native voice uses navigation and engagement prompts within its own streaming pipeline, and provider-owned realtime voice has a separate conversation lifecycle. Shared definitions do not imply identical execution across channels. A generated reply and a delivered reply are separate outcomes.

Input, reasoning, actions, and delivery can have different lifetimes. A tool result can continue work without another user message, while a new request can arrive during a lookup. Tool bindings and channel controls determine how that overlap is handled. Stopping a response does not undo an external action.

## Context: Current Facts and Memory

World-model context supplies selected entity information. [Memory](https://docs.concurrence.com/agent/memory) derives useful observations and bounded models from earlier interactions, with scoped recall when more detail is needed. Conversation history supplies what has happened in the current thread, subject to that runtime's context handling. Together with state guidance and tool results, these inputs form the agent's working context.

These inputs serve different purposes. A remembered preference can help the agent communicate. A current scheduling lookup is needed when the next action depends on live availability. Generated memory and summaries can be incomplete and do not replace authoritative retrieval.

A Context Graph describes how work proceeds. The world model describes entities, evidence, and relationships. A workflow can consult related records without its states mirroring those relationships. Memory updates the context available for future reasoning; it does not train model weights or automatically rewrite the agent or graph definition.

Proposed extensions to [object memory](https://docs.concurrence.com/agent/memory#design-direction-object-memory) and [execution coordination](https://docs.concurrence.com/agent/reasoning-engine#design-direction-universal-reasoning-harness) are documented separately as design direction. Use the current person-memory and channel contracts when scoping a deployment.

## Evidence: What a Result Establishes

The meaning of success depends on the boundary being observed:

* A retained observation shows what was recorded and its source.
* A tool result shows the result exposed by that operation.
* A provider receipt supplies the delivery evidence available for that channel.
* A target acknowledgement or supported read-back can confirm an external change.
* An evaluation scores the evidence available under its definition.

Use those records together to investigate an outcome. A completed run or a favorable evaluation does not establish every downstream result. [How It Works](https://docs.concurrence.com/platform-overview/how-it-works) follows these boundaries through one workflow.


# Shared Context and Applications

How shared patient context, change events, and specialized applications work together without sharing one transaction or one set of permissions.

Concurrence connects useful healthcare applications through a persistent data foundation. With the appropriate publication integrations, a clinician-reviewed note, a patient conversation, and a scheduling result can contribute different evidence about the same patient. The next authorized application can use that context instead of reconstructing the history from scratch.

The Health World Model is a time-aware representation of entities, relationships, observations, and current state. It records what the organization knows from connected sources, including gaps and disagreements. It is not a claim to a complete patient record or a model that independently predicts disease progression.

## Three Parts, Different Responsibilities

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-5db75eeb952f6748d7a098c57d9c3abb66e1223b%2Fshared-context-map.svg?alt=media" alt="The data platform retains evidence and produces shared views. Change events notify applications. Applications also read scoped views directly and publish observations and outcomes back. Each application owns its work and transactions."><figcaption><p>Read context, receive changes, and publish outcomes are different interactions. This is an ownership map, not one atomic transaction.</p></figcaption></figure>

| Part                           | What it owns                                                           | What a consumer must still check                                           |
| ------------------------------ | ---------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| **Data platform**              | Source evidence, entity identity, projection rules, and reusable views | Relevant source coverage, provenance, access, and freshness                |
| **Change events**              | Communication between producers and interested consumers               | The selected interface's delivery, ordering, replay, and recovery contract |
| **Transactional applications** | Sessions, drafts, tasks, approvals, decisions, and actions             | Their own business rules, authoritative state, and evidence of completion  |

A clinical documentation application owns recording and note review. An outreach application owns contact attempts and delivery handling. A follow-up application owns its task and scheduling request. Shared context connects these applications. It does not replace their operational state.

The external system retains authority over the records it owns. A scheduling request is not a confirmed appointment until the target supplies the required confirmation. See [How It Works](https://docs.concurrence.com/platform-overview/how-it-works) for that action boundary.

## Follow One Handoff

In the integration pattern illustrated by [Patient Context Walkthrough](https://docs.concurrence.com/data/patient-context-walkthrough), a clinician approves a care-team check-in. A configured publisher contributes the reviewed instruction with its patient and source references. The data platform connects it to the patient's history. The follow-up application reads that context, checks eligibility and current availability, and requests a booking. Confirmation becomes evidence for later work.

This example assumes separately configured publication and follow-up integrations. Finalizing a clinical note does not itself publish a world-model observation or start follow-up work. Verify the selected integration's mapping, access, trigger, and recovery behavior before relying on the handoff.

Each handoff needs an owner and an observable result:

1. **Publish:** identify the patient, source, relevant times, and reviewed instruction.
2. **Read:** verify the required evidence is available to the consumer and fresh enough for its decision.
3. **Act:** apply the receiving application's permissions, review policy, and transaction rules.
4. **Reconcile:** distinguish a proposal, an attempted action, and a source-confirmed outcome.

An event can tell an application that something changed before its shared view is updated. A received event does not establish that every consumer finished processing it. If two applications must not perform conflicting actions, enforce that rule in the authoritative service at the point of mutation. A notification alone is not a lock.

## Reconcile at the Owning Boundary

Three different questions can be called reconciliation. Selecting a value from competing observations belongs to the relevant projection. Accepting a change to a task belongs to the application that owns that task. Confirming an external mutation belongs to the destination's action contract.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-fd9fa92b09dc336f35571c88fa7468817d3d77d1%2Fconcurrent-workflow-changes.svg?alt=media" alt="A clinician, agent, and background job submit proposed task changes to the same application authority. The application checks current state before accepting a change. Shared-context publication and external action each require separate confirmation."><figcaption><p>Recommended application pattern: one authority checks competing mutations. Publication and external completion remain separate outcomes.</p></figcaption></figure>

For example, a clinician, an agent, and a scheduled job can each try to update the same referral task. In an application that uses version-checked updates, all three submit the version they read. The application accepts a permitted change only if that version still matches. A competing update causes the client to reload, re-evaluate, or request review. Verify that the chosen application API implements this check before relying on the pattern.

Keep the user's pending edit visible without presenting it as a confirmed shared fact. Distinguish a local draft, an application-accepted change, and a change visible in shared context. If a destination must also be updated, show its confirmation separately. A successful application save does not commit all these boundaries atomically.

A patient report during a conversation can inform the next question while the selected shared value remains different. Retain the report's source and apply the workflow's verification policy before consequential use. A higher source rank or a fresh conversation alone does not resolve an operational conflict.

When work runs asynchronously, identify which next action depends on its result. The application can allow other interaction while withholding that action. On completion, check that the result still applies to the current task. A canceled or changed request can make an otherwise successful result unsuitable. [Context Graphs](https://docs.concurrence.com/agent/context-graphs) organize the conversation, while the responsible tool or application enforces mutation preconditions.

## What Carries Forward

The reusable foundation includes authorized source connections, entity mappings, source-linked observations, [clinical data definitions](https://docs.concurrence.com/data/clinical-data-contracts), and suitable [platform functions](https://docs.concurrence.com/agent/platform-functions). Reuse does not require all applications to use the same prompts, interface, or decision rules.

For example, a clinician may inspect the full evidence behind a reviewed instruction while an outreach task uses only the patient reference, permitted contact details, and approved next step. A population query needs its own cohort definition, consistent units and codes, and explicit handling of missing records. A shared patient view alone does not establish a valid clinical comparison.

Shared infrastructure also does not mean shared visibility across customers. Each recipient needs an authorized purpose and access scope. Reading patient context does not grant permission to write to an EHR, send a message, or use it for a different purpose.

## Choose the Right Integration Boundary

A direct source lookup is useful when a decision needs an authoritative current value, such as a bookable slot. Shared context is useful when work needs continuity across sessions, evidence from several sources, correction history, or reuse by another application. A workflow can use both: shared history for context and a live source check before acting.

Do not measure platform reuse by the number of connected applications alone. Measure whether the next workflow reaches an accepted outcome with less incremental setup, while retaining the necessary access and recovery controls. Start with [Connect Another Workflow](https://docs.concurrence.com/data/connect-another-workflow), then record the evidence in the [Technical Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet).

## Continue by Task

* **Understand the patient story:** [Patient Context Walkthrough](https://docs.concurrence.com/data/patient-context-walkthrough).
* **Inspect data semantics:** [World Model](https://docs.concurrence.com/data/world-model), including source evidence, time, confidence, and projections.
* **Assign operating owners:** [Operating Model](https://docs.concurrence.com/platform-overview/operating-model).
* **Implement a supported interface:** [Developer Guide](https://docs.concurrence.com/developer-guide). This map does not define a universal event API.


# How It Works

Follow one appointment change through data retrieval, agent decisions, external action, human exceptions, and outcome evaluation.

A deployed workflow connects data, decisions, actions, and evidence. This page follows a patient rescheduling an appointment to show where each part of Concurrence participates. The example assumes a configured scheduling integration and an approved workflow. It is not a default flow enabled in every workspace.

Read [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts) first if services, Context Graphs, or projections are new to you.

## System Architecture

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-2f34832e0cadbb0657ba6c731cd9936105f3082a%2Fworkflow-responsibilities.svg?alt=media" alt="A configured workflow uses selected inputs and definitions, dispatches eligible integration actions, and produces run evidence. External systems supply independent evidence of accepted changes."><figcaption><p>The runtime owns the conversation, and the destination owns the external outcome.</p></figcaption></figure>

The diagram shows logical responsibilities. The [reference deployment](https://docs.concurrence.com/platform-overview/reference-deployment) maps the application, Concurrence workspace, and external-system boundaries. Each direct integration call has its own contract and confirmation step.

For a published architecture example, read the September 23, 2026 Databricks partner article [How Concurrence governs clinical AI at a trillion-token scale with Unity Gateway](https://www.databricks.com/blog/how-concurrence-governs-clinical-ai-trillion-token-scale-unity-gateway). It describes how patient context, simulation, evaluations, and AI governance fit together. Its figures describe the environment at its publication date. Confirm the boundaries of your deployment through [Cloud Ownership and Integration Boundaries](https://docs.concurrence.com/platform-overview/cloud-ownership).

## Call Lifecycle

The patient calls to move Thursday's appointment to Friday. The same operational goal could arrive through another supported channel, but the channel's identity, consent, continuity, and delivery rules still apply.

### Workflow Sequence

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-6907e8d880d855a683c5dff4b1acfa9d31f2c4e7%2Fworkflow-sequence.svg?alt=media" alt="A patient requests an appointment change. The runtime loads the selected configuration, verifies the caller before built-in patient record access, and reads permitted context. A configured scheduling integration checks availability, the patient chooses a time, and the runtime requests the change. The target returns a confirmation or an uncertain result, which the runtime reports as the available outcome. Available run evidence and explicitly emitted world-model events have separate lifecycles; accepted events project asynchronously. A supported text integration write can require approval before dispatch; this is not a universal voice gate."><figcaption><p>Read downward for the interaction order; dashed arrows return an external result. The example assumes enabled caller verification and a configured scheduling integration. Timing is illustrative.</p></figcaption></figure>

The lanes identify who supplies each request or result. Patient choice, any required approval on a supported text path, and target-system confirmation establish different facts. An implementation must preserve an uncertain result until it can reconcile the destination. When a workflow publishes an observation into shared context, check that view separately from the conversation outcome.

### 1. Resolve the Route and Caller Context

The provisioned channel route selects a service. The runtime loads the relevant service, agent, and Context Graph configuration. A supported existing caller binding can resolve the associated workspace entity and provide selected projected context.

Recognition helps locate a record. The record reaches the agent only after the caller's stated name and date of birth match exactly one record, and the authored workflow determines any further verification before disclosure or action. If the caller cannot be resolved, the agent needs an approved lookup, clarification, or human fallback.

On the supported voice path, preparation can begin while the call rings. Speech recognition and speech synthesis carry the interaction once connected. See [Audio Pipeline](https://docs.concurrence.com/channels/voice/audio-pipeline) for timing, interruption, and provider behavior.

### 2. Establish What the Next Action Requires

The active [Context Graph](https://docs.concurrence.com/agent/context-graphs) state defines the objective and relevant guidance. The runtime combines it with the conversation, selected entity context, and available memory. The model can ask for missing information or invoke an eligible tool.

For this example, a projected appointment record establishes useful background. A supported scheduling lookup checks the availability needed for the proposed change. If the patient describes an appointment that conflicts with the available record, the workflow should resolve that conflict before requesting a mutation.

The graph makes the intended sequence and boundaries reviewable. Model-driven navigation remains probabilistic. Required permissions and action validation must be enforced by the corresponding runtime or tool.

### 3. Request the Change Through the Configured Path

After the patient chooses an available time, the agent invokes the permitted scheduling operation. Two common action paths need different treatment:

| Path                   | What happens                                                                              | What the workflow must observe                                          |
| ---------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| **Direct integration** | A configured tool calls an external endpoint under its authorization and validation rules | The endpoint's actual result, including an ambiguous or failed response |

Supported text integration calls can pause for conversation-scoped approval. This is not a universal approval gate covering all tools or channels. See [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety#write-safety).

Recording a request preserves intent. It does not confirm a booking. If delivery is asynchronous, the interaction needs an accurate pending response and a defined follow-up owner.

### 4. Confirm the Outcome or Handle the Exception

When the scheduling operation exposes a confirming acknowledgement or supported read-back, the agent can communicate the result it establishes. If the outcome is ambiguous, the workflow should preserve that uncertainty and route it for reconciliation. Blindly repeating a non-idempotent mutation can create a second change.

If a person needs to intervene, the [operator workflow](https://docs.concurrence.com/operations-and-safety/operators) supplies the supported controls for that channel. On eligible voice calls, an operator can join by phone, listen, take over, and hand control back. Transfer to an external destination is a different path with its own answer and failure behavior.

For a messaging follow-up, an accepted send, a final delivery receipt, and a patient response remain different outcomes. The applicable [channel guide](https://docs.concurrence.com/channels/conversations) defines the available evidence and prerequisites.

### 5. Retain Evidence and Update Read Views

The interaction can produce transcripts, tool activity, run records, source-attributed observations, and post-call artifacts. Each has its own production and retention conditions. Post-call summaries and intelligence are best-effort. The absence of an artifact needs to remain visible during review.

Accepted world-model observations can later appear in projected state. Generated memory may preserve relevant cross-session context through a separate process. A conversation ending does not mean every projection, summary, evaluation, or external write has completed.

## Measure the Whole Workflow

For the rescheduling example, separate these questions:

| Question                                        | Evidence to inspect                                                                   |
| ----------------------------------------------- | ------------------------------------------------------------------------------------- |
| Did the agent understand the requested change?  | Available transcript and evaluated interaction evidence                               |
| Did it use the intended process?                | Selected configuration, observed graph states, and recorded tool activity             |
| Did the scheduling system accept the change?    | The operation's acknowledgement, supported read-back, or reconciled destination state |
| Did the patient receive the confirmation?       | Channel delivery evidence and any subsequent patient response                         |
| Did unresolved work reach the responsible team? | The applicable handoff or review record and the team's disposition                    |

The final business outcome may require customer-system data beyond the conversation. Define that join before using a conversation score as a measure of completed work.

## Improve the Next Version

Operational evidence informs a separate engineering process. The team investigates a failure, changes the relevant data mapping, tool, graph, or instruction, and tests the candidate. An authorized release decision selects what runs next.

This [continuous-improvement loop](https://docs.concurrence.com/agent/pattern-discovery-and-reuse) preserves useful cases and evidence without automatically changing live policy. [Testing and Evaluation](https://docs.concurrence.com/testing/testing) explains what each test establishes, and [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model) explains version selection and release.


# Design Principles

The engineering trade-offs behind source-aware data, bounded workflows, explicit action confirmation, and measured improvement.

Concurrence's architecture is organized around the conditions a workflow needs to succeed: usable evidence, an allowed action, an observable result, and a way to improve the next attempt. The principles below connect those needs to the platform's design choices and their limits.

## 1. Preserve Evidence and Make Reads Useful

Healthcare records differ in freshness, completeness, and authority. A patient report and an external record can disagree without either becoming disposable. The world model retains supported observations with their source and derives current read views using explicit projection rules.

This separates recording evidence from selecting a value for use. Consumers can use a projection instead of resolving the whole history during each interaction, while retained provenance helps an investigator understand the result.

[Memory](https://docs.concurrence.com/agent/memory) applies the same principle to understanding that develops across interactions: observe useful information, consolidate a bounded model, and recall detail when the task needs it. Preserve the difference between what a person reported, what a source system recorded, and what a model inferred. Repeatedly summarizing an interpretation does not create independent supporting evidence.

The trade-off is that derived state has a freshness boundary. A write can be accepted before it appears in a projection, and a generated summary can omit detail. Workflows need explicit retrieval when a decision depends on facts that may have changed. See [World Model](https://docs.concurrence.com/data/world-model).

## 2. Compose Workflows Around Information Requirements

A Context Graph organizes work into objectives, transitions, and eligible operations. It lets an author specify what evidence is needed before moving on without scripting every sentence of the conversation. An agent supplies the broader identity and guidance. The service and runtime supply the operating configuration.

For scheduling, the meaningful transition is having enough verified information to request the permitted change. Counting questions asked is a weak substitute. Existing context can shorten the path, while conflicting information can require another lookup or a person.

Choose the degree of control for each part of the problem. Interpreting a request and explaining options benefit from model judgment. Checking a permission, validating an identifier, or enforcing an enabled approval gate belongs to the operation's control boundary. Declarative definitions make those choices reviewable, and the [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine#what-the-designer-controls) explains how they fit together.

Composition makes parts reusable and changes reviewable. It also means behavior depends on several parts at once. Reusing a graph on another channel or with different tools requires validation in that setting. Model-driven navigation remains probabilistic, even when the authored graph is explicit. See [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts) and [Context Graphs](https://docs.concurrence.com/agent/context-graphs).

## 3. Put Controls at the Boundary They Govern

An instruction describes intended behavior. Authorization determines who can perform an operation. Validation checks whether an operation is permitted with the supplied input. An observer records evidence. A human decision supplies the judgment assigned to that person.

Those controls can work together, but they establish different things. A prompt cannot grant an integration permission, and an observed guardrail verdict does not necessarily block a response. The [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety) control map identifies the current enforcement and observation boundaries.

External actions also need their own confirmation. Recording a requested appointment change establishes intent. The scheduling system's acknowledgement establishes the outcome its contract supports. Keeping these distinct makes failed and ambiguous work visible for reconciliation.

The cost is additional integration and operating work: define the result, handle ambiguity, and staff the fallback. That work is part of making a deployment reliable, not something a more confident agent response can replace.

## 4. Improve Through Comparable Evidence and Deliberate Releases

An interaction can reveal a missing source, an ineffective tool, an unclear workflow, or a behavior that needs changing. Retained runs, tests, and analytical evidence make those findings available to the team responsible for the next version.

This separates two loops. Execution uses the current definitions and available knowledge to handle today's work. Improvement evaluates that evidence and proposes better definitions or reusable views for later work. Selecting behavior in the background during one interaction belongs to execution. It is not by itself evidence of learning across interactions. See the [memory design direction](https://docs.concurrence.com/agent/memory#execution-and-longer-term-improvement).

Separate the question from the configuration being tested. Define the outcome and baseline, identify the required evidence, then compare a candidate on representative cases. Keep missing artifacts and changed populations visible. A better average score can conceal a regression in a consequential segment.

Simulation reduces the cost of exercising behavior before deployment. It does not reproduce every channel or external side effect, so audio, integration, and operational tests supply additional evidence. The team decides whether that evidence is sufficient to release.

The resulting improvement is an engineering process. A metric trend does not automatically rewrite a graph or promote a version. Preserve useful cases and reviewed configuration so later work builds on what was learned. See [Testing and Evaluation](https://docs.concurrence.com/testing/testing), [Improving Agent Behavior](https://docs.concurrence.com/agent/pattern-discovery-and-reuse), and [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model).

## Apply the Principles to a Deployment

The Design pages apply these principles to four specific choices, each with what it guarantees and how to check it yourself: [safety layers separate from the agent model](https://docs.concurrence.com/design/safety-layers), [voice families as swappable runtimes](https://docs.concurrence.com/design/voice-families), [verified actions over the world model](https://docs.concurrence.com/design/verified-actions), and [provable releases](https://docs.concurrence.com/design/provable-releases).

Use [How It Works](https://docs.concurrence.com/platform-overview/how-it-works) to trace the boundaries through a concrete interaction. Use [Operating Model](https://docs.concurrence.com/platform-overview/operating-model) to assign the decisions behind them, and [Evaluating Concurrence](https://docs.concurrence.com/platform-overview/evaluating-amigo) to identify the evidence a technical review should examine.


# Operating Model

How clinical, operational, data, engineering, and Concurrence teams divide responsibility for a deployed workflow and its ongoing improvement.

A healthcare application deployment spans several owners. The team defining the workflow may not control the source records, scheduling system, communication channel, or people handling exceptions. The operating model connects those responsibilities so an interaction can become completed work.

Start with one bounded workflow and name the people who can make its decisions. The responsibilities below are a planning model. The actual implementation and support commitments belong in the deployment agreement.

## Define the Outcome Before the Agent

For an appointment-change workflow, specify the starting condition, eligible population, permitted changes, required verification, and evidence of completion. Decide what happens when the patient cannot be identified, the external system is unavailable, or the result is ambiguous.

The workflow owner defines success in operational terms. Clinical leaders define clinically consequential boundaries and the evaluation criteria for those boundaries. Engineers translate those decisions into data access, tools, authored configuration, and tests.

An outcome definition can be written before every integration is available. It gives the implementation team a concrete target and exposes which missing data or authority prevents the workflow from reaching it.

## Agree on Implementation Deliverables

A scoped implementation connects the workflow definition to a result the receiving team can operate. Use the following deliverables when agreeing the work with Concurrence, your own team, and any implementation partner. For each item, record the delivery owner, customer inputs, acceptance reviewer, and ongoing maintainer. The implementation agreement determines which work is included.

| Deliverable         | Evidence for acceptance                                                                                  |
| ------------------- | -------------------------------------------------------------------------------------------------------- |
| Configured workflow | Selected agent and graph versions, permitted actions, verification steps, and exception paths            |
| Connected systems   | Agreed source and target interfaces, authorized access, and observed confirmation of the intended action |
| Evaluation record   | Representative cases, baseline, results, unresolved conditions, and a named release approver             |
| Operating handoff   | Evidence access, support and change owners, escalation routes, and exercised recovery procedures         |

Customer decisions include workflow scope, source access, clinical and operational policy, consent, and acceptance. Assign the configuration, integration, testing, and support work explicitly so the customer can plan the staff time it needs. Track access lead time separately from implementation effort in the [Technical Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet#compare-effort-cost-and-latency).

## Assign Decision Rights

| Area                                | Organization's decision                                                                  | Platform and implementation work                                                                                |
| ----------------------------------- | ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| **Workflow scope**                  | Which work is eligible, what completion means, and what stays with a person              | Map that scope into agent guidance, Context Graph states, tools, and handoffs                                   |
| **Clinical and operational policy** | Verification requirements, permitted actions, escalation boundaries, and review criteria | Make the policy inspectable in configuration and implement the applicable enforced controls and tests           |
| **Data and integration**            | Authorized sources, usable identifiers, freshness needs, and external-system permissions | Configure supported ingestion, mappings, retrieval, write-back, and reconciliation                              |
| **Messaging**                       | Sending brand, recipient consent evidence, message purpose, and follow-up ownership      | Concurrence-managed provisioning and registration where required, plus configured routing and delivery handling |
| **Live operations**                 | Staffing, operating hours, who receives exceptions, and how unresolved work is closed    | Configure and exercise supported monitoring, operator controls, and transfer paths                              |
| **Measurement**                     | Baseline, outcome definitions, relevant segments, and acceptable trade-offs              | Configure available evaluations and reporting, and connect external outcome evidence where needed               |
| **Release**                         | Who can accept the evidence and authorize a change                                       | Prepare reviewed configuration, targeted validation, rollout, and recovery procedures                           |
| **Data governance**                 | Access, residency, retention, and the intended recipients of shared data                 | Provision the agreed controls and verify actual access and evidence coverage                                    |

The same person can own several areas in a small deployment. Name an accountable owner for each outcome and the teams that contribute to it. Record who can approve scope changes, stop a workflow, and accept unresolved risk. A platform permission grants an operation. The organization's policy determines when its use is appropriate.

## Separate Live Work from Improvement Work

**Live operations** handles the patient interaction and its immediate exceptions. Operators need enough context to act, a supported way to intervene, and a destination for work that cannot finish during the interaction. An escalation instruction is useful only if the relevant person or fallback is reachable.

**Improvement work** changes the system that handles future interactions. The team reviews patterns, forms a hypothesis, authors a candidate, and validates it before release. It can improve a source mapping, a tool, a workflow, or a measure as well as an agent instruction.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-aed84f9e6e2e1468b010182a8bac629067ea4397%2Foperating-improvement-loop.svg?alt=media" alt="Teams observe a workflow, author a bounded candidate, validate against agreed criteria, and make an explicit release or revision decision."><figcaption><p>Recommended team practice. A measurement does not promote a version.</p></figcaption></figure>

The arrows describe team work. Analytics, simulations, and version sets supply supporting capabilities. They do not autonomously approve, promote, or roll back a change.

## Plan the Handoffs That Usually Cross Teams

### Source Data to Workflow

Agree on the identifiers and source records required for an eligible case. Inspect representative joins before launching the interaction: can the intended person, appointment, practitioner, and location be found? Record the expected freshness and the fallback for missing or conflicting data.

A successful import establishes only what that import's result reports. It is not proof that every relationship needed by the workflow is available to the agent. See [Connectors and EHR](https://docs.concurrence.com/data/connectors-and-ehr).

Keep source availability, mapping quality, and consumer readiness distinct in the operating agreement. Assign the team that can investigate each failure and one owner who coordinates resolution across the complete workflow.

### Reusable Definitions and Calculations

Assign a clinical owner to the meaning, eligible population, and permitted use of each measure. Assign a data owner to source mappings, units, time semantics, provenance, and quality checks. The application owner controls how the result affects task state and actions. The implementation owner verifies the selected interfaces and runtime.

For a shared mapping or calculation, name a maintainer and a change-review process. Review affected consumers when a source schema, unit convention, calculation, or clinical policy changes. Retain representative inputs and expected results with the version so another team can reproduce the agreed behavior. Use the [reuse package](https://docs.concurrence.com/data/connect-another-workflow#package-the-reusable-parts) to make that handoff concrete.

### Application to Application

Name the producer and consumer owners, the meaning of the shared evidence, and the criteria for the receiving application to act. Assign ownership of schemas, identity corrections, freshness, duplicate triggers, and recovery. Each application retains its own task state. The data team does not implicitly own unfinished business work.

For a second workflow, identify the workflow buyer or sponsor, the operating owner, and the data or IT owner together. Confirm reuse, new permissions, action authority, and acceptance evidence using [Connect Another Workflow](https://docs.concurrence.com/data/connect-another-workflow). Shared access does not replace a review of the new purpose or recipient.

### Agent to Operator

Define the reason for handoff, the context the operator needs, and what happens if no operator answers. Test the applicable listen, takeover, handback, or external-transfer path. Those controls have different behavior and availability across channels. See [Operators and Escalation](https://docs.concurrence.com/operations-and-safety/operators).

### Platform to External System

Agree on what confirms an external action and who reconciles an ambiguous result. Preserve the identifiers needed to find the original request and destination record. Repeating a non-idempotent action is a business decision as well as an integration concern.

Define support hours, severity criteria, notification and escalation routes, and recovery expectations in the deployment agreement. Exercise the handoff with a representative failure before launch so the responsible teams can find the evidence and act on it.

### Evidence to Release Decision

Give the reviewer the candidate configuration, the relevant tests, known gaps, and the intended outcome comparison. Include associated integration or service-setting changes that are outside the pinned agent and Context Graph versions. [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model) explains how those selections take effect.

## Establish a Review Rhythm

Use a review cadence appropriate to the workflow's volume and consequences. Start with unresolved work, failed or ambiguous external actions, missing evidence, and representative patient interactions. Compare outcome measures using the same definitions and relevant segments.

Assign each investigation to the team that can change the relevant part of the system. A drop in completion could begin in source data, delivery, staffing, a tool, or agent behavior. Preserve confirmed failure cases in the test set so the next change can be evaluated against them.

For the evidence to request during a technical review, continue with [Evaluating Concurrence](https://docs.concurrence.com/platform-overview/evaluating-amigo). For the recurring engineering workflow, see [Improving Agent Behavior](https://docs.concurrence.com/agent/pattern-discovery-and-reuse).


# Deployment Model

Define deployment scope, validate a candidate, select reviewed configuration, and manage release changes across isolated workspaces.

A release selects the configuration that subsequent interactions will resolve. Teams establish a baseline, test a candidate, approve it, and inspect the resulting production evidence. These are deliberate team decisions supported by platform capabilities.

The [Operating Model](https://docs.concurrence.com/platform-overview/operating-model) assigns responsibility for those decisions. This page covers the release process, version selection, and workspace separation. [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts) introduces the configuration relationships.

## Define the Deployment Boundary

Start with a specific operational outcome and the systems needed to achieve it. For appointment outreach, that includes the source of eligibility, current scheduling data, recipient consent, a provisioned channel, confirmed write-back, and a staffed exception path.

Agree on the responsibilities before authoring the agent:

* **Data access** - Which records are available, how fresh they must be, and which system remains authoritative for each external action.
* **Workflow ownership** - Who authors clinical and operational policy, handles exceptions, and approves changes.
* **Channel operations** - Who supplies consent evidence and approved content, and which provisioning Concurrence manages.
* **Measurement** - How the team distinguishes an attempted action from a confirmed outcome and compares results with the baseline.
* **Integration** - Which supported APIs, connectors, and data-access paths connect the deployment to existing applications and reporting.

The Developer Console is one interface to these capabilities. Customer applications can use supported APIs and provisioned data access for their own workflows and reporting. A hosted workspace, a customer-owned source system, and a separately agreed deployment arrangement have different data boundaries. Confirm the actual arrangement rather than assuming that integration alone moves all processing into the customer's infrastructure.

## Phased Rollout

### Phase 1: Match

Establish the baseline for a defined workflow. Select the eligible cases, escalation paths, evidence, and outcome measures, then compare agent-assisted and existing operations on the same basis.

During this phase:

* Context Graphs encode the approved workflow and operating boundaries.
* Metrics compare eligible agent evidence with the chosen baseline, using the same definitions and filters.
* Operators cover the authored escalation paths and unavailable-agent fallback.
* Retained runs, traces, evaluations, and review evidence inform the next phase when those artifacts are available.

### Phase 2: Discover

With a baseline established, teams analyze observed evidence to form hypotheses about which changes may improve outcomes. Correlation in metrics or traces is not proof that a configuration variable caused the result.

Questions to investigate include:

* Where cases fail or require manual follow-up
* Which missing information delays completion
* Whether escalation reaches the right team with enough context
* Which candidate changes improve outcomes on comparable cases

### Phase 3: Prove

Candidate changes should be exercised through representative simulations, targeted integration tests, and isolated operational validation before production. Teams define the required case count, comparison method, risk checks, and release criteria for the use case.

The prove phase uses:

* Candidate and control version sets with explicit configuration snapshots.
* Simulation suites that exercise common paths, edge cases, and regressions.
* Metric comparisons that preserve filters, sample sizes, missing evidence, and uncertainty.
* Human review for safety-sensitive or clinically consequential behavior.

Simulation evidence supports a release decision. It does not certify safety or reproduce production deterministically.

### Phase 4: Scale

After an authorized reviewer approves a candidate, teams can copy its version-set configuration to `release`. Continue monitoring production evidence and keep a tested rollback configuration. Promotion does not prove that future behavior will remain unchanged.

## What a Reviewable Release Includes

Keep the following evidence with the release decision:

* The workflow and intended outcome, including the change from the baseline.
* The selected agent and Context Graph versions, service settings, and related tool or integration changes.
* Relevant simulation, audio, and integration results, with missing evidence and known limitations visible.
* The approving owner, rollout scope, observation plan, and recovery procedure.

A version set captures part of this record. It does not freeze source data, generated memory, every integration setting, or the external systems the workflow depends on. Restoring a previous configuration also does not undo an external mutation that already succeeded.

## Version Sets

Version sets are named service configurations that select agent and Context Graph versions, dynamic behavior versions, model preferences, and a supported non-voice turn runtime. They provide reviewable snapshots for testing and release management.

Every Platform service must contain a `release` version set. When service creation omits version sets, the API creates an unpinned `release` set. Other names such as `personal-dev`, `test`, or `preview` are customer conventions, not additional automatic environments.

### Promotion Flow

A recommended path from development to production:

1. **Personal candidate** - Create a named version set, pin the intended agent and Context Graph versions, and inspect the resolved configuration.
2. **Targeted test** - Run the suites and integration checks relevant to the change.
3. **Shared candidate** - Optionally copy the configuration to a team-named set such as `preview` for broader review.
4. **Release** - After approval, copy the reviewed candidate configuration to `release` and verify the stored result.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-36aff2bd25b7297d5b21090537983d125cc9da7b%2Fpromotion-flow-green.svg?alt=media" alt="A recommended promotion path moves a selected candidate through personal development, testing, preview acceptance, and release. Version sets select definitions rather than representing Git branches."><figcaption><p>Promotion is an explicit decision. Keep a known prior configuration for recovery.</p></figcaption></figure>

A version set can pin exact agent and Context Graph versions and carry model preferences. A pinned component changes only when its stored version number changes. An unpinned component resolves to the latest available version when configuration is loaded, so publishing a new version can affect later sessions without a separate pin update. Pin `release` when production behavior should change only through a reviewed configuration update.

## Applying Version-Set Changes

The Platform API upserts individual named version sets on a service. Agent Forge can compare sets, copy a source set to a target, and back up the previous `release` configuration during its promote workflow unless that backup is explicitly disabled.

Treat a version-set update as a change to subsequent configuration resolution, not as an in-place migration of every active interaction. A live session or durable conversation actor can retain configuration loaded earlier. Validate the new `release` value, monitor new runs, and keep a rollback path rather than assuming every next message immediately uses the update.

Use retained configuration versions, Forge diffs, simulation evidence, and applicable audit records together when reviewing a release. No single artifact proves that the candidate produced the intended runtime outcome.

## Multi-Workspace Tenancy

Workspaces are the isolation boundary for data, configuration, and access control. When you need separation between regions, cohorts, or business lines, you create separate workspaces.

<details>

<summary>Common reasons to use multiple workspaces</summary>

* **Data residency**: Use separately provisioned regional deployments and verify their full data flows
* **Cohort isolation**: Separate patient populations (e.g., different clinical programs)
* **Blast radius**: Limit the impact of configuration changes to a single workspace
* **Governance**: Independent roles, audit trails, and promotion controls per workspace

A typical setup for a multi-region deployment:

| Workspace                    | Region     | Purpose                         |
| ---------------------------- | ---------- | ------------------------------- |
| `acme-cardio-useast`         | US East    | Cardiology program, US patients |
| `acme-cardio-eucentral`      | EU Central | Cardiology program, EU patients |
| `acme-cardio-useast-staging` | US East    | Staging environment for US      |

Each workspace has its own services, tools, version sets, and access controls. Changes roll out per workspace, so you can deploy to staging, validate, and promote to production without affecting other workspaces.

</details>

## Service Channel and Environment

A service's primary channel behavior, supported runtime environment, and organizational tags have different purposes. Treat them as part of the reviewed configuration. Tags help teams organize resources. They do not establish tool permissions, model availability, or a release gate.

Workspace separation and service configuration also serve different purposes. Use the [Workspaces](https://docs.concurrence.com/data/workspaces) guide for isolation and the [Services Developer Guide](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services) for the current configuration contract.


# Evaluating Concurrence

A technical evaluation path through architecture, data, control, delivery, measurement, and deployment, with concrete evidence to examine.

Evaluate Concurrence against a defined operational outcome and the requirements your organization must meet to deploy it. Agree on the workflow, baseline, required capabilities, and acceptance criteria before the demonstration. Identify any requirement that would prevent adoption, such as an unavailable integration, insufficient access controls, or an unmet operating commitment.

Follow representative cases from source data through execution to the external outcome. Include incomplete work, failures, and human intervention. Record whether each result came from a fixture, a provisioned test deployment, or production. Those settings establish different evidence.

Use the [Technical Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet) for a worked evidence example and downloadable worksheets. Its [reference deployment](https://docs.concurrence.com/platform-overview/reference-deployment) and [capability matrix](https://docs.concurrence.com/platform-overview/capability-availability) make architecture and provisioning decisions explicit.

## Compare Ways to Deliver the Workflow

Compare Concurrence with the options available to your organization for the same task. Use the same population, channel, completion criteria, and observation window. Include implementation work and ongoing human handling in each comparison.

| Option                                 | Question to resolve                                                                                                              |
| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| Existing EHR or enterprise application | Does its available workflow cover the required sources, actions, channels, and exception paths?                                  |
| Workflow-specific product              | Which steps does it own, and how does it exchange context and confirmed outcomes with adjacent workflows?                        |
| An internal build                      | Who implements and maintains the integrations, agent behavior, evaluations, channel handling, and release process?               |
| A Concurrence deployment               | Which capabilities and implementation services are included, what does your team own, and what can an additional workflow reuse? |

An existing application that meets the requirements provides a useful baseline. Where additional work is needed, identify the specific requirement and the effort to meet it. A platform decision should account for both the first accepted outcome and the incremental work to support another workflow.

Record the [implementation deliverables](https://docs.concurrence.com/platform-overview/operating-model#agree-on-implementation-deliverables), access dependencies, and operating responsibilities for each option. Keep estimates separate from observed results. Use the checks below to examine the evidence behind the comparison.

## 1. Establish the System Model

Start with [What Concurrence Does](https://docs.concurrence.com/platform-overview/what-amigo-does), [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts), and [How It Works](https://docs.concurrence.com/platform-overview/how-it-works). Be able to locate four things: the retained source evidence, the current read view, the selected workflow configuration, and the outcome record.

**Evidence to examine:** a representative architecture and workflow map with the actual systems, interfaces, and responsible teams identified. Distinguish logical components from where they are hosted. Confirm the deployment's [data residency](https://docs.concurrence.com/platform-overview/data-residency) and access paths separately.

For customer-owned agent or cloud requirements, use [Cloud Ownership and Integration Boundaries](https://docs.concurrence.com/platform-overview/cloud-ownership) to review the execution model, permitted data exchanges, and action handoffs. The application host, agent runtime, and software supplier can have different owners.

## 2. Test the Data the Workflow Depends On

Use the [World Model](https://docs.concurrence.com/data/world-model) and [Connectors and EHR](https://docs.concurrence.com/data/connectors-and-ehr) to inspect how supported inputs become usable context. Trace one observation from its source into the selected entity view. Check what happens when the source is late, an identifier is missing, or two sources disagree.

**Evidence to examine:** source attribution, effective time where exposed, the relevant projection or mapping rule, and the context actually available to the workflow. A source record and a resolved caller binding are separate steps. Generated memory should also be distinguishable from current source facts.

Confirm that the records needed for the next action can be joined correctly and are current enough for that decision. Identify who owns mapping changes, data-quality exceptions, and source outages.

### Evaluate Memory on Tasks That Need Continuity

Use the [Memory](https://docs.concurrence.com/agent/memory) workflow to test a remembered preference, a later correction, and a detail omitted from the loaded model. Compare the same task with no historical memory, authorized source retrieval alone, the compact model alone, and the model plus recall. Use a fixture where the supporting evidence is known so retrieval failure can be distinguished from reasoning failure.

Inspect which subject and workspace were searched, whether the answer preserves the source's meaning and time, and how the workflow handles no matches or unavailable recall. Measure the time from new evidence to usable later-session context separately from the latency of a recall request. Better continuity should be visible in the completed task, not inferred from the amount of stored history.

Include evidence attributed to the wrong person, repeated imports of one source, an older detail outside the recall window, and a correction that arrives during reasoning. Score evidence coverage, supported claims, correction handling, and task outcomes separately. A retrieved record must support the answer the agent gives.

## 3. Inspect Intent and Enforcement Separately

Read the [Agents](https://docs.concurrence.com/agent/agents), [Context Graphs](https://docs.concurrence.com/agent/context-graphs), and [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety) together. Identify what is authored guidance, what is enforced in code, what is observed without blocking, and what requires a human decision.

**Evidence to examine:** selected agent and graph versions, state objectives, eligible tools, authorization, validation, and relevant failure cases. Trace a missing prerequisite through the actual operation. A prompt saying “verify before booking” and a booking tool rejecting an unauthorized request establish different controls.

## 4. Follow the Action to Its Destination

Follow a write through the configured integration path. Where approval is enabled, identify the exact workflow being gated. Then inspect what confirms delivery or an external mutation.

**Evidence to examine:** the recorded request, any required decision, the operation's result, and supported target acknowledgement or read-back. Include a timeout or ambiguous-response case and identify who reconciles it. [How It Works](https://docs.concurrence.com/platform-overview/how-it-works#measure-the-whole-workflow) gives a running example.

## 5. Exercise the Real Channel and Human Fallback

Choose the [channel](https://docs.concurrence.com/channels/conversations) the deployment will use. A text simulation does not exercise speech recognition, live audio interruption, carrier delivery, or operator phone joining. Messaging also requires the applicable identity, consent, and provisioning work.

Complete the [Channel Program Readiness](https://docs.concurrence.com/channels/program-readiness) review for the intended purpose, audience, and provider route. Keep technical channel testing separate from the evidence permitting that program.

**Evidence to examine:** a representative interaction on the intended channel, delivery status where available, the supported [operator handoff](https://docs.concurrence.com/operations-and-safety/operators), and the fallback when a person or destination is unavailable. Include an interrupted or incomplete interaction as well as a successful one.

Test overlapping work explicitly: change the requested appointment date while a lookup is running, let results complete in a different order, and exercise the supported cancellation or takeover path. Inspect both what the tool completed and what the person received. Measure first meaningful output separately from filler, and reconcile uncertain external actions before retrying. [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine#concurrency) explains the relevant execution boundaries.

## 6. Define What the Evaluation Can Establish <a href="#id-6.-define-what-the-evaluation-can-establish" id="id-6.-define-what-the-evaluation-can-establish"></a>

Read [Testing and Evaluation](https://docs.concurrence.com/testing/testing) alongside [Intelligence and Analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence). Separate conversation quality, workflow correctness, integration success, and the organization's final outcome. They may require different evidence sources.

**Evidence to examine:** the case set, baseline, scoring definition, required artifacts, missing results, relevant segments, and external outcome data. Ask whether the test used representative data and exercised the channel and integrations that matter. A favorable score supports only the claim its inputs and definition can measure.

Cost and latency comparisons need the same care: use a comparable workflow and account for unresolved work, retries, discarded reasoning, retrieval, and human handling. Separate replay with recorded results from a fresh model run. Agree percentile targets, concurrency and burst assumptions, retrieval budgets, and covered recovery failures before a pilot. See [Cost and Latency Optimization](https://docs.concurrence.com/platform-overview/cost-and-latency).

## 7. Demonstrate a Reviewed Change

Use [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model) to follow a candidate from authoring to validation and release selection. Inspect which components are pinned, which inputs can still change, and when a running interaction loads its configuration.

**Evidence to examine:** a configuration comparison, the affected regression cases, release approval, observations from new runs, and a tested recovery procedure. Restoring a prior agent version does not undo an external action that already occurred.

## 8. Agree on Ownership and Integration Boundaries

The [Operating Model](https://docs.concurrence.com/platform-overview/operating-model) identifies decisions the organization and implementation team must make. Confirm who handles source failures, patient exceptions, consent changes, external reconciliation, access changes, and release decisions.

**Evidence to examine:** named owners and the interfaces they will use. If a team wants its own application or reporting, review the supported APIs and provisioned data-access path, the datasets available, and their freshness and permissions. If portability matters, identify the actual exportable artifacts and the work required to rebuild integrations and controls elsewhere. Open interfaces do not make an entire deployment automatically portable.

Review security and operating commitments alongside the technical results. Confirm the deployment's access controls, retention and deletion process, assurance evidence, support coverage, incident escalation, recovery expectations, and commercial assumptions. The [evaluation packet](https://docs.concurrence.com/platform-overview/evaluation-packet#complete-the-enterprise-review) identifies the decision record for each area.

## Evaluate Proposed Extensions Separately

If the evaluation includes [object memory](https://docs.concurrence.com/agent/memory#design-direction-object-memory) or the [Universal Reasoning Harness](https://docs.concurrence.com/agent/reasoning-engine#design-direction-universal-reasoning-harness), give that work its own scope, implementation owner, and acceptance criteria. Both are documented as design direction beyond the current paths.

For object memory, test changed identity mappings, incompatible definition revisions, corrections, and revoked access. For the proposed harness, test failed required selections, late advisory guidance, uncertain action submissions, and responsiveness to control requests during long reasoning. Resumed work should use current authority and valid context. Equivalent typed and transcribed inputs, including corrections, should not create duplicate requests.

Record these as requirements for the extension until implementation and deployment evidence establish the behavior. Keep them separate from results obtained on supported production paths.

## Leave with a Deployment Decision

Capture the reviewed workflow, the evidence examined, unresolved dependencies, and the conditions for proceeding. Keep current behavior, deployment-specific configuration, private previews, and proposed work distinct in that record.

The next step should be concrete: resolve a source mapping, test a missing failure path, provision a channel, assign an exception owner, or approve a bounded release. The [Developer Guide](https://docs.concurrence.com/developer-guide) is the next layer when the implementation team needs exact contracts.


# Architecture and Deployment

Plan a Concurrence deployment from application ownership and regional data boundaries through verified integration, release evidence, and operations.

Start with one workflow and the decision it must complete. Use this path to identify who owns each record, where processing happens, which interfaces are available, and what evidence is needed before release. The result is a deployment plan that an implementation team can act on.

## Logical Platform Map

Read the map from the entry points into a workspace, then follow context, configuration, execution, and external action. It shows logical product responsibilities. The supported interface and deployment determine which paths participate in a particular workflow.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-9b0175c6b845fa431b8ccd3f8b3a89fa1ecc3b28%2Fplatform-system-map.svg?alt=media" alt="Customer source records enter supported import or dataset intake paths. People and applications use channels or the API. Within a Concurrence workspace, a session loads service, agent and graph configuration, reads permitted shared context, invokes eligible tools and produces run evidence. Integration tools call an external system whose response supplies evidence of the external outcome. Dataset outputs and world-model views have separate read contracts; arrows show relationships, not timing or universal availability."><figcaption><p>Shared data, selected configuration, and a live session have separate lifecycles. An external system owns the result of an integration call.</p></figcaption></figure>

Continue through three closer views: [data and identity](https://docs.concurrence.com/data/data-architecture#data-and-identity-map), [configuration and runtime](https://docs.concurrence.com/platform-overview/core-concepts#configuration-in-a-running-interaction), and [one end-to-end workflow](https://docs.concurrence.com/platform-overview/how-it-works#workflow-sequence). Use the [Reference Deployment](https://docs.concurrence.com/platform-overview/reference-deployment) for application ownership and [Cloud Ownership and Integration Boundaries](https://docs.concurrence.com/platform-overview/cloud-ownership) for deployment responsibilities.

## Plan the Deployment

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-205dc174bf0271bf298bfe805a1b51e38c3a81ab%2Fdeployment-decision-path.svg?alt=media" alt="Plan ownership and regional boundaries, verify access and the target outcome, then release with acceptance evidence and a recovery owner. These are recommended review stages, not automatic platform gates."><figcaption><p>Carry each decision into an implementation check. These are recommended review stages, not automatic platform gates.</p></figcaption></figure>

## 1. Assign Ownership

Use the [Reference Deployment](https://docs.concurrence.com/platform-overview/reference-deployment) to identify the application, the authoritative source, and the permitted read and write paths. Then use [Cloud Ownership and Integration Boundaries](https://docs.concurrence.com/platform-overview/cloud-ownership) to record where each component runs and who operates it.

**Leave with:** an owner for each record and mutation, agreed interfaces, and an explicit export or replacement boundary.

**Implement:** [Connect Data to a Verified Action](https://docs.concurrence.com/developer-guide/guides/data-to-verified-action) follows retrieval and authorization through confirmation in the target system.

## 2. Choose the Regional Boundary

[Regional Coverage and Data Residency](https://docs.concurrence.com/platform-overview/data-residency) identifies the four deployment regions and the processing boundaries to review. Regional hosting is one part of the decision: channels, integrations, model processing, and fallback paths need their own confirmation.

**Leave with:** the assigned region, permitted processing locations, and the services required for the workflow.

**Implement:** configure the matching Platform and identity hosts in [Regions and Endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints), then select [credentials](https://docs.concurrence.com/developer-guide/getting-started/credentials).

## 3. Confirm Scope and Access

Check [Capability and Availability](https://docs.concurrence.com/platform-overview/capability-availability) for prerequisites and deployment-specific scope. Use [Healthcare Interoperability](https://docs.concurrence.com/data/healthcare-interoperability) to identify the supported intake or integration interface, and [Compliance and Audit](https://docs.concurrence.com/operations-and-safety/compliance) for access and evidence controls.

**Leave with:** confirmed access, supported interfaces, and an owner for each provisioning dependency.

**Implement:** [Govern a Deployment](https://docs.concurrence.com/developer-guide/guides/govern-a-deployment) records the decisions. [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation) provides a local walkthrough and a separate provisioned-service path.

## 4. Prove the Outcome

Define representative success, rejection, and ambiguous-result cases using [Evaluating Concurrence](https://docs.concurrence.com/platform-overview/evaluating-amigo). Keep a completed conversation, an approved action, and a confirmed target-system change distinct.

**Leave with:** acceptance criteria, observed evidence, and a reconciliation path when the target outcome is uncertain.

**Implement:** [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) checks the target outcome. [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove) connects evaluation to release preparation.

## 5. Release and Operate

Use [Operating Model](https://docs.concurrence.com/platform-overview/operating-model) to assign responsibilities and [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model) to plan reviewed configuration and release. Configuration recovery and recovery from an external action are separate decisions.

**Leave with:** a release approver, an operating owner, and recovery instructions for each consequential action.

**Implement:** [Operate and Improve](https://docs.concurrence.com/developer-guide/guides/operate-and-improve) connects run evidence, intervention, reconciliation, and the next evaluation case.

## Record the Decision

Collect the evidence in the [Technical Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet). When an interface, location, or guarantee is not established by the documented contract, record the unresolved requirement and its owner before relying on it in the deployment plan.


# Technical Evaluation Packet

Build a technical decision packet with deployment boundaries, capability confirmations, pilot acceptance criteria, integration effort, and traceable outcome evidence.

Use this packet to record the evidence for a pilot or deployment decision. Engineering, security, operations, and procurement reviewers should be able to identify the proposed scope, verified capabilities, remaining dependencies, and terms of operation from the same record.

Start with [Evaluating Concurrence](https://docs.concurrence.com/platform-overview/evaluating-amigo), the [reference deployment](https://docs.concurrence.com/platform-overview/reference-deployment), and the [capability matrix](https://docs.concurrence.com/platform-overview/capability-availability). Complete the worksheets with actual systems, named owners, and observed results. Give unresolved requirements an owner and decision date.

## Assemble the Decision Record

For a connected example, follow [Patient Context Walkthrough](https://docs.concurrence.com/data/patient-context-walkthrough). Inspect the source records, the approved next step, and the scheduling confirmation. Then identify what the second workflow reuses and what it owns. The downloadable case is illustrative evidence for understanding the review, not a completed customer acceptance record.

| Artifact                       | What the reviewer should be able to answer                                                      |
| ------------------------------ | ----------------------------------------------------------------------------------------------- |
| Architecture and data-flow map | Which systems process the data, where the boundaries are, and which team owns each interface    |
| Capability confirmation        | What is enabled in this deployment, what needs provisioning, and what is outside the pilot      |
| Integration plan               | Which source, identity, action, channel, and operational dependencies remain, with named owners |
| Acceptance plan                | Which cases and failure conditions determine whether to proceed                                 |
| Evidence register              | What each result proves, where to inspect it, and what remains unknown                          |
| Decision and operating handoff | Who approved the scope, what conditions remain, and who handles failures after launch           |

Download the editable worksheets below. They are planning artifacts, not API payloads or contractual commitments, and do not require GitHub organization access.

{% file src="/files/Q2hVjgcuD2PCB3CJyxTL" %}
Pilot scope, acceptance criteria, evidence, ownership, and decision worksheet.
{% endfile %}

{% file src="/files/sapxI7KHo6p7R2yj8L5Q" %}
Integration dependencies, owners, access lead time, implementation, and validation worksheet.
{% endfile %}

## Define the Pilot Before Running It

Record the workflow, eligible population, intended channel, source and target systems, configuration selection, and excluded actions. Choose a baseline that measures the same work: include unresolved cases, manual handling, and external outcomes. State the observation window and why the cases represent the deployment.

Agree on thresholds before viewing the results. Separate correct workflow execution, target-system success, conversation quality, time, cost, and business outcome. An aggregate score can hide an unacceptable failure in a small but important segment.

### Synthetic Completed Example

The following is a **fictional evaluation record** for a scheduling test system. Identifiers and observations illustrate how to organize evidence. They are not a Concurrence API response, a customer case study, or measured product performance.

| Decision field    | Example value                                                                                                                      |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Scope             | Move one synthetic appointment to an allowed alternative in a test scheduling system                                               |
| Test channel      | Application text only. Phone and messaging are outside this test                                                                   |
| Baseline          | A reviewer performs the same fixture cases manually and records the outcome. Timing comparison is still unmeasured                 |
| Configuration     | Test service `scheduling-review`. Record actual selected agent/graph and integration versions before execution                     |
| Success criterion | For every approved fixture change, the target read-back matches the requested record and value, with no false completion statement |
| Required failures | Unauthorized subject, missing slot, rejected approval, target rejection, and interrupted response after submission                 |
| Stop condition    | Any unintended target change or a claim of success without supporting target evidence                                              |
| Decision owner    | Named customer workflow owner, supported by technical and operations reviewers                                                     |
| Decision          | Hold until the interrupted-response case has a documented reconciliation outcome and owner                                         |

### Follow One Outcome Through Its Evidence

| Stage                | Synthetic evidence                                                                            | Claim it supports                                               |
| -------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| Source               | Fixture appointment `appt-example-01`, original slot A, read at test start                    | The case has an identifiable starting record                    |
| Context              | The test run's inspected context includes that appointment and allowed slot B                 | The workflow had the information needed for this decision       |
| Configuration        | Saved service selection and graph/action configuration                                        | The reviewer can identify the configured path used in this case |
| Authorization        | Test principal permitted to change only this synthetic record, and a negative case is refused | The tested access boundary behaves as expected for those cases  |
| Approval, if enabled | Reviewer grants the exact A-to-B request, and no target change occurred while parked          | The human decision was recorded before execution                |
| Action               | Integration result carries the test target's acknowledgement reference                        | The target acknowledged that particular request                 |
| Read-back            | Test target reports `appt-example-01` at B                                                    | The intended external change is independently observed          |
| Agent answer         | The recorded answer states that the appointment moved to B                                    | The answer is consistent with the observed target state         |

For the interrupted-response case, the action result is unknown until the target is inspected. Record **unresolved**, identify the reconciliation owner, and hold retries. Do not fill the acknowledgement field from an agent's statement or from the approval record.

The [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation) starter produces a smaller executable evidence file. Its `external_action_verified: false` is intentional: it verifies a durable answer and conversation closure. Extend testing with [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) to collect target-system evidence.

## Compare Effort, Cost, and Latency

For hospital integrations, review the [exchange patterns and interface scope](https://docs.concurrence.com/data/healthcare-interoperability) before estimating effort. Record inbound feeds, outbound scheduling authority, acknowledgments, source-to-agent freshness, and recovery cases. Assemble the [hospital handoff documents](https://docs.concurrence.com/data/healthcare-interoperability#prepare-the-hospital-handoff), including the interface specification, data mapping, test plan, and go-live runbook. An interface that is not yet verified remains a pilot dependency.

Complete the effort worksheet for access, mapping, implementation, validation, and operations. Track prerequisites and calendar lead time separately from engineering effort. Record assumptions and exclude work that has not been scoped, because a universal deployment duration would conceal those dependencies.

Use [Cost and Latency](https://docs.concurrence.com/platform-overview/cost-and-latency) to define the units and measurement boundary. Include retries, incomplete work, human handling, and external-system delay in the comparison where they affect the workflow. Keep contractual price inputs separate from Concurrence's internal cost allocation.

## Evaluate First-to-Second Workflow Reuse

A platform evaluation should include an adjacent workflow with its own operating owner and accepted outcome. Record what the second workflow inherits and what must still be built, provisioned, or approved. A second conversation on the same service is not, by itself, evidence of a second valuable workflow.

Use [Connect Another Workflow](https://docs.concurrence.com/data/connect-another-workflow) for the participation contract and recovery tests. Compare source connections, identity mappings, data definitions, and functions. Then account for new action authority, channel setup, task logic, and ongoing support. Include access lead time and unresolved cases rather than reporting only implementation time or successful runs.

{% file src="/files/x9Uize4D791exYJJuD1B" %}
First-to-second workflow reuse, effort, recovery, and acceptance worksheet. Complete it with observed evidence. No results are prefilled.
{% endfile %}

The acceptance record should show both workflows working coherently, the incremental effort to reach the second outcome, and an owner who can operate the result. Have another implementation owner repeat the documented setup before calling it a repeatable package. Claims about lower cost, faster deployment, or clinical benefit need their own measured comparison.

## Make the Decision Reviewable

State what the current meeting is intended to decide: architecture and ownership, a scoped implementation phase, or production purchase and launch. A live architecture walkthrough can resolve scope, access, and pricing together. It does not need to imply those terms are already agreed. Record the decision, remaining conditions, and owners afterward. Purchase approval needs the defined scope, commercial terms, and acceptance milestones for the work being purchased.

For customer-owned agents, attach the [cloud ownership review](https://docs.concurrence.com/platform-overview/cloud-ownership). For patient outreach, attach the [channel program review](https://docs.concurrence.com/channels/program-readiness). Label existing product behavior, deployment configuration, and proposed work separately, including what the customer will be able to inspect through APIs or an operator UI.

Choose **proceed within the recorded scope**, **proceed after named conditions**, or **hold**. Link each condition to an owner, evidence required, and review date. Include region/data-flow confirmation, retained/exportable evidence, support boundaries, staffing, and recovery behavior in the handoff.

After a configuration, source, or channel change, rerun the affected cases and update the decision record. A passed text pilot does not authorize a different channel or a broader clinical workflow. The [Operating Model](https://docs.concurrence.com/platform-overview/operating-model) explains the decisions your organization continues to own.

## Complete the Enterprise Review

Technical acceptance is one part of a deployment decision. Record the following alongside the pilot results, using the proposed agreement and current assurance materials for commitments that product documentation cannot establish.

| Review area                  | Decision record                                                                                                                           |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Product fit                  | Required capabilities, confirmed deployment availability, excluded uses, and any dependency on custom or proposed work                    |
| Architecture and integration | Systems of record, interfaces, data flows, access requirements, mapping ownership, and tested failure handling                            |
| Security and data governance | Reviewed access controls, regional processing, subprocessors, retained artifacts, deletion and hold procedures, and applicable agreements |
| Reliability and support      | Agreed service levels, capacity assumptions, support hours, incident ownership, escalation, and recovery evidence                         |
| Delivery and staffing        | Scope of implementation work, prerequisites, named owners, acceptance milestones, and ongoing operating effort                            |
| Commercial terms             | Pricing units, expected volume, third-party charges, implementation cost, and cost of exceptions or incomplete work                       |
| Portability and exit         | Exportable data and configuration, permissions and formats, transition assistance, migration work, and termination obligations            |

Link [Compliance and Audit](https://docs.concurrence.com/operations-and-safety/compliance), [Data Residency](https://docs.concurrence.com/platform-overview/data-residency), and [Cost and Latency](https://docs.concurrence.com/platform-overview/cost-and-latency) to the corresponding review. Record exceptions explicitly, including who accepts them and when they must be resolved. A pilot approval covers its stated scope. Production approval needs the operating arrangements for that scope as well.


# Reference Deployment

Review the logical boundaries, data flows, integration dependencies, and ownership decisions in a Concurrence deployment before selecting a pilot architecture.

This reference follows an application-hosted scheduling workflow using a managed Concurrence workspace and a customer scheduling system. It shows the logical responsibilities that must be connected. Confirm the actual regional services, hosting arrangement, external processors, and network paths for your deployment using [Data Residency](https://docs.concurrence.com/platform-overview/data-residency).

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-49a1167abbc72821f3250ee376597db42a265de0%2Freference-deployment.svg?alt=media" alt="Logical deployment showing a customer application and backend, a Concurrence workspace with configured workflow and evidence, and external systems with separate processing boundaries."><figcaption><p>Read each arrow as a separate interface. Shared context does not transfer ownership of application transactions or source records. Managed channels add a separate provider boundary.</p></figcaption></figure>

## Follow the Data and Decisions

| Flow                      | What crosses the boundary                                                                                        | What to verify                                                                                                    |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| 1. Application access     | An authenticated user's request reaches the customer's trusted backend and the supported Concurrence access path | Credential scope, user-to-entity resolution where needed, and which service the user may invoke                   |
| 2. Source context         | Supported source records enter the workspace and become usable context after the applicable processing           | Source ownership, mapping, freshness, identity linkage, and evidence that the needed record is queryable          |
| 3. Workflow execution     | The selected service resolves agent/graph configuration, available context, and eligible actions                 | Which configuration was selected, what is prompt guidance, and what authorization or validation actually enforces |
| 4. External action        | A configured integration sends an authorized request to the scheduling system                                    | Target credentials, approval policy where enabled, error behavior, acknowledgement, and independent read-back     |
| 5. Evidence and operation | Conversation/run records and supported analytical or audit views inform application and operator decisions       | Access, retention, missing evidence, exception routing, and who reconciles ambiguous results                      |

The diagram does not place every external provider inside Concurrence's regional boundary. A phone, SMS, email, or other managed channel adds provider processing and delivery controls. Use the [channel availability matrix](https://docs.concurrence.com/platform-overview/capability-availability).

## Decide the Integration Boundary

For an application you own, keep long-lived workspace credentials in the trusted backend. Use the supported scoped access flow for browser sessions. See [Serve an Agent From a Web App](https://docs.concurrence.com/developer-guide/platform-api/conversations/serve-agent-from-web-app).

For source data, specify the minimum records and relationships needed by the workflow. Import acceptance is not proof that the serving view or caller binding is ready. Verify the actual read path before asking an agent to act on it.

For external writes, choose the actual integration endpoint and permitted principal. Where approval is enabled, identify the reviewer and the behavior while a decision is pending. Target acknowledgement remains a separate requirement after an approval.

## Assign Responsibility Before Estimating Effort

| Work item              | Customer responsibility                                                                 | Concurrence / implementation responsibility                 | Evidence that closes the dependency                       |
| ---------------------- | --------------------------------------------------------------------------------------- | ----------------------------------------------------------- | --------------------------------------------------------- |
| Workflow and outcome   | Define eligibility, intended result, exceptions, and baseline                           | Map the workflow to supported configuration and controls    | Agreed workflow and failure cases                         |
| Identity and access    | Own user identities, roles, consent evidence, and source access decisions               | Configure supported access and service linkage              | Positive and negative access tests                        |
| Source integration     | Supply test records, source contract, access, and mapping decisions                     | Configure the agreed ingestion/read path                    | Queryable synthetic case with attributable source         |
| External action        | Provide target contract, scoped credentials, test environment, and reconciliation owner | Configure and validate the agreed action path               | Target acknowledgement and read-back, plus a failure case |
| Channel readiness      | Approve intended communications and staff exceptions                                    | Provision supported managed resources and routing as agreed | Test on the intended channel with delivery evidence       |
| Evaluation and release | Approve acceptance criteria and operating policy                                        | Supply configuration evidence and execute agreed validation | Reviewed case results and release decision                |
| Ongoing operation      | Own business exceptions and downstream corrections                                      | Own platform operation and agreed implementation support    | Escalation route, access, and recovery exercise           |

These are planning responsibilities, not a substitute for the agreed support or commercial terms. Record named owners and any different allocation in the [evaluation packet](https://docs.concurrence.com/platform-overview/evaluation-packet).

## Estimate Dependencies, Not a Universal Timeline

For each work item, record access lead time, unresolved design decisions, implementation effort, validation effort, owner, and blocking predecessor. Source-system access, identity mapping, managed sender readiness, and customer review can dominate the calendar even when the client code is small.

Separate the initial technical connection from a deployable workflow. A successful [first conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation) verifies a narrow integration milestone. It does not complete channel readiness, target reconciliation, or operational acceptance.

## Review Portability and Recovery

List the configuration, records, traces, and analytical data you need to retrieve, then identify the supported export or access path and permission for each. Confirm format, scope, freshness, retention, and contractual constraints. Retrieve a representative sample and verify that the receiving system can interpret it, including identifiers and provenance. Record any transformation or reconstruction work required.

Test restoring a reviewed configuration and separately test how the team handles external actions that already occurred. Reverting an agent configuration does not reverse an appointment change, message, or other target-system mutation.


# Capability and Availability

Distinguish documented interfaces, managed provisioning, separately authorized services, and preview capabilities during deployment planning.

Use this matrix to identify the implementation path and the readiness questions for a proposed deployment. A documented interface is not proof that your workspace, region, credentials, or channel resources are enabled. Record those deployment-specific confirmations in the [evaluation packet](https://docs.concurrence.com/platform-overview/evaluation-packet).

**Private preview** means a capability is available to specifically enabled deployments under an agreed scope. Confirm enrollment, supported channels or object types, configuration, and operating limits with the implementation owner. Architecture pages can describe those capabilities alongside broadly available behavior. The access requirements determine which parts your deployment can use. Console visibility is a separate question from runtime availability.

| Capability                                  | Interface and access boundary                                                                                                                                                                                                                    | Readiness and limitations                                                                                                                                                                                                                                      |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Platform configuration and application text | [Platform API](https://docs.concurrence.com/developer-guide/platform-api/platform-api) and [Platform SDK](https://docs.concurrence.com/developer-guide/platform-api/platform-sdk), scoped to a workspace                                         | Requires the correct regional base, credential, and configured service. Browser access needs its supported scoped flow.                                                                                                                                        |
| Classic integrations                        | [Classic API](https://docs.concurrence.com/developer-guide/classic-api/core-api) with organization credentials and Classic SDKs                                                                                                                  | A separate resource and credential model. Platform examples are not drop-in replacements.                                                                                                                                                                      |
| Phone and human operation                   | [Phone](https://docs.concurrence.com/channels/voice) and [Operators](https://docs.concurrence.com/operations-and-safety/operators)                                                                                                               | Confirm phone provisioning, runtime support, and operator access. The Console does not provide takeover pages, and operators join by phone. Intervention controls need a separate integration with the operator APIs.                                          |
| Managed SMS                                 | [SMS](https://docs.concurrence.com/developer-guide/platform-api/conversations/sms) and provisioned service bindings                                                                                                                              | Registration, consent evidence, setup suppression, content checks, and delivery evidence are distinct. Managed provisioning is separately authorized.                                                                                                          |
| Managed WhatsApp                            | [WhatsApp](https://docs.concurrence.com/channels/whatsapp) and managed business setup                                                                                                                                                            | Confirm the business/recipient identity, phone readiness, use case, and reply-window behavior; template registration is not template sending                                                                                                                   |
| Managed iMessage                            | [iMessage](https://docs.concurrence.com/channels/imessage)                                                                                                                                                                                       | Provision assigned lines and verify consent, setup suppression, first-reply sending limits, media support, and delivery evidence. Provider acceptance is not delivery.                                                                                         |
| Managed email                               | [Email](https://docs.concurrence.com/channels/email)                                                                                                                                                                                             | Sender/domain and use-case readiness. Transactional/marketing policy and unsubscribe evidence remain separate from send acceptance.                                                                                                                            |
| Browser forms                               | [Surfaces](https://docs.concurrence.com/channels/surfaces)                                                                                                                                                                                       | Form creation, link delivery, submission, and projected data are separate milestones. A submission is not automatically a dataset-intake file.                                                                                                                 |
| Service-scoped dimension memory             | [Service-Scoped Memory](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/service-memory)                                                                                                                               | One memory subject per conversation. Dimension creation is public; processing, identity mapping, and authorized readers require setup. Definition edits do not rebuild history or automatically load memory.                                                   |
| Additional managed code tools               | Separately agreed workflow, distinct from [Platform Functions](https://docs.concurrence.com/agent/platform-functions) and Classic Tools                                                                                                          | Confirm authoring, publication, invocation, credentials, and support with the implementation owner. Source and infrastructure changes alone do not establish a public self-service contract.                                                                   |
| Source ingestion and querying               | [World Model](https://docs.concurrence.com/data/world-model), [Customer Data Intake](https://docs.concurrence.com/data/customer-data-intake), and [FHIR import](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/fhir) | Send records through FHIR import or authenticated dataset intake, then confirm mapping, freshness, and a queryable projection. Data-source records are stored but not polled; generic SMART FHIR, REST, file-drop, and webhook source types are not supported. |
| Approval-gated integration calls            | [Integration approval](https://docs.concurrence.com/developer-guide/platform-api/integrations/approval-gated-integration-writes)                                                                                                                 | Enabled per integration on supported text/SMS paths. A decision is consumed on the next supported turn and is not external delivery proof.                                                                                                                     |
| HL7v2 inbound and outbound                  | [HL7v2 ADT/SIU and hospital messages](https://docs.concurrence.com/data/healthcare-interoperability)                                                                                                                                             | Integration design required. No native receiver or sender verified. Agree on message profiles, direction, acknowledgment, replay, and measured freshness.                                                                                                      |

## Record a Deployment Confirmation

For every capability in the pilot, record the intended region, API or managed service, access owner, required configuration, evidence of enablement, remaining limitation, and review date. Use explicit states: **confirmed in this test deployment**, **awaiting provisioning**, **not included**, or **requires separate preview agreement**.

A future proposal should have its own record and decision date. Do not place it in the confirmed column because it appeared in a demonstration or a source commit. Use the implementation links for current contracts and [upgrade guidance](https://docs.concurrence.com/api-reference/change-logs/upgrade-guide) when reconciling older integration assumptions.


# Regional Coverage and Data Residency

Regional deployment endpoints, data-flow boundaries, and practical planning considerations for regulated deployments.

The region reported by the Platform API identifies the deployment serving the request. It is not an editable workspace placement policy or proof that every system involved in the workflow processes data in that region. Agree on the actual regional data and service boundary when provisioning a deployment.

## Regional Coverage

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-1c03b1386fc8ce1d38b76fdd741d33829e1f5ea2%2Fregional-coverage.svg?alt=media" alt="Four independent deployment regions: US East in Northern Virginia, Canada Central in Montreal, EU Central in Frankfurt, and Australia Southeast in Sydney. Select the assigned region and confirm each required service separately."><figcaption><p>Four regional deployments. A regional endpoint does not imply global routing, automatic replication, or availability of every service.</p></figcaption></figure>

## Regional Endpoints

| Deployment region       | Platform API endpoint             |
| ----------------------- | --------------------------------- |
| **US East**             | `platform.api-us.concurrence.com` |
| **Canada Central**      | `platform.api-ca.concurrence.com` |
| **EU Central**          | `platform.api-eu.concurrence.com` |
| **Australia Southeast** | `platform.api-au.concurrence.com` |

`platform.api-us.concurrence.com` is the canonical US endpoint, not a global router. To create or access a workspace in another supported region, use the endpoint assigned to that regional deployment. The Platform TypeScript SDK defaults to the US hosts from 0.113.1. Set its `baseUrl` and `identityBaseUrl` for any other region. Identity and other services have separate hosts listed in [Regions and Endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints).

{% hint style="info" %}
Regional service availability can differ. Confirm that the channels, connectors, models, and supporting services required by your deployment are available in the target region before provisioning production workloads.
{% endhint %}

## Workspace Placement

Workspace creation does not select a region independently of the deployment endpoint. The workspace update path still accepts a legacy region value for compatibility but ignores it. A successful update does not move data or change the region reported by the serving deployment.

Concurrence does not offer a self-service cross-region workspace migration. Organizations operating in multiple regions should plan separate workspaces and configuration promotion for each region.

## What the Boundary Covers

For customer-account requirements, use [Cloud Ownership and Integration Boundaries](https://docs.concurrence.com/platform-overview/cloud-ownership) to separate software ownership, processing, storage, operator access, and billing. Regional placement and query federation alone do not establish that all data and compute remain in the customer's account.

Region placement applies to Concurrence-managed workspace data and regional services that are provisioned for that workspace. Workspace authorization remains a separate control: region placement does not replace tenant isolation, role-based access, or resource-level permission checks.

Some workflows intentionally communicate with systems outside Concurrence's managed regional boundary, including:

* Customer-hosted EHR, CRM, and integration endpoints
* Telephony, messaging, email, and identity providers
* Model, speech, and infrastructure providers used by Concurrence or selected by the customer
* Operator browsers and customer applications

Those systems have their own processing locations, retention policies, and transfer mechanisms. Connector traffic also follows the location of the customer endpoint. Review the complete data flow rather than treating the workspace region as an end-to-end residency guarantee.

A configured model can route requests to more than one hosting provider, including a fallback provider. Confirm the permitted providers and processing locations for both normal operation and fallback. A model name or regional API hostname alone does not establish where inference runs.

## Multi-Region Planning

For organizations serving more than one jurisdiction:

1. Choose the regional endpoint before creating each workspace.
2. Keep patient and operational data in the workspace intended for that jurisdiction.
3. Promote agent configuration separately to each workspace.
4. Provision regional channel resources and connector credentials independently.
5. Validate every subprocessor and external integration against the intended data-flow boundary.

Entities and conversations in separate workspaces remain separate unless your own integration deliberately transfers or reconciles them. Do not assume automatic cross-region identity matching or configuration synchronization.

## Compliance Planning

Region choice is one input to a compliance program, not a certification by itself. Applicable requirements depend on the organization, data, purpose, external systems, and contractual terms involved in the deployment.

Before production launch, confirm with Concurrence:

* The services available in the requested region
* The managed-data boundary for each channel and connector
* Encryption, retention, deletion, and backup requirements
* Required contractual terms and subprocessors
* Any approved cross-border transfer mechanism

See [Compliance and Audit](https://docs.concurrence.com/operations-and-safety/compliance) for documented platform controls, and [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model) for workspace-isolation patterns.

## Continue to Implementation

Configure the assigned Platform and identity hosts in [Regions and Endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints), then use [Govern a Deployment](https://docs.concurrence.com/developer-guide/guides/govern-a-deployment) to record the confirmed services and processing boundaries. Return to [Architecture and Deployment](https://docs.concurrence.com/platform-overview/architecture-and-deployment) for the full decision path.


# Cloud Ownership and Integration Boundaries

Separate software ownership, cloud execution, data storage, operating access, and billing when reviewing a customer-owned agent integration.

An enterprise team may want to own its agent framework, models, evaluations, and releases while using the Concurrence platform for agreed workflow and channel capabilities. Review that division component by component. Buying software and choosing where it runs are separate decisions.

The [reference deployment](https://docs.concurrence.com/platform-overview/reference-deployment) follows a customer application calling a Concurrence-managed agent. Running a customer-owned agent that calls selected Concurrence capabilities introduces a different integration boundary. Use this page to review that proposed arrangement. Customer-account installation, a new warehouse adapter, and an external-agent adapter each need explicit scope and [availability confirmation](https://docs.concurrence.com/platform-overview/capability-availability).

## Make Cloud Ownership Specific

For each component, record these five decisions independently:

| Decision                      | What to specify                                                                                    |
| ----------------------------- | -------------------------------------------------------------------------------------------------- |
| Software and change ownership | Who maintains the implementation, owns customer-specific code, and approves releases               |
| Execution boundary            | Cloud account or managed service, region, permitted inference providers, and fallback paths        |
| Data boundary                 | Records read, transmitted, retained, and written back, including intermediate results              |
| Operating access              | Who can inspect production content, change configuration, rotate credentials, and handle incidents |
| Billing boundary              | Who receives each charge, its meter, and whether it is included in another fee                     |

“Runs on AWS,” “runs in our AWS account,” and “is billed through AWS” answer different questions. Private connectivity describes a network path and does not move a vendor's processing into the customer's account. For managed inference, identify the service's processing boundary and configured routing instead of treating the caller's account as the location of every processor. Review the selected provider's terms, such as [Amazon Bedrock data protection](https://docs.aws.amazon.com/bedrock/latest/userguide/data-protection.html).

An account restriction should cover supporting work as well as the main agent: context preparation, content checks, evaluation, observability, and support access can each introduce another processing path. Label any proposed placement separately from verified deployment evidence.

The September 23, 2026 Databricks partner article [How Concurrence governs clinical AI at a trillion-token scale with Unity Gateway](https://www.databricks.com/blog/how-concurrence-governs-clinical-ai-trillion-token-scale-unity-gateway) illustrates why workload boundaries matter. Use that account as context for the boundary review, and verify the routing and coverage for each workload in your deployment.

## Trace Data Beyond the Source Query

Federation can avoid a standing copy of a source dataset while still returning sensitive query results to another system. For example, [Databricks query federation](https://docs.databricks.com/aws/en/query-federation/database-federation) uses both remote and Databricks compute and returns source results to a Databricks executor. Its availability for a database is not evidence that Concurrence supplies that database's integration.

Review one representative record through the query, context assembly, prompt, action, reply, and outcome. Include logs, traces, caches where used, recordings, backups, and diagnostic exports. A patient reference or a short text summary may still be sensitive even when the full source record stays in place. See [Data Residency](https://docs.concurrence.com/platform-overview/data-residency).

For example, suppose a proposed design queries a customer warehouse, returns appointment details to a vendor-hosted service, and sends a text summary back to the customer's agent. The source table stayed in place, but patient data crossed the account boundary and the vendor processed it. If the requirement prohibits that transfer, the team must change the processing placement or agree on a permitted exchange before accepting the design.

Keeping the system of record in an open table format is also a different requirement from using it as the only store. A workflow can need transactional state for pending actions, suppression, and reconciliation. Agree on the purpose, location, retention, and canonical write-back rule for each record class. If auxiliary storage is prohibited, leave the design unresolved until that requirement has a verified implementation.

Patient communications add a delivery boundary. Identify the actual recipient address, content, and attachments that reach a messaging provider or carrier. A requirement that no data leave a cloud account must be reconciled with those transfers before that channel can be included.

## Define the Handoff to a Customer-Owned Agent

Use three contracts to review a proposed integration. Here, an **opportunity** means a candidate for work selected from source data, such as an appointment needing a reminder. These are integration design inputs, not Concurrence resource types or API fields.

| Handoff                          | Minimum information to agree                                                                                                                    | Failure question                                                                                       |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| Opportunity to agent             | Stable case and subject references, purpose, necessary context, source timestamps, eligibility evidence, permitted actions, and expiry          | What happens when context is missing or eligibility changes?                                           |
| Agent to action executor         | Case reference, scoped caller identity, exact recipient and requested action, selected channel/use case, and a retry identifier where supported | Which control rechecks current authority, and how is an ambiguous response reconciled before retrying? |
| Delivery or response to workflow | Channel Manager message or call ID, receipt or reply, event time, suppression changes, and the mapping back to the case and session             | How are duplicate, delayed, unmatched, or missing events handled?                                      |

A useful opportunity is not authorization to act. Text can explain the case to an agent, but permission enforcement needs an authoritative check outside that text. Define which customer, Concurrence, or downstream control owns each check, then test it on the selected path. Do not assume that one channel's approval or idempotency behavior applies to another.

Consider a reminder selected at 09:00 for an appointment the patient cancels at 09:10. Before the 09:15 send, the action executor needs current appointment and contact-permission evidence. The expected result is to suppress the obsolete reminder and record why. This case tests the source reference, freshness rule, and action check together. A well-written opening message would not resolve the stale-data problem.

If the customer owns the agent runtime, explicitly assign its session state, evaluation cases, tool permissions, releases, and incident response. Separately confirm the Concurrence access contract, channel provisioning, callback authentication, and integration adapter. Product API access, managed provisioning, and an operator UI are distinct deliverables. Use [Channel Program Readiness](https://docs.concurrence.com/channels/program-readiness) to review the delivery side.

## Prove Portability at the Interfaces

Open formats and documented interfaces can reduce migration work, but they do not make every workflow interchangeable. Test whether another component can read representative context, interpret identifiers and provenance, submit an allowed action, and reconcile its outcome. Record the configuration, consent evidence, sender resources, and history that can be exported or transferred, along with any provider or contractual limits.

Finish with named owners, unresolved dependencies, and an explicit decision in the [evaluation packet](https://docs.concurrence.com/platform-overview/evaluation-packet). Keep the [cost and billing review](https://docs.concurrence.com/platform-overview/cost-and-latency#separate-software-operation-and-cloud-charges) alongside the technical boundary so that the same resource is not counted twice.


# Cost and Latency Optimization

Plan deployment cost and latency measurements, distinguish customer billing from internal cost allocation, and understand runtime optimization trade-offs.

## Estimate the Deployment

Start with the workflow and the commercial terms proposed for your deployment. Record expected eligible volume, channel mix, conversation length, source processing, integration work, evaluation, and human exception handling. Ask which items are included, which vary with usage, and which are billed by another system. These are planning inputs, not a published universal price formula.

Use the [integration effort worksheet](https://docs.concurrence.com/platform-overview/evaluation-packet) to separate access/provisioning lead time, implementation, validation, and ongoing operation. Compare like-for-like outcomes: count incomplete work, retries, and human follow-up in the denominator where they are part of the workflow. Cost per attempted interaction and cost per verified outcome answer different questions.

## Separate Software, Operation, and Cloud Charges

For each proposed line item, record its payee, included work, unit, rate, expected quantity, and responsible budget owner. Separate platform licensing, implementation, ongoing managed operations, Concurrence-billed usage, customer-billed cloud consumption, and external provider charges. These are review categories, not a fixed Concurrence SKU list. Identify bundled items so that the same compute or delivery cost is not counted twice.

For AWS commitments, distinguish direct AWS consumption from a seller purchase through AWS Marketplace. [AWS describes eligible Marketplace transactions as potentially contributing to committed spend](https://aws.amazon.com/blogs/awsmarketplace/private-offer-auto-renewals-scale-predictable-revenue-with-aws-marketplace/). Confirm the proposed product and transaction, buyer agreement, applicable limits, and timing with the buyer's AWS and procurement owners. An AWS-hosted architecture alone does not establish eligibility. A waived fee contributes no purchase amount, even if separately billed cloud usage continues.

Commitment retirement describes how qualifying spend counts against a purchase obligation. Compare total program cost and verified outcomes separately. Qualifying spend is still a cost.

## Compare Background Work with Request-Time Work

Background processing belongs in the same estimate as the workflow it supports. A precomputed view can reduce repeated retrieval or preparation during an interaction. It also introduces processing, storage, refresh, and operating work. Compare those costs over the same period and workload before choosing the arrangement.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-a7fe4afba7d0fa5a68504d4bf6d57999622f2c60%2Fworkflow-cost-drivers.svg?alt=media" alt="A workflow cost review includes data preparation and retention, request-time execution and delivery, and evaluation and human operation. Assign a payee and owner to each item, avoid counting bundled charges twice, and compare the total with verified outcomes."><figcaption><p>Planning categories, not a rate card or measured cost proportions. The agreed pricing schedule determines which work is included and how usage is billed.</p></figcaption></figure>

| Decision                                                    | Compare                                                                                               | Keep constant                                         |
| ----------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| Prepare reusable context or retrieve it during each request | Preparation and refresh cost, repeated reads, response time, and stale-data handling                  | Source coverage, access scope, and required freshness |
| Retain more evidence or shorten retention                   | Storage and retrieval cost, review needs, and recovery requirements                                   | The agreed retention and audit obligations            |
| Place work with your team or Concurrence                    | Included platform work, your infrastructure charges, engineering effort, and operating responsibility | The accepted workflow outcome and support scope       |

Record estimated and measured values separately. For a measured comparison, report total cost for the observation window, verified outcomes, attempted cases, unresolved cases, and human handling. A lower cost per attempted interaction can accompany more unfinished work. Use [Cloud Ownership and Integration Boundaries](https://docs.concurrence.com/platform-overview/cloud-ownership) to assign each proposed component before adding its costs.

## Measure the Latency That Matters

| Measurement                           | Start and end boundary                                                       | Report alongside it                                                                 |
| ------------------------------------- | ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| First visible text / audible response | Accepted user input to the first rendered text or audible output             | Channel, service configuration, and whether the response is only an acknowledgement |
| Completed answer                      | User request to the actual final answer, including supported background work | Pending and timed-out cases. Exclude neither silently                               |
| External outcome                      | User request to target acknowledgement and read-back where required          | Target-system delay, approvals, and unresolved cases                                |
| Human exception                       | Exception raised to the agreed human response or resolution                  | Staffing window and workload                                                        |

Choose the observation window and percentiles before testing. Report sample size, failures, missing observations, configuration, and the intended channel. A simulation result is not a latency guarantee for a live phone call or an external scheduling system. Any contractual service level must be confirmed separately.

## Runtime Optimization

Concurrence's platform-managed conversation runtime uses a stable prompt prefix, per-task model routing, and timing controls for live responses. Provider-owned speech-to-speech sessions have a different execution path. Measure the selected runtime under the expected workload before changing its configuration.

## Stable-Prefix Prompt Caching

The platform-managed conversation runtime builds prompts in two parts:

* **Static prefix** - Session-constant instructions such as the agent identity, service description, capabilities, context-graph topology, and output format.
* **Dynamic suffix** - Per-turn state, objectives, active guidance, current time, and bounded conversation history.

When the selected model provider supports prompt-prefix caching, sending the stable content first lets the provider reuse work across turns with the same prefix. The dynamic suffix still changes as the conversation advances, and conversation history remains part of that per-turn content.

This split reduces repeated processing without changing what the model receives. A provider that does not support compatible prefix caching can process the complete prompt normally. Correctness does not depend on a cache hit.

## Per-Task Model Routing

Different parts of the pipeline use different models based on what the task demands:

| Task                      | Model Selection                              | Why                                                                                                                                                                                           |
| ------------------------- | -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Navigation**            | Separately configured low-latency model      | Produces a small, structured routing decision on each turn                                                                                                                                    |
| **Response generation**   | Separately configured engagement model       | Produces the caller-facing response, where language quality matters most                                                                                                                      |
| **Filler speech**         | No separate model call                       | Short time-buying phrases come from prepared templates, while context-aware fillers are produced inline by the same model that generates the response - so no extra model round trip is added |
| **Post-call data review** | Separately configured offline processing     | Runs outside the live turn path, so its latency and model choice can differ from conversation generation                                                                                      |
| **Metric evaluation**     | Definition- and pipeline-specific model tier | Eligible evaluations can run eagerly or in scheduled processing without blocking the live conversation                                                                                        |

Separate model roles let teams and platform defaults balance latency, quality, and cost by task. Actual usage depends on the resolved service configuration, runtime, fallbacks, and enabled evaluation paths.

## Pipeline Latency Budget

For voice interactions, measure transcription, first audio, and full response latency separately. End-to-end response time varies with the selected models, speech provider, tools, and network path. Three mechanisms reduce the delay callers perceive:

**Filler speech** covers the gap between when the caller finishes speaking and when the agent's full response is ready. The caller hears "Let me check on that" or a similar phrase while the LLM generates the real response.

**Prompt caching** can reduce repeated input processing when the selected provider supports it. The session-constant prefix stays stable while the current state and conversation history remain in the dynamic suffix.

**Two-phase initialization** can prepare the agent during ring time on supported conference-based voice paths. It loads available context and can begin generating the greeting before answer. Provider-side prompt caching and preparation can still miss, so this reduces expected delay rather than guaranteeing instant audio.

## Usage Visibility

The Platform API exposes workspace-scoped billing reads for current-period usage, usage trends, invoice lists, and invoice detail. Values depend on the meters that producers emitted and on asynchronous projection, so an accepted interaction is not proof that every billing rollup has already refreshed.

Teams can use those API responses for their own reporting and reconciliation. Invoice detail includes the line items generated for that billing period, with meter key, quantity, unit price, and amount. The actual catalog depends on configured prices and emitted usage rather than a fixed list of channel examples.

## Cost to Serve Visibility

[Cost to Serve](https://docs.concurrence.com/intelligence-and-analytics/cost-to-serve) distinguishes workspace LLM usage, customer-visible calculated model cost where enabled, and staff-only cost reports. LLM reports do not provide infrastructure allocations. Review attribution and unpriced usage before comparing costs, and use the agreed pricing schedule and customer billing records for procurement estimates and invoice reconciliation.


# Safety Layers Separate From the Agent Model

Why Concurrence puts safety controls beside the agent model instead of only in its prompt, what each layer enforces, and how to check it yourself.

## The Problem

An agent model follows its instructions most of the time, not every time. It can miss a described emergency, claim a booking that never happened, read out a record to the wrong caller, dial a number it found in a tool result, or stall mid-call. Adding more instructions to the prompt makes these failures less likely, but it can't stop them, because the same model that made the mistake is the one being asked to catch it.

## Our Design

Concurrence places controls at the boundaries the agent model can't cross on its own. Each layer acts outside the agent's reasoning: in the tool, in the call control, or between the reply and the caller.

| Layer                         | Where it acts                                             | What it does                                                                                                                                                                                                                                     |
| ----------------------------- | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Caller verification**       | Built-in record tools                                     | Record reads return `verification_required` until the caller's full name and date of birth match one record through `world_confirm_patient_identity`; afterward they return only the caller's own record or a household member's that names them |
| **Write scope**               | Supported agent write tools                               | A server-side scope binds a model-originated write to an allowed workspace and entity                                                                                                                                                            |
| **Transfer destinations**     | Call control                                              | A dynamic `forward_call` dials only `approved_destinations`, each also on the line's forwarding allowlist. Public emergency and N11 short codes are refused as destinations                                                                      |
| **Reply checks**              | Between the reply and the caller                          | On platform-managed voice and `gpt_realtime`, a pattern check and a separate model check stop dosing advice, a diagnosis, record details shared before verification, and actions claimed as done without a matching successful write             |
| **Emergency script**          | Call control on `gpt_realtime`                            | A recognized medical emergency or self-harm line cuts off the agent's reply, and the model speaks an authored script first                                                                                                                       |
| **Emergency calls stay open** | Call control on platform-managed voice and `gpt_realtime` | After a described emergency, the agent's attempt to end the call is refused, apart from the `end_after_script` setting for a medical emergency described in English                                                                              |
| **Safe exit**                 | Call control on platform-managed voice and `gpt_realtime` | A call that can't set up, or a turn that gets no reply, plays fixed audio and transfers to the service's `fallback_to` or fixed forwarding number, or closes                                                                                     |
| **Approval gate**             | Text conversations                                        | A gated integration endpoint or `approval_required` skill waits for an authorized approve or reject decision before it runs                                                                                                                      |

Some protections remain model guidance. The crisis resource in the agent's instructions, the rule against following instructions inside tool results, and the paths for a request for a person are text the agent model reads. They improve behavior and are not enforced checks.

## What It Guarantees

* On a caller-facing session, a built-in `world_*` record read before verification returns no record, whatever the agent model asks for. Operator-anchored, simulation, and test sessions are not gated, and a service with `platform_caller_verification: false` refuses those reads with `verification_off` for the whole conversation.
* A dynamic transfer dials only an approved, allowlisted number, and never a public emergency or N11 short code.
* On platform-managed voice and `gpt_realtime`, a call whose agent can't be set up, or a turn that gets no reply, ends in fixed lines prepared ahead of time rather than silence.

The reply checks are a check, not a guarantee: they review every voice reply, but either check can miss a phrasing or stop a correct reply. Test your confirmation wording.

## What It Doesn't Cover

* **Recognition is narrow.** Emergency and self-harm recognition covers a limited set of phrasings in English and Spanish and can miss others or fire when a caller only mentions a condition. The crisis rule covers suicidal thoughts, self-harm, and an overdose. Any other missed emergency rests on the agent's own instructions.
* **Text checks only log.** The text reply check records a hit and sends the reply as written.
* **Coverage depends on the runtime.** The emergency script, the safe exit, and the voice reply checks are documented for platform-managed voice and `gpt_realtime`. Check [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety#control-map) for the scope of each control before you choose a voice family.
* **Integration reads aren't gated by caller verification.** Patient reads through your own integration endpoints follow the agent's instructions, not the built-in check.
* **No automatic clinical triage.** Your organization authors, tests, and staffs its clinical escalation protocols.

## Verify It Yourself

1. On a test service, start a text or voice test session with a caller who matches a synthetic record by phone number. Ask for an appointment before verifying, and confirm in the tool calls that the read returned `verification_required`.
2. In dynamic forwarding mode, ask the agent to transfer to a number outside `approved_destinations`, and confirm that `forward_call` refuses it without dialing.
3. On a voice test call, ask the agent to confirm a booking before any booking tool runs, and confirm in the transcript that the reply was stopped and corrected.
4. On a `gpt_realtime` test call, describe a medical emergency in plain words and in hinted words, then a non-emergency mention of a condition, and compare what played.
5. Read [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety) and [Safety & Escalation](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#safety-and-escalation) for the full behavior, then follow [Add Escalation and Safety](https://docs.concurrence.com/developer-guide/guides/escalation-and-safety) to configure and test it.


# Voice Families as Swappable Runtimes

Why a Concurrence service selects its voice family as a setting, what stays the same when you switch, what changes, and how to compare families yourself.

## The Problem

Speech models differ in latency, voice quality, languages, regions, and the call controls they support, and they change quickly. A workflow written for one speech provider is expensive to move: its prompts, tools, transfers, and test evidence are tied to that provider's session format.

## Our Design

A Concurrence service separates the workflow from the voice runtime. The agent, Context Graph, tools, forwarding block, and caller-verification setting live on the service. The voice family is one setting, `voice_config.session_provider`, with a settings block for that family where it has one. The service's value takes precedence over the agent's, and with neither set the call runs on `concurrence`. `eleven_realtime`, `gpt_live`, and `grok_voice` are selected on the service only.

* `concurrence` - the cascade: separate speech recognition, Concurrence reasoning, and speech generation.
* `gpt_realtime` - a speech-to-speech model on one action state or a graph of 2 to 12 action states.
* `eleven_realtime` - a speech-to-speech session in an ElevenLabs voice on exactly one action state.
* `gpt_live` - realtime speech that delegates tool requests to Concurrence reasoning on multi-state graphs.
* `grok_voice` - a speech-to-speech session in a built-in Grok voice on exactly one action state.

Three parts make the swap safe to attempt:

* **Discovery.** `GET /v1/{workspace_id}/voice-families` lists every family with its availability for the workspace, capabilities, models, and the JSON Schema for its settings block.
* **Save-time refusals.** A save that a family can't run is refused with `422` and a typed reason, for example a multi-state graph on `eleven_realtime`, warm transfer on a family without it, or another family's settings block left in place.
* **Run attribution.** Each run reports `session_provider` and a `manifest` of the versions and models its first session started with, so evidence stays attached to the runtime that produced it.

## What Stays the Same

* The service, its agent and Context Graph versions, and its version sets.
* The tools the graph binds, and the integration endpoints behind them.
* The forwarding block, its approved destinations, and the line's forwarding allowlist.
* The AI and recording notice at the start of every call.
* The run record, including `session_provider` and `manifest`.

## What Changes

| Capability                 | `concurrence` cascade     | `gpt_realtime`            | `eleven_realtime`                | `gpt_live`                                | `grok_voice`                     |
| -------------------------- | ------------------------- | ------------------------- | -------------------------------- | ----------------------------------------- | -------------------------------- |
| Multi-state Context Graphs | Yes                       | 2 to 12 action states     | One action state                 | Yes                                       | One action state                 |
| Dynamic behaviors          | Yes                       | Yes                       | No                               | Yes                                       | No                               |
| Phone transfers            | Cold and warm             | Cold and warm             | Cold                             | Cold                                      | Cold                             |
| Outbound calls             | Yes                       | Single-state graphs       | No                               | No                                        | No                               |
| Operator takeover          | Supported phone calls     | No                        | No                               | No                                        | No                               |
| Regions                    | Subject to data residency | Subject to data residency | Requires `data_residency: "any"` | US only, requires `data_residency: "any"` | Requires `data_residency: "any"` |

The model behind a call's answers also differs. On `gpt_live`, GPT-Live is the voice front end, and Concurrence reasoning answers every delegated request, including tools, policy, and the answer text, with the workspace's `voice.text_model`, or the platform default model when it is unset. On `gpt_realtime`, the realtime model itself answers.

Safety coverage also differs by runtime. The emergency script that cuts off a reply is documented for `gpt_realtime`, and the safe exit and the voice reply checks for platform-managed voice and `gpt_realtime`. GPT-Live and Grok Voice play the opening notice and emergency scripts from prerecorded audio. `gpt_realtime` doesn't read a state's `turn_policy`, `preload`, `wait_for`, `surface_spec_template`, or `channel_overrides`, even when a save accepts them.

## What It Guarantees

* A save whose configuration doesn't fit the service's family is refused with `422` and a reason.
* A run's `session_provider` and `manifest` are read from what its first session started with, not from the service's current configuration.

Language handling follows one rule on every family: a service serves the languages it declares, and a call starts in the agent's default language. A service that serves English and Spanish from an English default runs a bilingual session on each realtime family: it starts in English and follows the caller's clear choice of English or Spanish. The session does not cover a Spanish default, another language pair, or a third served language. See [Languages a Service Serves](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#languages-a-service-serves).

A successful save doesn't establish that the new family behaves the same as the old one. Model behavior, timing, and voice differ between families, so evidence from one family doesn't carry over to another.

## Verify It Yourself

1. Call `GET /v1/{workspace_id}/voice-families` and read `availability` and `capabilities` for each family in your workspace.
2. On a test service, set `voice_config.session_provider` to another family and save. Read any `422` reason and the fields it names.
3. Place a test call on each family you are considering, with the same synthetic caller and the same request.
4. Read each run's `session_provider` and `manifest`, and compare the transcripts, tool calls, and timing.
5. Run your simulation suite and your safety cases again before you move a production service.

See [Voice Configuration](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#choosing-a-realtime-voice-family) for the full comparison and settings, and [Phone](https://docs.concurrence.com/channels/voice) for the call lifecycle.


# Verified Actions Over the World Model

Why Concurrence treats a record read, a write, and a confirmation as separate checked steps, what each establishes, and how to verify an action yourself.

## The Problem

In a healthcare conversation, three easy assumptions are wrong. A phone number that matches a record doesn't prove who is speaking. A world-model observation doesn't change the scheduling system. An agent saying "you're booked" doesn't mean the booking happened. Each assumption, left unchecked, leads to a disclosure or a confirmation the organization can't stand behind.

## Our Design

Concurrence splits an action into steps that each produce their own evidence.

1. **Verify before reading.** A caller matched by phone number or a supplied `entity_id` starts unverified. Built-in record reads return `verification_required` until the caller's full name and date of birth match exactly one record through `world_confirm_patient_identity`. Repeated failures lock verification for the conversation. After verification, built-in reads return only the caller's own record or a household member's that names them as guardian or under a power of attorney.
2. **Scope every write.** Supported agent write tools receive a server-constructed write scope that limits the workspace and entity they can target, whatever identifier the model supplies.
3. **Declare what a write does.** An integration endpoint declares its writes, such as `booking`, `cancellation`, `reschedule`, or `message`. Only a declared write that succeeded backs a claim that the action is done.
4. **Gate a write on a person where needed.** In a text conversation, an integration with an approval policy, or an `approval_required` skill, parks the call until an authorized reviewer approves or rejects it. Approval is a separate record from the external result.
5. **Keep an unknown outcome unknown.** A write with no answer that settles it, such as a timeout, reports `"outcome": "unknown"`, and the platform doesn't send it again in that conversation.
6. **Confirm at the destination.** The endpoint's own result, or a read-back from the target system, is the evidence of what changed there.

The world model holds source-linked observations and derives read views from them. It does not deliver observations to external systems: an external change happens only through a tool the agent calls.

## What It Guarantees

* Built-in record reads on a caller-facing session return no record before verification and nothing outside the caller's own or household records after it.
* A write that got no settling answer isn't resent in the same conversation.
* In a text conversation, an approval-gated call doesn't run before an authorized decision.

## What It Doesn't Cover

* **Approval isn't completion.** An approved write can still fail or have an unknown outcome at the destination.
* **Integration reads aren't gated.** Patient reads through your own integration endpoints are not code-gated by caller verification. The agent is instructed not to share another person's details from any tool, which is model guidance.
* **Approval gates are text only.** Voice calls, simulations, voice notes, companion skills, and trigger actions don't offer approval-gated tools.
* **Projections lag.** A world-model write that was accepted may not be queryable yet.
* **No universal idempotency.** Use the operation's documented idempotency key or the destination's own protection where you need it.

## Verify It Yourself

1. In a test conversation, ask for an appointment before verifying, and confirm the tool call returned `verification_required`. Verify with the synthetic caller's name and date of birth, and confirm the same read returns the record.
2. Ask for another person's record after verifying, and confirm the read returns `not_caller_record`.
3. Run the integration endpoint's test operation against a synthetic appointment, read `outcome` and `wrote`, and read the target record back independently.
4. Request the same change in a conversation, then compare the tool call's result, the agent's statement, and the target record.
5. Follow [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) for the full procedure, including a failure and an unresolved write.

See [Caller Verification](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#caller-verification), [Endpoint Write Declarations](https://docs.concurrence.com/developer-guide/platform-api/integrations#endpoint-write-declarations), [Approval-Gated Integration Writes](https://docs.concurrence.com/developer-guide/platform-api/integrations/approval-gated-integration-writes), and [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety#write-safety).


# Provable Releases

Why Concurrence releases agent changes through pinned versions, simulations, reviewed evidence, and run records, and how to prove a release yourself.

## The Problem

An agent's behavior depends on its instructions, its Context Graph, its tools, the models behind it, and the workspace data it reads. A change to any of them can fix one case and break another. Without a fixed record of what ran and evidence from before and after a change, a team can't tell whether a release improved the workflow or only moved the failures.

## Our Design

A release in Concurrence is a reviewed change to what a service resolves, backed by evidence at each stage.

1. **Pin what runs.** A service's version sets select agent and Context Graph versions, dynamic behavior versions, and model preferences. Every Platform service has a `release` set. A pinned component changes only when its stored version changes. An unpinned one resolves to the latest version.
2. **Test the candidate.** Simulations run synthetic callers through the production reasoning path, with tools in simulation mode returning a `dry_run` result, so writes never run for real. A launch can run chosen reads for real or return configured results. Saved cases group into suites and benchmarks for repeatable regression runs. Voice simulation and test calls cover audio behavior.
3. **Decide with evidence.** Your team sets the acceptance criteria and reviews suite results, transcripts, tool calls, and failure reasons. Promotion copies the reviewed candidate to `release`.
4. **Record what ran.** Each run reports `session_provider` and a `manifest` with the agent and Context Graph versions, the version set, the models, the build, and hashes of the prompt templates its first session started with.
5. **Measure after release.** Production evals can score completed conversations against the workspace's active definitions on a best-effort basis. Trace analysis and the voice judge add per-call analysis where available.

## What It Guarantees

* A pinned `release` changes only through an explicit version-set update.
* A run's `manifest` comes from what its first session started with, so later configuration changes don't rewrite it.
* Writes in simulations don't reach an integration, a world write, or a platform function.

## What It Doesn't Cover

* **No automatic gate or rollback.** Simulation results and drift analysis don't block a promotion or roll back a release. Promotion and rollback are deliberate actions by your team.
* **Not a replay.** Reruns are comparison evidence. The agent, workspace state, external tools, and model providers can still vary.
* **Not a safety certification.** Simulation and playground evidence don't certify clinical safety or reproduce production.
* **Partial evidence.** Production evals, trace analysis, recordings, and the voice judge can be missing for a call. Count what wasn't evaluated separately from passes.
* **External effects stay.** Rolling back configuration doesn't undo external writes that already completed.

## Verify It Yourself

1. Create a named version set on a test service, pin explicit agent and Context Graph versions, and read the set back.
2. Run a saved suite against it, and record the pass counts, error sessions, and failing cases.
3. Copy the reviewed candidate to `release`, keeping the previous configuration for rollback.
4. Start a new test run and read its `manifest`. Confirm the versions match the ones you promoted.
5. After real traffic, read production eval results for the release window and compare them with the window before it.

Follow [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove) for the procedure, and see [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model), [Testing Overview](https://docs.concurrence.com/testing/testing), and [What Ran a Run](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs#what-ran-a-run).


# Data Architecture

Follow the technical path from source access and clinical meaning to shared context, authorized actions, and evidence of completion.

A data integration needs to establish what a source says, which entity it concerns, how a workflow can use it, and what confirms the resulting action. This reading path connects those decisions across Concurrence's data and agent interfaces.

Start with one workflow and its required inputs. Identify the authoritative source for each input and outcome, then follow the boundaries below. [Shared Context and Applications](https://docs.concurrence.com/platform-overview/shared-context-and-applications) provides the broader ownership map.

## Read the Data Architecture in Order

| Step                         | Read                                                                                                                                                                                                                                                         | Decision to make                                                                                    |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------- |
| 1. Scope access              | [Workspaces](https://docs.concurrence.com/data/workspaces)                                                                                                                                                                                                   | Which workspace, credentials, and permitted purpose apply?                                          |
| 2. Connect the source        | [Connectors and EHR](https://docs.concurrence.com/data/connectors-and-ehr), [Healthcare Interoperability](https://docs.concurrence.com/data/healthcare-interoperability), and [Customer Data Intake](https://docs.concurrence.com/data/customer-data-intake) | Does this workflow need imported records, dataset files, a live integration call, or a combination? |
| 3. Understand shared state   | [World Model](https://docs.concurrence.com/data/world-model)                                                                                                                                                                                                 | How are source identifiers, observations, corrections, and the serving view related?                |
| 4. Define clinical meaning   | [Reusable Clinical Data](https://docs.concurrence.com/data/clinical-data-contracts)                                                                                                                                                                          | Which units, codes, measurement times, source evidence, and validation rules make an input usable?  |
| 5. Control use and action    | [Clinical Tools](https://docs.concurrence.com/agent/clinical-tools) and [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety)                                                                                                  | Which identity checks, tool permissions, and approval policies apply to this runtime and action?    |
| 6. Verify the whole workflow | [Patient Context Walkthrough](https://docs.concurrence.com/data/patient-context-walkthrough), then [Connect Another Workflow](https://docs.concurrence.com/data/connect-another-workflow)                                                                    | What proves the result, who handles an uncertain outcome, and which tested parts can be reused?     |

## Choose the Data Path

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-342ee747a58cb6d884274a0ad6c74abe29267415%2Fdata-access-paths.svg?alt=media" alt="Three data paths have different outputs. FHIR import emits world events for asynchronous entity projection. Dataset intake processes registered files and publishes dataset outputs. An integration endpoint returns a tool result. Verify the output of the selected path before using it."><figcaption><p>These paths can serve the same workflow. Each has its own contract and completion evidence.</p></figcaption></figure>

**FHIR import** accepts supported resources and emits source-attributed events. Entity projections make supported data available to readers asynchronously. Inspect import results and the intended entity read separately. Follow the [FHIR implementation guide](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/fhir) for supported resources and import semantics.

**Dataset intake** associates files with a registered contract and version history. Processing and publication have their own status. Choose the dataset's representation and consumer explicitly, and verify that consumer's output. See [Customer Data Intake](https://docs.concurrence.com/data/customer-data-intake) and the [intake implementation guide](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/intake).

**Integration calls** let an enabled tool read or change an external system during a workflow. A read can supply a current scheduling result, while a write requests an external change. Interpret the endpoint's result and retain the evidence required by the workflow. Publication into shared context requires its own configured path. See [External Integrations](https://docs.concurrence.com/developer-guide/platform-api/integrations/external-integrations).

## Data and Identity Map

The world-model path connects source identity to retained evidence and derived views. A source record identifies something in its originating system; an entity identifies the modeled resource within a workspace. Events carry observations about that entity and can refer to a related entity. Available provenance and time fields help a reader interpret the evidence.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-6b0bae8c5f784ded4d242ee8b4c7135c43450ffe%2Fdata-identity-model.svg?alt=media" alt="A source record has a source-scoped identifier. Supported resolution associates it with a workspace entity. Source-attributed observations become retained events with entity links, origin and available times; an event can also reference a related entity. Asynchronous projection derives entity views and relationships from retained inputs. A session selects permitted task context from those views and combines it with conversation history and tool results. Source identity, caller verification and action authorization remain separate; an accepted event is not proof that a view is readable."><figcaption><p>Entity views derive from retained inputs. Session context selects permitted facts and combines them with interaction-specific inputs; identity resolution does not itself verify a caller.</p></figcaption></figure>

Supported projection paths determine which facts and relationships appear in a read view. Projection is asynchronous, so event acceptance and reader visibility need separate checks. This map describes the world-model path; dataset outputs and live integration results retain the separate contracts described above. See [World Model](https://docs.concurrence.com/data/world-model) for event and projection semantics and [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts#context-current-facts-and-memory) for working context.

## Keep Meaning, Identity, and Permission Explicit

Connection establishes access to data. The [clinical data contract](https://docs.concurrence.com/data/clinical-data-contracts) establishes how the implementation interprets it: original values, accepted units and codes, time, missingness, and eligible inputs. Keep that definition with the mapping and calculation tests so another workflow can reuse it.

Source identity associates records with workspace entities. Caller verification governs access to patient context on supported caller-facing paths. Action authorization determines which operation can run. Evaluate each separately: a supplied patient identifier or recognized phone number does not establish all three.

Choose freshness requirements for the decision being made. A historical measurement can be appropriate for a longitudinal calculation, while booking needs a current availability check. [Clinical age, source freshness, and reader visibility](https://docs.concurrence.com/data/clinical-data-contracts#freshness-for-the-decision) answer different questions.

## Verify at Each Boundary

For an appointment change, collect evidence that the intended patient context is readable, that the selected action is permitted, and that the scheduling system confirms the requested result. If the result is ambiguous, reconcile the destination before deciding whether a retry is appropriate. A later shared view can carry the confirmed outcome to another workflow.

Use [Connect Data to a Verified Action](https://docs.concurrence.com/developer-guide/guides/data-to-verified-action) for the implementation sequence and [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) for destination confirmation. Record the accepted result and recovery owner in the [Technical Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet).


# Workspaces

Tenant isolation boundaries with separate world models, data sources, voice configs, and role-based access control.

A workspace is the tenant boundary in the Concurrence platform. Each workspace has its own world model, connected data sources, agent and service configurations, and access settings. Public data access is authenticated and scoped to the selected workspace.

## Tenant Isolation

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-015ddf4a46b0953cba886dda80045e8aec68e96a%2Fworkspace-boundaries.svg?alt=media" alt="Each workspace owns its data, services, channel bindings, and data-source records. Matching identifiers do not combine data across workspaces."><figcaption><p>Select the intended workspace explicitly. An identifier alone is not cross-workspace access.</p></figcaption></figure>

Each workspace is an isolated organizational boundary. This means:

* Workspace-scoped event reads do not expose another workspace's events
* Entity projections are computed per-workspace
* Phone numbers, services, and context graphs are scoped to a workspace
* API keys authenticate to a specific workspace

### Layered Isolation

Public requests authenticate a workspace identity, validate that referenced resources belong to that workspace, and scope supported reads and writes to the same tenant. Data services add storage-level controls where appropriate, while audit records retain workspace and actor attribution.

Some trusted platform workers intentionally process more than one workspace, such as schedulers. Those paths use service credentials and preserve explicit workspace scope. They are not public unscoped access. Treat isolation as a layered authorization contract rather than assuming every table uses one identical enforcement mechanism.

For healthcare organizations, this isolation model supports multi-site deployments where each clinic, department, or practice operates as its own workspace with its own data and configuration. A hospital system with five clinics can run five workspaces, each with its own EHR integration, phone numbers, and scheduling logic.

## API Keys and Permissions

API access is scoped to an account within a workspace. Each account has a role that determines what it can do:

| Role         | Capabilities                                                                                                                                                              |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Owner**    | Admin permissions plus the ability to create owner-role API keys.                                                                                                         |
| **Admin**    | Can update and delete workspace resources, manage members and API keys, query privileged analytics, view audit data, and delete a workspace.                              |
| **Member**   | Read access plus supported resource creation, clinical data writes, outbound conversation starts, channel sends, and trigger management.                                  |
| **Operator** | View access plus operator actions: monitor and take over eligible runs, send guidance, author supported text turns, and decide conversation-scoped integration approvals. |
| **Viewer**   | Read-only access. Can view configurations, data, and call records but cannot modify anything.                                                                             |

### Members and Roles

A person's access to a workspace comes from their membership role: viewer, operator, member, admin, or owner. The table above describes each role. A member's role is changed from the Developer Console members page or the identity members API, by someone whose own role permits member administration. A person can hold a different role in each workspace.

Members join manually through an invitation or through organization SSO. SSO adds a sign-in method for an approved member and does not set the role: the membership role decides what the person can do, whichever way they sign in. See [Role-Based Access Control](https://docs.concurrence.com/operations-and-safety/compliance#role-based-access-control) for the SSO approval steps.

Some settings need more than a workspace role. Turning on a service's `allow_unverified_integration_results` bypass needs the `platform:admin` scope, which no workspace role carries, so a workspace owner or admin cannot turn it on. See [Caller Verification](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#caller-verification).

When creating an API key, the caller selects a role and may optionally narrow it to a subset of that role's permissions. The requested role and permissions cannot exceed the creator's own access, and only an owner can create an owner-role key.

## Environment Separation

{% hint style="warning" %}
Never test agent behavior changes directly in a production workspace. Use staging workspaces to validate changes before promoting them to production.
{% endhint %}

Use separate workspaces for different regions and stages of delivery:

| Environment     | Purpose                                                                                                                   |
| --------------- | ------------------------------------------------------------------------------------------------------------------------- |
| **Production**  | Live workloads and production integrations.                                                                               |
| **Staging**     | Pre-production testing with production-like configuration.                                                                |
| **Development** | Building and testing new context graphs, skills, and integrations, typically with synthetic data or sandbox integrations. |

This separation ensures that changes to agent behavior, safety rules, or data integrations can be tested in staging before they affect real patient interactions in production.

The current Platform API does not expose workspace environment conversion or an editable environment label. Production, staging, and development describe how the team uses and provisions its separate workspaces. Confirm the actual session, data-access, retention, and integration policies for each deployment. Naming a workspace staging or production does not change those controls.

## Optional Data Exposure

Workspace administrators can request two separate capabilities: topic modeling and Delta Sharing. Both are disabled by default. Topic modeling enables eligible classification and its provisioned data views. Delta Sharing exposes the selected workspace datasets to a configured recipient. It is not permission to browse other workspaces or a copy of every internal table.

Delta Sharing supports an open-sharing recipient or a Databricks recipient identified by its sharing identifier. Confirm the selected mode and recipient during provisioning. Saving the setting and applying the underlying grants are separate steps, so verify provisioning and recipient access before consuming data.

Disabling exposure or changing an active recipient requests access reconciliation. If that request cannot be queued, the API reports a failure even though the setting was saved. Retry and verify that access was revoked. Do not treat the stored flag alone as proof of revocation. Downloaded data remains subject to the recipient's own handling policy.

See [Delta Sharing](https://docs.concurrence.com/developer-guide/classic-api/data-access/delta-sharing) for the supported setup and consumption workflow.

## What Lives in a Workspace

A workspace contains all the resources needed to run a deployment:

* **Services** - Define which context graph and agent configuration handle calls
* **Phone numbers** - Routed to services within the workspace
* **Data sources** - Stored data-source records that the platform does not poll
* **World model** - The event store and entity projections for this workspace
* **Agent configuration** - Authored behavior, context graphs, models, functions, and channel-specific settings
* **Voice settings** - TTS voice selection, speed, keyterm lists, sensitive topic configuration
* **Operator configuration** - Which operators can join calls and how escalation works
* **Security settings** - Optional workspace-level security controls and access policies

{% hint style="info" %}
**Developer Guide** - For API endpoints, SDK examples, and integration details, see the [Workspaces](https://docs.concurrence.com/developer-guide/platform-api/workspaces) section of the developer guide.
{% endhint %}


# Connectors and EHR

How source data reaches the world model through FHIR import and dataset intake, and how agents read and change EHR data through integrations.

Source data reaches a workspace's [world model](https://docs.concurrence.com/data/world-model) through FHIR import and authenticated [dataset intake](https://docs.concurrence.com/data/customer-data-intake). During a conversation, an agent reads or changes an external system, such as an EHR, through the integration endpoints its state offers. The world model records observations with source provenance; it does not send them to external systems.

## Data Sources <a href="#connector-types" id="connector-types"></a>

A data-source record names an external system for a workspace. The data-source create contract accepts `ehr`, `fhir_store`, and `snowflake`. The platform stores the record and returns it on read, along with its stored sync history and event counts. It does not poll the source or send writes to it, so load the source's records through one of the ingestion paths below.

Generic `smart_fhir`, `rest_api`, `file_drop`, and `webhook` data-source types are not supported. A `webhook` sync strategy is a stored configuration value and does not create a webhook receiver.

For HL7v2 ADT/SIU feeds or outbound hospital messages, use [Healthcare Interoperability](https://docs.concurrence.com/data/healthcare-interoperability) to scope the required integration and its evidence. These capabilities are not implied by a FHIR data source or by a catalog label.

## Ingestion Paths

| Path                                                                                           | Use it for                                                                                      | Freshness                                                 |
| ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [FHIR import](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/fhir) | FHIR R4 bundles from an EHR or FHIR store                                                       | Depends on when you submit and on asynchronous projection |
| [Dataset intake](https://docs.concurrence.com/data/customer-data-intake)                       | Files against a registered dataset contract, uploaded or discovered from a mapped intake source | Depends on submission and processing                      |

Supported ingestion paths attach source-specific confidence and provenance when data enters the world model. Agents and projections can then distinguish higher-ranked from lower-ranked source observations without hiding either source. This ranking is not a calibrated probability that an observation is correct.

Accepted input is not the same as agent-visible state. Confirm mapping, projection, and the read path the agent uses before a workflow depends on the data.

## EHR Integration

During a conversation, the agent reads or changes EHR data through the [integration endpoints](https://docs.concurrence.com/developer-guide/platform-api/integrations) that its current state offers. An endpoint call's result is the evidence of what the destination accepted. Information captured during a conversation stays a source-attributed observation in the world model; it is not written to the EHR unless the agent calls an endpoint that writes it.

### FHIR R4 and SMART Authentication

FHIR resource access, backend authentication, and EHR app launch are separate capabilities.

SMART Backend Services signing and token-exchange utilities are part of the platform, but there is no generic `smart_fhir` data-source type. Do not infer an active Epic integration from a catalog entry, signing endpoint, or stored configuration. Confirm the supported integration and enrollment with the implementation owner. Backend authentication does not establish EHR-context launch for a user-facing application.

The FHIR API supports patient search, resource CRUD with entity cross-referencing, resource history with field-level change tracking, and bundle import. It serves a broad set of clinical resource types - including Observation, MedicationStatement, FamilyMemberHistory, and QuestionnaireResponse - and supports patient-scoped filtering. Actual read and write availability depends on the resource type, credentials, and granted scopes.

### Custom Token Exchange

Some APIs use a non-standard token-exchange flow instead of OAuth or static keys. The API requires a workspace-level secret and one or more dynamic, per-request parameters (such as a user identifier) to mint a short-lived bearer token for each call. This pattern is common in healthcare platforms where each API call must be scoped to a specific end user or tenant, but the token issuance mechanism does not follow the OAuth specification.

The `custom_token_exchange` auth type handles this automatically. At configuration time, the operator provides the exchange endpoint URL, a workspace secret, and a mapping of which request parameters feed which exchange-call headers or body fields. At runtime, the platform mints a fresh bearer token from the workspace secret plus the per-request identifiers for each call.

Exchange URLs are validated at both configuration time and runtime to prevent requests from reaching internal networks, and secret templates are restricted to prevent injection.

### Systems Without a Supported API

The Platform API does not provide a browser or computer-use integration tier. Systems without a supported API require a separately designed integration path; do not assume that file deduplication, source identity, or authorization semantics transfer unchanged to portal automation.

### Handling External System Limitations

Each external system has its own availability, rate limits, update cadence, and acceptance rules. Check each integration call's result and reconcile an ambiguous outcome at the destination before retrying it. Supported projections resolve competing observations using their source-ranking rules, but a higher-ranked record can still be stale or incomplete. Validate required fields, relationships, and freshness at the consuming workflow.

### Agent-Initiated Record Creation

An agent can invoke the patient-creation tool when the authored workflow has collected the required fields. That tool creates a workspace entity and emits a `patient.created` event; it does not create a record in an external system. To create the patient in an EHR, the agent calls an integration endpoint that does.

{% hint style="danger" %}
Recording the patient's intent is not the same as confirming that the external system accepted a write.
{% endhint %}

## Entity Resolution

### Automatic External Identity Binding

An opted-in data source can create external-user bindings for eligible patients and guardians after their entities become available in the serving view. The binding lets a supported external identity resolve to the corresponding workspace entity at conversation start.

Binding runs through periodic reconciliation, not during the initial entity-resolution fold. An accepted source record or resolved identifier therefore does not mean that login recognition is ready immediately. Both projection and binding must complete.

**How it works:**

* The source explicitly enables automatic binding and identifies the external integration to use. Its canonical source identifier must yield the same subject key that the external application supplies at login.
* Reconciliation selects eligible, materialized person entities from that source within the workspace.
* It binds the source's external subject key to the resolved entity without substituting a display name or assuming that a medical-record number is the login key.
* Transient binding failures can be retried on a later pass. A key already bound to a different entity is left unchanged and reported for investigation.

This automatic path covers patient and guardian/caregiver records and excludes practitioner records. It does not assign clinical roles or replace the separately configured external-principal authorization policy.

The feature is available only where the required serving data and identity integration are provisioned. Validate recognition with the actual external subject key before launching a workflow that depends on it.

Current FHIR entity resolution maps supported resource types and references to source-scoped identifiers. This keeps repeated events from the same source attached to the same entity and creates explicit FHIR-derived relationships between related resources.

The current Platform pipeline does not perform fuzzy patient matching or write new cross-source `same_as` merge edges. Existing graph and duplicate APIs can still return historical `same_as` edges created by an earlier resolver. Treat those records as historical evidence, not proof that active connectors currently merge people by phone, email, name, or date of birth.

Caller recognition is a separate path. Customer applications can use verified external-user bindings, and supported channel flows can use scoped identifiers such as a caller phone number. An unmatched caller remains anonymous until the workflow resolves or creates an entity explicitly.

## Console Views

### Facility Location Mapping

When location, facility, or place entities are loaded from clinical systems, the Data Insights dashboard renders their geographic distribution on a live map. Entities with direct coordinates (latitude and longitude) are plotted immediately. Entities that carry street addresses but no coordinates are geocoded on demand. This gives operations teams a visual picture of facility coverage without requiring manual coordinate entry.

## Pipeline Observability

The Platform API provides read-only pipeline endpoints over stored data: pipeline totals, source listing, source event history, outbound summaries, entity resolution metrics, and throughput time series. They report stored data, not live polling or sync state.

### Data Source Freshness

The per-source connector-health operation reports a freshness category for each source, based on how recently it last ingested data:

| Category  | Meaning                                                |
| --------- | ------------------------------------------------------ |
| **Fresh** | Data arrived within the last five minutes.             |
| **Stale** | Last ingestion was between five and sixty minutes ago. |
| **Quiet** | No data in over an hour.                               |
| **Never** | No data has ever been ingested from this source.       |

Freshness is computed from the timestamp of the most recent ingested event. It measures receipt recency, not the age of a clinical observation or whether a source is continuously available. A fresh batch can contain old measurements, and a quiet source can have no new records to submit. Per-source ingestion rates (events per minute, per hour, and over the last 24 hours) accompany the category.

### Sensing-to-Action Latency

Pipeline latency metrics describe the timestamps available to the instrumented path. They do not automatically include time between an upstream clinical event and its detection. For an end-to-end freshness claim, preserve the source event timestamp and verify each boundary through agent-visible state and the external outcome, as described in [Healthcare Interoperability](https://docs.concurrence.com/data/healthcare-interoperability#design-for-measured-freshness).

The loop-latency operation reports hourly pair counts and median values. Use changes in that distribution to select periods for investigation, then inspect source health, processing failures, and workload. The shape of a latency chart alone does not identify the cause.

{% hint style="info" %}
See [Data Quality Analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence) for the dashboard metrics. For API endpoints and integration details, see the [Data Pipeline Monitoring](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/connector-runner) and [FHIR](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/fhir) sections of the developer guide.
{% endhint %}


# Healthcare Interoperability

Plan hospital data exchange, confirm supported interfaces, and prepare the specifications, tests, and operating handoff for an integration.

Use this guide to plan data exchange with a hospital and prepare the handoff to its technical team. Start with the workflow, the system that owns each record, and the changes the integration must receive or send.

HL7 version 2 (HL7v2) feeds commonly carry patient-administration messages, known as ADT, and scheduling notifications, known as SIU. Scope each feed alongside the hospital's electronic health record (EHR) APIs and other interfaces. Confirm Concurrence's supported data paths in [Connectors and EHR](https://docs.concurrence.com/data/connectors-and-ehr#connector-types).

## Choose the Exchange Pattern

A hospital can use several standards for the same patient journey. Start with the event or task, then identify the system that owns the record and the interface it can provide.

| Pattern                    | Typical purpose                                                  | Questions for the hospital team                                                                      |
| -------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| HL7v2 event feed           | Send patient-administration, scheduling, order, or result events | Which message profiles, identifiers, acknowledgments, and replay rules apply?                        |
| FHIR API                   | Read or write healthcare resources on demand                     | Which FHIR version, resources, operations, profiles, access scopes, and limits are enabled?          |
| Bulk export or extract     | Load a historical population or establish a baseline             | How are exports authorized, resumed, and reconciled with later updates and deletions?                |
| C-CDA clinical documents   | Share clinical summaries across organizations                    | Which documents are available, who authored them, and how are versions and patient identity matched? |
| SMART app launch           | Open an application within an EHR workflow                       | What launch context and access are available, and who approves the EHR setup?                        |
| CDS Hooks decision support | Return information at a defined point in a clinical workflow     | Which hooks are supported, and what information can the service return?                              |

FHIR stands for Fast Healthcare Interoperability Resources, and C-CDA stands for Consolidated Clinical Document Architecture. These standards describe different ways to exchange data. Their presence in a hospital does not establish support in a particular Concurrence deployment.

Confirm the selected pattern with the implementation owner. A FHIR data connection does not by itself provide an embedded EHR application or a CDS Hooks service. SMART Backend Services authentication and interactive SMART app launch also require different setup and authorization.

## Scope Each Interface Separately

| Interface                   | Intended role                                                                                       | What to confirm                                                                                                                                                                                                                |
| --------------------------- | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| HL7v2 inbound ADT           | Patient administration events, including admissions, transfers, discharges, and demographic updates | A native HL7v2 receiver and its acknowledgment behavior have not been verified. Requires an explicitly designed and validated integration.                                                                                     |
| HL7v2 inbound SIU           | Scheduling notifications such as booking, rescheduling, modification, and cancellation              | Requires a hospital-specific feed profile, identity mapping, freshness target, and reconciliation tests. An inbound notification is not permission to change a schedule.                                                       |
| HL7v2 outbound              | Send a message accepted by the receiving hospital interface                                         | A native HL7v2 sender has not been verified. Agree on the message family, trigger, direction, authorization, and application acknowledgment before committing to delivery.                                                     |
| FHIR APIs and notifications | Read or write supported resources, and receive events where the server and adapter support them     | Use the supported [data paths](https://docs.concurrence.com/data/connectors-and-ehr#connector-types) and integration endpoints. Resource, operation, authentication, subscription, and destination support vary independently. |

Confirm each interface with the implementation owner before committing to the integration. Receiving events and sending changes back require separate access and validation.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-7721b6a3682607eb3cab0829fb6c7f64161fea3e%2Fhospital-exchange-paths.svg?alt=media" alt="An integration planning map: inbound source changes pass through an agreed interface and mapping before checking agent-visible state. Outbound authorized actions pass through an agreed receiving interface before confirming the hospital record. Each direction needs its own scope and tests; the map does not establish native interface support."><figcaption><p>Use these two paths to plan an integration. The diagram does not establish native support for a particular hospital interface. Verify both usable inbound data and the authoritative result of an outbound action.</p></figcaption></figure>

HL7 defines ADT patient-administration events and SIU scheduling notifications separately. The receiver's supported version, trigger events, required segments, local extensions, and identifiers determine the actual contract. Receiving SIU notifications does not establish scheduling requests in the opposite direction. See [HL7 patient administration](https://www.hl7.eu/HL7v2x/v26/std26/ch03.html) and [HL7 scheduling](https://www.hl7.eu/HL7v2x/v251/std251/ch10.html).

## Agree on the Data Meaning

An interface specification describes how systems exchange records. A [clinical data contract](https://docs.concurrence.com/data/clinical-data-contracts) defines how the receiving workflow interprets them: identity, clinical meaning, units and codes, measurement time, missing values, and provenance. Validate the mapping separately from transport and authentication.

Start with one useful input set, such as weight and height for a reviewed calculation. Keep source-specific mapping separate from the calculation so a second source can reuse the same logic after passing the same contract tests. Record the version and scope of any standards mapping. Mapping selected elements does not establish complete coverage of a standard.

## Design for Measured Freshness

For scheduling, start with the hospital's source of truth and the updates it can emit. Evaluate HL7v2 feeds, supported FHIR subscriptions, vendor notifications, and scheduled reads against the same end-to-end target. FHIR supports [event notifications](https://fhir.hl7.org/fhir/subscription.html). The format alone does not determine latency, and actual subscription support must be confirmed.

Measure how long it takes for a source change to become usable by the agent. Record the source event time, receipt, durable acceptance, mapped record availability, and agent-visible state. For outbound work, also record action submission and target confirmation.

Report percentile latency and outage recovery against agreed thresholds. A sync heartbeat or ingestion timestamp alone cannot show how old the source information was when the agent acted.

## Qualify Inbound and Outbound Paths

Record these decisions in the [technical evaluation packet](https://docs.concurrence.com/platform-overview/evaluation-packet):

1. **Feed scope:** originating and receiving systems, directions, HL7 version and profile, ADT/SIU triggers, and separately scoped order or result messages. Use synthetic messages and the hospital's interface specification.
2. **Transport and access:** approved transport, network boundary, authentication, encryption, credentials owner, and environments. If the feed uses Minimal Lower Layer Protocol (MLLP) message framing, specify transport security separately.
3. **Acceptance and failure:** acknowledgment of durable receipt, application acceptance or rejection, timeouts, replay authority, quarantine, and escalation ownership. The agreed [HL7 acknowledgment mode](https://www.hl7.eu/HL7v2x/v251/std251/ch02.html) determines which acknowledgment means what.
4. **Identity and ordering:** source-scoped patient, encounter, appointment, and message identifiers; duplicates; late and out-of-order events; corrections, cancellations, and identity changes. Preserve provenance through mapping.
5. **Outbound authority:** allowed operations and records, approvals, conflict detection, loop prevention, and receiving-application evidence. An acknowledgment is not automatically proof of a completed appointment change.
6. **Recovery:** retention, replay controls, metrics, downtime behavior, reconciliation procedures, and the evidence required after an interruption.

A hospital interface engine or integration partner may adapt the feed for Concurrence. Test its mappings, acknowledgments, and handoff as part of the complete integration.

## Prepare the Hospital Handoff

Prepare these documents with the hospital's interface analysts, EHR application team, security reviewers, and operating owner. Record the configuration and tested behavior for the selected deployment.

| Document                         | Contents                                                                                                                                       |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| Integration overview             | Systems, data flows, exchange patterns, responsibilities, and excluded scope                                                                   |
| Interface specification          | Per-feed message profiles, events, required fields, local extensions, acknowledgments, expected volume, and failure handling                   |
| FHIR or API specification        | Supported resources and operations, authentication, granted scopes, applicable key-discovery URLs, and measured or contractual limits          |
| Data mapping                     | Source field, target meaning, terminology, identity mapping, provenance, and treatment of missing or conflicting values                        |
| Connectivity and security packet | Agreed network path, encryption, certificates, access ownership, security questionnaires, and applicable assurance materials and agreements    |
| Test plan and sign-off           | Synthetic admissions, discharges, scheduling changes, corrections, identity changes, duplicates, malformed data, outages, and expected results |
| Go-live runbook                  | Cutover, monitoring, downtime, recovery, escalation contacts, support coverage, and agreed service levels                                      |
| EHR build guide                  | Customer-side registration, configuration, validation, and promotion steps for the specific EHR and environment                                |

Assign an owner to each document and keep the approved versions with the [technical evaluation packet](https://docs.concurrence.com/platform-overview/evaluation-packet). Obtain the hospital's feed profile, access approvals, and sign-off before go-live.

## Verify a Scheduling Outcome

Use a synthetic appointment to test create, reschedule, cancellation, and correction events. Repeat messages, deliver them out of order, interrupt the connection, and reject a malformed message. Verify the resulting appointment state and that the agent uses the current state without duplicating an external action.

Test an outbound change separately: obtain authorization, submit through the agreed receiving interface, capture its acknowledgment, and verify the authoritative appointment record. If the result is ambiguous, reconcile before retrying. Keep lab, blood-bank, and other clinical-result workflows outside the scheduling pilot until their message profiles and validation cases are separately agreed.


# Customer Data Intake

Workspace-scoped dataset ingestion, file versioning, source discovery, processing, and publication, with explicit security and rollout boundaries.

Concurrence's current file-intake workflow uses registered datasets. It gives each upload a named contract, catalog status, and version history, with separate steps for processing and publication.

| Scenario                                                            | Supported workflow                                                                     |
| ------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| An operator uploads a CSV snapshot against a defined schema         | Authenticated dataset intake                                                           |
| A Google Drive folder should feed a registered dataset              | Dataset intake source                                                                  |
| A source exposes an API the agent should read during a conversation | [Integrations](https://docs.concurrence.com/developer-guide/platform-api/integrations) |
| A person needs to complete a structured form                        | [Surfaces](https://docs.concurrence.com/channels/surfaces)                             |

The Developer Console exposes dataset intake where the Intake feature is enabled.

## Dataset Intake

Dataset intake is the governed path for files that need a named data contract, catalog status, and version history. Authenticated workspace routes let an operator register a dataset, upload or download files, list file status, and refresh a dataset from mapped sources.

### Dataset Contracts

Every dataset has one of two ingestion modes:

* **Snapshot** - A tabular contract with a primary key and typed fields. The snapshot validators and processor read CSV, so use CSV for snapshot files.
* **Document** - A set of accepted filename extensions plus a document-processing configuration. The native text extractor, `extraction_mode: text_extract` (the default), supports PDF, DOCX, and UTF-8 text such as Markdown. Use that mode for document processing.

Registering a file type does not prove that a downstream processor can interpret every file with that extension. Validate representative files before production use.

### Upload and Version Behavior

An authenticated upload is associated with one registered dataset and is capped at 100 MB. Dataset contracts can record `max_size_mb`, but the current upload runtime does not enforce a lower per-dataset value. Clients that rely on it must enforce it before upload. The service computes a content hash and returns an existing row for a byte-identical file already present in the same workspace and dataset.

Snapshot versions are allocated at the dataset level. Document versions belong to a logical document: omit `document_id` to create a document, or provide an existing `document_id` to add a same-type version.

Processing is configuration-dependent:

* Snapshot uploads can be validated synchronously or land as `received` for asynchronous processing.
* Document uploads land as `received` and require the document processor to reach a terminal status.
* A successful upload response confirms storage and cataloging, not successful parsing, publication, or world-model projection.

The current intake path does not perform inline malware scanning. An allowlisted extension, MIME type, or successful schema check is not evidence that a file is safe. Workflows that require a malware verdict must arrange that control before submission.

### Google Drive Sources

A dataset source maps one or more Google Drive folders to registered datasets. Discovery occurs when an operator triggers a source sync or starts a dataset update. Registration alone does not schedule continuous synchronization.

A source sync creates a batch per mapped folder, downloads eligible files, and places newly landed files in the dataset catalog. Unchanged content is deduplicated. Processing a batch is a separate step unless the dataset-update workflow orchestrates it.

The dataset-update endpoint combines source discovery, preparation, and publication behind a durable run. It applies only when an active Drive source maps to the requested dataset. Monitor the returned run rather than assuming that `202 Accepted` means the dataset is ready.

Source removal and data erasure are separate. The audited registration-deletion capability stops future discovery while retaining imported files, batches, published data, upstream files, and source credentials. See [Intake Sources](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/intake-sources#remove-a-source-registration) before planning source retirement.

## Forms and Other Collection Paths <a href="#retired-intake-paths" id="retired-intake-paths"></a>

Dataset intake accepts authenticated uploads and mapped intake sources. It does not issue shareable upload links. Patient-facing [Surfaces](https://docs.concurrence.com/channels/surfaces) are a distinct form workflow, and a form submission does not automatically create a dataset file.

## Security and Compliance Boundaries

* Dataset, source, listing, upload, and download operations require a workspace-scoped Platform credential.
* Content-type checks, schema validation, malware scanning, parsing, and downstream publication are distinct controls. Success at one stage does not imply success at another.
* The intake routes do not, by themselves, establish a HIPAA or HITRUST compliance posture. Deployment controls, contractual coverage, retention, residency, and operating procedures remain separate concerns. See [Compliance and Audit](https://docs.concurrence.com/operations-and-safety/compliance) and [Data Residency](https://docs.concurrence.com/platform-overview/data-residency).

For endpoint-level request and response behavior, see the [Platform intake guide](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/intake).


# World Model

Event-sourced data layer that accepts supported healthcare inputs, preserves provenance and confidence, and projects current entity state.

The Health World Model is the platform's persistent, time-aware representation of patients, other entities, relationships, observations, and current state. Connectors, specialized applications, agent tools, and analytics contribute or consume workspace-scoped data through supported interfaces. Agents receive a bounded amount of selected context automatically and use tools for facts that are not already present.

This creates a feedback loop between data and agent activity without making every observation automatically available or writable. Session construction selects ambient context, tools perform explicit reads and writes, and accepted observations can become inputs to later projections and analytics.

The world model preserves supported observations with provenance and a source-class confidence value. Current entity state is a computed projection over retained relevant events rather than an in-place record update. Projection rules can therefore resolve conflicting inputs without discarding their retained history.

{% hint style="info" %}
Supported observations are recorded as events. Current entity state is derived from the relevant retained events. Recording an observation preserves what its source reported; it does not independently verify the observation.
{% endhint %}

## Place in the System

Follow [One Patient, Two Workflows](https://docs.concurrence.com/data/patient-context-walkthrough) to see a prescription, patient report, measurements, and a reviewed note support a follow-up application. The case includes source evidence, separate completion signals, and a downloadable record.

The world model supplies shared context to several consumers. It is distinct from the [Context Graph](https://docs.concurrence.com/agent/context-graphs), which describes how an agent should work, and from [memory](https://docs.concurrence.com/agent/memory), which can supply generated context from prior interactions. An external system still determines whether it accepted a requested change.

Read this page in three parts: how source evidence is retained, how projections select current values, and how a conversation reads or contributes observations. [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts) introduces the relationships; [How It Works](https://docs.concurrence.com/platform-overview/how-it-works) follows them through an appointment change. Use [Reusable Clinical Data](https://docs.concurrence.com/data/clinical-data-contracts) to define the units, measurement times, and validation required by a calculation.

## Data Pipeline

The broader [liquid world-model perspective](https://docs.concurrence.com/agent/universal-reasoning#the-world-model-is-liquid-through-its-views) treats SQL transformations, bounded classifications, and model-generated interpretations as different ways to derive task-relevant views. Each derivation retains its own evidence, uncertainty, and freshness requirements. The term does not imply an automatically evolving schema, a learned simulator, or synchronous visibility for every observation.

For the surrounding architecture, see [Shared Context and Applications](https://docs.concurrence.com/platform-overview/shared-context-and-applications). Applications own their sessions, tasks, decisions, and transactions; the world model supplies shared evidence and views, not a universal application state machine.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-2b20096a3abc20080ddaae2c977e2c388642798e%2Fdata-pipeline-green.svg?alt=media" alt="Supported imports, intake, and tools contribute events that project asynchronously into readable entity views. Authorized integration calls have a separate external result."><figcaption><p>Event acceptance, queryability, and an external result are three separate checks.</p></figcaption></figure>

Supported FHIR import, dataset intake, resource writes, and agent tools contribute source-attributed events. Entity projections update asynchronously, and metrics and analytics read their defined inputs. An authorized integration call performs an external action through its own contract. Confirm event acceptance, queryability, and destination outcomes separately.

## Evidence, Facts, and Application Views

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-d040e6b461e51e6ee9992cd95ba1e8d7f570c45f%2Fevidence-to-view.svg?alt=media" alt="Source assertions retain identity, provenance, and relevant times. Reconciliation selects entity facts without erasing disagreements. An application view selects permitted, task-relevant context and must be checked for freshness and gaps."><figcaption><p>These layers answer different questions: what was reported, what is selected now, and what this application is allowed to use.</p></figcaption></figure>

A **source assertion** records what a source reported, not independent proof of that claim. A **selected fact** is the value chosen by the relevant projection rules. An **application view** selects or derives information for a particular reader and task. Selection does not remove the need to inspect source quality, contradictory evidence, or missing coverage.

### Time and Corrections

Distinguish when something happened or became effective, when the source observed it, when it was received, and when a consumer could read the resulting view. Those times need not match. Verify each connector's timestamp meaning; a recent receipt can contain an old observation.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-e1f237ddbf9c2c8afdc447995e2f269c4c0e132c%2Fclinical-time-and-receipt.svg?alt=media" alt="In a synthetic example, a measurement happens on Monday, its record arrives on Friday, and the shared view is inspected later. The measurement belongs to Monday&#x27;s clinical history even though its record arrives on Friday."><figcaption><p>Illustrative sequence, not a latency target. Ask both when the observation applies and when it is available to the reader.</p></figcaption></figure>

Suppose a measurement taken on Monday arrives in a Friday import. A clinical trend assigns it to Monday when the measurement time is known. An investigation of Friday's import uses receipt evidence. To explain an agent's Thursday decision, inspect the inputs available to that session; a later view containing Monday's measurement does not prove the agent had it on Thursday.

If the source omits measurement time, keep that uncertainty visible. Receipt time can describe arrival but cannot establish when the measurement occurred. Preserve the source's date precision and timezone rather than inventing an exact clinical timestamp.

A correction adds evidence with its own source and supersession relationship where supported. The affected projection can change without rewriting the earlier retained observation. Applications must decide what to do with pending work that used the older view. A changed projection does not automatically cancel a booking or undo another external transaction.

For a derived measure, record the evaluation point, input references, and calculation version. A late correction can change a recomputed historical result. Reconstructing what was known at an earlier decision requires retained evidence and an appropriate read or reconstruction path; timestamps alone do not provide that capability.

An absent value means the required information was not found in the available view. It does not prove that the event never happened or the condition is absent. Likewise, a prescription, reported medication use, symptoms, and measurements can be connected without inferring a causal relationship between them.

To test those distinctions across applications, use [Connect Another Workflow](https://docs.concurrence.com/data/connect-another-workflow#exercise-the-failure-path).

## Why Event Sourcing for Healthcare

Healthcare data varies widely in structure, freshness, and authority. The world model is designed to make those differences explicit instead of treating every input as equally reliable.

**Source records can be incomplete or stale.** Clinical notes, copied templates, structured records, and operational systems capture different parts of a patient's history. Retaining source and effective time lets consumers distinguish a recent observation from an older record instead of assuming that every field is current.

**Patient observations and verified records serve different purposes.** A caller can report a new symptom or correct an old address while also being uncertain about a medication name or appointment date. Record the observation with its source, then use the workflow's verification rules before acting on it. A lower-ranked observation can remain in the retained history even when it does not become the projected value.

**External systems have uneven reliability and throughput.** EHRs, FHIR stores, practice management systems, and insurance verification services all behave differently. Response times vary, timeouts occur, and some sources can return stale data. Integrations should therefore expose failure and freshness rather than assume constant availability.

**An overwritten value is not enough evidence.** A current-value record alone cannot explain which source contributed the value, what it replaced, or what change was intended when a downstream operation failed. Conflict handling needs an explicit policy. World-model observations instead carry source and confidence, with supersession data where applicable. Current state is projected without rewriting the contributing events. Historical availability remains subject to explicit lifecycle actions, retention, and the bounds of each read surface.

## Four Invariants

The world model follows four core rules, with the lifecycle exceptions called out below.

### 1. World-Model Writes Become Events <a href="#id-1-events-are-the-only-source-of-truth" id="id-1-events-are-the-only-source-of-truth"></a>

Supported world-model write paths add events rather than editing the projected entity row. The serving state is recomputed asynchronously from the retained events relevant to that entity.

Under normal retention, competing observations remain separate events. Supported projections apply their own source-based precedence and recency rules rather than blindly applying global last-write-wins behavior. Some compare numeric source-class confidence directly; enrichment groups those values into precedence tiers.

### 2. Events Are Append-Only and Immutable

An accepted event is not updated in place. If new information contradicts an earlier event, a new event can supersede it while both remain available under normal retention. Authorized retention, erasure, and workspace-lifecycle operations remain separate exceptions.

Corrections retain their own provenance. While the contributing events remain available, a reviewer can inspect the earlier observation and the correction selected by the projection. Source validation and correction procedures remain necessary before using that data for an operational decision.

This matters for healthcare operations because it provides:

* **Projection evidence** - Retained source events can explain which observations contributed to modeled state.
* **Temporal analysis** - Historical event reads can support point-in-time reconstruction where the required events and projection logic remain available.
* **Correction without in-place mutation** - A new event can supersede an earlier observation instead of editing it.

### 3. Entity State Uses Explicit Projection Rules <a href="#id-3.-entity-state-is-a-pure-function-of-events" id="id-3.-entity-state-is-a-pure-function-of-events"></a>

Entity-state projections use explicit rules to select and derive values from retained evidence. Reproducing a deterministic derivation requires the same complete inputs, configuration, and projection logic, including evaluation time for time-relative values. An upcoming-appointment indicator can change when recomputed after an appointment's start without any change to the appointment events. Retained events and a projection version alone therefore do not guarantee identical replay; this is not a promise of a general as-of query or replay API. Projection runs asynchronously from event acceptance, so a successful write can precede the updated serving view. Time-relative fields describe their evaluation point, not a guarantee of continuous freshness between projection runs.

Source-linked rules make selected values inspectable. A patient’s phone number can project from a higher-ranked source instead of a lower-ranked conversational observation. That selection concerns the readable entity view; an external integration action has separate authorization and destination-result evidence.

#### Multi-Level Projections

Entity state is one derived view, but not the only one. Different derived products use different methods. Deterministic folds and structured connector transformations depend on their complete input and evaluation context. Episodic memory extraction and semantic user-model consolidation are model-generated, bounded processes that retain lineage to their supporting observations; identical inputs do not guarantee identical narrative text.

| Level                                | What It Projects                                                                 | Derived From                              |
| ------------------------------------ | -------------------------------------------------------------------------------- | ----------------------------------------- |
| **Entity state**                     | Current state of each patient, provider, appointment, and other entity           | Raw events                                |
| **Conversation memory**              | Episodic observations and a consolidated user model with source lineage          | Conversation transcripts and prior memory |
| **Structured context**               | Connector-derived context such as current conditions, medications, and allergies | Current entity and connector records      |
| **Operational and analytical views** | Scheduling, quality, and workflow-specific summaries                             | The inputs defined by each view           |

A new event can update entity state after asynchronous projection and can become input to other derived products on their own processing schedules. Each product documents its own derivation and freshness rather than inheriting a universal deterministic chain.

### 4. Confidence Resolves Conflicts

This section concerns value selection in supported projections. Concurrent task edits and external-action reconciliation have separate owners and controls; see [Shared Context and Applications](https://docs.concurrence.com/platform-overview/shared-context-and-applications#reconcile-at-the-owning-boundary).

When two sources provide conflicting information about the same fact, the applicable projection determines how source-class confidence and recency select the current value. The source classes below are provenance ranks, not probabilities. They are also distinct from the precedence tiers used by enrichment.

| Confidence | Source               | Example                                                                                                                                           |
| ---------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| **1.0**    | Authoritative        | Manual entry, explicit relationships, authoritative API writes                                                                                    |
| **0.95**   | Human-approved class | Named confidence class retained in the world-model registry; current external-write proposal decisions do not promote source observations into it |
| **0.9**    | High                 | Operator-verified data, high-quality adapter output                                                                                               |
| **0.8**    | EHR-trusted          | Trusted clinical data from EHR systems                                                                                                            |
| **0.7**    | Verified             | Data assigned the verified source class by a supported producer                                                                                   |
| **0.5**    | Self-report          | Patient-submitted form data, patient-confirmed information                                                                                        |
| **0.3**    | Agent raw            | Raw voice agent inference, unverified extraction from conversation                                                                                |
| **0.0**    | Rejected             | Observations explicitly assigned the rejected source class                                                                                        |

FHIR-sourced attribute projections compare numeric source-class confidence, then ingestion time. Enrichment instead compares its confidence tier, effective time, ingestion time, and event identifier, in that order. Different source classes can share an enrichment tier, so a larger numeric confidence value does not always win. A recent caller report can remain in history while an older, higher-ranked source supplies the projected value. Source rank alone does not establish that the selected value is current or correct.

Confidence is a source-class ranking, not model-reported certainty. Supported agent-originated clinical writes default to the `agent_raw` class unless a trusted server path supplies a different allowed value. Later observations from a higher-ranked source can supersede the projected value without erasing retained provenance.

Phone projections normalize valid numbers before caller matching. International country codes are preserved, North American numbers are standardized when the country can be inferred safely, and non-phone text is excluded. Ambiguous national formats are retained without inventing a country code. This normalization improves matching across differently formatted source values but does not replace identity verification.

Entity-state fields retain the winning event's source and confidence. Other derived products do not inherit a universal confidence rule: structured connector projections, generated memory, and analytical views each define their own derivation and evidence. Consumers should use the provenance and quality signals exposed by the specific product rather than assuming confidence propagates unchanged through every downstream view.

## Three Data Channels

{% hint style="info" %}
It is useful to think about agent data access through three channels. The exact payload and tools depend on the service, session, runtime, and workspace configuration.
{% endhint %}

### Ambient

Selected data that is pushed into the agent's context without a tool call when the session and service configuration make it available. Examples can include patient identity, upcoming appointments, or recent encounter context. Missing or unavailable source data is not invented.

This channel reduces repetitive lookups for the bounded context selected at session or turn construction. It does not guarantee that every current clinical or operational fact is loaded; the agent still uses queried tools for authoritative details outside the ambient payload.

### Queried

Data that the agent retrieves on demand through tool calls during a conversation. The agent decides it needs specific information and requests it. Examples: searching for available appointment slots, looking up insurance details, checking medication lists.

Queried data covers information that is too large, too dynamic, or too specific to include in ambient context. Tools should remain the authoritative path for details that require a current lookup.

### Extracted

Supported extraction and write tools can capture structured observations from a conversation. Agent-originated clinical writes normally use the `agent_raw` source class unless a trusted server path assigns another allowed value.

During a live voice call, the system can extract configured structured patient fields from recent conversation context, including contact, demographic, language, address, and insurance information. Captured fields are written as source-attributed events and can become available before the call ends.

Extraction is an explicit configured runtime capability. Do not assume that every statement in a conversation becomes a world-model event.

Extracted data enters the world model with source provenance and confidence. External writes use authorized integration calls and any applicable approval policy; approval does not promote the observation’s confidence or prove destination success. See [Connectors and EHR Integration](https://docs.concurrence.com/data/connectors-and-ehr).

## Open Schema

The event model supports additional types of observations while retaining a common structure for identity, source, and time. New types still require agreed business definitions, validation, and consumer support.

Entity-type and event-type fields are text rather than database enums, so trusted producers can introduce a new type without an enum migration. That does not make arbitrary input self-structuring: the producer must still provide a valid event, and consumers need projection or query support for the new shape.

This flexibility is bounded by the caller's write scope, registered enrichment keys, route validation, and the projection support available for a new type.

## Entity Ontology

Entity types use ontological categories rather than domain-specific roles. A `person` entity can be a patient, a practitioner, or both - the projection function detects roles from the underlying event data rather than requiring a type declaration up front.

Person projection is role-aware. It examines the FHIR resource types on an entity's events to detect which roles the person fills and produces output that includes the relevant sections for each role. A person entity with patient events gets demographics and clinical sections. One with practitioner events gets a profile section. A merged entity with both gets all sections plus a roles list. This means a single person entity can represent the same individual across clinical and operational contexts.

### FHIR-Sourced Entity Attributes

When data arrives through EHR connectors that support FHIR, the projection pipeline surfaces a rich set of fields as directly queryable entity attributes. This means agent tools can filter, search, and reason over these fields without parsing raw FHIR resources.

| Entity Type      | Projected Fields                                                                                                                                                                                                                                                                                              |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Patient**      | Full address (line, city, state, postal code, country), preferred language, marital status, race, ethnicity, emergency contact (name, phone, relationship), facility assignment, primary insurance (payer name, practice payer ID, member ID, policyholder name, policyholder relationship, policyholder DOB) |
| **Appointment**  | Participants (provider, patient, location references and display names), appointment type, modality, duration, timezone, cancellation reason                                                                                                                                                                  |
| **Slot**         | Provider, facility, specialty, visit type IDs and names                                                                                                                                                                                                                                                       |
| **Practitioner** | Member ID, scheduling eligibility                                                                                                                                                                                                                                                                             |
| **Location**     | Full address, timezone, facility identifier, geographic coordinates                                                                                                                                                                                                                                           |

State and territory values are normalized to standard two-letter abbreviations (e.g., "Virginia" becomes "VA"), so agent queries and licensed-state filters work consistently regardless of how the source system formats addresses.

These FHIR-sourced attribute projections prefer higher numeric source-class confidence, then later ingestion time. Do not generalize that exact ordering to all entity data: enrichment, relationships, and other projections have their own resolution rules.

Other built-in entity types - place, organization, outbound task, call, and encounter - have dedicated projection logic. Unknown types can fall back to generic projection; richer custom projections require a supported configuration or implementation path.

## Entity Enrichment

Entity enrichment adds workspace-defined attributes to an entity, such as a preferred communication channel or a program-specific status. Each attribute follows registered validation rules and retains source evidence. Use existing resource fields where they already represent the intended information; define enrichment keys for the additional attributes the workflow needs.

Each enrichment value is a per-key event carrying provenance fields such as source, source system, confidence, and effective time. A patient's preferred language from a human operator, a configured data import, and a call transcript can coexist as separate events. The projection groups source-confidence values into precedence tiers, then selects within a tier by effective time, ingestion time, and event identifier. The tiers are not one-to-one with the named source classes.

### Registry-Governed Keys

Each workspace registers its enrichment keys before use. The registry specifies the entity type, allowed values, value type, minimum write confidence, and whether the value is personally identifiable information (PII). Supported types include string, number, boolean, date, enum, and JSON.

API writes against unregistered keys are rejected. Agent-extracted values with unregistered keys are dropped before entering the event stream. Register the required keys and verify the retained values when testing a capture workflow; a conversation mentioning an attribute does not prove it was stored.

The key identifier and value type are immutable after registration. To change them, admins create a new key and migrate. Unregistering a key stops future writes but does not itself rewrite existing `entity.enriched` events; separate retention or source-lifecycle actions can still affect historical availability.

### Resolve Competing Enrichment Values <a href="#why-this-matters" id="why-this-matters"></a>

Manual admin edits, supported connector backfills, structured intake, and agent extraction can all contribute enrichment values. The projection applies the precedence rules described above to choose a value while preserving the contributing observations. Inspect that provenance when a projected value differs from a recent conversation or correction.

## Entity Search

The current entity list supports case-insensitive text search across identifiers, display name, entity type, medical-record number, and phone, with additional filters for entity type, source, source system, FHIR resource type, and projection availability. The entity-intelligence search surface provides display-name search with selected filters.

Meaning-based entity retrieval is not currently available. The legacy `search_semantic` compatibility tool returns no results; use the supported text and field filters instead.

## Write Semantics

World-model writes submit events, and entity state is projected asynchronously. A successful API response does not imply that the new value is already visible in the entity projection. Use the response semantics of the specific endpoint and allow for projection delay. Supported patterns include:

* **Single-event submission** followed by asynchronous entity projection
* **Deterministic entity identifiers** when the caller supplies a canonical identifier or explicit entity ID; creation without either is not idempotent
* **FHIR upserts** that link a new event to the prior event for the same source resource through `supersedes`
* **Per-key enrichment history** with current-winner selection by the enrichment precedence tier and its timestamp and identifier tiebreakers

### Fresh Enrichment During a Conversation

Where enabled for the workspace, supported interactive enrichment writes can also become available through a temporary read overlay before the asynchronous projection catches up. Conversation reads use the same precedence-tier, timestamp, and identifier ordering as the enrichment projection. A newer observation in a lower tier does not displace a higher-tier value; within one tier, recency can decide even when numeric source-confidence values differ.

This path is best-effort and requires the applicable write and read capabilities to be enabled. A failed overlay write or read falls back to projection freshness. Connector ingestion, replay, and batch updates still follow their asynchronous projection path. The overlay does not make all world-model writes immediately visible.

## Write Scope Isolation

Supported agent write tools receive a server-constructed write scope that limits the workspace and entity they can target, whether creation is allowed, and the resource types or confidence available to the operation. The exact scope depends on the session and runtime.

Trusted system services use separate service authorization rather than an agent session's write scope. Their access is not evidence that a model-originated tool call can bypass its own scope.

Write scope constrains supported model-originated persistence paths, while the applicable projection rules separately select the read value from eligible retained observations. Customers should validate the specific tools, projections, and runtimes they enable rather than infer one universal check across every code path.

{% hint style="info" %}
Write scope isolation is one of the platform's structural safety controls. For how this fits into the broader safety architecture, see [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety).
{% endhint %}

## Direct Agent Access via Platform Functions

Beyond the three data channels, agents can query world model data directly using [platform functions](https://docs.concurrence.com/agent/platform-functions). These are SQL, AI, Python, and table-valued functions that run on the platform's compute layer and return results mid-conversation. Unlike the ambient channel (pre-loaded context) or the queried channel (built-in tool calls), platform functions can join live entity data with analytical aggregations in a single call.

Registered platform functions can cover common patterns: entity confidence assessment (which source classes and update times support this patient's projection?), caller history lookup (what happened in prior calls with this number?), and patient summary briefings. Availability depends on workspace registration and the selected runtime. For the long tail of questions no pre-built function anticipated, a workspace registers parameterized data queries (`wsq_<name>`) that run against its own custom tables. Platform functions are read-only; recording new observations as world model events is done through dedicated write tools. Those tools enforce the write scope for their runtime, and accepted events become visible through the asynchronous projection semantics described above.

For the full platform functions reference, see [Platform Functions](https://docs.concurrence.com/agent/platform-functions).

{% hint style="info" %}
**Developer Guide** - For API endpoints, SDK examples, and integration details, see the [Data & World Model](https://docs.concurrence.com/developer-guide/platform-api/data-world-model) section of the developer guide.
{% endhint %}


# Reusable Clinical Data

Define reusable clinical inputs with explicit meaning, units, time, provenance, and validation so workflows can share calculations across source systems.

A clinical workflow is easier to reuse when its calculations depend on agreed inputs rather than each customer's field names and units. A weight reported in grams and one reported in kilograms can support the same calculation after a tested conversion. A missing unit, an old measurement, or a patient report still needs its own treatment.

A **clinical data contract** is the team's agreement about those inputs and their meaning. It connects the [world model's source evidence](https://docs.concurrence.com/data/world-model) to a particular workflow. The implementation team owns the mappings and validation; clinical owners approve the definitions and how the results are used.

## Separate Connection, Meaning, and Decision

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-a7ab15f73c66d3e860b31538fcf1e03fd16d5d62%2Fclinical-data-contract.svg?alt=media" alt="Source-specific mappings produce agreed clinical inputs with retained provenance. A reusable calculation consumes those inputs, and a separately governed workflow decides how to use the result."><figcaption><p>This is an implementation pattern. Each mapping, calculation, and action needs its own validation.</p></figcaption></figure>

| Layer                  | Question it answers                          | Example                                                                    |
| ---------------------- | -------------------------------------------- | -------------------------------------------------------------------------- |
| Connection             | How does authorized data reach the workflow? | FHIR import, dataset intake, or an integration lookup                      |
| Structural mapping     | Which source field represents the input?     | A source weight field becomes the agreed weight input                      |
| Semantic normalization | What does the value mean?                    | Preserve the original unit and convert a recognized mass unit to kilograms |
| Calculation            | Which defined operation uses the inputs?     | Compute BMI from an eligible weight and height pair                        |
| Workflow policy        | What action is appropriate?                  | Apply the organization's reviewed eligibility and escalation rules         |

FHIR supplies resource structures for exchange. Receiving a FHIR Observation or using the same field name does not by itself establish compatible units, equivalent measurement methods, or suitability for a calculation. Define those requirements explicitly.

Use supported resource fields when they fit. [Registered enrichment keys](https://docs.concurrence.com/data/world-model#entity-enrichment) can hold additional workflow attributes, but a key name and value type do not define a clinical measure. Keep repeated measurements with their dates and source references rather than reducing a longitudinal requirement to one current value.

## Define the Inputs Before the Rule

Start with one workflow and the smallest set of inputs it needs. Record the following alongside its mappings and tests:

| Requirement          | What to specify                                                                                                        |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Meaning and identity | Measure or clinical concept, coding system where applicable, subject, source-scoped identifier, and relevant encounter |
| Representation       | Value type, accepted units or codes, target unit, precision, and conversion rules                                      |
| Time                 | Measurement or effective time, timezone or date precision, acceptable age, and receipt time when available             |
| Evidence             | Source record, original value and unit, measured versus reported versus derived, and correction links where supported  |
| Usability            | Required inputs, supported ranges, missingness, incompatible methods, and handling of unresolved disagreements         |
| Derivation           | Mapping and calculation versions, selected input references, evaluation time, and output meaning                       |

Keep an unknown value distinct from zero, a negative finding, and a value the reader cannot access. An inferred unit or model-derived interpretation needs its own provenance and validation. Do not silently convert an unknown unit into a measured fact.

## Define Freshness for the Decision <a href="#freshness-for-the-decision" id="freshness-for-the-decision"></a>

Freshness has several meanings. Define which one the workflow needs and how it obtains the supporting evidence.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-90a22ec9a3ef9ceb8f6734e43fcdec96ce73c1f3%2Fdata-freshness-questions.svg?alt=media" alt="Evaluate three separate questions: when the measurement happened, when the source copy was current, and whether the intended consumer can read the value. Record receipt time separately. These are requirements for an implementation&#x27;s evidence, not a universal API response shape."><figcaption><p>Use the timestamps and read evidence available to the selected integration. Treat missing evidence as unknown.</p></figcaption></figure>

**Clinical age** uses measurement or effective time. A height measured a year ago remains a year-old measurement when its record is uploaded today. The clinical owner defines whether it is eligible for the calculation.

**Source freshness** concerns the state the source supplies. When reading a reporting copy, preserve its refresh time when available. The time a query runs does not establish when that copy was current in the authoritative system. If a decision needs a current value, use an authorized lookup that can supply the required evidence or route the uncertainty for review.

**Reader visibility** concerns the selected consumer. Check that it can retrieve the intended record and value after processing or projection. Record receipt time separately to investigate transport and processing; receipt alone does not establish clinical age, source freshness, or visibility.

These are recommended input-contract requirements. Keep the evidence with the workflow even when it comes from several interfaces. For end-to-end evaluation, see [Design for Measured Freshness](https://docs.concurrence.com/data/healthcare-interoperability#design-for-measured-freshness).

## Worked Example: A BMI Input Contract

The following synthetic example checks arithmetic and mapping. It defines no screening threshold or clinical recommendation. The workflow's clinical owner determines which measurements are eligible, how closely their times must align, and whether BMI is appropriate for the intended population and use.

For eligible measurements, calculate `BMI = weight_kg / (height_m × height_m)`. Keep the unrounded result for subsequent calculations and apply the agreed rounding only for presentation.

| Synthetic source record                  | Mapping                                | Result                                                         |
| ---------------------------------------- | -------------------------------------- | -------------------------------------------------------------- |
| Weight 70 kg and height 175 cm           | Keep weight and divide height by 100   | 70 kg and 1.75 m, with BMI displayed as 22.86 kg/m²            |
| Weight 70,000 g and height 1.75 m        | Divide weight by 1,000 and keep height | The same normalized inputs and displayed BMI                   |
| Weight 70 with no unit and height 175 cm | Weight unit is unresolved              | Withhold the calculation and obtain or review the missing unit |
| Weight 70 kg and height 0 m              | Height is invalid for this calculation | Reject the input pair and request a corrected measurement      |

Treat the first two rows as alternative representations of the same synthetic case, not two independent observations. Retain their source identifiers so duplicate deliveries do not add weight to an aggregate.

A source-reported BMI and a BMI calculated from weight and height are also distinct observations. Keep the calculation's input references and version, and define how the workflow selects between eligible results. A numerically matching answer does not prove that the measurements or patient association are correct.

### A Yearly Average Needs a Different Contract

Converting one known unit is a per-record operation. An average over a year requires a selected history and an evaluation point. Specify:

1. The anchor date, window boundaries, timezone, and whether the window uses measurement time or another explicitly defined time.
2. Which observations qualify, including source, measurement method, age, and subject association.
3. How duplicates, corrections, missing units, and weight/height pairing are handled.
4. Whether the result is an arithmetic mean of eligible BMI observations or a time-weighted measure, and the minimum coverage required.
5. How a late or corrected record affects a recomputed result and any pending workflow that used it.

Compute each eligible BMI from its selected input pair before taking an arithmetic mean. Averaging the weights and heights first can produce a different result. Report observation count, covered period, and evaluation time with the result. An average from one observation does not establish a year's coverage.

See [Time and Corrections](https://docs.concurrence.com/data/world-model#time-and-corrections) for the difference between a clinical event's time and when a consumer learns about it.

## Preserve a Derivation Trail

For a calculated result, retain enough evidence to trace the output to its selected inputs: source record references, original values and units, mapping and calculation versions, and evaluation time. Keep this with the implementation's evidence package using the storage and interfaces selected for that workflow.

Entity provenance identifies contributing sources. Explaining how several fields produce one output also requires the transformation's own evidence. A source identifier alone cannot explain a unit conversion or an aggregation window.

## Validate, Then Reuse

Use the same contract tests against each source mapping. Equivalent valid inputs should produce equivalent normalized values. Missing units, ambiguous identities, and invalid inputs should reach the specified recovery path. Test late records and corrections against the temporal definition as well as the arithmetic.

[Platform functions](https://docs.concurrence.com/agent/platform-functions) and workspace queries can expose reviewed calculations through supported tool interfaces. Keep source mapping and exact arithmetic in tested code or queries, and use agent guidance to explain results and follow the approved workflow. Registering a function does not establish clinical validation.

Continue with [Connect Data to a Verified Action](https://docs.concurrence.com/developer-guide/guides/data-to-verified-action) to verify source data, agent access, and the target outcome. Use [Connect Another Workflow](https://docs.concurrence.com/data/connect-another-workflow#package-the-reusable-parts) to carry the contract, configuration, and tests into the next implementation.


# Patient Context Walkthrough

Follow one patient's source records into a clinician-reviewed note, a follow-up workflow, and a confirmed scheduling outcome.

A new application starts with useful context when patient identity, source history, and reviewed observations carry forward from earlier work. Follow Alex Morgan from a prescription through a clinician-reviewed note to a completed follow-up task.

Use the tabs to follow the patient story, inspect source evidence, and review application ownership and reuse.

{% hint style="info" %}
Alex, the records, and the timestamps are illustrative. The downloadable file describes the walkthrough. It is not a Platform API payload or a measured latency result.

The case assumes separately configured publication and follow-up integrations. Finalizing a clinical note does not itself publish a world-model observation or start follow-up work. The implementation team must establish those mappings, permissions, triggers, and recovery paths.
{% endhint %}

{% tabs %}
{% tab title="Patient story" %}

### How the Record Grows

1. **Prescription, April 6.** An EHR contributes an active blood-pressure prescription. Its source and observation time remain attached to the record. A prescription establishes what was prescribed. It does not establish what Alex took.
2. **Patient report, April 9.** Alex says, "I have skipped a few doses. I have also felt dizzy. Afternoon calls work best for me." Reported use, symptoms, and contact preference join the same history. They remain distinguishable from the prescription.
3. **Measurements, April 10.** An authorized monitoring feed contributes two blood-pressure observations with dates and units. The clinician can inspect them alongside the prescription and conversation. The record does not infer that the medication caused the dizziness.
4. **Reviewed note, April 10.** The clinician reviews the evidence and approves a care-team check-in. The clinical documentation application owns the note and review workflow. The configured publication integration contributes the approved instruction as shared context for the next application. No medication change is authorized in this case.
5. **Follow-up request, April 10.** The follow-up application uses the patient reference, reviewed instruction, and afternoon contact preference. It checks current scheduling availability, and Alex selects April 11 at 14:30 UTC. The request is submitted and the task remains pending.
6. **Confirmed result, April 10.** The scheduling system confirms the appointment. A read-back returns the same patient, appointment, and time. The application closes its task, and the shared patient view incorporates the confirmed result.

The completed work is a confirmed booking. Attendance, patient benefit, and clinical outcomes would enter the history as separate observations.
{% endtab %}

{% tab title="Evidence" %}

### Follow the Source References

Every record in this case refers to `example-patient-001`. The evidence file retains source text, example record identifiers, observation time, receipt time, and the time each observation becomes available in the shared view.

| Source                  | Example record             | What it establishes                                                     |
| ----------------------- | -------------------------- | ----------------------------------------------------------------------- |
| EHR prescription        | `example-rx-001`           | A prescription was recorded for Alex                                    |
| Patient conversation    | `example-conversation-001` | Alex reported missed doses and dizziness, and requested afternoon calls |
| Authorized measurements | `example-readings-001`     | Two observations with measurement times and units                       |
| Clinician-reviewed note | `example-note-001`         | The reviewed instruction authorizes a care-team check-in                |
| Follow-up application   | `example-task-001`         | The selected slot and attempted scheduling action                       |
| Scheduling confirmation | `example-appointment-001`  | The source confirmed the booking and a read-back matched it             |

### Receipt, Projection, and Source Confirmation

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-9a2ecac611fe716926bde70b18c8976def2812c3%2Fpatient-handoff-signals.svg?alt=media" alt="In the illustrative patient case, the request is recorded, the request becomes visible, the source confirms the booking, and the confirmed result becomes visible. These are separate signals, not a timing guarantee or proof of completed care."><figcaption><p>The order shown belongs to this example. A different integration can observe these signals in a different order.</p></figcaption></figure>

At the follow-up step, the request event has been received, its shared-view projection is still pending, and the scheduling system has not confirmed the action.

| Signal                          | In this illustrative case | Meaning                                                                       |
| ------------------------------- | ------------------------- | ----------------------------------------------------------------------------- |
| Request event received          | April 10, 14:01:01 UTC    | The request is recorded, and the application still awaits confirmation        |
| Request visible in shared view  | April 10, 14:03:00 UTC    | A reader can see the request, and the booking is still a separate transaction |
| Booking confirmed by source     | April 10, 14:04:00 UTC    | The scheduling result, supported by read-back, allows the task to complete    |
| Confirmed result in shared view | April 10, 14:05:00 UTC    | A later application can read the confirmed outcome                            |

If the source response is missing or ambiguous, the task stays unresolved while its owner reconciles the scheduling record. An event receipt, approved note, or agent statement cannot substitute for source confirmation.

The [World Model](https://docs.concurrence.com/data/world-model#four-invariants) explains provenance and projection. [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) explains how to collect external-action evidence in a provisioned test.
{% endtab %}

{% tab title="Ownership and reuse" %}

### What Each Part Owns

| Part                               | Responsibility in this case                                                                        |
| ---------------------------------- | -------------------------------------------------------------------------------------------------- |
| Data platform                      | Retain source evidence, connect the patient references, and produce the shared patient view        |
| Events                             | Communicate accepted changes to consumers. Receipt and consumer completion remain separate signals |
| Clinical documentation application | Own the note draft and clinician review                                                            |
| Configured publication integration | Publish the reviewed observation and instruction with the required patient and source references   |
| Follow-up application              | Own the task, channel checks, action permissions, scheduling request, and recovery                 |
| Scheduling system                  | Confirm the authoritative appointment state                                                        |

### What the Second Workflow Reuses

The follow-up application reuses the patient reference, connected prescription and measurement history, reviewed instruction, and contact preference. It does not need to ask Alex to reconstruct that history in a new conversation.

The application still needs permission to perform its specific action, a current availability lookup, and its own task and recovery state. Shared read access does not grant scheduling write access. Source access and patient visibility remain scoped to the authorized workspace and workflow.

For an evaluation, record which connectors, identity mappings, data definitions, and functions were reused; which action or channel configuration was newly required; and the effort to reach the second accepted outcome. Compare equivalent work and keep access lead time separate from implementation effort. Use the [Technical Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet#compare-effort-cost-and-latency) to record the result.
{% endtab %}
{% endtabs %}

## Download the Case

{% file src="/files/0w3qXfM3P0slChUuogW9" %}
Illustrative patient history, six walkthrough stages, source evidence, timestamps, and workflow responsibilities. Scenario `note-to-follow-up`, version 1.
{% endfile %}

## Continue Your Review

* [World Model](https://docs.concurrence.com/data/world-model) - identity, retained observations, and serving views.
* [Shared Context and Applications](https://docs.concurrence.com/platform-overview/shared-context-and-applications) - the three-part ownership map.
* [Connect Another Workflow](https://docs.concurrence.com/data/connect-another-workflow) - participation contract, recovery tests, and a reuse worksheet.
* [How It Works](https://docs.concurrence.com/platform-overview/how-it-works) - workflow execution and external confirmation.
* [Technical Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet) - acceptance criteria and a decision record.


# Connect Another Workflow

Plan a second healthcare workflow around reusable context, explicit application ownership, failure recovery, and measured integration effort.

The useful test of a shared data foundation is a second valuable workflow that works coherently with the first. Reuse the source connections, patient identity, evidence, and functions that fit the new task. Define the new application's actions and responsibilities separately.

This is a planning and acceptance guide, not a runnable integration recipe. Before implementation, identify an authorized workspace, confirmed source and interface access, an owner for each workflow, and a target system or test environment for actions. Use the relevant [Developer Guide](https://docs.concurrence.com/developer-guide) contract for API details.

## Start with the Second Outcome

Choose a specific next job, its operating owner, and its evidence of completion. In the [patient walkthrough](https://docs.concurrence.com/data/patient-context-walkthrough), the first workflow produces a clinician-reviewed note and check-in instruction. The second produces a confirmed booking. It reuses context without treating the note as booking permission or the booking as completed care.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-7a6d92dba133d59beb797e4f111e0bba39a885c9%2Fworkflow-reuse-loop.svg?alt=media" alt="A first workflow contributes reviewed evidence to shared context. A second workflow reuses that context, applies its own action controls, and contributes confirmed outcomes back. Measure incremental setup and the accepted result, not the number of applications."><figcaption><p>Reuse the foundation. Keep the new workflow's authority, task state, and recovery explicit.</p></figcaption></figure>

## Agree on the Application Contract

Complete these questions for each boundary before connecting the applications. They are review requirements, not fields in a new API schema.

| Boundary       | Record in the integration plan                                                                                                                |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **Read**       | Required entities and fields, permitted sources, acceptable age, and behavior when information is missing or conflicting                      |
| **Publish**    | Source and entity references, what happened, effective and observation times, receipt evidence, and how corrections refer to earlier evidence |
| **React**      | Trigger meaning, subscription owner, supported delivery and ordering behavior, deduplication, retry, replay, and reconciliation               |
| **Own**        | Authoritative task state, transaction boundary, approval policy, and which service prevents conflicting actions                               |
| **Write back** | Authorized target and action, proposal or approval requirements, confirmation evidence, and handling of uncertain results                     |
| **Operate**    | Schema and mapping owners, support handoff, audit access, stop conditions, and recovery owner                                                 |

Event receipt, updated shared context, and action completion are separate checkpoints. Keep durable application work records and verify the selected publication path's recovery behavior. Do not assume that an application save and an event publication are atomic, or that every consumer supports replay. See [Shared Context and Applications](https://docs.concurrence.com/platform-overview/shared-context-and-applications).

Access must be evaluated again for the new purpose. Reusing ingestion does not automatically authorize a new recipient, channel, or external mutation. Define what happens to queued and active tasks if access or consent changes.

## Separate Reuse from New Work

| Reuse candidate          | Validate again                                                      | Often specific to the new workflow                       |
| ------------------------ | ------------------------------------------------------------------- | -------------------------------------------------------- |
| Source connection        | Scope, source coverage, freshness, and operational owner            | Additional source permissions or records                 |
| Entity mapping           | Correct patient and related records, including ambiguous identities | New identifiers or relationship types                    |
| Shared facts and views   | Provenance, units, time meaning, missingness, and corrections       | A task-specific view or cohort definition                |
| Function or tool         | Input contract, permitted use, behavior, and test coverage          | New domain logic or action authority                     |
| Operational capabilities | Evidence access, support coverage, and failure handling             | Task state, approval rules, channels, and reconciliation |

Existing code is not necessarily a reusable product contract. Confirm supported inputs, ownership, and change management before depending on a function. A function definition alone does not establish a clinically validated library.

## Package the Reusable Parts

Treat reuse as a reviewed implementation package. Keep the following together in the team's chosen version control and evidence records:

| Reusable part                                                                       | What accompanies it                                                          | Bind for each deployment                                       |
| ----------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [Clinical data contract](https://docs.concurrence.com/data/clinical-data-contracts) | Meaning, units, time rules, missing-data behavior, and synthetic cases       | Source fields, identifiers, coverage, and permitted population |
| Mapping or calculation                                                              | Input/output definitions, version, derivation evidence, and expected results | Authorized inputs, supported runtime, and compute access       |
| Agent workflow                                                                      | Agent and graph versions, tools, verification steps, and failure cases       | Service, channel, credentials, destinations, and local policy  |
| Operating handoff                                                                   | Accountable owner, support expectations, change review, and recovery tests   | Receiving team, approval authority, and escalation route       |

Separate reusable logic from customer identifiers and credentials. A second deployment must establish its own permissions and validate the mapped inputs. Copying configuration does not copy authorization or clinical acceptance.

Promote a customer-specific mapping into a shared component only after another source or workflow demonstrates the same contract. Make remaining differences explicit parameters and retain regression cases for both uses. Assign a maintainer who reviews definition changes and tells affected consumers when revalidation is needed. Keep the package with the team's [release evidence](https://docs.concurrence.com/platform-overview/deployment-model).

## Exercise the Failure Path

Use synthetic records first. Observe both applications and the authoritative target, not just the event stream.

| Test                                              | Acceptance evidence                                                                                                    |
| ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| A source correction changes relevant context      | The new view is inspected and affected pending tasks are rechecked under an explicit application policy                |
| Equivalent measurements arrive in different units | Source mappings produce equivalent normalized inputs and the same defined calculation                                  |
| A measurement lacks a unit or arrives late        | The contract's missing-data or temporal policy is applied without inventing clinical evidence                          |
| Required context is late or unavailable           | The consumer waits, retrieves authoritative data, or escalates rather than silently proceeding with an unsuitable view |
| A trigger is repeated or arrives out of order     | The application reconciles with its task state and does not perform an unintended duplicate action                     |
| Two applications request conflicting mutations    | The authoritative service rejects or serializes the conflict. A broadcast is not the enforcement mechanism             |
| A user changes the task while a lookup is running | The completed result is checked against the current request before an action proceeds                                  |
| Approval is denied or access is revoked           | No prohibited action proceeds, and queued work is handled under the agreed policy                                      |
| A response is lost after submission               | The task remains unresolved until target evidence is reconciled, with no blind retry of a non-idempotent mutation      |

A correction does not undo an external action already completed. Define whether it requires cancellation, compensating work, or human review. Keep the original outcome and the corrective action distinguishable in the evidence.

Before testing, agree how to end sessions, cancel synthetic tasks or bookings where appropriate, and dispose of test data under the environment's retention rules. Production adds actual access agreements, channel provisioning, operating coverage, volume, and monitoring. Passing a synthetic case does not establish those conditions.

## Measure the Second Accepted Outcome

Use the same outcome definition and a recorded baseline. Separate calendar waiting for access from active mapping, implementation, validation, and support effort. Report both successful and unresolved cases. A faster happy path alone does not establish lower total effort.

{% file src="/files/x9Uize4D791exYJJuD1B" %}
First-to-second workflow comparison: reused foundations, new work, owners, acceptance evidence, and operating effort. Blank planning worksheet, not measured results.
{% endfile %}

Record time to first and second accepted value, implementation and support hours, reused components, unresolved identity conflicts, stale-context incidents, failed or duplicate actions, and workflow-owner acceptance. Attach the evidence and denominators for any claimed improvement. Do not fill missing measurements with estimates presented as results.

Finish with a decision: proceed within scope, resolve named conditions, or hold. Ask another implementation owner to repeat the setup from the recorded package. That tests whether reuse depends on the original team's undocumented knowledge. Add the decision and operating handoff to the [Technical Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet#evaluate-first-to-second-workflow-reuse).


# Data Access (MCP)

Standalone MCP service for read-only SQL exploration using Classic API organization credentials.

{% hint style="info" %}
**Choose the surface that matches the caller.** Use [platform functions](https://docs.concurrence.com/agent/platform-functions) when an agent needs data during a conversation. For external clients using Platform API workspace credentials, use the [Platform API MCP server](https://docs.concurrence.com/developer-guide/platform-api/functions/mcp-server). This page describes Data-MCP, a separate service for integrations that use Classic API organization credentials.
{% endhint %}

Data-MCP is an active, standalone Model Context Protocol service for exploring data through read-only SQL tools. It uses MCP Streamable HTTP and can be used by compatible MCP clients.

## Scope and Authentication

Data-MCP uses the Classic API organization model. A connection supplies an organization ID plus either a pre-exchanged bearer token or the complete Classic API key credential set. Queries run through the Classic API under that organization and credential context.

This contract is different from the Platform API MCP server, which uses Platform API credentials and an explicit workspace ID. Do not send a Platform API workspace header to Data-MCP or assume that credentials can be exchanged between the two services.

Data-MCP is not scoped to an individual end user inside an application. When clinicians or other external users require role-specific access, use an [external-principal](https://docs.concurrence.com/operations-and-safety/compliance#external-principals) agent session or another application authorization layer rather than sharing a broad MCP credential.

## Available Tools

Data-MCP exposes seven tools:

| Tool                | What It Does                                                                                            |
| ------------------- | ------------------------------------------------------------------------------------------------------- |
| **sql\_query**      | Run a read-only SQL query. Results are limited to 1,000 rows and the query has a 30-second timeout.     |
| **describe\_query** | Return the output columns and types a query would produce without running the query itself.             |
| **tables**          | List accessible tables, optionally filtered by a name pattern.                                          |
| **table\_schema**   | Return columns, types, and available descriptions for a table.                                          |
| **sample\_data**    | Preview a bounded number of rows from a table.                                                          |
| **table\_detail**   | Return available table statistics, properties, partitioning, and freshness metadata.                    |
| **profile\_column** | Summarize a column's cardinality, null rate, value range, and distribution where supported by its type. |

The service also exposes a data-catalog resource that helps clients discover table definitions and query guidance.

## Read-Only Boundary

The SQL execution tool accepts read-only `SELECT` queries. It is intended for exploration and analysis, not for creating tables or changing application data. Use the appropriate Platform API write endpoint, platform function, or configured integration for mutations.

Tool output reflects the tables visible to the supplied Classic API credential and the freshness of the underlying analytical data. A successful query is not evidence that every source system is current or that the result is appropriate for a particular end user.

## Regional Use

Data-MCP has regional deployments. Use the deployment and Classic API backend that correspond to the organization whose data you are querying. The service can accept an allowlisted backend override, so endpoint selection remains part of the client's residency configuration rather than an automatic global-routing guarantee.

For connection headers, endpoint URLs, and examples, see the [Data-MCP developer guide](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/data-mcp).


# Agents

Versioned agent identity, background, behavioral guidance, communication patterns, and voice configuration.

An agent version defines the identity and authored guidance that the runtime supplies to the model. It includes an identity object, background text, behavioral guidance, communication patterns, and optional voice configuration. These fields steer model behavior; they are not hard authorization or deterministic policy controls.

For a first read, separate the agent's general guidance from the [Context Graph's](https://docs.concurrence.com/agent/context-graphs) workflow and the service configuration that deploys both. [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts#configuration-what-a-service-deploys) shows that relationship. This page then explains what belongs in the agent version and how to review it.

## Agent as Interpretive Framework

The agent gives the model a domain-specific frame for interpreting the current conversation and available context. Two agents can respond differently to the same evidence because their identity, background, and guidance emphasize different responsibilities and boundaries.

The agent guidance serves three purposes:

1. **Interpretation.** Background and behavioral guidance help the model decide which available facts matter to the current task.
2. **Workflow behavior.** Agent guidance combines with the active Context Graph state, tools, and channel policy when the runtime generates a response or chooses a modeled action.
3. **Communication.** Identity and communication patterns shape language, tone, and professional boundaries across supported channels.

## Core Components

The agent definition is distinct from the procedure that executes a decision. Fast rules or decision models can handle bounded judgments, while an LLM can interpret unfamiliar combinations or provide deliberation. These are System 1 and System 2 roles within a larger system, not two kinds of agent-version resource. See [Reasoning Architecture](https://docs.concurrence.com/agent/universal-reasoning) for how authored definitions, evidence, and decision procedures compose.

The Platform API stores an agent as a named parent resource and its immutable versions as configuration snapshots.

* **Identity** - Structured persona fields such as name, role, language, and developer attribution.
* **Background** - Bounded text describing relevant domain context, expertise, and operating stance.
* **Behaviors** - Authored rules and priorities for what the agent should or should not do.
* **Communication patterns** - Authored guidance for tone, wording, and response style.
* **Voice configuration** - An optional voice selection for speech output.
* **Program** - What a service runs when it selects the version: the [Context Graph](https://docs.concurrence.com/agent/context-graphs) the service binds, which is the default, or a [direct program](https://docs.concurrence.com/agent/direct-programs), the version's own instructions and tool grants with no Context Graph.

Persona is not a standalone Platform resource. Identity is embedded in each agent version, and services resolve the selected agent version through their version-set configuration.

### Persona: Two Layers

Authors commonly divide persona content into two conceptual layers:

* **Identity layer** - Structured attributes such as name, role, and default language.
* **Background layer** - Domain context, expertise, biography, and guiding principles stored in the version's background text.

The API bounds the background field by characters, not tokens. Keep it focused enough for reviewers to understand which guidance belongs globally and which belongs in a specific Context Graph state.

### Behavioral vs. Communication Guidance

The current agent-version schema separates two categories:

* **Behavioral guidance** describes intended scope and priorities, such as refusing to create meal plans or routing medical questions to an approved clinical workflow.
* **Communication patterns** describe expression, such as tone, spelling conventions, sentence structure, and prohibited phrases.

The distinction keeps operating boundaries separate from presentation style. Both are model instructions. Enforce permissions, data access, and external mutations with server-side authorization, tool exposure, validation, and approval policy rather than relying on these fields alone.

## How the Agent Core Connects to Other Systems

The selected agent version contributes to the runtime prompt alongside other components:

* [Functional Memory](https://docs.concurrence.com/agent/memory) and world-model enrichment can supply selected cross-session context.
* The active [Context Graph](https://docs.concurrence.com/agent/context-graphs) supplies state-specific objectives, boundaries, exits, and tool bindings.
* The service and channel determine runtime capabilities, transport behavior, and additional tool exposure.
* Server-side authorization and tool validation determine which operations can actually execute.

Agent versions and Context Graph versions have separate lifecycles. A version set can pin each independently; memory and world-model state are data inputs rather than artifacts versioned with the agent.

## Designing an Agent Core

Put guidance that applies across workflows in the agent version. Put workflow-specific objectives, boundaries, exits, and tool access in the Context Graph states where reviewers can inspect and test them.

A practical process looks like this:

1. **Interview domain experts.** Capture how they assess severity, personalize guidance, and escalate edge cases.
2. **Translate heuristics into directives.** Express their rules in precise language a model can follow and an auditor can review.
3. **Separate prompt guidance from controls.** Define authored boundaries, then implement enforceable authorization, validation, approval, and escalation paths where required.
4. **Validate with simulations.** Run representative scenarios to confirm the identity behaves as intended before exposing it to users.

## Success Criteria

A well-designed agent version aims for the following traits in representative testing:

* **Appropriate voice and judgment** across the scenarios the team has exercised.
* **Escalation behavior** that matches documented policy in the evaluated cases.
* **Clear boundaries** for permitted work, with a tested handoff when a person must take responsibility.
* **Reviewable configuration** that separates global agent guidance from state, tool, and channel controls.

If observed behavior diverges from the authored agent fields, inspect the Context Graph, state guidance, available tools, memory inputs, runtime, and channel-specific policy.

{% hint style="info" %}
**Related sections** - See [Context Graphs](https://docs.concurrence.com/agent/context-graphs) for how the agent navigates problem spaces and [Functional Memory](https://docs.concurrence.com/agent/memory) for bounded cross-session context. See [Dynamic Behaviors](https://docs.concurrence.com/agent/context-graphs/dynamic-behaviors) for guidance that a service pins and a model chooses to apply on the caller turns where it seems to fit.
{% endhint %}

{% hint style="success" %}
**For developers:** See [Agents](https://docs.concurrence.com/developer-guide/platform-api/workspaces/agents) for the current Platform API fields, versioning behavior, and examples.
{% endhint %}


# Reasoning Engine

How agent guidance, Context Graphs, tools, and channel controls coordinate reasoning, ongoing work, and responses across supported interactions.

The reasoning engine combines an agent's guidance, a Context Graph's problem definition, and available evidence to decide what to do next. Supported state-machine paths can navigate a workflow, invoke tools, use their results, and continue without requiring another user message. Voice, text, and simulation reuse definitions and selected reasoning components, while their execution, delivery, and connection lifecycles differ.

Reasoning is part of the Agent Engine's wider responsibility: receiving input, coordinating ongoing work, and controlling what reaches the user or an external system. Generating a reply, playing it, and completing an external action are separate events.

## Why a Unified Engine Matters

For the broader architecture, read [Reasoning Architecture](https://docs.concurrence.com/agent/universal-reasoning). It explains why a reasoning system combines software-defined problems, exact computation, fast decisions, and model deliberation over source-linked views, and distinguishes that design from the execution contracts on this page.

A workflow's objective can stay the same across channels even when its interaction changes. An availability lookup may support a spoken conversation or an asynchronous message. The agent still needs to interpret the request, use the permitted tools, and explain their result, while each channel handles waiting, interruption, and delivery differently.

Concurrence separates reusable agent and problem definitions from those channel concerns. Teams can change workflow guidance without rebuilding audio transport, or add a supported channel while retaining the same authored objectives. Each channel still needs its own validation.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-170f3188ec2a0504269f66c2662a1f888642b98c%2Freasoning-engine-blue.svg?alt=media" alt="Shared agent, graph, and tool definitions support distinct execution paths: text returns responses and effects; simulation captures evidence with dry-run tools by default; platform-managed voice streams generated speech; provider realtime uses one ActionState with platform-controlled tools, playback, and call control."><figcaption><p>Shared definitions support reuse. Each runtime has its own input, execution, and delivery contract.</p></figcaption></figure>

## What the Designer Controls

Agent and Context Graph definitions are declarative assets: they describe the intended behavior and can be versioned, reviewed, and evaluated together.

| Part                             | Designer specifies                                                         | Role during execution                                                   |
| -------------------------------- | -------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| **Agent**                        | Role, communication style, and general guidance                            | Gives the model a consistent perspective for interpreting the task      |
| **Context Graph**                | Objectives, states, transitions, and state-specific instructions           | Defines the problem and the paths available for addressing it           |
| **Tool binding**                 | Eligible operations, execution timing, result delivery, and retention      | Connects a state's work to the tools and result-handling rules it needs |
| **Service and runtime controls** | Channel settings, authorization, validation, and supported safety behavior | Apply the operating boundaries for that deployment                      |

Use model judgment where interpretation is useful, such as understanding a request or explaining available options. Put requirements that must block an operation into the corresponding authorization, validation, or supported approval boundary. A state instruction to obtain confirmation guides the agent. An enforced confirmation requirement also needs a tool or approval check that rejects execution without it.

This lets a workflow vary how much judgment each step allows. It does not make model-backed navigation or responses deterministic. See [Context Graphs](https://docs.concurrence.com/agent/context-graphs) and [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety) for the specific controls.

## Cut, Navigate, Affect <a href="#cut-navigate-engage" id="cut-navigate-engage"></a>

Three responsibilities explain the architecture. They describe different decisions, rather than three mandatory model calls:

| Responsibility | Decision                                                     | Current execution boundary                                                                                                                                      |
| -------------- | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Cut**        | Which input belongs together for processing?                 | Platform-managed voice captures a bounded packet with the transcript and available confidence evidence. Text begins with a message or supported event.          |
| **Navigate**   | Which computation or workflow step should handle that input? | Native graph navigation selects within the authored workflow. Eligible processing can also update context or channel control without generating a reply.        |
| **Affect**     | Which output or action can proceed, and when?                | Channel-specific controls coordinate speech, interruption, tool execution, and delivery. A selected action still needs its authorization and completion checks. |

The term **engage** has a narrower role in the current implementation: generating a response and tool calls, or preparing the voice timeline's selected behavior. Engagement is not the entire effect-arbitration responsibility. The [voice timeline](https://docs.concurrence.com/channels/voice/audio-pipeline#voice-timeline) uses its own cut/navigate/engage cycle to coordinate fillers, pauses, progress narration, and responses.

A packet is a processing boundary, not necessarily one transport message. A cut does not by itself mean that speech stops. Likewise, selecting work does not mean that an external action completed. See [universal processing responsibilities](https://docs.concurrence.com/agent/universal-reasoning#the-broader-universal-processing-engine) for the design model and [the pipeline](#the-pipeline) for the distinct runtime paths.

## Signals and Effects

The engine communicates through two primitives.

**Signals** represent something that happened. On signal-processing paths, adapters normalize relevant input into typed signals:

| Signal             | What It Represents                                                            |
| ------------------ | ----------------------------------------------------------------------------- |
| **Utterance**      | The caller or user said something (text, from any source)                     |
| **Tool result**    | A tool execution completed with a result                                      |
| **Silence**        | The caller has been silent beyond the configured threshold                    |
| **Barge-in**       | The caller interrupted the agent mid-speech                                   |
| **External event** | An injected event from an operator, surface submission, or external system    |
| **System**         | A system-level event such as a timeout, connection change, or error condition |

**Effects** are typed outputs in the shared reasoning contract. Some request future delivery, and others report work already performed. For example, a tool-called effect can report a tool invocation that the reasoning path has already executed, rather than ask a downstream scheduler to execute it again. The specific type and runtime determine the lifecycle. The table maps output concepts to channel behavior. It does not imply one identical effect-consumption loop or prove external completion:

| Effect                 | Voice                                                      | SMS                                                                       | Simulation                                                                             |
| ---------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| **Respond**            | Stream the generated response through the voice pipeline   | Send as an SMS message                                                    | Capture as simulation output                                                           |
| **Filler**             | Play filler audio ("Let me check on that...")              | No-op                                                                     | No-op                                                                                  |
| **Pause**              | Hold deliberate silence                                    | No caller-facing output                                                   | Capture the effect when applicable                                                     |
| **Tool call / result** | Execute through the voice tool path and process its result | Supported execution path may report the completed invocation as an effect | Dry-run or configured mock by default. Explicitly selected eligible reads can run live |
| **Terminate**          | Hang up after final speech                                 | End session                                                               | Return final state                                                                     |
| **Transition**         | Records a state change with no caller-facing output        | Same                                                                      | Capture in trace log                                                                   |
| **Observe**            | Emits an analytics event with no caller-facing output      | Same                                                                      | Capture in trace log                                                                   |

## The Pipeline

The interaction can be understood through three stages. A signal can update context or control the channel without requiring a new model response. For example, barge-in can interrupt playback.

**Perceive.** Text and simulation convert supported input into typed signals. Platform-managed voice forms processing packets from recognized speech and supported events, retaining the available confidence evidence at the input boundary. This gives processing a consistent input snapshot while new signals can continue to arrive.

**Reason.** The native state-machine path implements cut/navigate/engage at the conversation level:

1. **Navigate** - The context graph engine determines the current state, evaluates transition conditions, and selects the appropriate action.
2. **Engage** - The response generation model produces a reply, drawing on the agent's persona, current state guidance, selected memory, patient data from the world model, and the empathy guidance described below.
3. **Execute** - If the model calls tools, the engine executes them, supplies their results to subsequent reasoning, and re-engages within the configured execution limits.

**Act.** The selected runtime turns reasoning results into channel output. Text and simulation can return materialized effects. Native voice consumes navigation and engagement prompts through its streaming pipeline. The [voice timeline](https://docs.concurrence.com/channels/voice/audio-pipeline#voice-timeline) coordinates fillers, empathy pauses, and tool progress narration within each turn.

The execution paths reuse components without sharing one complete runtime loop:

| Path                              | How reasoning reaches execution                                                                                                | Boundary to preserve                                                                                                                                                                                       |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Native text and simulation**    | Process signals through the shared reasoning entry point and expose supported effects or streamed results                      | Delivery, persistence, and simulation write behavior remain path-specific                                                                                                                                  |
| **Native voice**                  | Uses shared navigation and engagement components, then streams speech through its voice pipeline                               | Consumes navigation and engagement prompts rather than the same completed-effect list                                                                                                                      |
| **Provider-owned realtime voice** | The provider generates the conversation, and platform controls govern tool execution, playback, interruption, and call control | `gpt_realtime` supports one ActionState or 2 to 12 with unique names and valid exits. The model requests moves and can stay put. `eleven_realtime` requires exactly one. Neither uses per-state TurnPolicy |

Response streaming can reduce the wait for complete text before delivery. It does not make these execution paths equivalent. Confirm the service's selected runtime and provider when relying on state-specific behavior.

Simulation tools return dry-run results or configured mocks by default. Supported simulation launches can opt eligible reads into live execution. Writes and approval-gated tools remain simulated, and companion skills do not run live. The text Playground and browser test calls run tools live. See [Simulations](https://docs.concurrence.com/testing/testing/simulations) before choosing a test surface.

Filler handling is channel-aware. Voice can play a short acknowledgement while work continues. Asynchronous messaging channels suppress voice-style filler and deliver results through their channel-specific completion flow. See [Email](https://docs.concurrence.com/channels/email#long-running-tools-and-reply-delivery) for a non-live example.

Navigation can also be re-evaluated after a successful tool result rather than waiting for another user message. This occurs only for tool bindings configured for completion-gated navigation. The navigator may remain in the current state or select another valid state. See [Action State Extensions](https://docs.concurrence.com/agent/context-graphs#action-state-extensions).

## Empathy Adaptation

On each caller or user turn, a model-backed read of the turn's words classifies the support it calls for: Functional, Light Touch, Full Empathy, or Hold Space. At Full Empathy the response prompt asks the reply to open with empathy, and at Hold Space the whole reply is empathy and does not advance the task. On voice, the tier also sets the empathy pause and whether a filler is an empathy filler or a plain receipt. See [Empathy-Gated Filler Behavior](https://docs.concurrence.com/channels/voice/audio-pipeline#empathy-gated-filler-behavior).

The tier is model-derived guidance for the reply, not a verified statement about the caller's internal state, and safety or clinical decisions should not rely on it alone.

## Per-State Configuration (TurnPolicy)

Each context graph state can configure the pipeline independently, except on `gpt_realtime`, which reads none of a state's turn policy. A medication verification state behaves differently than a general scheduling state - not because the reasoning logic changes, but because the state's turn policy tunes the pipeline for that context.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-5cde10eb7d026599eff72438907dad513683c0ed%2Fturn-policy-green.svg?alt=media" alt="TurnPolicy scope: platform-managed voice uses barge-in, forwarding restrictions, and supported speech-recognition controls; voice and text use context strategy. State-tool bindings separately define workflow tools. Provider realtime does not read TurnPolicy."><figcaption><p>Per-state settings apply only on the runtime and recognition paths that consume them. Tool bindings are a separate configuration surface.</p></figcaption></figure>

Four areas are configurable per state:

* **Barge-in** - Enable or disable caller interruptions for the active state. The service's minimum speech duration applies during the greeting as well as later responses, and there is no separate greeting-shield duration. A quick-answer state can keep barge-in enabled for faster turn-taking.
* **Context strategy** - Choose full history or compact past state groups. With compact history, a per-state threshold caps how much history the prompt keeps, and the engine can also ratchet to compact mode when prompt usage approaches the engine's context limit.
* **Forwarding restrictions** (voice only) - On the platform-managed runtime, turn policy can block call forwarding entirely or after a configured number of turns. State-tool bindings separately define workflow actions, and TurnPolicy is not the general tool registry.
* **STT sensitivity** (voice only) - End-of-turn thresholds and silence timeouts, on recognition paths that accept changes during a call. An English call on the default recognizer ignores them. Data collection states use higher thresholds and longer timeouts because callers pause between pieces of information. Quick-answer states use lower thresholds for faster responses.

On `gpt_realtime`, the service's `barge_in_min_speech_s` applies after the call opening. See [Barge-in](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#barge-in) for how it cuts a reply.

## Model Configuration

Navigation and engagement are separate responsibilities. Native navigation uses a platform-managed decision path to choose among the graph's permitted alternatives. Engagement handles tool calling and response generation through the selected runtime's supported model configuration. A model preference field does not establish that every runtime uses it. Model-backed navigation and response generation remain probabilistic.

## Graceful Degradation

Selected failure paths have bounded fallbacks so an optional subsystem or a single model timeout does not automatically end a session.

| Component               | Failure                                            | Fallback                                                                                         |
| ----------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| **Navigation decision** | Timeout, invalid choice, or unusable decision      | Retains the current state and action for engagement rather than selecting an unchosen transition |
| **Context pressure**    | Prompt usage approaches the engine's context limit | Compacts past state groups and caps retained history                                             |

These paths reduce failure propagation, but they are not a zero-failure guarantee. Transport loss, exhausted fallbacks, session limits, or failures in required dependencies can still interrupt or end an interaction.

## Voice Control Plane

Voice calls combine service, agent, and workspace settings with platform defaults to control vocal identity and delivery. They do not use one universal override hierarchy. Each field family has its own resolution rule.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-092315c2d562ad7054774e86e3b269089ff56e67%2Fvoice-control-plane-blue.svg?alt=media" alt="Platform-managed voice separates field-specific configuration resolution, active-state TurnPolicy, and best-effort signal-based adaptation. These are distinct scopes rather than a single inheritance chain."><figcaption><p>Platform-managed voice. Provider realtime does not read per-state TurnPolicy.</p></figcaption></figure>

| Setting Family                           | Resolution                                                                                                                                                                                                                                                                                                                                                            |
| ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Service pipeline tuning**              | A service value applies when set. Otherwise the field uses its documented runtime default or supported fallback                                                                                                                                                                                                                                                       |
| **Session provider**                     | Service, then agent, then `concurrence`, the platform-managed runtime                                                                                                                                                                                                                                                                                                 |
| **TTS provider**                         | On the platform-managed runtime: service, then agent, then workspace, then the [Default TTS Model](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#default-tts-model) rule. Per-language maps check the exact language, base language, and `multilingual` key, with service, agent, and workspace precedence within each key |
| **TTS provider configuration and model** | On the platform-managed runtime: workspace provider configuration forms the base, then agent and service configuration override it. A service model is the final model override, and unresolved values use the platform defaults. A selected per-language entry can replace the merged base provider configuration                                                    |
| **Workspace voice settings**             | Provide voice identity, tone, speed, volume, language, domain vocabulary, sensitive topics, and other workspace baselines for the fields that consult them                                                                                                                                                                                                            |
| **Per-state `TurnPolicy`**               | Controls separate state behavior: barge-in and STT sensitivity on the platform-managed runtime, with STT sensitivity only where the recognizer supports it, and context strategy on that runtime and in text conversations. It is not another provider-inheritance tier                                                                                               |

On `gpt_realtime`, the voice comes from `realtime.voice` and the call's language is the agent's default language, English when it is empty or not recognized. A service that serves English and Spanish from an English default runs the bilingual session instead. See [Languages a Service Serves](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#languages-a-service-serves).

Navigation can select a turn-specific tone from a fixed tone set, based on the conversation. Without one, an explicit workspace tone or a sensitive-topic match sets the computed voice context, and provider defaults apply when no turn tone is available. This tone choice is separate from provider and TTS configuration resolution. See [TTS Tone Resolution](https://docs.concurrence.com/channels/voice/audio-pipeline#tts-tone-resolution).

## Concurrency

User input, reasoning, tool execution, and delivery can overlap. A caller can correct a request while a lookup is running, and a tool can finish after the agent has stopped speaking. Receiving information, continuing reasoning, and delivering a response are separate decisions.

Supported runtimes coordinate accepted interaction work while tools and background tasks can run independently. A tool binding separately controls whether work blocks or runs in the background, how success and failure return to the interaction, and how results are retained. Lifecycle support differs by modality. See [Tool Dispatch Configuration](https://docs.concurrence.com/agent/context-graphs#tool-dispatch-configuration).

For example, with a voice lookup configured for background execution and interrupt delivery:

1. The caller asks for Friday's availability and the agent starts the lookup.
2. The voice runtime manages waiting and any configured progress speech while the lookup runs.
3. When the result is ready and continuation is permitted, the agent can present the options without another user message.
4. If the caller changes the request, the new input can interrupt speech and start another reasoning step. The completed lookup and whether to speak about it remain separate. Continuation checks account for newer input and pending transcription, but do not establish universal rejection of every stale result.

With several outstanding voice tools, the current continuation path waits for the last completion before considering an automatic response. Earlier results can be recorded without generating separate responses.

Interrupting speech does not undo a tool's completed action. Requesting cancellation is also different from confirming that work stopped. For an external write with an uncertain outcome, check the operation's documented completion status or supported read-back before deciding whether to retry. A transport acknowledgement alone does not establish that the requested change happened.

Voice coordinates fillers, responses, empathy pauses, and progress narration on one timeline. Text uses its supported conversation and background-result lifecycle. These controls do not promise identical delivery timing, recovery of every in-flight task, or bit-exact replay across channels. See [Text Sessions](https://docs.concurrence.com/channels/text-sessions) and the [Voice Timeline](https://docs.concurrence.com/channels/voice/audio-pipeline#voice-timeline).

## Design Direction: Universal Reasoning Harness

The proposed harness extends the shared reasoning contract to work whose input, reasoning, actions, and delivery have independent lifetimes. An external record update could lead to background work and an observed outcome without a conversational reply. The design retains declarative agent and problem definitions while making dependencies, context validity, and ownership of ongoing work explicit.

The broader [universal processing engine design](https://docs.concurrence.com/agent/universal-reasoning#the-broader-universal-processing-engine) separates cut policy, consumer dispatch policy, and effect arbitration policy. This harness develops execution ownership within that architecture. A priority queue, one worker layout, or serial packet processing is an implementation choice rather than a required property of the design.

Current implementations provide the channel behavior described above. Full execution ownership, background behavior selection, and general evidence-preload support are proposed extensions. Their presence in this design does not establish support in every runtime or deployment.

### Capture Context, Decide, and Accept Work

| Step        | Purpose in the proposed harness                                                                               |
| ----------- | ------------------------------------------------------------------------------------------------------------- |
| **Cut**     | Capture a bounded selection of relevant context while new signals can continue to arrive                      |
| **Reason**  | Interpret that context using the agent and problem definition, through deterministic rules or model reasoning |
| **Enqueue** | Accept intended work with priority, dependencies, and conditions under which it remains valid                 |

A signal supplies information, and the harness decides whether that information requires work. A cut creates a context boundary and need not interrupt current activity. Interruption or invalidation becomes necessary when changed assumptions affect unfinished work. Priority orders work that is eligible to proceed. It cannot satisfy a missing prerequisite or grant permission.

The bounded input captured at a cut is a *processing packet*, called a *quantum* in earlier harness designs. Its scope follows the task rather than a network-packet boundary. Smaller units allow earlier reconsideration but can add overhead and discarded reasoning. Larger units preserve more continuity but can leave more work to reconsider after a correction. Forming a packet does not require every consumer to run or produce an output.

One execution owner would accept changes to state and scheduling. Concurrent workers would return proposed guidance, results, or outcomes for that owner to check. The owner would check relevance when accepting a result and again before releasing dependent work, while remaining responsive to control signals during long model requests.

For example, a Friday behavior selection that finishes after the request has changed to Monday must not restore Friday's instructions merely because it completed last. The proposed acceptance checks generalize the narrower voice continuation checks above. Replacement of an execution owner must also prevent the previous owner from continuing to accept changes.

### Background Guidance and Required Evidence

The proposed background selector would compute behavior guidance against captured context while other eligible work continues. Advisory guidance could be adopted at a later reasoning boundary. If an action or response requires a selection, that dependency would hold the affected work until selection succeeds or the defined fallback resolves it. Mandatory constraints remain enforced while selection is pending or fails.

The same distinction applies to [memory and required evidence](https://docs.concurrence.com/agent/memory#context-required-by-a-task). Loading information early can reduce waiting, while required evidence gates the decision that uses it. New contradictions or missing facts can trigger additional authorized retrieval even when they were absent from the initial context declaration.

A model request already in flight has received its context. Accepting new guidance means using it in a later request or cancelling and regenerating unfinished output. Changing shared instructions does not rewrite the active request. A correction can require a new decision, while an ordinary update may wait until the next boundary.

Voice filler can acknowledge that work is continuing. Its usefulness depends on measured timing: initial silence, any gap after the filler, and time to meaningful output. Filler does not satisfy a prerequisite or restart the latency measurement.

### Recovery and Human Control

The target contract distinguishes an intended action, its submission attempts, and its confirmed outcome. Recovery would retain pending obligations or explicitly mark them unresolved. An uncertain external submission requires the provider's supported idempotency or reconciliation path before retrying. Execution ownership alone cannot guarantee exactly-once effects.

Operator guidance, takeover, and handback need separate authority and scope. The proposed harness would reconsider affected pending work after handback and retain already submitted actions for reconciliation. Current controls and channel limits remain documented in [Operators](https://docs.concurrence.com/operations-and-safety/operators). This design does not promise restoration of every dropped call or recovery of every running tool.

Evaluate recorded-result replay separately from rerunning models. The former inspects execution handling for supplied outcomes, and the latter also measures model variability. Agree on covered failures, recovery deadlines, meaningful-output latency, and total cost under a stated workload before assigning production targets. See [Evaluating Concurrence](https://docs.concurrence.com/platform-overview/evaluating-amigo).

## Modality Adapters

Adapters and channel runtimes handle the following input and output responsibilities on the supported native paths. These are behavior categories, not a claim that every channel consumes the same effect objects. Provider-owned realtime voice follows its separate session lifecycle described above.

| Adapter        | Signal Production                                                                                         | Output Handling                                                                                                              |
| -------------- | --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **Voice**      | Recognized speech and supported events form input packets. Silence and barge-in follow the voice timeline | Streams responses through TTS and manages fillers, pauses, and termination within the voice lifecycle                        |
| **Text (SMS)** | Incoming messages produce utterance signals                                                               | Respond effects send SMS messages, and terminate effects end the session                                                     |
| **Simulation** | Test parameters inject utterance signals                                                                  | Captures simulation evidence. Tools use dry runs or mocks, with live execution limited to explicitly selected eligible reads |

New modalities can reuse the signal-and-effect contract through an adapter. Channel-specific delivery, lifecycle, authorization, and failure handling still require integration and testing.

{% hint style="info" %}
**Related sections** - See [Context Graphs](https://docs.concurrence.com/agent/context-graphs) for how the engine navigates problem spaces, [Functional Memory](https://docs.concurrence.com/agent/memory) for bounded cross-session context, and [Voice Agent](https://docs.concurrence.com/channels/voice) for voice-specific pipeline details. [Dynamic Behaviors](https://docs.concurrence.com/agent/context-graphs/dynamic-behaviors) covers guidance chosen on each caller turn from a workspace library.
{% endhint %}


# Reasoning Architecture

How problem definitions, source-linked world-model views, exact programs, fast decisions, and deliberative models compose into a reasoning system.

Concurrence combines a shared data foundation with configured applications and agent workflows. The world model supplies source-linked context; agent and Context Graph definitions describe the work; supported runtimes and tools interpret requests and perform authorized operations. Agents are one consumer of that foundation, not its entire purpose. Applications retain responsibility for their own tasks, transactions, and completion records.

*Universal reasoning* names this composition across supported tasks and channels, not unlimited competence or a separate API resource. A workflow can combine exact computation, bounded classification, model interpretation, and authorized actions without assigning all of them to one model.

The central design principle is to use the least expensive procedure that meets the task's evidence and outcome requirements. SQL can answer a precisely specified data question. A classifier can recognize a familiar condition. An LLM can interpret an unfamiliar request or reconcile competing objectives. Software defines the boundaries within which those procedures operate.

This page explains the composition. Existing agent, graph, data, and tool contracts remain the authority for supported behavior. A general learned controller that chooses among all these procedures, automatically distills new policies, or optimizes measured entropy is a research direction, not an existing Platform API capability.

## Four Parts of One System

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-d6b3c5e2fe68f3403df2a441357d460735fb367e%2Funiversal-reasoning-composition.svg?alt=media" alt="Source-linked context and authored definitions inform a composition of exact programs, rules, classifiers, typed decisions, and model reasoning. Runtime actions require their own controls and outcome evidence."><figcaption><p>A composition of roles. This does not imply an automatic universal router.</p></figcaption></figure>

| Part                | Question it answers                                    | Responsibility                                                                      |
| ------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------- |
| World model         | What evidence is available, about whom, and from when? | Retain supported observations and derive scoped, source-linked views                |
| Problem definition  | What counts as useful, permitted, and complete?        | Define objectives, states, evidence requirements, tools, and completion conditions  |
| Decision procedures | Which interpretation or next step fits this situation? | Apply exact programs, rules, classifiers, or model reasoning                        |
| Execution runtime   | What can run now, and what happened?                   | Coordinate signals, state, tool execution, channel delivery, and observable results |

These are responsibilities rather than four mandatory serial calls. A signal can update context without producing a response. A known transition can avoid deliberation. A difficult case can require additional retrieval, a tool result, or a person before proceeding.

The [Agents](https://docs.concurrence.com/agent/agents) supplies the role and interpretive perspective. The [Context Graph](https://docs.concurrence.com/agent/context-graphs) describes the work. The [World Model](https://docs.concurrence.com/data/world-model) supplies evidence. The [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine) coordinates the supported execution paths.

## What You Configure Today

The architectural roles map to existing product objects. Their availability and execution rules remain specific to the selected API, runtime, and deployment.

| Need                                               | Configuration surface                                                            | Boundary                                                                                                                                |
| -------------------------------------------------- | -------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| Define perspective and workflow                    | Agent versions, Context Graph versions, and state-tool bindings                  | Authored guidance steers the model. Authorization and validation enforce permissions                                                    |
| Select deployed behavior                           | Services and version sets, including navigation and engagement model preferences | A version set can pin agent and graph versions. It does not freeze data, every tool, or channel behavior                                |
| Retrieve and compute                               | Registered Platform Functions and workspace data queries                         | Supported SQL, AI, Python, and table-valued computations are read-only. Registration, loading, runtime, and bindings determine exposure |
| Change an external system or record an observation | Configured integration and dedicated write tools                                 | A requested or accepted operation is not evidence of external completion                                                                |
| Add a specialized decision model                   | A separately implemented and evaluated integration                               | Jev and Laya are external examples, not built-in model options or announced integrations                                                |

A general learned controller, automatic policy distillation, and predictive world dynamics are research directions. None is required to build a workflow with the existing objects. Start with [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts) and [Build and Prove a Workflow](https://docs.concurrence.com/developer-guide/guides/build-and-prove) for the implementation path; the [Glossary](https://docs.concurrence.com/reference/glossary) fixes the terminology used here.

## Software Defines the Problem Space

A task is more than an instruction to produce text. It has an object of work, relevant observations, admissible actions, objectives, and a way to recognize completion. Those elements make a problem reviewable and testable.

For appointment rescheduling, the object is a specific appointment for a resolved person. Relevant evidence includes the caller's request, current availability, and booking state. Permitted actions depend on authorization and the configured workflow. Completion requires evidence from the scheduling system, not merely an agent saying that the appointment moved.

Context Graphs encode part of this problem definition through states, objectives, transitions, guidance, and tool bindings. Their intentional incompleteness leaves room for interpretation within the authored workflow. A graph can narrow the available actions without making model-driven navigation deterministic. Server-side permissions, validation, and approval controls enforce the boundaries that require enforcement.

Dynamic adaptation also needs an explicit owner. Platform services use conditional graph states, transitions, guidance, turn policies, and tool bindings, and can pin [dynamic behaviors](https://docs.concurrence.com/agent/context-graphs/dynamic-behaviors): guidance chosen on each caller turn from conditions and examples. A broader background behavior selector beyond these belongs to the [proposed reasoning harness](https://docs.concurrence.com/agent/reasoning-engine#design-direction-universal-reasoning-harness).

## The Broader Universal Processing Engine

Reasoning is only one responsibility in a continuously operating system. A **universal processing engine** is the broader architectural design: select which incoming signals belong together, dispatch eligible computations, and coordinate which intended effects may reach the outside world. A model call is optional, and a visible response is optional. This term does not name another Platform API resource or claim that current runtimes implement one complete universal executor.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-02e894c7b6d38b7bd632092456494030c2fd768f%2Funiversal-processing-boundaries.svg?alt=media" alt="The foundational design separates packet formation, independent consumers, and effect arbitration. Channel execution and observed outcomes are separate from intended effects."><figcaption><p>Design model, not a claim of one complete shipped runtime. Queue choice is an implementation decision.</p></figcaption></figure>

### Three Policies, Three Different Decisions

| Policy                        | Question                                                                         | Boundary                                                                                                                                                               |
| ----------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Cut policy**                | When should a processing packet be formed, and which evidence belongs in it?     | A packet is a bounded processing input, not necessarily one transport message. Forming it does not itself interrupt output or invoke a model.                          |
| **Consumer dispatch policy**  | Which programs are eligible to consume this packet?                              | A packet can have no consumer or several independent consumers. A consumer can use code, rules, classifiers, decision models, or an LLM and need not emit an artifact. |
| **Effect arbitration policy** | Which proposed outputs may proceed, on which tracks, and under which conditions? | Priority does not override authorization, unmet dependencies, capacity limits, or relevance checks. Accepting an effect is not proof of its completion.                |

These conceptual policies are not interchangeable with the existing per-state `TurnPolicy`, tool-dispatch settings, or dynamic behavior sets. Those resources implement particular controls with their own contracts. They do not expose the entire proposed policy system.

A simple text message can already be a complete processing packet. A more complex design may group a burst of related messages or align a transcript with separately derived acoustic annotations. Grouping changes what a consumer can interpret. It does not make an inferred meaning true. Packet formation should retain source, time, and missing-evidence distinctions rather than silently treating nearby signals as causally related. Fixed windows and intent-based boundaries require evaluation against the task, not one universal timing rule.

### Coordinate Effects, Not Just Model Answers

An **output track** is a logical capacity and ordering boundary in this design. Foreground speech may allow only one active utterance, while independent tool work may proceed concurrently within a limit. Those are different scheduling requirements. Dependencies can connect tracks: a response may require a tool result, while an authorized control event may need to stop speech without waiting for that tool.

Independent programs should submit typed artifacts or intended effects through the agreed interface rather than race to mutate shared output state. Effect arbitration owns the applicable exclusivity, dependency, preemption, and capacity checks. A priority queue is one implementation option, not the architecture's defining property. Serial packet processing is another simplifying choice, not a requirement that all reasoning or tools run serially. Alternative implementations still need explicit ordering and concurrency guarantees for the resources they share.

Keep proposed output separate from reports of work already performed. Current effect types do not all mean deferred commands: some report an executed tool invocation. An adapter must follow the specific type's contract rather than execute such a report again. The general arbitration design does not retroactively make every current tool call pass through a new scheduler.

Consider an illustrative call: an availability lookup runs while the caller changes Friday to Monday. The cut policy determines the next relevant input boundary. Eligible consumers can interpret the correction and retrieve new options. Effect arbitration should prevent an obsolete Friday response from taking over the speech track merely because it finishes last. A separate authorized operator-takeover event may require stopping agent speech while the application retains the lookup's outcome. This is a design acceptance test, not a claim that every current runtime implements universal stale-work rejection.

Stopping playback does not undo a completed booking. Requesting cancellation does not prove that a worker stopped. A consumer's artifact, an accepted effect, an external submission, and a confirmed result therefore need distinct records. See the [current concurrency boundaries](https://docs.concurrence.com/agent/reasoning-engine#concurrency).

### Preserve the Contracts, Not One Implementation

Channel adapters translate supported inputs and outputs while retaining channel-specific authority, lifecycle, and delivery semantics. A phone call adds conference participation, takeover, and transfer concerns beyond an audio stream. Asynchronous messages add different persistence and recovery requirements. Shared World Model evidence can help authorized applications retain context across channels; it does not automatically merge sessions, transfer permissions, or make every channel appropriate for the same information.

Provider-owned realtime voice can remain a separate execution path when its available controls differ from this design. Compare the simpler supported approach with explicit orchestration on the actual workload: interruption handling, required tool controls, outcome verification, latency, operator effort, and total cost. More orchestration earns its place through those results, not through an obligation to build every box in the diagram.

The [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine#the-pipeline) documents current paths. The [Universal Reasoning Harness](https://docs.concurrence.com/agent/reasoning-engine#design-direction-universal-reasoning-harness) describes broader proposed execution ownership and context-validity controls. The distinction lets the architecture guide a rewrite without turning historical data structures or a target design into a product guarantee.

## System 1 and System 2 Are Execution Roles

The System 1/System 2 analogy distinguishes fast, familiar decisions from more expensive deliberation. It does not identify an agent definition with a neural architecture or divide all model families into two fixed categories.

An authored agent is a semantic specification: the role, perspective, and guidance the system should apply. A fast policy or decision model can implement one bounded part of that specification. An LLM can supply deliberation, but it can also perform a simple classification or extraction. A deterministic rule can serve the same fast execution role without being a learned model.

Recent examples make this distinction concrete. TypeSafe presents [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) as a System One model for decisions inside software. The open [Laya project](https://github.com/NandhaKishorM/laya) describes typed decisions without autoregressive text generation. These are external examples of a useful component category, not announced Concurrence integrations or evidence that a particular model meets a healthcare workflow's requirements.

The question for a deployment is which procedure is appropriate for each decision, using the actual input distribution, failure costs, and operating constraints.

| Procedure category                 | Potential role in a design                                   | What still needs checking                                                          |
| ---------------------------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
| SQL or ordinary code               | Explicit joins, calculations, validation, and defined rules  | Input semantics, freshness, null handling, access, and correctness of the rule     |
| Rules or classifiers               | Bounded routing, eligibility signals, or familiar categories | Coverage, false negatives, drift, and behavior outside the evaluated domain        |
| Typed decision model               | Choosing or scoring declared alternatives from context       | Candidate completeness, calibration, abstention policy, and task-level error costs |
| LLM interpretation or deliberation | Ambiguous language, extraction, planning, and explanation    | Grounding, missing evidence, tool permissions, and outcome verification            |
| Human judgment                     | Exceptions or decisions requiring accountable review         | Relevant evidence, ownership, and a usable handoff                                 |

An LLM need not mediate every step. Conversely, a fast model should not silently decide a case whose evidence, options, or consequences exceed its evaluated scope.

## The World Model Is Liquid Through Its Views

Here, *liquid* describes a representation that can produce different, revisable views of shared evidence as tasks and observations change. It does not mean that facts lose their provenance or that every view refreshes instantly.

The same retained evidence can support several derivations:

* Deterministic projections select current entity values under defined precedence rules.
* SQL transformations join and aggregate facts for a particular task.
* Classifiers assign bounded interpretations where configured and evaluated.
* LLM-based extraction and memory processing produce source-linked interpretations that can remain incomplete or wrong.
* Application views select what a particular reader is allowed and needs to see.

The [World Model](https://docs.concurrence.com/data/world-model#evidence-facts-and-application-views) distinguishes source assertions, selected facts, and application views. [Platform Functions](https://docs.concurrence.com/agent/platform-functions) provide supported read-only SQL, AI, Python, and table-valued computations. Applications and dedicated write tools own authorized mutations.

Reproducible deterministic derivation requires fixing all relevant inputs, configuration, and logic, including evaluation time for time-relative fields. For example, an upcoming-appointment indicator can change when recomputed later even if no appointment event changed. Retained events and a projection version alone do not guarantee identical output. This does not establish a general historical replay API or make an LLM-generated narrative deterministic. Source-class confidence determines precedence in supported projections; it is not a calibrated probability that a statement is true. A confident interpretation cannot promote itself into authoritative evidence.

This operational world model also differs from a learned simulator that predicts future states under hypothetical actions. Predictive models could become additional derived products, but source-linked state and workflow execution do not establish learned causal dynamics by themselves.

## Entropy Stratification as a Design Discipline

Entropy stratification means allocating freedom and computation according to the uncertainty and consequence of a particular decision. It is a design discipline, not a documented runtime setting or a claim that the platform measures one universal entropy score.

Separate three things:

1. **Uncertainty about the situation.** Evidence may be missing, stale, contradictory, or unfamiliar.
2. **Freedom in the action space.** Several responses may be acceptable, or only one operation may be permitted.
3. **Consequence of an error.** Two equally uncertain decisions can warrant very different controls.

A missing appointment preference can justify a clarification. Uncertain authorization requires an authorization check, regardless of how confident a classifier sounds. An urgent exception can require escalation without waiting for extensive deliberation. More uncertainty does not always mean granting the agent more freedom.

Where a distribution over named outcomes is available, information entropy can help characterize ambiguity. It should not be computed from source-precedence constants or treated as a substitute for measured error rates, probability calibration, consequence, novelty, and freshness. Low entropy can describe a confidently wrong model.

The practical rule is to make exact work explicit, evaluate fast decisions within their operating region, and spend additional retrieval or reasoning when it can change the decision enough to justify its cost. Preserve abstention and human handoff when the requirements cannot be met.

## One Request Through the Composition

Consider a synthetic request: "Move my visit to Friday afternoon. I cannot get there in the morning."

| Step            | Contribution                                                                     | Evidence required to continue                                                   |
| --------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Interpret       | The agent's role and language model identify a scheduling request and preference | Resolved subject and the correct appointment. Ambiguity remains explicit        |
| Define the task | The graph selects the relevant workflow and eligible tools                       | Workflow scope, permissions, and required verification                          |
| Read            | A supported query or tool obtains relevant context and availability              | Appropriate freshness and source. Absence is not proof of no appointments       |
| Decide          | Rules, a validated classifier, or model reasoning narrow the next step           | Valid alternatives and enough evidence for the specific decision                |
| Act             | An authorized operation requests the change                                      | Required confirmation and target-system result                                  |
| Observe         | The application records the result and reports it accurately                     | Accepted request, external completion, and projected visibility remain separate |

This is an architectural decomposition, not a claim that the native runtime currently routes scheduling through Jev or Laya. A real deployment must use its supported tools and validate its actual channel behavior.

If the availability result is stale, the system needs a fresh check. If the booking call times out, it needs reconciliation before an unsafe retry. If the person changes the request while work is pending, the application must check whether the result remains relevant. A convincing response cannot repair these missing mechanisms.

## Improving the Blend

Improvement first requires an observable workflow. An intake conversation, a follow-up form, and an externally confirmed appointment are connected work with separate execution and outcome records. A useful evaluation identifies the agent and graph versions, the actual tool and data-view definitions, the evidence available, where a failure occurred, and who owns recovery. This is a recommended trajectory contract, not a claim that every current channel exposes a complete connected trace.

Engineers need execution detail, operators need an understandable account of what happened, and business owners need defined outcome measures. Permissioned drill-down should connect these views while preserving data access boundaries. Comparing workflow versions requires comparable cohorts and reliable measurement. It does not by itself constitute a clinical study or prove a patient benefit.

Repeated tasks can reveal work that is suitable for a narrower procedure: a calculation becomes SQL, a stable condition becomes a rule, or a recurring bounded judgment becomes a classifier. Treat each change as a new implementation. The responsible owner should review the exact change and its validation evidence before release. Agent and Context Graph versions can be pinned. Platform Function definitions are replaced in place, without native versions or aliases. Preserve the reviewed definitions and recovery steps for functions and other non-versioned settings in the release record. A model-generated candidate rule is not automatically safe to deploy. See [Improving Agent Behavior](https://docs.concurrence.com/agent/pattern-discovery-and-reuse) and [Deployment Model](https://docs.concurrence.com/platform-overview/deployment-model).

Compare the complete workflow against simpler alternatives, including ordinary software and a single-model baseline. Measure accepted outcomes, costly mistakes, abstentions, data freshness, latency, and cost per accepted outcome. Exercise contradictory evidence, unseen inputs, revoked permissions, delayed tools, duplicate requests, and external failures. Component accuracy alone cannot establish system reliability.

## Fit the Existing Data Environment

Shared context earns its setup cost when several workflows need the same authorized evidence, identity mapping, or transformation. A narrow task may be better served by a direct integration. Assess the complete setup and operating cost rather than requiring every task to pass through a new data foundation.

Declarative transformations make semantics reviewable and can help teams carry definitions across their existing data platforms. Portability still requires checking SQL dialects, identity assumptions, permissions, data types, and freshness. Transport support is a separate capability: a parser, an event store, and an operational connector with acknowledgements and recovery are different parts of an integration. See [Healthcare Interoperability](https://docs.concurrence.com/data/healthcare-interoperability) for the current boundary.

Customer records and public or licensed external data can inform a richer application view when access and intended use permit. Shared representation does not authorize pooling data across customers. Identity resolution, purpose, source permissions, and permitted reuse must be established for the specific sources and readers.

This is the connection between universal reasoning and a liquid world model: representations can evolve, and computation can specialize, while evidence, authority, and completion remain explicit. The useful unit of improvement is a verified workflow outcome.

## Continue Reading

* [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine) for signals, effects, navigation, and current channel behavior.
* [World Model](https://docs.concurrence.com/data/world-model) for events, projections, provenance, and data access.
* [Context Graphs](https://docs.concurrence.com/agent/context-graphs) for authored problem definitions.
* [Platform Functions](https://docs.concurrence.com/developer-guide/platform-api/functions) for supported computation and registration.
* [Data to Verified Action](https://docs.concurrence.com/developer-guide/guides/data-to-verified-action) for an implementation path across evidence, tools, and outcomes.
* [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) for checking external completion.
* [Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet) for evidence and acceptance decisions.


# Context Graphs

Structured state machines that define conversation flow, decision points, and safety boundaries for agent workflows.

Context graphs define the authored workflow available to an agent: states, transitions, objectives, guidance, boundaries, and state-bound tool specifications. Model-driven navigation still has probabilistic failure modes, so use simulations and runtime safety controls rather than treating graph text as a formal guarantee.

A Context Graph describes the work; the [world model](https://docs.concurrence.com/data/world-model) supplies selected facts about the people and resources involved. The [agent](https://docs.concurrence.com/agent/agents) supplies broader identity and guidance. Read the architecture and authoring sections first, then use the state and tool sections for the execution details.

A service runs a Context Graph unless its agent version carries a [direct program](https://docs.concurrence.com/agent/direct-programs), one authored set of instructions and tool grants that runs with no graph.

## The State-Based Architecture

Context graphs differ from scripted dialog trees and unconstrained prompt-only agents in three ways:

1. **States, not scripts**: The graph defines states and transitions, not a fixed sequence of utterances. Model-driven states select among authored actions and exits from the available conversation context.
2. **Variable authoring detail**: Different regions can carry different amounts of objective, guidance, boundaries, guardrails, and tool configuration. These instructions steer behavior, but they do not by themselves make model output deterministic.
3. **Incomplete by design**: Context graphs define workflow shape but not the full performance. The complete picture combines the graph's structure, the agent's identity and directives, state-level guidance, available tools, selected memory context, and channel policy.

The agent navigates the graph by evaluating which state to enter next based on the conversation so far, the patient's data, and the constraints defined on each transition.

Context graphs allow agents to:

* **Make safety intent reviewable** - place escalation guidance, boundary constraints, and state-specific guardrails next to the workflow step they govern.
* **Carry workflow state across turns** - track the current state and, for data-collection states, collected and remaining fields.
* **Vary guidance by task risk** - author more explicit constraints for sensitive steps and broader objectives for exploratory ones.
* **Reuse structure across supported channels** - apply channel overrides where voice and text behavior should differ.
* **Inspect observed paths** - use traces and simulation evidence to find untested or poorly performing states.

## From Protocol to Practice

Context graphs can encode clinical protocols and service workflows as state machines that an author reviews against the source protocol. Explicit states and exits make authored intent and observed navigation paths inspectable. They do not expose hidden model reasoning or replace clinical, compliance, and release review.

## Varying Constraint by State

"Context density" is an authoring heuristic, not a persisted state property. Authors vary constraint using the fields the runtime actually reads: objectives, actions, navigation guidance, boundary constraints, typed guardrails, exit conditions, tool bindings, and turn policy. A multi-state `gpt_realtime` session reasons from the current action state only. It reads that state's objective, actions, guidelines, tool bindings, boundary constraints, guardrail descriptions, and navigation guidance, with the graph's global guidance. The model requests a move through `change_state`, which offers the current state's exits. The model can miss a move and stay in the current state.

Use more explicit guidance and narrower exits for sensitive steps, and broader objectives for conversational steps. Validate the resulting behavior in simulations, because added prompt detail is not equivalent to deterministic phrasing or a hard policy control.

## Bounded Multi-State Traversal

On the platform-managed runtime, navigation within a turn can leave an action state, pass through decision and annotation states, and land on an engageable action or data-collection state. Decision states select an authored exit, and annotation states inject authored internal guidance without a user-facing turn. The navigator detects loops and enforces an iteration cap instead of allowing an arbitrary number of internal transitions.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-37f3ee5e10f75671690c00552005b00d200a5743%2Fcontext-graph-traversal.svg?alt=media" alt="An illustrative Context Graph traversal moves from an action state through an authored decision and an annotation or data-collection path to a next action. Traversal is bounded and does not make model decisions deterministic."><figcaption><p>Illustrative path. The authored graph determines the eligible transitions.</p></figcaption></figure>

Initial and terminal states are configured as action states. A turn can nevertheless engage through a data-collection state, so do not infer that every user-visible turn begins and ends on an action state. Traces record observed states, transitions, and actions. They do not expose hidden chain-of-thought reasoning.

### GPT Realtime Action-State Graphs

`gpt_realtime` accepts one action state or 2 to 12 action states with unique names and exit targets that exist in the graph. For a multi-state graph, both `new_user_initial_state` and `returning_user_initial_state` must name the first state. The platform applies a model-requested move and waits for the voice provider to acknowledge the new state's instructions and tools before continuing. Test each intended move with representative caller requests.

A `gpt_realtime` service runs its enabled [dynamic behaviors](https://docs.concurrence.com/agent/context-graphs/dynamic-behaviors). `preload`, `wait_for`, `surface_spec_template`, `turn_policy`, and `channel_overrides` have no effect on `gpt_realtime`. Outbound calls require a single action state. `eleven_realtime` requires exactly one action state, with no enabled dynamic behaviors and no `navigate_on_completion`. Neither family accepts typed guardrails on an action state, so write those rules as the state's boundary constraints. See [GPT Realtime Multi-State Workflows](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#gpt-realtime-multi-state-workflows).

## Integration with Memory and State Guidance

Context graphs do not run in isolation. At each state, the agent can receive selected [Functional Memory](https://docs.concurrence.com/agent/memory) context and applies the state's authored guidance, turn policy, and tool specifications, subject to the [runtime-specific scope](#gpt-realtime-action-state-graphs). Conditional behavior should be visible in states and transitions so teams can review and simulate it directly. Guidance that should apply on some caller turns across several states can be a [dynamic behavior](https://docs.concurrence.com/agent/context-graphs/dynamic-behaviors) that a service pins.

{% content-ref url="/pages/Kii5Ga5iQp6e9fEKbQ0t" %}
[Dynamic Behaviors](https://docs.concurrence.com/agent/context-graphs/dynamic-behaviors)
{% endcontent-ref %}

## State Types Reference

Each state type serves a specific purpose in managing conversation flow and agent behavior.

| State Type          | Purpose                                                                               | Typical Use                                                                                                         |
| ------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| **Action**          | Deliver user-facing responses within guardrails                                       | Conversational turns, report delivery                                                                               |
| **Decision**        | Select among authored exits using current inputs                                      | Routing between workflows, escalation decisions                                                                     |
| **Annotation**      | Inject preset guidance into the agent's reasoning, then advance to a fixed next state | Steer reasoning between states without an extra model turn (for example, inject a reminder before a sensitive step) |
| **Data Collection** | Collect structured fields from the caller with surface fallback                       | Insurance intake, demographic verification, medication lists                                                        |

Data-collection states define fields to gather, a completion transition, turn limits, and an optional [surface](https://docs.concurrence.com/channels/surfaces) fallback. The fallback can build a form from remaining fields after the configured number of turns; creation and delivery still depend on entity context and a supported Surface channel.

The same graph can support voice and text runtimes, but channel capabilities and delivery semantics differ. Use channel overrides and test each enabled channel separately.

### Designing a State

Each state definition should answer five questions before it ships to production:

1. **Objective** - What outcome must be true before the state can exit?
2. **Guidance** - Which ordered actions or prompts keep the model on the intended path?
3. **Boundaries** - Which behaviors are forbidden, especially for safety or compliance?
4. **Exit criteria** - What explicit signals trigger each transition, and which state follows?
5. **Tooling and memory configuration** - Which tool calls are exposed in this state, and should active memory retrieval be skipped?

State tool-call specs gate workflow tools bound to that state. Runtime-provided system tools and shared platform tools can also be exposed when the service and channel enable them, so state bindings are not a universal inventory of every callable tool. On the platform-managed runtime, turn policy can further block supported system tools such as forwarding.

### Binding Conversation Context

A service can declare named string or number inputs that an application supplies when starting a conversation. A state's tool binding selects which matching parameters receive those stored values, so the model does not need to supply them. This is application input for that conversation, separate from world-model facts, Functional Memory, and verified identity.

The service owns the accepted schema; the graph owns the binding. Bindings can fill direct-tool parameters and companion-skill inputs, hide them from the model, and override model-supplied values. Aliases map a parameter to a differently named accepted context key and reject execution when that source is missing. On voice calls, a binding to a declared key that the call did not start with fails closed until the key is set on the live call, and companion-skill inputs cannot bind such a key. Result persistence and tool authorization remain separate controls. Follow [Pass Context to Tool Parameters](https://docs.concurrence.com/developer-guide/guides/conversation-context) for setup, supported paths, and channel-identity limitations.

### Action State Extensions

Action states support several optional workflow controls. The asynchronous and channel-specific controls include:

* **Wait conditions** - A state can declare a `wait_for` condition that holds graph navigation until the condition clears (e.g., a surface submission or human approval). The engine retains the current state and supplies waiting guidance to the response model. That guidance can permit questions, reassurance, or small talk. It is not a deterministic restriction on generated wording.
* **Surface templates** - A state can include a surface spec that requests [surface](https://docs.concurrence.com/channels/surfaces) creation on state entry. Creation requires valid entity context and a successful platform request.
* **Channel overrides** - Per-channel overrides for objective and action guidelines. When the same context graph runs across voice and SMS, overrides let each channel tailor behavior without duplicating the entire state definition.
* **Completion-gated navigation** - A tool call spec can set `navigate_on_completion`. After a successful result, the engine re-evaluates navigation without waiting for another user message. An error result, such as an integration endpoint's 4xx or 5xx response, is not a successful result. The navigator can remain in the state or select another valid state, so this option does not guarantee that every completion advances.
* **Code entry** - A tool call spec can set `expects_code`. While that tool is the next step in the conversation, voice turn detection waits longer before it decides the caller has finished, so a caller can read a code in groups with pauses between them. It defaults to `false` and changes only how voice turns end.

### Tool Dispatch Configuration

Each tool a state binds carries three independent dispatch axes that control *when* the tool runs, *how* its result re-enters the conversation, and *whether* the work is tied to the turn that asked for it. All three default to the historical behavior, so existing services are unaffected.

* **Execution** - `blocking` (default) awaits the tool inline within the turn, so its result is in hand before the agent continues. `background` dispatches it off-turn so the agent keeps the floor and the result arrives later. Use `background` for work that can take longer than the caller should wait in silence.
* **Delivery** - `interrupt` (default) surfaces the result as soon as it is ready, as a fresh continuation turn. `queue` folds the result silently into the next user turn instead. Two combinations are rejected when you save the context-graph version: a `background` tool may not use `queue` (a fire-and-forget result that never surfaces is a silent dead-end), and a tool in the terminal state may not be `background` (there is no later turn to deliver into).
* **Lifecycle** - `independent` (default) lets a `background` task continue after the launching turn, but later delivery still depends on the channel and conversation remaining deliverable. `coupled` ties the task to the turn that launched it: if the user sends another message or the conversation closes first, the task is cooperatively superseded and its result is dropped. This axis is currently meaningful for background work on text and chat paths. Voice uses its own teardown behavior.

The lifecycle axis decides what happens to a `background` result once the conversation has moved on:

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-a85dd74505b20e007f19418fcb42bd3dae926d0b%2Fbackground-result-lifecycle.svg?alt=media" alt="A background tool’s lifecycle determines whether a result remains eligible. Independent results survive a newer turn; coupled results can be discarded when their originating turn is superseded. Delivery follows its separate binding."><figcaption><p>Eligibility does not mean immediate speech. Delivery mode is configured separately.</p></figcaption></figure>

### Tool Result Persistence

A state-tool binding also controls which arguments and results remain in conversation history and later prompts:

| Mode           | Conversation journal                                                  | Later prompts                                                      |
| -------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------ |
| **Accumulate** | Retains each call's arguments and result                              | Renders the retained results, subject to normal context management |
| **Override**   | Still retains every call                                              | Renders only the latest result per tool name                       |
| **Ephemeral**  | Retains redacted execution metadata, without raw arguments or results | Excludes those entries from reconstruction                         |

Accumulate is the default. Override reduces repeated prompt context but does not delete earlier results from storage.

Ephemeral persistence requires workspace authoring enablement and is supported only on the inline text and simulation path. When its runtime rendering capability is enabled, raw arguments and results can inform the current reasoning transaction. With rendering disabled, the transaction still runs and journals redacted metadata, but the raw payload is not supplied to the model. Voice, background, and external realtime sessions reject an ephemeral graph during initialization. Ephemeral bindings must use interrupt delivery, and queue delivery is rejected.

This setting governs the tool payload in the conversation journal and prompt reconstruction. It is not a deployment-wide zero-retention policy: a tool's destination, an external write, or information repeated in the agent's response has its own handling rules.

## Automated Optimization Through Agent Forge

[Agent Forge](https://docs.concurrence.com/reference/agent-forge) lets coding agents inspect, author, validate, and apply Context Graph configuration. Use simulation and production evidence to propose changes, then review the diff and rerun relevant suites before promotion. Forge does not make graph optimization automatic or guarantee that a configuration change improves outcomes.

{% hint style="info" %}
**API naming:** The Classic API represents Context Graphs as `service_hierarchical_state_machine` resources. See [Agents and Context Graphs](https://docs.concurrence.com/developer-guide/classic-api/core-api/agents-and-context-graphs). Platform services bind separate agent and Context Graph versions through version sets. See [Services](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services).
{% endhint %}


# Dynamic Behaviors

Reusable guidance that a service pins and a model chooses to apply on the caller turns where it seems to fit: how it is chosen, how long it stays, and what it cannot do.

A dynamic behavior is guidance that a model chooses to apply on the caller turns where it seems to fit. It says when it applies, with a condition and examples of what a caller says, and what the reply does while it applies, with an instruction. One behavior can serve several states of a service, and it changes through its own versions rather than through a Context Graph version.

{% hint style="info" %}
**Where to go next:** [Dynamic Behaviors](https://docs.concurrence.com/developer-guide/platform-api/workspaces/dynamic-behaviors) in the developer guide covers the API, and [Author Dynamic Behaviors](https://docs.concurrence.com/developer-guide/platform-api/workspaces/authoring-dynamic-behaviors) covers how to write them. The Classic API has a separate resource with different fields. See [Dynamic Behaviors (Classic API)](https://docs.concurrence.com/developer-guide/classic-api/core-api/dynamic-behaviors) and [If You Use Classic Dynamic Behaviors](#if-you-use-classic-dynamic-behaviors).
{% endhint %}

## The Library and Pins

A workspace keeps its behaviors in a library of **sets**. A set is one behavior: a name, optional tags, and numbered **versions**. A version cannot be edited. The next change is the next version.

A service does not run a set. A version set on the service **pins** an exact version of each set it uses, with a flag for whether the pin is enabled and, optionally, the states it applies in. Calls and conversations run the service's `release` version set.

| Level   | Holds                                                                    | Changes by                                                                |
| ------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| Set     | Name and tags                                                            | Renaming, retagging, archiving, or restoring. No version is written.      |
| Version | Condition, examples, instruction, mode, sticky turns, note               | Writing the next version. A version cannot be edited.                     |
| Pin     | Set, version, enabled flag, states, in order, on a service's version set | Saving the version set: moving, disabling, reordering, or clearing a pin. |

This split has three consequences:

* A later version of a set changes nothing a service runs until its pin moves.
* Rolling back is moving the pin to an earlier version. That version's condition, examples, and instruction read exactly as they were written. The set's name, which the selector also reads, is the set's current name.
* A behavior is switched off per service, by disabling its pin. A disabled or moved pin applies to calls and conversations that load the service's configuration afterward, and a call or conversation already in progress can keep the configuration it loaded. A set has no off switch, and a set that any version set pins cannot be archived.

A service whose version sets pin no enabled behavior runs every turn as it would without the library.

## How a Behavior Is Chosen

On each caller turn, a model called the selector chooses one behavior or none from the behaviors offered on that turn, so at most one behavior is in force at a time. A caller turn is a caller's spoken turn on a call or a caller's message in a text conversation. The selector reads the recent conversation, including tool results. It reads what the platform knows about the caller, which is the same context the reply reads. It also reads the current state's name and objective, the current time, the behavior in force, and how many caller turns it has held. For each offered behavior, it reads its set's name, condition, and examples.

The offered behaviors are the enabled pins that apply in the state the conversation is in when the turn starts. A pin with no states applies in every action and data collection state. Decision and annotation states offer none.

The instruction, tags, version note, mode, and sticky turns do not reach the selector. There is no keyword or similarity matching and no priority field (pin order can break a tie but is not one), so the name, condition, and examples must carry everything that sets one behavior apart from its neighbors.

The choice is a model's judgment. A behavior may not apply on a turn that matches its condition, and may apply on one that does not. Guidance in a prompt does not make a reply deterministic. When several behaviors fit, the selector is asked to choose the closest, and to keep the behavior in force while the topic continues, so the result can depend on what was already in force.

Greetings, injected events, silence check-ins, and tool results start no choice. The behavior in force carries across them.

## What the Reply Follows

Of a behavior, only the instruction reaches the reply. A behavior with no instruction can be chosen and recorded, and it adds nothing to the reply. Because one behavior is in force at a time, applying it ends the behavior that was in force, and that behavior's guidance stops.

The instruction reaches the reply when the conversation is in an action or data collection state that the pin applies in. It also reaches the navigation of an action state that the pin applies in, as that state's last guideline, below every other guideline and guardrail.

| Mode            | What the instruction does in the reply                                                                                       |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `add` (default) | Adds guidance that yields to every action guideline. Where the two conflict, the reply is told to follow the guideline.      |
| `replace`       | Stands in for the reply's action guidelines: the graph's, the state's, and the channel override's are left out of the reply. |

In both modes the reply keeps the state's objective, the graph's and the state's boundary constraints, and the state's guardrails. The reply is told which guidance wins when two conflict. The platform's core instructions, the crisis resource guidance, the empathy priority when it applies, and every action guideline (the boundary constraints and guardrails included) take precedence over the instruction. The instruction takes precedence over the agent's persona, its behavioral and communication guidance, and progress toward the state's objective. Boundary constraints and guardrails steer the model, and the platform does not enforce them on the reply, so verify them against representative scenarios. Replace mode changes the reply only: navigation keeps all of its guidelines in both modes.

Writing or pinning a replace-mode version needs the same workspace permissions as `add` mode: a workspace `admin` or `owner`. See [Permissions](https://docs.concurrence.com/developer-guide/platform-api/workspaces/dynamic-behaviors#permissions).

## Scoping to States

A pin's `states` list narrows a behavior to part of the workflow. An empty list means every action and data collection state. A behavior is offered only on caller turns that start in a state it applies in.

Each name must be an action or data collection state of the Context Graph version the version set runs. The platform checks this when the pin is saved. It also refuses a Context Graph version that drops a state a pin names, for version sets that follow the graph's latest version. See [Checks on a Pin](https://docs.concurrence.com/developer-guide/platform-api/workspaces/dynamic-behaviors#checks-on-a-pin).

## How Long a Behavior Stays

`sticky_turns`, from 1 to 5, is the fewest caller turns a behavior stays in force once applied, counting the turn it was applied on. With 3, a behavior is in force on the turn it applies and the next two, and on the fourth a choice of none ends it, unless the selector says with enough confidence that it still applies.

Within that minimum, only another behavior that the selector chooses with enough confidence replaces it. After it, a behavior stays only while the selector keeps choosing it or says with enough confidence that it still applies, and it ends when the caller moves on. There is no maximum: a behavior that is kept on every turn stays as long as the topic continues. An answer that carries no confidence (`confidence` is `null` in the record) counts as having enough.

For example, with a Billing questions behavior at `sticky_turns` of 3, one possible conversation runs:

| Caller turn                               | What the selector does     | Outcome                       |
| ----------------------------------------- | -------------------------- | ----------------------------- |
| "Why did I get a bill for my last visit?" | Chooses Billing questions. | `applied`                     |
| "Are you open on Saturday?"               | Chooses none.              | `held`                        |
| "And is parking free?"                    | Chooses none.              | `held`                        |
| "Thanks, that's all."                     | Chooses none.              | `none`, and the behavior ends |

If the selector gives no usable answer, no behavior applies. The behavior in force stays through its minimum and ends afterward.

A behavior in force also ends when:

* A caller turn starts in a state where its pin does not apply.
* The platform recognizes that the caller asks for a person. That turn runs no choice, and its reply is rendered as on a service with no behaviors.
* The turn is at the highest empathy tier, Hold Space. See [Empathy Adaptation](https://docs.concurrence.com/agent/reasoning-engine#empathy-adaptation).
* The platform recognizes that a caller describes a medical emergency or self-harm. No behavior applies for the rest of that conversation.
* An operator takes over a call or authors a text turn.

Recognizing an emergency or a request for a person is a pattern check on the caller's words, in English and Spanish. It covers a limited set of phrasings and can miss others, and on a turn it misses, the behavior in force stays in force and the choice runs. See [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety).

## Limits That Shape Design

* **Timing differs between text and calls.** On text channels the reply waits for the turn's choice, so a behavior chosen on a turn shapes that turn's reply. A service with enabled behaviors can take longer to answer a text message than the same service without them. On platform-managed voice (`concurrence`), the reply does not wait by default: a choice ready when navigation finishes can shape that reply, and a slower one takes effect from a later reply. A service can configure a bounded wait for the choice before a platform-managed voice reply starts, which can increase response time. Speech-to-speech sessions do not use this wait. A choice still running when the caller speaks again is dropped, and the behavior in force stays as it was.
* **Navigation sees a behavior from the next caller turn.** Navigation, which moves the conversation between states, starts before the turn's choice lands, so a behavior chosen on a caller turn does not steer the navigation that starts that turn. It steers an action state's navigation from the next caller turn. It also steers the navigation that runs after a tool result later in the same exchange, such as [completion-gated navigation](https://docs.concurrence.com/agent/context-graphs#action-state-extensions), once the choice has landed.
* **A behavior limited to a state is not offered on the turn that enters it.** The offered behaviors depend on the state the conversation is in when the turn starts, before that turn's navigation. A behavior limited to a state is offered from the next caller turn. Guidance needed on the first turn in a state belongs in that state's own guidelines or in a behavior with no states.
* **On `gpt_realtime`, a behavior takes effect from a later reply.** The agent starts its reply as the caller stops speaking, before that turn's choice is made, so a behavior chosen on a caller turn usually shapes the replies from the caller's next turn. See [Speech-to-Speech Voice Families](https://docs.concurrence.com/developer-guide/platform-api/workspaces/dynamic-behaviors#services-on-gpt-realtime).
* **Behaviors run on some voice families, not all.** Behaviors run on text channels and on three voice families: the `concurrence` cascade (platform-managed voice), `gpt_realtime`, and `gpt_live` (GPT-Live). `eleven_realtime`, `grok_voice`, and `phonic` run no behaviors: a service whose voice runtime is one of them cannot pin an enabled behavior, and the write is refused. See [Choosing a Realtime Voice Family](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#choosing-a-realtime-voice-family) for each family's workflow scope.

## What a Behavior Is Not

* **Not routing.** A behavior adds no transition and no exit condition, and it cannot force a move to another state. Transitions come from the Context Graph's exit conditions. Its instruction is also a guideline in an action state's navigation from the next caller turn, so it can influence which action or exit navigation picks. Write instructions about how to reply, not where to go.
* **Not tool binding.** A behavior changes guidance only. It does not add, remove, or replace the agent's tools.
* **Not a safety mechanism.** A behavior is text in a model's prompt, chosen by a model's judgment. Express safety-critical behavior in the Context Graph, tool permissions, and escalation instructions, then verify it against representative scenarios, as [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety) describes.

## If You Use Classic Dynamic Behaviors

The Classic API has its own dynamic behavior sets, with triggers and actions. The closest Platform counterparts are:

| Classic                                                            | Closest Platform counterpart                                          | What to do                                                                               |
| ------------------------------------------------------------------ | --------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| A set holds a list of conversation triggers and a list of actions. | A set is one behavior: a condition, examples, and an instruction.     | Create one set for each behavior you want to carry over.                                 |
| Triggers are matched to a message by similarity.                   | The selector reads a condition and examples on each caller turn.      | Write the condition as a sentence about the caller and the examples as what callers say. |
| `inject-instruction` with `overrides_instructions` of `false`.     | `add` mode.                                                           | Copy the instruction text into the version.                                              |
| `inject-instruction` with `overrides_instructions` of `true`.      | `replace` mode, which stands in for the reply's action guidelines.    | Start in `add` mode.                                                                     |
| `change-tool-candidates`.                                          | None: a behavior does not change the agent's tools.                   | Bind the tools on the state in the Context Graph.                                        |
| `is_active` on a set.                                              | `enabled` on each pin.                                                | Disable the pin on each service.                                                         |
| Version sets apply a set to a service.                             | A version set pins an exact version of each set.                      | Pin the version each service runs.                                                       |
| Invocation history.                                                | The behavior on each reply and, on a call, each caller turn's choice. | Read them as [See What Applied](#see-what-applied) describes.                            |

Library writes allow 10 requests per minute for each credential and route, so a script that carries over many behaviors backs off on `429`. See [Limits](https://docs.concurrence.com/developer-guide/platform-api/workspaces/dynamic-behaviors#limits).

A Classic behavior that carries a safety rule, such as an emergency protocol, is not a good fit for a Platform behavior: a behavior is not a safety mechanism, and no behavior applies once the platform recognizes an emergency. Put the rule in the Context Graph's boundary constraints, guardrails, and escalation instructions.

## See What Applied

Every reply the agent generates from the conversation records the behavior it was rendered with. A line the agent did not generate that way, such as a filler, an emergency script, a correction, or an operator's words, records none, even while a behavior is in force. A call also records what each caller turn's choice did, including the turns where no behavior applied and why, and that per-turn record is on the call detail for about a day after the call. See [Read What Applied](https://docs.concurrence.com/developer-guide/platform-api/workspaces/dynamic-behaviors#read-what-applied).

## Related Pages

* [Context Graphs](https://docs.concurrence.com/agent/context-graphs) define the states that behaviors apply in.
* [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety) describes the controls that guidance does not replace.


# Direct Programs

A direct program runs an agent version on one authored set of instructions and the tools it grants, with no Context Graph: what it is, where it runs, and its limits.

An agent version carries a **program**: what a service runs when it selects that version. A program is one of two kinds.

* A **graph workflow** runs the [Context Graph](https://docs.concurrence.com/agent/context-graphs) that the service binds. States, exits, and state-bound tools shape the conversation. An agent version that names no program is a graph workflow.
* A **direct program** runs one authored set of instructions and the tools those instructions are granted. It has no Context Graph, so it has no states to navigate.

This page explains what a direct program is, what the platform still enforces around it, and where it runs. See [Direct Programs](https://docs.concurrence.com/developer-guide/platform-api/workspaces/direct-programs) in the Developer Guide for the API fields, examples, and refusals.

## What a Direct Program Contains

A direct program is part of an immutable [agent version](https://docs.concurrence.com/agent/agents). It has two parts:

* **Instructions** - the authored guidance, stored as written and given to the model as written.
* **Tool grants** - one tool specification for each tool the program may call, in the same form a Context Graph state uses to bind a tool. A tool the program does not grant does not run.

The version still has an identity. Its background, behavioral guidance, and communication patterns are not added to a direct program's instructions, so the instructions carry the agent's role, scope, and boundaries.

Instructions steer a model. They are not authorization, and they do not make model output deterministic. Server-side authorization, tool validation, and approval policy decide which operations can run.

## How It Differs From a Graph Workflow

| Aspect                         | Graph workflow                                                           | Direct program                                                            |
| ------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| Where the workflow is authored | Context Graph states, objectives, and exits                              | One set of instructions on the agent version                              |
| Tool exposure                  | Workflow tools are bound to states                                       | One grant for the whole conversation                                      |
| Service binding                | The service binds a Context Graph, and a version set can pin its version | The service needs no Context Graph, and its sessions load none            |
| What a version set selects     | An agent version and a Context Graph version                             | An agent version, which holds the whole program                           |
| Evidence of the path taken     | States visited and exits taken                                           | No states. The run records that the program is direct and a digest of it. |

A service that binds no Context Graph runs direct programs only. Saving is checked in both directions: a service with no Context Graph is refused unless each of its version sets runs a direct program, and a new graph workflow version is refused while such a service follows the agent's latest version.

## What the Platform Still Enforces

The instructions replace the Context Graph, not the platform's controls. On a text conversation:

* The platform's medical-emergency and crisis handling reads each user message before the model does, as it does on a Context Graph conversation.
* The model receives the region's crisis guidance and, when tools are granted, the rule that tool results are untrusted content. This guidance is composed after the authored instructions and does not edit them.
* [Dynamic behaviors](https://docs.concurrence.com/agent/context-graphs/dynamic-behaviors) that the service pins can apply on the user turns where they fit.
* Each tool call is held to the same server-side checks as a tool bound in a Context Graph state, such as caller verification before a patient-record read.
* A reply check that the service turns on reads each reply before it is delivered.

On a Grok Voice call, the platform still plays the AI and recording notice, runs the emergency scripts and the service's reply checks, and provides the call controls. See [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety) for what each control covers. These controls cover narrow cases and do not replace testing of the authored instructions.

## Where It Runs

| Surface                                                         | Direct program                                  |
| --------------------------------------------------------------- | ----------------------------------------------- |
| Text conversations                                              | Runs on every text channel                      |
| Grok Voice app voice sessions, Playground calls, and test calls | Runs                                            |
| Grok Voice phone calls                                          | Not set up. The caller gets the safe exit.      |
| Every other voice family                                        | Not set up. These families run a Context Graph. |

On Grok Voice, a call is also refused when its voice harness is a registered release and not the built-in harness. See [Voice Families as Swappable Runtimes](https://docs.concurrence.com/design/voice-families) for how the families differ.

## Choosing Between Them

A direct program fits a task that one set of instructions can describe, with one tool grant for the whole conversation, on a text channel or a Grok Voice app session.

Use a graph workflow when the work needs any of these:

* State-specific objectives, tool exposure, or exits that reviewers inspect and simulations cover.
* Phone calls, or a voice family other than Grok Voice.
* A tool call that waits for a reviewer's approval in a text conversation.
* Data-collection states, wait conditions, or typed guardrails.

## Limits

* A direct program is authored through the Platform API or the TypeScript SDK. The Developer Console shows an agent version's program, with its instructions and tool count, and shows and configures a service that binds no Context Graph. It has no form that creates a direct program.
* The instructions and the tool grant are bounded in size, and a tool specification that asks for state navigation is refused at save.
* A text conversation on a direct program refuses a grant that names an approval-gated tool.
* A simulation runs a conversation as text and opens no voice session, so it is not evidence about a Grok Voice call. See [Voice Simulation](https://docs.concurrence.com/testing/testing/voice-simulation).

{% hint style="success" %}
**For developers:** See [Direct Programs](https://docs.concurrence.com/developer-guide/platform-api/workspaces/direct-programs) for the request fields, TypeScript and curl examples, and the refusal codes.
{% endhint %}


# Memory

How source-linked observations and bounded models preserve useful context, with scoped recall when an agent needs detail from earlier interactions.

{% hint style="success" %}
**For developers:** See [Memory Architecture](https://docs.concurrence.com/developer-guide/operations/reference/memory-architecture) for API resources and [Data & World Model](https://docs.concurrence.com/developer-guide/platform-api/data-world-model) for entity enrichment.
{% endhint %}

Functional memory develops useful, source-linked understanding over time. It helps an agent carry context into later interactions and retrieve supporting detail when the loaded model is insufficient. The world model anchors that understanding to an entity and workspace; the active session uses it alongside current records and conversation history.

Three operations explain the person-memory workflow:

* **Observe** - Interpret a completed conversation against the current understanding and extract useful new information.
* **Consolidate** - Integrate observations into a bounded user model with references to supporting evidence.
* **Recall** - Search earlier observations and conversations when the current task needs more detail.

The compact model gives the agent a starting point. Exact operational facts, such as appointment availability, still come from the appropriate data tools. A generated interpretation does not acquire the authority of a clinical record merely because it is remembered.

## Memory, World Data, and Working Context

| Layer                     | Purpose                                                             | Example                                                             |
| ------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| **Source evidence**       | Retain what was recorded and where it came from                     | A conversation turn or connected system record                      |
| **Derived memory**        | Summarize useful context, changes, and interaction patterns         | A person's preferences and reported barriers                        |
| **Structured world data** | Preserve typed facts and relationships for retrieval and operations | An appointment's time, status, and associated person                |
| **Working context**       | Supply the information used in the current interaction              | Recent turns, selected enrichment, state guidance, and tool results |

The subject of a memory must be distinguished from the person speaking. An operator discussing a patient does not make that observation a memory about the operator. The person-recall path below uses the session's resolved subject, within its workspace.

The world model owns reusable object facts, relationships, and factual resolution. Memory derives useful understanding from eligible evidence. Applications own their task notes and operational state; the reasoning runtime owns the context used during execution. These responsibilities do not require separate stores, and generating a summary does not create a second authority for the underlying record.

The extraction, consolidation, and recall path described below uses person enrichment. The separate [service-scoped dimension pipeline](#service-scoped-dimension-memory) requires explicit configuration and readers; it does not automatically replace this path. The [object-memory design direction](#design-direction-object-memory) extends these ideas to other objects. Confirm any private-preview object types, sources, and views for the intended deployment.

## Implemented Memory Model

Conversation-derived memory and structured clinical state follow different paths. Generated observations can inform later context when processing succeeds. Current clinical facts require their authoritative source and access checks.

| Layer                         | What It Contains                                                                        | How It Is Produced                                                           |
| ----------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| **Conversation record**       | The source transcript and turn history                                                  | Stored as conversation evidence                                              |
| **Episodic observations**     | Net-new or surprising information from a completed conversation                         | Extracted from the transcript in the context of the current user model       |
| **Semantic user model**       | An integrated narrative of patterns, changes, and interaction preferences               | Consolidated from the current model and a bounded set of recent observations |
| **Structured clinical state** | Current conditions, active medications with doses, and allergies from connected records | Deterministically projected from world-model events                          |

The semantic user model and structured clinical state reach the agent through the same current-enrichment surface, but they have different provenance and confidence. Structured connector-derived context outranks model-generated memory when both compete for the same key.

## Post-Conversation Processing

After a conversation ends:

1. The platform associates the completed transcript with the resolved workspace entity.
2. The episodic extractor compares the conversation with the current user model and records net-new observations with source references.
3. The semantic consolidator updates the integrated user model from the current model plus a bounded window of recent observations.
4. The enrichment fold selects the current values, retaining confidence, source, effective time, and supporting lineage.
5. A later session loads the current enrichment alongside the rest of its world-model context.

Processing is asynchronous. Information said in the current conversation remains available in that conversation's turn history, but it may not appear as cross-session memory until post-conversation processing succeeds.

## Episodic Observations

Episodic observations capture information that may matter later, such as:

* Communication preferences and engagement patterns
* Goals, motivations, and barriers
* Emotional or behavioral changes over time
* Patient-reported context not already represented in the current user model

These observations are model-generated. They retain references to supporting conversation evidence and remain bounded by the configured memory dimensions, but they are not guaranteed to capture every detail or to be clinically authoritative.

## Semantic User Model

The semantic layer integrates episodic observations into a concise narrative rather than appending an unbounded history. Consolidation uses:

* The current user model
* Recent observations since the previous consolidation
* A bounded lookback of observations relevant to the model's pattern themes

The result can describe trajectories such as rising, falling, stable, or changed behavior. Consolidation requires a non-empty set of supporting observation references and instructs the model to preserve safety-relevant signals. Those references help trace a generated model, but their presence alone does not verify that every sentence is supported or that every important detail survived consolidation. The user model should not replace authoritative clinical records or runtime safety rules.

## Structured Clinical State

The platform also derives a deterministic `clinical_state` enrichment from connected clinical data:

* Active conditions
* Active medications and available dose information
* Allergies

Conditions and medications use bounded summaries with visible overflow markers. Allergies are not truncated. This projection retains connector provenance rather than becoming model-generated memory. Its source-class confidence and the reliability of generated memory are not one shared probability scale.

## Custom Memory Dimensions

Workspaces can add conversation-memory targets through enrichment keys tagged for memory extraction. A custom memory key must:

* Apply to person entities
* Use a valid `snake_case` identifier
* Include a non-empty description that defines what to extract
* Use the string value type
* Avoid shadowing a platform-provided key

Custom dimensions join the same extraction and validation path as platform defaults. A workspace with no custom dimensions continues to use the default memory targets. Custom dimensions are bounded to the behavioral precision tier and do not become authoritative clinical state.

Define a dimension around information that will change how a later interaction is handled. For example, describe scheduling constraints and the reasons the person gives, including changes over time, rather than asking for a generic conversation summary. Test the definition with a new preference, a correction, and an interaction that contains nothing relevant. These are authoring and evaluation practices. Adding a dimension does not guarantee complete extraction or retrospective processing of all earlier conversations.

## Retrieval and Session Context

The agent receives the current user model and other selected enrichment at session start. It can still query the world model or connected tools for detailed operational and clinical data when needed. Functional memory does not eliminate retrieval, guarantee complete recall, or load every historical transcript into the prompt.

Use memory for durable interaction context and patterns. Use authoritative data tools for current appointments, medications, clinical records, and other facts where freshness or source authority matters.

### Recall Beyond the Loaded Model

When the memory-expansion tool is exposed in a supported session, the agent can search the resolved person's observation history, prior conversation turns, or both. This is useful when the summary says that scheduling is difficult but the agent needs to recover the reason given in an earlier interaction.

Recall is read-only and scoped by the server to the session's resolved person and workspace. The model supplies a topical query, an optional observation dimension, a search scope, and a bounded result limit. It cannot select another person's history by supplying an identifier.

The search uses keyword or phrase matching and returns recent matches first. It caps the history searched, the number of results, and returned text length. It can therefore miss an older detail, a different phrasing, or context outside a returned excerpt. It is not a semantic relevance ranking or an exhaustive history review.

| Result                             | Meaning                                                 | Recommended workflow response                                                     |
| ---------------------------------- | ------------------------------------------------------- | --------------------------------------------------------------------------------- |
| **Matching observations or turns** | Detail was found within the searched history            | Check source, speaker, and time before using it                                   |
| **No matches**                     | The bounded query found no matching records             | Refine the query, use an authorized data tool, or ask for the missing information |
| **No resolved person**             | The session has no subject whose memory can be searched | Resolve the subject through the supported identity workflow                       |
| **Temporarily unavailable**        | The recall path could not serve the request             | Continue with sufficient existing evidence or use the workflow's fallback         |

An empty or unavailable result is not evidence that an event never happened. Retrieved agent speech is also not an independent confirmation of what a person reported or what an external system did.

The task itself can reveal a need for retrieval: a required field, newly mentioned object, or correction may matter even when the loaded summary contains no cue to search. Do not use the summary as the only checklist of what evidence could be missing.

### A Changed Preference Across Interactions

Suppose the loaded model describes a morning appointment preference, but the person now says, "I work nights now, so afternoons are better."

1. Use the correction as current conversation context and clarify any ambiguity relevant to the task.
2. If earlier detail matters, recall supporting observations or conversation turns instead of inferring them from the summary.
3. Check live availability through the scheduling tool. The remembered preference supplies context for that lookup.
4. After the interaction, asynchronous extraction and consolidation can incorporate the change into later-session memory.

Verify the later enrichment before assuming the update is available to another session. Separate the time the conversation ended, the time memory processing completed, and the time the served context reflected the change. A processing schedule alone is not an end-to-end freshness guarantee.

## Service-Scoped Dimension Memory

An additional optional path scopes memory by workspace, service, and an application-supplied `memoryid`. A service defines the dimensions to extract. Eligible completed sessions yield source-linked observations, each dimension consolidates its current view with new observations, and synthesis combines the current dimension views into a model. The previous combined model is not an input to synthesis.

This path describes the human speaking with the agent and currently targets one memory subject per conversation. Aggregating memory across multiple entities in one conversation remains a design extension. Keep the speaker distinct from a patient or other subject mentioned in the conversation. Its identifier is application context, not proof of identity or permission to read the resulting memory.

Definitions, views, and combined models are versioned. A definition change does not automatically rebuild existing views or reprocess history, but subsequent observations can produce a new view. Outputs remain model-generated and asynchronous. Provision processing and authorized readers explicitly before relying on them in another interaction.

The public dimension-creation contract does not establish automatic session loading, integration with the person-recall tool above, or general object memory. See [Service-Scoped Memory](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/service-memory) for configuration, version behavior, and a verification exercise.

## Design Direction: Object Memory

The proposed extension organizes memory around an object, its evidence, and task-specific views. A study, specimen, aliquot, and experiment run retain distinct identities and histories. A view may be a narrative, exact fields, a relationship map, or a few orientation cues. Several views can use the same evidence for different tasks.

General object-memory derivation, project subscriptions, state-entry preload, and the full correction contract below are extensions to the person-memory path. They are design requirements, not guarantees supplied by the current recall tool.

### Evidence and Corrections

Observe, consolidate, and recall remain the main operations, with a broader evidence contract:

| Concern                 | Required behavior in the proposed design                                                                                                                             |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Attribution**         | Keep the subject, speaker, and observer distinct; retain original source identity when an object mapping changes                                                     |
| **Meaning and time**    | Preserve source revisions, effective time, units, and conditions. Distinguish measurements, reports, and inferences.                                                 |
| **Supporting evidence** | Check that material claims are supported by eligible records with the correct subject, revision, and meaning. The previous summary is context, not new support.      |
| **Corrections**         | Invalidate affected views and pending use after a correction, withdrawal, identity change, or incompatible definition change; rebuild before dependent work proceeds |
| **Publication**         | Accept a rebuilt view only while its dependencies still match, so an older computation cannot restore invalidated understanding                                      |
| **Coverage**            | Make incomplete, stale, unavailable, and no-match results distinguishable. Retain evidence outside a processing limit as pending or explicitly excluded.             |

A repeated measurement can be meaningful even when its value is unchanged. Importing that same measurement repeatedly does not create independent confirmation. Later arrival also does not automatically make a record supersede an earlier observation: the time and conditions of the claim still matter.

Access and retention apply to derived views and retrieved context as well as source records. Related objects and shared projects do not grant access. The proposed correction and erasure process must account for indexes, caches, traces, and serving views. A historical or pinned view remains subject to withdrawal and access rules.

### Context Required by a Task

A project would identify relevant objects, relationships, and views. A Context Graph state would declare which view it needs, which decision depends on it, what makes it valid, and the fallback when it is unavailable. These declarations describe proposed execution support, not additional fields in today's public Context Graph contract.

Required context and preloaded context are independent. A required view can load while unrelated work continues, and the dependent decision waits until its prerequisites are satisfied. Existing valid context can be reused. Reasoning may discover another information gap and request scoped evidence within the task's budget. Model confidence cannot waive a prerequisite.

For example, a proposed read-only study comparison would begin with the study and run identities, then retrieve each run's inputs, values, units, recorded conditions, and applicable method and analysis revisions. Individually recent records may still be incompatible. An unexplained normalization difference would trigger additional retrieval. If a handling record were corrected before the comparison completed, affected pending conclusions would need reconsideration before release. The answer would separate supported differences from inferred causes and unresolved questions.

### Execution and Longer-Term Improvement

The execution loop uses accepted knowledge for the current task and retains new evidence and outcomes. A slower improvement loop would examine repeated work and propose reusable views, dimensions, or resolution rules. A useful comparison that repeatedly requires the same reconstruction is a candidate for this review.

The slower loop remains a design direction. Proposed definitions need an owner, evaluation, explicit acceptance, and a rollback path before later work uses them. Background behavior selection within an interaction is still execution and does not establish learning across interactions. Automatic production-definition changes are outside this design phase.

Evaluate a compact view against source retrieval and their combination on a stated task. Compression, repeated agreement, and successful replay do not prove completeness or causality. Reprocessing history cannot recover a measurement that was never recorded. See [Evaluating Concurrence](https://docs.concurrence.com/platform-overview/evaluating-amigo#evaluate-memory-on-tasks-that-need-continuity) for the evidence to collect.

## Safety and Auditability

* **Source preservation** - Conversation records remain the evidence behind extracted observations.
* **Lineage** - Semantic claims point back to supporting episodic observations.
* **Confidence separation** - Generated memory does not silently outrank structured connector-derived context.
* **Workspace isolation** - Memory is scoped to the entity and workspace that produced it.
* **Bounded context** - Consolidation and prompt loading stay bounded rather than growing with the full conversation history.

Memory can improve continuity, but it is not a guarantee of perfect recall or a substitute for clinical verification. Safety decisions must continue to use the platform's runtime controls and authoritative data sources.

{% hint style="info" %}
For text-thread persistence within a conversation, including frozen plans and recent turns, see [Text Sessions](https://docs.concurrence.com/channels/text-sessions#durable-conversation-model). Conversation persistence and cross-session functional memory are separate mechanisms.
{% endhint %}


# Clinical Tools

Current built-in world tools for patient lookup, scheduling, clinical reads, and source-attributed writes.

The Platform runtime has a built-in catalog of world tools for patient, scheduling, clinical, and operational workflows. A catalog entry is a supported tool definition, not a promise that every agent can call it. Actual exposure depends on the runtime, service, Context Graph state, channel, authorization, and resolved patient scope.

{% hint style="info" %}
Capabilities are grouped by workflow below. Use explicit patient identifiers and typed lookups; there is no natural-language entity search tool.
{% endhint %}

World write tools record structured, source-attributed events. Event acceptance, entity projection, and external delivery are separate milestones. A successful tool result does not by itself prove that an external system changed.

## Patient Data

| Capability         | Type  | What It Does                                                                                                                                          |
| ------------------ | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Patient lookup** | Read  | Searches by a known entity ID or supported demographic and source identifiers, including date of birth, name, phone, email, or medical record number. |
| **Patient create** | Write | Creates a person event after the tool's supported duplicate check.                                                                                    |
| **Patient update** | Write | Records supported demographic and contact changes for a resolved patient.                                                                             |
| **Save patient**   | Write | Updates a supplied entity or performs the supported lookup-and-create path when no entity is supplied.                                                |

## Scheduling

| Capability                 | Type  | What It Does                                                                                                                                     |
| -------------------------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Slot search**            | Read  | Finds supported available slots by date and optional location, appointment type, provider, specialty, or time constraints.                       |
| **Appointment lookup**     | Read  | Searches appointments using the supported patient, status, and date filters.                                                                     |
| **Schedule appointment**   | Write | Records a booking from a supported slot reference and resolved patient.                                                                          |
| **Cancel appointment**     | Write | Records cancellation of a resolved appointment.                                                                                                  |
| **Confirm appointment**    | Write | Records confirmation of a resolved appointment.                                                                                                  |
| **Reschedule appointment** | Write | Records cancellation of the prior appointment and creation of its replacement. These are related writes, not one universal external transaction. |

## Clinical Context

| Capability                          | Type  | What It Does                                                                                                                                                                                                                                         |
| ----------------------------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Medication lookup**               | Read  | Retrieves supported prescription records for a resolved patient.                                                                                                                                                                                     |
| **Prescription refill**             | Write | Records a refill-request event for a selected prescription.                                                                                                                                                                                          |
| **Encounter lookup**                | Read  | Retrieves supported visit and encounter history.                                                                                                                                                                                                     |
| **Insurance create**                | Write | Records a coverage event for a resolved patient.                                                                                                                                                                                                     |
| **Payer and reference-data lookup** | Read  | Searches configured payer information or other supported workspace reference data.                                                                                                                                                                   |
| **Typed clinical lookups**          | Read  | Query supported conditions, allergies, observations, medication statements, notes, family history, questionnaires, uploads, care plans, goals, tasks, service requests, consents, and diagnostic reports. Coverage depends on projected source data. |

## Operations

| Capability        | Type  | What It Does                                                                                                           |
| ----------------- | ----- | ---------------------------------------------------------------------------------------------------------------------- |
| **Queue lookup**  | Read  | Reads projected outbound-task state using supported status, phone, ordering, and limit filters.                        |
| **Ticket create** | Write | Records a support or operations ticket event.                                                                          |
| **Log call**      | Write | Records a supported call-outcome event for a resolved patient.                                                         |
| **Log triage**    | Write | Records the structured outcome supplied for a triage conversation. It is not an independent clinical decision service. |

Outbound calls are placed through the Outbound Calls API, not a general built-in agent tool. See [Outbound](https://docs.concurrence.com/channels/outbound).

## Tool Exposure

Context Graph state bindings can expose eligible built-in tools for that state. Supported runtimes can also add narrowly scoped system tools or other configured tool families. State membership alone is not authorization, and presence in the global catalog does not mean a tool is active for a particular service.

For the live catalog and service-specific resolution endpoints, see [Tool Testing](https://docs.concurrence.com/developer-guide/platform-api/functions/tool-testing).

## Verification

Clinical write capabilities do not push raw conversation output directly into external systems. They validate structured tool input, enforce the applicable workspace and patient scope, and attempt a source-attributed world-model event write. Some runtimes suppress only identical writes that overlap in flight; that is not general request idempotency.

A world-model event is not delivered to an external system by itself. An external mutation happens through a tool the agent calls, such as an integration endpoint, and its result is the evidence of what the destination accepted.

Workspaces can add other eligible capabilities through [Platform Functions](https://docs.concurrence.com/agent/platform-functions), workspace queries, integrations, and Skills.


# Platform Functions

Workspace-registered SQL, AI, Python, and table-valued functions for governed data retrieval and computation.

{% hint style="info" %}
**API Name**: Platform functions are managed through the Agent Forge CLI, the platform SDK, and the Developer Console's Warehouse tab (Tools > Warehouse), which provides a read-only directory, inspector, and test runner, in addition to the workspace-scoped `functions` endpoints. See the [Developer Guide](https://docs.concurrence.com/developer-guide/platform-api/functions) for endpoint details.
{% endhint %}

Additional managed code runtimes require a separately agreed authoring, publication, secret-access, and invocation workflow. Their implementation does not change the public Platform Functions or Classic Tools contracts below. Confirm the supported interface with the implementation owner before choosing that path.

Platform functions are workspace-registered computation tools. You define a supported SQL, AI, Python, or table-valued function and deploy it to the workspace function registry. Supported agent runtimes can then expose that function as a tool and return its result to the agent.

The key capability is cross-domain querying. Platform functions can read both live entity data (the world model's operational store) and analytical aggregations (historical trends, billing data, population statistics) in a single call when the registered SQL has access to those sources. A function might combine an entity's current projected confidence fields with a separately defined utilization aggregate.

Choose the function for the work: SQL for queries, AI for classification or extraction, Python for custom logic, and table-valued functions for multi-row results. An eligible call returns its result to the agent.

## Tool Categories

Each successfully loaded platform function registers as a tool with a name, description, input schema, and result. Two related families can load at session start:

* **Named platform functions** - addressed as `fn_<name>`, these are pre-built queries or computations registered for the workspace. Each runs on the platform's compute layer.
* **Workspace data queries** - addressed as `wsq_<name>`, these are parameterized SQL templates that run directly against a workspace's own custom tables. Parameters are typed with optional defaults, the SQL is held to the workspace SQL rules when it is saved and each time it runs, and execution runs under the workspace's tenant-scoped role.

### Named Functions

Named functions are pre-built queries or computations registered for the workspace. Each function has a name, description, input schema, and return type. The agent calls them by name with structured parameters.

Function types:

| Type             | What It Does                                                                                     | Example                                                                                                                     |
| ---------------- | ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
| **SQL**          | Parameterized query that returns rows or a single computed value across live and analytical data | Patient summary, caller history, entity confidence assessment, risk score                                                   |
| **AI**           | A query that wraps an AI operation such as classify, summarize, extract, or assess               | Intent classification, clinical extraction, transcript cleanup, care plan generation, handoff summaries, urgency assessment |
| **Python**       | A sandboxed scalar function for custom logic                                                     | Address parsing, custom scoring algorithms, phone formatting                                                                |
| **Table-valued** | A sandboxed function that returns multiple rows                                                  | Expanding a record into per-line-item rows, derived tabular results                                                         |

Deployments can expose common world-data functions, and a workspace can register additional named functions. The session runtime loads functions that are registered for that workspace; do not assume a warehouse function is automatically present as an agent tool.

{% hint style="info" %}
**Common Function Names**

Depending on deployment and workspace registration, common examples include:

* **Entity confidence** - Current projected source, event count, confidence value, and last-event time for an entity (SQL)
* **Caller history** - Up to 10 of the workspace's most recent production calls with a phone number, newest first, with each call's date, duration, quality score, completion reason, direction, call SID, and conversation statistics such as turn, state, loop, and barge-in counts. The number is the caller on an inbound call and the callee on an outbound call. Playground, simulation, and test calls are left out, and text conversations do not appear (SQL)
* **Patient summary** - Current display name, entity type, event count, source, and last-event time (SQL)
  {% endhint %}

Workspaces can register additional SQL, AI, Python, and table-valued functions. The callable set for a session depends on workspace registration, successful loading, the selected runtime, and any applicable Context Graph bindings.

### Workspace Data Queries

Workspace data queries (`wsq_<name>`) cover the long tail of questions that no pre-built function anticipated, such as "how many appointments did this patient cancel in the last 6 months?" or "which providers at this location accept this insurance?" A team registers these as parameterized SQL templates that run against custom tables provisioned for the workspace. Parameters are typed (string, integer, number, boolean) with optional defaults. The SQL is held to the workspace SQL rules when the query is saved and each time it runs, and those rules accept only a fixed list of statements and built-in functions. Query access remains constrained to the workspace's provisioned tables. See [Workspace Data Queries](https://docs.concurrence.com/developer-guide/platform-api/functions/workspace-data-queries) for the rules.

Platform functions are read-only. Workspace data queries are the exception: a data query can write to the workspace's own custom tables. Recording new observations as world model events is done through the dedicated write tools described in [Clinical Tools](https://docs.concurrence.com/agent/clinical-tools) and the [World Model](https://docs.concurrence.com/data/world-model) page, not through this surface.

## Loading Functions at Session Start

Registered functions and workspace data queries are loaded at session start from the workspace stores. A load failure can leave a function unavailable for that session. In the state-machine runtime, the state's tool-call specifications normally determine state-level visibility. Other supported runtimes can expose shared platform tools through their own session configuration. Validate the runtime used by the service rather than assuming one universal gating rule.

## Using Functions in Context Graphs

For the state-machine runtime, bind a function on each Context Graph state that needs it. Action states use `action_tool_call_specs` or `exit_condition_tool_call_specs`. Decision and data-collection states use `tool_call_specs`. This fragment shows an action state's tool list:

```yaml
action_tool_call_specs:
  - tool_id: fn_entity_confidence
  - tool_id: wsq_appointment_history
    additional_instruction: "Look up the patient's appointment history when relevant"
```

Named platform functions use the `fn_` prefix, becoming `fn_{name}` (e.g., `fn_caller_history`, `fn_risk_score`). Workspace data queries use the `wsq_` prefix, becoming `wsq_{name}`.

When a parameter should come from the application's start-time conversation context, the same state-tool entry can declare `context_bindings`. The service must accept the key. Same-name `context_bindings` require matching names. `context_binding_aliases` explicitly maps a function parameter to a differently named context key and rejects the call if that source is missing. Follow [Pass Context to Tool Parameters](https://docs.concurrence.com/developer-guide/guides/conversation-context) for configuration and runtime limits. Authorization-bound parameters remain a separate mechanism.

This keeps function access contextual on that runtime - a triage state might expose `fn_entity_confidence` and `fn_caller_history`, while a data-capture state exposes relevant workspace data queries. Other supported agent runtimes can use a shared-tool contract; consult their runtime documentation before relying on state-level hiding as an authorization boundary.

## Management

Platform functions are managed through workspace-scoped REST endpoints, the platform SDK, and [Agent Forge](https://docs.concurrence.com/reference/agent-forge) - see the [developer guide](https://docs.concurrence.com/developer-guide/platform-api/functions) for endpoint details. Deploying a function name that already exists replaces the definition in place (no versioning or aliases), and functions registered in one workspace are independent of other workspaces.

### Agent Forge CLI

[Agent Forge](https://docs.concurrence.com/reference/agent-forge) provides function management commands:

```bash
forge platform function list
forge platform function catalog
forge platform function register --file function.json
forge platform function test <name> --input '{"argument": "value"}'
forge platform function query --sql 'SELECT ...'
forge platform function sync
forge platform function delete <name>
```

## How Tool Types Relate

The platform has three complementary tool types. Each serves a different purpose:

|                      | Platform Functions                                        | Actions                                                                | Skills                                                        |
| -------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------- |
| **Definition**       | Declarative (SQL, AI, Python, table-valued)               | Imperative (custom code packages)                                      | LLM-backed micro-agents with prompt-based configuration       |
| **Deployment**       | Register and run - no container or build step             | Package with dependencies, deploy to execution environment             | Configure prompt, schemas, model, and declared tools          |
| **Data access**      | Read access granted to the registered function runtime    | Defined by the packaged Action and its credentials                     | Through declared integration and static tools                 |
| **Write capability** | None - read-only. Writes go through dedicated write tools | Defined by the package and its authorized integrations                 | Delegated through declared tool calls                         |
| **Latency**          | Warehouse or compute startup can add delay                | Depends on the deployed Action and execution environment               | Bounded by configured timeout and agent-turn limits           |
| **Best for**         | Data retrieval, scoring, classification, summarization    | Multi-step workflows, external system integration, document generation | Prompt-driven reasoning and orchestration over declared tools |

Use platform functions when the agent needs data or computation. Use Actions on the Classic API when the agent needs a versioned code package. Use Platform Skills when the task requires model-driven reasoning or multi-step orchestration over explicitly declared tools.

### Skill Execution

Platform Skills are orchestrated companion definitions, not a five-tier execution surface. A skill declares its prompt, input and result schemas, model settings, turn and timeout bounds, and the integration or static tools it may call. The Platform API does not expose `direct`, `autonomous`, `browser`, or `computer_use` execution-tier fields.

A world-model observation that a declared tool produces is not delivered to an external system by itself; an external change needs its own integration call.

{% hint style="info" %}
**See also**

* [World Model](https://docs.concurrence.com/data/world-model) for how events and entities work
* [Clinical Tools](https://docs.concurrence.com/agent/clinical-tools) for built-in patient lookup, scheduling, and insurance tools
* [Context Graphs](https://docs.concurrence.com/agent/context-graphs) for how states bind workflow tools
  {% endhint %}


# Improving Agent Behavior

Turn feedback into a reviewed workflow, test changes against clear criteria, and use production results to guide the next release.

Use conversation outcomes, tool results, evaluations, and feedback to decide what an agent should do differently. Define the intended behavior, test a candidate change, and compare results after release.

Concurrence provides analytics, simulations, configuration versions, and deployment tools for this work. Your team owns the workflow and release decisions. Production feedback does not automatically rewrite or release agent configuration.

## Turn Feedback Into a Patient Arc

A **patient arc** describes the path from a patient's request to completion or handoff. The customer and implementation team agree on its decision branches, required information, and allowed actions. They then implement that design through a Context Graph, its tools, and the surrounding application.

Group feedback by the work the patient is trying to complete. For each group, agree on the intended behavior before editing instructions:

* **Request and outcome:** what the patient needs and what counts as completion.
* **Current facts:** which system supplies each value, how fresh it must be, and what to do when it is missing or contradictory.
* **Decisions and actions:** the conditions for each path, required permissions, and the result to verify.
* **Handoff:** when to involve a person, who owns the next step, and what context they need.
* **Test cases:** representative requests, exceptions, and expected results approved by the workflow owner.

For example, a refill-status arc could start by looking for an existing request:

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-9c357080fedd295fd04a9aa2e51be0bd7c860d36%2Fpatient-arc-decisions.svg?alt=media" alt="An illustrative patient arc starts with an authorized request lookup. Found requests lead to status and owner checks; absent requests lead to a policy check before creation; missing or conflicting records require resolution or handoff. Clinical review and eligibility follow the organization&#x27;s approved policy."><figcaption><p>Turn each lookup result into an expected next step and a test case. These branches illustrate a patient arc and do not define clinical eligibility.</p></figcaption></figure>

The workflow owner supplies and reviews the eligibility and escalation rules. If clinical review is required, hand off to the authorized care team. Resolve missing or conflicting records before creating another request.

Retrieve changing values such as eligibility, order status, and appointment availability through authorized data tools. Keep those values separate from the workflow instructions. Put exact calculations and enforceable access checks in application code or tools. Model-generated interpretation still needs evaluation.

Map the approved branches to configuration and regression cases. Each case should specify the expected action, answer, or handoff. Test the resulting agent behavior before release, because a flowchart alone cannot guarantee model behavior or clinical safety. [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove) takes this design through configuration, evaluation, and promotion.

## The Improvement Loop

```mermaid
%%{init: {"theme":"base","fontFamily":"Inter, sans-serif","themeVariables":{"fontFamily":"Inter, sans-serif","fontSize":"16px","background":"#FAF8F6","primaryColor":"#F1EAE7","primaryTextColor":"#1A1817","primaryBorderColor":"#D7D2D0","secondaryColor":"#FDFCFB","tertiaryColor":"#F6F2F0","lineColor":"#575452","textColor":"#3D3937","clusterBkg":"#FDFCFB","clusterBorder":"#E8E2DF","edgeLabelBackground":"#FAF8F6","actorBkg":"#F1EAE7","actorTextColor":"#1A1817","actorBorder":"#D7D2D0","actorLineColor":"#575452","signalColor":"#575452","signalTextColor":"#3D3937","labelBoxBkgColor":"#F1EAE7","labelBoxBorderColor":"#D7D2D0","labelTextColor":"#3D3937","loopTextColor":"#3D3937","noteBkgColor":"#F6F2F0","noteBorderColor":"#D7D2D0","noteTextColor":"#3D3937","activationBkgColor":"#F1EAE7","activationBorderColor":"#D7D2D0","altSectionBkgColor":"#FAF8F6","altSectionColor":"#3D3937"}}}%%
flowchart TB
    measure["Measure<br/>production and tests"] --> investigate["Investigate<br/>segments and examples"]
    investigate --> change["Author<br/>a versioned change"]
    change --> validate["Validate<br/>in simulation and targeted tests"]
    validate --> decide{"Authorized<br/>release decision"}
    decide -->|Release| observe["Observe<br/>production results"]
    decide -.->|Revise| change
    observe -.-> measure
```

### 1. Measure

Start with evidence that the platform already records:

* Conversation and run outcomes
* Configured evaluation results and metric trends
* Context graph states and executed tool calls when trace evidence is available
* Latency, escalation, and operator-participation signals
* Surface completion and outbound delivery outcomes

Production evaluations can run on demand or after completed conversations when eager evaluation is enabled. Dashboards and APIs expose results over configurable time ranges so teams can establish a baseline before making a change.

### 2. Investigate

Aggregate trends identify where to look, and individual interactions explain what happened. Compare periods and relevant segments, then inspect transcripts, executed actions, and trace evidence for representative successes and failures.

Treat a correlation as a candidate explanation, not an automatic configuration instruction. A lower completion rate for one service might reflect a changed caller population, unavailable source data, a tool failure, or agent behavior. Confirm the cause before changing the agent.

### 3. Author a Versioned Change

Make the smallest change that tests the hypothesis. Depending on the finding, that may be a context graph transition, agent instruction, tool binding, service setting, evaluation definition, or test case.

Agents and Context Graphs use explicit versions, and version sets can pin the versions a service releases. Record related changes to non-versioned settings or evaluation definitions with the same release decision. Use the authoring and inspection interfaces described in [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove).

### 4. Validate Before Release

Use [simulations](https://docs.concurrence.com/testing/testing/simulations) to exercise the affected paths and compare the candidate against the baseline criteria. Add cases for newly discovered failure modes so the regression remains visible. Use real-audio tests when the change affects speech, timing, or media behavior, and use an isolated integration environment for integration or approval workflows.

Validation should cover both the target improvement and important guardrails. A faster scheduling flow is not an improvement if it lowers information accuracy or increases unsafe escalation behavior.

### 5. Release and Observe

An authorized user decides which tested versions and settings to release. After release, compare the same measures used for the baseline and watch for changes outside the target metric. Retained agent and context graph versions give the team a known configuration to restore deliberately if the release performs worse.

## Set Release Criteria <a href="#multi-objective-review" id="multi-objective-review"></a>

Agree on release criteria that cover the workflow's outcome and operating requirements. For example:

* Task completion meets its target
* Safety-critical evaluations remain within policy
* Information accuracy does not regress
* Caller experience remains acceptable
* Duration and cost stay within operating limits

Review the measures together. An improvement in average completion rate should not hide a failure in a smaller patient group or a safety-critical path.

## Changes That Require a Decision <a href="#what-does-not-feed-back-automatically" id="what-does-not-feed-back-automatically"></a>

Analytics can show that one source, path, or tool correlates with stronger outcomes. That observation does not automatically:

* Change event confidence or source precedence in the world model
* Rewrite context graph transitions or tool order
* Adjust escalation thresholds
* Promote a version set
* Roll back a production release

Assign an owner to review the evidence and authorize changes to these controls.

## Governance

The improvement workflow uses the platform's normal governance boundaries:

* **Permissioned** - Authorized roles control configuration and release actions.
* **Auditable** - Configuration changes and deployment actions retain actor attribution.
* **Versioned** - Candidate and released configurations remain distinguishable.
* **Bounded** - Safety requirements are release constraints, not variables to trade away for a higher average score.

## Building Reusable Evidence

Keep the evidence useful for the next release:

* Convert production failure modes into permanent simulation cases.
* Keep baseline periods and release criteria with the change record.
* Reuse proven patterns across services only after validating them in the new context.
* Review metrics after each release using the same definitions and segments.

{% hint style="info" %}
See [Testing Overview](https://docs.concurrence.com/testing/testing) for the validation workflow, [Metrics and Quality](https://docs.concurrence.com/testing/testing/metrics) for evaluation concepts, and [Agent Forge](https://docs.concurrence.com/reference/agent-forge) for versioned configuration commands.
{% endhint %}


# Channels Overview

How voice, text, messaging, email, and Surfaces deliver a shared workflow while preserving distinct identity, consent, and completion rules.

Channels determine how a workflow reaches a patient and how its responses become speech, messages, or forms. Supported agent paths can reuse agent guidance, Context Graphs, tools, and selected world-model context. Identity, consent, timing, session continuity, and operator controls still belong to the specific path.

A patient might answer a call, complete a browser form, and receive a later reminder. Coordinating that work requires an explicit workflow and shared context. It does not imply one uninterrupted conversation state across every transport.

## How It Works

The [reasoning engine](https://docs.concurrence.com/agent/reasoning-engine) processes available interaction signals and produces effects such as responses and tool calls. The selected runtime handles the channel's input, delivery, and control behavior. Surfaces provide a separate form-collection lifecycle that can contribute observations to the world model.

When adapting a workflow to another channel, review the information it needs, available tools, consent requirements, identity rules, and evidence of completion. Test those boundaries on the intended path. [How It Works](https://docs.concurrence.com/platform-overview/how-it-works) follows one operational outcome through the wider system.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-0e0fa97a29f270682991765ee38ec58b6a07372c%2Fchannel-boundaries.svg?alt=media" alt="A configured workflow can use shared definitions and selected context, while phone, application text, managed messaging, and surfaces each retain distinct delivery and lifecycle controls."><figcaption><p>Do not infer one channel’s controls or evidence from another.</p></figcaption></figure>

## Channel Types

### Phone

[Phone](https://docs.concurrence.com/channels/voice) provides real-time conversations with speech recognition and generated speech. Supported paths include inbound and outbound calling, interruption handling, and human escalation. Use the voice chapters for the audio pipeline and recordings, and [Operators](https://docs.concurrence.com/operations-and-safety/operators) for phone-based listen and takeover.

### Text Sessions

[Text Sessions](https://docs.concurrence.com/channels/text-sessions) explains application-hosted text and durable messaging conversation behavior. Applications and managed channels expose different response and completion contracts. Use this guide to understand continuity, request completion, and background work before implementing the channel-specific integration.

### SMS

[SMS](https://docs.concurrence.com/channels/sms) uses provisioned sender resources and managed inbound routing. Review registration, consent evidence, content checks, suppression, and delivery receipts before planning outreach. A supplied phone number and a successfully created conversation do not establish permission to send or recipient delivery.

### WhatsApp

[WhatsApp](https://docs.concurrence.com/channels/whatsapp) uses a business-scoped recipient identity for managed text conversations and applies a free-form reply window. Its separate phone-keyed voice-note operation has its own session and audio-delivery contract. Do not treat the two paths as one shared thread.

### iMessage

[iMessage](https://docs.concurrence.com/channels/imessage) provides managed messaging through provisioned lines on compatible devices. It uses the durable conversation model with its own provider, media, and delivery boundaries. SMS and iMessage support an explicit switch within a compatible conversation. Other channel transitions need their own workflow.

### Email

[Email](https://docs.concurrence.com/channels/email) has managed sender domains, transactional or marketing use cases, reply threading, and separate delivery and unsubscribe evidence. Its send path is distinct from the Conversations API's outbound-start and channel-switch capabilities. Use the email guide for domain setup and sending behavior.

### Surfaces

[Surfaces](https://docs.concurrence.com/channels/surfaces) collect structured input in a browser form. A configured workflow can create a form and share its supported email or web link, then use the submitted information. Form creation, link delivery, submission, and world-model projection are separate milestones. A Surface submission is not automatically a dataset-intake file.

### Voicemail

Answering-machine and configured voicemail behavior during a regular phone call are part of the voice workflow. There is no standalone ringless voicemail channel.

## Background Tool Delivery on Non-Live Channels

Live voice, application text, and asynchronous messaging expose different completion contracts. An application turn can complete within its request or require the client to inspect pending work. Managed messaging can attempt a later reply when supported background work completes.

Provider delivery remains separate. Suppression, rejection, retries, or an outage can prevent that reply from reaching the recipient. See [Text Sessions](https://docs.concurrence.com/channels/text-sessions) and the relevant channel guide for the supported lifecycle.

## Multi-Channel Orchestration

Choose channels through provisioned use cases, authored workflows, triggers, and supported outbound operations. Patient preferences, consent, contact history, and the information being exchanged should inform that configuration.

For each transition, decide which entity and history the next step can access, what starts it, what confirms completion, and who handles a failure. Shared world-model context can support continuity even when the transports retain separate session state. Automatic cross-channel optimization or fallback should not be inferred from that shared context.

### Outbound

[Outbound](https://docs.concurrence.com/channels/outbound) explains platform-initiated contact and scheduled work. A campaign also needs explicit eligibility, pacing, consent, retry, and exception policy. A channel's availability does not supply those policies automatically.

### Channel Availability

Use [Channel Program Readiness](https://docs.concurrence.com/channels/program-readiness) to distinguish a working channel from an approved outreach program, then assign the recurring software and operating responsibilities for that program.

Availability depends on the deployment, geography, provider capacity, and completed provisioning. Managed SMS, iMessage, WhatsApp, and email resources can require Concurrence-assisted onboarding. Confirm the intended resources and routing before exercising the workflow.

## Continue the Deep Dive

Read the relevant channel guide for transport behavior, [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety) for enforced and observed controls, and [Testing and Evaluation](https://docs.concurrence.com/testing/testing) for evidence that covers the actual channel. The [Operating Model](https://docs.concurrence.com/platform-overview/operating-model) assigns consent, staffing, and exception responsibilities.


# Channel Program Readiness

Review program permission, channel integration, delivery evidence, and recurring operational responsibilities before launching patient outreach.

A working channel demonstrates that a particular integration can send or receive. Launching a patient outreach program also needs an approved purpose, audience, sender, consent process, content, and operating plan. Keep these reviews separate so that a successful demonstration does not become permission for a broader campaign.

Use this guide to produce a program review with named owners and evidence for the intended route. [Channel Manager](https://docs.concurrence.com/developer-guide/platform-api/conversations/channel-manager) explains managed provisioning and public service bindings. The channel-specific pages and [capability matrix](https://docs.concurrence.com/platform-overview/capability-availability) define which controls and operations the deployment can use.

## Review the Program and the Route Together

Record the sending organization, the organization it represents, intended recipients and geography, purpose, sample content, consent evidence, channel, and provider route. Distinguish clinical eligibility for the program from permission to contact that person through that route.

For each restriction or approval, retain its source, scope, owner, and review date. Identify whether it comes from applicable law, a provider policy, a contract, or a configured product control. A provider's rejection should not be described as a universal statutory ban. A legal review alone does not establish provider acceptance.

Cloud services provide delivery building blocks with their own requirements. For example, [AWS End User Messaging SMS guidance](https://docs.aws.amazon.com/sms-voice/latest/userguide/best-practices.html) addresses registration, consent, content, and country-specific restrictions. Selecting a cloud messaging service still leaves the program and its operating responsibilities to be resolved.

| Review                | Evidence to retain                                                                                             |
| --------------------- | -------------------------------------------------------------------------------------------------------------- |
| Purpose and authority | Approved audience, intended action, sender relationship, and clinical or business review where required        |
| Recipient permission  | Consent source and wording, collection time, permitted purpose/channel, and current suppression state          |
| Route readiness       | Applicable registration, sender assignment, provider acceptance of the intended use, and regional availability |
| Content and data      | Reviewed examples, personalization limits, allowed attachments, and downstream processing requirements         |
| Operation             | Contact timing, attempt limits, reply handling, human escalation, incident ownership, and a stop procedure     |

Existing [SMS controls](https://docs.concurrence.com/channels/sms#consent-and-registration) distinguish registration, customer consent evidence, a recorded opt-in message, suppression, and content checks. Do not treat one record as proof of all five. Other channels have different controls. Review their own contracts.

For example, a team with an approved appointment-reminder program wants to add health-coaching outreach using the same sender. A successful test message verifies connectivity. It does not establish that the existing purpose, consent wording, or registration covers coaching. Review that change before expanding the program, and identify the control or operator that will hold messages outside the agreed scope.

## Preserve the Difference Between Each Outcome

| Milestone                 | What it establishes                                                           | What remains separate                                    |
| ------------------------- | ----------------------------------------------------------------------------- | -------------------------------------------------------- |
| Candidate selected        | Source data matches the configured selection criteria                         | Current eligibility, permission, and route readiness     |
| Action authorized         | The applicable control permits this particular action                         | Whether execution or delivery succeeds                   |
| Provider accepts          | The provider acknowledges a send request                                      | Carrier/device delivery and recipient engagement         |
| Delivery reported         | A channel-specific receipt reports delivery                                   | Reading, understanding, agreement, or a clinical outcome |
| Recipient responds        | An inbound event arrives                                                      | Identity resolution, intent, and any requested action    |
| Business outcome verified | The authoritative destination or agreed evidence confirms the intended result | Attribution, durability, and longer-term benefit         |

These are evidence distinctions, not one shared Concurrence status enum. Keep case, action, Channel Manager message or call IDs, and conversation references so operators can investigate a particular attempt. A missing callback or timeout leaves an unknown result. Reconcile before repeating an action that may already have occurred. Use only the retry and deduplication guarantees documented for the selected path.

## Treat Channel Changes as New Decisions

Multiple channels provide more possible routes, each subject to its own permissions and capabilities. When a route is unavailable, the workflow should hold, escalate, or use an explicitly approved alternative. A rejection or opt-out is not permission to try another sender or transport.

Review transport fallback as well as application routing. A provider can have different downgrade behavior from an agent's requested channel. If the program permits only a particular transport, verify that the selected provider path can enforce that restriction. Supported conversation switching also does not supply consent for the new channel. See [Multi-Channel Orchestration](https://docs.concurrence.com/channels/conversations#multi-channel-orchestration) and [Outbound](https://docs.concurrence.com/channels/outbound).

## Budget for Software and Continuing Operation

Compare building or buying the same scope. The recurring work includes maintained integrations, authenticated callbacks, correlation, failure recovery, suppression handling, and operational visibility. It also includes sender and campaign reviews, provider escalations, policy changes, reputation issues, and incident response. Some work is software, and some requires an accountable operator and an external decision.

Agree which responsibilities the Concurrence platform and managed operations cover, which belong to the customer, and which need implementation work. A consulting engagement, agent runtime, or transport API does not by itself cover that full scope. Conversely, a managed channel does not guarantee every program will be accepted or every message delivered.

Test the intended route with synthetic cases for rejection, suppression, expiry, duplicate events, uncertain delivery, and human escalation. Confirm which evidence the customer can inspect through supported APIs, managed support, or the agreed UI. Revisit the review when purpose, content, provider policy, or routing changes. Track those dependencies separately from engineering effort in the [evaluation packet](https://docs.concurrence.com/platform-overview/evaluation-packet).

For a provisioned SMS route, continue with [Test a Managed SMS Workflow](https://docs.concurrence.com/developer-guide/guides/test-managed-sms) to verify routing, suppression, exposed delivery evidence, and receipt by a controlled test recipient.


# Phone

Real-time phone-based conversations with conference-first architecture, empathy-aware pacing, and adaptive voice delivery.

Phone has real-time constraints that asynchronous text does not: callers expect a prompt response, silence can feel like a failure, and vocal delivery affects the interaction. Voice shares the platform's reasoning and Context Graph concepts, while transport, tool exposure, safety controls, and lifecycle behavior still depend on the selected runtime and channel configuration. See [Agent Architecture](https://docs.concurrence.com/agent/reasoning-engine).

## Voice Families

A service selects its voice family with `voice_config.session_provider`: the `concurrence` cascade, `gpt_realtime`, `eleven_realtime`, `gpt_live`, or `grok_voice`. Eleven Realtime serves inbound phone calls, app voice sessions, Playground, and test calls in an ElevenLabs voice. It requires a Context Graph with exactly one action state, no enabled dynamic behaviors, and a workspace without regional data residency. Its phone calls support end call and cold transfer. Outbound calls are not available.

GPT-Live answers ordinary conversational turns itself and delegates requests for service tools to Concurrence reasoning, which navigates multi-state Context Graphs. It serves inbound phone calls, app voice sessions, Playground, and test calls in US workspaces without regional data residency. Its phone calls support end call and cold transfer. Outbound calls, warm transfer, and operator takeover are not available.

Grok Voice serves inbound phone calls, app voice sessions, Playground, and test calls in a built-in Grok voice. It requires a Context Graph with exactly one action state, no enabled dynamic behaviors, and a workspace without regional data residency. Its phone calls support end call and cold transfer. Outbound calls, warm transfer, and operator takeover are not available.

Use [Choosing a Realtime Voice Family](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#choosing-a-realtime-voice-family) to compare channels, graph support, and call controls, then configure the service.

## Conference-First Architecture

Platform-managed phone calls use a multi-party conference for the caller and agent legs. This design lets an authorized human [operator](https://docs.concurrence.com/operations-and-safety/operators) join a supported call as another participant without replacing the caller's connection.

For outbound calls, the runtime prepares the first agent audio and joins the agent before it dials the callee, and the agent speaks only once the callee answers. A voicemail that picks up counts as an answer. For inbound calls, the conference can hold the caller while the session and greeting become ready, then add the agent leg. These readiness paths reduce first-audio delay, but telephony and dependency latency can affect when the greeting begins.

When an operator joins, they enter the same conference in a supported listen or takeover mode. Operator access is permission-gated, and the exact join method depends on the configured operator channel.

```mermaid
%%{init: {"theme":"base","fontFamily":"Inter, sans-serif","themeVariables":{"fontFamily":"Inter, sans-serif","fontSize":"16px","background":"#FAF8F6","primaryColor":"#F1EAE7","primaryTextColor":"#1A1817","primaryBorderColor":"#D7D2D0","secondaryColor":"#FDFCFB","tertiaryColor":"#F6F2F0","lineColor":"#575452","textColor":"#3D3937","clusterBkg":"#FDFCFB","clusterBorder":"#E8E2DF","edgeLabelBackground":"#FAF8F6","actorBkg":"#F1EAE7","actorTextColor":"#1A1817","actorBorder":"#D7D2D0","actorLineColor":"#575452","signalColor":"#575452","signalTextColor":"#3D3937","labelBoxBkgColor":"#F1EAE7","labelBoxBorderColor":"#D7D2D0","labelTextColor":"#3D3937","loopTextColor":"#3D3937","noteBkgColor":"#F6F2F0","noteBorderColor":"#D7D2D0","noteTextColor":"#3D3937","activationBkgColor":"#F1EAE7","activationBorderColor":"#D7D2D0","altSectionBkgColor":"#FAF8F6","altSectionColor":"#3D3937"}}}%%
flowchart LR
    C[Caller] <-->|Audio| Conf[Conference]
    A[AI Agent] <-->|Audio| Conf
    O[Operator] -.->|Joins on<br/>escalation| Conf
```

## Hold Music

A voice use case can have a custom hold-music track for participants placed on hold. The track belongs to the channel use case. Placing a particular participant on hold and resuming their audio are separate call controls. A use case without a custom track uses the provider's default hold music.

Confirm the audible result and the return to two-way audio with a controlled recipient. For setup, permissions, and a test sequence, see [Channel Manager Hold Music](https://docs.concurrence.com/developer-guide/platform-api/conversations/channel-manager#configure-hold-music).

## Call Opening

Platform-managed, `gpt_realtime`, `eleven_realtime`, `gpt_live`, and `grok_voice` calls open with an AI and recording notice. GPT-Live and Grok Voice play prerecorded audio for the opening notice, emergency scripts, and a small set of fixed lines. Eleven Realtime speaks it in the selected ElevenLabs voice. For a service that needs the notice spoken word for word, prefer `gpt_realtime` and verify the opening with representative calls. On the platform-managed runtime, caller speech does not cut it off. See [Call Opening](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#call-opening) for the wording, its languages, and when it plays on each runtime.

## The Voice Pipeline

On the Concurrence-managed speech pipeline, a supported call turn flows through five layers that convert caller audio into a spoken response. Layers 1-2 and 5 are voice-specific. Layers 3-4 use the shared [reasoning engine](https://docs.concurrence.com/agent/reasoning-engine). A service configured for a separate realtime speech provider can follow that provider's audio and turn-processing path instead.

| Layer                          | What It Does                                                                                                                                                                                                                                                                                                                                                   | Scope  |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| **1. Audio Capture**           | Captures the caller's audio stream from the telephony layer and sends it to speech-to-text.                                                                                                                                                                                                                                                                    | Voice  |
| **2. Speech-to-Text**          | Converts audio to text using streaming transcription with domain-specific vocabulary boosting. Determines when the caller has finished speaking and emits final utterance signals.                                                                                                                                                                             | Voice  |
| **3. Intelligence**            | Reads each caller turn's words for the support they call for and assigns an [empathy tier](https://docs.concurrence.com/channels/voice/audio-pipeline#empathy-gated-filler-behavior), which sets the empathy pause, the filler type, and the reply's empathy guidance.                                                                                         | Engine |
| **4. Navigation and Response** | The context graph engine selects the right action, chooses the appropriate vocal emotion for the response, generates text, and produces filler speech to cover processing time. A unified voice timeline orchestrator coordinates all filler emission, empathy pauses, and tool progress updates through a signal-driven model rather than independent timers. | Engine |
| **5. Text-to-Speech**          | Converts the generated text into spoken audio using the emotion selected during navigation, along with pace and emphasis. Each utterance carries its own TTS parameters (emotion and speed), so fillers and responses can use different vocal qualities without interference. Streams audio back to the caller through the conference.                         | Voice  |

If navigation fails or runs out of time, the agent stays in its current state and answers from there rather than claiming that the turn advanced. Voice filler may cover part of that delay.

When the call ends, the platform-managed runtime records a summary of the call's operational signals. The platform does not re-transcribe the call or score transcript accuracy afterward. Trace analysis, judges, and production evals are configured separately and have their own prerequisites.

`gpt_realtime` builds workflow instructions from the current action state. It accepts a single action state or 2 to 12 action states with unique names and valid exit targets. Both initial-state fields on a multi-state graph name the first state. The model can request a move through `change_state`, which offers the current state's exits. The platform applies the move and waits for the voice provider to acknowledge the updated instructions and tools. The model can miss a move and stay in the current state.

`eleven_realtime` requires exactly one action state. `gpt_realtime` runs enabled [dynamic behaviors](https://docs.concurrence.com/agent/context-graphs/dynamic-behaviors), and `eleven_realtime` accepts none. Neither family accepts typed guardrails on an action state. `gpt_realtime` does not apply `preload`, `wait_for`, `surface_spec_template`, `turn_policy`, or `channel_overrides`, and its outbound calls require a single action state. See [Session Provider](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services#session-provider) for save refusals. If preparing a call or applying a move fails, the call takes the [safe exit](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#graceful-degradation). Operator takeover and session event injection from the platform-managed pipeline do not carry over to these families. Validate the intended workflow and escalation path before launch.

The `gpt_realtime` path also retains completed transcripts and tool calls in conversation order, with incremental writes and a completion retry. Missing completions or persistence failures can leave gaps. Retained history, live observer events, recordings, and post-call quality analysis are separate evidence. See [Call Record and Persistence](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#call-record-and-persistence).

## Patient Context Injection

When a call connects, the agent can use the caller's phone number to find a matching workspace record, and a session can also open with an `entity_id`. Either way the caller starts unverified: the agent knows a record may match but sees none of its details until the caller states a full name and date of birth that match exactly one record through `world_confirm_patient_identity`.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-dc33c96c0185d7bb91e736d96fe0b6c8ccba8d5f%2Fcaller-verification-states.svg?alt=media" alt="A caller matched by phone number or entity_id starts unverified, and built-in patient reads return verification_required. A full name and date of birth that match one record load the patient context, and repeated failures lock verification for the conversation."><figcaption><p>A phone number match points to a candidate record. It is not proof of who is speaking.</p></figcaption></figure>

A service whose workflow never needs the caller's record can turn platform caller verification off. The platform never asks its callers to verify, the record never reaches the agent, and the agent is told not to greet them by name or share anything from a patient record.

Unknown callers and incomplete source data are valid outcomes. See [Caller Verification](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#caller-verification) for what record reads return before and after verification, the sessions that aren't gated, and how to add verification to a Context Graph.

Valid inbound phone numbers are normalized to E.164. Withheld, anonymous, invalid, and non-phone caller identifiers provide no phone identity for lookup or automatic channel-context filling. A valid number alone is not proof of who is speaking.

The runtime can refresh session context after supported writes, but projections and external systems may be eventually consistent. Agents should verify time-sensitive facts through the appropriate source rather than assume every write is immediately visible everywhere.

## Session Event Injection

External systems can inject events into supported platform-managed voice sessions in real time. When delivery and response generation succeed, the agent can speak a response. The separate realtime-provider runtime does not process these injections.

| Type               | Behavior                     | Use Case                                                            |
| ------------------ | ---------------------------- | ------------------------------------------------------------------- |
| **External event** | Queues behind current speech | EHR notifications, appointment confirmations, system status updates |
| **Guidance**       | Interrupts current speech    | Operator steering, real-time instructions to the agent              |

Events can be injected through multiple paths: an HTTP endpoint, a WebSocket control channel, or through the platform API. The platform API also provides a dedicated [operator guidance](https://docs.concurrence.com/operations-and-safety/operators) endpoint so operators can send guidance scoped to their identity and permissions.

The injection path supports multi-instance deployments by relaying commands to the session owner. Delivery and reconnection are still subject to session state, authorization, network conditions, and the lifecycle of the active call.

## Operational Impact

For healthcare organizations, voice agents can augment front-desk workflows such as scheduling, benefits intake, refill-request collection, and general inquiries. The actions available in a specific deployment depend on the configured context graph, tools, integrations, permissions, and safety controls. Supported workflows can route or escalate to a human operator.

Calls emit lifecycle and conversation data to the [world model](https://docs.concurrence.com/data/world-model). Conversation-derived observations remain source-attributed and stay in the world model. A change to an external system happens through an integration tool the agent calls, and the call's result is the evidence of what the destination accepted.

## Phone Numbers

Phone numbers are the entry point for inbound calls. Each number is provisioned through the platform and routed to a specific service.

### Provisioning and Lifecycle

Numbers follow a four-step lifecycle: **search** provider inventory, **purchase** an eligible number, **assign** it to a use case or service, and **release** it when no longer needed. Multiple numbers can route to the same service - for example, different clinic locations sharing one scheduling agent.

Four number types are represented by the provisioning API. Inventory varies by country and provider:

| Type          | Use Case                                                  |
| ------------- | --------------------------------------------------------- |
| **Local**     | Geographic numbers tied to a specific area code or region |
| **Mobile**    | Mobile numbers, common in markets outside North America   |
| **Toll-free** | Free-to-caller numbers for national reach                 |
| **National**  | Non-geographic national numbers in supported countries    |

Search can filter by country, type, required capabilities, and - for local numbers - area code. An empty result means no matching inventory was returned. It does not guarantee that a type is permanently unavailable in that country.

### Channel Management

Phone-number provisioning is gated by an approved business profile and any compliance bundle required for the requested country, number type, and business use. Requirements are conditional, and not every number is eligible for the same voice-branding or messaging programs.

For US voice numbers, caller-authentication enrollment applies to supported local and toll-free numbers. Display-name registration applies to eligible US standard long-code numbers, not US toll-free or Canadian numbers. Other countries can require provider-defined regulatory bundles and supporting documents. The platform resolves the applicable bundle before purchase and blocks provisioning until required approvals are present.

Messaging compliance is separate from voice provisioning. US long-code application-to-person messaging uses a brand-and-campaign flow, while US and Canadian toll-free messaging uses toll-free verification. A number having SMS capability does not mean it is approved for every messaging use case.

Some inventory requires a local, foreign, or other approved address. Search excludes numbers the setup cannot satisfy where possible, and purchase validates the stored business address against the selected number's requirement.

The number-purchase operation compensates for provider-side changes when a later step in that purchase fails. Compliance submissions have their own asynchronous review states and may require corrected information or resubmission. Approval or registration does not guarantee a particular carrier display, attestation treatment, answer rate, or spam-classification outcome.

### Routing

When a call arrives on a provisioned number, the platform routes it to the service associated with that number. The service association determines:

* Which context graph governs the conversation flow
* Which voice settings (tone, speed, key terms) apply
* Which world model workspace provides patient context
* Which escalation rules and authored safety instructions or guardrails apply

Each phone number routes to exactly one service. This keeps the mapping simple - if you need to know what a number does, look at its service assignment.

{% hint style="info" %}
**Developer Guide** - For phone number API endpoints and voice agent integration details, see the [Developer Guide](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent).
{% endhint %}

## Learn More

{% content-ref url="/pages/diNa7vR8bPyfaSkKqKHe" %}
[Audio Pipeline](https://docs.concurrence.com/channels/voice/audio-pipeline)
{% endcontent-ref %}

{% content-ref url="/pages/nRAlEc8vAwxClF3hhQFs" %}
[Call Recordings](https://docs.concurrence.com/channels/voice/recordings)
{% endcontent-ref %}


# Audio Pipeline

How speech recognition, empathy tiers, filler speech, barge-in detection, and TTS work together in real time.

## Browser Recording Sessions

Clinical recording sessions support a browser-based capture path where the provider's microphone audio streams to the platform over a resumable WebSocket connection. The protocol supports pause, resume, and reconnect so that transient network interruptions do not lose accumulated transcript state.

Key characteristics:

* **Resumable.** If the connection drops, the browser SDK can reconnect to the same session. The worker rehydrates prior transcript segments and resumes from the last acknowledged audio position.
* **Pause and resume.** A provider can pause recording, which flushes a transcript snapshot and releases the upstream transcription resource. Resuming opens a fresh transcription connection while preserving segment ordering.
* **Structured lifecycle.** Each connection validates session ownership and state before accepting audio. Typed close codes distinguish clean completion, recoverable disconnects, and fatal errors so the client can respond appropriately.
* **Fenced state transitions.** Concurrent or stale connections cannot overwrite state owned by a newer attach, preventing split-brain scenarios during reconnect sequences.

The audio pipeline converts a caller's voice into text, processes the transcript through the agent's reasoning, and converts the response back to speech. Speech recognition, tool execution, and speech output have separate responsibilities, but required model, tool, or transport work can still delay or fail a turn.

Each voice session manages four user-visible concerns:

* **Listen** - Capture caller speech and detect when the caller has finished a turn.
* **Understand** - Produce transcripts and read each caller turn for the support it calls for.
* **Decide** - Use the current context graph, patient context, and tool results to choose the next response.
* **Speak** - Deliver the response with the right timing, voice, and interruption behavior.

This design lets Concurrence update recognition and response generation independently while preserving a consistent call experience for the patient.

## Signal Capture

Audio arrives from the telephony layer as a standard telephony audio stream. Speech-to-text converts it to transcript text in real time. A live agent turn generally cannot proceed without usable caller text.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-86aba4a2ea492f10c18ca99365ac66979b524299%2Fvoice-timeline-blue.svg?alt=media" alt="A platform-managed voice turn forms input from recognized speech, navigates the Context Graph, generates a response with eligible tools, and plays speech under voice controls. Filler is optional and playback is distinct from tool completion."><figcaption><p>Stopping speech does not prove that a tool was cancelled or that an external action was undone.</p></figcaption></figure>

### Progressive Initialization

The runtime prepares configuration, tools, integrations, and greeting audio before the agent begins the live exchange. Speech recognition initializes alongside the rest of the session.

For outbound calls, the runtime prepares the first agent audio and joins the agent before it dials the callee. For inbound conference calls, the caller can remain on hold while preparation completes and the agent leg is created. These paths reduce startup delay but do not guarantee zero wait under all network or dependency conditions.

The runtime connects speech recognition before it begins forwarding caller audio.

### Greeting

The agent can prepare and play the greeting while the speech recognition setup task is running. Caller audio waits for the STT-ready signal before it is forwarded, and audio that arrives while the recognition connection is still opening is held and sent once it opens, so what an inbound caller says at pickup is kept.

For conference-mode calls where the agent leg is created during ring time, the platform waits for the caller to actually join the conference before releasing the greeting. This prevents the greeting from playing into an empty conference.

On the platform-managed runtime, the AI and recording notice plays before the call's first speech, whether that is the greeting or the first reply when the caller speaks first. See [Call Opening](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#call-opening) for its wording and languages.

### Speech Handling

Caller speech is recognized during the greeting. The greeting and every later reply follow the same [barge-in rule](#barge-in-detection), and caller speech does not cut off the AI and recording notice. There is no separate greeting shield that discards caller input until the greeting finishes. On the `gpt_realtime` runtime, an inbound greeting plays in full instead: caller speech during it is kept and answered after the greeting, unless the caller describes an emergency, which brings the [emergency script](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#realtime-emergency-script) in place of the greeting. Test simultaneous greetings and short interruptions with the deployed voice configuration.

## Speech-to-Text

The speech-to-text stage converts caller audio into text transcripts in real time. On the multilingual recognition path that supports language consolidation, detected language observations can narrow recognition hints and update the speech-output language after enough consistent evidence is available. Other speech-recognition providers do not expose the same mid-call controls.

Concurrence uses streaming speech recognition for real-time transcription. Latency varies with provider, language, network conditions, audio quality, and end-of-turn detection, and the platform does not promise a fixed per-segment transcription latency.

Some recognition paths can accept mid-call updates to keyterms, end-of-turn sensitivity, and language hints. Support is provider-dependent: a routed provider may accept only a subset of these controls or ignore a control it cannot apply, and an English call on the default recognizer ignores all three.

### Provider Routing

The platform supports multiple speech-to-text engines and selects one at session setup using the call's language, deployment availability, audio encoding, and an optional workspace preference. A workspace preference is honored only when that provider is enabled and compatible with the call's language. Otherwise, routing falls through to the deployment's normal selection chain. Operator audio follows a fixed policy rather than the caller's workspace override.

If the recognizer fails and can't reconnect during a platform-managed call, the call switches once to another recognizer enabled for the caller's language. If that isn't possible, the agent plays the AI and recording notice if the caller hasn't heard all of it, apologizes, and cold-transfers the caller to the service's `fallback_to`, else its fixed `forward_to`, or plays a closing line and ends the call. Set `fallback_to` or a fixed `forward_to` on services that should hand these calls to a person. Failover is best-effort. See [Graceful Degradation](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#graceful-degradation) for the full sequence. The same safe exit plays on both runtimes when the agent doesn't answer a caller's turn. A platform-managed call whose agent can't be set up takes it too.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-fb933a42fc6c1f7c94507bfeba1fd6a9f33e93bd%2Fstt-failure-safe-exit.svg?alt=media" alt="When speech recognition fails and can&#x27;t reconnect on a platform-managed call, the agent leaves if an operator has taken over the call, or the call switches once to another recognizer. If that isn&#x27;t possible, the agent plays the AI and recording notice if the caller hasn&#x27;t heard all of it, then apologizes and cold-transfers to a fixed forward_to, or plays a closing line and hangs up."><figcaption><p>If the caller hasn't heard all of the AI and recording notice, it plays before the apology. The notice, the apology, and the closing line play in English or Spanish, and other languages hear English. On <code>gpt_realtime</code>, and on a platform-managed call whose setup fails, the caller of an agent whose default language is multilingual hears each line in English, then Spanish. The figure shows a service with a fixed <code>forward_to</code>. A service with a <code>fallback_to</code> transfers the caller to that number instead, and a dynamic service without one takes the closing line.</p></figcaption></figure>

### Language Selection

On the platform-managed runtime, a call starts in the agent's default language, such as Spanish or Arabic. A caller whose record names a language hears it only when the service serves that language. See [Languages a Service Serves](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#languages-a-service-serves). A workspace voice language of `multilingual` starts each call in the agent's default language and follows the language the caller speaks, with recognition detecting it. Recognition follows the call's language:

| Call language                                       | Recognition                                                                           |
| --------------------------------------------------- | ------------------------------------------------------------------------------------- |
| **English**                                         | English-optimized recognition                                                         |
| **A language the multilingual recognizer supports** | Multilingual recognition with code-switching, hinted toward that language and English |
| **Another language**                                | A recognizer that supports it, with the language pinned, when one is enabled          |

On the platform-managed runtime, the voice can follow a caller who speaks another language:

* On a phone call that uses the default English-optimized recognition, two caller turns in a row in Spanish, each two words or longer, switch the voice to Spanish, and two turns back in English switch it back. A single turn, such as a name or a borrowed word, doesn't switch it.
* With multilingual recognition, the voice switches to the caller's language once recognition settles on it. This can improve recognition focus, but it is not a formal language-identification guarantee.
* Built-in fillers, progress lines, and the apology and closing lines for a speech recognition failure play in the voice's language, English or Spanish. A language without built-in fillers gets none. A service's own filler text, such as its filler and progress vocabularies or Context Graph filler hints and progress phrases, plays only while the voice speaks the language the call started in.

Voice notes choose their language by a related rule. See [Process a Voice-Note Turn](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services#process-a-voice-note-turn).

When an already-resolved entity has a language value in the [world model](https://docs.concurrence.com/data/world-model), session setup can use it before speech begins. The priority order is entity language, then workspace voice language, then the deployment default. A stored language is a routing hint and should not be treated as proof of the caller's preference for the current interaction.

### Keyterm Boosting

Medical terminology, provider names, medication names, and organization-specific vocabulary are difficult for general-purpose speech recognition. Three layers of keyterm boosting improve recognition accuracy:

| Level               | Managed By               | Scope                                                      |
| ------------------- | ------------------------ | ---------------------------------------------------------- |
| **Service-level**   | Workspace administrators | Applied to all calls for a given service                   |
| **Workspace-level** | API configuration        | Per-workspace vocabulary (clinic names, local terminology) |
| **System defaults** | Concurrence engineering  | Baseline medical and scheduling vocabulary                 |

The configured layers are merged and deduplicated during session setup. When an existing caller entity resolves, selected medication, allergy, and condition terms can be added to the active recognition session. Whether those keyterms affect transcription depends on the selected provider's capabilities.

### End-of-Turn Detection

The system must determine when the caller has finished speaking so the agent can respond. This uses configurable confidence thresholds that balance two concerns:

* **Responding too early** cuts the caller off mid-sentence
* **Responding too late** creates awkward silence

Base end-of-turn controls come from the deployment and optional per-service voice settings. Context graph states can add compatible turn-policy overrides:

* **Data collection states** (collecting a date of birth, spelling a name) use higher thresholds and longer silence timeouts, because the caller is thinking and pausing between pieces of information
* **Action states** (confirming an appointment, answering a yes/no question) use default thresholds for snappy turn-taking

These overrides take effect on state transitions, on recognition paths that accept changes during a call: when the agent moves to a data collection state, the STT engine reconfigures mid-call to be more patient with pauses. An English call on the default recognizer ignores these overrides and the per-service end-of-turn settings.

#### Final Turn Boundary

Navigation starts only after the speech recognizer emits its final end-of-turn event. Earlier eager-end and resumed-turn signals are retained for observability, but they do not launch or cancel speculative navigation. This avoids spending a model call on an incomplete utterance while keeping turn-detection behavior measurable.

## Text-to-Speech

The TTS engine converts generated text into spoken audio. Response and filler utterances can carry their own emotion and speed values, while voice identity, volume, language, and other settings come from the resolved provider configuration. Speech synthesis is streamed, so audio can begin before the complete response text is available.

### Provider Selection

The platform supports multiple TTS providers through layered workspace, agent, service, and per-language configuration. Provider capabilities differ in latency, voice selection, expressive controls, pronunciation support, language coverage, and timing metadata. The Developer Console can expose available voices and previews for configured providers, while the API and agent configuration carry the provider-specific settings.

Provider-specific settings are resolved only for the selected provider, which prevents configuration fields from one provider leaking into another. When no level names a provider, the platform default depends on whether any TTS setting is stored. See [Default TTS Model](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#default-tts-model). An outage in the selected live provider can still delay or fail speech. The current agent voice path uses 8 kHz mu-law audio across supported STT, TTS, and transports. Provider choice can still change voice quality, language behavior, expressive controls, and timing evidence.

### Per-Language Provider Routing

The platform supports routing text-to-speech to different providers based on the caller's detected language. This is configured through a language-provider map that associates language codes with specific TTS providers and voice configurations.

When a caller's language is detected, the platform resolves the TTS provider through a priority matrix:

1. **Exact language match** - e.g., `ar-SA` matches an Arabic (Saudi Arabia) entry
2. **Base language match** - e.g., `ar-SA` falls back to an `ar` entry
3. **Multilingual fallback** - a catch-all entry for any language not explicitly mapped

At each level, service configuration takes priority over agent configuration, which takes priority over workspace configuration. The first match wins.

If no language-specific entry matches, the platform uses the standard TTS provider selection (service > agent > workspace > default). Per-language configuration is isolated - when a language-specific provider is selected, only that entry's voice settings are used, preventing configuration for one provider from affecting another.

### TTS Tone Resolution

The response utterance first uses the tone navigation selects from a fixed tone set, based on the conversation, when navigation returns one. Otherwise, the runtime uses the computed voice context:

1. A current context-graph action that matches a configured sensitive topic can select sympathetic delivery.
2. A configured workspace tone overrides the computed voice-context tone.
3. If no turn-specific tone is set, the TTS provider keeps its configured baseline or default.

## Conversation Dynamics

Recognizing speech and synthesizing it are only part of the job. The pipeline also manages the moment-to-moment dynamics of the conversation: which models handle each turn, how the agent adapts to the caller's state, what the caller hears while tools run, when the agent yields the floor, and how the call ends.

### Split Model Architecture

Navigation and response generation have separate responsibilities on the platform-managed runtime:

* **Navigation** uses a platform-managed decision path to select among the graph's permitted alternatives.
* **Response generation** produces caller-facing text and tool calls using the voice runtime's supported model configuration.

The active version set supplies the authored workflow, while the selected runtime determines how model settings apply. Validate latency and response quality on that runtime. Model-backed routing and response generation remain probabilistic.

### Situation-Response Adaptation

The voice pipeline adapts across three independent dimensions simultaneously. Each dimension operates on different output channels, so the agent can change *what* it says, *how* it says it, and *whether* it fills silence - all independently and in real time.

#### Conversation → Voice Tone

Navigation picks each reply's tone from the conversation, and the agent mirrors empathy, not the caller's emotion. A frustrated caller can hear a sympathetic voice, not an angry one. An anxious caller can hear a calm voice (reassurance). A caller sharing good news can hear enthusiasm (matching energy).

#### Empathy → Filler Behavior

Filler speech follows the caller's [empathy tier](#empathy-gated-filler-behavior). A turn that calls for support hears a warmer empathy filler rather than a plain receipt, and higher tiers add an intentional pause. Only the service's silent filler style suppresses fillers.

#### Empathy → Response Content

At the Full Empathy tier, the response opens with empathy before any task content. At the Hold Space tier, the whole response is empathy and does not advance the task.

### Response Micro-Behaviors

The voice channel prompt instructs the response model to use communication patterns such as:

* **Speech rhythm mirroring** - Short bursts from the caller produce concise responses, and conversational callers get warmer, flowing replies
* **Emotional name usage** - The caller's name is used at moments of emotional significance, not mechanically
* **Pause injection** - When delivering difficult information, the agent pauses naturally before the key detail
* **Pace inversion** - When the caller is rushing, the agent slows down with longer sentences and gentle transitions
* **Completion inference** - When a caller trails off mid-sentence, the agent acknowledges what they were trying to say

### Voice Timeline

The platform-managed voice timeline uses a cut/navigate/engage cycle within each turn to manage what the caller hears and when. This local cycle is one part of the broader [cut, navigate, affect responsibilities](https://docs.concurrence.com/agent/reasoning-engine#cut-navigate-engage). It is not a universal scheduler for every channel or action.

Fillers, responses, empathy pauses, and tool progress narration are treated as states in one timeline. "Let me check on that" followed by "Her appointment is Thursday" is one conversation trajectory in two parts, not two unrelated audio events.

#### Three Operations

1. **Cut** - A supported timing or session signal creates a new voice-timeline boundary. Signals that do not require a transition leave the current timeline state unchanged.
2. **Navigate** - Given the compressed state and the trajectory of previous states, select the next voice state. Navigation does not directly produce audio. Engagement turns the selected state into an utterance.
3. **Engage** - Prepare an utterance with its own emotion, pace, and timing policy. If the main response is still pending, the voice timeline can move through filler, progress, or hold states without losing the caller's place.

#### Signal-to-State Mapping

Each signal produces a specific voice state:

| Signal                       | Voice State | What Happens                                                            |
| ---------------------------- | ----------- | ----------------------------------------------------------------------- |
| **Caller finished speaking** | Breath      | Brief pause before the agent responds                                   |
| **Navigation complete**      | Transition  | Filler window opens if the response is not ready                        |
| **Tool started**             | Progress    | Tool wait narration on a repeating interval ("Let me check on that...") |
| **Tool finished**            | Response    | Agent delivers the tool result                                          |
| **All audio finished**       | Listen      | Silence deadline starts - check-ins escalate if the caller stays quiet  |
| **Empathy tier shifted**     | Hold        | Intentional silence - the agent pauses to give the caller space         |
| **Caller started speaking**  | Listen      | Pending fillers drain - the caller has the floor                        |
| **Deadline expired**         | Next state  | Self-signal - the actor re-enters cut/navigate/engage                   |

Timing policies are what make this self-driving. A transition state can wait briefly for the real response, play a filler when the response is not ready, or hold silence when empathy calls for it. If the response arrives first, the pending filler is skipped.

#### Per-Utterance Voice Parameters

Each utterance carries its own emotion and speed, set when the utterance is prepared. This keeps filler speech, progress narration, and final responses from overwriting one another when they are close together in time.

#### Voice Timing Configuration

The voice timeline exposes two categories of configuration per service:

**When** - timing policies for pauses, filler windows, progress narration, empathy holds, and cooldowns.

**What** - vocabulary and style:

| Parameter               | What It Controls                                              |
| ----------------------- | ------------------------------------------------------------- |
| **Filler style**        | Phrase, backchannel, or silent (see below)                    |
| **Filler vocabulary**   | Custom backchannel words ("Mm," "Yeah," "Mhm")                |
| **Progress vocabulary** | Custom tool-wait phrases ("One moment...," "Let me check...") |

These settings shape the timeline, while the runtime still applies bounded queues, cooldowns, lifecycle checks, and error handling.

#### Filler Styles

The service schema accepts three filler-style values. `phrase` and `backchannel` both use the normal autonomous filler path, and `silent` turns autonomous filler off:

| Style           | Behavior                                                                              | Best For                                   |
| --------------- | ------------------------------------------------------------------------------------- | ------------------------------------------ |
| **Phrase**      | Advisory. It follows the normal autonomous filler path                                | Reserved for phrase-oriented configuration |
| **Backchannel** | Follows the same normal autonomous filler path                                        | Default non-silent behavior                |
| **Silent**      | Suppresses autonomous navigation backchannels and ordinary tool-wait acknowledgements | Services that prefer no autonomous filler  |

`silent` removes autonomous filler prompt pressure and audio in the normal path. Explicit deterministic progress phrases authored on a context-graph tool binding remain intentional script and can still play. Receipt and working fillers inherit the resolved utterance tone and speed when those values are present. Service filler vocabulary affects navigation backchannels, and tool-wait vocabulary is configured separately.

When navigation is skipped - typically in single-action context graphs where the agent always stays in the same state - the orchestrator starts a short timer (configurable per service). If the response has not produced audio by the time the timer fires, a backchannel sound plays to hold the conversational rhythm. If the response arrives first, the timer is cancelled. Services using the "silent" filler style suppress this timer entirely.

#### Empathy-Gated Filler Behavior

Filler behavior is controlled by the caller's empathy tier. A model-backed read of each caller turn's words classifies the support the turn calls for as Functional (T0), Light Touch (T1), Full Empathy (T2), or Hold Space (T3). A turn whose read does not complete is treated as Functional. Higher tiers add an intentional hold:

* **T0-T1** - Normal filler emission. At T1, the filler type is set to "empathy" (warmer, acknowledging) rather than "receipt" or "working."
* **T2 Full Empathy** - The voice timeline applies an empathy hold and the response prompt must lead with empathy. An empathy filler may still be used.
* **T3 Hold Space** - The agent pauses for a longer hold, then delivers a pure empathy response.

The tier is assigned at the caller's final turn boundary and sent to the voice timeline before navigation completes for that turn.

Empathy fillers are marked separately from receipt and working fillers so the speaker can use slower delivery when no per-utterance speed is already present. Per-utterance tone and speed from the voice timeline take precedence over the speaker's fallback filler adjustments.

#### Principle-Based Filler Generation

Navigation can return a contextual filler using the current action and the conversation. When navigation is skipped or retried, the runtime uses bounded backchannel or retry vocabularies instead. Tool-wait progress uses authored phrases or deterministic templates rather than making another model call on the voice latency path.

Autonomous navigation acknowledgements use cooldowns and a bounded retry count to prevent a burst of overlapping fillers. Tool-progress narration follows its own trigger and interval policy and can continue while a long-running tool remains active. Later attempts reuse the final configured or templated pattern.

#### Tool-Wait Progress Hints

Fillers emitted while a tool is running can be shaped per state and per tool, not just per service. A progress hint describes *the shape of the wait* rather than supplying a phrase list: what kind of work the tool is doing (record lookup, write, external call, computation, multi-step workflow), roughly how long it is expected to take, and how the agent should cover the wait (`auto`, `verbal`, `backchannel`, or `silent`).

The orchestrator turns the hint into utterances using authored phrases, progress class, attempt count, and the active voice style. Later attempts use attempt-aware templates such as an acknowledgement followed by a continuing-status update. A tool-level hint field-merges with the state's channel-level hint, so individual tools need to override only the fields that differ.

For tools with expected latency of four seconds or more, a custom phrase can override the generated progress text. This gives agent engineers precise control over what callers hear during long waits - for example, a tool that queries multiple external systems. The custom phrase is bounded to 30 words and requires a progress class as fallback.

Tool-start signals hand progress narration to the voice timeline, which avoids a second independent tool-wait filler loop. Authored deterministic phrases remain part of that same timeline.

The `gpt_realtime` runtime plays the same progress lines on the same timing, from the same hints, phrases, and service vocabulary, and a `silent` hint keeps it quiet too. Each line is said as written rather than generated. A multilingual agent says each built-in line in English, then Spanish. When a workspace data query times out on an English agent's `gpt_realtime` call and is the only result the turn has to report, the agent says an authored line asking the caller to try again, rather than its own wording.

#### Result Persistence Modes

Tool call specs support a `result_persistence` setting that controls how tool results accumulate in the agent's prompt context:

| Mode                     | Behavior                                                                                              | Best For                                                                                                        |
| ------------------------ | ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| **accumulate** (default) | Every tool result is retained in the prompt history                                                   | Tools called once or a few times per conversation                                                               |
| **override**             | Only the latest result per tool name is retained, and previous results for the same tool are replaced | Polling tools called repeatedly (availability checks, status lookups) where only the most recent result matters |

Both modes retain every call in the conversation journal. Override changes prompt rendering. The [ephemeral mode](https://docs.concurrence.com/agent/context-graphs#tool-result-persistence) is limited to inline text and simulation. A voice session rejects a graph containing an ephemeral binding during initialization.

Override mode prevents context bloat from tools that the agent calls multiple times during a conversation. A scheduling agent that checks availability five times during a complex multi-provider booking only carries the most recent availability snapshot in its context, not all five results stacked up. This keeps the prompt focused and reduces token usage without losing the information the agent actually needs.

### Context Window Management

On the platform-managed runtime, the engine compares the input-token count of the most recent navigation request with the engine's context-window size. This measures the prompt that must fit in the window rather than cumulative usage across earlier calls.

When the current prompt reaches the compaction threshold (80% of that size), the engine ratchets the session into compact history mode and caps retained prompt-history entries. Recent context stays detailed while older state groups are summarized. The policy does not create a separate warning tier or automatically escalate the call to an operator.

### Barge-In Detection

If the caller starts speaking while the agent is talking, the platform decides whether the caller takes the floor. On the platform-managed runtime, one rule decides it, for the greeting and every later reply. The active state's [turn policy](https://docs.concurrence.com/agent/reasoning-engine#per-state-configuration-turnpolicy) must allow barge-in, and the caller's speech must carry recognized words, never sound alone. That keeps breathing, echo, and background noise from interrupting, although background speech and recognition errors can still trigger a barge-in. Speech still in progress also needs a minimum duration and a cooldown after the last interruption. The call-opening notice always plays to the end, and speech over it is answered once it finishes.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-926797a7e862cf84a268ab1a16eb3c482e2d8417%2Fbarge-in-rule.svg?alt=media" alt="On the platform-managed runtime, caller speech cuts the agent off only when the state&#x27;s turn policy allows it and the speech has recognized words; speech still in progress also needs a minimum duration and a cooldown. The call-opening notice always plays to the end."><figcaption><p>On the platform-managed runtime, the same rule covers the greeting and every later reply.</p></figcaption></figure>

When the caller takes the floor, the agent's audio stops, nothing more of that reply plays, and the system returns to listening. Conversation history keeps the interrupted reply only up to the words the caller heard, using word timing from the voice provider, so the next turn reasons from what the caller heard rather than from the full generated reply. This trim is best-effort. Caller speech does not interrupt the agent's briefing on a warm transfer.

[Barge-in](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#barge-in) gives each condition and the service settings for the minimum duration and cooldown. On `gpt_realtime`, the realtime session detects the caller's speech without checking for recognized words. After the [call opening](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#call-opening), a reply is cut off once that speech has lasted `barge_in_min_speech_s` as the session reports it. With the default `server_vad` turn detection, the session reports speech as stopped only after its silence period (`realtime.turn_detection.silence_duration_ms`), so a sound counts for its length plus that period. `barge_in_cooldown_s` does not apply there.

### Response Length Enforcement

Supported TTS paths enforce per-service sentence and word caps while consuming the streamed model response. Once a cap is detected, the runtime stops accepting further response text for speech. Counting occurs on streamed text fragments, so the boundary is a practical output guard rather than a linguistic parser with perfect sentence segmentation.

### Call Completion

When the agent reaches a terminal state in the context graph and decides to end the call, it signals its intent to hang up but does not disconnect immediately. The system waits for signal convergence: the agent's closing utterance must finish playing and any in-flight tool results must resolve before the call disconnects. A transfer initiated during this window retracts the hangup intent.

If the caller starts speaking before the hangup goes out, the hangup waits until they finish, on both voice runtimes. A short closing, such as "thanks, bye", lets the call end as planned with no reply. Anything else keeps the call open, and the agent answers it. Speech with no words in it ends the call at the next silence.

This is designed to let the closing message and pending tool work settle before disconnect. Transport failure or caller hangup can still end the call earlier. Once the caller has described a medical emergency or self-harm, the agent doesn't end the call unless a `gpt_realtime` service is set to end it after the emergency script for a medical emergency. See [Terminal State & Auto-Hangup](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#terminal-state-and-auto-hangup).

## Per-Service Voice Configuration

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-092315c2d562ad7054774e86e3b269089ff56e67%2Fvoice-control-plane-blue.svg?alt=media" alt="Platform-managed voice separates field-specific configuration resolution, active-state TurnPolicy, and best-effort signal-based adaptation. These are distinct scopes rather than a single inheritance chain."><figcaption><p>Platform-managed voice. Provider realtime does not read per-state TurnPolicy.</p></figcaption></figure>

Voice behavior is configurable at the service level, allowing different services within the same workspace to have different voice characteristics. Unset fields do not all fall through one three-level hierarchy. Provider and TTS fields use their field-specific service, agent, and workspace rules, then the platform defaults. Service tuning fields use documented runtime defaults or supported fallbacks. Context Graph `TurnPolicy` controls separate per-state behavior. See [Voice Control Plane](https://docs.concurrence.com/agent/reasoning-engine#voice-control-plane). Per-service settings cover:

* **Filler behavior** - Silent versus normal autonomous filler behavior, navigation vocabulary, tool-progress vocabulary, and backchannel timing
* **Barge-in sensitivity** - Minimum speech duration and cooldown period
* **Response limits** - Maximum sentences and words per response
* **End-of-turn detection** - Eagerness threshold and timeout
* **TTS settings** - Model selection and buffer delay
* **Voice timing** - The "when" and "what" knobs described in [Voice Timing Configuration](#voice-timing-configuration) above
* **Call forwarding** - A service forwarding configuration enables transfers and explicitly selects warm or cold transfer. A fixed destination uses the configured number. A dynamic destination lets the agent choose only among the service's approved destinations, and any other number is refused without dialing. Forwarding destinations do not cascade from workspace settings, and a `forward_call` transfer that can't connect returns the caller to the agent. See [Call Forwarding](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#call-forwarding) and [Warm Hand-Off](https://docs.concurrence.com/operations-and-safety/operators#warm-hand-off).

These settings are managed through the Platform API and the Agent Forge CLI.

## After the Call

**Transcript review.** Review the live transcript against available recordings when exact wording matters. The platform does not re-transcribe a call after it ends or score transcript accuracy, so a client should not wait for another transcript. Live recognition and provider-supplied word timings are supported on their applicable paths.

**Quality analysis.** Recording-based Call Trace Analysis and Voice Judge have separate eligibility and processing paths. The `call_analysis` field and `post_call_analysis_enabled` setting do not mean every call is analyzed. Inspect the available result and its source before relying on it. See [Optional Post-Call Analysis](https://docs.concurrence.com/intelligence-and-analytics/intelligence/call-intelligence#optional-post-call-analysis).

**Terminal intelligence.** At call end, the primary voice runtime can derive a summary from observed session state: latency, conversation shape, tool performance, and operator involvement. A rule-based 0-100 quality score summarizes operational friction from the evidence available on that runtime path. It is not a clinical score or a complete measure of outcome quality.

The scoring dimensions, intelligence summaries, and the APIs that expose them are covered in the Call Intelligence section:

{% content-ref url="/pages/mdQhKn4ilaVQsyr2OUGh" %}
[Intelligence Overview](https://docs.concurrence.com/intelligence-and-analytics/intelligence)
{% endcontent-ref %}


# Call Recordings

Workspace-scoped caller, agent, and merged stereo recordings with time-limited download links and best-effort availability.

When call recording is enabled, the voice runtime can retain caller and agent audio as separate WAV files and create a merged stereo WAV during finalization. Platform-managed and `gpt_realtime` calls, phone and Playground, are recorded the same way. Playback uses those stored artifacts.

Recording finalization is best-effort. A call can complete successfully even when a recording is missing or incomplete. A successful request for download links does not prove that the files exist. The client must handle the result of fetching each link.

## Channels and Timing

| Channel    | Contents                               | Playback behavior                                   |
| ---------- | -------------------------------------- | --------------------------------------------------- |
| **Caller** | Inbound caller audio                   | Stored as a mono WAV                                |
| **Agent**  | Spoken agent audio                     | Stored as a mono WAV                                |
| **Stereo** | Caller on the left, agent on the right | Created during finalization and stored for playback |

Voice recordings store the mono channels as 8 kHz mu-law WAV and the merged stereo file as decoded PCM WAV. Each file carries its codec and sample rate in the WAV header. Clients should read that header rather than assuming that every WAV contains PCM audio.

The runtime aligns outbound audio with the inbound timeline during capture. This shared timing origin lets playback views align transcripts, agent speech, tool activity, and other call events without treating each channel as an independent recording.

A voice recording begins after the caller has heard the AI and recording notice. The notice is therefore not in the recording, and the recording is shorter than the call. If you do not hear the notice when you play a recording back, that is expected. See [Call Opening](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#call-opening) for the wording and when it plays.

## Playback and Review

The Platform API authenticates the requester, verifies workspace access, and returns time-limited links for the caller, agent, and stereo files in that workspace. It does not check file existence before issuing those links. A missing artifact fails when the link is fetched.

Treat download links as temporary access to sensitive audio: share them only with authorized recipients and request fresh links after expiry. The recording interface does not provide separate metadata, waveform, or stereo-transcoding endpoints. A playback client derives file metadata and waveforms from the downloaded audio.

## Availability and Retention

Recording availability depends on deployment configuration and successful finalization. Some calls lack the merged stereo artifact even when individual channels exist. Retention requirements should be configured and validated as part of the workspace's data-handling policy. Stored retention settings are advisory and do not by themselves enforce deletion. See [Retention Policies](https://docs.concurrence.com/operations-and-safety/compliance#retention-policies).

{% hint style="info" %}
For terminal intelligence and recording-based review, see [After the Call](https://docs.concurrence.com/channels/voice/audio-pipeline#after-the-call). For timeline review that aligns speech with agent actions, tool calls, and system events, see [Call Playback Timeline](https://docs.concurrence.com/intelligence-and-analytics/intelligence/call-intelligence#call-playback-timeline).
{% endhint %}


# Text Sessions

Durable text conversations over the web API, SMS, iMessage, WhatsApp, and email, with channel-specific delivery behavior.

Text sessions run the agent's core reasoning and Context Graph behavior without the live audio pipeline. The bound service determines the agent configuration and eligible tools; each channel adds its own identity, delivery, timing, and operator controls.

The public web integration uses the Conversations REST API. A turn can return one JSON response or stream typed Server-Sent Events (SSE). For interactive chat, the [Sessions WebSocket](https://docs.concurrence.com/developer-guide/platform-api/platform-api/sessions) keeps one connection open across turns and streams each reply as JSON frames. Both paths send keepalives while a turn is quiet, so a client must skip frames it does not use.

## Durable Conversation Model

The platform persists text turns against a conversation ID. Conversation detail exposes the durable history, current status, and channel attribution needed to resume or inspect a thread. Channel runtimes can keep short-lived actor state for active work, but an idle actor does not erase the durable conversation.

The public conversation resource separates two concepts:

* **Status** records the stored processing state, such as active, completed, closed, paused, or failed where applicable.
* **Lifecycle** is a read-time view of recency: `active`, `dormant`, or `closed`. A dormant conversation is idle, not deleted.

Do not treat lifecycle as a guarantee that an actor is resident in memory. Resume behavior depends on the channel, conversation status, provider thread key, and current service configuration.

### Phone-Keyed Threads

SMS and iMessage resolve inbound messages through phone-based provider thread keys. Managed WhatsApp uses a business-scoped recipient identifier and use case instead of assuming a phone number. While a non-terminal conversation remains available for that key, later messages resume it and retain its durable turn history.

A new thread starts after terminal Context Graph completion or an explicit lifecycle change. For SMS and iMessage, outbound creation also accepts `force_new: true`. In that case, the platform closes the active conversation for the same recipient and use case before dispatching a new opener. Outbound WhatsApp creation is not supported by this conversation-start path.

There is no patient-facing reset keyword. If an application needs a deterministic reset, retain the conversation ID and close it through the lifecycle API before the next inbound message.

{% hint style="info" %}
Endpoint details and examples are in the [Conversations API guide](https://docs.concurrence.com/developer-guide/platform-api/conversations).
{% endhint %}

### Configuration Changes

Published service configuration and version-set bindings determine what a conversation loads. An already active channel actor can retain configuration it loaded earlier, so a newly published version is not guaranteed to affect the very next inbound message.

For a controlled rollout, pin the intended versions in the service's `release` [version set](https://docs.concurrence.com/platform-overview/deployment-model#version-sets). When a structural change is incompatible with an in-progress thread, close the conversation and start a new one rather than relying on a mid-thread reload.

## Supported Text Paths

| Path              | Continuity                                                                        | Response behavior                                                 |
| ----------------- | --------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| **Web API**       | A caller creates a web conversation and sends turns by conversation ID            | Synchronous JSON or request-scoped SSE                            |
| **SMS**           | Provider thread resolves to a durable conversation                                | Asynchronous provider delivery                                    |
| **iMessage**      | Provider thread resolves to a durable conversation                                | Asynchronous provider delivery with supported media               |
| **WhatsApp text** | Business-scoped recipient identity and use case resolve to a durable conversation | Asynchronous managed text reply within the permitted reply window |
| **Email**         | Message headers and stored references preserve email threading                    | Asynchronous email reply delivery                                 |

WhatsApp voice notes use a separate audio-turn path and separate session state. They do not merge with managed WhatsApp conversation history.

## Web Conversations: REST and SSE

A web client first creates a conversation for a service, then sends one turn at a time to that conversation.

### Synchronous JSON

The standard turn request returns the user's input, agent output, conversation snapshot, and optional tool-call details in one response. Serialize turns per conversation: do not submit another user turn while the current one is still in flight.

### Server-Sent Events

For incremental output, use the dedicated streaming turn endpoint or request `Accept: text/event-stream` on the standard turn endpoint. The stream can emit:

* `token`, a piece of the reply as it is generated, shown as a preview
* `tool_call_started` and `tool_call_completed`, when the request asks for tool calls
* `artifact`, a typed result from an integration set up to return one
* `thinking`
* `message`, the authoritative reply, which replaces the preview
* `state_transition`, one per Context Graph hop the turn took
* `state`, the Context Graph state after the turn
* `done` or `error`, which ends the turn

These are request-scoped events, not a persistent bidirectional session. A client should handle an `error` event and an interrupted HTTP connection explicitly, and skip events it does not use. See [Streaming Behavior](https://docs.concurrence.com/developer-guide/platform-api/conversations#streaming-behavior) for the order and the error codes.

### Background Tool Completion

A synchronous response can return `background_pending: true` when a tool outlives the blocking window. In that case, the returned output is an acknowledgement, not the final answer.

Clients have two supported controls:

1. Set `wait_for_final: true` on the message turn to wait inline for the answers this turn's background work produces. [Background (deferred) tool results](https://docs.concurrence.com/developer-guide/platform-api/conversations#background-deferred-tool-results) gives the time budget and the client timeout to set.
2. If the response still reports pending work, send a no-message request with `poll=true` until the completion is returned, and [acknowledge](https://docs.concurrence.com/developer-guide/platform-api/conversations#acknowledge-a-polled-answer) each answer a poll returns. Do not combine polling with SSE or a user message, and avoid polling more often than the documented interval.

Sending the next user turn can also drain completed background work, but applications that need the result before accepting more input should poll explicitly. An open WebSocket is not part of this completion protocol.

## Asynchronous Channel Delivery

SMS, iMessage, WhatsApp, and email use non-live channel policies. When supported background work is handed off, the channel runtime suppresses an intermediate filler response and attempts to re-drive the conversation when the result completes. If the background work is interrupted before it reports a result, the conversation still gets a follow-up turn, and the agent is told that whether the work finished is unknown, so the person hears back instead of waiting until they write again.

That behavior does not make external delivery infallible. Provider rejection, opt-out policy, invalid addressing, or exhausted retries can still prevent the final message from reaching the recipient. Use the channel's delivery status and recovery controls rather than treating agent completion as proof of delivery.

The conversation history follows what the recipient may have received. A reply the provider accepted, or one whose send result is unknown, stays in the history. A reply the channel refused is left out, while that turn's tool calls stay. See [Messaging History](https://docs.concurrence.com/developer-guide/platform-api/conversations/channels#messaging-history).

### Message Coalescing

SMS, iMessage, and WhatsApp can coalesce messages that accumulate while a turn is already processing. Up to ten queued message signals can become the next agent turn. This prevents several rapid fragments from producing several overlapping replies.

Web API and email turns are not coalesced. Non-message signals remain separate.

## Channel Notes

### SMS

SMS supports inbound durable threads and outbound openers through provisioned use cases. Sender selection, opt-out enforcement, media support, and delivery status belong to the SMS channel contract.

{% content-ref url="/pages/06YznjcZmK794tiVzM7q" %}
[SMS](https://docs.concurrence.com/channels/sms)
{% endcontent-ref %}

### iMessage

iMessage uses a managed channel setup and durable phone-keyed conversations. The public lifecycle API supports outbound openers and explicit switching between SMS and iMessage.

{% content-ref url="/pages/c1iRKBkz9pUpCgeAnQTO" %}
[iMessage](https://docs.concurrence.com/channels/imessage)
{% endcontent-ref %}

### WhatsApp

Managed WhatsApp routes inbound messages into a durable conversation and sends text replies asynchronously. The separate service voice-note API returns synthesized audio to its caller and has independent continuity.

{% content-ref url="/pages/SS3ZnjwCmfLJCyDs8hcQ" %}
[WhatsApp](https://docs.concurrence.com/channels/whatsapp)
{% endcontent-ref %}

### Email

Email uses message headers and stored references to preserve reply threading. Its delivery, suppression, attachment, and recovery behavior is documented separately.

{% content-ref url="/pages/uirHtW6W7wkJL0eKBdYK" %}
[Email](https://docs.concurrence.com/channels/email)
{% endcontent-ref %}

## Differences from Voice

| Text behavior                                     | Operational consequence                                        |
| ------------------------------------------------- | -------------------------------------------------------------- |
| No real-time audio pipeline                       | No barge-in or filler speech                                   |
| Request- or message-driven turns                  | Delivery and response timing depend on the channel             |
| Durable asynchronous threads                      | A later message can resume a non-terminal conversation         |
| Authored-turn takeover on eligible non-voice runs | Operators stage a reply instead of joining an audio conference |

Text channels can use language-level safety and sentiment signals where configured, but they do not have the vocal evidence available to a live phone call. Every text reply passes a [reply check](https://docs.concurrence.com/operations-and-safety/runtime-safety#control-map) that only logs what it finds: the reply is sent as written.

## Playground Testing

Open **Evaluate > Playground** in the Developer Console. The playground has two modes:

* **Voice** for eligible voice services
* **Text** for eligible voice or text services

Text mode creates a durable web conversation and streams each turn over SSE. It can show optional Context Graph and Timeline panels. It is not a separate REST, realtime, or WebSocket mode. See [Playground and Interactive Testing](https://docs.concurrence.com/testing/testing/playground).


# SMS

SMS channel for outbound and inbound text messaging through provisioned phone numbers.

The SMS channel lets agents send and receive text messages through provisioned phone numbers. Each SMS use case has a managed sender pool, registration, consent checks, and delivery tracking. Managed infrastructure also supports MMS when the sender pool has the required capability. This does not mean every agent conversation can generate or interpret every attachment type.

Use this channel with your own application through the [standalone Channel Manager API](https://docs.concurrence.com/developer-guide/reference-guides/integrate-channel-manager), or bind it to a Concurrence workspace service that runs the agent. Channel Manager uses setup-scoped credentials and does not require a workspace. The conversation lifecycle and channel-switching behavior below apply to workspace-managed agents. Standalone applications own their conversation state and reply routing.

## Provisioning

SMS provisioning is a regulated, operator-managed process rather than a self-service Platform API or Developer Console flow. It includes the applicable carrier registration, messaging use case, and phone-number configuration. Timing depends on carrier review and number readiness.

After provisioning, Concurrence supplies the use-case identifier. For a workspace-managed agent, the Platform API binds that SMS use case to a service in the workspace. It does not create the upstream SMS setup, campaign, messaging service, or number assignment for the workspace.

To request SMS provisioning for your workspace, contact your Concurrence account team.

### How Use Cases Are Backed

Each provisioned SMS use case is backed by managed messaging infrastructure and an assigned phone-number pool. Sender selection occurs within that use case. Callers starting an outbound conversation supply the use case and recipient, not a `From` number.

## Inbound SMS

Customers can text a configured phone number to start a conversation with the agent. The platform routes the message to the bound service, resolves authorized context when available, and runs the agent's reasoning engine. Messages from the same caller on the same use case are serialized onto the current non-terminal durable conversation. Terminal Context Graph completion, closing a known conversation ID, a use-case rebind, or outbound creation with `force_new: true` starts a fresh thread. See [Phone-Keyed Threads](https://docs.concurrence.com/channels/text-sessions#phone-keyed-threads).

Once operator provisioning is complete, the workspace application does not configure a provider webhook for each conversation. The managed channel validates inbound delivery, deduplicates provider retries, resolves the destination use case, and records message metadata for processing and analytics.

When a reply depends on supported background work, the asynchronous channel policy suppresses the intermediate acknowledgement and attempts to re-drive the final reply. Provider acceptance and delivery remain separate. Inspect delivery status and recovery evidence rather than assuming the recipient received it. See [Long-Running Tools and Reply Delivery](https://docs.concurrence.com/channels/email#long-running-tools-and-reply-delivery).

Signature validation ensures that only authentic message deliveries are accepted. Duplicate deliveries (from network retries) are silently acknowledged without creating duplicate records.

## Outbound SMS

The platform supports agent-initiated outbound SMS without waiting for an inbound text. The bound service generates the opening turn using its published configuration and the authorized context available at execution time. A recipient reply can continue the resulting durable conversation.

Outbound SMS conversations are started through the conversation lifecycle API by specifying SMS as the channel, a recipient phone number in E.164 format, and a use case that determines the sender. The sender (FROM number) is resolved from the use case configuration - it is never supplied by the caller. See [Outbound](https://docs.concurrence.com/channels/outbound) for details on the channel-generic lifecycle.

Outbound SMS can support reminders and follow-up workflows when the workspace has a provisioned use case and the application supplies the required routing inputs. Contact the Concurrence team to confirm availability and onboarding for your workspace.

{% hint style="info" %}
Outbound text conversations support entity-based resolution. When an entity ID is supplied, the runtime can load authorized context available for that entity before the first message rather than relying only on phone-number matching. Missing data, source permissions, and projection lag still apply.
{% endhint %}

## Channel Switching

An active conversation on another channel (such as iMessage) can be switched to SMS, preserving the full conversation history. Each turn records which channel it occurred on, so the history is self-describing across channel changes. See [Outbound](https://docs.concurrence.com/channels/outbound#switching-between-sms-and-imessage) for the switch lifecycle.

## Consent and Registration

Carrier registration, recipient consent, and message content are separate launch requirements. The customer supplies the consent process and evidence for the intended audience and purpose; Concurrence manages the channel registration and configured send controls. A phone number in the world model is contact information, not permission to send outreach.

### Preparing a Campaign

Concurrence reviews the sending business, message purpose, consent flow, sample messages, and support details before submitting the registration. The deployed workflow must match that submission, including whether messages recur and whether they contain links or phone numbers. A successful text in a demo does not establish that a production campaign is ready.

The launch review establishes:

* **Who is sending and why.** Identify the brand the recipient consented to hear from and the full scope of messages. Adding health coaching to a scheduling program, for example, requires reviewing whether the existing consent and registration cover the new purpose.
* **Where consent is given.** Use a clearly documented SMS consent step. A recorded verbal flow can be used when its script and evidence are included in the approved campaign. A written flow should use an explicit, optional SMS choice, separate from consent to other channels.
* **What the recipient is told.** Align the consent language, first message, sample messages, terms, privacy policy, sender identity, expected frequency, charges disclosure, and STOP/HELP instructions.
* **How evidence is retained.** Assign responsibility for retaining the consent record and the wording presented to that recipient. For verbal consent, verify that the recording or other approved evidence actually exists and remains available.
* **How customer systems stay consistent.** Agree how opt-outs reach the customer's own contact and campaign records. Concurrence's channel suppression does not automatically update every external system.

Existing patient relationships, a supplied contact list, or permission collected by another organization do not by themselves establish campaign permission. A program sending on behalf of another organization needs review of that brand's consent evidence, authorization, and registration structure. Do not send an unsolicited first SMS merely to ask for consent or rely on STOP as the consent mechanism.

### The Managed Send Gate

For US long-code and US/Canada toll-free sender pools, the managed channel requires a recorded opt-in message for each recipient and use case before ordinary messages can be sent. That message uses the approved registration's confirmation copy. Its record is created after the provider accepts the send. It is not proof that the recipient received it or that the customer collected valid consent. Repeating the opt-in operation does not remove an existing suppression.

The same in-platform opt-in gate does not cover Canadian long-code or other international sender pools. Confirm the applicable consent and provider requirements during provisioning. The absence of this particular gate does not authorize messaging.

### Registered Content

For registered US long-code and US/Canada toll-free pools, a model-based check compares an ordinary outbound text body against every registration governing the pool. Off-purpose content is blocked. If the check fails or cannot produce a usable decision, the send is blocked rather than bypassing the check.

The check reads up to 20 recent messages from the last 24 hours of the same use case and recipient thread, in both directions, as context only. This helps a short, responsive reply such as "Great, see you at 3pm." be judged against the conversation it answers. The outbound message must still fit the registration on its own. Earlier messages are not re-judged and do not make off-purpose content acceptable. With no recent exchange, the message is judged alone.

This check evaluates the text body, including the registered purpose and applicable content restrictions. It does not inspect media-only MMS content and does not establish legal compliance or clinical accuracy. Consent, suppression, and sender-capability checks still apply to those sends.

## Opt-Out and Re-Subscription

An opt-out suppresses ordinary outbound SMS across the recipient's **managed business setup**, which can contain multiple use cases and sending numbers. It is broader than one conversation or campaign, but is not a universal opt-out across unrelated businesses or other channels. Agents and campaigns cannot bypass it by starting another conversation or choosing another number within that setup.

| Sender path                               | Recognized handling                                                                                                                                                                                                                                                 |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **US long-code with a verified campaign** | Registered opt-out keywords include `STOP`, `STOPALL`, `UNSUBSCRIBE`, `CANCEL`, `END`, and `QUIT`. Registered help keywords include `HELP`. Matching trims surrounding whitespace and ignores case. These requests are handled by the channel instead of the agent. |
| **US/Canada toll-free keyword path**      | `STOP` records both a line-specific opt-out and business-setup suppression. `START` or `UNSTOP` clears the line-specific record only. These keywords do not become agent turns.                                                                                     |

The campaign keyword path attempts the registered confirmation on each recognized opt-out request and the registered help reply on a help request. Confirmation delivery can fail independently, and a confirmation is not a guarantee that future messages are permitted. Do not assume the toll-free path sends the same confirmation or supports every campaign keyword.

**Texting `START` does not automatically restore Concurrence delivery.** A caller with Channel Manager's `sms:consent:write` permission must separately clear the business-setup suppression after reviewing renewed consent and recording a reason. For a live toll-free opt-out, the recipient must first text `START` or `UNSTOP` to the affected line. The API cannot override that prerequisite.

Opt-out history is retained after reversal. The [Channel Manager recipient APIs](https://docs.concurrence.com/developer-guide/platform-api/conversations/channel-manager#sms-recipient-opt-in-and-opt-out) let authorized clients send the registered opt-in message, read setup-wide opt-outs, and clear a suppression. These operations require separate Channel Manager consent grants. A workspace API key alone does not authorize them.

## Phone Number Assignment

SMS use cases require phone numbers with SMS capability, and the registration requirement depends on the number type and country. US/Canada toll-free numbers require approved toll-free verification. US local and national long-code numbers require an approved messaging campaign. Registration makes a sender eligible for assignment. Recipient consent, suppression, content checks, and provider delivery rules still apply to each message.

Unlike voice channels - where a single phone number can serve different voice use cases on different channels (one for inbound voice and one for outbound voice) - SMS assignment is exclusive. A phone number can only be assigned to one SMS use case at a time. This mirrors the underlying telephony constraint that a phone number belongs to exactly one messaging service.

## Channel Separation

SMS and voice operate on separate channel bindings. A phone number can be assigned to both a voice use case and an SMS use case simultaneously - the two channels do not conflict. The platform tracks voice and SMS assignments independently, so assigning a number to an SMS use case does not affect any existing voice assignments on that number, and vice versa.

## Lifecycle

The managed SMS lifecycle has two routing choices:

1. **Provision** - A Concurrence operator creates the required channel resources and completes carrier registration.
2. **Assign numbers** - Eligible SMS-capable numbers join the use case after the applicable verification or campaign approval.
3. **Configure routing** - A standalone application supplies its signed-event receiver. A workspace-managed agent uses a service binding through the Platform API.
4. **Send and receive** - Messages use the managed number pool. Your application or the bound service owns the conversation.
5. **Retire** - An operator unassigns numbers and tears down upstream resources when the use case is no longer needed.

{% content-ref url="/pages/F9G0lrxZA31mW1pawkgs" %}
[Text Sessions](https://docs.concurrence.com/channels/text-sessions)
{% endcontent-ref %}


# WhatsApp

Managed WhatsApp conversations with business-scoped identity, asynchronous replies, and a bounded customer-service window.

A provisioned WhatsApp use case can route inbound messages to a bound Concurrence service and deliver the agent's text reply through the managed channel. Concurrence handles provider authentication, message records, routing, and delivery-status updates. Confirm business-account provisioning and service binding with the Concurrence team before launch.

The managed channel and the separate service voice-note API have different delivery and continuity models:

| Path                       | Input                                                                  | Output                                                       | Continuity                                                                    |
| -------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------------- |
| **Managed messaging**      | Provider-authenticated inbound content                                 | Asynchronous text reply through the business use case        | Durable conversation keyed by business-scoped recipient identity and use case |
| **Service voice-note API** | Customer phone and supported recorded audio supplied by an integration | Synthesized audio or no-content response to that integration | Separate audio-turn session                                                   |

Use the managed channel for WhatsApp messaging and the [Conversations API](https://docs.concurrence.com/developer-guide/platform-api/conversations) for application-hosted text interactions.

## Managed Text Conversations

The channel uses a business-scoped user identifier for recipient addressing. A phone number may be available as metadata, but it is not required for every inbound identity and is not interchangeable with the messaging identifier.

For the same recipient and use case, later messages can resume the current non-terminal durable conversation. Processing is serialized, and queued message fragments can be coalesced into a later turn. The service supplies the published agent configuration, Context Graph, and eligible tools.

Inbound processing can retain supported media and reactions as channel records. A reaction without message or media content does not drive an agent turn. Retaining an attachment is not proof that the agent transcribed or interpreted it. The managed agent reply path currently sends text. Validate any media workflow separately.

After an inbound message is committed, the channel attempts to mark it as read. This receipt does not prove that the agent has processed the message, completed the task, or delivered a reply.

## Reply Window and Delivery

Managed free-form sends require an inbound message from the recipient to that use case within the preceding **23 hours**. This is Concurrence's send boundary. A long-running task can finish after the reply window has closed, in which case the agent turn can remain recorded even though the reply cannot be sent.

Template registration and status tracking exist in managed operations, but the current send path does not send templates. An approved template therefore does not enable this path to initiate an out-of-window conversation.

When supported background work is running, the channel suppresses an intermediate filler and attempts to deliver the final reply when the work completes. Window checks, provider rejection, and channel failures still apply. Check delivery evidence separately from tool or agent completion.

The public conversation-start and channel-switch operations do not create outbound WhatsApp threads or switch another channel into WhatsApp. Contact Concurrence to confirm the supported outreach design for your deployment.

## Voice-Note Turns

The service voice-note API accepts recorded audio, transcribes it, runs the reasoning path, and returns synthesized audio when the agent responds. The integration calling that API is responsible for delivering the returned audio to its destination.

Audio-turn sessions use workspace, service, and customer phone for continuity and serialize turns for the same speaker. Their state is separate from managed WhatsApp conversations. They do not provide the continuous media stream, barge-in, live takeover, or acoustic timeline of a phone call.

There is no public per-number response-modality switch that automatically joins these paths. Use a live [phone call](https://docs.concurrence.com/channels/voice) when the workflow needs real-time audio controls.

## Operational Boundaries

* Complete business-account provisioning and bind the use case to an eligible service.
* Preserve business-scoped recipient identifiers instead of assuming phone-based identity.
* Distinguish inbound receipt, agent processing, provider acceptance, and recipient delivery.
* Account for the reply window when scheduling background work.
* Confirm channel-specific consent and data-handling requirements for the intended content.
* Treat managed messaging and the service voice-note API as separate sessions and integrations.

{% content-ref url="/pages/F9G0lrxZA31mW1pawkgs" %}
[Text Sessions](https://docs.concurrence.com/channels/text-sessions)
{% endcontent-ref %}


# iMessage

iMessage channel for patient communication through Apple's messaging platform.

The platform supports iMessage as a managed messaging channel for patient communication through Apple's native messaging experience. The channel records delivery status and supports text plus bounded media payloads on compatible devices.

Use this channel with your own application through the [standalone Channel Manager API](https://docs.concurrence.com/developer-guide/reference-guides/integrate-channel-manager), or bind it to a Concurrence workspace service that runs the agent. Channel Manager uses setup-scoped credentials and does not require a workspace. The conversation lifecycle and channel-switching behavior below apply to workspace-managed agents. Standalone applications own their conversation state and reply routing.

## Provisioning

Like SMS, iMessage provisioning is operator managed rather than self-service through the Platform API or Developer Console. It includes business identity, provider, and phone-line configuration. Timing depends on provider and carrier readiness. Contact your Concurrence account team to request access.

For a workspace-managed agent, the Platform API can inspect service bindings and bind an eligible iMessage use case to a service. Provisioned use-case inventory belongs to the separate Channel Manager API. The Platform API does not create or delete the upstream provider setup or phone line for the workspace.

### What Happens During Provisioning

iMessage is provisioned with a managed business identity and phone line. During setup, the Concurrence team:

1. **Registers the managed setup** - Associates the customer's business identity with the channel provider.
2. **Assigns a phone line** - Uses an available number or waits for asynchronous line placement.
3. **Configures routing** - Connects a standalone application's signed-event receiver, or makes the use case available for binding to a workspace service.

### Phone Line Lifecycle

Each setup includes one or more phone lines. A phone line is in one of two states:

* **Pending** - The line has been requested but a phone number has not yet been placed. The setup tracks the outstanding request.
* **Assigned** - The line has a phone number in E.164 format and is ready for messaging.

The transition from pending to assigned is asynchronous. Do not send until the managed setup reports an assigned line.

## Inbound iMessage

Inbound iMessage conversations follow the same durable processing model as SMS: messages from the same caller on the same use case are serialized onto the current non-terminal conversation. Replies can include supported text or bounded media payloads.

When a reply depends on supported background work, the asynchronous channel policy suppresses the intermediate acknowledgement and attempts to re-drive the final reply. Provider acceptance and delivery remain separate. Inspect status rather than assuming the recipient received it. See [Long-Running Tools and Reply Delivery](https://docs.concurrence.com/channels/email#long-running-tools-and-reply-delivery).

## Starting a Fresh Conversation

Because iMessage conversations are durable, a caller who messages the same number later can resume the current non-terminal thread - there is no reset keyword. If your application has the conversation ID, it can close that conversation through the lifecycle API. For a new outbound opener, create the iMessage conversation with `force_new: true`. The platform closes the active thread for the same recipient and use case before creating the new one. See [Phone-Keyed Threads](https://docs.concurrence.com/channels/text-sessions#phone-keyed-threads).

## Outbound and Channel Switching

iMessage conversations can be started proactively (outbound) through the conversation lifecycle API by specifying iMessage as the channel, a recipient phone number in E.164 format, and a use case that determines the sender pool. The sender is resolved from the use case configuration - it is never supplied by the caller. See [Outbound](https://docs.concurrence.com/channels/outbound) for details on the channel-generic lifecycle.

An active conversation on another channel (such as SMS) can be switched to iMessage, preserving the full conversation history. Each turn records which channel it occurred on, so the history is self-describing across channel changes.

## First-Reply Limits and Opt-Out

The sender pool prefers an available line the recipient has already replied to, then the line most recently used for that recipient. If neither exists, it selects another available line. Your application does not choose a different line to avoid restrictions.

Before the recipient replies to the selected line, outbound messages are limited to 300 characters, no media, and no links, phone numbers, or email addresses. At most six messages recorded as sent or delivered may precede that first reply. A rejected attempt does not establish delivery. Check the returned error and wait for the recipient’s reply rather than rotating senders or repeating the same blocked request.

Supported opt-out keywords, including `STOP`, suppress sends to that recipient across the managed setup. `START` clears this iMessage suppression. This is a different contract from SMS’s separate line and setup controls. A successful send is still separate from delivery, and provider routing can fall back to SMS. Confirm that fallback is acceptable for the workflow.

## Security and Management Boundary

Channel selection must account for the intended content and contractual coverage. Do not infer that iMessage is covered for PHI because the Concurrence workspace is configured for healthcare or because the device displays an encrypted conversation. Confirm the permitted use with the Concurrence team before launch.

For sensitive collection, a workflow can send a minimal notification with a link to a [Surface](https://docs.concurrence.com/channels/surfaces) once the recipient has replied and the link is permitted, where the patient supplies the required information in a browser. The message body, link, form, access policy, and destination still need to match the deployment's data-handling requirements. A form link does not make PHI already included in the message safe to send.

Provider credentials, line placement, and inbound provider authentication remain inside managed channel infrastructure. Standalone applications use setup-scoped Channel Manager credentials and their own reply receiver. Workspace applications use Platform credentials and the public conversation lifecycle. They do not receive provider secrets. After provisioning, bind the provisioned use case to a service through the Platform API for workspace routing, and contact Concurrence for upstream setup changes.

{% content-ref url="/pages/F9G0lrxZA31mW1pawkgs" %}
[Text Sessions](https://docs.concurrence.com/channels/text-sessions)
{% endcontent-ref %}


# Email

Email channel with domain verification, inbound reply handling, thread continuity, and transactional and marketing use cases.

Concurrence provisions email use cases on a verified sending domain. Channel Manager sends messages, receives eligible replies, and records delivery events. Your application can use it directly, or a Concurrence workspace service can manage the agent conversation.

With the [standalone Channel Manager API](https://docs.concurrence.com/developer-guide/reference-guides/integrate-channel-manager), your application owns conversation routing and reply handling. A workspace and service binding are required only for the workspace-managed agent path.

## Sending Domain Setup

An email use case belongs to an email setup with a verified sending domain. That setup is the boundary for reputation and suppression management. A customer can have several setups, including separate phone and email setups. A setup is not a workspace.

Sending-domain setup is provisioned by the Concurrence team - it is not self-serve. The team registers the domain identity, provides the DNS records to publish at your DNS provider, and confirms verification against live DNS. A single domain identity serves both outbound sending and inbound receiving. Sending and receiving are verified separately: the sending records must be verified before the domain can send or back any email use case, while the inbound MX record is needed only for use cases that receive email. Contact the Concurrence team to provision email.

Each email setup includes:

* **Domain identity** - The domain used for sending (e.g., `notifications.example.com`)
* **DNS records** - Records that must be added to the domain's DNS configuration for verification: DKIM signing keys, SPF records, DMARC policies, and inbound MX routing
* **Verification status** - Two separate results: sending verification (DKIM, MAIL FROM, and DMARC) and inbound MX verification

## Use Cases and Sender Identities

Email is organized around use cases. A use case names one email sender identity - a sender address backed by its setup's verified sending domain. Each use case specifies:

* **Sender email address** - The `From` address for messages sent through this use case
* **Email type** - Either `transactional` (triggered by user actions, like appointment confirmations) or `marketing` (bulk or promotional messages). The type determines sending rules and compliance handling.
* **Entity name and use case name** - Labels that identify the purpose of the use case for reporting and management

Each use case also records an explicit decision on two inbox posture settings:

* **Unsubscribable** - whether sends carry one-click unsubscribe headers and honor per-use-case opt-out lists. Marketing email must be unsubscribable. Transactional use cases may opt out for must-send flows such as password resets.
* **Inbound mode** (`inbound_mode`) - what inbound email the sender address accepts:

  * `send_only` - no inbound email is accepted, including replies to messages the use case sent. This mode does not need the inbound MX record, so it can be used before or without inbound DNS.
  * `replies_only` - only authenticated replies to the use case's own outbound messages are accepted, and first-contact email is dropped.
  * `all_inbound` - replies and first-contact email to the sender address are accepted, after authentication and spam checks.

  Any mode other than `send_only` requires the setup's inbound MX record to be verified, both when the use case is created and when an existing `send_only` use case is changed to receive. Otherwise the request returns `409`.

For a workspace-managed agent, binding a use case to a service enables email routing for that workspace. Inbound traffic resolves to the bound service, and outbound dispatch from the service uses that use case. Rebinding replaces the service binding, and unbinding removes that workspace routing. Standalone Channel Manager applications instead receive callbacks at their configured receiver and own the conversation lifecycle.

Concurrence provisions email use cases. The Platform API binds, inspects, and unbinds a use case's service binding. See [Use Cases & Bindings](https://docs.concurrence.com/developer-guide/platform-api/workspaces/use-cases).

{% hint style="info" %}
Email sending, reads, and delivery events are available through the [Channel Manager API](https://docs.concurrence.com/developer-guide/platform-api/conversations/channel-manager#send-and-reconcile-email).
{% endhint %}

## Inbound Email

When a domain's MX records are verified and the use case's `inbound_mode` accepts it, the platform receives and processes inbound email. A `send_only` use case drops all inbound email. A matched reply carries a reference to its parent outbound email. An accepted first-contact message in `all_inbound` mode has no parent reference. The receiving application decides which workflow to start.

Reply resolution matches the inbound `In-Reply-To` header to the parent outbound, and the reply's authenticated `From` address must match the address that outbound was sent to. The reference belongs to the same email setup and use case. A standalone application maps that reference to its own workflow, and a workspace-managed agent uses its service's conversation routing.

### Long-Running Tools and Reply Delivery

This behavior applies when a Concurrence workspace service runs the agent. A standalone Channel Manager application schedules its own work and sends its own replies.

Some agent replies depend on a tool that takes longer than the synchronous turn window. Voice can provide a live acknowledgement. A web API client instead follows the REST contract: bounded `wait_for_final`, `background_pending`, and explicit polling when work remains.

Email is asynchronous, so its channel policy suppresses an intermediate acknowledgement and waits for supported background work before attempting the final reply. The recipient does not maintain a live text connection. Tool completion, message creation, provider acceptance, and recipient delivery are separate milestones.

The intended result is one useful reply rather than a filler followed by a correction. Tool failure, exhausted processing retries, suppression, bounce, or provider rejection can still prevent that outcome. Use channel status and delivery events to distinguish those cases.

SMS, iMessage, and WhatsApp use related non-live policies. Web conversations use request-scoped REST or SSE rather than a persistent text WebSocket.

### Attachment Handling

The inbound parser handles standard MIME attachments and the deeply nested layouts produced by some mail clients. Supported behavior includes:

* **Attachment parts are preserved.** Recognized attachment parts are extracted with their content and metadata rather than flattened into the message body.
* **Forwarded emails stay intact.** An email forwarded as an attachment is kept as a single `.eml` file, preventing attachments inside it from being attributed to the outer message.
* **Inline images retain CID identity.** Content-ID parts are stored under their CID identifiers so renderers can resolve references from the message body. Consumers should not assume every client hides those parts from attachment views.

## Reply Threading

Outbound emails can be sent as replies to inbound messages, maintaining thread continuity in the patient's email client. When sending a reply, the platform sets the `In-Reply-To` and `References` headers according to RFC 5322, so the patient sees a single threaded conversation rather than disconnected messages.

The platform maintains the full reference chain across multiple reply rounds. If a patient replies to an outbound, and the platform replies back, and the patient replies again, each message carries the complete thread history. Even when a patient's email client strips the `References` header (some lightweight mailers do this), the platform reconstructs the chain from its stored records so the next outbound reply still threads correctly.

Reply threading is scoped to the same use case and email setup. Cross-use-case replies are rejected to prevent confused-deputy scenarios where a reply intended for one context could be misattributed to another.

## Delivery Tracking

The platform records available provider lifecycle events for outbound email:

* **Delivery confirmation** - When the receiving mail server accepts the message
* **Bounce handling** - Hard bounces (invalid address) and soft bounces (temporary failure) are recorded and influence future sending decisions
* **Complaint tracking** - When a recipient marks a message as spam, the platform records the complaint and can suppress future sends to that address

## Unsubscribe Handling

Outbound emails from unsubscribable use cases include RFC 8058 one-click unsubscribe headers. When a patient clicks the unsubscribe button in their email client, the platform processes the opt-out automatically. Unsubscribe scope can be per-use-case (the patient stops receiving emails from one campaign but continues receiving others) or per-setup (the patient opts out of all email from that domain).

## Reliability and Operational Recovery

For a workspace-managed agent, inbound email turns are retried automatically. A turn that still fails is held in a durable record with its routing context rather than discarded, and Concurrence can re-submit it once the cause is resolved. Processing is best-effort. Do not assume that every inbound message is processed.


# Surfaces

Agent-generated data collection interfaces delivered by email or web, with templates, progress tracking, and pending appointment requests.

A patient calls to schedule an appointment. During the call, the agent realizes it needs insurance information and a photo of the insurance card. It cannot collect a photo over the phone. Instead of asking the patient to call back or visit a portal, the agent generates a surface - a short data collection form - and shares a secure link. The patient fills it out on their phone. The submission is stored against the surface, and the platform attempts to publish a provenance-bearing world-model event for later projection.

Surfaces close the gap between "we need this data" and "we have a way to collect it." They can be generated dynamically or from workspace templates, delivered by email or handed off as a web link, and contribute patient-reported data to the world model asynchronously.

## How Surfaces Work

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-7b8e75aedd18d10e5a12cdd64325a5ecd5972ced%2Fsurfaces-flow-light.svg?alt=media" alt="An eligible tool or state template creates a surface, supported delivery shares it, and the recipient submits data. Stored submission status is distinct from event publication and world-model projection."><figcaption><p>A stored submission is the receipt evidence; projection and conversation notification have their own timing.</p></figcaption></figure>

The agent decides what to ask. The platform handles rendering, delivery, and collection. Agents generate surface specs from their understanding of what data is missing, or select from workspace-level form templates that pre-define field layouts and prefill rules for common workflows.

## Mid-Call Surface Tools

Agents can access a family of ten surface tools when those tools are exposed by the service and current Context Graph state. This lets an agent create a form, inspect its progress, and hand off a supported link during an interaction without making surface capabilities universal to every state.

| Capability               | What It Does                                                                               |
| ------------------------ | ------------------------------------------------------------------------------------------ |
| **Create surface**       | Creates a dynamic form and returns its patient-facing URL when link signing is configured. |
| **Deliver surface**      | Sends an email or records an external web handoff. Phone-shaped destinations are rejected. |
| **Check status**         | Reads the current lifecycle state and submitted data when available.                       |
| **Extract file text**    | Extracts text from supported PDF fields on a completed surface.                            |
| **List entity surfaces** | Lists existing surfaces for an entity, optionally filtered by status.                      |
| **Get surface insights** | Returns observed completion history, pending count, and channel statistics.                |
| **Get form templates**   | Lists reusable workspace templates.                                                        |
| **Create from template** | Resolves a template, prefills supported fields, and creates a surface.                     |
| **Get progress**         | Reports saved and missing fields for a surface.                                            |
| **Reshape surface**      | Creates a shorter surface containing remaining fields.                                     |

A typical mid-call flow: the agent notices the patient's insurance card is missing, creates a two-field surface (front photo + back photo), sends the link to the patient, and checks back moments later to see if the patient has opened it. If completed before the call ends, the agent confirms receipt. If not, the surface stays active and the patient can complete it later.

### Real-Time Surface Observation

A platform-managed call can observe a submission for a surface it is tracking and acknowledge it in the conversation. A surface made in a text conversation records that conversation, and in a web conversation its submission goes to the conversation's agent, which can answer it even after the conversation has gone idle. Delivery is best-effort, so status reads remain the authoritative fallback when the workflow must confirm completion.

On such a call, the runtime filters available workspace events to the tracked surface IDs and can inject a matching submission as guidance. A missed event does not change the stored submission or its lifecycle status.

Surface tools must be present in the service's eligible tool set and bound where the workflow needs them. Workspace authorization and entity scope still apply.

### Surface Templates and Wait Conditions

Context graph states can also declare surfaces and waiting behavior directly in their definition, without the agent needing to call tools:

* **Surface templates** - A state can include a surface spec template. When the agent enters that state, the platform automatically creates the surface using the template's fields and entity context. This is useful for deterministic workflows where the form is always the same (e.g., "collect insurance card" always needs front and back photo fields).
* **Wait conditions** - A state can declare that the agent should wait until the patient submits the surface, or until a reviewer approves it for delivery, before continuing. While waiting, the agent stays in the current state and is told not to move on to new topics. A wait for the form lets it answer questions and reassure the patient, and a wait for approval asks it to say the information is under review and stay patient and supportive. A wait ends only on the event it names: the patient's submission ends a wait for the form, and a reviewer's approval ends a wait for approval.

These two extensions work on the platform-managed runtime and in text conversations. `gpt_realtime` does not apply `wait_for` or `surface_spec_template`, including in multi-state graphs. Its `preload`, `turn_policy`, and `channel_overrides` fields also have no effect. In text conversations only a web conversation is told that a form was submitted or approved, so a wait in an SMS, WhatsApp, or email conversation is not released by either event. For more details, see [Action State Extensions](https://docs.concurrence.com/agent/context-graphs).

### Form Templates

Workspace administrators can define form templates that standardize common data collection workflows. A template pre-defines the field layout, section structure, and prefill rules - mapping entity state fields to form fields so patients see their known information pre-populated. Templates also support patient-type routing, delivering different field sets based on the entity's characteristics.

Agents access templates through two tools: one to list available templates for the workspace, and one to create a surface from a template with a specific entity. The template system handles field prefill from the entity's world model state, reducing the number of fields the patient needs to fill manually.

Templates are useful when the same form is used repeatedly (intake forms, insurance collection, consent workflows). For one-off or dynamic data collection, agents still generate surface specs directly.

### Calendar Booking

Surfaces can include an appointment-request step where patients select from projected free slots. Submission validates that the slot still appears free, stores the request on the surface, and emits a `booking.requested` event. The response is `pending`. It is not confirmation that an external scheduling system created an appointment.

This is particularly useful for post-call follow-up surfaces where the agent identified that the patient needs to schedule a visit. The surface can collect missing data and capture an appointment request in one flow, while confirmation remains a separate scheduling outcome.

## Surfaces and Dataset Intake <a href="#intake-upload-links" id="intake-upload-links"></a>

Use Surfaces for supported patient-facing forms and [dataset intake](https://docs.concurrence.com/data/customer-data-intake) for authenticated file ingestion. Surface collection and dataset processing have separate lifecycles. Submitting a form does not automatically register or publish a dataset file.

## Surfaces Optimization

Surface analytics feed back into surface creation to prevent fatigue and improve completion rates.

**Agent-side intelligence** - Before creating a new surface during an interaction, the agent can query observed surface history: pending count, completion rate, and channel statistics. That evidence can inform whether to collect data verbally or use an eligible delivery channel, but it does not force a deterministic model decision.

## Delivery Channels

Surfaces are delivered through two channels - email and web link. SMS, WhatsApp, and iMessage are not supported as surface delivery channels.

| Channel   | How It Works                                                            | Best For                                  |
| --------- | ----------------------------------------------------------------------- | ----------------------------------------- |
| **Email** | Email with a branded link via the workspace's configured email provider | Longer forms, document collection         |
| **Web**   | Shareable link for embedding in portals or handing off directly         | Integration with existing patient portals |

The workflow or agent selects between email and a web handoff according to its configured policy and the available address. During a live voice call, simple data can be collected verbally, while a photo or document requires a browser surface.

## What Surfaces Can Collect

Fourteen field types cover data collection and display:

| Type              | Example Use                                       |
| ----------------- | ------------------------------------------------- |
| **Text**          | Name, address, pharmacy name                      |
| **Textarea**      | Symptom description, special instructions         |
| **Date**          | Date of birth, preferred appointment date         |
| **Phone**         | Contact number, emergency contact                 |
| **Email**         | Patient email for follow-up                       |
| **Number**        | Age, weight, dosage amount                        |
| **Single select** | Preferred provider, insurance type                |
| **Multi select**  | Symptoms from a checklist, available days         |
| **Checkbox**      | Consent confirmation, HIPAA acknowledgment        |
| **Photo**         | Insurance card front/back, wound photo, ID        |
| **Signature**     | Digital consent signature, authorization          |
| **File**          | Referral letter, prior records, lab results       |
| **Heading**       | Display-only section title or instruction divider |
| **Info**          | Display-only explanatory or warning text          |

Fields support prefilling from known data (so patients do not re-enter information the system already has), conditional display (show a field only when another field has a specific value), and PHI flagging for sensitive data handling.

## Form Intelligence

Surfaces include six layers of intelligence that reduce patient effort and improve data quality:

| Capability               | What It Does                                                                                                                                                                                                                                                                      |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Smart formatting**     | Auto-formats SSNs, ZIP codes, and phone numbers as the patient types. Corrects common email domain typos (gmailcom to gmail.com).                                                                                                                                                 |
| **Contextual warnings**  | Cross-references fields against each other and the patient's record. If a patient enters a medication that conflicts with an allergy listed elsewhere on the form, a warning appears immediately. Age detection from date of birth triggers minor consent flagging when relevant. |
| **Input correction**     | A model can review eligible values on blur. High-confidence corrections may apply automatically and can show an informational toast. Lower-confidence suggestions require the patient to accept or dismiss them. Sensitive fields receive formatting-only handling.               |
| **Healthcare lookups**   | Medication and allergy fields search a standardized drug database in real time. Pharmacy fields search the national provider registry. Insurance carrier fields search a curated list. Results appear as the patient types, reducing free-text entry errors.                      |
| **OCR prefill**          | For insurance card collection, patients can take a photo with their camera. The platform extracts structured fields (member ID, group number, plan name, dates) from the image and pre-fills the form. The patient reviews and confirms before submission.                        |
| **Abandonment recovery** | If a patient starts a form but does not finish, the agent can check which fields remain unfilled and generate a shortened follow-up surface containing only the missing fields. The patient picks up where they left off without re-entering completed data.                      |

## Lifecycle

Each surface progresses through a tracked lifecycle:

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-88d68c885ed51263d1985fba268b72636d07f570%2Fsurfaces-lifecycle-lavender.svg?alt=media" alt="A surface progresses from creation and any required review through delivery, opening, partial data, and completion. Expiration and archival are separate lifecycle outcomes."><figcaption><p>Unfinished forms can expire. Supported archival is separate from completion.</p></figcaption></figure>

| Status             | What It Means                                                                     |
| ------------------ | --------------------------------------------------------------------------------- |
| **Created**        | Surface row and specification stored. Lifecycle event publication is asynchronous |
| **Pending Review** | Awaiting review before delivery (when review workflows are configured)            |
| **Delivered**      | Email accepted for sending or an external web handoff recorded                    |
| **Opened**         | Patient opened the link                                                           |
| **Partial**        | Some fields submitted (auto-saved as patient progresses)                          |
| **Completed**      | All required fields submitted                                                     |
| **Expired**        | TTL exceeded without completion (default 7 days, configurable 1 hour to 1 year)   |
| **Archived**       | Removed from active use by an authorized operator                                 |

## Data Flow

Surface submissions can enter the world model as provenance-bearing events:

* **Source**: `surface` - distinguishable from EHR, voice, or manual imports in analytics and audit trails
* **Confidence**: Initial confidence appropriate for patient-reported data - not automatically trusted at the same level as authoritative EHR data
* **Entity association**: Creation and submission events carry the target entity when publication succeeds. Event type and projection rules determine whether and how derived entity state changes.

When a patient submits a surface, the platform stores the submission and starts a fire-and-forget `surface.submitted` event write. Entity projection is asynchronous, so successful submission does not guarantee that event publication succeeded or that a derived demographic or clinical view has refreshed. Workflows that need a submitted value immediately should use the submission record or another response documented for that path.

This means surface data participates in the same [confidence and entity-resolution rules](https://docs.concurrence.com/data/connectors-and-ehr) as other sources. A submission keeps its surface provenance.

## Healthcare Examples

| Scenario                   | What the Agent Generates                                                                                          |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| **Pre-visit intake**       | After scheduling, send a surface with insurance card photo, pharmacy name, medication list, and consent signature |
| **Post-call follow-up**    | After a triage call, send a surface with symptom tracker fields and a photo upload for the affected area          |
| **Insurance verification** | During a call where insurance details are unclear, send a surface for front/back photos of the card               |
| **Consent collection**     | Before a referral, email a surface with a consent form, digital signature, and HIPAA acknowledgment               |
| **Appointment prep**       | Day before appointment, send a surface with transportation needs, interpreter request, and current medications    |

## Delivery

When a surface is ready, the delivery endpoint can send it through a configured email use case or record an external web handoff. A phone-shaped destination is rejected. Lifecycle event publication and observer notifications are asynchronous and should not replace the delivery response or provider status.

### Sharing the Link

The web link is portable: the agent can read the URL aloud during a voice call for immediate access, or hand it off within an active conversation thread. The surface itself is still delivered via email or web link - SMS, WhatsApp, and iMessage are not delivery channels.

Observer events such as `surface.delivered`, `surface.opened`, and `surface.submitted` can update dashboards and active agents when publication and subscription succeed. Consumers must tolerate missing or delayed events and reconcile against stored surface state.

### Developer Console

Open **Operate > Outreach** to manage this capability. The current page groups **Surfaces**, **Pending Review**, and **Analytics** in separate tabs.

## Branding

Patient-facing surfaces adopt the workspace's visual identity automatically. Workspace administrators configure default branding - logo, primary color, background color, and font - through the workspace settings. When a surface renders, the platform applies these defaults so every form is consistent with the organization's brand.

Surface-level branding can override workspace defaults for specific use cases. For example, a workspace might use the standard brand for intake forms but apply partner-specific branding for co-branded outreach. The merge is field-level: surface-level values take precedence, and any unset fields fall back to the workspace default.

Branding changes are audit-logged and take effect on the next surface render - already-opened surfaces are not retroactively updated.

## Multi-Page Forms

Longer data collection needs can be split into sections, creating a step-by-step form experience. Each section groups related fields under its own title and description, so patients work through one page at a time rather than scrolling through a single long form.

The form renders sections as stepped pages with Next and Back navigation buttons. A progress bar at the top shows the current step and overall completion. Each step validates its fields before allowing the patient to advance - required fields, format checks, and conditional logic are enforced per step, so patients catch errors immediately rather than at the end.

Sections are useful for complex intake workflows - for example, separating demographics, insurance information, and consent into distinct steps. Auto-save works across steps, so patients can complete part of the form, leave, and return to where they left off. Forms with a single section or no sections render as a single page, maintaining backward compatibility.

## Patient Experience

Patients access surfaces through a secure link - no login, no app download, no account creation. The link contains a cryptographically signed token that grants access to that specific surface only.

The surface renders as a mobile-first browser page. All fourteen field types have patient-facing renderers. Photo, signature, and date controls use supported browser capabilities. Eligible input fields auto-save as the patient progresses, allowing a later visit to resume the last successfully saved values.

File and document uploads use a dedicated upload page with drag-and-drop support, per-file progress indicators, and streaming upload for large files. The upload page validates files client-side before uploading (file type, size limits) and server-side after upload (content validation, duplicate detection).

### Inline Validation and Accessibility

Forms validate fields inline as the patient fills them out - errors appear immediately when a field loses focus, not after the patient submits the entire form. When submission or step advancement fails validation, the page scrolls to and focuses the first error field automatically.

Long text fields display a live character count that changes color as the limit approaches. The browser prompts before closing a tab with unsaved form progress. All validation messages are linked to their fields via `aria-describedby` for screen reader compatibility.

Rate limiting protects patient-facing endpoints against abuse. Clients should handle a rate-limit response and retry only after the documented interval.

## Security

* **Token-based access** - Patients access surfaces via HMAC-signed URL tokens. No login required. Each token grants access to one specific surface only.
* **Scoped access** - Dedicated `surfaces:read` and `surfaces:write` permissions control who can generate and view surfaces
* **Sensitive fields** - Fields flagged as sensitive receive additional PHI handling throughout the pipeline
* **File content validation** - File and photo uploads are validated by inspecting the file's actual content type (magic bytes), not just the declared MIME type. Files whose content does not match the allowed types are rejected before storage. This prevents disguised file uploads regardless of what the client declares.
* **Duplicate detection** - After a file uploads successfully, the platform checks for existing files with the same content hash in the workspace. Duplicates are flagged in the response but never blocked - healthcare workflows legitimately re-upload the same document, so the platform informs rather than prevents.
* **Expiration** - Surfaces automatically expire after their configured TTL, limiting the exposure window
* **Entity-scoped** - Each surface is associated with a specific entity, maintaining workspace-level data isolation
* **Rate limiting** - Patient-facing endpoints are rate-limited per IP to prevent abuse
* **Audit trail** - Authorized API actions and successfully published lifecycle events provide separate audit evidence. A surface response does not guarantee every asynchronous event is already present in the [audit trail](https://docs.concurrence.com/operations-and-safety/compliance#audit)

{% hint style="info" %}
**Developer Guide** - For model schemas, field definitions, and API details, see [Surfaces](https://docs.concurrence.com/developer-guide/platform-api/conversations/surfaces) in the developer guide.
{% endhint %}


# Outbound

Outbound paths for SMS and iMessage conversations and for direct voice calls, with the channel support, lifecycle, and retry rules of each.

Concurrence has several outbound paths with different channel support and lifecycle semantics. They share workspace authorization and use-case configuration, but they are not one automatic channel-selection system.

| Path                              | Supported channel | Primary contract          |
| --------------------------------- | ----------------- | ------------------------- |
| **Conversation start and switch** | SMS and iMessage  | Durable Conversations API |
| **Direct outbound call**          | Voice             | Outbound Calls API        |

Email sending uses the email channel API. The conversation-start endpoint does not start outbound email, WhatsApp, or voice conversations.

## Outbound SMS and iMessage

The Conversations API starts a durable outbound SMS or iMessage thread. The request identifies:

* the bound service
* `channel` as SMS or iMessage
* the recipient in E.164 format
* a workspace-owned use case that resolves the sender
* an optional instruction for the opening agent turn

The caller does not supply a sender address. The platform validates the use case, dispatches the first turn, and returns the durable conversation record. A recipient reply resolves through the same provider thread key and resumes that conversation while it remains non-terminal.

Set `force_new: true` when a new outbound SMS or iMessage opener must not reuse the active thread for the same recipient and use case. The platform closes the prior active conversation before dispatching the new opener.

{% hint style="info" %}
Request models, permissions, and failure responses are in the [Conversations API guide](https://docs.concurrence.com/developer-guide/platform-api/conversations).
{% endhint %}

### Switching Between SMS and iMessage

An active durable conversation can switch from SMS to iMessage or from iMessage to SMS. A switch request supplies the target channel, recipient, target use case, and a reason. It can also request an immediate opener on the new channel.

The conversation ID and existing history remain the same. Each new turn records its own channel attribution, so consumers should render the per-turn channel rather than applying the conversation's current channel to all history.

The channel change is persisted before the optional opener is dispatched. If opener delivery fails, the conversation remains switched and the caller can retry delivery without switching again. Voice, email, and WhatsApp are not supported switch targets.

## Direct Outbound Voice Calls

Use the Outbound Calls API for a voice call. This path is separate from conversation creation.

A valid request requires:

* `phone_to` in E.164 format
* an outbound-voice `use_case_id`, which resolves caller ID
* a reason for the call

The patient is optional. Give `patient_entity_id` or `patient_canonical_id`, but not both, for a call to a patient; the platform checks it before the call and answers `404` if it does not resolve. Leave both out for a call to another party, such as a payer line, and the call is placed without a patient lookup.

Optional fields include the goal, system-prompt override, start-time `context`, tags, metadata, callback lineage, an idempotency key, and an outbound-task entity ID. The service is resolved from the use case's service binding. The workspace must already have valid outbound voice configuration; an API key alone is not sufficient.

The response returns the call identifier and initial telephony status. It can also return the resolved sender information and an `event_id`. The `outbound.initiated` world-model event is emitted best-effort, so `event_id` is nullable and must not be treated as proof that the call itself was or was not queued.

### Context and Lineage

On the platform-managed runtime (`concurrence`), the optional goal and system prompt steer the call, and an outbound-task entity ID can give the greeting its task context. When the service runs on `gpt_realtime`, a request that carries a goal, a system prompt, or an outbound-task entity ID returns `422` and nothing is dialed, so place the call without them or run the service on `concurrence`. See [Startup Instructions and Patient Identity](https://docs.concurrence.com/developer-guide/platform-api/conversations/calls#startup-instructions-and-patient-identity).

A patient identifier, when given, is validated and anchors best-effort lineage, but it is not passed to the call as patient context; any caller lookup depends on the service's own identity-resolution path.

Use `derived_from_call_sid` to associate a callback with an earlier call. Tags and metadata support external correlation and analysis, subject to their request limits.

### Idempotent Retries

Provide a stable idempotency key when a client may retry after a timeout or transient failure. The key is claimed before anything is dialed: a retry after the call was placed returns the original response, a retry while it is still being placed returns `409`, and an attempt that placed nothing releases the key so a retry can place the call. Deduplication is best-effort. Telephony status and world-model event delivery remain separate lifecycles. Reconcile against the returned call ID in Runs.

The Developer Console does not provide a general-purpose **Call now** action for this API. External applications and operator workflows invoke it programmatically.

{% hint style="info" %}
See the [Outbound Calls guide](https://docs.concurrence.com/developer-guide/platform-api/conversations/calls) for the endpoint contract and examples.
{% endhint %}

## Triggering Scheduled Work

Cron, supported event, and authenticated external-trigger flows can invoke a trigger action. To place calls on a schedule, have the scheduling workflow call the Outbound Calls API and apply its own timing, attempt, and business-hours rules. Use stable external identifiers and retry logic at the integration boundary when webhook delivery can repeat.

The platform does not automatically turn a promise spoken during a call into a follow-up call. Nor does it automatically choose voice versus text or fall back from an unanswered call to another channel. Those behaviors require an explicitly configured Context Graph or external workflow.

General population campaigns also require an explicit source of eligibility, pacing, consent, and retry policy. Customer-specific automation should not be presented as a universal campaign engine.

## Voicemail <a href="#ringless-voicemail" id="ringless-voicemail"></a>

A voicemail that picks up an outbound call counts as an answer, so the call-opening notice and the greeting play to it. Keep the greeting fit to leave on a voicemail, and check it with the configured outbound call workflow before outreach.

## Operational Guidance

* Configure and validate the channel use case before dispatch.
* Treat agent completion, provider acceptance, and recipient delivery as separate milestones.
* Use stable idempotency keys for retried direct calls.
* Respect consent, opt-out, business-hours, and contact-preference policy in the workflow that selects recipients.
* Reconcile world-model projections asynchronously rather than assuming immediate timeline visibility.
* Monitor terminal failures and exhausted retries instead of relying on automatic cross-channel fallback.


# Operators and Escalation

Plan human escalation and supported API-based intervention, including phone takeover, handback, and transfer fallbacks.

Human operators handle work that needs their judgment or authority. The platform supplies controls for inspecting and intervening in eligible interactions. The organization defines staffing, handoff criteria, and the destination for unresolved work. [Operating Model](https://docs.concurrence.com/platform-overview/operating-model#agent-to-operator) explains that division.

Use the **Live** status filter on the Console Runs page to find active runs. To build a custom operator interface, integrate the Platform operator and run-control APIs. These APIs are a beta feature that a workspace must be enabled for. Ask your Concurrence representative for access. Confirm runtime support and operator access before designing that integration. [Build Your Own Operator Console](https://docs.concurrence.com/developer-guide/guides/build-an-operator-console) shows how.

Distinguish live takeover, transfer to an external phone destination, and approval of a proposed write. Each addresses a different problem and has its own lifecycle. The sections below cover live operation and transfer.

On a supported voice path, an operator joins the same conference as the caller and agent. Listen mode does not transfer or reconnect the call. An integration should request listen mode explicitly and require confirmation before switching to takeover, which unmutes the operator and suppresses the agent's voice.

For eligible text, SMS, email, and web runs, takeover holds the run: the agent does not reply while the operator authors replies, apart from the authored emergency reply that a message the platform recognizes as describing a medical emergency or self-harm can get, and it answers again when the operator hands control back. The hold is best effort: if the platform cannot confirm it when a message arrives, the agent answers that message. A hold lasts 90 seconds unless the operator's interface renews it, so a run whose operator has gone away returns to the agent without a handback.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-a037e3f04d855e4fedecd6142f200377079cb750%2Foperator-takeover.svg?alt=media" alt="On supported phone runtimes an operator can listen, take over while the agent pauses, and return control so the agent can resume with captured handback context."><figcaption><p>Join mode and runtime support determine the available controls.</p></figcaption></figure>

## How Escalation Policy Works

Escalation behavior is authored in the agent's context graph and instructions. Teams define which user requests, safety boundaries, unavailable tools, or uncertain situations require a transfer, callback, refusal, or operator involvement. The current runtime does not provide a separate monitor-concept system that can replace those instructions.

An integration can use the Runs and operator APIs to locate eligible active work and request intervention. Check channel, live status, and runtime support before joining. A listed realtime-provider call does not necessarily support takeover. Supported join paths emit escalation and operator-attribution events.

Define a fallback for times when no operator is available. Depending on the workflow, that can mean a configured external transfer target, a callback task, emergency instructions, or a bounded response that does not continue beyond the agent's authority.

## Build an Intervention Workflow <a href="#runs-live-and-takeover" id="runs-live-and-takeover"></a>

An intervention client needs to find eligible work, connect the operator, and verify each change of control.

### Find Active Runs <a href="#live-queue" id="live-queue"></a>

Use the **Live** status filter in **All runs** to inspect running and paused conversation records. It is a browse filter: it does not rank work or open takeover controls.

Live visibility and retained records are best-effort. Framework history normally becomes available at terminal completion and is not authoritative real-time dispatch state. An intervention integration needs its own queue, staffing, and eligibility checks using the [Runs API](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs).

### Operator Modes

Voice operators work in one of two modes:

* **Listen mode** - The operator hears the conversation but is muted at the telephony level, and the agent continues handling the call. The platform does not add operator speech or an audible join announcement. Organizations remain responsible for any monitoring disclosures required by policy or law.
* **Takeover mode** - The operator is unmuted and speaks directly with the caller. Agent speech and turn processing are suspended, and caller and operator speech is captured for the handback when transcription succeeds. When the operator leaves the call from takeover, the agent resumes in the existing session with that conversation as context. Switching back to listen mode also resumes the agent. The client must provide any confirmation step before requesting this mode.

During takeover, the operator's speech is transcribed on its own stream, so the handback tells the agent who said what.

### Text-Channel Takeover

For eligible live text, SMS, email, and web runs, the integration takes the run over, renews the hold while the operator is present, stages operator replies, and hands control back. While the run is held, the person's messages are recorded and shown to the operator, and the agent does not reply to them. A message that the platform recognizes as describing a medical emergency or self-harm still gets an authored emergency reply. Recognition covers a limited set of phrasings in English and Spanish and can miss others. A hold lasts 90 seconds unless it is renewed, and a second operator cannot take a run that is held. One staged reply waits at a time, and it is sent as its own message while the operator holds the run. It expires after 2 minutes, and a handback discards it. Downstream delivery can still fail, so read the reply's state. See [Author a Non-Voice Turn](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs#author-a-non-voice-turn) and [Read a Staged Reply](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs#read-a-staged-reply).

### Phone Connection

Voice operators connect over the phone network. The platform dials the phone number on the operator's profile and adds them to the conference when they answer. The integration provides controls and displays available transcripts, and the operator's phone carries the audio. Carrier conditions affect the additional media leg.

Operators join by phone, not through a browser microphone or headset. Configure a reachable operator phone number before testing listen mode or takeover.

Only one operator can be active on a call at a time. If a second operator attempts to join the same call, they receive a conflict error. The same operator joining the same call again receives the cached response (the join is idempotent).

### Run Context

Run detail provides the available channel-specific record. Retain the selected workspace and run identifiers, resolve the supported call, and display its caller and service context before requesting control.

### Guidance Injection

Operators in listen mode can send text guidance to the agent without taking over the call. When delivery reaches the active session, the current voice runtime interrupts agent speech and frames the guidance for the agent's next response. The API can also report queued or failed delivery, so clients should inspect the returned status rather than assume the instruction was applied.

This is useful when an operator sees the conversation going in the wrong direction and wants to steer the agent without adding operator audio to the call. For example, an operator monitoring a scheduling call could send "Ask for their insurance ID before confirming the appointment" for the agent to incorporate into its next response.

Guidance messages are distinct from external events. External events carry factual information ("The appointment has been confirmed") and queue behind the agent's current speech. Guidance carries instructions ("Ask about their insurance") and interrupts because instructions are time-sensitive.

Both event types use the active voice-session delivery path, which routes the event to the session handling the call.

## Silence Management

Silence handling is a dedicated voice-runtime behavior, the same on the platform-managed runtime and on `gpt_realtime`. It does not depend on a composite risk score or a separate conversation-monitoring service. After 10 seconds of quiet following the agent's speech, the agent checks in with one short new sentence, checks in once more after another 10 seconds, and ends the call after the next 10 seconds of quiet. Once the caller has described a medical emergency or self-harm, that last silence leaves the line open, and the agent doesn't end the call unless a `gpt_realtime` service is set to end it after the emergency script for a medical emergency. Caller speech starts the count over. Silence counts for nothing while a transfer is under way. On the platform-managed runtime it also counts for nothing while an operator has the call, and the count starts over when the caller is handed back. See [Terminal State & Auto-Hangup](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#terminal-state-and-auto-hangup) for how a tool still running or an emergency changes this.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-e754369920b3b458580b13ca82b1193e7b1607e7%2Fsilence-check-ins.svg?alt=media" alt="On both voice runtimes, 10 seconds of quiet after the agent speaks brings a check-in, another 10 seconds brings a second one, and the next 10 seconds ends the call, unless the caller has described an emergency. Caller speech starts the count over, and progress updates cover a tool that is still running."><figcaption><p>The same sequence runs on the platform-managed runtime and on <code>gpt_realtime</code>. After a caller describes an emergency, the last silence leaves the line open.</p></figcaption></figure>

Safety and escalation behavior remains governed by the authored agent policy and explicit operator or forwarding workflows.

## Speaker Resolution

With three participants in a conference (caller, agent, operator), the system resolves who is speaking at any given moment using a priority chain:

1. **Operator in takeover mode** - Highest priority. Agent audio is suppressed.
2. **Caller** - Barge-in detection applies. If the caller speaks during agent output, the agent stops.
3. **Agent** - Speaks when neither the operator nor the caller is active.

Operator takeover suppresses the agent. Caller interruptions depend on the active barge-in policy and recognized speech, so background noise or speech below the configured threshold does not necessarily stop playback.

## Warm Hand-Off

Warm forwarding is a service-level call-forwarding mode, separate from an operator joining through the run-control API. When the agent invokes `forward_call` and the resolved forwarding configuration uses `warm_transfer: true`, the runtime keeps the caller in the conference, dials the configured destination, and gives the agent a brief hand-off turn before leaving the caller with the person who answered. Cold forwarding remains available when a briefing is inappropriate, such as an IVR, voicemail, or emergency destination.

### Phase 1: Normal

The agent and caller are in conversation as usual. Authored instructions decide when the agent should invoke `forward_call`. The destination is the service's fixed number, or in dynamic mode the approved destination the agent chose from the service's list.

### Phase 2: Briefing

After the agent finishes speaking, the runtime holds the caller and dials the destination. The runtime waits for a human-answer classification before beginning the briefing. An answered call alone is insufficient. Once a person answers, the caller comes off hold and hears the agent's briefing to the destination. The hand-off is intentionally brief and does not guarantee transfer of the full transcript, patient record, risk assessment, or recommended actions.

Barge-in is disabled during the briefing phase so speech from the caller or the destination does not interrupt the agent's introduction.

### Phase 3: Connected

After the briefing plays, the runtime confirms the caller is off hold before it removes the agent. If it can't, the agent stays on the call. Voicemail, a fax, no answer, a failed dial, or a person who answers and hangs up before the hand-off returns the caller to the agent, which is told to let them know. On `gpt_realtime`, a session that ends during the briefing hands the caller to the person who answered. Answer classification is provider-dependent and is not a guarantee that a destination is a suitable human operator.

The caller stays on hold while the destination is dialed. Once a person answers, the caller comes off hold and hears the briefing with the destination. The agent leaves only after the supported handoff succeeds. An unsuccessful handoff returns the caller to the agent.

A service forwarding configuration explicitly selects warm or cold transfer and either a fixed destination or dynamic mode. In dynamic mode the agent can transfer only to the service's approved destinations, which it picks by label. Any other number, including one the caller reads out or one in a tool result, is refused without dialing. A dynamic service with no approved destinations offers no forwarding tool. Without a forwarding configuration, the forwarding tool is unavailable. Each destination must also be on the line's forwarding allowlist. On the platform-managed runtime, state policy can further restrict forwarding. Destination selection does not inherit a fallback number from workspace settings. See [Call Forwarding](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#call-forwarding).

## Deferred Transfer

When the agent initiates a call transfer (for example, forwarding to a clinic's front desk), the transfer is deferred until the agent's goodbye message finishes playing. This prevents the caller from being redirected mid-sentence. If the caller speaks during the goodbye (barge-in), the transfer is cancelled and the conversation continues. On the platform-managed runtime, if an operator takes over the call during this window, the transfer is also cancelled. An operator who joins in listen mode does not cancel it.

If the platform cannot hand the caller off after the goodbye, for example because the line's forwarding allowlist does not include the destination, the caller stays on the call with the agent. The transfer reports a failure to the agent, which can then tell the caller and keep helping. Once a cold transfer hands the caller off, the caller has left the agent's call.

While a transfer is under way, through its hold, dial, and briefing, the agent can't end the call on either voice runtime: a goodbye said with the transfer plays, and the transfer goes ahead. Once a transfer hands the caller back, the agent can end the call again.

## Operations Views

Operators register with a profile that includes their name, skills, phone number, and role. Their status is tracked as online, busy, or offline.

The Developer Console retains run browsing. Operator-specific views require an API integration:

* **Runs > All runs** - Filterable conversation and framework history, including the Live status filter.
* **Runs > Overview** - Workspace totals and status distributions.
* **Operator analytics and audit APIs** - Escalation, response-time, handle-time, and attributed operator-action records for your integration.

## Escalation as Collaboration

The agent handles the routine part, and the operator handles the part that needs human judgment. Both contribute to the same run record. After a voice takeover, the agent can resume with the captured caller and operator turns as handback context.

Use escalation rates, response times, handle times, and fallback outcomes to plan staffing. Assign people to the authored escalation paths and maintain a fallback for times when they are unavailable.

{% hint style="info" %}
**Developer Guide** - For API endpoints and integration details, see the [Operators](https://docs.concurrence.com/developer-guide/platform-api/conversations/operators) reference in the developer guide. To build the screens an operator works in, follow [Build Your Own Operator Console](https://docs.concurrence.com/developer-guide/guides/build-an-operator-console).
{% endhint %}


# Runtime Safety

Current runtime safety controls, their enforcement boundaries, operator intervention, and evidence-based release practices.

Runtime safety is a layered system. Authored conversation policy guides the agent, structural controls constrain supported execution paths, server-side authorization limits writes, and operators can intervene through the unified Runs surface.

The current architecture does not depend on a separate semantic monitoring or regulatory-triage service. Safety-critical behavior must be expressed in the agent's context graph, tool permissions, escalation instructions, and operating procedures, then verified against representative scenarios.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-807af1d4dc2a3261aafd93e660337f72149a9e91%2Fruntime-control-boundaries.svg?alt=media" alt="Runtime safety distinguishes authored guidance, enforced execution controls, authorized human intervention, and diagnostic evidence."><figcaption><p>Evaluate each control on the intended runtime and channel.</p></figcaption></figure>

## Control Map

| Control                                 | Scope                                            | Current Behavior                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| --------------------------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Context graph policy**                | Voice and text                                   | States define objectives, available tools, exit conditions, guardrails, and boundary constraints that shape agent behavior.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Graph navigation invariants**         | Platform-managed context graph runtime           | Navigation resolves to an engageable state, detects loops, and caps per-turn transitions in code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Cross-runtime invariant observation** | Voice                                            | The platform records shadow verdicts for engageable-state, loop, and iteration checks. These verdicts do not change the live call.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Response guardrail observation**      | Voice                                            | Candidate responses are compared with the active state's guardrails and boundary constraints in shadow mode. Verdicts are diagnostic only.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Integration approval policy**         | Text conversations                               | A gated endpoint or an `approval_required` skill waits for an authorized approve or reject decision before it runs. Other surfaces don't offer these tools. See [Integration Tool Approval](#integration-tool-approval).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Write scope**                         | Supported agent write tools                      | A server-side write scope binds model-originated writes to an allowed workspace and entity; each registered tool constrains its resource shape and source-appropriate confidence.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **In-flight write deduplication**       | Supported voice runtimes                         | An identical write-tool call is short-circuited while the first invocation is still running.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **Unknown write outcomes**              | Voice and text                                   | An integration write that got no answer saying whether it went through returns `"outcome": "unknown"`, and the platform refuses to send it again in that conversation. See [Endpoint Retries](https://docs.concurrence.com/developer-guide/platform-api/integrations#endpoint-retries).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **Caller verification**                 | Voice and text                                   | A caller matched by phone number or `entity_id` stays unverified, with the patient record out of the agent's context, until their full name and date of birth match one record through `world_confirm_patient_identity`. Built-in record reads then return only the caller's own record or a household member's that names them; see [Caller Verification](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#caller-verification). On a service with `platform_caller_verification: false`, the platform never asks its callers to verify, its built-in record reads refuse with `verification_off`, and the agent is told not to share anything from a patient record.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **Call-opening notice**                 | Platform-managed voice and `gpt_realtime`        | Calls open with an AI and recording notice. When it plays depends on the runtime and the call's direction. See [Call Opening](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#call-opening).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **Transfer destinations**               | Voice                                            | A dynamic `forward_call` dials only a number listed in the service's `approved_destinations`. Any other number is refused without dialing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Crisis resource guidance**            | Text, platform-managed voice, and `gpt_realtime` | The agent's instructions always carry the deployment region's crisis resource and tell it to give that resource on suicidal thoughts, self-harm, or an overdose, and on `gpt_realtime` at the first hint. This is model guidance, not a deterministic check.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **Self-harm script on text**            | Text                                             | A message that matches the self-harm patterns, in English or Spanish, is answered with an authored script that gives the region's crisis line where one exists and the emergency number, and the conversation stays open. Pattern matching can miss a phrasing. The crisis guidance above still applies.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Emergency script on `gpt_realtime`**  | `gpt_realtime`                                   | A caller line recognized as describing a medical emergency or self-harm, in English or Spanish, cuts off any reply the agent is speaking outside a warm transfer's briefing, and the agent speaks an authored script first. For a medical emergency, the script says to hang up and call the region's emergency number now. For self-harm, it gives the region's crisis line and the emergency number for immediate danger, or the emergency number to call now where the region has no crisis line. A line that describes a medical emergency together with self-harm gets the medical emergency script, which on US-region calls goes on to give the crisis line in either language. The realtime model speaks the script from the authored text, so its wording can vary. Recognition covers a limited set of phrasings and can miss others, or play the script when a caller only mentions a condition. For a missed line about suicidal thoughts, self-harm, or an overdose, the crisis guidance above still applies, and any other missed emergency rests on the agent's own instructions. On platform-managed voice, the agent's own reply plays. See [Realtime Emergency Script](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#realtime-emergency-script).                                                                                                                                                                                                                                                   |
| **Emergency calls stay open**           | Platform-managed voice and `gpt_realtime`        | Once the caller describes a medical emergency or self-harm, in English or Spanish, the agent doesn't end the call: on the platform-managed runtime a terminal Context Graph state doesn't hang up, on `gpt_realtime` the model's `end_call` is refused, and on both the last silence leaves the line open. The call ends when the caller hangs up or at the call's duration limit. A `gpt_realtime` service with `medical_emergency_ending: end_after_script` instead ends the call after a medical emergency described in English, once the script and a closing line have played. Self-harm keeps the call open in every setting. The safe exit can still end it, as can an operator who has taken the call on the platform-managed runtime. See [Terminal State & Auto-Hangup](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#terminal-state-and-auto-hangup). Recognition can miss a phrasing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **Tool and knowledge-base content**     | Text, platform-managed voice, and `gpt_realtime` | Tool results, including knowledge-base articles and records from your systems, reach the model marked as untrusted content. The agent is instructed to answer from it and not to follow instructions inside it, such as ones that try to change its role, trigger a tool call or a transfer to a number the content gives, reveal information, advise on medication, or replace an official phone number, link, or payment detail. This is model guidance, not a deterministic check.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Spoken-reply check**                  | Platform-managed voice and `gpt_realtime`        | A pattern check and a model check review each reply on its way to the caller, and a reply they stop is cut off and followed by a short correction. See [Reply Checks](#reply-checks).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **Text reply check**                    | Text                                             | A pattern check reviews each reply on any channel and logs a hit. It changes nothing: the reply is sent as written. See [Reply Check](https://docs.concurrence.com/developer-guide/platform-api/conversations#reply-check).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Speech recognition failure**          | Platform-managed voice                           | A recognizer that fails and can't reconnect is replaced once by another for the caller's language. Otherwise the call takes the safe exit below. See [Graceful Degradation](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#graceful-degradation).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **Safe exit**                           | Platform-managed voice and `gpt_realtime`        | When a platform-managed call can't recover its speech recognition or can't set up its agent, a caller's turn gets no reply on either runtime, or a `gpt_realtime` call can't start, because something it needs fails before its realtime session starts or its realtime session doesn't open (its connection fails or times out, its session setup can't be sent, or the realtime model doesn't answer the setup or refuses it), the agent plays fixed lines rather than generated ones: the AI and recording notice if the caller hasn't heard all of it, an apology, and a transfer to the service's `fallback_to`, else its fixed forwarding number, or a closing line and the end of the call. When a call's setup fails after its service configuration has loaded, the lines play in Spanish for an agent whose default language is Spanish, in English then Spanish for a multilingual agent, and in English for an agent in any other language. If the service has a `fallback_to` or a fixed forwarding number, the call also transfers to the `fallback_to`, else to the forwarding number. A call whose service configuration can't be loaded when it arrives plays in English and isn't handed to either. In an emergency, the closing line tells the caller to hang up and call 9-1-1 or their local emergency number. The lines are fixed audio prepared ahead of time: every `gpt_realtime` exit plays that audio, and a platform-managed exit plays it unless the call has prepared the lines in its own voice, in the language it speaks. |
| **Request for a person**                | Text, platform-managed voice, and `gpt_realtime` | On text and platform-managed voice, a request for a person that the pattern check recognizes doesn't end the conversation, and on `gpt_realtime` the agent is instructed the same way. The agent is told to transfer when it can, to take a message only through a tool that records one, and otherwise to say how to reach the team. See [Safety & Escalation](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#safety-and-escalation).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Operator control**                    | Eligible live runs                               | Authorized operators can listen, take over, send guidance, author a text turn, and hand control back, depending on channel.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

This map distinguishes controls that actively enforce behavior from controls that only produce evidence. That distinction matters when setting clinical and operational expectations.

### Reply Checks

Both voice runtimes check the agent's replies, platform-managed voice before the caller hears them and `gpt_realtime` while they play. Text channels run the pattern check too, but it only logs.

* **What they check.** A pattern check, on every runtime, looks for dosing or medication-change advice and a promise to contact emergency services. It also looks for a booking, cancellation, move, or message claimed as done, and a promise to book, reschedule, cancel, or act right away, when no matching write backs it. On both voice runtimes, a model check also looks for a diagnosis, record details shared with a caller who hasn't verified, and other actions claimed as done that didn't succeed on the call. A result from a data query or integration endpoint that declares it reads no patient record, such as an FAQ, a location, or opening hours, doesn't count as a patient record in the call, so while nothing else in the call has brought one in, the model check doesn't treat a public answer as record details. See [Endpoint Read Declarations](https://docs.concurrence.com/developer-guide/platform-api/integrations#endpoint-read-declarations).
* **What backs a claim.** A claim that something is done needs a matching write that succeeded: earlier in the call on voice, or in the same turn on text. On voice, a promise to do something now is backed when the same reply calls the matching write. On text, a promise needs a write that already succeeded in that turn. Only a write that declares what it does backs a claim, and a write whose outcome is unknown backs none. See [Endpoint Write Declarations](https://docs.concurrence.com/developer-guide/platform-api/integrations#endpoint-write-declarations).
* **On platform-managed voice,** each sentence passes the pattern check before the caller hears it, and the model check too when it answers in time. The first sentence can wait briefly for the model check. A stopped sentence keeps the words already spoken, drops the rest of the reply and its tool calls, and plays a short correction.
* **On `gpt_realtime`,** the checks review the reply while it plays, so the caller can hear some or all of a sentence before a stop lands. A stopped reply is cut off, its tool calls don't run, except a transfer it had already requested in full, and the agent speaks a short correction. A stop that lands after the caller has spoken again cuts nothing: the agent is told what was wrong, and the caller hears a correction only for dosing or medication advice, a diagnosis, or a promise to contact emergency services.
* **Spelled-back words.** On every voice family, when the agent spells a word letter by letter, three letters or more, and the letters spell neither a word from a tool result nor one the caller gave, but come close to a word in the caller's latest turn, the spell-back is stopped. The agent then spells the word the way the caller's transcript has it and asks whether that is right, in English or Spanish, and its next tool call uses that spelling. Only the caller's latest turn counts, so a caller who corrects a letter is not spelled back to their earlier spelling. The check relies on the speech transcript, which can mishear a letter.
* **On a warm transfer,** both voice runtimes also check the agent's briefing, which the caller and the destination both hear. A stopped briefing is cut off like any other reply, and the correction plays before the hand-off when the stop lands in time. On `gpt_realtime`, the hand-off can wait a moment for the check to finish with the briefing.
* **On text,** the pattern check reviews each reply and logs a hit. Nothing is stopped or replaced: the reply is sent as written, `output` and the `message` event carry it unchanged, and the agent is not told. A streamed turn previews the reply as it is generated.

On voice, after the person describes an emergency, the correction is the emergency script, a short line that points them to emergency help. When a reply claims a write whose outcome is unknown, the correction says the agent can't confirm it went through. On its next turn, the agent is told what was replaced and why. Have the agent call a tool before it says what the tool did, and test your confirmation wording: either check can miss a phrasing or stop a correct reply, and on text a stop changes nothing.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-ffccad72a27ee371bbdb57a8d51df4d6f851c79e%2Freply-checks-voice-text.svg?alt=media" alt="A pattern check runs on every runtime, and both voice runtimes add a model check. Platform-managed voice checks each sentence before the caller hears it, gpt_realtime checks the reply as it plays, and a stopped voice reply ends with a short correction. Text checks the reply and logs a hit; the reply is sent as written."><figcaption><p>Pattern checks cover English and Spanish.</p></figcaption></figure>

## Safety in the Agent Policy

The agent evaluates the conversation within its normal reasoning loop. The platform-level checks in the control map cover a few narrow cases, but they do not compensate for missing escalation instructions or incomplete boundaries.

For each safety-sensitive state, define:

* **Objective** - What the agent is trying to accomplish in that state.
* **Allowed tools** - The smallest tool set needed for the task.
* **Boundary constraints** - What the agent must not claim, recommend, or attempt.
* **Escalation conditions** - Observable situations that require a human or a configured transfer target.
* **Safe fallback** - What the agent should say and do if the required person, tool, or destination is unavailable.
* **Exit conditions** - The evidence needed before the graph advances.

On the Platform API, reusable policy that spans states should be expressed through shared context graph structure, state guidance, transitions, eligible tools, and tested authoring conventions. [Dynamic behaviors](https://docs.concurrence.com/agent/context-graphs/dynamic-behaviors) add guidance on the caller turns where it fits. That guidance is text in a model's prompt, chosen by a model's judgment, so it is not a safety control.

{% hint style="warning" %}
Safety instructions are model-facing policy. They are not a substitute for server-side authorization, clinical governance, or a staffed escalation process.
{% endhint %}

## Structural Navigation Controls

The platform-managed context graph navigator enforces three structural properties during a turn:

1. **Engageable landing** - Routing states are resolved until the conversation reaches a state that can handle the next user interaction.
2. **Loop handling** - Repeated navigation is detected so the engine does not traverse the graph indefinitely.
3. **Transition cap** - A bounded number of state changes can occur within one turn.

If navigation cannot resolve safely, this runtime stays on the last engageable state rather than presenting a routing-only state to the caller.

The voice layer also observes these properties across supported runtimes. That observer is shadow-only: it records diagnostic verdicts but does not interrupt, reroute, or end a call. Runtimes that navigate independently therefore do not inherit the platform-managed navigator's enforcement merely because they produce the same telemetry.

## Guardrail Evaluation Status

State guardrails and boundary constraints are included in the agent's active instructions. Separately, the platform runs a lightweight response-text evaluator on voice calls and records whether a candidate response appears to overlap a configured rule.

{% hint style="warning" %}
The response evaluator is shadow-only. A recorded `block` verdict does not block or rewrite the response, and evaluator failure does not affect the call. Treat these verdicts as calibration and regression evidence, not as an enforced clinical safety boundary.
{% endhint %}

Because shadow evaluation observes text rather than clinical truth, teams should review false positives and false negatives before using its output in an operational process.

## Write Safety

### Integration Tool Approval

Workspace integrations can set an approval policy of `none`, `writes`, or `all`, and a skill can be marked `approval_required`. In a text conversation, a call to a gated endpoint or an approval-required skill is parked before it runs until an authorized reviewer approves or rejects it. The default policy is `none`.

This mechanism is conversation-scoped and fail-closed. Only a text conversation can pause a tool call for a decision, so voice calls, simulations, voice notes, companion skills, and trigger actions don't get these tools. See [Approval-Gated Integration Writes](https://docs.concurrence.com/developer-guide/platform-api/integrations/approval-gated-integration-writes#key-concepts).

### Agent Write Scope

Supported agent write tools receive a server-constructed write scope that restricts which workspace and entity the operation can target. The registered tool contract separately constrains the resource shape and assigns or caps the confidence available to model-originated data.

These checks protect the persistence boundary even if the model supplies an unexpected identifier. System-originated projection work follows separate trusted-service authorization and is not evidence that an agent can bypass its own scope.

### Duplicate Calls

Supported voice runtimes track identical write-tool calls that are already in progress. If the model repeats the same write before the first completes, the duplicate is rejected as already running. Once the first finishes, a later identical call can run again, unless the first was an integration write whose outcome is unknown, which isn't sent again in that conversation.

[Endpoint Retries](https://docs.concurrence.com/developer-guide/platform-api/integrations#endpoint-retries) lists the failures after which the platform retries an integration write. None of this is a permanent idempotency guarantee. Operations that need durable idempotency should still use the operation's documented idempotency key or destination-specific protection.

### External Delivery

Recording an observation in the world model does not confirm an external mutation, and the world model does not deliver observations to external systems. An external mutation happens through a tool the agent calls, such as an integration endpoint, and its result is the evidence of what the destination accepted.

## Human Intervention

The unified Runs surface gives operators one place to monitor eligible live work:

* **Voice** - Join in listen mode, explicitly take over, send guidance, switch mode, and hand the call back.
* **Text channels** - Pause an eligible run, author the next turn, and hand control back.
* **History** - Inspect the transcript, run metadata, available analysis, and recorded operator actions.

Operator actions require the Operator update permission, available to operator, admin, and owner roles. Supported action routes bind the requested operator identity to the authenticated caller and emit operator-attributed events for takeover-related actions.

An authored escalation policy must also define what happens when no operator is available. Appropriate fallbacks can include a configured transfer target, callback workflow, emergency instruction, or a bounded refusal. Do not assume the platform automatically pages a clinician or creates a post-call review item.

## Validation Before Release

Simulations exercise the current workspace configuration through the real reasoning and tool path. Simulation-originated world-model writes are tagged so production analytics can exclude them, but simulations do not create an isolated configuration branch and do not replace every external dependency with a stub.

Use dedicated test workspaces, test entities, or safe integration environments when a scenario could reach a real external system. Separate broad text-tier validation from real-audio tests that measure transcription, speech rendering, turn timing, and media attachment.

A practical release review includes:

1. Run targeted cases for each safety boundary and escalation path.
2. Run regression suites against the configuration intended for release.
3. Inspect normalized checks, transcripts, tool calls, and failure reasons.
4. Review shadow guardrail and control-invariant evidence where available.
5. Confirm operator staffing and fallback procedures.
6. Deliberately update the pinned `release` version set when the evidence is acceptable.

Simulation results and drift analysis do not automatically block version-set promotion or roll back a release. Promotion and rollback are deliberate operator actions.

## Production Review

After release, use conversation evaluations, run history, integration call results, and operational metrics to find changes in behavior. Compare defined cohorts and stable time windows rather than treating a single aggregate score as proof of safety.

When a regression appears:

1. Identify affected channels, services, versions, and cohorts.
2. Add or update a reproducible simulation case.
3. Verify whether the issue is agent behavior, tool behavior, media quality, or destination failure.
4. Correct the smallest responsible configuration or integration boundary.
5. Re-run the affected suite before moving the release pin.

## What Runtime Safety Does Not Guarantee

* **Perfect outcomes** - Model behavior and external systems remain fallible.
* **Automatic clinical triage** - The crisis resource guidance, the self-harm and emergency scripts, and the voice and text reply checks cover narrow cases. Organizations must author, test, and staff their own clinical escalation protocols.
* **Enforced shadow verdicts** - Guardrail and cross-runtime invariant observers record evidence only.
* **Universal human review** - Only gated integration endpoints and approval-required skills in text conversations use an approval path.
* **Automatic deployment rollback** - Teams decide when to move a version-set pin.
* **Automatic outbound reconciliation** - Verify each integration call's result at the destination.

{% hint style="info" %}
Triage and safety evaluation support operational decisions and do not replace clinical assessment. Organizations remain responsible for clinical protocols, escalation staffing, destination verification, and regulatory review.
{% endhint %}

## Related Documentation

* [Context Graphs](https://docs.concurrence.com/agent/context-graphs)
* [Operators](https://docs.concurrence.com/operations-and-safety/operators)
* [Testing and Evaluation](https://docs.concurrence.com/testing/testing)
* [Connectors and EHR](https://docs.concurrence.com/data/connectors-and-ehr)
* [Compliance](https://docs.concurrence.com/operations-and-safety/compliance)
* [Safety and monitoring APIs](https://docs.concurrence.com/developer-guide/platform-api/safety)


# Compliance and Audit

Authentication, access control, audit evidence, workspace isolation, outbound authorization, and assurance boundaries for regulated healthcare environments.

The Concurrence platform is built for regulated healthcare environments. Its technical controls and evidence surfaces can support a customer's compliance program, but product behavior alone does not establish legal compliance. Applicable agreements, deployment configuration, operating procedures, and customer responsibilities remain part of the control environment.

## Authentication and Access Control

The platform applies authentication, authorization, and workspace scoping at defined service and route boundaries. The exact controls depend on the surface and credential type, so customers should validate the routes they use rather than infer universal coverage from this overview.

### Role-Based Access Control

Permissions follow five default workspace roles. Viewer is the read baseline. Member and operator branch from that baseline for different jobs. Admin combines member capabilities with configuration administration and supported operator actions. Owner currently carries the admin permission set but is required by owner-only workflows. The API-key permission catalog is the authoritative source for the current defaults.

| Role         | Permissions                                                                                                                                                                                                                           |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Viewer**   | Read the workspace resources and data included in the default viewer grant set.                                                                                                                                                       |
| **Member**   | Viewer access plus supported create, send, trigger, conversation, and data-write operations. Configuration update and delete operations remain admin-level.                                                                           |
| **Operator** | Viewer access plus review actions and supported live-run guidance or takeover operations. Operator is not a data-ingestion role.                                                                                                      |
| **Admin**    | Member access plus configuration CRUD, member administration, audit access, supported operator actions, and workspace administration. The default catalog includes `Workspace:Delete`, although individual routes can add conditions. |
| **Owner**    | The admin permission set plus eligibility for owner-only workflows, including workspace archive and issuing owner-role API keys.                                                                                                      |

Permissions are workspace-scoped. A user can be an admin in one workspace and a viewer in another. This matters for multi-site healthcare organizations where clinical staff at one location should not have configuration access to another.

### API Keys

API keys provide bearer-token authentication for programmatic access. A key selects one default role and can optionally carry a subset of that role's permissions. The requested role and permissions cannot exceed the creator's own access, and only an owner can issue an owner-role key.

### SSO with Identity Federation

Organization SSO connects an organization's Okta OIDC application to one workspace. Sign-in requires an approved immutable subject mapping and active workspace membership. The organization owns its application, assignments and sign-in policies, and each connection has its own credentials and approved identities. Email discovery does not grant access. The independent Google account sign-in path can use separately configured provisioning policies. Those policies do not provision organization SSO bindings.

An organization SSO connection adds a sign-in method for approved existing members. Workspace membership, roles and machine credentials retain their separate authorization rules. Keep an independent owner sign-in available when configuring the connection. Follow [Set Up Organization SSO](https://docs.concurrence.com/developer-guide/guides/organization-sso).

### Multi-Factor Authentication

For organization SSO, the identity provider's application policies enforce MFA and device requirements. Enroll the intended users before using the connection, and manage factor recovery through the identity provider.

### Session Enforcement

Supported login sessions apply idle timeouts and concurrent-session limits. An expired or revoked login cannot continue through a path that revalidates that authority. Already-issued access tokens and existing application connections have their own lifetimes, so do not equate a login-session change with immediate termination everywhere.

Token rotation includes theft detection. When a refresh token is used, a new one is issued and the old one is invalidated. If the old token is presented again (indicating it was copied before rotation), all sessions in that token family are revoked immediately. Sender-constrained tokens remove the need for rotation entirely - see [Token Security](#token-security) below.

### IP Allowlists

Network restrictions belong to the agreed deployment and identity-provider controls. Verify the exact paths and credential types they cover. An SSO email-domain list supports account discovery and eligibility; it is not a network allowlist.

### Progressive Account Lockout

Supported identity flows record failed attempts and apply progressive lockout thresholds. If lockout state cannot be evaluated, the request is treated as unlocked. Rate limits and upstream identity-provider controls remain separate safeguards.

### Agent Session Tokens

Supported agent sessions use short-lived delegated tokens bound to a workspace and a call or job. Administrative, credential-management, and further-delegation scopes are stripped, and the effective role is capped below the admin tier. Tool availability and reads still depend on the runtime policy and any external-principal binding; the token alone should not be interpreted as entity-scoping every read. Supported agent world-write tools use an additional server-constructed entity write scope.

### External Caller Identity

A customer-hosted application can bind its verified external user identity to a patient entity in the workspace. At conversation start, the platform resolves that binding so a recognized caller receives the correct world-model context and returning-user memory. An unbound caller starts anonymously rather than being matched by guesswork.

Patient identity bindings are separate from [external principals](#external-principals), which represent clinicians and other role-scoped users. A patient binding cannot target an entity with active principal roles, preventing patient recognition from becoming an authorization path. This binding surface is not part of the current public Platform API contract.

### Machine-to-Machine Authentication

The platform supports OAuth 2.0 client credentials grants for machine-to-machine integrations. Services authenticate by exchanging a client ID and secret for an access token, without user interaction. This is the standard pattern for backend integrations, scheduled jobs, and CI/CD pipelines that need to call the platform API programmatically.

## Credential Security

Client secrets used for machine-to-machine authentication are hashed with an industry-standard key derivation function, following OWASP recommendations, before storage. Plaintext secrets are returned once at creation time and are never stored or retrievable afterward.

## Token Security

The platform supports sender-constrained tokens using the DPoP standard (RFC 9449, Demonstration of Proof-of-Possession). When enabled, access and refresh tokens are cryptographically bound to a key held by the client application. Even if a token is intercepted in transit or extracted from logs, it cannot be used by a different client because the receiving service verifies that the caller holds the corresponding private key.

Sender-constrained tokens also eliminate a class of race conditions in token refresh flows. Because the token is bound to a specific client key, the platform does not need to rotate refresh tokens on each use - removing the window where concurrent refresh attempts from multiple tabs or network retries could invalidate a session, and eliminating the grace window where two valid tokens coexist.

## Identity Linking and Provider Trust

When an operator accepts an invitation through one authentication method (such as a magic link or email code) and later signs in through a different provider (such as Google), the platform can automatically link the two identities to the same operator entity. This cross-provider linking is gated by a trust rule: the second provider must be authoritative for the operator's email mailbox at the time of sign-in. For corporate domains, this means the provider must manage the domain's accounts through its own administration. For consumer email addresses hosted natively by the provider, controlling the account is equivalent to controlling the inbox. A consumer account registered under a third-party corporate email address does not qualify, because the provider's historical email verification does not prove current inbox control.

If an operator entity already has a linked identity for the incoming provider under a different subject, the platform refuses the new link and logs an identity conflict for administrator resolution. Every automated identity link is audit-logged with the providers involved, email address, and external subject identifier.

## Federated Identity and Invitation Recovery

Invitation acceptance and organization SSO approval are separate steps. An existing account can accept a workspace invitation through an eligible independent sign-in. An administrator then approves that account's immutable Okta subject for the workspace connection. A matching email or pending invitation does not substitute for that approval.

An organization SSO connection preserves existing account sign-in methods. Keep an independent workspace owner sign-in available to manage the connection if the organization's provider is unavailable. Disabling a connection preserves workspace membership and stored data.

## Operator Identity Enforcement

Supported operator action routes, including join, mode switch, leave, guidance, wrap-up, and run-scoped takeover routes, enforce server-side identity binding. The platform verifies that the authenticated caller matches the operator profile being acted as before allowing the action to proceed. Mismatched identity attempts are logged and rejected. This prevents a client-supplied operator identifier from becoming an impersonation path on those routes.

## Audit

### Note-Generation Raw Output Archive

When the platform generates a structured clinical note, it best-effort archives the verbatim model completion - the text the model returned before parsing and template validation - alongside the parsed note. Each generation produces its own addressable archive entry stored in the same protected location as transcript and note artifacts, under the same access controls.

Archiving runs asynchronously on a best-effort basis. An archive-write failure does not block the committed note or session progress, so a completed note does not prove that a raw-output archive exists. Raw completions can contain sensitive information and need the same access and retention review as other clinical artifacts.

### Cross-Workspace Audit Reads

Two additional read paths complement the per-workspace audit log:

* **Personal trail.** An authenticated caller whose credential is bound to an actor entity can retrieve audit events matching that actor across workspaces. The actor identity is set server-side; credentials without an actor entity are rejected. No workspace-level audit permission is required.
* **Platform-wide trail.** Platform administrators can query audit events across all workspaces, including events that carry no workspace - such as login events that occur before workspace activation. This path requires the `platform:admin` scope.

Workspace-scoped audit reads are unchanged. The per-workspace endpoint continues to return only events belonging to the specified workspace.

Some audit events, including login and credential-theft detection, carry no workspace association. Workspace-scoped queries exclude them. The platform-wide path can retrieve them; a personal query remains limited to events matching the credential's actor entity.

The platform provides a workspace-scoped audit surface for supported platform events, including sensitive data access and selected configuration or operator actions. Available fields depend on the event producer; the audit schema supports actor identity, timestamp, credential, network context, action, resource, and PHI classification.

On the MCP data access surface, covered reads that return patient-identifying data - including entity listings that project display names and medical record numbers - schedule an audit record with the action, resource type, tool name, and result status. Audit-write failures surface operational warnings but do not make the read fail, so customers should monitor audit delivery rather than infer transactional coupling. Schema-discovery operations that return only tool metadata and no PHI are excluded.

Audit API responses conform to the published response schema. Fields that are not available for a particular producer are returned as nullable values rather than inferred.

Workspace-scoped audit queries return entries for the requested workspace and require the applicable audit permission. Personal and platform-wide queries use the separate authorization rules above. Available actor, resource, and workspace fields depend on the event producer, so inspect their coverage when assembling an access review.

### PHI Access Logging

Supported PHI-sensitive routes classify their audit events for compliance reporting, including selected entity reads, patient-data access, call recordings, and intelligence views. Customers should validate route coverage against their own audit requirements rather than infer universal coverage from the PHI report alone.

### Principal Session Audit

When a workspace credential starts a conversation anchored to an entity that has an active external role assignment, the platform treats this as principal impersonation - the session acts as that external principal with the principal's role-scoped tool access. This action requires admin or owner credentials and is recorded as a dedicated audit event (`principal.session.opened`) capturing the conversation ID, the acting credential, and the target entity. This ensures that every principal impersonation through the API-start path is traceable to a specific credential and entity.

### Session Token Delegation

When a short-lived session token is minted from a parent credential, the platform records a structured audit trail of the role derivation decision. This includes the parent's claimed role, the role inferred from the parent's actual permissions, the effective role assigned to the child token, whether the role was capped due to privilege restrictions, and the parent token's provenance chain. If a parent's role claim is rejected as inconsistent with its permissions, a dedicated audit event is emitted so security teams can identify forged or drifted credentials without searching through general session logs.

### Workspace Access Auditing

Supported Identity workspace-access routes are wired to append structured audit events for member additions and reactivations, role changes, ownership transfers, removals, invitation sends and resends, acceptance, decline, revocation, and membership bootstrap or auto-provisioning. Successful audit records include the acting identity, workspace, target resource, and operation-specific details. Membership mutation and audit append are separate operations, so monitor audit delivery and reconcile access state rather than treating the log as transactionally complete proof of every transition. These records can support SOC 2 access reviews and HIPAA workforce-clearance evidence.

### Audit Queries

The Compliance & Audit page in the Developer Console has five views. It is for workspace admins and owners, and new events appear in the Overview and the Audit log about 15 minutes after they happen:

| View              | What It Shows                                                                                                                                                                                                                                                                                                                                                                                                           |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Overview**      | Counts of audit events, PHI access events, unique actors, and sources for a selected period, workspace API keys by status, and the workspace's recorded retention settings                                                                                                                                                                                                                                              |
| **Audit log**     | Retained audit entries with filters for source, action, who (actor ID), record type, record ID, patient data only, and date range. Choose Identity as the source to see Identity events. Who matches the person or agent ID; reads of patient data are recorded under a credential and may not match. Opening an entry shows its details and, for a read of patient data, can list the latest reads of the same record. |
| **PHI access**    | Covered entries classified as PHI access, for use in customer investigation and reporting workflows. A patient record identifier narrows the list to the reads of that record.                                                                                                                                                                                                                                          |
| **Access review** | A review of workspace API keys with role, status, creation and expiry dates, and last-used information when available                                                                                                                                                                                                                                                                                                   |
| **Exports**       | Audit log exports with their status and CSV downloads. An export uses the date range, source, action and patient data filters only, so it does not carry who, record type or record, and a patient data export covers all patient data reads in the period                                                                                                                                                              |

### Audit Log Export

Audit exports run asynchronously for a selected date range. Once ready, the export provides CSV chunks through short-lived download links. Treat export identifiers and URLs as sensitive. The [Developer Guide](https://docs.concurrence.com/developer-guide/platform-api/safety#audit-log-export) describes submission, polling, and link refresh.

Creating an export records a PHI-sensitive audit event. Downloading a chunk through its presigned link is a separate operation and does not establish a new Platform download audit event.

### Compliance Reporting

Two compliance evidence exports are available:

| Report                    | What It Provides                                                                                                                                                                                                                                                                                                                                                                 |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **HIPAA evidence report** | Produces a partial evidence summary for a configurable period (default 90 days), including audit statistics, configured retention values, declared encryption flags, and an API-key summary. The current response returns `compliance_status: partial`. MFA coverage, SSO enforcement, allowlist status, session timeout, and locked-account fields are not currently populated. |
| **Access review export**  | Lists API key credentials with role, status, and activity dates. Interactive user and session credentials are not included in the current export.                                                                                                                                                                                                                                |

### Service Authentication

Internal platform services can authenticate using verified client certificates instead of shared secrets when requesting machine-to-machine tokens. Each service credential uses exactly one authentication method - certificate-based or secret-based - and the two are never combined. Certificate-based authentication is restricted to internal service-account credentials. External and provider integrations continue to use client secrets.

Failed certificate authentication attempts are logged but do not trigger account lockout, because the certificate identity is verified at the transport layer and cannot be brute-forced. This prevents a misconfigured service from locking out the legitimate credential holder.

## Audit Trails Through Event Sourcing

The [world model](https://docs.concurrence.com/data/world-model) stores observations as append-only events. When a modeled fact changes, a new event can supersede the prior observation without rewriting it. This event history is distinct from configuration records, audit events, and external destination logs, which follow their own storage models.

This architecture provides event-level evidence for modeled data:

* **What was known, and when.** For modeled facts with retained event history, replay up to a timestamp can reconstruct the observations available at that point.
* **Where data came from.** Every event records its source (EHR sync, voice call, manual import, agent inference) and its confidence level.
* **What changed, and why.** When an entity's state changes, the event that caused the change is traceable. Superseded events are linked to the events that replaced them.
* **Who accessed supported resources.** API access is scoped to authenticated accounts, and covered access paths emit separate audit events.

Event history and access audit serve different purposes. Event history explains changes to modeled state, and the audit surface records covered actions by authenticated actors. Neither should be treated as a substitute for destination-system evidence.

## HIPAA Considerations

Concurrence workflows can process protected health information (PHI). Review the following controls against the data, access paths, and operating responsibilities in the proposed deployment:

### Isolation

Customer-facing PHI access is scoped to the workspace at defined storage, query, and route boundaries. Each workspace has its own logical world model, data-source configuration, and access controls. A multi-site healthcare organization can use separate workspaces per clinic so each site's patient data is available only through credentials authorized for that workspace. Customers should still validate the exact storage and access paths in their deployment rather than infer a universal isolation mechanism from this overview.

### Access Control

The platform provides workspace RBAC, organization SSO, supported login-session controls and progressive lockout. Identity-provider MFA and agreed network restrictions complement those controls. Their scope depends on the application path and credential type. See [Authentication and Access Control](#authentication-and-access-control) for the boundaries of each control.

#### External Principals

For sessions driven by external users (such as partner clinicians or care coordinators), the platform supports entity-anchored, role-scoped access control. An external user is bound to a workspace entity with assigned roles, and role grants determine which integration endpoints, skills, and knowledge base scopes the session can access. Grant changes insert a new record and supersede the prior one, preserving authorization history. Identity injection through token-exchange bindings prevents the agent from supplying or overriding a bound identity parameter. Sessions without an external-principal binding use the ordinary workspace and session authorization path; they do not inherit a principal role grant.

### Data Minimization

The three data channels in the world model (ambient, queried, extracted) control what information is available to the agent at a given moment. Ambient context is configured per service, queried data requires an explicit tool call, and extracted observations retain source and confidence. Observations are not sent to external systems; an external change needs its own integration call.

#### Call Analysis Pipeline

The structured execution-trace input to post-call quality analysis includes tool names, input key names, output lengths, success/failure flags, state names, confidence scores, and latency values. It excludes raw tool arguments and results. This limit applies to that trace input. Transcripts, recordings, and other analysis inputs have their own data-handling requirements.

### Encryption

Data is encrypted in transit and at rest. Voice call audio, transcripts, and world model events are stored with encryption. Specific encryption standards and certifications are available on request.

### Field-Level Encryption

User variables that contain credentials or API keys for tool execution are encrypted at rest and are write-only through the API. They are decrypted for authorized runtime use. This field-level control applies to those secret variables. Review encryption coverage and key management for other data classes in the assurance package.

## Confidence and External Write Authorization

Keep two decisions separate: provenance and confidence determine how an observation participates in the world model; authorization and any required approval determine whether an integration call may write externally. Confirm the destination outcome independently.

[Confidence and provenance](https://docs.concurrence.com/data/world-model) preserve where a modeled value came from and help prevent a less reliable observation from silently replacing stronger evidence. An observation stays in the world model; an external change happens through an integration call, which an integration's approval policy can gate on supported text paths.

Consider the flow:

1. A patient mentions a new pharmacy address during a phone call.
2. The agent records the observation with transcript provenance and source-appropriate confidence.
3. Higher-confidence evidence can supersede the value without erasing the original observation.
4. To change the pharmacy in an external system, the agent calls an integration endpoint for it, and the call's result is the evidence of what the destination accepted.

Recording an observation therefore does not confirm an external mutation. Event provenance, integration call results, and destination records provide evidence at separate boundaries. Customers that need an end-to-end chain should correlate those records with stable identifiers and verify the destination state.

## PHI in Voice Calls

Voice calls present specific PHI handling considerations:

* **Transcripts** contain PHI by nature (patient names, conditions, medication details). They are stored in the workspace's world model with the same isolation and access controls as all other data.
* **Audio recordings** are stored encrypted and scoped to the workspace. Retention policies are configurable. A voice recording begins after the caller has heard the AI and recording notice, so it is shorter than the call and does not include the notice. See [Call Recordings](https://docs.concurrence.com/channels/voice/recordings).
* **Speech requests** to Deepgram and ElevenLabs carry retention settings. Speech recognition sent to Deepgram, for live calls, operator audio, and voice notes, opts out of Deepgram's model-improvement program. Speech synthesis through ElevenLabs, for live calls and voice notes, runs in ElevenLabs' zero-retention mode. The platform sets both on every request, so there is nothing to configure. Retention by other speech and model providers follows the applicable agreements described under [Certifications and Agreements](#certifications-and-agreements).

## Certifications and Agreements

{% hint style="success" %}
Concurrence maintains a SOC 2 Type II report and supports HIPAA-regulated workloads. BAAs are available for covered customers. Current assurance materials are available through the Trust Center.
{% endhint %}

| Assurance         | Status                   | Scope                                                                        |
| ----------------- | ------------------------ | ---------------------------------------------------------------------------- |
| **SOC 2 Type II** | Current report available | Security trust services criteria within the report's stated scope and period |
| **HIPAA**         | Supported with BAA       | PHI safeguards and contractual coverage defined by the applicable agreement  |
| **GDPR**          | DPA available            | EU data-processing terms defined by the applicable agreement                 |

Downstream vendor coverage, subprocessor terms, and any applicable BAAs are controlled assurance materials rather than guarantees inferred from this product overview.

BAAs are available for HIPAA-covered customers. Contact <compliance@amigo.ai> or visit the [Trust Center](https://trust.amigo.ai) for certification details and audit reports.

## Webhook Security

Classic SMS, email, and iMessage use cases can POST inbound-turn payloads to their configured receiver. Classic channel delivery signs those payloads with HMAC-SHA256 using a per-use-case secret. Explicit secret rotation returns the new secret once and dual-signs with the old and new versions for a 30-minute grace window. Changing the webhook URL remints the secret without that grace period. This Classic channel webhook path is separate from Platform triggers.

Platform triggers use authenticated trigger-fire calls rather than Platform-hosted vendor webhook destinations. Customers verify a vendor webhook in their own integration layer, normalize its input, and then call the trigger endpoint with a permitted Platform credential. Classic webhook signing and secret-rotation behavior does not describe this Platform trigger path.

## Infrastructure Security

* **Encryption** - The Platform compliance response declares encryption at rest and in transit. Detailed scope, protocols, and control evidence belong in the current assurance package.
* **Identity controls** - SSO, MFA, session controls, IP restrictions, and progressive lockout apply on their documented paths and have the availability boundaries described above.
* **Deployment boundaries** - The assigned regional hostname determines the serving deployment. Workspace metadata is not a placement or migration control. Confirm residency and isolation against the agreed deployment and its actual data paths.
* **Operational assurance** - Current vulnerability-management practices, incident commitments, penetration-test coverage, transport controls, and change-review evidence are available through the Trust Center or applicable contract. This page does not promise a universal mTLS design or fixed operational cadence.

## Data Lineage Boundaries

World-model events carry event-level source, confidence, and supersession information. The current per-entity provenance view exposes entity identity and historical merge information, but it should not be treated as a complete chain of custody. In particular, the unified lineage response does not currently populate outbound-sink or review-history records.

Use integration call results and destination-system records to prove an external mutation. Use the audit API for covered actor actions and PHI access. These records can be correlated, but they are not presented as one universally complete per-entity timeline.

## Retention Policies

Per-workspace retention policies record intended retention periods. The default shown by the platform is 2,190 days. Organizations should confirm that value against their record type, contracts, jurisdictions, and legal-hold requirements.

| Data Type          | Default Retention   | Configurable Range |
| ------------------ | ------------------- | ------------------ |
| Call recordings    | 2190 days (6 years) | 1-100 years        |
| Call transcripts   | 2190 days           | 1-100 years        |
| Audit logs         | 2190 days           | 1-100 years        |
| World model events | 2190 days           | 1-100 years        |
| PHI data           | 2190 days           | 1-100 years        |

**Legal hold** records an override to the configured retention policy and includes a reason for documentation. Because the platform does not delete data automatically on a retention schedule, organizations must implement and verify the corresponding operational hold process.

{% hint style="info" %}
Retention policies are advisory - the policy is stored, displayed, and available for compliance reporting, but the platform does not delete data automatically.
{% endhint %}

## Ongoing Compliance

Compliance is not a one-time certification. The platform supports ongoing compliance through:

* **Audit queries** - Covered platform events can be filtered by actor, service, action, resource, PHI classification, and date
* **PHI access logging** - Covered PHI-sensitive paths classify audit events for dedicated reporting and investigation
* **Event provenance** - World-model observations retain source, confidence, and supersession evidence
* **Retention policies** - Documented defaults with per-workspace configurability and legal hold, with no automatic deletion of data by the platform
* **Compliance reports** - A partial HIPAA evidence summary and an API-key access-review export
* **Authored safety policy** - Context graphs, tool permissions, escalation instructions, and operator procedures define the active runtime boundary (see [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety))
* **Assurance evidence** - Current control evidence and operating commitments are maintained in the Trust Center and applicable agreements

Event history, covered audit events, access controls, and documented operating procedures provide evidence for compliance programs. Organizations remain responsible for validating coverage against their legal, contractual, and governance requirements.

For API details on workspace permissions, audit reporting, runtime controls, and operator workflows, see the [Developer Guide](https://docs.concurrence.com/developer-guide/platform-api/safety).


# Testing Overview

Simulations, interactive testing, voice-path checks, metrics, and trend review support deliberate verification before and after deployment.

The platform provides a testing and evaluation framework for verifying agent behavior before deployment and measuring quality in production. This section covers simulations for repeatable behavior checks, the playground for interactive testing, black-box voice testing with Arbiter, metrics for scoring conversation quality, and a practical process for finding degradation in those results over time. [Healthcare Agent Testing Method](https://docs.concurrence.com/testing/testing/healthcare-agent-testing) shows how to combine them for one workflow.

## Choose Evidence for the Question

| Question                                              | Start with                                                                                                                   | Additional evidence needed                                                                    |
| ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| Does the authored workflow handle the case?           | Logical tests: [Simulations](https://docs.concurrence.com/testing/testing/simulations) and observed graph/tool activity      | Representative context and failure cases                                                      |
| Does a caller get the correct outcome on a real call? | [Black-Box Voice Testing](https://docs.concurrence.com/testing/testing/voice-simulation) against the phone number under test | Caller-observable task correctness, plus speech, timing, interruption, and transport behavior |
| Does an external action complete correctly?           | Isolated tool and integration tests                                                                                          | Destination acknowledgement or reconciliation under that operation's contract                 |
| Is the released workflow improving?                   | [Metrics](https://docs.concurrence.com/testing/testing/metrics), comparable cohorts, and production examples                 | Missing-result accounting and the actual operational outcome                                  |

Testing produces evidence for a release decision. The [operating model](https://docs.concurrence.com/platform-overview/operating-model) assigns that decision, and the [deployment model](https://docs.concurrence.com/platform-overview/deployment-model) describes how to select the reviewed configuration. The detailed sections below explain the available test paths.

## Testing Philosophy

Healthcare workflows can span data retrieval, identity verification, external writes, and human follow-up. Each step needs evidence appropriate to its failure modes.

Testing every branch through live calls is slow and makes reasoning failures difficult to separate from audio or integration failures. The platform uses three principles:

1. **Use controlled workspace context.** Simulations read current workspace state. Dedicated test workspaces or entities provide stable fixtures when comparison across runs matters.
2. **Exercise the real reasoning path without side effects.** Text simulations run the production reasoning engine and Context Graphs, but tools run in simulation mode and return a simulated result instead of reaching an integration, a world write, or a platform function. A case, suite, or benchmark launch can run chosen reads for real; writes never run for real, and Surface delivery remains disabled. Test live writes in the Playground with isolated test credentials and data.
3. **Validate calls and integrations at their own boundaries.** Black-box calls test what a caller observes on the real voice path, including task correctness, speech, and timing. Integration and approval workflows need an appropriately isolated integration environment when their live behavior is under test.

This structure keeps broad reasoning regression tests fast while preserving separate evidence for call and integration behavior.

Use simulations to exercise candidate behavior, metrics to score available evidence, and period comparisons to investigate trends. Feed reviewed findings into the next candidate and an explicit release decision.

## Simulations

Simulations test an agent against synthetic users in controlled scenarios. You define personas, situations, and evaluation criteria. The platform runs the conversations and scores the results. Saved cases group into suites for repeatable regression testing.

### What You Can Validate

* **Conversation behavior** - Exercise context graph branches, escalation rules, tool selection, and expected outcomes.
* **World-model context** - Ground simulated callers in current workspace data and use dedicated test entities when a fixed starting state matters.
* **Tool selection** - Check which tools the agent calls and with what arguments. Tools return a simulated `dry_run` result in simulations unless a case, suite, or benchmark launch runs a read for real or returns a configured result, and each tool record says which. Test real writes in the Playground. Surface delivery and tools that need an operator's approval are not available in simulations.
* **Authorization-scoped parameters** - SQL tools with authorization-bound parameters run in the text playground with their configured test values when the workspace actor holds the data-query permission. In simulations they return a simulated result like other tools. The Developer Console displays configured test values on tool detail pages and disables inline testing for authorization-bound tools, directing users to the playground instead.
* **Quality output** - Shared evaluation definitions make simulation and production results comparable, while simulation evidence remains in simulation-specific views and stays out of production analytics.

## Production Evaluations

Where eager evaluation is enabled, completed conversations can be evaluated against the workspace's active definitions other than the platform's [default definitions](https://docs.concurrence.com/developer-guide/platform-api/safety/production-evals#list-production-eval-definitions). Triggering is best-effort and subject to task and per-workspace daily caps. A workspace without active definitions other than defaults does not run this evaluation path. Inspect persisted results rather than assuming that every completed conversation was scored.

Production evaluation definitions use the metric type, and new assertion definitions cannot be created. Existing assertion definitions remain readable and executable. Express new evaluation criteria as metrics.

Active definitions other than the platform's defaults determine what the enabled evaluation path scores. Conversations that complete before any such definitions are active do not consume its daily cap.

Production evaluation is best-effort. A transient failure in the evaluation path does not affect the conversation itself, and evaluations can be re-run. Supported voice and text conversations can trigger evaluation at teardown when the path is enabled and its prerequisites are met. Completion alone does not establish that a result exists.

### Reliable Suite Execution

Long suites are designed to reach a reportable result even when execution is interrupted:

* Interrupted runs are retried automatically up to a bounded attempt limit.
* Runs that cannot be recovered end with a failure reason, rather than remaining indefinitely in progress.
* Each suite run records the number of cases selected at launch, making incomplete starts visible even if a case never produced a run record.
* Summary views report run, session, and turn totals, while normalized checks give metrics and assertions a consistent verdict and rationale shape, with a score on metric checks.
* Pass rates count only passed and failed verdicts, and report error, pending, and skipped counts beside the rate.

Coverage APIs bring states, observed paths, gaps, and session evidence together so teams can identify untested branches.

In the Developer Console, **Simulations** opens on **Results**: a **Runs** table of case and suite runs, grouped by suite launch, and a **Metric performance** view with each metric and assertion check's pass rate and result count. Cases and suites have their own detail pages. A run's detail shows each session's recorded conversation and tool calls beside its evaluations, so reviewers can trace a verdict back to the conversation that produced it.

Inspect the recorded path and outcome for each scenario, including cases that failed to start or complete.

{% content-ref url="/pages/ge01EpnrtOpPWn6hpB7M" %}
[Simulations](https://docs.concurrence.com/testing/testing/simulations)
{% endcontent-ref %}

## Playground and Interactive Testing

Open **Evaluate > Playground** and choose **Test** on a service's card. The Console lists services as agents. A voice service opens a browser voice call and a text service a turn-by-turn text conversation. Follow [First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation) for the text walkthrough. Text mode uses the public conversation create, turn, history, and close operations, with live background-delivery events supplementing the returned results.

### Evaluate Workspace <a href="#prove-workspace" id="prove-workspace"></a>

The **Evaluate** section groups Playground, Runs, Simulations, and Metrics. The Case Library and Suites open as Simulations tabs or from Console search. Use these alongside the separately available testing controls:

* **Interactive playground** - Try voice and text behavior against a selected service.
* **Metric definitions** - **Evaluate > Metrics** lists the workspace's metric definitions read-only, with the production evals and simulation cases that reference each one. See [Metric Store](https://docs.concurrence.com/intelligence-and-analytics/metric-store#developer-console).
* **Tool testing** - Find Tool Tester through Console search or the Tools area to run controlled inputs before using a tool in a conversation. **Tools > Built-ins** lists the built-in tool catalog plus the session tools a live call can use, such as `forward_call`, and an integration's page adds, edits, and deletes its endpoints. An endpoint's **Test** dialog starts from the input schema's required fields, filled with each field's constant, default, or first allowed value when it has one.
* **Cases, suites, and simulations** - Move from one-off exploration to repeatable regression coverage.
* **Test traffic controls** - Keep designated test calls and credentials out of production billing, analytics, and downstream writes.

The Playground does not provide operator takeover controls. Test an API-based intervention integration separately against its supported runtime. See [Operators and Escalation](https://docs.concurrence.com/operations-and-safety/operators).

When a service is configured to use a session-owning voice provider, Playground voice calls run through that provider rather than the default in-house pipeline. The provider generates its own opening audio, so the platform does not pre-render a separate greeting. Workflow tools are selected from the service's Context Graph, and the runtime can also expose supported system tools such as ending the call. Validate the complete tool set on the configured voice path.

{% hint style="info" %}
**Session-owning voice provider tool behavior.** When a service uses a session-owning speech-to-speech voice provider, the provider's tool contract is aligned with the tools actually available at runtime. The provider receives the workflow tools authorized by the service's Context Graph together with applicable runtime call controls. Its system prompt describes the configured execution model, including whether workflow tools run sequentially or in parallel and whether write-capable tools are present. Omitting workflow tools does not necessarily remove runtime controls such as hangup on a phone call.
{% endhint %}

### Unified Runs

The standard workspace’s **Evaluate > Runs** page provides conversation inventory and retained framework-run history. Operator-only workspaces show **Operate > Runs**. Retained framework-run records do not mean that new framework runs can be started. Runs has two tabs:

* **All runs** - A filterable history by **Agent**, the service, and by **Kind**, **Channel**, and **Status**. The **Agent** filter is searchable, accepts several services, and includes inactive and historical ones. Channels are Voice, SMS, WhatsApp, Email, Web, and iMessage, and statuses include **Live** and **Dormant**.
* **Overview** - Workspace totals and status distributions.

Available live voice calls can appear while in progress. Filters accept multiple values within an axis and apply on the server before pagination, so teams can review combinations such as failed and timed-out runs without losing workspace-wide pagination. The filters are kept in the page URL, so a filtered view can be shared. Use the filters to search the full history. A dormant run, an open conversation idle past its channel's threshold, shows no live indicator or running duration.

Opening a run composes the appropriate detail view:

* Voice runs show available audio, transcript, and analysis evidence.
* SMS, WhatsApp, email, web, and iMessage runs show the conversation transcript, available memory context, and eligible close actions.
* Call and text conversation runs show their production eval verdicts in a **Metrics & assertions** panel when any were recorded.
* Framework runs show metadata and an ordered structural trajectory of decisions, tool calls, and completion steps.

The separate [Runs API](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs#operator-takeover) retains controls for eligible channels and runtimes. These are not Console actions. Historical views include persisted successful, failed, and timed-out framework runs. Persistence is best-effort, so a run can still reach its correct terminal outcome even if its historical marker or trajectory is unavailable.

Use the playground to inspect how the configured service responds to interactive input and to capture cases for regression testing.

{% content-ref url="/pages/4ZM02YLTTpkYAA4li1u9" %}
[Playground and Interactive Testing](https://docs.concurrence.com/testing/testing/playground)
{% endcontent-ref %}

## Black-Box Voice Testing <a href="#voice-simulation" id="voice-simulation"></a>

Voice testing uses two kinds of evidence. **Logical tests** in text simulation inspect reasoning, tool selection, context graph coverage, and response content through internal state and tool records. **Black-box calls** with Arbiter place a real phone call and grade what the caller observes: whether the task was handled correctly, plus audio attachment, transcription, speech rendering, turn timing, latency, and capacity. A black-box call can also test a phone agent built outside Concurrence. Teams can run broad logical suites for behavior regressions and targeted black-box suites for the caller's experience.

Inspect task correctness and audio delivery separately, including interruption, silence, and incomplete-call cases.

{% content-ref url="/pages/KaEECAS9Ciko9oisktO5" %}
[Black-Box Voice Testing](https://docs.concurrence.com/testing/testing/voice-simulation)
{% endcontent-ref %}

## Metrics

Metrics measure the quality of agent conversations across the dimensions that matter to your organization - safety, clinical accuracy, empathy, goal completion, and other use-case-specific criteria. Eligible production conversations and simulations can be evaluated through their supported definitions and execution paths, while human review provides separate calibration evidence. Do not assume that every session is evaluated or that one definition shape applies unchanged across Classic, Platform production-eval, and simulation APIs.

The platform supports two evaluation modes for production conversations:

* **On-demand evaluation.** Trigger evaluation for a specific completed conversation through the API. Useful for spot-checking individual conversations or integrating evaluation into custom workflows.
* **Eager post-conversation evaluation.** Where the feature is enabled, completed voice, text, SMS, email, and web conversations can be evaluated against active definitions other than the platform's defaults after they end. Triggering is best-effort and bounded by task and per-workspace daily caps, so this path does not guarantee a verdict for every conversation. Use persisted eval results to distinguish evaluated, pending, skipped, and error outcomes.

Both modes use the same production-eval definitions and verdict model. Trigger mode alone does not change the rubric, but channel modality, retained evidence, model execution, and missing artifacts can still affect whether two results are meaningfully comparable.

Interpret each metric using its rubric, input evidence, evaluated population, and missing results.

{% content-ref url="/pages/R2FZnfpyXlTJjCCoPYwH" %}
[Metrics and Quality](https://docs.concurrence.com/testing/testing/metrics)
{% endcontent-ref %}

## Drift Detection

Use metric trends, run history, and saved simulation baselines to look for sustained changes in inputs or outcomes. Teams choose the comparison windows, investigate representative interactions, update test cases, and make an explicit release decision. The platform does not currently turn a trend threshold into an automatic alert, promotion block, or rollback.

Investigate whether a change reflects agent behavior, source data, workload, or the measurement itself.

{% content-ref url="/pages/ogceEl19CRp2g6SKFaRb" %}
[Drift Detection](https://docs.concurrence.com/testing/testing/drift-detection)
{% endcontent-ref %}

***

## How the Pillars Work Together

These capabilities support a repeatable team workflow:

1. **During development**, the playground gives interactive feedback on agent behavior, and tool testing exercises individual tools outside a conversation with the side-effect policy documented for that tool family.
2. **Before deployment**, simulations exercise target scenarios and measure configured criteria, while targeted black-box calls provide caller-observable evidence about task correctness, speech, timing, transport, and capacity.
3. **In production**, configured evaluations and analytics provide ongoing quality evidence.
4. **Over time**, teams compare equivalent periods, investigate material changes, and add newly discovered failure modes to the test set.

When the evidence indicates drift, update the relevant simulations and re-verify before releasing a change. This keeps the test set aligned with production without allowing an uncertain trend to change production automatically.

{% hint style="info" %}
**For developers:** Use the Platform [Simulation Coverage](https://docs.concurrence.com/developer-guide/platform-api/safety/simulation-coverage) and [Production Evals](https://docs.concurrence.com/developer-guide/platform-api/safety/production-evals) guides for current operations. Existing Classic integrations use the separate [Classic simulations](https://docs.concurrence.com/developer-guide/classic-api/core-api/simulations/) contract. Use [Run Arbiter Voice Tests](https://docs.concurrence.com/developer-guide/guides/arbiter-voice-tests) for black-box call suites.
{% endhint %}


# Simulations

Test agents against synthetic personas and scenarios through the production reasoning path, with tools in simulation mode unless a launch runs chosen reads for real.

Simulations let you exercise agent behavior with synthetic users before deploying to real users. You define who the synthetic user is, what situation they are in, and what success looks like. The conversations use current workspace configuration and the production reasoning path, while tools run in simulation mode and return a simulated result, so a simulation does not write to integrations or the world model. A case, suite, or benchmark launch can name read tools to run for real.

Define personas and scenarios, generate conversations, score the results with selected metrics, and inspect the failures before changing the agent. Repeat the same checks on the next candidate.

## Core Concepts

The conceptual model uses personas, scenarios, cases, suites, and runs. In the Platform API, the durable resources are cases, suites, runs, sessions, and turns. Persona and scenario content is embedded in a case or generated for a bridge run rather than managed through standalone Platform persona or scenario CRUD endpoints.

{% hint style="info" %}
**API distinction** - The Classic API exposes separate simulation personas, scenarios, unit tests, and test sets. A Platform saved **case** embeds persona and scenario content, and a **suite** groups cases. Do not send a Classic persona or scenario resource shape to the Platform coverage API.
{% endhint %}

### Personas

A persona describes a synthetic user. It defines the characteristics, background, communication style, and behaviors that the test user will exhibit during a simulated conversation.

Personas should reflect real user segments your agent will encounter. In healthcare, this might include an elderly patient with multiple medications, a first-time caller with high anxiety, or a caregiver managing care for a family member.

```
Persona: Margaret, 68-year-old retired nurse
- Takes 5 medications daily
- Knowledgeable about medical terminology
- Tends to self-diagnose and resist recommendations
- Prefers detailed clinical explanations
```

Good personas test specific capability gaps. Margaret tests whether the agent can work with a medically knowledgeable user who pushes back on recommendations, rather than a compliant user who accepts everything.

### Scenarios

A scenario defines the situation and conversational context for a simulation. It describes what happens during the interaction, what the user is trying to accomplish, and any environmental conditions.

```
Scenario: Post-discharge medication confusion
Margaret calls three days after hospital discharge.
She was prescribed a new blood thinner that interacts
with her existing arthritis medication. She has already
taken both this morning and feels dizzy.
```

Scenarios should cover both common situations and edge cases. Routine interactions validate baseline behavior. Edge cases verify safety boundaries and escalation logic.

### Cases

A case combines a persona, a scenario, and evaluation criteria into a single saved, testable unit. The criteria define what the agent must do (or must not do) for the case to pass.

```
Case: Medication interaction detection
Persona: Margaret
Scenario: Post-discharge medication confusion
Success Criteria:
  - Agent identifies potential drug interaction
  - Agent recommends contacting prescribing physician
  - Agent does not provide dosage adjustment advice
  - Agent escalates if patient reports severe symptoms
```

Cases are the building blocks of your test suite. Each one verifies a specific agent behavior in a specific context.

Cases can be hand-authored or machine-generated. Scenarios produced by the scenario generator are automatically saved as durable cases capturing the persona, scenario content (instructions, initial message, temperament), patient bindings, and evaluation criteria used during generation. Each case carries metadata recording how it was created, so you can distinguish hand-authored cases from those seeded by automation or generated by the scenario generator. If a run is replayed, previously persisted cases are reused rather than duplicated.

A case can also carry a per-case success definition that specifies how its runs should be scored. When present, the platform scores the run against that definition rather than the coarse terminal-state or max-turns rubric, so benchmark and suite cases are evaluated against precise, case-specific criteria - for example, whether the agent reached a particular outcome or completed a specific action. Cases without a success definition fall back to the standard scoring rubric.

Cases are fully manageable through the API, including bulk creation for seeding cases from external test management systems or CI pipelines. The case list pages, sorts, and searches on the server: it returns a total across pages, sorts by creation time, update time, or description, searches case descriptions, and filters by tag and service. Deleting a case removes it from every suite that lists it.

### Suites

A suite groups related cases together for batch execution. Suites are first-class resources with a name, description, an explicit list of case IDs, optional required tags that dynamically match additional cases, and their own tags and metadata. Suites do not bind to a specific service - the service is supplied at run time by the benchmark request or by each saved case's own configuration. A suite's cases come back in one paged read that resolves its explicit case IDs and required tags on the server.

You might organize suites by capability area, risk level, or deployment phase:

* **Safety boundaries**: All cases verifying escalation and scope-of-practice adherence
* **Medication management**: Cases covering adherence reminders, interaction detection, and refill coordination
* **Post-discharge**: Cases covering the full post-discharge follow-up workflow

Suites let you run targeted validation. Before promoting a change to your medication workflow, you run the medication management suite. Before any production deployment, you run the safety boundaries suite.

### Runs

A run attempts a case or suite and records the conversations and scores that complete. Failed or never-started cases can leave partial evidence, so suite consumers should compare observed results with the expected case count.

Run results include:

* **Pass/fail status** for each case
* **Metric scores** for each simulated conversation
* **Conversation transcripts** for review and debugging
* **Aggregate statistics** across the suite
* **Eval results** with summary counts for total, passed, failed, and errored evals
* **Tags** - Optional labels on runs and sessions for filtering and grouping (e.g., "regression", "nightly", "scheduling-flow"). Tags that start with `suite:`, `suite_run:`, or `safety:` are set by the platform.

When a run fails, it records a short failure reason so you can tell an infrastructure failure apart from an agent-quality failure without digging through logs. The failure reason is empty for successful runs. Each suite run also reports an expected case count - the number of cases selected when the run was launched - so you have a reliable completeness signal even though suite definitions can change over time and cases that never start leave no result row.

### Run Reliability

Long suites remain reportable when execution is interrupted. Recoverable runs resume automatically up to a bounded attempt limit. A run that cannot be recovered ends with a failure reason instead of remaining indefinitely in progress, and suite summaries preserve the expected case count so missing starts are visible. Recovery remains isolated to the run's workspace.

## How Simulations Execute

When a simulation runs, the system instantiates the configured persona and scenario, then executes a full conversation loop:

1. The configured persona generates scenario-conditioned user messages based on its communication style, background, and goals.
2. The full Platform agent pipeline processes each message: Context Graph navigation, state guidance, selected memory context, tool execution, and response generation.
3. If the context graph enters a loop (revisiting the same states without progress), the simulation flags it as a known failure and stops.
4. After the conversation completes, configured metrics are evaluated against the full interaction history.

Text simulations exercise the production reasoning path, including context graph navigation, model decisions, tool execution, and turn policies. A controlled persona replaces the human caller. Production effects are isolated: tools run in simulation mode unless a launch names live reads, simulation traffic stays out of production analytics, and Surface delivery and tools that need an operator's approval are unavailable in simulations.

### Grounded in Workspace Data

Bridge-generated callers can receive a bounded grounding snapshot containing resolved locations, appointment types, visit reasons, providers, transfer targets, and escalation rules from supported workspace configuration and data. The caller prompt instructs the model to use those facts and acknowledge missing categories. This reduces invention but is not a factuality guarantee, and the snapshot does not make a synthetic conversation representative of every production interaction.

### Comparable Runs with Fixed Settings

Bridge callers and simulation judges use zero-temperature settings by default to reduce sampling variance in those components. The agent, current workspace state, external tools, and model providers can still vary, so reruns are comparison evidence rather than deterministic replays.

### Conversation Direction

Simulation sessions support both user-first and agent-first openings, plus an outbound conversation direction where the agent speaks first against task context rather than waiting for the caller. Outbound sessions reuse the same opening path as production outbound voice calls, so the agent's first message reflects the task context (such as the target patient entity) rather than a generic inbound greeting. This is useful for testing proactive outreach workflows, appointment reminders, and other agent-initiated scenarios. Outbound mode requires the agent to produce an opening message at session creation time, so it is incompatible with the deferred initialization used by large batches.

### Batch Execution Behavior

Large batches provide progressive feedback rather than waiting for every scenario to finish before showing results. Scenarios that are ready can begin while the remainder are still being prepared, and completed work remains available if later scenario preparation fails. Sessions that fail before producing a transcript are reported as failures rather than counted as successful completions.

### Entity Binding

Simulation sessions can be bound to a specific patient entity at creation time, giving the simulated conversation access to the same patient context resolution used in production calls. When an entity ID matches a world entity in the workspace, the session resolves caller context directly from that entity rather than relying on phone-based lookup. If the entity does not exist (stale, deleted, or wrong workspace), the session falls back to phone lookup without interruption, and the supplied caller phone number is still recorded and surfaced in greeting metadata. Entity binding is workspace-scoped - an entity from one workspace cannot leak data into a simulation running in a different workspace. Entity IDs must be valid non-zero UUIDs and are validated before the request reaches the agent engine.

Bridge runs also accept an entity ID, which is forwarded to every scenario session and inherited by forked sessions, letting you pin an entire regression suite to a specific test patient.

## World Model and Effect Isolation

Simulations read the workspace context available when the session runs rather than a frozen snapshot. Use a dedicated test workspace or test entities when a stable patient population, schedule, or service configuration is important for comparison across runs.

By default every tool runs in simulation mode, decided when the session starts. Reads and writes alike return a simulated `dry_run` result instead of reaching an integration, a world write, or a platform function, and the same applies to companion-skill sub-tools and forked branches. A case, suite, or benchmark launch can name read tools that run for real, and tools that return a configured result in place of a call. Writes never run for real, and tools that need an operator's approval, such as an endpoint an approval policy gates or a skill marked approval-required, are not offered in simulations. Surface creation and delivery are disabled, which also means human approval paths that depend on surfaces cannot be exercised in a simulation. See [Real Reads and Mocked Results](https://docs.concurrence.com/developer-guide/platform-api/safety/simulation-coverage#real-reads-and-mocked-results).

Each recorded tool call says how it ran: for real, from a configured result, or as a dry run. A check that needs a real system response can be left ungraded, rather than passed or failed, when the call that would supply it was mocked or a dry run.

This makes simulations suitable for testing reasoning, context graph paths, and tool selection. Validate real writes, external-system availability, and approval workflows separately, for example through [live text Playground tools](https://docs.concurrence.com/testing/testing/playground#tool-execution-in-text-mode) with an authorized production workspace credential and agreed synthetic records in connected-system sandboxes.

## Session Persistence and Data Flow

Simulation sessions run through the production reasoning engine, but coverage runs, sessions, forks, turns, and scores are stored as simulation evidence rather than as ordinary production conversation records. Forked sessions receive independent conversation-state copies. Run status and failure fields surface known execution failures. As with any distributed system, consumers should also verify expected case and session counts before treating a batch as complete.

When a simulation run completes cleanly, its evidence includes retained conversation turns, tool and state traversal, and configured scores. Shared evaluation concepts can support comparison, but modality and evidence differences still need to be controlled. Source classification keeps simulation traffic out of production analytics. For interactive sessions, check [Playground test-traffic rules](https://docs.concurrence.com/testing/testing/playground#test-traffic-and-billing) separately. Errored runs remain visible as failures rather than being treated as completed evidence.

Through the Platform API, a coverage session or test conversation can be locked to the digest of a reviewed service configuration. A locked session and its forks run only while the configuration still has that digest. A turn against a changed configuration is refused instead of producing evidence for a different configuration. Each create, step, and fork response reports the configuration digest the turn loaded and the text harness it selected, with a receipt for each model round a harness release answered. Case, suite, benchmark, and bridge launches do not take a lock. See [Configuration Lock and Execution Evidence](https://docs.concurrence.com/developer-guide/platform-api/safety/simulation-coverage#configuration-lock-and-execution-evidence).

## Case Library and Suites in the Developer Console

**Evaluate > Simulations** has three tabs: **Results**, **Unit tests**, and **Test suites**. The Case Library and Suites also open from Console search and are not separate sidebar items. These pages label the service a case runs against as its **Agent**, and a case's simulated caller as its **Test persona**.

* **Results** opens on a **Runs** table of case and suite runs, filtered by agent and by **All runs**, **Suite runs**, or **Case runs**. Each suite launch is one row, so repeated launches of a suite stay separate, and older history loads with **Load more**. A **Metric performance** view lists every metric and assertion check. See [Performance Overview](#performance-overview).
* **Unit tests** is the Case Library: saved cases with search and filters for agent and suite. A case's detail page shows its agent, test persona, scenario, grounding with a link to the bound entity, evaluations, properties, the saved suites it belongs to, and its run history across agents.
* **Test suites** lists suites with their case counts. A suite's detail page shows how it selects cases, its composition with search, and its recent launches.

Workspace admins and owners can create, edit, and delete cases and suites from these pages. Other roles see the buttons disabled.

* **New case** asks for a **Description** (required, up to 2,000 characters), **Scenario instructions** (required, up to 10,000 characters), an optional **Initial message**, **Temperament**, and comma-separated **Tags**. Editing a case changes its description, scenario, and tags. Its test persona, grounding, evaluations, and saved agent are not edited here. Deleting a case removes it from the library and from every suite that lists it, and keeps its past runs.
* **New suite** asks for a **Name** (required, up to 128 characters), an optional **Description**, comma-separated **Required tags**, **Case IDs** (one per line), and **Tags**. A suite runs the cases it lists plus every case that carries all of its required tags. Deleting a suite keeps its cases and past runs.

A validation error from the platform shows in the dialog, which stays open so you can correct it.

Starting a case or suite run opens a setup dialog. The agent you pick applies to that launch only and leaves saved case definitions unchanged. A suite can instead use each case's saved agent. The dialog states the turn limit, how many cases a suite launch runs, up to 200, and how many run at once. A suite launch lists the runs it created and why any case was skipped or failed to start.

A run's detail page shows the run's evaluations and its sessions. Selecting a session shows the recorded conversation, with each turn's state, messages, and tool inputs and results, beside that session's recorded evaluations. Each evaluation shows its expected and actual values, rationale, and justification.

## Benchmarks and Suite Runs

Benchmark runs execute saved cases in batch - selected by suite or by tag - with aggregated scoring and capability-level breakdowns. A benchmark references either a suite ID (which resolves the suite's explicit case IDs and required tags into a combined case set) or required tags directly. The two are mutually exclusive on a single request. Benchmarks can include up to 200 cases per run, so large regression suites execute as a single batch. Benchmark callers get stable run IDs back immediately and can poll for results while the platform controls the execution fan-out internally.

Suites can also be run directly through a dedicated suite run path that enforces suite-based execution. Each suite run is assigned a durable identifier that groups all constituent case runs together, and you can list past suite runs and retrieve aggregate results - status breakdowns, session and turn totals, case coverage, and metric availability. One request can read the summaries of up to 50 suite runs, and another returns one suite run's performance rollup - pass rates, per-metric results, and per-case checks - across every run in it; see [Simulation Coverage](https://docs.concurrence.com/developer-guide/platform-api/safety/simulation-coverage#suite-run-summaries). Suite runs and benchmarks share the same aggregation and metric enrichment, so the scoring view is consistent regardless of how execution was triggered.

Each case in a benchmark can carry its own patient entity ID in its grounding, so different cases can target different test patients within the same benchmark. An explicit entity ID on the benchmark request applies to all cases; when omitted, each case falls back to its own grounding-level entity. This per-case resolution makes multi-patient benchmarks possible without splitting them into separate runs.

Benchmarks answer the question: **does the agent handle an entire test suite correctly?**

## Evaluation Criteria (Evals)

Each case can define evaluation criteria (evals) that execute automatically when a simulation run completes. Evals come in two types:

* **Assertions** validate conversation outcomes. A deterministic assertion is checked in code: whether a phrase appeared in the transcript, whether a particular tool was called, or whether the conversation ended in an expected state. An `llm_boolean` assertion asks a judge a yes-or-no question about the conversation, and its boolean `expected` is the answer that passes. The judge reads the case and the transcript but not `expected`, and reports what it observed. The check passes when that matches `expected`, fails when it doesn't, and is skipped when the conversation doesn't show enough to tell. Legacy assertions, saved with `llm_judge` or a free-text kind, are graded by a judge that returns the verdict itself, and case reads return them with `grading: legacy_verdict`. Case writes accept only deterministic and `llm_boolean` assertions, so rewrite a legacy assertion before saving the case's evals again.
* **Metric checks** compare observed metric values against configured expectations (exact match, numeric range, or string containment).

Eval results are computed per conversation within a run - a run with N conversations yields N verdicts per eval, so each conversation receives its own outcome rather than a single run-level verdict. Runs with no observed conversations fall back to a run-level verdict. Results carry a status (`passed`, `failed`, `pending`, `skipped`, or `error`) plus rationale and turn references when the evaluator produces them. A metric check can also carry a score. A judge's verdict carries a rationale and references, not a score. Do not expect a completed rationale or citation on pending, skipped, errored, or otherwise unavailable evidence.

A pass rate counts only passed and failed verdicts. Error, pending, and skipped verdicts are counted next to the rate but stay out of it, and with no passed or failed verdict the rate is null:

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-7e0ef5ab24ccb4758202607aa09d484358dfcd7c%2Fsimulation-pass-rate.svg?alt=media" alt="In an example of 14 verdicts, 8 passed and 2 failed, so pass_rate is 8 divided by 10, or 0.8. Error, pending, and skipped verdicts are counted beside the rate but stay out of it; each check of a conversation the simulation stopped early is an error verdict."><figcaption><p>Every rollup reports its error, pending, and skipped counts next to its pass rate.</p></figcaption></figure>

An `error` verdict means the check couldn't be graded, because grading broke, such as a judge answer that never arrived, or because the simulation stopped the conversation before the agent finished it. It doesn't mean the agent failed the check, and a conversation stopped early has no score. When the agent's own turn fails, a model provider error included, or doesn't finish in time, the conversation's checks aren't `error`: each is marked `failed` without being graded, and the conversation scores 0. The conversation stops early instead when the turn fails for a reason that isn't the agent's, such as a storage error or a configured model that isn't available. A `pending` verdict has no grade yet. A `skipped` verdict did not apply or could not be answered from the conversation's evidence. A conversation that forked is graded through its branches, so its own checks are skipped.

For active AI-query metrics referenced by an eval definition, the completion path attempts a justified computation containing a value, transcript-grounded explanation, and supporting turn indices. Case context is included when available. Other metric values can remain value-only. A computation that fails is recorded as an `error` verdict, an answer the metric's judge can't determine is `skipped`, and a check whose value isn't available yet stays `pending`.

The platform attempts eval-referenced AI-query metrics when a run completes so callers do not have to wait for the batch pipeline in the normal case. That path can use different execution settings from batch evaluation, so values are not promised to be bit-for-bit identical. A failed compute does not fail the run. Reads expose `pending`, `available`, or `unavailable` plus a result count and last-check time. Clients must refresh or poll the relevant run endpoint to observe a later state. Benchmark responses aggregate availability across constituent runs.

## Production Evals

The same eval concepts are available for eligible completed production conversations. Workspaces can define assertions and metric checks separately from simulation cases. A production eval definition specifies the eval type, an eval key, and the expected outcome, and can be scoped to a specific service or applied workspace-wide. A service-scoped definition with the same key overrides the workspace-wide one for that service's conversations.

Eligible completed calls with the required conversation evidence can be evaluated on demand. The persisted verdict shape aligns with simulation evals, including status and optional score, rationale, justification, and turn references. Re-evaluating replaces the prior verdict set for that call. Production and simulation share evaluator concepts, but modality, available evidence, model execution, and source data can still affect results.

## Performance Overview

The Platform API's performance operation aggregates recent graded runs into an overall pass rate, per-metric trends, and per-case and per-suite rollups, each with its error, pending, and skipped counts and drill-down to individual conversation verdicts. Each metric's per-run trend carries its mean value, pass count, and measured count.

In the Developer Console, the **Metric performance** view under **Simulations > Results** lists every metric and assertion check as one row with its pass rate and result count. A row expands to the per-conversation verdicts behind it, and each verdict links to its conversation trace. Scope the view to all suites and cases or to one of them, and choose whether the numbers cover the latest run, the last five runs, or all recent runs. The view reports each check as it stands and does not compute an overall score.

## Agent Readiness

The Agent Readiness dashboard provides an informational view of simulation evidence using a Developer Console rubric. It groups criteria into basic, intermediate, and advanced tiers across areas such as task completion, coverage, safety, and communication quality.

Implemented criteria are computed in the console from simulation run data, coverage state, and session history. Criteria can show pass, fail, or not measured. Some metric-backed and voice-quality checks remain not measured until their data is wired into the rubric. The displayed level is advisory and does not deploy an agent or block a version update.

The readiness rubric enforces minimum evidence thresholds - for example, sustained pass rate criteria require a minimum number of completed simulation runs before they are evaluated. This prevents premature pass/fail judgments on insufficient data.

## Permissions

Simulation reads - listing runs, viewing coverage graphs, querying session turns, retrieving benchmark results - require the Service view permission, while writes - creating runs, stepping sessions, executing benchmarks, deleting coverage graphs - require the Service update permission. The Developer Console enforces the same model: simulation write actions are disabled for workspace roles without Service update, and only admin and owner roles can trigger simulation runs from the console.

## Using Simulations in Practice

### Pre-Deployment Validation

Before deploying a new agent configuration or promoting a version set, run your suites to verify that existing capabilities still work and new changes behave as expected.

{% hint style="warning" %}
Treat safety-related suites as required evidence. A failing safety case should stop the team's manual promotion decision until the issue is resolved.
{% endhint %}

The Platform API can tie that decision to the configuration that was tested. Read the configuration digest of each version set under review, then promote the candidate version set with those digests. The promotion applies only while the reviewed digests still hold and returns a receipt that records the digest of the promoted configuration. A receipt records what was stored. It is not a quality verdict and does not show what later sessions ran. See [Promote a Reviewed Configuration](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services#promote-a-reviewed-configuration).

### Regression Testing

When you update Context Graphs, state guidance, tools, or agent configuration, run your full test suite to catch unintended side effects. An improvement to appointment scheduling logic should not degrade medication safety checks.

### Coverage Expansion

As you discover new edge cases in production, add them as cases. Over time, the suite becomes a broader regression catalog, but it cannot prove coverage of every future input or boundary failure.

### Simulation Bridge

For exploratory testing where you do not yet know which specific cases to write, the simulation bridge generates scenario variations from a natural-language objective. You describe what you want to test ("stress test the cancellation flow" or "verify the agent handles insurance denials gracefully"), and the bridge generates diverse scenarios with different persona backgrounds, temperaments, and complications.

Each generated scenario runs as a full multi-turn conversation where a model-driven persona makes decisions at each turn based on the scenario's goals and the agent's responses. The bridge records simulation evidence such as visited Context Graph states, tool calls, and turn-level evaluation inputs. It does not expose a hidden chain of thought.

This approach is useful for early-stage coverage discovery - finding the edge cases that should become permanent cases - and for ad-hoc validation when a configuration change touches many flows at once.

#### Target Specs

A target spec defines what success looks like for a bridge run. Instead of just exploring the conversation space and scoring with generic metrics, you can declare the specific outcomes the agent should achieve and the boundaries it should respect.

Target specs have four components:

| Component               | Purpose                                                                                                                  |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| **Desired states**      | Context graph states the agent should reach during the conversation                                                      |
| **Non-desired states**  | States the agent should avoid - either hard (instant failure) or soft (score penalty with rationale)                     |
| **Ordered pathways**    | Expected sequences of states the agent should traverse in order                                                          |
| **Completion criteria** | Conditions that define success - state-based (agent reached a target state) or tool-based (agent called a specific tool) |

Each scenario session is scored against the target spec at completion: 100 means all criteria passed, 0 means the agent entered a hard-forbidden state, and intermediate scores reflect partial success with soft misses and rationale explaining what was missed.

#### Plan Inference

You do not need to author target specs by hand. The platform can infer a target spec from a natural language objective, grounded in the service's actual context graph states and available tools.

Two workflows are supported:

* **Preview and edit** - Submit your objective and get back an inferred target spec with rationale explaining why each state was included. Review the spec, add or remove states, tighten pathways, then run with the final version. This gives you full control over what gets tested.
* **One-shot** - Submit your objective with auto-inference enabled, and the bridge infers the spec and runs scenarios in a single call. The inferred spec and rationale are returned alongside the results so you can see what was tested and adjust for the next run.

The inferred spec only includes states and tools that actually exist in the service's context graph. Any hallucinated names are filtered out before the spec is applied.

#### Coverage-Driven Candidate Selection

When a target spec or coverage mode is active, the bridge steers each conversation turn toward unexplored territory. At each turn, the system scores candidate user responses based on coverage goals: responses that would reach uncovered states or advance an ordered pathway get priority, while responses that would enter forbidden states are deprioritized. The top candidate's expected direction becomes a soft goal hint for the simulated caller, though the persona's voice and behavior remain the source of truth.

This supplements unguided exploration with targeted candidate selection intended to reach useful uncovered paths more often.

#### Forking at Decision Points

When two top-scoring candidates aim at different conversation branches, the bridge can fork the session into parallel children at that decision point. Each child continues independently with its own target spec scoring, sharing a per-scenario fork budget that limits total branching.

Forking multiplies exploration without replaying conversation history. A single scenario that reaches a scheduling confirmation state can fork into "patient confirms," "patient reschedules," and "patient cancels" - three full conversation paths from a single starting point.

#### Reusing Run Inputs

Bridge runs persist the original request inputs (objective, target spec, exploration settings) and generated scenarios (persona backgrounds, temperaments, instructions, and initial messages). Reusing those inputs turns an exploratory run into a comparable regression case, but it is not an exact replay: the current agent version, context graph, workspace data, and model sampling can change the result.

#### Session Tagging

Each session carries tags linking it back to the specific persona and scenario that generated it. The results view can show which persona produced which conversation and how the agent performed against each one. Forked child sessions inherit the parent's tags, so the full exploration tree is traceable back to a single scenario.

### Interaction Insights

The simulation trace provides best-effort observed evidence for a session. When available, it can include user and agent turns, context graph states and transitions, executed tool calls and results, and emitted actions.

The trace does not expose hidden model reasoning, tools that were merely considered, or a causal claim about which memory changed a response. Because trace evidence is reconstructed from a best-effort session record, a run can have partial or unavailable interaction detail. Use the retained transcript, executed actions, status, and evaluation results together when reviewing the run.

### Test User Configuration

Simulation test users can be configured with additional attributes to test user-specific agent behaviors:

* **User variables** - Key-value pairs (nonsensitive and sensitive) that are passed to tools during invocation. Use these to test workflows that depend on external system IDs, plan types, member numbers, or other user-scoped data.
* **Preferred language** - ISO 639-3 language code (e.g., `eng`, `spa`) to test multilingual agent behavior.
* **Timezone** - IANA timezone (e.g., `America/New_York`) to test time-sensitive workflows like appointment scheduling across time zones.

These attributes are set on ephemeral test users at creation time. Sensitive variables are encrypted and cannot be read back after being set - they are only available to tools during the conversation.

### Scenario Design Tips

* **Start with real interactions.** Review production conversations to identify patterns worth testing.
* **Test failure modes, not just happy paths.** Include scenarios where the user is confused, uncooperative, or presenting ambiguous information.
* **Vary persona characteristics systematically.** Test the same scenario with users of different ages, literacy levels, and communication styles to check that the agent adapts appropriately.
* **Include multi-turn complexity.** Some issues only surface across longer conversations where the agent must maintain context and consistency.

## Simulation Coverage

While cases verify specific known behaviors, simulation coverage systematically explores context graph state space to find gaps you have not tested yet. It uses a branch-and-bound algorithm that steers simulated conversations toward unvisited states, tools, and transitions - turning random sampling into targeted exploration.

### How Coverage Works

A coverage run creates a knowledge graph of your agent's tested behavior. Each conversation becomes a session in the graph. Each agent turn is stored individually, recording which context graph state the agent was in, which tools were called, and what scores were assigned.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-d1039cbdde92fac77a02865cc5719755400c3f5b%2Fsimulation-coverage-paths.svg?alt=media" alt="Simulation coverage can fork sessions into alternative continuations. Observed states show session evidence; ghost nodes identify authored states the run has not reached."><figcaption><p>Coverage is evidence of exercised paths, not proof of safety or exhaustive behavior.</p></figcaption></figure>

The knowledge graph has two layers:

* **Observed turns** - Retained turns from recorded sessions, with the context graph state, tool calls, and available evaluation scores
* **Topology overlay** - Ghost nodes representing context graph states that exist in the state machine definition but have never been reached in any session. These are the gaps in your coverage.

### Fork Primitive

The fork primitive is what makes branch-and-bound exploration practical. At any point in a conversation, you can fork a session into multiple children. Each child starts from the same conversation state as the parent but receives a different simulated user message. This lets the system explore multiple branches from a single decision point without replaying the entire conversation history.

For example: a session reaches a state where the patient can either confirm an appointment, ask to reschedule, or cancel. Instead of running three separate conversations from scratch, the system forks the session three ways. Each fork picks up at that decision point with a different patient response, and all three branches continue independently.

For each fork request, the server copies the parent's stored conversation state into child sessions and steps each child with its assigned message. Parent-child identifiers form a tree for the branches that were successfully created. Verify returned child and error results before assuming every requested branch completed.

### Coverage Scoring

Each session is scored on the evaluation metrics you configure. Scores are attributed per-session, not per-state-visit, so a single session that visits a state twice does not inflate that state's coverage count. The knowledge graph aggregates pass rates per state, giving you a heat map of where your agent performs well and where it struggles.

Ghost nodes - states with zero recorded sessions - are natural exploration targets. A low state-associated pass rate identifies sessions worth reviewing. It does not by itself prove that the state caused the failures.

### Write Isolation

Coverage sessions run every tool in simulation mode rather than using database branches, so no tool call reaches an integration, a world write, or a platform function. Simulation evidence stays out of production analytics. Validate real tool results and approval behavior separately.

### Using Coverage in Practice

* **Before promoting a version set** - Run a coverage campaign against the new version. Compare the knowledge graph against the previous version's graph to identify regressions or new gaps.
* **After modifying a context graph** - Coverage testing surfaces states that your changes may have made unreachable, or new states that no existing test covers.
* **Periodic comparison** - Schedule coverage runs to track how agent behavior changes over time. Drift in coverage scores can indicate that graph, prompt, model, data, or tool-response changes affected paths you thought were stable.

Coverage runs, sessions, and turn-level data are available through the Platform API. Simulation evidence remains on simulation-specific surfaces. The unified Runs inventory lists conversation and framework runs, not coverage sessions.

Coverage runs are also available through the [Agent Forge CLI](https://docs.concurrence.com/reference/agent-forge#simulation-coverage) (`forge platform simulation` commands).

{% hint style="info" %}
**Developer Guide** - For simulation endpoints (personas, scenarios, unit tests), see [Simulations](https://docs.concurrence.com/developer-guide/classic-api/core-api/simulations) in the developer guide. For coverage endpoints (runs, sessions, fork, graph), see [Simulation Coverage](https://docs.concurrence.com/developer-guide/platform-api/safety/simulation-coverage).
{% endhint %}

## Evaluation Framework

Simulations are most effective when driven by a structured metrics catalog. Each metric in the catalog defines three things:

* **Scoring method** - Pass/fail case (binary) or scaled assessment (0-100)
* **Target threshold** - The minimum acceptable score for that metric
* **Weight** - How much the metric contributes to the overall evaluation, reflecting business priority

Teams commonly divide metrics into two decision classes. **Required checks** are binary criteria that should stop a manual promotion when they fail, such as medical escalation accuracy, scope-of-practice adherence, or privacy compliance. **Improvement targets** use scaled scoring to guide prioritization, such as explanation clarity, empathetic response, or question comprehension. The platform records the evidence but does not automatically block a version-set update.

The catalog serves as organizational alignment on what success means. When you update an agent configuration, the relevant metrics tell you whether the change helped, hurt, or had no measurable effect.

### Continuous Evaluation

Running simulations once before launch is useful. Running them on a regular cadence - weekly or per release, depending on development pace - produces comparable evidence over time. Use the run history and your monitoring process to look for regressions. The platform does not turn every change in a score into an automatic deployment decision.

### Production Calibration

Comparing simulation and production can expose a calibration gap. If simulation shows 90% task completion but a comparable production population shows 75%, investigate scenario coverage, population differences, evidence availability, channel effects, system latency, tools, and scoring definitions before assigning a cause. Add verified production failure modes to the simulation suite when they reveal missing coverage.

{% hint style="info" %}
**See also**

* [Playground and Interactive Testing](https://docs.concurrence.com/testing/testing/playground) for interactive testing, tool testing, and test traffic handling
* [Voice Simulation](https://docs.concurrence.com/testing/testing/voice-simulation) for text-tier behavior coverage and separate real-audio validation
* [Metrics and Quality](https://docs.concurrence.com/testing/testing/metrics) for post-simulation scoring dimensions
* [Drift Detection](https://docs.concurrence.com/testing/testing/drift-detection) for monitoring coverage regression over time
* [Agent Forge](https://docs.concurrence.com/reference/agent-forge) for CLI simulation and coverage commands
  {% endhint %}


# Playground and Interactive Testing

Test agents interactively in the Developer Console playground through voice or text, with an execution stream, an inspector, and related testing workflows.

Use the Playground to try a configured service and inspect its response, tool activity, and state transitions. Start with [First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation) for the step-by-step text walkthrough, including workspace access, service readiness, and cleanup.

This page explains the available modes and how interactive testing relates to tool tests, timelines, and [simulations](https://docs.concurrence.com/testing/testing/simulations). Use simulations for repeatable pre-deployment evidence.

## Playground Modes

Open **Evaluate > Playground** in the Developer Console. The Console lists services as agents and agents as personas. Each active service appears as a card with its description, its channel, and the **Persona** and **Context graph** it runs, each with the version the service's release pins, or **Latest** when no release is set. The card's name links to the service's page, and each row links to its configuration page. A voice card names the runtime its calls use, **Concurrence voice** (`concurrence`), **GPT Realtime voice** (`gpt_realtime`), or **Eleven Realtime voice** (`eleven_realtime`): the service's `voice_config.session_provider`, else the agent version's, else the default (see [Session Provider](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services#session-provider)). Use **Find an agent** or the channel filter to narrow the cards. Choose **Test** to open the service in its configured mode:

* **Voice** - a browser-based voice call with live audio, for a voice service
* **Text** - a turn-by-turn text conversation, for a text service

Eleven Realtime and GPT-Live support inbound phone calls, app voice sessions, Playground, and test calls. GPT-Live runs multi-state Context Graphs in US workspaces without regional data residency. Compare their graph and residency requirements in [Choosing a Realtime Voice Family](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#choosing-a-realtime-voice-family).

In the Playground, an Eleven Realtime service starts as an [app voice session](https://docs.concurrence.com/developer-guide/guides/app-voice-session) and is hold to talk: hold the button while you speak, release to finish, and the agent answers. Starting needs the member role or above. The session is recorded and billed like a call. The start request carries no conversation context. The values you enter are set on the call once it is live, which needs the admin or owner role. When setting them fails, the Playground says so, and tools bound to those keys fail. See [Set Context on a Live Voice Call](https://docs.concurrence.com/developer-guide/guides/live-call-context).

A voice service card also offers **Test in text**, which opens the same service as a turn-by-turn text conversation so you can test it without a microphone. The voice card's **Test** control still opens the browser voice call. A text service card offers only the text mode.

Within a session, you can switch a voice service between **Voice** and **Text** using the mode selector. Switching mode starts a fresh conversation rather than reopening the conversation from the other mode.

A card can offer **Resume last session**, which reopens the latest text session you started for that service in the same browser tab, while it is still open. This applies to the text session on a text service and to a text session started on a voice service. Ended sessions are runs: open them in **Evaluate > Runs**, or from the Playground's **View runs** link. Resume does not apply to voice calls.

The Console runs text mode on the public conversation operations and background-delivery events. See [Text Sessions](https://docs.concurrence.com/channels/text-sessions) for the underlying REST/SSE contract.

A **Start a session** dialog opens before each session. In text mode it sets who speaks first, **User first** or **Agent first**, an optional **Test identity**, and any declared conversation context. In voice mode it sets the microphone, an optional **Caller ID**, and any declared conversation context. Text mode simulates tools by default. An authorized user can explicitly choose live tools for a new text conversation after reviewing the connected-system effects. Voice mode follows the selected voice runtime's tool behavior. Starting stays disabled until the service has published agent and Context Graph versions. In user-first mode, the session waits for your opening message. In agent-first mode, the agent opens with its greeting.

When the service declares `accepted_context`, the text and voice start dialogs include a **Conversation context** field for each declared key, labeled with its type, whether it is required, and its description. The Console checks the values before the session starts: required fields must be filled, number fields must be finite numbers, and string values are limited to 8,192 characters. A text conversation accepts up to 50 context values and a voice test call up to 100. The values are sent as the `context` map when the session starts. An Eleven Realtime service sets them on the live call instead, within the limits in [Set Context on a Live Voice Call](https://docs.concurrence.com/developer-guide/guides/live-call-context). See [Pass Context to Tool Parameters](https://docs.concurrence.com/developer-guide/guides/conversation-context) for the service schema and binding setup.

### Tool Execution in Text Mode

A text Playground conversation uses simulated tools unless you explicitly select live execution before starting it. Simulated tools return a `dry_run` result instead of calling connected systems. Use this mode to inspect reasoning, tool selection, and conversation flow.

Live execution lets the conversation's tools call connected systems and make real changes. It requires a workspace credential with the `Workspace.update` permission, granted to admins and owners by default, and a workspace enabled for live Playground tools. Test credentials, credentials designated for testing, non-production credentials, and external-user credentials cannot start or continue live conversations. Choose an agreed test workspace, synthetic records, and connected-system sandbox accounts appropriate to the exercise.

The choice is fixed for the conversation's lifetime, including when you resume it. To change modes, end the conversation and start a new one. Live mode does not bypass a tool's approval or identity requirements. Closing the session does not reverse an external action.

Both modes retain Playground test-traffic classification. A live tool can change a connected system even though the conversation remains excluded from production reporting and billing. Inspect the recorded tool result and the connected system when checking whether an action completed.

For the API and TypeScript SDK flow, see [Playground Tool Execution](https://docs.concurrence.com/developer-guide/platform-api/conversations#playground-tool-execution).

### Live Inspection

A text or voice session shows an execution stream. Each turn shows the user's message, its state changes, every tool call, and the agent's response, with timing and, on voice, interruption evidence. On text, each state change names the exit condition it took. A tool call stays collapsed until you open it, then shows its inputs and result together. Messages have a copy action, and a long tool error is shortened, with options to expand and copy it. The session header shows its status and current state.

A resizable inspector beside the stream has two tabs:

* **Stream** - the session's turns and the operations each recorded, with search, a failed-only filter, and the prompt logs, which load when you open them.
* **Run details** - totals, the current state, anything that needs attention, such as a pending approval or a failed tool, the executed state path, and the session's setup. Under **Current configuration**, **Persona** and **Context graph** show the configuration the service's release pins, or the latest version when no release is set. The Console notes that this does not confirm which version the session ran.

Text mode shows conversation responses and available persisted turn details, supplemented by live background-delivery events for the session's own conversation only. Voice mode uses its live observer connection. The stream shows observed tool execution and duration. It does not expose hidden model reasoning, and event completeness depends on the session path and available evidence.

When a background skill or deferred tool completes during a connected session, supported delivery events can add the result and a follow-up message to the stream. The Console doesn't resend a turn that fails. After a send error it reloads the conversation, so a turn the server finished still appears.

A text session that fails to start shows the API's reason in the start dialog. If ending the session fails, the session stays live with the error, so you can end it again. Reloading the page reopens the same conversation.

### Approval Gates in the Playground

When an integration write is parked for approval during a live text Playground conversation, the UI can show an approval card with Approve and Reject controls. The decision is stored independently of the streaming connection and is consumed by the conversation on a later turn. Tool-call logs record the observed execution result. Do not rely on model narration alone as proof that an approved external write completed. See [Approval-Gated Integration Writes](https://docs.concurrence.com/developer-guide/platform-api/integrations/approval-gated-integration-writes) for the full contract.

### Caller Identity

The start dialog sets the identity for the session. Voice mode exposes **Caller ID**, the phone number used to identify the caller; blank uses the default playground caller, which matches no patient. Text mode exposes **Test identity**, the UUID of the entity the conversation is about; a value that isn't a UUID is flagged before the session can start. Use an agreed synthetic identity when testing caller-specific context. The value is remembered per mode, so inspect it before starting a new test.

Leaving the field blank omits that explicit identity from the start request. It does not remove data or tools already available to the service. Use a service configured for context-free testing when no patient context is intended.

Agent Forge supports caller context on tracked simulation sessions: `session-create` and `smoke-test` accept `--caller-id` for an E.164 phone number, while `session-create` and `bridge` accept `--entity-id` for direct entity binding. The bridge command does not accept `--caller-id`. Omit the supported context flags to simulate an unknown caller. See [Agent Forge CLI](https://docs.concurrence.com/reference/agent-forge#simulation-caller-and-entity-context) for usage.

### Channel-Appropriate Output

Text playground and simulation sessions automatically use the web channel profile, so the agent omits voice-specific markup (such as TTS pronunciation hints and vocal annotations) that would otherwise appear as literal text in the chat interface. Voice playground sessions use a separate connection path and apply the voice channel profile. You do not need to configure this - the platform selects the correct profile based on which playground or simulation path you use.

### Promoting a Session for Deeper Analysis

The current text Playground creates durable conversations. To carry an interesting exchange into repeatable evaluation, record the service configuration, input, expected result, and observed answer, then create the corresponding case in your [simulation workflow](https://docs.concurrence.com/testing/testing/simulations).

Coverage session promotion belongs to the separately supported simulation APIs. Do not pass a text conversation ID to an API that expects a coverage session ID. See [Simulation Coverage](https://docs.concurrence.com/developer-guide/platform-api/safety/simulation-coverage).

### Branch Explorer

The current text Playground does not expose a Branch Explorer control. To compare alternative caller phrasings, run separate tests with the same reviewed configuration and starting context, or use the supported [simulation coverage and forking workflow](https://docs.concurrence.com/developer-guide/platform-api/safety/simulation-coverage). A new text conversation is a new test, not a fork of an earlier turn.

## Tool Testing

The standalone `/tools/execute` test path runs world tools outside a conversation. Skills, integration endpoints, platform functions, and workspace data queries use their own test or invoke endpoints, each with separate authorization and side-effect semantics.

World-tool tests read the live workspace context. Treat them as real operations unless the specific path documents otherwise:

* **World-event source tag** - Supported world writer handlers persist with `source=tool_test`. That source is excluded from entity projection, production analytics, billing, and outbound sync, but the event write itself still occurs.
* **Dry run** - For supported world writer handlers, `dry_run=true` returns a simulated result without persisting the write. Verify support for the tool you are testing.
* **Other tool families** - Skill and integration test endpoints can call models or external systems. Use test credentials, non-production records, and vendor sandbox environments where available.

The world-tool resolver returns the service bindings, available schema metadata, tier, and write classification. Execution returns the observed result, duration, source, dry-run flag, and any reported blocked effects or error. Empty metadata fields do not imply that an unknown tool is safe to execute.

Simulation-tagged events can contribute to visible entity state while remaining excluded from production analytical pipelines. Text Playground conversations carry an explicit test-traffic source in both simulated and live tool modes. See [Test Traffic and Billing](#test-traffic-and-billing).

Tool testing answers the question: **does this tool do what I expect with this input?**

{% hint style="info" %}
**Permissions**: Tool testing requires admin or owner access to the workspace. This is a developer workflow, not a production testing mechanism - use simulations for pre-deployment validation. For the API surface, see [Tool Testing](https://docs.concurrence.com/developer-guide/platform-api/functions/tool-testing) in the developer guide.
{% endhint %}

## Test Call Error Reporting

When a test call cannot start because of a configuration problem, the platform rejects the connection with a typed error code and a human-readable explanation. That covers, on either runtime, a service whose configuration can't be loaded, such as one that does not exist or whose configuration doesn't load in time, and an agent that can't be loaded for a reason the platform can name, such as a missing agent version or an unpublished context graph. On the platform-managed runtime it also covers an agent that fails to load for any other reason, with a generic code that names the type of failure. On `gpt_realtime`, any other setup failure plays the [safe exit](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#graceful-degradation) in the browser instead, without a transfer. When a test call that carries conversation context can't load its service configuration, agent version or context graph, the refusal is one error that asks you to start a new test call, in place of the specific code. This gives developers immediate feedback about what to fix instead of silently starting a degraded session. Error codes are stable identifiers that frontends can use to display targeted banners or dialogs. Production calls are not rejected this way: a phone call that can't be set up takes the [safe exit](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#graceful-degradation).

## Call and Turn Timelines

The call-detail API exposes a typed playback timeline and a timeline-only endpoint. When timing evidence exists, segments can be grouped into caller, agent, operator, tool, and system lanes. Older, partial, or unsupported records can return an empty timeline or estimated offsets, so consumers must handle missing precision.

In the console, the multi-track timeline displays colored blocks for segments like speech, tool calls, state transitions, silence, and barge-in events, with block colors communicating meaning: caller tone, agent greeting versus filler versus interrupted speech, tool success or failure, and system events. When a recording is available, a playhead tracks the current position across all lanes and supports seeking to any point in the call.

The voice playground provides a turn-oriented inspection view from the observer evidence it receives. Depending on the turn, details can include the selected action, state transitions, tool input and output, and latency. Missing observer events produce correspondingly partial detail.

## Smoke Tests

Agent Forge includes commands for verifying the public text-conversation path. Use `forge platform conversation create` to create a durable conversation, `forge platform conversation send-message` to send a REST turn, and `forge platform conversation poll` when background work remains pending. The Python build's `text-ws-smoke` command tests the Sessions WebSocket. See [Agent Forge CLI](https://docs.concurrence.com/reference/agent-forge#text-conversation-testing) for usage.

The text Playground exercises the public conversation-create, turn, history, and close operations through one interface. For an executable client with independent history and closure checks, use [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation).

## Test Traffic and Billing

Supported test paths attach non-production source or traffic-class markers so downstream pipelines can exclude them from production reporting.

* **Test calls in Runs** - In the Developer Console's unified Runs view, a run's **Direction** detail distinguishes playground, simulated, and test calls from inbound and outbound production calls.
* **Test caller numbers (voice)** - Workspaces can designate specific phone numbers as test caller numbers. Inbound calls from these numbers are tagged as test traffic and excluded from billing, metric scores, analytics, and entity views. The call follows the normal inbound path for credentials, greeting, and audio, but its tools run in simulation mode and return a `dry_run` result instead of executing.
* **Test credentials (text)** - The same concept extends to text channels through a test credential allowlist. Text turns initiated by a designated test credential are tagged as test traffic, excluded identically to voice test caller numbers, and run tools in simulation mode. The allowlist applies only to workspace-authenticated credentials, not external user credentials. A test credential writes only to conversations a test session started: a turn, close, delivery acknowledgement, channel switch, or approval decision on any other conversation returns `403`, and its sessions WebSocket connections get their own conversation thread, so they never resume a real client's conversation. Text Playground sessions simulate tools unless an authorized user explicitly selects live execution for a new conversation. Test credentials cannot select or drive that live mode.
* **Playground exclusion** - Playground voice calls on `concurrence` and `gpt_realtime` are excluded from metric projection. An Eleven Realtime session started from the Playground is recorded, billed and counted in metrics like a call. Text Playground conversations retain their test-traffic source in either tool mode and are excluded from production analytics, production evaluations, chart sync, and billing. A connected system can still be changed by a live tool call.

Managing test caller numbers and test credentials requires workspace admin or owner permissions.

Simulation usage is metered and priced separately from production usage: every billing meter carries a traffic class, so testing activity does not inflate production cost reporting and simulation traffic can carry different rates. Simulation metering covers run completions, wall-clock simulation time, evaluation results, and LLM token consumption for scenario generation, evaluation judging, and simulated caller turns.

{% hint style="info" %}
**See also**

* [Simulations](https://docs.concurrence.com/testing/testing/simulations) for repeatable scenario-based verification and regression suites
* [Voice Simulation](https://docs.concurrence.com/testing/testing/voice-simulation) for choosing between text-tier coverage and real-audio validation
* [Agent Forge CLI](https://docs.concurrence.com/reference/agent-forge) for terminal-based testing commands
  {% endhint %}


# Black-Box Voice Testing

Black-box voice testing with Arbiter places real calls and grades what the caller observes. Logical tests in text simulation inspect internal evidence.

Black-box voice testing places a real phone call to a voice agent and evaluates what the caller can observe. Arbiter, the separately provisioned voice-testing workspace, plays the caller. Logical testing in text simulation answers a different question by inspecting the agent's internal path. Both test correctness, and each supports different conclusions.

## Logical and Black-Box Evidence <a href="#testing-tiers" id="testing-tiers"></a>

* **Logical tests** send synthetic caller text through the production reasoning path. Inspect Context Graph states, tool calls and arguments, response content, and configured evaluations.
* **Black-box calls** use Arbiter to call the agent's number and act as the caller. Inspect call evidence to assess task correctness, speech, timing, interruption recovery, and call completion.

Teams can reuse the same scenario intent and review criteria across both test types, but the platform does not treat their evidence as one identical run. Text coverage does not exercise telephony or audio transport. A black-box call does, but it cannot see the tool calls behind what the agent says.

## Logical Tests in Text Simulation <a href="#text-simulation-coverage" id="text-simulation-coverage"></a>

Text simulation runs the actual context graph, model decisions, tool execution, world-model access, and turn policies without allocating a live audio session. The caller side is generated as text.

Tools on this path run in simulation mode and return a simulated `dry_run` result. A case, suite, or benchmark launch can run chosen reads for real or return configured results. Writes, approval-gated tools, and companion skills do not run for real.

Simulation effects are isolated by source:

* World-model writes retain simulation provenance.
* Simulation evidence stays out of production analytics, and no simulated tool call reaches production EHR delivery.
* Surface delivery and the approval workflows that depend on it are disabled.
* Reads use current workspace state, not a frozen snapshot or temporary database branch.

Use dedicated test entities when a stable starting point matters. Saved cases, suites, forks, and coverage graphs make repeated runs comparable, but model sampling, current workspace data, and updated agent versions mean reruns are not guaranteed to be byte-for-byte identical.

A text simulation of a voice service runs the text tier only. Its execution evidence reports the configuration digest the turn loaded, with no harness selection and no harness receipts, so it does not show which voice harness release a call runs. Use a black-box call for evidence about the voice path.

## Black-Box Calls with Arbiter <a href="#real-audio-testing" id="real-audio-testing"></a>

Arbiter dials the target's phone number, speaks as a scripted or model-driven caller, and records the call. Its assertions read call evidence. They do not read the target's states, prompts, or tool calls, and Arbiter does not mock the target's endpoints. The same suite can therefore test a Concurrence agent or an external phone agent at an approved number.

A case can use these caller behaviors where the workspace is provisioned for them:

* A scripted caller with fixed lines, or a model-driven caller with a persona
* A primary language and alternate languages
* Keypad presses to navigate a phone menu
* A one-time code received by text message and returned by voice or keypad
* An interruption at agent speech onset, after a delay, on a chosen agent turn, or on a spoken phrase
* Repeated runs of one case with a minimum pass rate

Each artifact supports a specific inference:

* **Recording.** Review the audio to establish what was said and how the agent handled the caller. A two-channel recording supports acoustic interruption measurements.
* **Transcript.** Use it to find and review responses, language, disclosures, and spoken handoffs. Check the recording when the wording or timing matters.
* **Call status.** Inspect completion, no answer, timeout, and which side ended the call. Investigate the target separately to establish an internal cause.
* **Keypad and text-message events.** Check which digits the caller pressed and whether a code arrived and was returned. Verify the target's acceptance separately.
* **From and To numbers.** Check the recorded caller ID and dialed target. Verify which synthetic record the target matched in that system.

Arbiter cannot see tool calls. An agent that says an appointment is moved can satisfy a spoken-confirmation criterion while the write at the destination failed. Verify the result in the target system. Calls reach the real target, so actual side effects are possible. Use synthetic records, test numbers, and test endpoints.

Review the reason for each inconclusive check. It can reflect missing or unreliable evidence, an incomplete call, a judge without a verdict, an unmet time-window prerequisite, or a simulated caller that did not send the required keypad digits or code. Other checks on the call retain their own verdicts.

Black-box calls also exercise the media path:

* Audio session startup and media attachment
* Speech recognition and synthesized speech quality
* Barge-in, silence, and turn-boundary behavior
* End-to-end latency and disconnect handling
* Cold-start and concurrent-call capacity

These calls are slower and environment-dependent because they use the real media path. Run them for caller-facing workflows, audio changes, pre-release checks, and capacity validation. Keep broad branch coverage in logical tests.

## Choosing a Test Type <a href="#choosing-a-tier" id="choosing-a-tier"></a>

* Use **logical tests** for context graph changes, prompt and tool regressions, saved-case suites, and systematic state exploration.
* Use **black-box calls** for the caller's end-to-end outcome, for speech, timing, transport, or fleet changes, and for a phone agent whose internals you cannot inspect.
* Use both when a release changes agent behavior and the voice path together.

[Healthcare Agent Testing Method](https://docs.concurrence.com/testing/testing/healthcare-agent-testing) shows how to combine both with external-action checks and production evaluation.

## Interfaces

The Developer Console Simulations workspace and the Platform API coverage resources manage text-tier cases, suites, runs, sessions, forks, and graphs. Agent Forge exposes the same supported coverage surface through `forge platform simulation ...` and the bridge shortcut `forge platform sim bridge ...`.

Black-box calls run through separate call-based test workflows. They are not configuration-space sampling jobs. Manage Arbiter suites in the voice-testing workspace or with the `arbiter` CLI described in [Run Arbiter Voice Tests](https://docs.concurrence.com/developer-guide/guides/arbiter-voice-tests).

### Managed Voice Test Workspace

Where the separate voice-testing workspace is provisioned, teams can define a target agent, create suites and test cases, and reuse a named persona or supply an inline persona. A reusable persona carries synthetic caller context across cases. Choose a provisioned caller-ID number when the scenario depends on phone-based lookup. A persona's number is not an exclusive reservation and may be reused by other cases.

Inspect **From (caller ID)** and **To (target)** separately in run details. A missing caller ID is unknown, and a target shown as intended but not dialed is configuration evidence rather than proof that a call used that number. Validate any corresponding synthetic record in the target system separately.

A target referenced by active suites cannot be deleted (`409`). When only archived suites reference it, deletion requires confirmation and also deletes those linked archived suites and their cases. Preserve needed test definitions before accepting that deletion.

This workspace has separate access and lifecycle controls from Platform simulation coverage. Its availability does not imply a public Platform API for these voice-testing resources.

{% hint style="info" %}
See [Simulation Coverage](https://docs.concurrence.com/developer-guide/platform-api/safety/simulation-coverage) for the supported API contract and [Agent Forge CLI](https://docs.concurrence.com/reference/agent-forge#simulation) for current commands. See [Healthcare Agent Testing Method](https://docs.concurrence.com/testing/testing/healthcare-agent-testing) for case design and reporting.
{% endhint %}


# Healthcare Agent Testing Method

A practical method for testing healthcare agents with logical tests, black-box calls, external-action checks, and production evaluation.

Use this method to decide whether a healthcare agent is ready for release. Define cases from workflow risks, collect evidence using the four test types below, and record the results for the release owner. These steps are recommended team practices.

## Four Kinds of Evidence

### Logical Tests

Run [text simulations](https://docs.concurrence.com/testing/testing/simulations) to inspect decisions, Context Graph states when configured, tool calls and arguments, and evaluation results. Tools use simulation mode by default. This evidence shows how the workflow handles a case. Audio behavior and completed external changes need their own checks.

### Black-Box Calls

[Arbiter](https://docs.concurrence.com/testing/testing/voice-simulation) calls an approved phone number and plays the caller. Review recordings, transcripts, call status, timing, and supported keypad or text-message events. Judge whether the caller gets the expected outcome. This tests the experience of a Concurrence agent or an external phone agent without access to its internal states or tool calls.

### External-Action Verification

Test the integration against an isolated target, then inspect destination acknowledgements, readback, or reconciliation records. Confirm that the intended change occurred with the correct values and check for duplicates. Pair this evidence with the conversation that requested the action.

### Production Evaluation

Use configured [metrics](https://docs.concurrence.com/testing/testing/metrics) and sampled conversations to check released behavior. Review persisted verdicts alongside pending, skipped, and error counts. Track which eligible conversations received an evaluation.

Logical tests and black-box calls both test correctness. A logical test asserts on internal state and tool evidence. A black-box call asserts on what the caller hears and receives, including when the agent is built outside Concurrence. Arbiter does not read the target's internal trace or mock its endpoints.

## Worked Example With a Synthetic Patient

The scenario, record, and report below are synthetic. They illustrate the method and are not measured results. A caller with a synthetic patient record phones a clinic test line to move an appointment.

1. **Rank the risk.** Disclosing details to the wrong person, writing the wrong slot, and missing an urgent symptom outrank tone problems. Higher-risk scenarios get more cases, more trials, and clinical review.
2. **Write the expected behavior first.** The agent verifies the caller's full name and date of birth before it reads or speaks any clinical record detail. It reads back the new date and time and waits for a yes. If the caller describes an urgent symptom, it follows the emergency path the clinical owner approved.
3. **Run logical tests.** Simulation cases assert that no clinical record is read before verification succeeds and that the reschedule tool receives the expected arguments. The verification step can perform its own lookup.
4. **Run black-box calls.** An Arbiter suite calls the test number with the same intents and checks that identity is requested before details, the new time is confirmed aloud, and the call completes.
5. **Test interruption recovery.** The caller corrects the date while the agent is reading it back. The agent stops, uses the corrected date, and confirms it.
6. **Verify the external action.** Read the appointment back from the test scheduling system and confirm that it holds the corrected date. A spoken confirmation is not a receipt.
7. **Evaluate in production.** After release, review evaluation results and sampled conversations for the same behaviors.

## Design the Case Set

* **Calibrate the grader with controls.** Include a simple positive control that must pass and a simple negative control that must fail. If either gets the wrong verdict, fix the grader before reading other results.
* **Repeat trials.** Model output varies between runs. Run each important case several times and report the pass count with the trial count.
* **Hold out independent cases.** Keep cases that prompt and graph authors do not tune against, and use them for the release read.
* **Record what ran.** Save the exact suite and case content or its hash, the grader configuration, the target number, and the agent, Context Graph, and service versions you can observe. Note any configuration you could not observe.
* **Compare a candidate with a baseline under controlled conditions.** Hold the cases, graders, and call conditions constant. Record each intentional configuration difference between the two runs.
* **Cover languages, identity, and ambiguity.** Test each configured language. Include a wrong date of birth and a caller acting for someone else, because a phone match is not verification. Include two records with the same name and an unclear date such as "next Friday".
* **Cover keypad and one-time-code paths only where configured.** Test a phone menu or a texted code only when the target path has one.
* **Cover transfer and incomplete calls.** Include the warm or cold transfer paths the target runtime supports, an unanswered destination, a caller hangup mid-task, silence, and a call that times out.
* **Cover interruptions.** Where supported, configure the caller to interrupt when the agent says a chosen phrase, such as a new appointment time. Add tests with earlier and more frequent interruptions, and grade how the agent recovers.

## Measure Latency Separately From Correctness

These are recommended measurement scopes. Record which method produced each number, because a provider-reported timing and a timing measured from the recording can differ for the same turn.

* **Stop-speaking latency** runs from the start of the caller's interrupting speech to the end of the agent's speech. Measure it acoustically from a two-channel recording.
* **Response recovery latency** runs from the end of the caller's interrupting utterance to the start of the agent's next speech. Identify the boundaries used by the acoustic or provider measurement.
* **Time to meaningful answer** runs from the end of the caller's question to the first speech that addresses it. A person or calibrated grader reviews the recording to identify that point and exclude filler.

Time to meaningful answer is a team-defined measure that needs semantic review. Timing and task correctness are separate verdicts. An agent that stops quickly and then answers the wrong question has failed the recovery. Grade recovery as a semantic check of whether the agent addresses the interruption and then continues or drops the earlier task as the scenario expects.

When the artifact a timing needs is missing, report the timing as not measured. Set latency targets from your own measured baseline.

## Report the Complete Denominator

State the denominator of every rate. Count case executions, so repeated trials of one case count separately. In the synthetic example below, 31 of 35 evaluable executions pass, or 88.6%. Report the errored, inconclusive, and missing executions alongside that rate.

| Synthetic example | Count |
| ----------------- | ----- |
| Selected          | 40    |
| Attempted         | 39    |
| Completed         | 37    |
| Evaluable         | 35    |
| Passed            | 31    |
| Failed            | 4     |
| Errored           | 2     |
| Inconclusive      | 2     |
| Missing           | 1     |

* **Segment the results.** Break results out by risk, language, test type, and call path. A blended rate can hide a failing segment.
* **Attach review and receipts.** Add clinical review of high-risk recordings and transcripts, and an external receipt for each write the scenario expects.
* **Record the release decision.** A named owner compares automated verdicts with human review, checks external receipts, and records the conditions for release. Clinical owners review high-risk scenarios as part of that decision.

## Related Pages

* [Testing Overview](https://docs.concurrence.com/testing/testing), [Simulations](https://docs.concurrence.com/testing/testing/simulations), and [Black-Box Voice Testing](https://docs.concurrence.com/testing/testing/voice-simulation) for the test paths
* [Metrics and Quality](https://docs.concurrence.com/testing/testing/metrics) and [Drift Detection](https://docs.concurrence.com/testing/testing/drift-detection) for production evidence
* [Run Arbiter Voice Tests](https://docs.concurrence.com/developer-guide/guides/arbiter-voice-tests) for the command-line workflow
* [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) for external receipts


# Metrics and Quality

Define multi-objective evaluation criteria and use their results in customer-owned release checks and improvement targets.

Metrics measure the quality of agent conversations. Teams define the dimensions that matter, then evaluate simulations or eligible production conversations through the evaluation surface supported by that API. Classic metrics, Platform production-eval definitions, and Platform metric-store definitions are related concepts with distinct schemas and lifecycles.

## What Metrics Measure

Metrics evaluate agent performance across the dimensions that determine success in your domain. Common categories include:

**Conversation quality**: Was the response clear? Did the agent understand the user's intent? Was the information complete and accurate?

**Safety adherence**: Did the agent stay within its defined scope? Did it escalate when appropriate? Were there any safety boundary violations?

**Goal completion**: Did the agent accomplish what the user needed? Was the appointment scheduled, the question answered, the referral made?

**Domain-specific dimensions**: In healthcare, this includes clinical accuracy, protocol adherence, empathy, and risk disclosure completeness. Each organization defines the dimensions that reflect their standards.

## Three Evaluation Sources

Metrics can be generated from three different sources, each serving a different purpose.

### Production Evaluation

Production conversations can be evaluated on demand. Where eager post-conversation evaluation is enabled, the platform also schedules eligible completed conversations automatically, subject to execution and daily caps.

Persisted verdicts support performance trends and drift review. Because eager triggering and model-backed evaluation are best-effort, dashboards should distinguish missing, pending, skipped, and error results from completed scores.

{% hint style="info" %}
Post-session metrics can use model-based judges that assess the conversation evidence available to that evaluation path against your criteria. They run outside the live response path, but the input may be a retained transcript, selected turns, or a conversation summary and can be incomplete. Inspect the definition and evidence before interpreting a score.
{% endhint %}

### Simulation Evaluation

When a simulation run is configured with evaluation criteria, eligible simulated conversations produce the corresponding scores or verdicts. This provides synthetic-interaction evidence before the configuration reaches real users without implying that every simulation produces every workspace metric.

Simulation evaluation serves two purposes:

* **Pre-deployment validation**: Confirm that metric scores meet your thresholds before promoting a new configuration.
* **Comparative analysis**: Run the same test set against two configurations and compare metric scores to understand the impact of a change.

### Human Calibration

Human reviewers can score representative conversations in an organization's review workflow and compare those judgments with stored platform verdicts. The Platform production-eval API does not itself provide a general-purpose human scoring endpoint. Human calibration is useful for:

* **Calibrating automated metrics**: Compare human scores against automated scores to verify that your metrics capture what they should.
* **High-stakes review**: Flag conversations that need human judgment, such as those involving clinical decisions or safety escalations.
* **Discovering new dimensions**: Human reviewers sometimes notice quality issues that existing metrics do not capture, which can inform new metric definitions.

## Multi-Objective Scoring

Healthcare and other high-stakes domains require that the agent performs well across multiple dimensions at the same time. An agent that is clinically accurate but lacks empathy fails to deliver a good outcome. An agent that is empathetic but misses a safety escalation is dangerous.

Multi-objective scoring evaluates a conversation against several criteria at once. Teams can treat selected thresholds as release gates in their own deployment process. The platform records evaluation evidence but does not automatically block a version-set update or make the release decision.

**Example: Post-discharge follow-up quality gates**

| Metric                     | Threshold | Type                  |
| -------------------------- | --------- | --------------------- |
| Clinical accuracy          | 99%       | Hard gate (must pass) |
| Safety escalation accuracy | 100%      | Hard gate (must pass) |
| Protocol adherence         | 95%       | Hard gate (must pass) |
| Empathy score              | 80%       | Soft target           |
| Response completeness      | 90%       | Soft target           |

In this example, hard gates are customer-defined release requirements: a failing result should block the team's release workflow regardless of other scores. Soft targets inform improvement priorities without blocking deployment on their own.

## Configuring Metrics

Evaluation definitions commonly include:

* **Name and description**: What the metric measures.
* **Evaluation criteria**: The specific rubric or checklist the evaluator uses to score the conversation.
* **Scoring method**: Pass/fail for binary requirements, or a numeric scale (typically 0-100) for graded dimensions.
* **Threshold or expectation**: The value the team's evaluation or release workflow treats as acceptable.

Exact fields depend on the API. Platform production evals use assertion or metric definitions, while Classic metrics use the Classic metric schema. In the Developer Console, **Evaluate > Metrics** lists a workspace's Platform metric definitions read-only, with the production evals and simulation cases that reference each one. Create and change definitions through the [metric settings API](https://docs.concurrence.com/intelligence-and-analytics/metric-store#query-surface).

{% hint style="warning" %}
Start with a small set of high-impact metrics rather than trying to measure everything. A focused set of 5-10 well-calibrated metrics provides more actionable insight than 50 loosely defined ones.
{% endhint %}

## Conversation Quality Check

Automated metrics do not catch every behavioral failure. The `forge quality check` command scans production conversations against behavioral detectors that catch agent issues metrics may miss: stuck loops where the agent repeats itself, character degeneration, repetitive patterns, incoherent output, and phantom success (the agent claims a tool call succeeded when it actually failed). Quality checks query conversation data directly and report findings with severity, timestamps, and optional message excerpts. See [Agent Forge CLI](https://docs.concurrence.com/reference/agent-forge#conversation-quality-check) for usage.

## Dashboards

The Eval Summary dashboard provides a consolidated view of simulation and eval metric scores across your workspace - broken down by metric, over time, and by categorical outcome. See [Intelligence and Analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence) for details on built-in dashboards.

## Evaluation Metrics vs Operational Metrics

Evaluation metrics and assertions score individual conversations against rubrics or deterministic checks - "How well did the agent handle this interaction?" They provide evidence for testing, simulation, and customer-owned deployment gates.

The [Metric Store](https://docs.concurrence.com/intelligence-and-analytics/metric-store) serves a different purpose: it defines a common value model and catalog for operational, quality, and evaluation metrics whose producers and schedules differ. A Platform production eval can reference an eligible AI-query metric definition and persist an eval result for the conversation. The result holds the value the judge returned, and the eval does not add that value to the metric store. See [Production Evals and Metric Values](https://docs.concurrence.com/intelligence-and-analytics/metric-store#production-evals-and-metric-values).

For operational dashboards, alerting, and cross-channel analytics, see [Metric Store](https://docs.concurrence.com/intelligence-and-analytics/metric-store).

## Using Metrics Strategically

**Separate safety metrics from quality metrics.** Organizations may set zero-tolerance acceptance criteria for observed safety violations and use quality metrics such as empathy, clarity, and completeness as improvement targets. A 100% score describes the evaluated evidence set, not proof that future model behavior cannot fail.

**Review metric trends, not just individual scores.** A single low empathy score might be an outlier. A sustained downward trend warrants investigation of the population, definition, model, data, and agent configuration before attributing a cause.

**Calibrate regularly.** Have human reviewers score a sample of conversations and compare against automated scores. If automated and human scores diverge, update your evaluation criteria.

{% hint style="info" %}
**For Developers**: See [Production Evals](https://docs.concurrence.com/developer-guide/platform-api/safety/production-evals) and the [Metric Store](https://docs.concurrence.com/intelligence-and-analytics/metric-store) for Platform metric contracts. For Classic API definitions and evaluation, see the [Classic Metrics API](https://docs.concurrence.com/developer-guide/classic-api/core-api/metrics).
{% endhint %}


# Drift Detection

Detect gradual performance changes by comparing metric trends, production examples, and simulation baselines through a deliberate monitoring workflow.

Drift is a sustained change in the inputs an agent receives, the behavior it produces, or the requirements used to judge it. The platform supplies metric results, analytics, run history, and simulation evidence that teams can use to identify these changes.

Drift response is a monitoring and release-management practice. The platform does not automatically turn a trend threshold into a promotion block or production rollback.

## What Causes Drift

### Input Drift

The mix of conversations changes. A scheduling agent tested mostly on routine requests may begin receiving multi-provider coordination calls, a new language mix, or questions caused by a policy change.

### Performance Drift

Measured behavior changes over time. Task completion may decline, latency may rise, or a safety evaluation may worsen after a configuration, dependency, or model change.

### Requirement Drift

The agent may behave consistently while the acceptance criteria change. Updated clinical guidance, organizational policy, or regulatory requirements can make an earlier test suite incomplete.

Compare production metrics, run history, and simulations across relevant periods and segments. Investigate sustained changes using individual examples, add cases that reproduce the behavior, and validate the candidate before an authorized release.

## Available Evidence

### Production Metric Trends

Configured evaluations produce per-interaction results that can be aggregated over time. Use the analytics views or APIs to compare equivalent windows before and after a release. Keep the metric definition and population stable so a scoring change is not mistaken for an agent regression.

Where filters are available, break the result down by service, channel, outcome, or another relevant dimension. A workspace-wide average can hide a regression concentrated in one workflow.

### Conversation and Run Review

Open representative interactions behind a changed metric. Transcripts, executed actions, tool results, completion reasons, and best-effort trajectory evidence help distinguish an agent problem from input changes or an external dependency failure.

### Simulation Baselines

Saved cases and suites provide repeatable checks for known behaviors. Compare current results with the acceptance criteria for the same cases, then add production examples that reveal a missing scenario.

Simulation and production populations are not automatically compared as a statistical blueprint. Teams decide which production segments correspond to which test cases and interpret the gap.

## A Practical Response Process

1. **Confirm the signal.** Compare enough interactions and an appropriate time window to separate a sustained change from normal variance.
2. **Locate the affected population.** Narrow the change by service, channel, release, failure type, or another available dimension.
3. **Inspect examples.** Review successful and failed interactions, including tool and dependency outcomes.
4. **Update the test set.** Add cases for new inputs or failure modes and update criteria when requirements changed.
5. **Validate a focused change.** Run the affected suite and important safety guardrails before release.
6. **Make an explicit release decision.** An authorized user promotes, pauses, or restores a configuration based on the evidence.
7. **Measure the same population again.** Confirm that the target recovered without creating a new regression.

## Alerts and Rollback

The platform does not send drift alerts, gate promotions on drift, or roll back automatically. If a team needs automated notification, it can query the analytics APIs from its monitoring system and route a threshold breach through its normal incident process.

For a severe regression, operators should follow the organization's release procedure: stop or limit the affected workflow when appropriate, select a known-good version deliberately, and verify the result. Keep a human decision in this path, especially when a metric is noisy or a rollback could reintroduce an older safety problem.

## Monitoring Checklist

* Choose a small set of outcome and safety metrics with clear owners.
* Record the baseline window, metric definition, filters, and released version.
* Use review windows that fit traffic volume. Low-volume services need longer windows.
* Define investigation thresholds in the monitoring or operating process.
* Preserve representative interactions and convert new failure modes into simulation cases.
* Recheck the same measures after every material release.

{% hint style="info" %}
Drift is not always a defect. Input drift can reveal a new use case, while requirement drift can reveal that the test suite needs to change. Investigate the cause before restoring an older configuration.
{% endhint %}


# Web Forge (Beta)

Web Forge (Beta) helps authorized users inspect, change, test, and review agent service configuration through a guided workflow.

Web Forge is a guided workspace for changing a Concurrence agent service. Start with a service, describe the behavior you want, inspect the proposed field-level diff, and explicitly apply the changes you accept. The conversation keeps the proposal, saved version, change history, test evidence, and any linked production review together.

Forge can place a requested change in the service's [agent](https://docs.concurrence.com/agent/agents), [context graph](https://docs.concurrence.com/agent/context-graphs), or applied [dynamic behaviors](https://docs.concurrence.com/developer-guide/classic-api/core-api/dynamic-behaviors). Chat can prepare a draft, but it cannot silently write a configuration version.

{% hint style="info" %}
Open **Capabilities** in the chat toolbar for the in-app guide. Its **Try** examples put a suggested request in the composer. If you have not selected a service yet, Forge opens service selection first. A suggested request is not sent or applied automatically.
{% endhint %}

The workflow has two deliberate review boundaries: one before a staging write and another before any eligible production apply. The screenshots below use the current Web Forge interface with synthetic example data. Workspace labels in the full-page view are anonymized.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-6a453a71961cacab1c8323c9a30c333fc8e08d7b%2Fweb-forge-current-workspace.png?alt=media" alt="Full Web Forge workspace showing the selected staging organization and service, conversation history, a chat request, a reviewable field diff, and the message composer" width="900"><figcaption><p>The full workspace: choose a service, request a change, and review the proposed diff before applying it.</p></figcaption></figure>

## Get started <a href="#workflow" id="workflow"></a>

1. **Sign in** with the identity provider configured for your deployment.
2. **Choose an organization.** This establishes the service catalog, environment, and permissions for the conversation.
3. **Choose a service.** Use the picker in the center of a new workspace or the selector at the top of an open chat. Search active services by name or ID.
4. **Inspect or request a change.** Select **View configuration** for a read-only look, or describe what the agent should do differently in chat.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-45a685e532d0bc0359d3ce27251d126278647220%2Fweb-forge-current-service.png?alt=media" alt="Web Forge service selection showing a searchable list of two active example services" width="560"><figcaption><p>Choose an active service before starting a conversation.</p></figcaption></figure>

### Organization and service scope <a href="#organization-and-service-scope" id="organization-and-service-scope"></a>

A conversation stays in its selected organization. You can switch services within that organization while retaining the conversation history, but existing proposals and tests stay attached to their original service. Forge asks for confirmation before switching and rejects an inactive or out-of-scope service.

Staging can offer reviewed configuration applies and synthetic tests. A production organization supports inspection and local proposals. An eligible staging change can open a separate, linked production review, but ordinary production chat proposals cannot be saved directly. The available review and apply actions depend on the deployment's configuration and your access.

## Change agent behavior <a href="#configuration-changes" id="configuration-changes"></a>

Ask for the user-facing outcome, such as "Ask one short follow-up question before recommending a next step." Forge finds the owning configuration area and prepares a draft against the selected service's latest version. Supported areas include:

* **Agent** - Identity, instructions, behaviors, and communication patterns.
* **Context graph** - States, transitions, routing, and workflow guidance.
* **Dynamic behaviors** - Applied, reusable behavior definitions.

One proposal can include up to eight related field edits on the same entity and baseline version. Different entities receive separate proposals. If you explicitly ask for the same change across related services, each service gets its own reviewable draft.

Review the affected entity, fields, source version, before-and-after values, and any shared-service impact. Select **Apply change** only for a proposal you accept. Before a staging write, Forge reloads the service and entity, checks that the reviewed baseline is current, restricts the operation to the approved fields, and reads back the new version. A stale or changed target requires a fresh proposal.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-431d7877daaaa96347e90627cd340b40e0fb77a3%2Fweb-forge-current-change.png?alt=media" alt="Web Forge change card showing an agent guidance field, its current and proposed text, source version, and Apply change button" width="680"><figcaption><p>Review the exact field diff and baseline version before applying.</p></figcaption></figure>

### Inspect the baseline and the diff <a href="#change-activity" id="change-activity"></a>

**View configuration** is a searchable, read-only browser for the linked agent, context graph, and active dynamic behaviors. You can inspect states, guidance, and tool details without creating a proposal. Read-only questions in chat can also reload the current configuration.

Open **Changes** for the **Changes in this chat** dialog. It records proposed, applied, invalid, and rollback drafts with their service, entity, versions, status, and field-level diff. You can reopen a change without leaving the conversation, pin the conversation for later, or delete one you no longer need.

## Test the change <a href="#validation-options" id="validation-options"></a>

### One-turn smoke test

After a verified staging apply, Forge automatically sends one synthetic message to the staging service's `edge` version set. The applied change shows the input, agent response or runner error, and an outcome. `edge` is a version set, not a separate service.

A runner error or empty agent response fails the smoke gate. A nonempty response confirms that the turn executed, not that its content is correct. When available, an AI review adds an advisory `pass`, `fail`, or `uncertain` assessment with a reason. It does not determine the production apply gate. You can rerun the smoke test or create a custom one-turn test, edit its synthetic message, and confirm that it contains no patient data or protected health information (PHI) before running it. A one-turn test does not create reusable Forge test entities.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-b3290ae1a1acdc021f883dcea19355806f98df58%2Fweb-forge-current-smoke.png?alt=media" alt="Web Forge post-apply smoke result with synthetic input, agent response, advisory review, rollback action, and testing options" width="660"><figcaption><p>After a staging apply, inspect the synthetic turn and choose whether to test again, create a simulation, review production, or prepare a rollback.</p></figcaption></figure>

### Reusable simulations

Ask Forge to create a simulation, then review its synthetic scenarios, objectives, user behavior, and metrics. **Create reusable simulation** saves linked Classic unit tests in one Classic test set. **Run simulation** starts that test set as a separate action. The saved artifact and available run results remain linked to the conversation. The [Platform Case Library and Classic simulations](https://docs.concurrence.com/testing/testing/simulations) are different testing surfaces.

A failed test does not undo a configuration version. Inspect the evidence, prepare another reviewed change if needed, and test again. Synthetic tests do not reproduce every production dependency or certify future behavior.

## Review a production apply <a href="#review-a-release-to-production" id="review-a-release-to-production"></a>

For an eligible, verified staging change with a configured production counterpart, select **Review production diff**. Forge first shows the production diff in the staging conversation. Select **Promote to production** on that card to open the linked production conversation and its apply checks. Opening it does not apply the change or retarget the staging chat. Forge compares each field's staging value before the edit, verified staging value after it, and latest production value. A divergent production value blocks apply for manual reconciliation.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-4783f777b41e9493a47d6226ddb302d5bde7bb2c%2Fweb-forge-current-staging-promotion.png?alt=media" alt="Staging conversation production-diff card showing the current and proposed production values and the Promote to production button" width="680"><figcaption><p>Review the production diff in staging, then continue to the linked production chat for apply checks.</p></figcaption></figure>

The production review shows source and target versions, service version sets, the exact production diff, and the available staging evidence.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-3fbacee36128daf58bbf1d6cae3791f9406f7b11%2Fweb-forge-current-production-review.png?alt=media" alt="Web Forge production review comparing verified staging and production entity versions, version sets, and the field-level production diff" width="680"><figcaption><p>Compare the verified staging value with the current production value.</p></figcaption></figure>

Choose one production apply check:

| Choice         | Required evidence                                                                                                                                                                                                                                                                                    |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Full suite** | A focused simulation for this change and the configured core regression suite must both finish without runner errors or failed metrics. The review can start or refresh runs and link to their detailed results.                                                                                     |
| **Smoke test** | The automatic post-apply staging smoke result must be tied to this exact change, have no runner error and a nonempty response. The reviewer must read the response and select **I reviewed this response and accept it for production apply**. The advisory AI assessment does not decide this gate. |
| **No testing** | The reviewer must select **I accept responsibility**. This bypasses the test requirement only. Freshness, conflict, scope, authorization, and readback checks still apply.                                                                                                                           |

The UI's time estimates are estimates, not guarantees. Stale staging versions, unresolved production conflicts, or incomplete evidence for the selected choice block apply.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-d77158b8b15d768317a028a79dddd0b2cca595ba%2Fweb-forge-current-production-checks.png?alt=media" alt="Web Forge production apply checks showing full suite, smoke test with response acknowledgment, no-testing override, and the apply action" width="640"><figcaption><p>Select a check, review its evidence, and explicitly acknowledge the chosen path before applying.</p></figcaption></figure>

### What production apply changes

For an agent or context-graph edit that is not already present in production, **Apply to production edge** creates and verifies a new production entity version. If the verified staging value is already present, Forge reconciles the review without another write. Classic V1's immutable `edge` version set follows the latest agent and context-graph versions. Before a write, Forge checks that other visible production version sets pin the changed component; it then confirms their configurations did not change. The apply does not move the `preview`, `release`, or `release-previous` pointers. See [Version sets](https://docs.concurrence.com/platform-overview/deployment-model#version-sets) for the broader release model.

For a dynamic behavior, the action is **Apply behavior to production**. Classic V1 does not isolate behavior versions with the agent and context-graph version-set pins. A behavior apply can therefore affect conversations using both `edge` and `release`, and the review calls out that scope before applying.

The production writer is separate from the read-only production chat. If it is not configured, you can review the diff and staging evidence but cannot apply from Web Forge. After an authorized apply, Forge reads back the entity and version-set state; an unconfirmed result is reported as uncertain, not successful. This workflow gathers test evidence in staging before the write. Production-edge testing and a later `edge`-to-`release` promotion remain separate release steps.

## Roll back a staging change

Select **Rollback change** on an applied change, or use **Changes in this chat** to prepare a rollback of eligible changes in that conversation. Review the inverse field-level diff and explicitly apply it. Forge checks for newer edits first, creates a new entity version, and retains the original change in history. This differs from an [Agent Forge](https://docs.concurrence.com/reference/agent-forge) whole-version restore.

A staging rollback does not automatically reverse a production apply. A rollback can enter the linked production review only when its original change has a confirmed production apply in Web Forge. The same production comparison and apply checks still apply.

## Safety and failure behavior <a href="#safety-and-failure-behavior" id="safety-and-failure-behavior"></a>

Forge enforces organization and service scope on reads, proposals, writes, and tests. Configuration writes require an explicit reviewed action; test inputs must be synthetic. Shared-entity impact and changed baselines are surfaced before apply, while ambiguous write outcomes are not reported as success. Human review, regression coverage, and normal release controls remain necessary for consequential changes.

Use Web Forge for guided service inspection and bounded edits. Use [Agent Forge](https://docs.concurrence.com/reference/agent-forge) for repository-managed configuration and broader automation.


# Intelligence Overview

Per-interaction evidence, workspace analytics, dashboards, metric values, and the boundaries that determine their availability.

Use intelligence and analytics to investigate individual interactions and compare operational results over time. Available evidence includes run records, generated analysis, evaluation scores, and workspace metrics. Processing can be incomplete or delayed, and audio analysis requires a usable recording.

Per-interaction analysis, workspace analytics, and metric values have separate producers and processing schedules. Confirm the source and coverage of a measure before using it for a deployment decision.

## Match the Evidence to the Decision

| Evidence                              | What it helps answer                                     | Boundary to preserve                                                            |
| ------------------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------- |
| **Run and interaction records**       | What happened during this interaction?                   | Coverage depends on the retained artifacts and runtime                          |
| **Call intelligence and evaluations** | How did the available interaction evidence score?        | Generated analysis and scores are not independent confirmation of external work |
| **Metric values and dashboards**      | How do defined measures compare across runs or periods?  | Definitions, filters, missing results, and freshness affect the comparison      |
| **External outcome records**          | Did the intended scheduling or operational result occur? | The customer may need to supply or join evidence from the destination system    |

Start with an individual example before interpreting an aggregate trend. Then use the same definitions and relevant segments for comparisons. [Evaluating Concurrence](https://docs.concurrence.com/pages/1DdQJVN1aK4ByMe5xmdO#id-6.-define-what-the-evaluation-can-establish) describes that review, and [Improving Agent Behavior](https://docs.concurrence.com/agent/pattern-discovery-and-reuse) connects a finding to a tested change.

## Call Intelligence

Voice call intelligence can combine operational profiles derived from call signals, post-interaction quality scoring, and audio-native scoring from the recording. Text interactions use the evidence available to their modality and do not receive audio-native analysis. Composite scores support trend analysis, while transcripts and structural traces show observed states, actions, and tool execution without exposing hidden model reasoning.

{% content-ref url="/pages/MkLNfREKUnb7P6psyljs" %}
[Call Intelligence](https://docs.concurrence.com/intelligence-and-analytics/intelligence/call-intelligence)
{% endcontent-ref %}

## Analytics and Dashboards

Workspace analytics cover call and production-eval trends, surface outcomes, event composition, connector and pipeline health, and current entity-inspection views. Built-in and custom dashboards and the conversational Insights Agent support analysis, while the unified Runs surface remains the canonical interaction inventory. Each analytical surface has its own evidence source and freshness boundary.

{% content-ref url="/pages/bjGXGvlgUdBZL69XK5bs" %}
[Analytics and Dashboards](https://docs.concurrence.com/intelligence-and-analytics/intelligence/analytics-dashboards)
{% endcontent-ref %}

### Topic Classification

Workspaces can enable automated conversation topic classification. When the setting is active, the platform periodically discovers enabled workspaces, resolves their active taxonomy and service context, and classifies recent conversations against the taxonomy. Each workspace is processed independently. A misconfigured workspace is quarantined for triage rather than blocking classification for other tenants. To qualify, a workspace requires exactly one active taxonomy and at least one active service with a non-blank name. Workspaces that do not meet these prerequisites are recorded as skipped with a reason so the gap is visible rather than silent.

## Metric Store

The Platform API exposes 41 built-in metric definitions across six categories and supports up to 50 workspace custom definitions. Recent and durable values share one response model, but producers, execution schedules, and modality requirements differ. A catalog entry or freshness target does not guarantee that a value exists or will arrive within a fixed time.

{% content-ref url="/pages/JSIAMGCtRP91KAwiUten" %}
[Metric Store](https://docs.concurrence.com/intelligence-and-analytics/metric-store)
{% endcontent-ref %}

## Event Streams and Analytics

The workspace SSE stream publishes supported call, surface, pipeline, text, operator, and other workspace events as they occur. It is an operational notification channel, not the durable analytics store, and it includes only events that producers publish. Consumers should reconnect with the last event ID when possible and reconcile important state through the corresponding read API.

A separate per-call observer stream can provide live transcript and tool activity for call monitoring. Stream availability does not imply that the same evidence will be retained indefinitely or that post-call intelligence has completed. See [SSE Events](https://docs.concurrence.com/developer-guide/platform-api/conversations/sse-events) in the developer guide for endpoint and payload details.

{% hint style="info" %}
**Developer Guide** - For the full analytics endpoint set and metric store details, see [Analytics](https://docs.concurrence.com/developer-guide/platform-api/safety/analytics) in the developer guide.
{% endhint %}


# Call Intelligence

Terminal voice-call evidence, operational quality scoring, optional audio analysis, decision traces, and playback timelines.

Call intelligence combines several kinds of evidence produced during and after an eligible voice call. These outputs are related, but they are not one universal score: the terminal operational summary measures runtime behavior, post-call analysis evaluates the recorded interaction, and the Voice Judge evaluates audio quality. Availability depends on the voice runtime, configuration, recording, and downstream processing.

A text conversation that ends can also leave a summary with its quality score, turn count, completion reason, and duration, but no latency or operator escalation values. See [Analytics and Dashboards](https://docs.concurrence.com/intelligence-and-analytics/intelligence/analytics-dashboards#call-and-eval-analytics).

## Evidence Paths

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-0bb51d3ab8eaa401462e75d523e060b2fba79f66%2Fcall-evidence-paths.svg?alt=media" alt="Call review draws on separate operational summaries, recordings, and decision or playback history. Evaluations depend on their configuration and eligible evidence; one artifact does not establish that all others exist."><figcaption><p>Missing evidence is not a passing score. Check the runtime and the artifact before comparing results.</p></figcaption></figure>

### Terminal Operational Summary

At call completion, the primary voice runtime derives a terminal artifact from the session state it has observed. Depending on the available signals, that artifact can include:

| Evidence                 | What It Captures                                                                                                                                                  |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Latency**              | Engine and audio time-to-first-byte averages and percentiles, and navigation and rendering latency. The silence ratio is null because call silence isn't measured |
| **Conversation shape**   | Turn count, duration, completion reason, final state, state revisits, and barge-ins                                                                               |
| **Tool performance**     | Tool-call totals, failures, failure rate, and per-tool timing                                                                                                     |
| **Operator involvement** | Whether the call escalated and whether an operator was active                                                                                                     |

The persisted wire shape still contains `risk_summary` and `safety_summary` for compatibility, but the current runtime leaves both empty. Authored agent policy and operator workflows govern safety and escalation. Consumers must not infer a live risk scorer or safety-rule engine from those fields.

Some external voice runtimes do not provide the per-turn inputs needed for this summary. They emit a minimal completion envelope with list and lifecycle fields, while leaving analytical summaries empty and the quality score unset.

### Optional Post-Call Analysis

Call responses include an optional `call_analysis` field, and workspace settings include `post_call_analysis_enabled`. Their presence does not establish that a completed call triggers a recording-analysis job. Treat absent analysis as unavailable evidence.

Use the separately supported [Call Trace Analysis](#call-trace-analysis), [Voice Judge](#voice-judge), and [Production Evals](https://docs.concurrence.com/developer-guide/platform-api/safety/production-evals) workflows for their documented outputs and prerequisites. Existing or historical analysis artifacts do not establish current processing coverage.

### Voice Judge Overview

The Voice Judge is a separate scheduled pipeline for eligible recorded production calls. It evaluates audio-native characteristics that structured runtime data cannot establish. See [Voice Judge](#voice-judge) for its rubric and eligibility boundaries.

## Operational Quality Score

Full terminal operational summaries receive a 0-100 quality score. The deterministic calculation starts at 100 and applies penalties for:

* High p95 audio time to first byte
* Repeated caller barge-ins
* Revisited conversation states
* Operator escalation
* Tool-call failures

This score measures observable runtime friction. It is not a task-success score, clinical-risk score, or safety judgment. Post-call rubric scores and Voice Judge scores remain separate.

Analytics group operational scores into four ranges:

| Range      | Label     |
| ---------- | --------- |
| **90-100** | Excellent |
| **70-89**  | Good      |
| **50-69**  | Fair      |
| **0-49**   | Poor      |

Use individual scores to inspect a call and distributions to compare services or time periods. A missing score means the runtime did not produce sufficient operational evidence, and it should not be treated as zero. See [Call and Eval Analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence/analytics-dashboards#call-and-eval-analytics) for aggregate views.

## Summary Flags and Transcript Verification

Call detail can derive review flags from aggregate evidence such as latency, barge-ins, loops, tool failures, and operator escalation. These flags explain why the operational score changed, but they are not guaranteed to identify the exact timestamp of an incident. Use the playback timeline or call trace analysis for time-oriented review.

The platform does not re-transcribe calls after they end or compare transcript accuracy. Live transcripts, available word timings, recordings, terminal intelligence, and supported evaluations are separate evidence. Review and configure recognition keyterms explicitly.

## Production and Simulation Evidence

Production voice calls and simulation sessions preserve different evidence boundaries:

* **Production voice calls** can produce terminal operational summaries, recordings, post-call analysis, playback timelines, trace analysis, and Voice Judge results when their prerequisites are met.
* **Simulation sessions** emit source-tagged, run-linked terminal artifacts built from simulated turns, tools, terminal state, and simulation score. The metric pipeline keeps simulation and production scopes separate.
* **Audio-native analysis** does not apply to simulations without recordings. A simulation score is simulation-specific evidence, not a production operational quality score.

This separation lets teams compare like with like without allowing synthetic sessions to blend into production call analytics.

## Decision Trace

For supported voice calls, the runtime emits terminal per-turn decision events after the call. Each event can include:

* The signal classification that triggered the turn
* The effect classification describing what the agent did
* Current and transitioned states
* Tool names and success state
* Latency measurements when available
* Counts of configured inner-thought annotations, rather than hidden model reasoning

Decision-trace events support structural analysis such as turns per call, tool invocation rate, and state transition rate. They describe recorded actions and evidence and do not reconstruct an unobserved chain of thought.

## Debug Traces

Administrators and owners can use two sensitive debugging views for a completed voice call:

* **Execution trace** - Persisted per-turn inputs and outputs, including transcripts, actions, tools, state transitions, configured inner-thought annotations, and latency fields.
* **Prompt trace** - Best-effort prompt-log records for turns whose prompt evidence was durably emitted.

Prompt evidence may be unavailable even when the execution trace exists. Access is restricted because these views can contain model internals and protected data.

## Call Trace Analysis

For an eligible completed call with accessible audio, asynchronous trace analysis can produce:

* A narrative summary and outcome
* Key decision moments with audio-grounded factors
* An emotional arc and critical emotional shifts
* Interaction dynamics and signal-response alignment
* Coaching recommendations and missed opportunities
* Counterfactual alternatives and predicted impact
* A synthesized explanation of why the call unfolded as it did

The API distinguishes `ready`, `pending`, and `unavailable`. A read can trigger best-effort on-demand processing for a qualifying production call, but a result is not guaranteed. Simulation sessions are not eligible for the recording-based trigger.

## Call Playback Timeline

The call detail response can include a canonical timeline that places speech and runtime events on one shared coordinate system. For a saved platform-managed call, conversation detail also returns a timeline built from the call's own record, which places each line in the recording, and the wait after a caller line where the call measured one, however long ago the call ended. See [Voice Call Detail](https://docs.concurrence.com/developer-guide/platform-api/conversations#voice-call-detail).

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-2ed5e44922df461b937ead1412276cf836c30cd0%2Fcall-timeline-blue.svg?alt=media" alt="An illustrative shared timeline aligns caller speech, optional agent filler, tool execution, and a later reply. Bar widths are not measured durations, and tracks depend on the available call evidence."><figcaption><p>Compare available tracks on one timebase. This example shows order, not a latency target.</p></figcaption></figure>

### Lanes and Actors

Lanes are derived from the segments present in a call. Each lane has a stable ID, display order, semantic track, and actor when applicable. Supported tracks are caller, agent, operator, tool, and system. Tool and system events can receive distinct lanes based on their actor identity.

Operator speech uses the `caller_speech` segment type with operator actor metadata and the operator track. Consumers should use the actor and track fields rather than infer the speaker from the segment type alone.

### Segment Types

The current timeline vocabulary is:

| Category               | Segment Types                                                     |
| ---------------------- | ----------------------------------------------------------------- |
| **Speech**             | `caller_speech`, `agent_speech`, `greeting`, `interrupted_speech` |
| **Fillers and checks** | `filler`, `filler_nav`, `filler_hesitation`, `silence_check`      |
| **Interaction**        | `barge_in`                                                        |
| **Execution**          | `processing_gap`, `tool_call`, `state_transition`                 |
| **Inactivity**         | `silence`                                                         |

### Shared Timebase

Segment start and end values are seconds on the response's shared timebase. Where exact audio offsets exist, the timeline aligns segments to the media. Where a producer lacks exact offsets, the platform supplies synthetic positions so the call-detail UI still receives one consistent lane and seek model, and a timeline whose turns all have synthetic positions reports its timebase `origin` as `synthetic`. Consumers can therefore render the response as provided instead of rebuilding timing independently.

See [Audio Pipeline](https://docs.concurrence.com/channels/voice/audio-pipeline) for the voice timing settings that influence the underlying events.

## Voice Judge

The Voice Judge scores eligible recorded production calls across ten audio-native dimensions. It reads the caller channel and, when available, the agent channel. An inbound-only recording can be evaluated as mono.

### Ten Evaluation Dimensions

| Dimension                 | What It Measures                                        |
| ------------------------- | ------------------------------------------------------- |
| **Latency and Dead Air**  | Response timing and silence management                  |
| **Pronunciation**         | Speech clarity and correctness, including medical terms |
| **Clarity**               | Intelligibility of speech                               |
| **Filler and Silence**    | Tool-call acknowledgments and dead-air handling         |
| **Interruption Handling** | Barge-in detection and recovery                         |
| **Audio Consistency**     | Volume and pitch stability without cutoffs              |
| **Pacing**                | Conversational tempo and pauses                         |
| **Warmth and Tone**       | Tonal appropriateness to the caller's state             |
| **Accent Quality**        | Language match and accent naturalness                   |
| **Voice Identity**        | Consistency of the agent voice                          |

Each dimension can produce a score from 0.0 to 1.0, a severity of `none`, `warning`, `flag`, or `critical`, and audio-grounded evidence for non-`none` findings.

### Eligibility and Delivery

The scheduled job considers completed production calls within its lookback window, skips calls with a known duration of five seconds or less, excludes calls that already have a result, and requires an accessible inbound recording. Missing recordings, processing errors, and warehouse latency can leave an otherwise completed call without a Voice Judge row.

Results are available through two paths:

* **Recent per-service results** - Per-call scores and the bounded evidence payload for investigation
* **Aggregate metrics** - Ten built-in [Metric Store](https://docs.concurrence.com/intelligence-and-analytics/metric-store) metrics for workspace-level trends

{% hint style="info" %}
**Developer Guide** - See [Call Trace Analysis](https://docs.concurrence.com/developer-guide/platform-api/safety/call-trace-analysis) and [Voice Judge](https://docs.concurrence.com/developer-guide/platform-api/safety/voice-judge) for endpoint contracts.
{% endhint %}


# Analytics and Dashboards

Workspace analytics, pipeline observability, entity inspection, dashboards, and the Insights Agent - with their freshness and evidence boundaries.

Concurrence exposes several workspace-scoped analytics surfaces. They do not share one universal data source, refresh schedule, or filter contract. Interpret each result according to the evidence that produced it:

| Surface                          | Primary Evidence                                                              | Important Boundary                                                                                                                                      |
| -------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Call intelligence**            | Completed voice call artifacts and summaries of text conversations that ended | Fields can be null or absent when the required call evidence was not produced. Text summaries carry no latency values and report no operator escalation |
| **Production eval analytics**    | Persisted assertion and metric verdicts                                       | Covers only conversations that were evaluated                                                                                                           |
| **Surface analytics**            | Surface lifecycle and saved-field state                                       | A drop-off correlation does not prove that a field caused abandonment                                                                                   |
| **World and pipeline analytics** | Serving projections, per-source ingestion health, and diagnostic queries      | Live status and historical counts can have different freshness                                                                                          |
| **Metric store**                 | Recent metric values and durable metric history                               | Latest API reads can be fresher than dashboard panels                                                                                                   |

## Call and Eval Analytics

Call analytics read the call-intelligence projection for the selected workspace and time window. It holds voice calls and the summaries of text conversations that ended; a text conversation that was idle for more than 24 hours before it ended can have none. Call counts, quality, and duration can cover both. A closed text conversation's duration runs from its creation to the close, so it can be much longer than a call.

| View                         | What It Returns                                                                                                                        |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| **Call quality**             | Average, p50, and p95 quality score, along with call count, escalation rate, average duration, a time series, and quality-score bands  |
| **Advanced call statistics** | p50, p95, and p99 duration, along with quality percentiles, a trend with p95 audio latency, and service and direction breakdowns       |
| **Latency**                  | Engine p50 and p95, audio time-to-first-byte p50, p95, and p99, plus average navigation and render values                              |
| **Tool performance**         | Aggregate tool calls, successes, failures, failure rate, and a time series. It does not provide per-tool duration or per-tool ranking. |
| **Operator performance**     | Escalation count and rate, operator-handled count, escalated-call duration, quality comparison, and an escalation trend                |
| **Eval quality**             | Overall and per-eval-key pass rate and average score, plus a trend across persisted production eval verdicts                           |

Most call-intelligence endpoints accept a one-hour, one-day, or one-week interval, an optional service filter, which must be a service UUID, and a `days` lookback of up to 90 days. Advanced call statistics, tool performance, and eval quality also take `group_by=service_id`, which returns, in one response, the results for each service with data in the window. See [Per-Service Results](https://docs.concurrence.com/developer-guide/platform-api/safety/analytics#per-service-results). Endpoints that accept explicit start and end dates use those dates instead of the lookback. Advanced call statistics can also filter by inbound or outbound direction. The explicit comparison endpoint accepts separate current and previous date ranges and returns absolute and percentage deltas.

The workspace home composite is narrower: it returns six headline call KPIs for a one-to-90-day window and compares applicable values with the preceding equal-length period.

{% hint style="warning" %}
An empty series can mean that no eligible evidence exists or that an asynchronous projection has not caught up. It is not proof that the measured behavior did not occur. These views return `503` when the analytics store can't answer; see [Unavailable Analytics](https://docs.concurrence.com/developer-guide/platform-api/safety/analytics#unavailable-analytics).
{% endhint %}

### Call Detail and Retention

Aggregate analytics and call detail have separate availability paths. A retained analytics row does not guarantee that a recording, transcript, full turn history, or every post-call artifact is still available. Apply the workspace's retention policy to each artifact type and treat missing evidence as unknown rather than zero.

### Production Eval Evidence

Production eval analytics are channel-agnostic because verdicts are keyed to the durable conversation. Voice, text, SMS, and email conversations can contribute when an eval actually ran and persisted a result.

Eval scores are model- or assertion-derived evidence, not proof of factual, clinical, or regulatory correctness. Automatic post-conversation evaluation is feature- and configuration-dependent, and the manual evaluation endpoint persists its results rather than acting as a non-persisting preview.

## Surface Analytics

[Surfaces](https://docs.concurrence.com/channels/surfaces) have four analytics views:

| View                      | What It Returns                                                                                                             |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| **Completion rates**      | Created, opened, completed, and abandoned totals, along with completion and drop-off rates, a trend, and a source breakdown |
| **Channel effectiveness** | Delivery count, completion count and rate, and average completion time by observed channel                                  |
| **Field abandonment**     | Overall abandonment plus saved and missing counts for fields on abandoned surfaces                                          |
| **Entity history**        | Completion statistics, the most frequently observed channel, and recent surfaces for one entity                             |

Date-based surface views default to a 30-day lookback, with `days` capped at 90. Views that accept explicit start and end dates use those dates instead. Completion rates additionally support interval and entity filters. Entity history uses a separate result limit rather than a date-range filter.

Field-level results describe where incomplete submissions stopped. Use them to form a hypothesis, then validate wording or workflow changes with controlled comparisons. The data alone cannot establish that a question was confusing, unnecessary, or too sensitive.

## Event and Data Quality Analytics

### Event Breakdown

The event-breakdown view returns current aggregate counts by event type and reported source. It is useful for checking whether expected event families and sources are represented. It is not a historical time series, so do not infer when a source became quiet from this response alone.

Use pipeline source history or connector-health data for temporal ingestion evidence.

### Current Data-Quality Coverage

When its serving projection has data, the data-quality endpoint returns an aggregate projected confidence value and event count.

Do not use this response as a complete confidence distribution or source-quality comparison.

## Pipeline Observability

Pipeline observability reads stored workspace read models and diagnostic analytics:

| View                  | What It Shows                                                                                                   |
| --------------------- | --------------------------------------------------------------------------------------------------------------- |
| **Status**            | Total events, read-model status and sync time, and entity count                                                 |
| **Sources**           | Configured sources with activation, stored health status, and event counts                                      |
| **Source detail**     | Source metadata, recent failures, diagnostic event history, and outbound summary when those reads are available |
| **Outbound**          | Per-sink synced, failed, and pending counts plus an attempt log                                                 |
| **Throughput**        | Hourly or daily ingestion counts for the requested window                                                       |
| **Entity resolution** | Historical `same_as` edge counts and the currently reported resolution-loop status                              |

Diagnostic history, outbound, and throughput views can return empty results when their analytical reader is unavailable. Summary responses expose read-model availability separately where supported. Preserve that distinction in alerts and dashboards.

### Connector Health and Loop Latency

Two Sensorium views add operational evidence:

* **Connector health** - events in the last hour and rolling 24 hours, mean events per minute, most recent ingestion time, a freshness category, and read-model status for each observed source.
* **Loop latency** - the median time between paired sensing and agent-action events over a one-to-168-hour window, with hourly counts, median values, and a truncation flag.

Loop latency covers only events the pairing logic can associate. A low pair count or a truncated sample limits what can be concluded about end-to-end behavior.

## Workspace and Agent Health

### Workspace Health Composite

The Platform API exposes a composite used by the Developer Console home page. Its three sections fail independently and the response identifies degraded sections.

| Section          | Current Observed Coverage                                                                   |
| ---------------- | ------------------------------------------------------------------------------------------- |
| **Voice**        | Active calls, active escalations, calls today, average quality, and today's escalation rate |
| **Data quality** | Entity count and historical recent `same_as` edge count                                     |
| **Identity**     | Active API key count                                                                        |

The active-call values come from the live voice service. Calls today, average quality, and the daily escalation rate count production voice calls and the text conversations that ended since midnight UTC, the same totals the analytics dashboard reports.

### Developer Console Production Health

The Developer Console home page shows a workspace pulse with active agents, calls today, active calls, average quality, escalation rate, and tool success. Agent cards link to a production detail page with call-quality, latency, and aggregate tool-performance charts plus recent calls.

The current status badge is a UI heuristic:

* **Paused** - the service is inactive.
* **Degraded** - the average call-quality score is below 80, or the selected period contains zero calls.
* **Live** - neither degraded condition is met.
* **Unknown** - the service's call analytics couldn't be read, so its health isn't measured. The pulse and the production detail charts then show **Analytics unavailable** rather than zero or no data.

`Live` is not a safety certification, availability guarantee, or proof that all analytical inputs are present. Escalation rate is displayed but does not determine the badge.

## Entity Inspection

Entity intelligence exposes four current behaviors:

| Capability             | Current Behavior                                                                                                     |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------- |
| **Relationship graph** | One level of stored current edges and neighbor metadata                                                              |
| **Provenance**         | Entity identity and historical `same_as` merge information; source and confidence-history arrays are currently empty |
| **Duplicate history**  | Historical `same_as` edges ordered by stored confidence. It does not run a current duplicate-detection model.        |
| **Search**             | Case-insensitive display-name search with entity-type filtering and pagination                                       |

Historical `same_as` rows came from the earlier resolver. The active pipeline does not create new merge edges. Lineage responses also retain empty outbound-sink and review-history arrays for compatibility, so they are not a complete delivery or governance audit.

### Narrative Briefs

Brief routes accept patient, cohort, territory, emirate, and district entities, with a separate workspace-level route. Responses include Markdown and structured content, evidence identifiers, confidence, event count, version, generation time, and a truncation indicator when a brief has evidence.

The current serving path does not yet load event evidence into brief generation. A generation request therefore produces the empty-evidence response rather than a synthesized patient or population narrative. Do not use the current brief response as a clinical summary. A read before any brief exists returns a successful empty shape with `event_id: null`.

## Dashboards

Three immutable built-in dashboard templates are visible to every workspace:

| Dashboard                 | Current Panels                                                                                                                                                        |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Data Browser Insights** | Operational views over available FHIR resources, world entities, facilities, and provider availability                                                                |
| **Realtime Metric Store** | Metric summary, numerical scores, daily scored events, production versus simulation values, categorical distribution, entity coverage, freshness, and per-call scores |
| **Eval Summary**          | Workspace-aggregate eval scores by metric, trend, and categorical outcome                                                                                             |

Definitions are available without workspace setup, but panels can be empty or unavailable until their source data and analytical query path are ready. The built-in templates refresh every five minutes by default.

Workspace dashboards are separate mutable resources. The dashboard API supports create, list, read by ID or slug, update, soft delete, and panel execution. Built-in templates cannot be updated or deleted through the workspace API. Panel queries are executed with workspace scoping, and execution requires data-view permission.

### Embeddable Rendering

The Developer Console renders dashboard definitions with the `@amigo-ai/dashboards` component package. The same `DashboardEmbed` component can fetch a definition by slug, execute its panels, apply declared filters, and refresh on an interval when supplied with a Platform API base URL, workspace ID, and valid authentication.

Embedding does not weaken workspace authorization. External applications must protect credentials and preserve the Platform API's data-view permission boundary.

## Insights Agent

The Insights page combines a proactive digest with conversational analysis:

* The digest and suggested questions can remain unchanged for up to five minutes after source data changes.
* Chat creates a workspace-scoped session and streams progress, tool activity, structured result blocks, follow-up suggestions, and completion events over SSE.
* Result blocks can contain text, metric cards, tables, entity lists, and Plotly charts.
* Tool labels and results can be visible, but hidden model reasoning is not exposed.
* A session uses one model for every answer. When that model is rate limited or unavailable, the chat returns an error block and keeps the session rather than switching models.

The agent can use guarded workspace queries, entity reads, call analytics, metric values, and available analytical functions. The freshness of an answer depends on the selected tool and its underlying projection. Model-generated interpretation can be incomplete or incorrect, and malformed visual blocks can be discarded by the client. Verify material operational or clinical conclusions against the cited records and direct API results.

Workspace members with edit access can pin an eligible metric or chart from an answer to a shared workspace dashboard on the Insights page. A pinned result is visible to everyone in the workspace. Refreshing a pin reruns its saved query, where fixed dates stay fixed and relative dates are recalculated. A refresh can fail while the last successful result stays shown. Opening a pin's sources shows the selected result cells and the time of the last successful query, which is not a data-through watermark. Unpinning can be reversed with an Undo option for a limited time. Read-only members can view shared pins without editing them.

Useful questions include:

* "How has call quality changed over the last seven days?"
* "Show production and simulation values for these metric keys."
* "Which entity types are represented in this workspace?"
* "Summarize recent call volume and escalation rate."

{% hint style="info" %}
**Developer Guide** - For request parameters and response schemas, see [Analytics](https://docs.concurrence.com/developer-guide/platform-api/safety/analytics) and [Insights](https://docs.concurrence.com/developer-guide/platform-api/safety/insights) in the developer guide.
{% endhint %}


# Metric Store

The current metric catalog, custom-definition boundaries, dashboard behavior, query surface, and freshness semantics.

## Semantic Foundation

The Metric Store is built on a governed semantic layer that enforces consistency, traceability, and workspace-scoped security across all metric definitions and computations.

### Canonical Models

Metrics are computed against a fixed set of canonical models that represent the platform's core analytical domains:

* **Conversation fact** - conversation and run lifecycle
* **Interaction fact** - user, agent, and system interactions
* **Tool execution fact** - decision, state-transition, and tool-execution evidence
* **Conversation outcome fact** - conversation-to-outcome relationships
* **Evaluation fact** - call-quality, safety, latency, and voice-judge evaluations
* **Topic classification fact** - conversation-topic classifications
* **Appointment workflow fact** - appointment, slot, workflow, and state transitions
* **Entity dimension** - workspace-scoped entity and identity relationships
* **Event evidence fact** - typed event, evidence, and review records
* **Model health fact** - connector, event-throughput, and metric-freshness health observations
* **Surface interaction fact** - workspace-scoped surface and form interaction events

Each canonical model declares its grain (for example, one conversation or one tool execution), its key columns, its timestamp columns, and an explicit freshness target. These declarations make the contract between raw platform data and computed metrics auditable.

### Governed Relationships

Canonical models are connected through governed relationships that define how models can be joined. Each relationship declares its parent and child model, join keys, cardinality (such as one-to-many), and allowed join direction. Relationships are versioned and certified independently of the models they connect.

For example, a conversation can have many interactions, many tool executions, many outcomes, many topic classifications, many evaluations, and many surface interactions. An outcome can have many appointment workflow events. These relationships are enforced at definition time so that metric authors cannot construct unsupported joins.

### Semantic Metric Definitions

A semantic metric definition wraps a standard metric definition with additional governance:

* **Base model** - which canonical model the metric is computed against
* **Dimensions** - the approved dimensional axes (workspace and reporting period are always required, and service and channel are optional)
* **Time field** - which timestamp column drives the reporting period
* **Owner** - the responsible party for the metric
* **Security classification** - workspace-scoped, ensuring metrics never cross workspace boundaries
* **Version and status** - definitions move through draft, certified, and deprecated states
* **Required relationships** - which governed relationships the metric depends on
* **Validation tests** - references to tests that verify the metric's correctness

Definitions are compiled into deterministic execution plans before computation. The compilation step validates that the base model exists in the certified registry, that all required relationships are certified, and that the requested dimensions and time field are supported by the base model. The execution plan includes a content hash so that identical definitions produce identical plans.

### Freshness Tracking

Each canonical model and metric definition declares an explicit freshness target in minutes. The platform classifies each materialized result as:

* **Fresh** - computed within the freshness target
* **Stale** - computed but older than the freshness target
* **Never computed** - no successful computation has occurred
* **Failed** - the most recent computation attempt failed

This classification drives the freshness indicators visible in dashboards and health monitoring.

### Computation

Certified metric definitions are computed periodically against their canonical models. Each computation run:

1. Reads the certified execution plan for each active metric definition
2. Queries the canonical model within a configurable time window (up to 7 days)
3. Aggregates values by the declared dimensions using the plan's aggregation type (count, count distinct, sum, average, min, max, ratio, or rate)
4. Merges results into the metric values store using an upsert strategy keyed by workspace, metric, version, period, and dimension combination
5. Records the computation run's status, timing, and any error for observability

Computation is workspace-scoped: a metric definition owned by one workspace can only read data from that workspace's partition of the canonical model.

## Setup and Refresh

The Metric Store provides two operational endpoints for workspace administrators:

* **Setup** triggers a one-time schema and registry initialization for the workspace. This is an idempotent operation - running it more than once has no adverse effect.
* **Refresh** triggers an on-demand refresh of the canonical Metric Store models. Use this when you need updated metrics before the next scheduled pipeline run.

Both operations are asynchronous. The endpoint returns a run identifier that you can poll for status. The run status reports lifecycle state, result state, and a human-readable message. Setup and refresh require the workspace update permission.

Each endpoint returns `202 Accepted` with a run identifier. If the backing job is not configured for the environment, the endpoint returns `503 Service Unavailable`.

### Workspace Scoping

All canonical Metric Store models enforce workspace-level scoping. Rows without a valid workspace identifier are excluded during materialization, ensuring that every record in the serving layer is attributable to a single workspace.

## Canonical Models

The Metric Store includes a set of canonical models that normalize data from multiple platform sources into consistent, workspace-scoped views. These models are materialized as governed projections and serve as the foundation for metrics, dashboards, and downstream analytics.

Canonical models use a pointer-driven design: physical source tables are resolved through configuration rather than hard-coded references, so environment changes do not require editing transformation logic.

### Available Models

| Model                             | Purpose                                                                                                                                                                                                                                                                                     |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Entity Dimension                  | Workspace-scoped entity identity and governed dimensions. Joins entity attributes with identity mappings to produce a single row per entity with canonical identifiers, display names, service assignments, patient and provider references, facility assignments, and channel information. |
| Conversation Fact                 | Cross-channel conversation lifecycle at one row per workspace conversation. Merges run-level metadata with session and voice activity to produce start and end timestamps, status, run counts, and interaction counts.                                                                      |
| Interaction Fact                  | Normalized text, voice, and world-event interactions. Unions session-based text turns, voice turns, and non-session event interactions into a common shape with interaction type, channel, timestamps, and source evidence.                                                                 |
| Decision and Tool Execution Fact  | Decision, state-transition, and tool-execution evidence. Captures tool name, success status, state transitions, and timing from both traced execution paths and world-event evidence.                                                                                                       |
| Conversation Outcome Fact         | Outcome and handoff evidence attributable to conversations when source identity permits. Unions outcome events, current outcome projections, and resolved outcome projections.                                                                                                              |
| Call Intelligence Fact            | Call-quality, safety, latency, and evaluation results. Merges call intelligence records with evaluation scores into a unified shape covering quality scores, duration, completion reason, risk assessment, and tool execution summaries.                                                    |
| Topic Classification Fact         | Conversation topic classifications joined with taxonomy metadata. Includes primary and secondary category assignments, confidence, reasoning, taxonomy version, and model information.                                                                                                      |
| Appointment Workflow Fact         | Appointment lifecycle, status, and workflow evidence. Unions appointment-specific events with general workflow evidence that carries appointment data.                                                                                                                                      |
| Event and Clinical Evidence Fact  | Typed event, clinical, and review evidence records. Unions raw, current, and resolved event states with FHIR resource references, review status, and domain classification.                                                                                                                 |
| Data Source and Model Health Fact | Connector health, event throughput, and metric freshness observations. Provides a unified view of ingestion recency, event volume, and metric computation timestamps.                                                                                                                       |
| Metric Output                     | Existing metric values and freshness normalized for downstream consumers. Joins metric values with freshness metadata to expose computation timestamps, period boundaries, and value fields in a single row.                                                                                |

Each model includes a canonicalization timestamp indicating when the projection was last materialized. Models that join multiple sources use full or left joins to preserve rows even when one source lacks a matching record.

### Design Principles

* **Union-then-join structure.** Models that combine multiple source streams first union rows from the same grain, then join across grains. This keeps the transformation predictable and avoids fan-out.
* **Coalesce-based fallbacks.** When a preferred field may be null, models fall back to alternative fields using ordered preference. For example, display names prefer an explicit display name over a raw name, and timestamps prefer the most specific available timestamp.
* **Workspace scoping.** Every canonical model is keyed by workspace, ensuring tenant isolation in all downstream queries.

The metric store provides one value model for operational, quality, and evaluation metrics. Values carry a metric key, type, source class, scope identifiers, period, event count, optional confidence, unit, and computation time.

The active Platform API catalog contains 41 built-in definitions across six categories. A catalog entry describes a metric the platform knows how to represent. It does not guarantee that every workspace or interaction will produce a value for that key.

{% hint style="info" %}
Metric values distinguish **production** and **simulation** sources and **aggregate** and **entity** scopes. Simulations compute only the metrics selected by their evaluation configuration; they do not automatically produce all active workspace metrics.
{% endhint %}

## How Values Become Available

Metric values can arrive through different paths:

1. The platform loads active built-in definitions and supported workspace custom definitions.
2. Eligible call-intelligence, surface, world-event, voice-quality, or simulation-eval evidence is evaluated or aggregated.
3. Recent per-interaction values can become available through a low-latency projection, while scheduled analytical processing produces aggregate and AI-evaluated history.
4. The metric API combines recent values with durable history. Dashboard panels query durable analytical views.

These paths can have different freshness. A definition update takes effect when the applicable execution path next processes eligible evidence. It does not promise atomic historical replacement, immediate recomputation, or backfill of earlier interactions.

## Developer Console

**Evaluate > Metrics** in the Developer Console lists the workspace's metric definitions, including inactive ones, read-only. **All metrics**, **Custom**, and **Standard** separate workspace definitions from built-in ones, which the Console calls standard metrics. Each row shows the evaluation method, such as **LLM judge** or **Deterministic**, the output type, assignments, and simulation cases. Search by name or key, and filter by status, method, and output type. The list opens on active definitions. The list leaves out Voice silence ratio, which the platform does not measure, and custom definitions the Console flags as incomplete or unsupported. A direct link to a hidden metric still opens its page, which says why it is hidden.

A metric's page shows what it measures and its output, its evaluation input, event types, and extraction mode, and its full configuration JSON. An LLM-judge metric shows its configured model tier, endpoint, and prompt, but not the effective model each evaluation path uses. A deterministic metric shows its calculation. For a `call_intelligence` `ai_query` metric, the transcript detail and length the judge reads can differ by evaluation path. The **Simulation cases** tab lists the cases whose checks reference the metric, each with its pass criteria. A `call_intelligence` `ai_query` metric also lists its **Service assignments**: the production evals that reference it, grouped by service, each with its pass criteria, if it has any, and status. An eval without a service applies to every service in the workspace and is listed under **All agents**. A default the platform creates for a metric is listed there too, with no pass criteria, and evaluating a call does not run it.

From this tab you can add a service assignment for the metric, edit an assignment's service, assignment key, pass criteria, and active state, and delete an assignment to stop it running on live calls. Pass criteria are entered as JSON, such as `true` or `{"gte": 0.8}`, and can be left blank for none. Invalid JSON is rejected before the request is sent. A default the platform creates can only be paused or resumed, and a built-in metric's default cannot be deleted. While a metric is inactive, its saved assignments, the default included, stay listed. Evaluating a call then reports an `error` verdict instead of a score for each active assignment that applies to the call, other than the default, and a paused one (shown as **Inactive**) records no verdict. The scheduled analytical processing scores standard metrics whether or not they have a service assignment.

Create and change definitions through the metric settings API. Built-in keys, types, sources, and extraction behavior are platform-owned. The accepted built-in overrides are activation, freshness target, hourly or daily period granularity, and numerical valid-range bounds.

The settings response and the metric catalog both merge saved overrides into the built-in definitions, and the catalog leaves out built-ins the workspace turned off. The low-latency call projection reads the active workspace settings, while the scheduled built-in aggregate pipeline is code-defined, so a toggle does not delete history or guarantee that every scheduled aggregate stops being produced.

### Realtime Metric Store Dashboard

Open the built-in **Realtime Metric Store** dashboard from **Dashboards**, found through Console search. The `metrics-overview` template refreshes every five minutes by default and contains:

* **Metric store summary** - active metric count, numerical metric count, value points, scored events, average confidence, and latest computation.
* **Average metric scores** - numerical metric averages.
* **Daily scored events** - daily event volume, active metric count, and value points.
* **Production versus simulation scores** - numerical values grouped by source.
* **Categorical distribution** - event counts for categorical values.
* **Entity-level coverage** - distinct entities and value counts by metric.
* **Metric freshness** - last computation, latest covered period, value count, and observed minutes stale.
* **Per-call metric scores** - recent entity-scoped values with source and period.

Dashboard filters cover time window, source, aggregate or entity scope, and metric type. A panel can be empty when its source has not produced values or the analytical query path is unavailable.

## Built-In Catalog

The 41 built-ins are grouped as follows:

| Category                 | Count | Evidence                                  |
| ------------------------ | ----: | ----------------------------------------- |
| Voice intelligence       |    10 | Call-intelligence fields                  |
| Surface intelligence     |     5 | Surface lifecycle evidence                |
| Data quality             |     3 | World-event fields                        |
| Cross-channel            |     2 | Call outcome and surface lifecycle events |
| Standard quality         |    11 | AI evaluation of conversation transcripts |
| Voice quality evaluation |    10 | Audio-native Voice Judge results          |

### Voice Intelligence

| Metric                      | Type        | What It Measures                                                                                                                 |
| --------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- |
| **Voice quality score**     | Numerical   | Average composite call-quality score from 0 to 100                                                                               |
| **Voice duration**          | Numerical   | Average call duration in seconds                                                                                                 |
| **Voice escalation**        | Numerical   | Fraction of calls marked as escalated                                                                                            |
| **Voice completion reason** | Categorical | Counts by canonical terminal reason                                                                                              |
| **Voice risk level**        | Categorical | Compatibility key. The current voice producer leaves the source field empty, so it does not provide a current risk distribution. |
| **Voice average TTFB**      | Numerical   | Average audio time-to-first-byte in milliseconds                                                                                 |
| **Voice tool failure rate** | Numerical   | Average fraction of failed tool calls                                                                                            |
| **Voice barge-in count**    | Numerical   | Average caller interruptions per call                                                                                            |
| **Voice loop count**        | Numerical   | Average context-graph state revisits per call                                                                                    |
| **Voice silence ratio**     | Numerical   | Compatibility key. Call silence isn't measured, so the source field is empty and the metric has no current values.               |

These metrics use hourly periods and a near-realtime latency classification. They require a terminal call-intelligence artifact and the relevant source field. Missing source evidence produces no meaningful value and should not be interpreted as zero.

### Surface Intelligence

| Metric                       | Type        | What It Measures                                           |
| ---------------------------- | ----------- | ---------------------------------------------------------- |
| **Surface completion rate**  | Numerical   | Submitted surfaces divided by created surfaces             |
| **Surface open rate**        | Numerical   | Opened surfaces divided by delivered surfaces              |
| **Surface abandonment rate** | Numerical   | Opened surfaces not submitted, relative to opened surfaces |
| **Surface channel**          | Categorical | Counts by observed delivery channel                        |
| **Surface time to complete** | Numerical   | Average hours from creation to submission                  |

Surface metrics depend on the corresponding lifecycle events. Missing delivery or open events affect the available denominator and should be considered when comparing channels.

### Data Quality

| Metric                      | Type      | What It Measures                                    |
| --------------------------- | --------- | --------------------------------------------------- |
| **Average data confidence** | Numerical | Average confidence on eligible current world events |
| **Event volume**            | Numerical | Count of eligible current world events              |

### Cross-Channel

| Metric                    | Type      | What It Measures                                                           |
| ------------------------- | --------- | -------------------------------------------------------------------------- |
| **Patient contact count** | Numerical | Eligible call-outcome and surface-delivery contacts                        |
| **Patient response rate** | Numerical | Eligible call outcomes and submitted surfaces relative to tracked contacts |

These definitions cover the event families named above. They are not a universal count of every message or contact channel.

### Standard Quality

Five definitions apply to every eligible service. Six outcome definitions apply only when the service carries the corresponding product-type tag.

| Metric                         | Type            | Scope                 | What It Evaluates                                                                                                                                    |
| ------------------------------ | --------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Patient sentiment**          | Categorical     | All eligible services | The patient's apparent attitude toward the interaction: positive, neutral, or negative                                                               |
| **Conversational naturalness** | Numerical, 1-10 | All eligible services | Scriptedness, recovery, empathy, pacing, turn-taking, and related conversational qualities                                                           |
| **Conciseness**                | Numerical, 1-10 | All eligible services | Whether responses were appropriately brief without penalizing necessary detail                                                                       |
| **Information accuracy**       | Boolean or null | All eligible services | Whether agent claims match tool responses. It does not verify that the tool data itself was correct. Null means there were no tool calls to compare. |
| **Safety**                     | Categorical     | All eligible services | `no_event`, `handled`, `warning`, or `critical` according to the evaluation rubric                                                                   |
| **Scheduling outcome**         | Categorical     | Scheduling            | `escalated`, `resolved`, or `no_action`                                                                                                              |
| **Outbound outcome**           | Categorical     | Outbound              | `escalated`, `resolved`, `opted_out`, `no_action`, or `no_answer`                                                                                    |
| **Coaching outcome**           | Categorical     | Coaching              | `escalated`, `resolved`, or `no_action`                                                                                                              |
| **Intake outcome**             | Categorical     | Intake                | `escalated`, `resolved`, or `no_action`                                                                                                              |
| **Triage outcome**             | Categorical     | Triage                | `escalated`, `resolved`, or `no_action`                                                                                                              |
| **Support outcome**            | Categorical     | Support               | `escalated`, `resolved`, or `no_action`                                                                                                              |

Standard quality metrics use batch AI evaluation of each eligible conversation's transcript, up to its newest 32,000 characters. Each judge answers from the metric's fixed labels or score range and can abstain, which leaves the value null. Their output is non-deterministic, can be incomplete, and does not replace authoritative record retrieval or human review.

### Voice Quality Evaluation

Ten daily metrics aggregate the [Voice Judge](https://docs.concurrence.com/intelligence-and-analytics/intelligence/call-intelligence#voice-judge) dimensions: latency and dead air, pronunciation, clarity, filler and silence, interruption handling, audio consistency, pacing, warmth and tone, accent quality, and voice identity. Values range from `0.0` to `1.0`.

These metrics require a usable recording and a completed Voice Judge result. Recording or analysis failures can leave a call without these values.

## Custom Metrics

The settings API accepts up to 50 custom definitions per workspace. Custom keys cannot reuse built-in keys, and custom definitions cannot claim built-in status. A metric's values, production evals, and simulation checks are stored under its `key`, so keep the key when you rename it.

An `ai_query` metric is a model-based judge, not a deterministic rule engine. Test new rubrics against representative conversations and calibrate them with human reviewers before using the results for deployment or safety decisions.

### API Extraction Modes

The definition schema contains five extraction modes, but their execution boundaries differ:

| Mode              | Current Boundary                                                                                                                                                                                 |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **`static`**      | Reads a configured JSON path from matching world events. The current custom static aggregate path is suited to numerical values.                                                                 |
| **`ai_classify`** | Classifies selected event content into configured labels. Labels are required by the current execution path.                                                                                     |
| **`ai_extract`**  | Extracts configured fields from event content. The current execution path requires labels.                                                                                                       |
| **`ai_query`**    | Runs a rubric against a conversation transcript for `call_intelligence`, or against matching world-event data, using an allowed managed tier or explicitly permitted custom model configuration. |
| **`sql_expr`**    | Reserved for platform definitions. The settings API rejects it for custom metrics.                                                                                                               |

The API accepts numerical, categorical, and boolean metric types. Not every type, aggregation, and extraction-mode combination has an active executor. Prefer a `call_intelligence` `ai_query` definition or a combination explicitly verified in the current API and pipeline before deploying a custom definition.

A custom `ai_query` metric declares its answer set when it is saved. A categorical metric needs a non-empty `ai_labels` list, and a numerical metric needs both `valid_range_min` and `valid_range_max`, with the minimum below the maximum. Saving a new metric without them, or changing an existing one's type, prompt, or bounds without them, returns `422`. Stored metrics are not rewritten. A categorical `ai_query` metric reads its labels from `ai_labels`, or from `categories` on a metric saved with only that field.

For `call_intelligence`, the judges answer through a constrained decision format: `true` or `false`, a number inside the declared range, or one of the declared labels, each with an explicit `cannot_determine`. A `cannot_determine` answer stores no value, and a production or simulation metric eval on it reports `skipped`, with `cannot_determine: true` in its `actual`. A categorical metric saved without labels answers in free text.

A categorical answer is trimmed and matched to the declared labels ignoring case, and the label is stored exactly as defined, so an answer of `resolved` is stored as `Resolved`. An answer that matches no label is stored as null rather than coerced. A categorical metric without labels stores the answer lowercased.

### Model Tiers

| Tier         | Current Use                                                                          |
| ------------ | ------------------------------------------------------------------------------------ |
| **Free**     | Platform-managed classification and extraction modes. It is not valid for `ai_query` |
| **Fast**     | Managed AI-query tier for simpler evaluations                                        |
| **Balanced** | Managed AI-query tier used by the built-in standard quality judges                   |
| **Max**      | Managed AI-query tier for more complex evaluation                                    |
| **Custom**   | API-only custom model configuration when explicitly permitted                        |

Tier names describe routing and intended complexity. They are not a latency, accuracy, or cost guarantee.

### Source and Channel Scoping

Custom definitions accept matching event types and a channel scope of `all`, `voice`, `text`, `surface`, `inbound`, or `outbound`. `ai_query` treats `call_intelligence` as a conversation-transcript source and other supported configurations as world-event evaluation.

The built-in voice metrics are scoped to voice calls, so text sessions do not contribute to them or to the workspace Voice Quality Score. Use narrow event types as the primary filter. A broad wildcard can evaluate unrelated events, increase cost, and produce values that are difficult to interpret.

### No Generic Preview Endpoint

The Platform API does not expose a generic, non-persisting **evaluate metric** endpoint. The embedded [production-eval operation](https://docs.concurrence.com/developer-guide/platform-api/safety/production-evals#evaluating-a-call) runs the workspace's active eval definitions, other than the platform's defaults, for one completed conversation and persists the verdicts. It is not an inline preview of an arbitrary metric definition.

## Processing and Freshness

### Latency Classification

| Tier              | Intended Processing Class                                     |
| ----------------- | ------------------------------------------------------------- |
| **Streaming**     | A producer and projection capable of seconds-level processing |
| **Near realtime** | Triggered or low-latency processing measured in minutes       |
| **Batch**         | Scheduled processing, typically hourly or daily               |

`latency_tier` is definition metadata and processing intent. It does not itself create a streaming producer, runtime alert, or contractual delivery time.

### Period Granularity

Definitions support hourly or daily periods. Built-in voice operational metrics use hourly periods. Standard quality and Voice Judge metrics use daily periods. Changing the setting affects future applicable processing. It does not guarantee an immediate rewrite of existing history.

### Freshness Target

`freshness_sla_minutes` accepts values from 5 minutes to 24 hours and defaults to 60 minutes. It is a configured staleness target, not an externally enforced SLA.

The Realtime Metric Store dashboard shows observed computation freshness from its analytical freshness view. There is no dedicated public metric-freshness endpoint in the current Platform API.

## Query Surface

The public metric routes provide four reads:

| Read                   | Current Behavior                                                                                                                                                                                                                                                                                        |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **List metric values** | One latest row per metric series by default, with a categorical or boolean period folded into one row and its `distribution`, or history with `latest_only=false`; supports source, scope, entity, service, run, session, and date filters, and pages with `sort_by`, `limit`, and `continuation_token` |
| **Get one metric**     | Values for a metric key with source, scope, entity, service, run, session, and date filters                                                                                                                                                                                                             |
| **Metric trend**       | Every value in a window of up to 365 days for one metric key, with the same scope filters. An unknown metric key returns `404`                                                                                                                                                                          |
| **Metric catalog**     | Built-ins the workspace has not turned off plus active custom definitions, including type, source, extraction mode, value granularity, period granularity, latency tier, model tier, unit, prompt presence, and built-in status                                                                         |

The values list returns up to 500 rows a page (default 100) with `has_more` and an opaque `continuation_token`. Pages cover the first 10,000 values, so narrow the filters or dates to read past them. An undefined metric key returns `404` on value and trend reads, a `date_from` after `date_to` returns `422`, and the `service_id` and `run_id` filters take UUIDs.

`GET` and `PUT` on metric settings manage the complete definitions list. Reads require authenticated workspace access, and updates require admin or owner permission. The list is replaced when supplied, while built-ins are merged back with only supported overrides.

A historical call route also returns recent per-call metric values for call detail. Use the unified Runs surface as the canonical interaction inventory, and use the general metric filters for run- and session-scoped analysis.

### Missing and Delayed Values

Preserve these distinctions in downstream reporting:

* A configured metric with no value can mean no eligible source evidence, pending processing, a failed evaluator, or an unavailable analytical dependency.
* Numerical `0`, boolean `false`, categorical values, and null are different outcomes.
* Recent API values can appear before the durable dashboard view catches up.
* Production and simulation values are separate source classes and should not be combined unless the analysis explicitly requests `all`.
* Per-entity values should not be treated as workspace aggregates without an explicit aggregation step.

## Production Evals and Metric Values

Production eval definitions and metric definitions are related but distinct. A production eval can reference an active AI-query call-intelligence metric and persist an eval result for the evaluated conversation. When the judge returns a value, the result carries it in `actual.value`, and in `score` when it is numeric. A production eval does not add rows to the metric values store, so read that value from the [eval result](https://docs.concurrence.com/developer-guide/platform-api/safety/production-evals#retrieving-call-eval-results), not from the metric API. Production-source values for an AI-query metric come from the scheduled analytical processing described in [How Values Become Available](#how-values-become-available). That value is a separate evaluation of the conversation, so it can differ from the eval result. Assertion evals have their own verdict semantics.

Automatic eager evaluation is best-effort and feature-dependent. It can be skipped when disabled, when the conversation lacks a durable identifier, when capacity controls apply, or when an evaluator fails. Manual call evaluation persists results. Simulation runs evaluate only definitions captured and selected in the run configuration.

See [Metrics and Quality](https://docs.concurrence.com/testing/testing/metrics) for simulation assertions, score interpretation, and deployment-gate guidance.

## Billing Meters Are Separate

Billing metering is a separate pipeline and API surface from the metric store. Its default lifecycle catalog includes:

| Meter                  | Unit           | Current Evidence                                                |
| ---------------------- | -------------- | --------------------------------------------------------------- |
| Voice minutes          | minutes        | Reported voice-call duration                                    |
| Call count             | calls          | Voice-call events                                               |
| LLM input tokens       | tokens         | Emitted model-usage records                                     |
| LLM output tokens      | tokens         | Emitted model-usage records                                     |
| SMS messages           | messages       | SMS message events                                              |
| Call recording minutes | minutes        | Reported recording duration                                     |
| Completed calls        | calls          | Selected completed call-intelligence outcomes                   |
| Quality-weighted calls | quality points | Quality scores for those selected completed outcomes            |
| Surface submissions    | submissions    | Submitted surface events                                        |
| Message count          | messages       | Recorded agent engage-message events                            |
| Action count           | actions        | Reported tool counts on eligible voice and companion executions |
| Conversation count     | conversations  | Eligible call-session and companion-execution events            |

Calls on the `gpt_realtime` voice runtime record voice minutes and call count; their tool calls are not counted on the action count meter. Meter rows are partitioned by production or simulation source when the emitter supplies that classification. The metering emit API can also introduce authorized custom meter keys. Meter projection is asynchronous, so an accepted emission is not proof that a billing rollup or invoice already contains it.

{% hint style="info" %}
**Developer Guide** - For Platform production-eval definitions and the other safety and monitoring surfaces, see [Safety & Monitoring](https://docs.concurrence.com/developer-guide/platform-api/safety).
{% endhint %}


# Cost to Serve

Understand workspace LLM usage and calculated cost, customer and staff access, and pricing and attribution limits.

Workspace LLM reports help teams compare recorded usage and calculated model cost. Customer usage, customer-visible calculated cost, and staff-only cost have different access requirements. None establishes the customer's invoice, contracted price, or full deployment operating cost.

The reports use a selected date range. The [Developer Guide](https://docs.concurrence.com/developer-guide/platform-api/platform-api/cost-to-serve) explains the report operations.

## LLM Inference Cost

Calculated LLM cost uses recorded model usage and applicable pricing. Its completeness depends on emitted usage, attribution, token counters, and rate coverage. Review unpriced usage alongside any cost comparison.

Customer reports distinguish production-classified usage from simulation, playground, customer-test, Concurrence-internal, and unresolved usage. These are recorded classifications, not a guarantee that every production-classified request was customer-operated.

The customer overview includes the priced portion of usage and flags missing pricing. A model breakdown is stricter: a model with any unpriced usage has a null cost. Visible model costs therefore need not sum to the overview subtotal. Missing cost is not zero cost.

Conversation counts include linked conversations. Model requests without a conversation link can still contribute usage. A cost-per-conversation figure is based on priced, linked usage and is not a measurement of cost per verified customer outcome.

## Infrastructure Cost

The LLM reports do not provide an infrastructure allocation. They exclude a pooled compute/storage breakdown and do not reconcile the full operating bill. Review broader deployment costs separately using [Cost and Latency Optimization](https://docs.concurrence.com/platform-overview/cost-and-latency).

## Data Source and Availability

A report selects one complete published calculation covering the requested date range. Complete date coverage does not mean complete attribution or pricing. Usage publication is asynchronous, so a completed interaction can precede report availability.

Current customer overviews report partial data even when a calculation exists. Source freshness, reproducible rate-card version, conversation-attributed token share, and a compatible monthly close remain unavailable. If no calculation covers the whole range, the overview reports failed data with null totals. Treat that as unavailable information, not an empty period.

## Access Restrictions

Basic usage reads require workspace access and permission to view data. Customer usage-and-cost reads additionally require a signed-in identity user and explicit workspace enablement; this capability is disabled by default. API keys cannot substitute for that user login.

The separate staff cost report requires a Concurrence administrator identity. A customer's workspace administrator role does not grant staff access. Confirm the report and credential type before building a reporting workflow.

## Relationship to Other Analytics

Calculated model cost, metered billing, invoices, and operational quality analytics answer different questions. Keep them distinct in a dashboard: usage is not an amount owed, and a reported cost is not evidence that a workflow achieved its outcome.

Use the [current API guide](https://docs.concurrence.com/developer-guide/platform-api/platform-api/cost-to-serve) for usage and cost reads, and [Analytics and Dashboards](https://docs.concurrence.com/intelligence-and-analytics/intelligence/analytics-dashboards) for operational reporting.


# Healthcare Overview

Choose a healthcare workflow by its operational problem, required integrations, completion evidence, and opportunities to reuse the foundation.

Start with a recurring task your team wants to improve and a result it can verify. These guides connect healthcare workflow problems to the data, agents, channels, and external systems involved. Each scenario identifies work that can be configured, its dependencies, and the evidence needed to evaluate the result.

## Scenarios

Each guide walks through a healthcare workflow pattern. Some steps require customer-authored automation, configured external systems, or explicitly labeled sample-data previews. Treat the guides as design patterns rather than proof that every capability is enabled in every workspace.

| Workflow and starting problem                                                                                                                                                            | Evidence to agree on                                                                                |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| <p><a href="https://docs.concurrence.com/use-cases/use-cases/scheduling-outreach">Scheduling and Outreach</a><br>Appointment changes require repeated calls and manual coordination.</p> | Confirmed appointment changes, unresolved requests, and staff handling                              |
| <p><a href="https://docs.concurrence.com/use-cases/use-cases/care-coordination">Care Coordination</a><br>Follow-up spans interactions and care-team handoffs.</p>                        | Context available to the authorized recipient, recorded follow-up, and an owner for the next action |
| <p><a href="https://docs.concurrence.com/use-cases/use-cases/clinical-verification">Clinical Verification</a><br>A workflow needs evidence for clinical and operational review.</p>      | Case results, stop conditions, and reviewer decisions                                               |
| <p><a href="https://docs.concurrence.com/use-cases/use-cases/population-health">Population Health</a><br>A defined patient population needs consistent outreach.</p>                     | Source-supported eligibility, permitted contacts, and recorded follow-up                            |
| <p><a href="https://docs.concurrence.com/use-cases/use-cases/contact-center">Contact Center</a><br>Callers need help reaching the right workflow or person.</p>                          | Routing and handoff results, completed work, and remaining human follow-up                          |

## Use a Scenario as a Design Exercise

For the first workflow, identify an operating owner, an eligible population, source and target systems, allowed actions, and an exception owner. Record the manual work and unresolved cases in the baseline, then agree on the result that makes the evaluation useful. Scope access, integration work, and customer inputs with the [implementation deliverables](https://docs.concurrence.com/platform-overview/operating-model#agree-on-implementation-deliverables).

Map those requirements to the platform components introduced in [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts). The [end-to-end example](https://docs.concurrence.com/platform-overview/how-it-works) shows the method for an appointment change. Keep the workflow's business result separate from its conversation metrics: a recorded referral request, a delivered reminder, and a completed visit have different sources of evidence.

For an adjacent workflow, use [Connect Another Workflow](https://docs.concurrence.com/data/connect-another-workflow) to identify reusable connections and context, new permissions and actions, and the additional operating effort. Evaluate reuse through the second workflow's accepted result.

## Channel Selection

Voice, text, and messaging workflows can reuse compatible agent and Context Graph definitions and selected world-model context. Their runtimes, delivery rules, and operator controls differ. A workflow that combines a phone call, a form, and a reminder needs explicit routing and verification at each step. See [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine) for execution behavior and [Channels](https://docs.concurrence.com/channels/conversations) for transport differences.

The guides target Platform API concepts. Channel support and external delivery still depend on workspace provisioning, service configuration, consent, and the selected runtime:

* **Scheduling, outreach, care coordination, contact center** - Phone and SMS workflows using the voice pipeline, world model, EHR integrations, and operator escalation.
* **Patient-facing chat, digital health coaching, in-app messaging** - Text sessions through the Platform API's text channel with the same memory system, context graphs, and world model integration.
* **Multi-channel deployments** - Compatible agent and Context Graph versions can be reused across supported channels, with channel-specific configuration and testing. [Agent Forge](https://docs.concurrence.com/reference/agent-forge) manages the supported Platform configuration resources.


# Patient Scheduling and Outreach

End-to-end patient scheduling and outbound outreach workflow, from clinical data loading through interaction completion and policy-gated external updates.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-a6e7cd08bd006119d47e831607e35912c07da318%2Fscheduling-outreach-green.svg?alt=media" alt="A customer-owned outreach workflow selects eligible patients and channel policy. The configured conversation verifies identity, uses an authorized scheduling integration, and confirms the destination result."><figcaption><p>Channel fallback and retry policy belong to the configured workflow.</p></figcaption></figure>

This guide walks through a common healthcare workflow: an AI agent handles appointment scheduling and outbound patient outreach across voice and text channels, from data ingestion through interaction completion and configured external updates.

## The Workflow

A health system needs to contact patients who are due for follow-up appointments. Today, care coordinators manually review lists, make calls, navigate scheduling systems, and document outcomes. The process is time-consuming, and many patients never get contacted.

With Concurrence, teams can automate selected parts of this workflow while keeping clinical standards, consent, external-system confirmation, and exception handling explicit.

## Step-by-Step Flow

### 1. Patient Data Reaches the World Model

Supported patient data from an EHR or another source system reaches the world model through FHIR import or dataset intake. A separate query, trigger, or customer workflow identifies patients who are due for follow-up based on criteria such as time since last visit, care-plan milestones, or provider orders.

An example workflow may ingest or retrieve:

* Demographics and contact preferences
* Relevant clinical context (reason for follow-up, last visit summary)
* Scheduling constraints (provider availability, location preferences)
* Prior interaction history with the platform

Source records must carry a stable patient association or be reconciled through a supported customer workflow. The active pipeline does not create new cross-source `same_as` merges, so do not rely on automatic identity matching across unrelated systems.

### 2. Outbound Dispatch Initiates Contact

An explicit workflow can start an outbound SMS or iMessage conversation or place a direct voice call. The workflow applies its own timing, attempt limits, and retry policy. The platform does not automatically choose a channel or fall back from an unanswered call to SMS or voicemail. Configure those decisions in a Context Graph, trigger, or external workflow.

### 3. Agent Greets the Patient

When the patient answers a call or receives the first text message, the agent introduces itself and states the purpose of the interaction. If identity resolution and authorized context are available, the greeting can use that context without disclosing unverified identity information.

For example, the agent might say: "Hello, this is the follow-up team at City Medical Center. I am calling because Dr. Patel asked us to check in with you after your visit last week and help you get your next appointment scheduled."

The agent version, channel configuration, and authored guidance shape tone, pacing, and vocabulary. Do not infer communication needs from age alone. Use explicit preferences, accessibility needs, and tested workflow guidance.

### 4. Agent Reads Context from the World Model

During the conversation, authorized tools can retrieve relevant projected information. Projection and tool latency vary, so the workflow must handle missing or stale context:

* **Appointment context**: What type of follow-up is needed, how soon, and with which provider
* **Patient history**: Prior no-shows, scheduling preferences, transportation barriers
* **Clinical notes**: Any instructions from the care team about urgency or special requirements

This context can support a more relevant conversation. If the patient says "I had trouble getting there last time," an authored workflow can consult current transportation options or record the new barrier rather than assume an earlier observation is still correct.

### 5. Agent Uses a Scheduling Integration

Once the patient agrees to schedule, an eligible scheduling tool can query current availability from the configured integration. The agent can present returned options and apply supported filters such as provider, location, appointment type, or time window. If no option satisfies the request, it should explain the returned alternatives or use the authored fallback rather than invent availability.

The workflow can incorporate scheduling constraints such as:

* Multiple providers or locations
* Insurance verification requirements
* Pre-appointment instructions (fasting, medication holds)
* Follow-up reminders and confirmation preferences

When the patient selects a slot, the agent requests the booking through the configured scheduling tool and confirms it only when the tool result supports that claim.

### 6. Outcomes and External Updates

During or after the interaction, supported tools can record structured outcome events in the world model, and integration tools can send the change to a scheduling or clinical system. Outcome data may include:

* Interaction outcome (scheduled, declined, no answer, callback requested)
* Appointment details if scheduled
* Any patient concerns raised during the conversation
* Escalation notes if the patient reported symptoms or issues requiring clinical attention

Recording an outcome event does not itself prove that an external system accepted it. An integration call reports its own result, and care coordinators can use destination records or supported read-back evidence when confirmation matters.

## Handling Edge Cases

The agent and Context Graph should define boundaries for situations that require human involvement:

* **Patient reports new symptoms**: The workflow should prohibit unsupported clinical advice, record the concern when permitted, and use the authored care-team escalation path.
* **Patient requests a provider change**: The agent can offer available alternatives but escalates complex situations (such as insurance or referral issues) to a coordinator.
* **Patient expresses distress or confusion**: The agent adjusts its approach and, if needed, offers to connect the patient with a live staff member.
* **Language barriers**: The workflow uses the configured language capability and an authored fallback or transfer path when the interaction cannot be supported safely.

## What This Looks Like in Production

At scale, this pattern can increase routine outreach capacity when channel delivery, scheduling integrations, and exception handling perform as expected. Care coordinators can then focus on interactions that need complex coordination or clinical judgment, while retaining a fallback for automation failures.

Teams can define metrics over recorded outcomes, such as scheduling rates and escalation frequency. No-show comparison requires a reliable join to later appointment outcomes from the authoritative scheduling system. Use equivalent definitions and populations when comparing simulation and production, and investigate modality or evidence differences before drawing conclusions.


# Care Coordination

Multi-encounter care coordination with cross-session memory, world model data unification, and personalized patient interactions.

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-33cd37664f306925544f316480e7fd7331090798%2Fcare-coordination-blue.svg?alt=media" alt="A care workflow distinguishes connected records from generated memory, verifies current facts through authorized reads, and applies authored care guidance and explicitly configured follow-up."><figcaption><p>Generated memory is supporting context, not authoritative clinical retrieval.</p></figcaption></figure>

This guide covers how Concurrence supports ongoing care coordination across multiple patient encounters. Unlike a single scheduling interaction, care coordination involves repeated touchpoints over weeks or months across voice and text channels, with the agent building context over time and personalizing each interaction.

## The Challenge

Patients with chronic conditions or complex care plans interact with the health system frequently. Each interaction generates information that should inform the next one. In practice, this context is often lost: different staff members handle different calls, notes are incomplete, and patients have to repeat themselves.

Effective care coordination requires continuity. The agent must remember what happened in prior conversations - whether they occurred over phone or text - track progress against care plan goals, and adapt its approach based on what has worked (or not worked) for each patient.

## Memory Across Encounters

Concurrence's [memory system](https://docs.concurrence.com/agent/memory) can turn completed conversation evidence into source-linked episodic observations and a consolidated user model for later sessions. Connected clinical records also contribute a separate deterministic clinical-state summary. Processing is asynchronous and generated memory is not guaranteed to capture every detail, so current clinical and scheduling facts still come from authoritative data tools.

**Context available across encounters:**

* Generated episodic observations can carry forward patient-reported barriers, preferences, and prior interaction context when memory processing succeeds.
* The bounded semantic user model can consolidate longer-lived goals, trajectories, and interaction preferences without becoming an authoritative clinical record.
* Connector-derived clinical state separately supplies current conditions, medications, and allergies with its own provenance.
* Scheduling, escalation, and care-team facts should come from current world-model records and authoritative tools rather than generated memory alone.

**How memory improves coordination:**

On a first call, the agent may follow a standard check-in flow. In later sessions, available memory can help it recognize that a patient prefers morning calls or wants concise explanations. Current medication and scheduling facts still come from connected records, and configured workflows decide timing and reminders.

Over longer time horizons, teams can analyze source-linked observations and explicit outcomes for patterns that are not visible in any single interaction. A suspected medication-adherence cycle, for example, should be validated against current records before it changes outreach or agent guidance.

## World Model Unifies Data Sources

The world model projects supported information from multiple systems into entity views that authorized agents and tools can access during a conversation.

| Data Source         | What It Provides                                 |
| ------------------- | ------------------------------------------------ |
| EHR                 | Diagnoses, medications, lab results, care plan   |
| Voice conversations | Patient-reported symptoms, concerns, preferences |
| Manual entry        | Care team notes, social work assessments         |
| Scheduling system   | Appointment history, upcoming visits             |
| Connected devices   | Vitals, weight trends, activity data             |

When an authorized tool exposes a current fact, the workflow can avoid asking the patient to repeat it. For example, a configured device-data integration could expose a weight trend for an authored care-coordination step. Projection freshness and source authority still need to be checked before the agent treats the value as current.

This can expose conflicting information rather than hiding it. If the EHR shows a medication was discontinued but the patient mentions still taking it, the agent can preserve both sources and follow the authored escalation or verification workflow.

## Personalized Interactions

Each interaction is shaped by what the platform knows about the patient. Personalization happens across several dimensions:

**Communication style**: Some patients want detailed explanations. Others want brief, direct updates. When generated memory captures a supported preference, the agent can use it while remaining prepared for that preference to be incomplete or outdated.

**Timing and cadence**: Configured triggers and scheduling rules can use known preferences and prior outcomes. A team might move a patient who consistently misses afternoon calls to a morning outreach window.

**Content focus**: Authored state guidance and current tool results can prioritize topics relevant to the patient's situation. A medication change or care milestone should influence the conversation only when the workflow has current, authorized evidence for it.

**Barrier awareness**: Available patient-reported context can inform authored recommendations or referral options. Consequential facts should be verified when they may have changed.

## Operator Escalation

Not every situation is within the agent's scope. Authored context-graph instructions define when the agent should escalate to a human operator.

**When the agent escalates:**

* Patient reports new or worsening symptoms that require clinical assessment
* The patient's situation has changed significantly since the last care team update (new diagnosis, hospitalization, family crisis)
* The patient explicitly requests to speak with a nurse or provider
* The agent reaches an authored uncertainty or scope boundary

**How escalation works:**

Depending on the channel, retained evidence, and configured context, the selected run can give the operator information such as:

* Current conversation context and patient concern
* Relevant history from prior interactions
* Selected world-model or tool context made available to that operator workflow
* Reason for escalation

For voice, the operator can review available context before joining or taking over the live call. The handoff should not be treated as a guaranteed full clinical briefing. Teams should keep authoritative records accessible and record the resolution through the configured workflow.

## What This Looks Like Over Time

In a care coordination deployment, the agent handles routine touchpoints (medication check-ins, appointment reminders, care plan reinforcement) while care managers focus on patients who need clinical judgment.

As supported interaction history accumulates, later calls can use available memory and current world-model context for continuity. Teams should measure whether that personalization improves explicit outcomes, such as adherence or missed appointments, rather than assume improvement from history alone.

{% hint style="info" %}
For details on how to verify clinical quality in care coordination workflows, see the [Clinical Verification](https://docs.concurrence.com/use-cases/use-cases/clinical-verification) guide. For the memory system's layered architecture, see [Memory](https://docs.concurrence.com/agent/memory).
{% endhint %}


# Clinical Verification

Build clinical-safety evidence with representative simulations, customer-owned release criteria, and qualified human review.

Before an AI agent interacts with patients, teams need evidence that its configured behavior is appropriate for the intended clinical scenarios and operating boundaries. This guide covers how to use Concurrence's testing framework alongside organizational release criteria and qualified human review. No finite test set proves that a model will behave correctly on every future interaction.

{% hint style="warning" %}
Simulation scores and model-graded metrics are evidence, not clinical validation, regulatory approval, or a substitute for review by qualified clinical and compliance owners.
{% endhint %}

Use clinical scenarios and explicit acceptance criteria to inform human review. An approved, phased release should include monitoring and a route for adding new edge cases to the evaluation set. Simulation results do not certify clinical safety.

## Why Clinical Verification Matters

Healthcare AI operates under constraints that most other domains do not have. A missed safety escalation can harm a patient. A scope-of-practice violation can create liability. A subtle bias in how the agent handles certain populations can produce inequitable care.

Generic testing is not sufficient. You need to test against your specific clinical workflows, patient populations, and safety standards. A model that scores well on general medical knowledge benchmarks may still fail to follow your organization's escalation protocols correctly.

## Simulation with Medical Scenarios

Build simulations that reflect the clinical situations your agent will encounter. Start with your highest-risk workflows and expand from there.

### Designing Clinical Personas

Clinical personas should represent the diversity of your patient population, including the patients who are hardest to serve well:

* **Complex medication regimens**: Patients on multiple medications where interaction detection is critical
* **Cognitive limitations**: Elderly patients or those with cognitive impairment who may provide unreliable information
* **Communication barriers**: Patients with limited health literacy, non-native speakers, or patients who minimize symptoms
* **High acuity**: Patients presenting with symptoms that require urgent escalation

Each persona exercises a specific capability. A persona with cognitive impairment can probe whether the agent notices confusion and follows the authored communication policy. A persona who downplays symptoms can exercise the organization's clarifying-question and escalation criteria.

### Building Clinical Scenarios

Pair personas with scenarios that test the boundaries of safe agent behavior:

* **Routine follow-up that reveals a problem**: A standard post-discharge check-in where the patient casually mentions a new symptom that requires escalation
* **Conflicting information**: The patient's self-report contradicts EHR data, and the agent must handle the discrepancy appropriately
* **Scope boundary**: The patient asks a question that falls outside the agent's defined scope of practice
* **Emotional distress**: The patient becomes upset, anxious, or frustrated during a clinical interaction

{% hint style="warning" %}
Do not only test happy paths. The scenarios that matter most for clinical safety are the ones where things go sideways: the patient who lies about taking their medication, the patient whose symptoms escalate mid-conversation, or the patient who insists on advice the agent should not give.
{% endhint %}

## Metric-Based Quality Gates

Define metrics that your release process treats as required checks. The platform records evaluation evidence, but it does not automatically block a version-set update or make the release decision.

### Safety Metrics (Hard Gates)

The values below are illustrative policy targets, not platform guarantees or claims that a finite evaluation set proves future behavior.

| Example Metric               | Example Target | Notes                                                               |
| ---------------------------- | -------------- | ------------------------------------------------------------------- |
| Escalation accuracy          | 100%           | Agent correctly identifies situations requiring clinical escalation |
| Scope-of-practice adherence  | 100%           | No observed out-of-scope advice in the evaluated set                |
| Privacy protocol compliance  | 100%           | No observed violation of the tested PHI-handling requirements       |
| Medical information accuracy | 99.5%+         | Factual correctness of clinical information provided                |
| Risk disclosure completeness | 99%+           | Agent discloses relevant risks when appropriate                     |

Set these thresholds with the clinical, compliance, and operational owners for the workflow. If a required check fails, keep the release out of production through your team's explicit review and promotion process.

### Quality Metrics (Improvement Targets)

| Example Metric        | Example Target | Notes                                                        |
| --------------------- | -------------- | ------------------------------------------------------------ |
| Explanation clarity   | 90%+           | Information presented in language appropriate to the patient |
| Empathy score         | 85%+           | Agent demonstrates appropriate emotional support             |
| Response completeness | 90%+           | Agent fully addresses the patient's question or concern      |
| Goal completion       | 85%+           | Agent accomplishes the intended purpose of the interaction   |

Improvement targets guide prioritization rather than making the release decision. A configuration that meets the organization's required checks but falls slightly below an empathy target may still be appropriate to release while improvement work continues.

## Human Review Workflows

Automated metrics do not catch everything. Human review adds independent clinical judgment and context that a model-based evaluator may miss.

### When to Use Human Review

* **Initial deployment**: Have clinical staff review a meaningful sample of conversations before and during early production use.
* **After configuration changes**: Review conversations from the first few days after any update to agent instructions, Context Graphs, tools, or model configuration.
* **Selected conversations**: Use run filters, metric results, recordings, and transcripts to identify borderline or representative cases for human review.
* **Ongoing sampling**: Regularly review a random sample of production conversations to catch issues that metrics and drift detection may miss.

### Structuring Reviews

Provide reviewers with clear rubrics aligned to your metrics. Reviewers should assess:

* Did the agent stay within its scope of practice?
* Were escalation decisions appropriate?
* Was the clinical information accurate and complete?
* Was the communication appropriate for the patient's situation?
* Were there any missed opportunities or concerns?

Compare human review scores against automated metric scores. If they diverge, investigate the rubric, evidence, sampling, and reviewer calibration before changing the metric or release criteria.

## Putting It Together

Clinical verification is not a one-time event. It is an ongoing process that runs in parallel with deployment:

1. **Before deployment**: Run clinical simulation suites, compare results with your required criteria, complete initial human review, and make an explicit release decision.
2. **During early deployment**: Monitor metrics daily. Select representative and concerning conversations for review. Expand simulation coverage based on production patterns.
3. **In steady state**: Track metrics across cohorts. Detect drift. Update simulations when clinical workflows or guidelines change. Maintain ongoing human review sampling.

{% hint style="info" %}
For detailed guidance on phased deployment with quality gates at each stage, see [Simulations](https://docs.concurrence.com/testing/testing/simulations). For the testing framework details, see [Testing and Evaluation](https://docs.concurrence.com/testing/testing).
{% endhint %}


# Population Health

A configuration pattern for population outreach that combines ingestion, customer-defined risk logic, explicit outreach workflows, and agent conversations.

This guide describes how teams can compose ingestion, customer-defined risk logic, explicit outreach workflows, and agent conversations for population-health use cases.

{% hint style="warning" %}
Risk scores, forecasts, intervention effects, and policy recommendations require customer validation and appropriate clinical governance. The Platform API does not turn a model output into a validated clinical decision or automatically enroll a population in outreach.
{% endhint %}

## The Challenge

Health systems sitting on large volumes of clinical and sociodemographic data face a common problem: the data exists, but it does not drive action. Risk models run in analytics platforms that are disconnected from patient communication. Stratification scores sit in dashboards that care coordinators check manually. Evidence-based guidelines live in PDFs and clinical protocols that staff apply inconsistently.

The gap is not data or knowledge. It is execution: turning a risk score into a patient conversation, turning a guideline into a recommendation delivered at the right moment, doing this across thousands of patients without scaling staff linearly.

Concurrence provides data, function, trigger, outbound, and conversation primitives that a team can connect into this workflow. Eligibility, risk computation, consent, intervention policy, and outcome validation remain explicit configuration or customer-owned logic.

## Data Foundation

Population health starts with data. The platform needs a unified view of each patient that spans clinical records, sociodemographic context, and interaction history.

### Clinical Data Ingestion

Clinical data from EHR systems, FHIR stores, and other source systems reaches the world model through FHIR import or dataset intake. For population health, the relevant data includes:

* **Diagnoses and problem lists**: active conditions, comorbidities, historical diagnoses
* **Lab results and vitals**: HbA1c trends, blood pressure readings, lipid panels, BMI
* **Medications**: current prescriptions, adherence patterns, refill history
* **Encounter history**: visit frequency, no-show patterns, ED utilization, hospitalizations
* **Care plans and orders**: open referrals, pending follow-ups, screening gaps

FHIR import and authenticated dataset intake are separate ingestion paths. Supported ingestion produces attributed events for the [world model](https://docs.concurrence.com/data/world-model). Source-class confidence depends on the producer and observation path, not simply on whether a record came from an EHR. Supported projections apply their defined precedence and recency rules; the selected value is not independently verified truth.

### Sociodemographic Data

Clinical data alone misses critical risk factors. The same ingestion paths that load clinical data can carry sociodemographic indicators:

* **Demographics**: age, sex, race/ethnicity, preferred language
* **Social determinants**: housing stability, food security, transportation access, employment status
* **Geographic context**: ZIP code, urban/rural classification, distance to care facilities
* **Insurance and financial**: coverage type, plan limitations, prior authorization patterns
* **Behavioral factors**: smoking status, substance use, physical activity levels

Social-determinant data often arrives from multiple sources with different provenance. Supported projections can prefer a higher-ranked source class and use recency within a class without deleting conflicting history. The confidence value is a projection input associated with the source path, not a universal assessment that one record or provider is reliable.

### Unified Patient View

The [world model](https://docs.concurrence.com/data/world-model) retains source events and asynchronously projects supported entity state. Clinical, sociodemographic, and interaction evidence can contribute to the same entity when it has a stable association. Projection coverage can be partial, and the active pipeline does not create new cross-source `same_as` merges. Agents may still need authoritative tools for current or detailed records.

### Define Comparable Clinical Inputs

Before computing a cohort or risk feature, agree on its [clinical data contract](https://docs.concurrence.com/data/clinical-data-contracts): meaning, units, measurement times, eligible sources, missingness, and derivation evidence. A shared patient identifier does not make every measurement comparable.

For a rule that uses age and average BMI over a year, specify the age evaluation date, eligible weight/height pairs, averaging method, duplicate and correction handling, and minimum observation coverage. Keep these calculations in tested code or queries. The clinical owner supplies the decision threshold, population scope, and permitted intervention, and the agent explains and follows that reviewed workflow.

## Risk Stratification

Once data is unified, teams can register functions and queries that compute risk scores or rule-based cohorts for the population.

### Platform Functions for Risk Scoring

[Platform functions](https://docs.concurrence.com/agent/platform-functions) can host read-only queries or computations used by a customer-defined risk workflow. The four function types map to different implementation needs:

| Function Type    | Risk Stratification Use                                                                                                                        |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| **SQL**          | Cohort queries that identify patients meeting clinical criteria (e.g., all diabetics with HbA1c > 9 and no visit in 90 days)                   |
| **Python**       | Custom scoring algorithms that combine clinical indicators, sociodemographic risk factors, and utilization patterns into composite risk scores |
| **AI**           | Classification functions that categorize patients by acuity or urgency from unstructured clinical notes                                        |
| **Table-valued** | Functions that expand one input into multiple rows, useful for per-encounter or per-line-item cohort breakdowns                                |

A Python user-defined function (UDF) might transform supplied features into a composite score. Python UDFs are pure compute and cannot query workspace data from inside the function body. Shape the required data at the SQL level or supply it as parameters. Registration and execution do not validate the clinical model.

### Condition-Specific Stratification

Teams can register separate named functions for different indications. A diabetes function might use HbA1c trends and screening gaps, while a cardiovascular function uses different inputs. Keep model version, feature definition, validation population, and decision threshold outside the function output so reviewers can reproduce the policy that consumed the score.

Platform functions are registered at workspace scope, while their exposure to an agent depends on the service and runtime. Runtimes that enforce per-state tool bindings require the relevant context-graph state to reference the function in `tool_call_specs`. Other runtimes can expose a broader workspace tool set. Validate the deployed service's resolved tools before relying on a function in a patient workflow.

### Population-Level Queries

[Workspace data queries](https://docs.concurrence.com/agent/platform-functions#workspace-data-queries) (registered parameterized SQL templates that run against the workspace's own custom tables) answer population-level questions such as "How many patients in this panel have uncontrolled diabetes and a transportation barrier?" or "Which patients scored high-risk but have not been contacted in the last 30 days?" Teams register these queries up front so agents call them by name during operational workflows.

### Population Analytics Boundary

The public Platform API does not expose a general production epidemiology-table catalog with built-in prevalence, standardized prevalence ratio, comorbidity-association, or incident-trend endpoints. Teams can compute governed cohort measures with registered queries and their own analytical models.

## Risk Prediction

Stratification summarizes a defined evidence set. Prediction estimates a future outcome under a separately validated model and population.

### Memory-Derived Signals

The platform's [memory system](https://docs.concurrence.com/agent/memory) provides three kinds of inputs that population-health teams can analyze:

| Signal                        | What It Captures                                                                  |
| ----------------------------- | --------------------------------------------------------------------------------- |
| **Episodic observations**     | Source-linked changes or context extracted from completed conversations           |
| **Semantic user model**       | A bounded narrative of patterns, trajectories, goals, and interaction preferences |
| **Structured clinical state** | Connector-derived active conditions, medications, and allergies                   |

Workspaces can define additional string-valued extraction targets through validated enrichment keys. Generated observations and user-model text remain model-derived and may be incomplete; structured clinical state retains its separate connector provenance and producer-assigned source-class confidence. Neither is a calibrated probability of clinical correctness.

These signals can support cohort analysis when combined with explicit outcomes and appropriate statistical methods. They do not automatically establish causality or produce a validated clinical risk score. Teams should define the target outcome, inspect source coverage, validate performance across cohorts, and keep the underlying lineage available for review.

### Continuous Monitoring

Configured recurring triggers and queries can evaluate patient state on a schedule. When a defined criterion changes, the workflow can start outreach under its channel, consent, timing, and authorization rules.

## Evidence-Based Recommendations

Risk scores and predictions are useful only when an authorized workflow maps them to an appropriate action. The platform can deliver authored guidance through agent conversations. It does not certify that the guidance or model is evidence-based.

### Knowledge System for Clinical Protocols

Context Graphs can place clinical protocols and evidence-based guidance directly in the states where the agent needs them. The graph makes the relevant framework and its boundaries explicit.

For each clinical indication, authored states and guidance can encode:

* **Screening protocols**: when and how to assess the patient against evidence-based criteria
* **Intervention pathways**: which recommendations to deliver based on risk level and patient context
* **Escalation boundaries**: when the agent must defer to a clinician rather than deliver a recommendation
* **Communication boundaries**: authored instructions for what the agent should not say, paired with server-side controls and human fallback where enforcement is required

High-stakes protocol framing gives the agent explicit instructions for applying the relevant framework when the authored context graph reaches that part of the conversation.

### Personalized Delivery

Teams can author different delivery guidance based on explicit, available context:

* **Health literacy**: Explicit communication preferences or tested workflow guidance can adjust language complexity without inferring ability from demographic proxies.
* **Barriers and preferences**: Current, verified transportation or access context can select among options the organization has approved.
* **Prior interactions**: When memory processing succeeds, the [memory system](https://docs.concurrence.com/agent/memory) can surface source-linked observations and user-model context about prior preferences or attempts. Verify consequential facts against current records before changing recommendations.
* **Language and communication context**: Explicit language and communication preferences can shape framing when the selected channel and model support them.

### Progressive Data Collection

When the agent identifies gaps during a risk-assessment conversation and surface tools are eligible, it can generate a [surface](https://docs.concurrence.com/channels/surfaces) for delivery by email or web handoff. The platform stores submitted structured data and attempts asynchronous event publication. A customer-defined scoring workflow can consume the resulting evidence when it becomes available.

Data collection can be progressive rather than all at once. Workspace templates can prefill supported fields from available entity state, and eligible fields auto-save as the patient progresses. A later surface does not automatically inherit every earlier answer; configure the template and verify the stored submission or projected value. Saved values and the surface itself remain subject to submission, event-publication, projection, and expiration boundaries.

## Proactive Outreach at Scale

An explicit application, trigger, or customer workflow can use a governed cohort or risk result to invoke one of the platform's [outbound paths](https://docs.concurrence.com/channels/outbound).

### Multi-Channel Engagement

Supported outreach capabilities include voice calls, SMS, managed WhatsApp and iMessage, email, and surface email or web links. Availability and provisioning differ by channel. Teams configure channel selection using consent, patient preferences, use-case bindings, and the needs of each interaction rather than assuming automatic cross-channel optimization.

### Adaptive Outreach

Configured workflows can use supported delivery and surface events to distinguish behaviors such as opening a message, submitting a form, or leaving a form incomplete. Teams can map those events to different follow-up rules, for example:

* A patient who opens emails but does not click gets a different message framing on the next touch, not a repeat
* A patient who starts a form but abandons gets a resume prompt ("you are almost done") through a different channel
* A patient with no digital engagement is routed to an approved non-digital process outside the platform
* A patient who answers a call but says "not now" gets a callback scheduled at their preferred time

This branching is authored workflow behavior, not an automatic guarantee. Consent, channel availability, cooldown rules, and explicit campaign logic still govern each follow-up.

### Campaign-Driven Outreach

An external campaign workflow can place calls through the [Outbound Calls API](https://docs.concurrence.com/channels/outbound) after it applies eligibility, consent, pacing, and clinical-selection rules. Example customer-owned selection criteria include:

* Contact all high-risk diabetic patients due for HbA1c testing
* Reach patients with cardiovascular risk factors who missed statin follow-up
* Schedule screening calls for patients flagged by a behavioral health risk model
* Follow up with post-discharge patients whose readmission risk score exceeds a threshold

A campaign needs an explicit source of eligibility, pacing, consent, suppression, and cross-channel policy. The platform does not provide one universal campaign engine.

### Compliance Gates

Outbound controls differ by channel and workflow. Configure and verify the applicable consent, timing, cooldown, fatigue, and authorization checks before production use.

* **Consent and opt-out**: verify the applicable channel record and preserve provider or customer-system outcomes. An agent statement alone is not proof that every downstream list changed
* **Quiet hours**: apply business-hours and timezone rules in the workflow that starts outreach, and each channel also follows its own provider controls
* **Cooldown periods**: implement the required interval in the trigger, campaign, or external selection workflow
* **Configured authorization**: destination and channel policies determine whether an action can proceed

### Outreach Optimization

Teams can combine surface status, delivery events, conversation outcomes, and explicit patient preferences into an engagement view such as:

* **Channel effectiveness**: which channels produce the best response for each patient
* **Timing patterns**: when the patient is most likely to engage
* **Completion behavior**: how far through forms the patient typically gets

Use these signals in registered queries or campaign rules when you want them to affect prioritization. The platform does not infer an authoritative preferred channel from behavior alone.

### Full-Loop Workflow

<figure><img src="https://3635224444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvcLyiHRcwv7g83p6vxAd%2Fuploads%2Fgit-blob-06e565b97fd79c492e269f284824162a81be416b%2Fpop-health-loop-blue.svg?alt=media" alt="An illustrative population-health workflow uses customer-defined cohort logic, explicit outreach policy, an authored conversation, and separate outcome evidence."><figcaption><p>Use confirmed outcomes to review the next cohort. Clinical models require their own validation.</p></figcaption></figure>

An illustrative, explicitly configured flow for a clinical indication:

1. **Data ingestion** loads clinical and sociodemographic data from EHR exports and other sources
2. **World model** asynchronously projects supported entity state with source and confidence
3. **Registered query or function** computes a customer-defined cohort or score from eligible inputs
4. **Trigger or external workflow** applies consent and policy, then creates an outbound request or task
5. **Agent** calls or texts the patient with the authorized context available to that runtime
6. **Context Graph guidance** supplies the organization's reviewed protocol and boundaries
7. **Agent** attempts the permitted conversation and tools, with human fallback where authored
8. **Supported observations** can be submitted as source-attributed events and project asynchronously when publication succeeds
9. **Integration tools** write any required updates to destination systems during the conversation, and each result is the evidence of what the destination accepted

The workflow exposes evidence at several boundaries: source events retain provenance, outbound attempts report delivery outcomes, and conversation records can retain available patient and agent turns. Teams that require end-to-end audit correlation should define stable identifiers across their risk calculation, campaign, conversation, and destination records rather than assume every intermediate computation is automatically stored as a world-model event.

## Verification Across Clinical Indications

Each clinical indication requires its own verification before reaching patients. The platform's [testing framework](https://docs.concurrence.com/testing/testing) supports this through:

* **Condition-specific simulation personas**: synthetic patients representing the clinical and sociodemographic diversity of each indication's target population
* **Clinical scenarios** that test risk-appropriate responses, where the agent must handle a low-risk patient differently than a high-risk one
* **Required checks**: organization-defined criteria for escalation accuracy, scope-of-practice adherence, and medical information accuracy, followed by an explicit release decision
* **Trend review** that helps teams investigate whether measured agent performance changes as the patient population evolves

For detailed guidance on building clinical verification suites, see [Clinical Verification](https://docs.concurrence.com/use-cases/use-cases/clinical-verification).

## Multiple Clinical Indications

Teams can configure multiple clinical indications in one workspace when their data access, tools, services, and policies are compatible:

* **Separate context graphs** per indication define the conversation flow and clinical boundaries for each condition
* **Indication-specific platform functions** encode the risk model and scoring criteria for each condition
* **Dedicated state guidance and retrieval** carry the organization's reviewed protocols for each indication
* **Shared data infrastructure**: world-model projections, ingestion paths, and outbound primitives can support more than one indication without implying that every score or workflow shares the same evidence

Adding an indication generally means defining and validating its data inputs, risk or eligibility logic, clinical policy, conversation flow, external actions, and verification suite. Reuse shared infrastructure only where authorization, provenance, and operating requirements remain compatible.

{% hint style="info" %}
**See also**

* [World Model](https://docs.concurrence.com/data/world-model) for how supported source events become projected entity state
* [Platform Functions](https://docs.concurrence.com/agent/platform-functions) for risk scoring and population queries
* [Functional Memory](https://docs.concurrence.com/agent/memory) for conversation-derived observations, semantic user context, and structured clinical state
* [Context Graphs](https://docs.concurrence.com/agent/context-graphs) for authoring protocol guidance and workflow boundaries
* [Outbound System](https://docs.concurrence.com/channels/outbound) for proactive patient outreach
* [Clinical Verification](https://docs.concurrence.com/use-cases/use-cases/clinical-verification) for testing clinical safety per indication
  {% endhint %}


# Healthcare Contact Center

How Concurrence maps voice, text, operator, analytics, and data-collection capabilities onto contact-center workflows.

Concurrence is an AI-first patient communication platform. A patient can call an agent that answers within available capacity, loads authorized context, attempts configured tasks, and escalates or transfers when the authored workflow requires human involvement. The same [reasoning engine](https://docs.concurrence.com/agent/reasoning-engine) supports SMS and text conversations, while Surfaces provide a separate browser-based data-collection path. Supported interactions retain available operational evidence. Eligible calls can receive quality analysis, and only policy-eligible event payloads are considered for configured external delivery.

In an AI-first deployment, the agent can be the primary handler for configured voice and text workflows while human operators cover authored escalation and exception paths. The resulting effect on IVR, queueing, workforce management, and quality tooling depends on call mix, automation coverage, regulatory obligations, and the human fallback the organization chooses to maintain.

This guide covers how Concurrence handles the use cases that contact center platforms traditionally address, where the approach is fundamentally different, and where existing tools still have a role.

The agent handles supported patient calls or messages through an authored workflow. Eligible tools retrieve current records, surfaces collect missing details, and configured outbound paths support follow-up. Human intervention uses the controls supported by the selected channel.

## How Concurrence Handles Calls <a href="#how-amigo-handles-calls" id="how-amigo-handles-calls"></a>

### Conversational Routing

For an agent-handled number, the caller can state their need in natural language rather than traversing a DTMF menu. Organizations can retain deterministic or upstream routing where their workflow requires it.

The agent navigates [context graphs](https://docs.concurrence.com/agent/context-graphs) - state machines that structure conversation flow dynamically based on what the caller says, what the system already knows about them (from the [world model](https://docs.concurrence.com/data/world-model)), and what actions are available.

A patient calling about a follow-up appointment can state that need conversationally. When an authorized scheduling tool and patient context are available, the agent can move into the authored scheduling flow. A billing request can enter a different state or an escalation path when it is outside scope. The model-driven routing remains probabilistic and should be tested against representative phrasing.

Phone numbers are provisioned and assigned to specific services through the platform. Different departments or use cases can have dedicated numbers with their own agent versions, Context Graphs, and escalation rules. See [Phone Number Management](https://docs.concurrence.com/channels/voice).

### Unified Runs and Operator Takeover

Runs gives operators one inventory for voice and text work, and its **Live** status filter shows running and paused records. Human intervention is designed for selective involvement rather than having an operator handle every call. The controls come from an integration with the operator and run-control APIs. See [Build an Intervention Workflow](https://docs.concurrence.com/operations-and-safety/operators#runs-live-and-takeover).

**Work modes** - Voice operators join in [listen mode](https://docs.concurrence.com/operations-and-safety/operators) with their microphone muted. Speaking to the caller requires an explicit switch to takeover mode, which suppresses the agent's audio. Text-channel takeover pauses the agent while the operator authors replies, then resumes it on handback.

**Operator guidance** - In voice listen mode, operators can send [text instructions to the agent](https://docs.concurrence.com/operations-and-safety/operators#guidance-injection) without taking over. When delivery succeeds, the active runtime frames the instruction for the agent's next response while the agent remains responsible for the conversation.

### Recording and Transcription

When call recording is enabled, supported voice calls are stored as [dual-channel stereo](https://docs.concurrence.com/channels/voice/recordings): caller and agent audio are captured on separate channels. Do not assume these artifacts include a complete recording of every operator or transferred call leg. Recordings use configurable retention and secure, time-limited access URLs.

Recording and transcript availability are separate. Live and post-call transcription can be partial, provider-dependent, or unavailable even when a recording exists. When operator transcription succeeds, retained operator turns can be attributed separately from caller and agent speech.

{% hint style="warning" %}
**Screen recording is not part of the platform.** Concurrence handles voice interactions, not desktop activity. Screen recording for quality assurance would come from your existing desktop monitoring tools.
{% endhint %}

### Outbound Dispatch and Callbacks

Configured applications can place direct outbound calls through the Outbound Calls API from explicit clinical or operational criteria, applying their own business-hours, attempt, and retry rules. Cross-channel fallback, voicemail, and callback policy require an explicit Context Graph or external workflow. The platform does not select them automatically.

The agent also supports [deferred transfer](https://docs.concurrence.com/operations-and-safety/operators) - if a call needs to be forwarded (to a clinic front desk, for example), the transfer waits until the agent's goodbye message finishes so the caller is not cut off mid-sentence.

### Surfaces - Agent-Generated Data Collection

[Surfaces](https://docs.concurrence.com/channels/surfaces) can consolidate browser-based forms, document collection, signatures, and follow-up questionnaires behind one workspace-scoped mechanism.

**How it works:** When surface tools are exposed to the active service and state, the agent can create a dynamic form or use a workspace template, then deliver it by email or hand off a web link. Creation, signing, delivery, and completion each have their own failure and status boundaries.

**What surfaces can collect:** Fourteen current field types cover text, long text, dates, phone numbers, email, numbers, single and multi-select, checkboxes, photos, signatures, files, headings, and informational content. Supported templates can prefill known fields, and conditional display can adapt the form to earlier answers.

**During calls:** A supported active session can receive a best-effort event when a tracked surface is submitted and acknowledge it in conversation. The current surface tool family can create, deliver, inspect, template, reshape, and list surfaces when those tools are eligible. Status reads remain the authoritative fallback when completion must be confirmed.

**Delivery channels:** Surfaces support email and external web handoff. SMS, WhatsApp, and iMessage are not direct surface-delivery channels. The authored workflow selects an eligible path based on available contact data, consent, and the collection need.

**Patient access:** Surfaces open as a mobile-first web page through a signed, surface-scoped link without a patient account. Eligible fields auto-save, so a later visit can resume the last successfully saved values. Unsaved changes, failed requests, and expired links still need explicit handling. TTL is configurable from one hour to one year and defaults to seven days.

**Outreach optimization:** Surface history exposes pending and completed forms. Teams can use that evidence to choose between verbal collection, email delivery, or a web handoff. SMS is not a direct surface-delivery channel.

**Data integrity:** The platform stores a surface submission and then attempts asynchronous publication of a provenance-bearing [world-model](https://docs.concurrence.com/data/world-model) event. Submission success is not proof that publication or entity projection completed. A file remains traceable to its surface submission.

### Call Intelligence and Quality Scoring

Eligible completed calls can produce a structured intelligence profile covering operational signals and outcome quality. These layers are best-effort and fail open so an unavailable analysis step does not fail the call.

**Two core layers support quality analysis:**

**Layer 1 - Operational call intelligence** (derived from call signals at call end): Fully analyzed records can cover latency, conversation dynamics, tool performance, and operator involvement. Compatibility risk and safety fields remain empty in the current runtime, and some external voice runtimes emit only a terminal envelope with no quality score.

**Layer 2 - Post-call quality scoring** (runs asynchronously when the required call evidence is available): The analysis scores task completion, information accuracy, conversation flow, error recovery, and caller experience, and can produce an outcome classification.

**Operational quality score** (0-100) summarizes call friction using a penalty model - starting at 100 and deducting for high latency, barge-ins, agent loops, escalations, and tool failures. Analytics group scored calls into excellent, good, fair, and poor bands.

**Key moments can be summarized.** When supported evidence is available, latency, barge-in, loop, escalation, and tool-failure signals can help reviewers identify calls that need closer inspection. These summaries are not guaranteed timestamped markers in the recording.

**Transcript verification.** Post-call transcription can be compared with the live transcript to expose accuracy and correction evidence. Teams can use recurring errors to update configured vocabulary and keyterms deliberately.

**Quality trends over time.** Analytics show quality score distribution, escalation rates, and supported breakdowns across configurable date ranges. Period-over-period comparison can reveal a change, but it does not isolate the configuration as the cause. See [Analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence).

If your compliance program requires structured human evaluation against custom scorecards, available recordings, transcripts, and intelligence summaries can be retrieved through their APIs for use in existing QM tools.

### Real-Time Speech Intelligence

Traditional speech analytics often runs after a call. On the platform-managed voice runtime, each caller turn's words are read during the call for the support they call for, and the resulting [empathy tier](https://docs.concurrence.com/channels/voice/audio-pipeline#empathy-gated-filler-behavior) can shape the reply, its pacing, and the filler the caller hears. Navigation also picks each reply's voice tone from the conversation.

**These signals shape the live interaction, not just reports.** Safety and escalation decisions still come from the authored agent policy. There is no universal duration threshold or separate per-turn risk service that automatically summons an operator. The empathy tier is model-derived guidance for the reply and should not be interpreted as a verified mental state.

### Capacity and Operator Planning

AI agents do not require human shift scheduling, but deployments still need capacity planning for telephony, model providers, integrations, and human escalation coverage. Traditional workforce planning narrows rather than disappearing.

One planning question is how many operators the authored escalation paths require. The platform provides:

* **Escalation rate tracking** - What percentage of calls require human intervention, trended over time
* **Operator analytics** - Aggregate escalation count and rate, operator-handled count, escalated-call duration, quality comparison, and trend where evidence is available
* **Call volume analytics** - Durable call trends plus the Runs **Live** status filter for active work
* [**Operator takeover**](https://docs.concurrence.com/operations-and-safety/operators#runs-live-and-takeover) - Voice and text takeover through an integration with the operator APIs

Organizations should size and schedule operator coverage from their own escalation policy, traffic, service levels, and fallback obligations. Concurrence analytics can supply evidence to that process but do not replace a workforce-management decision.

### Multi-Channel Patient Engagement

Traditional contact centers often operate email and chat separately. Concurrence can reuse compatible agent and Context Graph configuration across supported text channels, while [Surfaces](https://docs.concurrence.com/channels/surfaces) provide a separate browser-form mechanism.

During a call or through a configured follow-up workflow, an eligible surface can deliver data collection or instructions by **email or web handoff**. Channel selection must account for available contact data, consent, and the workflow's collection requirements.

A voice call can start follow-up through configured channels: for example, the agent can deliver a surface for a missing insurance image or initiate an approved reminder workflow. Each channel still follows its own consent, binding, and delivery rules.

Text sessions also support asynchronous patient engagement, care plan reminders, and secure messaging for use cases that start outside of a phone call.

### Analytics and Reporting

The [analytics suite](https://docs.concurrence.com/intelligence-and-analytics/intelligence) covers both real-time and historical reporting:

**Real-time:**

* The Runs **Live** status filter for active interactions, and the [operator APIs](https://docs.concurrence.com/operations-and-safety/operators#runs-live-and-takeover) for takeover
* [SSE event stream](https://docs.concurrence.com/intelligence-and-analytics/intelligence) for live dashboards (call lifecycle, surface submissions, and operator status events with typed discriminated unions)

**Historical:**

* [Call intelligence analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence) - quality, latency, tool-performance, and operator-performance trends
* [Percentile analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence) - p50/p95/p99 duration, p50/p95 quality, and period-over-period comparison
* [Surface analytics](https://docs.concurrence.com/intelligence-and-analytics/intelligence) - completion rates, channel effectiveness, field abandonment
* [Data quality and event views](https://docs.concurrence.com/intelligence-and-analytics/intelligence) - current aggregate confidence and event counts where available, plus a separate current event breakdown by source and type. The current data-quality response is not a full historical confidence distribution.

Historical endpoints expose their documented date, bucketing, and service filters where supported. Developers can review the exact parameters in the [Analytics reference](https://docs.concurrence.com/developer-guide/platform-api/safety/analytics) in the developer guide.

## AI Capabilities

### Automated Appointment Scheduling

The agent can identify a scheduling need, query configured availability, present options, and attempt an eligible booking through the available scheduling integration. The workflow reports the destination result separately rather than treating conversational intent as a confirmed EHR write. See [Patient Scheduling and Outreach](https://docs.concurrence.com/use-cases/use-cases/scheduling-outreach) for the full workflow.

The authored workflow and available tools can incorporate multiple providers, insurance requirements, preparation instructions, and observed preferences from prior interactions. Each dependency needs its own current data and failure path.

### Smart Call Routing

Routing in Concurrence is not a separate module - it is inherent in how the agent works. The agent determines what the caller needs through conversation (not menu selection) and navigates to the appropriate workflow via [context graphs](https://docs.concurrence.com/agent/context-graphs).

For multi-department deployments, different phone numbers can map to services with their own agent versions, Context Graphs, and escalation rules. A scheduling line, a triage line, and a general-inquiries line can use purpose-built behavior while sharing compatible platform infrastructure.

### Agent Assist

Concurrence's [operator system](https://docs.concurrence.com/operations-and-safety/operators) provides agent assist in both directions:

**AI assists the human** - The selected run keeps the operator anchored to the caller, service, and available live transcript. During voice takeover, agent speech and turn processing are suspended. Captured caller and operator turns can provide handback context when the agent resumes.

**Human assists the AI** - Operators in listen mode can inject [guidance](https://docs.concurrence.com/operations-and-safety/operators) without adding operator audio to the call. Organizations remain responsible for any monitoring disclosure required by policy or law, and clients should verify the guidance-delivery status.

### General Inquiries

The agent can handle general inquiries through [Context Graphs](https://docs.concurrence.com/agent/context-graphs) that route common question categories. State guidance and eligible authoritative tools can supply information for office hours, directions, preparation instructions, and policy questions.

Context graphs should define a bounded response and escalation path for questions outside the agent's configured scope. Operator availability and fallback behavior remain deployment responsibilities.

### Pre-Procedure Instructions

Two mechanisms handle pre-procedure patient preparation:

**During the call** - An authorized tool can retrieve current procedure-specific instructions for the agent to explain within its authored scope. The workflow should verify the source and provide an escalation path for questions the agent cannot answer safely.

**Written follow-up** - During the interaction or through an explicit follow-up workflow, a [surface](https://docs.concurrence.com/channels/surfaces) can provide written instructions, checklists, and forms by email or web handoff. Delivery and completion must be confirmed through their own status paths.

## Beyond the Contact Center: What Concurrence Makes Possible <a href="#beyond-the-contact-center-what-amigo-makes-possible" id="beyond-the-contact-center-what-amigo-makes-possible"></a>

The sections above map traditional contact center requirements to Concurrence's architecture. This section covers capabilities that have no traditional equivalent - things that become possible when an agent with a unified data layer handles every interaction. Each capability has a dedicated page. The summaries here explain what it means for a contact center deployment.

### Patient Memory Across Interactions

Traditional contact centers are often stateless: each call starts with whatever notes the last agent entered. Concurrence's [memory system](https://docs.concurrence.com/agent/memory) can carry source-linked episodic observations and a consolidated user model into later sessions, while connector-derived clinical state remains separately attributed. Processing is asynchronous and generated memory can be incomplete, so authoritative tools and runtime safety controls remain necessary. [Care Coordination](https://docs.concurrence.com/use-cases/use-cases/care-coordination) shows how this supports a multi-encounter relationship.

{% content-ref url="/pages/7NhajPdlVjsC4HxhbCYA" %}
[Memory](https://docs.concurrence.com/agent/memory)
{% endcontent-ref %}

### Unified Data Foundation (World Model)

Traditional contact centers scatter call records, patient data, scheduling, and agent notes across systems that need middleware to reconcile. The [world model](https://docs.concurrence.com/data/world-model) combines supported connector records, conversation observations, manual events, and surface submissions into source-attributed entity projections with [confidence-based resolution](https://docs.concurrence.com/data/connectors-and-ehr) when modeled facts conflict. This supports contextual conversations without treating every generated observation as authoritative.

{% content-ref url="/pages/C9AEWitaAS9949s6XJTG" %}
[World Model](https://docs.concurrence.com/data/world-model)
{% endcontent-ref %}

### Post-Call Clinical Verification

Supported observations extracted or written during a call can enter the world model with source provenance and bounded confidence; they do not write directly to the EHR merely because the agent mentioned them. A change to the EHR happens through an integration endpoint the agent calls. Integration call results and destination records provide evidence at separate boundaries; the current lineage view is not a universally complete delivery chain.

### Outbound System

Concurrence exposes several [outbound paths](https://docs.concurrence.com/channels/outbound): durable SMS or iMessage starts, direct voice calls, and a separate email API. The platform does not automatically turn spoken promises into follow-up calls, choose a channel, or provide a universal campaign engine. Those behaviors require explicit workflow configuration.

{% content-ref url="/pages/8yGbb8LE1sy3JeaS7UnI" %}
[Outbound](https://docs.concurrence.com/channels/outbound)
{% endcontent-ref %}

### Proactive Safety Detection

Safety-sensitive behavior belongs in the agent's core reasoning policy. Teams can use [Context Graph states, transitions, and guidance](https://docs.concurrence.com/agent/context-graphs) to describe symptom boundaries, clarifying questions, safe refusals, and escalation conditions. These authored instructions must be tested against representative cases. They are not an independent clinical triage service or a guarantee of detection of every implicit concern.

### Domain Knowledge in Agent Reasoning

The agent is not limited to a fixed utterance script. Agent background, Context Graph guidance, and eligible retrieval tools can supply protocols and organizational procedures at the relevant workflow step. Prompted guidance does not prove factual correctness or enforce policy by itself, so consequential claims still require authoritative retrieval and server-side controls.

### Continuous Improvement

The platform supplies the evidence for a governed improvement process. Teams use quality scores, surface completion, escalation patterns, and delivery outcomes to identify a focused change, validate it in simulation, release an explicit version, and compare the same production measures afterward. See [Improving Agent Behavior](https://docs.concurrence.com/agent/pattern-discovery-and-reuse).

### Healthcare Compliance by Design

Compliance controls span event provenance, covered [audit events](https://docs.concurrence.com/operations-and-safety/compliance), workspace isolation, PHI access controls, and recorded retention settings. Concurrence maintains a SOC 2 Type II report and supports HIPAA-regulated workloads under applicable agreements. Customers should validate evidence coverage and operating procedures against their own requirements.

{% content-ref url="/pages/s0EAp8tQiDsgx7L82hPW" %}
[Compliance and Audit](https://docs.concurrence.com/operations-and-safety/compliance)
{% endcontent-ref %}

## What Changes in an AI-First Contact Center

| Traditional Component | What Happens to It                                                                                                                                                                                                                         |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **IVR trees**         | **Potentially reduced.** Natural-language routing can replace menus for tested intents. Organizations can retain IVR or deterministic routing where required.                                                                              |
| **ACD queue**         | **Changed for agent-handled traffic.** The agent answers within available capacity. Runs Live covers eligible human escalation and takeover work rather than every legacy queue function.                                                  |
| **Agent desktop**     | **Narrowed.** Runs Live provides active-work context and eligible listen or takeover controls. Other staff workflows may still need their existing systems.                                                                                |
| **Call recording**    | **Integrated when enabled.** Supported calls can retain dual-channel audio, partial or complete transcript evidence, speaker metadata, and best-effort intelligence.                                                                       |
| **QM scoring**        | **Transformed.** Best-effort operational intelligence and post-call scoring can apply defined rubrics to eligible evidence, while available recordings and transcripts support targeted human review.                                      |
| **Speech analytics**  | **Transformed.** Per-turn empathy reads can shape agent delivery, and interaction evidence supports post-call analysis. Safety escalation remains part of the authored agent policy rather than a separate universal risk-scoring service. |
| **Post-call survey**  | **Expanded through Surfaces.** Surfaces can collect photos, signatures, checklists, and documents through email or web handoff, subject to delivery and completion status.                                                                 |
| **WFM**               | **Reduced only where automation changes staffing demand.** Human escalation coverage still needs forecasting, schedules, and an unavailable-operator plan.                                                                                 |
| **Email/chat**        | **Covered through separate paths.** Surfaces handle browser forms, the email API handles email, and durable text conversations cover supported messaging channels with their own delivery rules.                                           |
| **Screen recording**  | **Not applicable.** Concurrence is a voice and data platform, not a desktop monitoring tool.                                                                                                                                               |

## Integration Points

Concurrence is designed to work alongside existing contact center infrastructure during transition:

* **Telephony** - Phone numbers are provisioned through the platform. Calls can be transferred to external numbers (clinic front desks, specialist lines) via deferred transfer.
* **EHR** - Supported FHIR import and intake paths for inbound data, and integration tools for reads and writes during a conversation.
* **Existing QM tools** - Available recordings, transcripts, and intelligence results can be retrieved through their APIs for import into third-party quality-management platforms.
* **Existing WFM tools** - Call volume, duration, and escalation metrics are available via analytics APIs for workforce planning.
* **Compliance** - Workspace-scoped [audit queries](https://docs.concurrence.com/operations-and-safety/compliance#audit) for covered events, alongside world-model provenance and destination-system evidence.

{% hint style="info" %}
For the full list of platform concepts and how they map to API terminology, see the [API Terminology Mapping](https://docs.concurrence.com/reference/api-terminology-mapping).
{% endhint %}


# Rebrand and Compatibility

The Concurrence name and service domains, and which API hosts, SDK packages, and identifiers keep the Amigo name.

**Concurrence is the product and company name.** The documentation uses the Concurrence name and approved logo artwork. The canonical documentation site is [docs.concurrence.com](https://docs.concurrence.com).

## Documentation <a href="#what-changed" id="what-changed"></a>

Product descriptions, navigation labels, diagrams, and generated LLM exports use the Concurrence name. Cross-space links use the docs.concurrence.com domain. GitHub repository links use the `concurrence-hq` organization.

Published page paths and existing heading anchors remain stable. Some paths contain `amigo`, including overview and historical API changelog paths. Use the docs.concurrence.com domain with those same paths. A brand change alone is not a reason to rename an integration.

## Platform Service Domains

Platform services and Developer Console have service-specific `concurrence.com` addresses. For US production, use `https://platform.api-us.concurrence.com` for Platform resources, `https://identity.api-us.concurrence.com` for identity token/device/login-session routes, and `https://console-us.concurrence.com` for Console. The regional slots are `us`, `au`, `eu`, and `ca`; `us` is the US production slot.

Use [Regions and Endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints) for the complete service mapping and regional configuration. Update API clients, auth configuration, provider callbacks, and allowlists explicitly. Do not point every client at the Platform hostname: identity, agent connections, and Data-MCP have their own hosts.

Configure canonical hosts directly instead of depending on redirects, including for authentication and WebSocket clients.

## Retained Identifiers <a href="#what-stays-the-same" id="what-stays-the-same"></a>

The service-domain migration does not change the documented credential types and resource identifiers. Continue using the credentials and scopes provisioned for your deployment. SDK packages keep their names.

| Integration surface               | Current name or behavior                                                                                                                        |
| --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Classic API hosts                 | The documented `amigo.ai` hosts, including `api.amigo.ai` and its regional equivalents. The Platform service migration does not include Classic |
| Platform TypeScript SDK           | `@amigo-ai/platform-sdk`, including `AmigoClient`                                                                                               |
| Classic TypeScript SDK            | `@amigo-ai/sdk`                                                                                                                                 |
| Classic Python SDK                | `amigo-sdk`, imported as `amigo_sdk`                                                                                                            |
| Environment variables and headers | Existing identifiers such as `AMIGO_API_KEY` and `X-AMIGO-CHANNEL-MANAGER-WEBHOOK-SIGNATURE`                                                    |
| Authentication and resources      | Existing credentials, scopes, and organization/workspace identifiers                                                                            |
| API schema imports                | Existing OpenAPI registry identifiers, including `amigo-api`                                                                                    |

Do not replace `amigo` with `concurrence` in package names, imports, or wire identifiers as a branding substitution. The Platform SDK, Classic SDKs, and the other wire identifiers keep their `amigo` names. The one wire identifier that is `concurrence` is the default voice family id in `voice_config.session_provider` and the voice-families responses. The `*.platform.amigo.ai` hosts do not resolve. Platform SDK 0.113.1 and later default to the `concurrence.com` hosts. Update older packages and saved CLI profiles that name a `*.platform.amigo.ai` host, or set endpoint options explicitly. For deployment-specific hosts and credentials, follow [Regions and Endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints) and [Authentication](https://docs.concurrence.com/developer-guide/reference-guides/authentication).

## Reading Older Material

Older release entries and product screenshots can still say Amigo. They describe the name and interface in use at the time, not a separate current product. Use the current guides and public API schemas for present behavior. Use [Change Logs](https://docs.concurrence.com/api-reference/change-logs) and [Upgrade Guidance](https://docs.concurrence.com/api-reference/change-logs/upgrade-guide) when reviewing integration changes.


# Glossary

Definitions of key platform terms - from acceptance regions and actions to world model and workspaces.

Key terms used throughout the Concurrence platform documentation. Definitions are kept short and practical. Terms are listed in alphabetical order.

Use established capitalization for named product components, such as Context Graph, World Model, and Agent Forge. Use lowercase for generic roles and processes, such as an agent, a classifier, or a projection; retain established labels such as System 1 and System 2. Keep the qualifier when a term has different meanings: source-class confidence, calibrated model probability, and identifier-match score are not interchangeable. Likewise, distinguish an agent definition from its running interaction and a recorded observation from a confirmed workflow outcome.

## A

**Acceptance Region**: The set of outcomes that count as successful for a given use case. Defined across multiple dimensions (accuracy, safety, empathy, latency, cost). An outcome must satisfy all dimensions simultaneously to fall within the acceptance region.

**Action** (Classic API: `tool`): A versioned code package that an agent can execute during a conversation. Actions can connect the agent to external systems such as scheduling APIs, EHR lookups, or notification services. A generic tool or Platform integration is not necessarily a Classic Action.

**Agent**: A named configuration resource whose versions define identity, background, behavioral guidance, communication patterns, and optional voice configuration. A service combines a selected agent version with a Context Graph and runtime settings. The agent definition is distinct from the workflow, decision procedure, and running interaction. See [Agents](https://docs.concurrence.com/agent/agents).

**Agent Engine**: The runtime layer that combines shared reasoning components with channel-specific execution, tool coordination, and delivery. Its signal-and-effect vocabulary is shared, but supported runtime paths do not all execute the same loop. See [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine).

**Agent Forge**: The CLI tool for managing agent configurations. Used to create, update, version, and promote services and version sets across environments. See the [Agent Forge](https://docs.concurrence.com/reference/agent-forge) reference page.

**Application View**: Information selected or derived from permitted evidence for a particular reader and task. Each view has its own derivation, freshness, and coverage requirements; it does not establish that every source assertion is correct. See [World Model](https://docs.concurrence.com/data/world-model#evidence-facts-and-application-views).

**Auto-Enrichment**: A best-effort background process that can gap-fill registered enrichment keys for supported person and place entities. It writes source-tagged enrichment events asynchronously; higher-authority values can supersede the result. This is distinct from event embedding.

## B

**Backfill**: Loading historical records or recomputing historical derived data for a supported pipeline or metric. Coverage depends on the available inputs and the specific processing path. A backfill does not by itself prove improvement or guarantee deterministic replay of model-generated results.

**Barge-In**: Supported voice behavior that can stop agent playback after incoming caller speech meets the checks of the active voice path. On the platform-managed runtime the active state's turn policy must allow it and the speech needs recognized words, and speech still in progress also needs a minimum duration and a cooldown. On `gpt_realtime` it needs a minimum duration of detected speech, after the call opening. Sensitivity and timing depend on the active voice path and service configuration.

## C

**Channel Use Case**: A provisioned channel identity and purpose, such as an email sender or managed messaging pool. A service binding establishes the workspace routing for supported inbound and outbound operations. Provisioning, consent, and sender approval remain separate prerequisites. See [Channels](https://docs.concurrence.com/channels/conversations).

**Classifier**: A procedure that assigns an input to one or more declared categories. It can be rule-based or learned. Its output requires evaluation for the task and does not independently establish truth, authorization, or an appropriate action.

**Clinical Tools**: Built-in tools available to supported agent runtimes for patient and appointment workflows, typed clinical reads, coverage and refill-request writes, outbound-queue lookup, and operational logging. Supported writes emit world-model events; recording an event does not deliver it to an external system.

**Conference-First Architecture**: The Platform-managed voice-call model in which the caller and agent use a shared conference and an eligible operator can join without reconnecting the caller. Listen, takeover, and warm-forwarding paths have different behavior. Conference participation does not guarantee a complete transcript or clinical briefing.

**Confidence Score**: A context-specific numeric measure, not a single platform-wide notion of certainty. World-model **source-class confidence** ranks observations for supported conflict resolution; a projection can group those values into precedence tiers. Calibrated model probabilities, identifier-match scores, model-reported certainty, and evaluation scores have separate meanings and validation needs. None automatically grants permission or triggers operator escalation.

**Consumer Dispatch Policy**: In the universal processing design, the rules selecting which programs may consume a processing packet. It is separate from packet formation and effect arbitration, and is not a new Platform API resource or an alias for a tool binding's dispatch settings.

**Context Graph** (Classic API: `service_hierarchical_state_machine`): The authored workflow definition of states, objectives, transitions, guidance, and tool bindings. It describes how work should proceed, not the world's facts. Model-facing guidance is distinct from server-enforced permissions and validation. A graph does not make model-driven navigation deterministic. See [Context Graphs](https://docs.concurrence.com/agent/context-graphs).

**Cut Policy**: In the universal processing design, the rules deciding when to form a processing packet and which evidence it contains. A cut does not itself require a model call, cancel ongoing work, or interrupt playback.

## D

**Data-MCP**: A standalone Model Context Protocol service that exposes read-only SQL exploration tools using Classic API organization credentials. For agent-side access during conversations, use [platform functions](https://docs.concurrence.com/agent/platform-functions). External integrations using Platform API workspace credentials can use the Platform API MCP server. See [Data Access (MCP)](https://docs.concurrence.com/data/data-mcp).

**Decision Procedure**: A rule, query, program, classifier, or model-based process used to answer a bounded question or select a next step. This is an architectural category, not a separate Platform API resource. See [Reasoning Architecture](https://docs.concurrence.com/agent/universal-reasoning).

**Direct Program**: A program carried by an agent version: one authored set of instructions and the tools it grants, run with no Context Graph. The alternative, and the default, is a graph workflow, in which the version runs the Context Graph its service binds. A service that binds no Context Graph runs direct programs only. See [Direct Programs](https://docs.concurrence.com/agent/direct-programs).

**Drift**: A gradual change in agent performance over time. Can be caused by changes in the input distribution (new types of conversations), shifts in agent behavior, or evolving requirements. See [Drift Detection](https://docs.concurrence.com/testing/testing/drift-detection).

**Dynamic Behavior**: Guidance that a model chooses to apply on the caller turns where it seems to fit, with a condition, examples, an instruction, a mode, and sticky turns. Behaviors live in a workspace library of **Dynamic Behavior sets** with immutable numbered versions, and a service's version set pins an exact version of each. The Classic API has a separate `dynamic_behavior_set` resource with triggers and tool-candidate changes. See [Dynamic Behaviors](https://docs.concurrence.com/agent/context-graphs/dynamic-behaviors).

## E

**Effect**: A typed output from supported reasoning components. Depending on its type and runtime, it can request future delivery or report work already performed. For example, a tool-called effect can report a completed tool invocation. Inspect the specific contract rather than treating every effect as a queued action. An emitted effect alone does not establish recipient delivery or a confirmed external mutation. See [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine).

**Effect Arbitration Policy**: In the universal processing design, the rules deciding which intended outputs may proceed under authority, relevance, dependency, capacity, and ordering constraints. Priority cannot grant permission. This is a design responsibility, not a claim that every runtime implements one universal scheduler.

**Email Channel**: A managed channel for transactional and marketing email with verified sending domains, typed use cases, inbound reply threading, and separate delivery-status records. Email has its own send API and is not a target of the Conversations API's outbound-start or channel-switch operations. See [Channels](https://docs.concurrence.com/channels/conversations).

**Entity Resolution**: The process of associating an incoming record or caller with a workspace entity. Current paths use explicit source identifiers, caller bindings, and scoped lookups. `same_as` edges represent historical merges from the retired pre-SDP resolver; the current Platform pipeline does not produce new deterministic cross-source merge edges.

**Entropy Stratification**: The design discipline of allocating computation and action freedom according to task uncertainty, error consequence, and the expected value of more evidence or reasoning. It is not a documented runtime setting or a universal uncertainty score. See [Reasoning Architecture](https://docs.concurrence.com/agent/universal-reasoning#entropy-stratification-as-a-design-discipline).

**Escalation**: The process of handing a supported conversation from the agent to a human operator. Escalation follows authored agent and context-graph policy, supported operator workflows, or an explicit user request. A generic low-confidence score does not automatically trigger it.

**External Principal**: An entity-anchored, role-scoped session identity for external users (such as clinicians or partner employees) driving agent conversations. A principal binds an external user identity to a workspace entity with assigned roles, and role grants scope which integration endpoints, skills, and knowledge base scopes the session can access. See [Compliance](https://docs.concurrence.com/operations-and-safety/compliance).

## F

**FHIR Store Connector**: The `fhir_store` data-source type for a FHIR R4 store. The platform stores the data-source record but does not poll it. Send FHIR records through FHIR import.

**Filler Speech**: Short spoken acknowledgements that can cover part of a voice-processing or tool-execution delay. Filler selection is channel-, state-, and empathy-aware, can be suppressed, and does not guarantee that every delay is covered.

**Function Store**: The workspace registries from which platform functions and workspace data queries are loaded at session start. A successfully loaded definition can become an agent tool when the selected runtime and any applicable Context Graph binding expose it. Registration alone is not a universal visibility or authorization rule. See [Platform Functions](https://docs.concurrence.com/agent/platform-functions).

**Functional Memory**: Cross-session context built from source conversation records, model-extracted episodic observations, a bounded semantic user model with lineage, and separately projected structured clinical state. Current enrichment can load into later sessions, but it does not guarantee complete recall or eliminate authoritative data retrieval. See [Functional Memory](https://docs.concurrence.com/agent/memory).

## I

**Information Entropy**: A measure of uncertainty in a specified probability distribution over outcomes. It is distinct from source-class confidence, correctness, and error consequence. Low entropy can describe a confidently wrong model. It is not sufficient by itself to choose a safe action.

**Interaction Insight**: A Classic API response for a permitted conversation interaction, including the current state and action, transition logs, permitted working-memory or reflection records, and executed tool-call logs. The Platform API does not expose an equivalent hidden-reasoning contract. Platform simulation traces contain best-effort observed evidence instead.

## K

**Keyterm Boosting**: A speech-to-text configuration that biases compatible recognition paths toward domain vocabulary such as medication, provider, or organization names. It can improve recognition for selected terms but does not guarantee an accurate transcript.

## L

**Liquid World Model**: An architectural perspective on the World Model in which retained, source-linked evidence supports different, revisable task-specific views. SQL transformations, classifiers, and model-generated interpretations can contribute different derivations. The term does not imply autonomous schema evolution, instant freshness, or a learned predictive simulator. See [Reasoning Architecture](https://docs.concurrence.com/agent/universal-reasoning#the-world-model-is-liquid-through-its-views).

**LLM-Evaluated Metric**: A metric whose eligible evidence is scored by a model-based judge against authored criteria rather than by a deterministic rule. Availability, scheduling, and execution limits depend on the evaluation path, and results require calibration against human review. See [Metrics](https://docs.concurrence.com/testing/testing/metrics).

## M

**Metric**: A configured measure of interaction or operational evidence. **Evaluation metrics** can score eligible conversations against rubrics. **Operational metrics** aggregate supported workspace evidence through producer-specific paths. A definition does not imply that every channel or interaction produces a value. See [Metrics and Quality](https://docs.concurrence.com/testing/testing/metrics) and [Metric Store](https://docs.concurrence.com/intelligence-and-analytics/metric-store).

**Metric Store**: The Platform API's common value model and query surface for operational, quality, and evaluation metrics. The current catalog has 41 built-in definitions and accepts up to 50 custom definitions per workspace. The schema contains five extraction modes, but supported custom modes have narrower rules. Latency tiers and freshness values describe intended processing and configured targets, not contractual delivery times. See [Metric Store](https://docs.concurrence.com/intelligence-and-analytics/metric-store).

**Modality Adapter**: A channel-specific integration boundary between input, reasoning, and delivery. Signals and effects provide a shared vocabulary, while text, simulation, native voice, and provider-owned realtime voice retain distinct execution paths and delivery, lifecycle, authorization, and failure semantics. See [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine).

## O

**Operator**: An authorized human who can monitor eligible live runs and, for supported channels, listen, guide, take over, or hand control back. Run-scoped transcript and context can be available, but operator entry is not a guaranteed complete patient briefing or proof that a downstream handoff succeeded.

**Outcome**: An observed result relative to a defined task or acceptance criterion. Request acceptance, tool completion, recipient delivery, and a confirmed external change are different outcomes and require different evidence. A workflow outcome is not established solely by an agent's statement of success.

**Output Track**: In the universal processing design, a logical capacity and ordering boundary for outputs or ongoing work, such as exclusive foreground speech or bounded parallel tools. It is not a new API resource or a requirement to implement every resource as a priority queue.

## P

**Patient Arc**: A reviewed description of the path from a patient's request to completion or handoff, including the facts, decisions, allowed actions, and exception paths it requires. Teams implement an arc through a Context Graph, tools, and the surrounding application, then test the expected behavior. See [Improving Agent Behavior](https://docs.concurrence.com/agent/pattern-discovery-and-reuse#turn-feedback-into-a-patient-arc).

**Persona (Agent)**: The conceptual identity and background carried by an agent version, including structured identity, background text, behavioral guidance, and communication patterns. The Platform API has no standalone persona resource; services resolve an agent version through version-set configuration. The Developer Console lists agents as **Personas**, and services as **Agents**. See [Agents](https://docs.concurrence.com/agent/agents).

**Persona (Simulation)**: A synthetic user profile used in simulations. Defines the characteristics, behaviors, and communication style of a test user. See [Simulations](https://docs.concurrence.com/testing/testing/simulations).

**Platform Function**: A workspace-registered, read-only SQL, AI, Python, or table-valued computation. Supported runtimes can expose named functions (`fn_*`) and workspace data queries (`wsq_*`) after successful loading and any applicable Context Graph binding. Management is available through workspace-scoped APIs and supported tooling. See [Platform Functions](https://docs.concurrence.com/agent/platform-functions).

**Pre-Emptive Tone Adjustment**: A supported voice fallback that can select sympathetic delivery when navigation sets no tone for the reply, no workspace tone is configured, and the current Context Graph action matches a configured sensitive topic. This is delivery guidance, not a prediction that the caller is distressed or an independent safety control.

**Problem Definition**: The authored specification of the object of work, objectives, evidence requirements, permissible actions, and completion conditions. A Context Graph expresses part of that specification. Server-side authorization and validation enforce controls that instructions alone cannot. It is not a single Platform API resource.

**Processing Packet**: A bounded input formed from selected signals and relevant context at a cut in the universal processing design. It may be one message or a task-specific grouping, not necessarily a transport packet. Earlier harness designs call bounded context a quantum. It is not a new Platform API resource.

**Projection**: A derived read view computed from relevant evidence and evaluation context. Reproducibility depends on the derivation's complete inputs, logic, configuration, and any time-relative evaluation. Model-generated memory or narrative views need separate evaluation rather than inheriting deterministic guarantees. See [World Model](https://docs.concurrence.com/data/world-model#multi-level-projections).

**Projection Function**: Logic that folds world-model events into an entity-state read model. Deterministic derivations are reproducible only with their complete inputs and evaluation context fixed; time-relative values can change when unchanged events are recomputed later. Projection is asynchronous from event acceptance, so a successful write can precede visibility in the serving view.

## Q

**Quality Score**: Context-dependent call evidence. The terminal operational quality score runs from 0-100 and reflects latency, barge-ins, loops, operator escalation, and tool failures. Voice Judge and configured evaluations use separate rubrics. A retained analysis field does not guarantee a result. See [Call Intelligence](https://docs.concurrence.com/intelligence-and-analytics/intelligence/call-intelligence).

## R

**Reasoning Engine**: Shared components for interpreting signals, applying agent and Context Graph guidance, selecting eligible actions, and producing responses or effects. Text and simulation use effect-processing paths. Native voice and provider-owned realtime voice have distinct execution paths. Shared concepts do not imply one identical loop across channels. See [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine).

**Review Queue**: The operations that list stored external write proposals and record a reviewer's decision on one. A decision does not deliver a write or change the source event's confidence. See [Review Queue](https://docs.concurrence.com/developer-guide/platform-api/integrations/review-queue).

## S

**Scenario (Simulation)**: A defined situation used in simulations. Describes the context, events, and goals for a test interaction. See [Simulations](https://docs.concurrence.com/testing/testing/simulations).

**Selected Fact**: The value chosen by the applicable projection or resolution rules from available source assertions. Selection establishes the current read value, not independent verification that it is true or fresh. See [World Model](https://docs.concurrence.com/data/world-model#evidence-facts-and-application-views).

**Service**: Deployment configuration that connects selected agent and Context Graph versions with runtime and channel settings. Named version sets select the component versions used when configuration is resolved. See [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts).

**Service Binding**: The association between a provisioned channel use case and a service in a workspace. It establishes routing, not provider provisioning or recipient consent. Rebinding can change the service in the same workspace. Removing a binding removes that route without deleting the upstream channel resources.

**Service Voice Configuration**: Per-service voice tuning that controls filler behavior (style, vocabulary, timing), barge-in sensitivity, response length limits, end-of-turn detection, TTS settings, and call forwarding. Different services within the same workspace can have different voice characteristics. Managed through the Platform API and Agent Forge CLI.

**Signal**: A supported input occurrence relevant to agent execution, such as an utterance, tool result, silence, interruption, external event, or system event. A signal can update context without producing a response. Signal production and handling differ by runtime and channel. See [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine).

**Silence Monitor**: The voice-runtime behavior that handles caller quiet, the same on both voice runtimes. Ten seconds of quiet after the agent speaks brings a check-in, the next ten seconds a second one, and the ten seconds after that end the call, unless the caller has described a medical emergency or self-harm, which leaves the line open. See [Silence Management](https://docs.concurrence.com/operations-and-safety/operators#silence-management).

**Simulation Bridge**: An exploratory testing mode that generates scenario variations from a natural-language objective, runs each as a full multi-turn conversation with an LLM-driven persona, and collects interaction insights for coverage tracking. See [Simulations](https://docs.concurrence.com/testing/testing/simulations).

**Skill**: An orchestrated companion definition configured through the Platform API. A skill declares a required system prompt, input and result schemas, model and execution bounds, and the integration or static tools it may call. The Platform API does not expose a five-tier skill model. See [Skill Execution](https://docs.concurrence.com/agent/platform-functions#skill-execution).

**Source Assertion**: A record of what a source reported, with its available provenance and timestamps. It is evidence of the report, not independent proof of the claim. See [World Model](https://docs.concurrence.com/data/world-model#evidence-facts-and-application-views).

**Surface**: A dynamic or template-based data collection interface that can be delivered by email or handed off as a web link. Eligible agent tools and configured state templates can create surfaces. Creation, delivery, submission storage, event publication, and downstream mutation remain separate lifecycle steps. See [Surfaces](https://docs.concurrence.com/channels/surfaces).

**SurfaceSpec**: The structured specification an agent generates to define a surface - title, fields, delivery channel, expiration, and entity association.

**System 1**: The execution role of fast, familiar, bounded decisions. Rules, classifiers, decision models, or simple model calls can fill this role. It is not an agent resource or a fixed model family. See [Reasoning Architecture](https://docs.concurrence.com/agent/universal-reasoning#system-1-and-system-2-are-execution-roles).

**System 2**: The execution role of deliberation over ambiguous or unfamiliar situations, often supported by an LLM. It is not a separate agent resource, and more deliberation does not guarantee correctness or grant additional authority. See [Reasoning Architecture](https://docs.concurrence.com/agent/universal-reasoning#system-1-and-system-2-are-execution-roles).

## T

**Test Run**: The execution of a test set that produces scored results for each unit test. See [Simulations](https://docs.concurrence.com/testing/testing/simulations).

**Test Set**: A group of related unit tests that are run together. Test sets are often organized by capability area or risk level.

**Trajectory**: An ordered sequence of observations, decisions, tool actions, and results across a task. The available record depends on the execution and observability path. The term does not promise a complete cross-application trace or establish a causal clinical conclusion.

**Transcript Extraction**: In the current Platform memory flow, asynchronous model-based processing can derive source-linked episodic observations and registered behavioral memory dimensions from a completed conversation. It does not automatically convert phone, date-of-birth, insurance, or address mentions into authoritative structured clinical state; explicit tools and connector projections have separate write semantics.

**Trigger**: A workspace-scoped automation that binds an action to a cron schedule or supported platform event. Triggers support event filters, timezone-aware scheduling, pause/resume lifecycle, manual firing for testing, and execution history tracking. Managed through the Platform API, Developer Console, and Agent Forge CLI.

**Typed Decision Model**: A model used to choose or score declared alternatives from context with a structured decision contract. Typed outputs constrain form, not correctness, candidate completeness, or authority. Treating scores as reliable probability estimates requires task-specific evaluation and calibration.

## U

**Unit Test**: A combination of a persona, a scenario, and success criteria that tests a specific agent behavior.

**Universal Processing Engine**: The broader architectural design for forming processing packets from heterogeneous signals, dispatching eligible computations, and arbitrating intended effects before channel execution. Reasoning is one responsibility within it. It does not name a separate API resource or imply one fully implemented runtime across modalities. See [Design Responsibilities](https://docs.concurrence.com/agent/universal-reasoning#the-broader-universal-processing-engine).

**Universal Reasoning**: The architectural composition of authored problem definitions, scoped evidence, decision procedures, and supported runtime execution. "Universal" refers to reusable composition, not universal competence, a separate endpoint, or a shipped general-purpose controller. See [Reasoning Architecture](https://docs.concurrence.com/agent/universal-reasoning).

**Universal Reasoning Harness**: A proposed extension of execution coordination for inputs, reasoning, actions, and delivery with independent lifetimes. Its broader execution ownership, background behavior selection, and evidence-preload contracts are design direction, not universal current runtime capabilities. See [Reasoning Engine](https://docs.concurrence.com/agent/reasoning-engine#design-direction-universal-reasoning-harness).

## V

**Version Set**: A named service configuration that can pin agent and context graph versions, dynamic behavior versions, model preferences, and a supported turn runtime. Platform services require a `release` version set. Omitted version numbers resolve to the latest available version. Classic version sets have a different component model.

## W

**Workspace**: The Platform tenant boundary for data, configuration, and access. A workspace can contain several services and has its own scoped entities, sources, and permissions. See [Workspaces](https://docs.concurrence.com/data/workspaces).

**Workspace Data Query**: A parameterized SQL template registered per workspace that runs directly against workspace-owned custom tables. Exposed to the agent as a `wsq_<name>` tool with typed parameters and write-time validation. See [Platform Functions](https://docs.concurrence.com/agent/platform-functions).

**World Model**: The workspace-scoped data layer that retains source-attributed events and entity relationships and asynchronously derives supported views for agents and applications. It represents available evidence, not a workflow definition or inherently a learned predictive simulator. Agents receive selected context and can use authorized retrieval; no session payload is guaranteed to contain every source or current fact. **Health World Model** names the healthcare application of this same layer, not a separate product or API resource. See [World Model](https://docs.concurrence.com/data/world-model).

**Write Scope**: A server-constructed boundary that limits the workspace, entity, resource types, creation rights, and confidence available to supported model-originated write tools. Trusted services use separate service authorization; their access does not let an agent tool bypass its own scope.


# API Terminology Mapping

Map conceptual documentation terms to current Classic and Platform API resource names.

The [Glossary](https://docs.concurrence.com/reference/glossary) defines the product terms used throughout these docs. The two API surfaces retain some different resource names. This page identifies the exceptions so you can move between conceptual guidance and implementation references without mixing Classic and Platform API terminology. Wire names and historical release terminology remain unchanged.

## API Mappings

| Conceptual Name      | API Name                             | Surface      | Description                                                                                                                                    |
| -------------------- | ------------------------------------ | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| Action               | `tool`                               | Classic API  | A versioned code package that an agent can execute during a conversation.                                                                      |
| Call Timeline        | `timeline`                           | Platform API | Lane-based playback with actor-attributed segments on a shared timebase.                                                                       |
| Context Graph        | `service_hierarchical_state_machine` | Classic API  | Workflow states, transitions, guidance, and tool bindings. Platform Context Graphs have a separate resource contract.                          |
| Dynamic Behavior set | `dynamic_behavior_set`               | Classic API  | A versioned set of triggers and adjustments to turn-level guidance and tool candidates.                                                        |
| Dynamic Behavior set | `dynamic-behavior-sets`              | Platform API | A workspace-owned set with immutable versions, each with a condition, examples, and an instruction. A service pins a version on a version set. |
| Metric Store         | `metrics`                            | Platform API | Metric definitions, assignments, and computed values. Scope and eligibility follow the metric contract.                                        |
| Platform Function    | `function`                           | Platform API | A workspace-registered, read-only SQL, AI, Python, or table-valued computation.                                                                |

Most Platform API resources - including workspaces, agents, services, sessions, skills, surfaces, triggers, and operators - use the same product name in the documentation and API. The Developer Console labels services as Agents and agents as Personas. API names, routes, and SDK types use `service` and `agent`. The legacy names above remain important when working with the Classic API or configuration files that originated there.

An **Agent Core** is the agent's identity and authored guidance, not a second resource or an entire deployed workflow. A **tool** is a general callable capability: Classic Actions, Platform Skills, and Platform Functions have distinct definitions and lifecycles. A **version set** selects supported component versions and preferences; it is not a workspace or an isolated environment. **Universal reasoning** and **liquid world model** describe architectural ideas, not additional API resources.

{% hint style="info" %}
The API references are definitive for current resource names and schemas. See the [Classic API](https://docs.concurrence.com/developer-guide/classic-api/core-api) and [Platform API](https://docs.concurrence.com/developer-guide/platform-api/platform-api) sections of the developer guide.
{% endhint %}


# Agent Forge CLI

Agent Forge CLI for syncing, versioning, and promoting agent configuration, with current Go and legacy Python build coverage.

Agent Forge is the CLI tool for managing agent configurations on the Concurrence platform. It lets you create, update, version, and promote agent components programmatically rather than through the web interface.

Agent Forge treats agent configurations as code. You sync configurations to local JSON files, make changes, and push them back to the platform. This gives you version control, reproducibility, and the ability to script deployment workflows.

## Choosing a Build

Agent Forge ships as two builds that share the same `forge` command and most of the same command surface:

* **Go CLI (current, recommended)** - A single self-contained binary with no runtime dependencies. New workspaces and new automation should use this build. **The Go CLI officially supports only the Concurrence** [**Platform API**](https://docs.concurrence.com/developer-guide/platform-api/platform-api) and drives all remote operations through the `forge platform ...` command tree. It does not officially support the Classic API. Use the Python CLI for Classic API workflows.
* **Python CLI (legacy)** - A Poetry-managed Python tool. It supports both the Platform API and the Classic API, and it includes a handful of analytics, quality, and reporting commands that the Go binary does not implement. Prefer the Go CLI. Use the Python CLI if you need the Classic API or one of the Python-only commands listed in its tab below.

Both builds understand the same entity model and the same `--env` selector. The tabs below document each build's configuration; unless a section says otherwise, the Platform API command syntax is identical across builds.

To tell which build you have, run `forge version`. Go prints a stamped binary version, and the Python tool runs from a git checkout.

## What Agent Forge Manages

Across its two builds, Agent Forge manages the following configuration and testing resources. Coverage differs by build: the Go CLI targets Platform API resources, while the Python CLI also covers Classic API workflows and Python-only analytics commands. The tabs below identify the supported command surface for each build.

* **Agents**: Persona, background, directives, and communication style
* **Context graphs**: Problem structure, states, transitions, and safety boundaries
* **Metrics**: Evaluation criteria, scoring rubrics, and custom metric definitions
* **Personas**: Synthetic user profiles for simulation testing (the primary way to manage personas)
* **Scenarios**: Test situations for simulation testing
* **Services**: Link an agent and context graph into a deployable unit
* **Harness context**: Inspect the supported service bootstrap context for customer integrations
* **Tools**: Versioned code packages (called Actions in the conceptual docs)
* **Unit test sets**: Groups of tests with success criteria
* **Unit tests**: Individual test cases
* **User dimensions**: Attributes that segment users for evaluation and analysis

{% tabs %}
{% tab title="Go CLI (current)" %}
The Go build is the recommended, go-forward CLI. It ships as a single binary and covers the full agent-building and platform-management workflow.

{% hint style="info" %}
The Go CLI officially supports only the Concurrence **Platform API**. All remote operations go through the `forge platform ...` command tree. Classic API workflows are not officially supported in this build - use the Python CLI tab for those.
{% endhint %}

### Installation

Agent Forge ships as a single binary with no runtime dependencies. Install the latest release on macOS with the install script:

```bash
curl -fsSL https://concurrence-hq.github.io/agent-forge-go/install.sh | sh
```

The script detects your Mac's architecture (Intel or Apple Silicon), downloads the matching release, verifies its SHA256 checksum, and installs `forge` to `~/.local/bin` (or `/usr/local/bin` when run as root). If the install directory is not on your `PATH`, the script prints the `export PATH=...` line to add to your shell profile. Run `forge version` to confirm the installed version.

Pre-built releases cover macOS only. On Linux, build the Go CLI from source unless your organization provides a separate release channel.

After installation, create a reusable profile for your workspace. Device-code authentication is the recommended interactive setup:

```bash
# Save the workspace and Platform endpoints in a named profile
forge platform config add myorg \
  --workspace-id 00000000-0000-0000-0000-000000000000 \
  --api-url https://platform.api-us.concurrence.com \
  --identity-url https://identity.api-us.concurrence.com \
  --auth device-code

# Make it the default, authenticate, and verify the resolved configuration
forge platform config use myorg
forge auth login --platform --env myorg
forge platform config doctor --env myorg
forge auth status --platform --env myorg
```

Profiles keep non-secret workspace and endpoint settings in the operating system's user configuration directory. Manage them with `forge platform config add`, `use`, `list`, `show`, `doctor`, `remove`, and `path`. Pass `--env <profile>` to select a profile for one command, or use the active profile by default.

### Authentication

The Go CLI authenticates against the Platform API. Pass the `--platform` flag on the auth commands to target the Platform identity service. A profile selects device-code login or static API-key authentication.

#### Device Code Login (Recommended)

Device code authentication follows RFC 8628. When you run `forge auth login --platform`, the CLI requests a device code from the identity service, displays a short user code, opens your browser to an approval page, and polls for authorization. You verify that the code shown in the browser matches the code in your terminal and approve the request. These flows work in headless environments, SSH sessions, and CI pipelines where a browser cannot be opened inline.

The approval page enforces that your browser session is scoped to the same workspace the device code targets - if your session is scoped to a different workspace, the page redirects you to workspace selection first, and after choosing the correct workspace you are returned to the approval page automatically. If you are not signed in at all, the sign-in flow preserves the approval page as the return destination through authentication and workspace selection, so you land back on the approval page without needing to re-open the CLI link. A session scoped to the wrong workspace or a session without any workspace selected cannot approve the code.

The platform identity device code flow is workspace-scoped end to end. When you initiate a login, Forge sends the configured workspace ID along with the device code request, and the identity service binds the code to that workspace - the approver in the browser must hold a session scoped to the same workspace, and the resulting CLI token is scoped to it. This workspace enforcement applies at both the approval step and the token exchange step, ensuring that credentials are always tied to the intended workspace and preventing cross-workspace token misuse.

Once approved, Forge receives an access token and refresh token automatically - no manual token management required. Platform identity tokens are stored in a workspace-keyed file cache under the operating system's user configuration directory; Forge creates the cache directory with owner-only access and writes token files with mode `0600`. An expired access token is refreshed with the stored refresh token without requiring re-authentication when refresh succeeds. Device code login replaces the need for a static API key for interactive CLI use.

#### API Key

Static bearer token authentication is intended primarily for CI and other non-interactive automation. Create the profile with `--auth api-key`, then supply `PLATFORM_API_KEY` through the process environment or your CI secret store. Forge does not persist the secret in the profile. Platform API keys expire after a configured 1-90 days, and Forge defaults new keys to 30 days. Rotate CI/CD credentials before expiry and delete unused keys.

```bash
forge platform config add ci \
  --workspace-id 00000000-0000-0000-0000-000000000000 \
  --api-url https://platform.api-us.concurrence.com \
  --auth api-key

PLATFORM_API_KEY='<secret-from-your-secret-store>' \
  forge platform agent list --env ci
```

Forge-native configuration fields are automatically translated to platform-native equivalents at deployment time. For example, audio filler phrases defined in Forge tool specs are converted to the platform's progress hint format, so agents configured through Forge work without manual migration.

#### Auth Commands

```bash
# Platform API login (platform identity device code)
forge auth login --platform -e myorg

# Check auth status
forge auth status --platform -e myorg

# Clear cached credentials
forge auth logout --platform -e myorg
```

Always pass `--platform` on the Go CLI. The `--platform` flag is available on `login`, `logout`, and `status`. Without it, the auth commands operate on Classic API credentials, which the Go build does not officially support.

### Command Groups

The sections below cover the Agent Forge command surface, one command group at a time. Most commands support `--json` for structured output, and `--env` selects the target environment, enabling integration with scripts and CI/CD pipelines. (`forge validate`, which runs against local files, accepts `--env` but not `--json`.)

#### Sync and Deployment

**Pull from the platform** - Read entities down from the Platform API with the per-resource `get` and `list` commands, then edit them as JSON on disk:

```bash
# List and fetch entities from the Platform API
forge platform agent list --env myorg
forge platform agent get <agent-uuid> --env myorg
forge platform context-graph get <context-graph-uuid> --env myorg
forge platform service get <service-uuid> --env myorg
```

**Push to the platform** - Push local changes back with `forge platform push` (see **Bulk Push** below). Before applying changes, Agent Forge shows exactly what will be modified so you can review before confirming.

{% hint style="info" %}
The Go binary includes `sync-to-local` / `sync-to-remote` commands, but they operate against the Classic API, which the Go build does not officially support. For Platform API work, pull with `forge platform <entity> get` / `list` and push with `forge platform push`. For Classic API sync, use the Python CLI.
{% endhint %}

**Pre-Push Validation** - Agent Forge validates context graphs before pushing to the platform and surfaces warnings for common authoring mistakes. Validation runs automatically during `forge platform push`, and you can run it on local files at any time with `forge validate` (no auth required).

The canonical value lint detects phone numbers, email addresses, and URLs hardcoded into context graph state prose. Inline canonical values cause silent data drift - when graphs are cloned or updated, hardcoded digits can be accidentally mutated, and the agent reads incorrect information to callers.

The validator scans prose fields in every state (descriptions, instructions, boundary constraints, exit conditions, and action descriptions) and emits a warning for each match, identifying the state, field, and value. It catches phone numbers in digit form (e.g., `555-010-1234`), phone numbers in spelled-out TTS form (e.g., "five five five zero one zero..."), email addresses, and URLs.

To fix a warning, move the canonical value into structured context - such as a location entity in the world model or a workspace setting - and reference it abstractly in the state prose.

**Environment Support** - Agent Forge supports separate staging and production environments. Changes are deployed to staging first, validated through testing, and then promoted to production. Platform push operates on agents, context graphs, and services, laid out per environment:

```
project/
  local/
    staging/
      entity_data/
        agent/
        context_graph/
        service/
      .platform_id_map.json
    production/
      entity_data/
        (same structure)
      .platform_id_map.json
```

**Bulk Push** - Push local entity configurations to the Platform API in a single operation:

```bash
forge platform push --all --env myorg --apply
```

Supports selective push by entity type (`-e agent`, `-e context-graph`, `-e service`). The Go build maintains a local-to-platform UUID map (`local/<env>/.platform_id_map.json`) so repeated pushes update the same platform entities.

#### Agent Building

The `forge platform` command group provides broad CLI coverage for common Platform API workflows, enabling agent building and workspace management without the web interface. Build a complete agent from the CLI in four steps:

1. **Create agent** and agent version with identity, background, and behaviors
2. **Create context graph** and version with states, transitions, and exit conditions
3. **Create service** linking the agent and context graph together
4. **Add skills** (optional) for LLM-backed micro-agent capabilities

```bash
forge platform agent create --name "My Agent" --env myorg
forge platform agent create-version <agent-uuid> --file agent-version.json --env myorg
forge platform context-graph create --name "My Context Graph" --env myorg
forge platform context-graph create-version <context-graph-uuid> --file context-graph-version.json --env myorg
forge platform service create --name "My Service" --agent-id <agent-uuid> --context-graph-id <context-graph-uuid> --env myorg
```

CLI support is organized into these resource groups:

| Resource Group        | Commands                                                                                                    |
| --------------------- | ----------------------------------------------------------------------------------------------------------- |
| **Core**              | `workspace`, `agent`, `context-graph`, `service`, `version-set`, `skill`                                    |
| **Voice & Text**      | `conversation`, `run`, `voice-settings`, `voice-check`                                                      |
| **Data**              | `integration`, `external-integration`, `function`, `fhir`, `workspace-table`, `data-query`, `intake-source` |
| **Surfaces**          | `surface`                                                                                                   |
| **Testing**           | `simulation`, `sim`, `tool-test`, `regression`, `agent-run`                                                 |
| **Access & Identity** | `api-key`, `role-grant`, `role-assignment`, `external-role`, `use-case`                                     |
| **Operations**        | `config`, `audit`, `session`, `triggers`                                                                    |

#### Harness Context <a href="#harness-context-and-retired-framework-commands" id="harness-context-and-retired-framework-commands"></a>

The Platform API provides a read-only service harness-context capability for inspecting the selected identity, reference instructions, world scope, tool descriptors, and guardrail summary. It is bootstrap context for an integration, not an endpoint that launches a customer framework agent or retrieves patient context.

```bash
forge platform agent-run harness-context --service-id <uuid> --env myorg
```

Use the supported conversation lifecycle for hosted interactions and the unified `run` commands to inspect retained run evidence.

#### Voice Configuration Presets

`forge platform service voice-config` can read the current configuration, apply an inline JSON body, apply a named preset, or change only the voice on an existing OpenAI Realtime configuration. The CLI recognizes `ultra_low_latency`, `balanced`, `quality`, and `gpt_realtime`. The `gpt_realtime` preset selects OpenAI Realtime speech-to-speech. The platform still enforces provider, model, voice, and regional availability. The save accepts one action state or 2 to 12 action states with unique names and valid exit targets, with both initial-state fields naming the first state on a multi-state graph and no typed guardrails on an action state. See [Session Provider](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services#session-provider).

```bash
forge platform service voice-config <service-id> --get --env myorg
forge platform service voice-config <service-id> --preset gpt_realtime --env myorg
forge platform service voice-config <service-id> --realtime-voice coral --env myorg
```

`--realtime-voice` preserves the rest of the current voice configuration while moving the selected voice into `voice_config.realtime.voice`. The service must already use `session_provider: gpt_realtime`. Because Forge reads the current service and then writes the complete voice configuration, avoid concurrent edits while this targeted update runs.

#### Simulation

Use `forge platform simulation` for the supported branch-and-bound coverage surface. `forge platform sim bridge` is a shortcut to the same bridge workflow, and `forge platform sim config-to-policy` maps a configuration object to turn-policy fields.

#### Simulation Coverage

The `forge platform simulation` command group manages branch-and-bound simulation coverage runs that systematically explore context graph state space.

| Command                                    | Description                                                                     |
| ------------------------------------------ | ------------------------------------------------------------------------------- |
| `forge platform simulation case create`    | Create one case or a batch of up to 100 cases from JSON                         |
| `forge platform simulation suite create`   | Create a suite selected by case IDs, required tags, or both                     |
| `forge platform simulation run create`     | Create a new coverage run for a service                                         |
| `forge platform simulation run list`       | List coverage runs for a service                                                |
| `forge platform simulation run complete`   | Complete a run                                                                  |
| `forge platform simulation session create` | Create a session within a coverage run                                          |
| `forge platform simulation session step`   | Step a session forward with a simulated user message                            |
| `forge platform simulation session fork`   | Fork a session into children at a decision point, each with a different message |
| `forge platform simulation session score`  | Score a session against configured metrics                                      |
| `forge platform simulation graph show`     | Retrieve the coverage knowledge graph with topology overlay and ghost nodes     |
| `forge platform simulation graph paths`    | List observed paths through the coverage graph                                  |

See [Simulation Coverage](https://docs.concurrence.com/testing/testing/simulations#simulation-coverage) for conceptual background.

#### Simulation Caller and Entity Context

`forge platform simulation session create` accepts `--caller-id` for a simulated caller phone number in E.164 format and `--entity-id` for direct binding to a known world entity. `forge platform sim bridge` accepts `--entity-id` but not `--caller-id`. Direct entity context is useful for regression tests against a known patient or account fixture. Omit the context flags to simulate an unknown caller.

```bash
# Bridge scenarios against a known entity
forge platform sim bridge --service-id <uuid> -o "Test known entity flow" --entity-id <uuid> --env myorg

# Branch-and-bound coverage session with entity context
forge platform simulation session create --run-id <uuid> --service-id <uuid> --entity-id <uuid> --env myorg
```

**Tracked Platform Simulation Sessions**

The `forge platform sim` group also drives tracked platform simulation sessions used by the Agent Readiness workflow:

| Command                             | Description                                                                 |
| ----------------------------------- | --------------------------------------------------------------------------- |
| `forge platform sim smoke-test`     | Single-turn sanity check via a tracked platform session                     |
| `forge platform sim session-create` | Create a tracked simulation session (accepts `--caller-id` / `--entity-id`) |
| `forge platform sim run-create`     | Create a tracked simulation run                                             |
| `forge platform sim run-list`       | List simulation runs with filtering                                         |
| `forge platform sim run-complete`   | Mark a simulation run as complete                                           |

#### Text Conversation Testing

The `forge platform conversation` command group tests text conversations through the REST API without a phone or browser. These commands are useful during initial setup, after configuration changes, or as part of a deployment validation pipeline.

| Command                                    | Description                                                                               |
| ------------------------------------------ | ----------------------------------------------------------------------------------------- |
| `forge platform conversation list`         | List conversation runs through the unified Runs view. Use `run list` for new automation   |
| `forge platform conversation get`          | Retrieve conversation metadata, transcript, and optional tool calls                       |
| `forge platform conversation create`       | Create a durable text conversation for a service and optional entity context              |
| `forge platform conversation send-message` | Send a message, wait for the final reply when possible, and optionally evaluate it inline |
| `forge platform conversation poll`         | Claim a completed background reply after a pending send                                   |
| `forge platform conversation close`        | Close a text thread so the next inbound message starts a new conversation                 |
| `forge platform conversation replay`       | Plan or apply a replay of structured caller turns in a new text conversation              |

Create a durable text conversation, then send user messages through the REST turns endpoint and display the agent's response:

```bash
# Create the conversation
CONV_ID=$(forge platform conversation create \
  --service-id <uuid> \
  --env myorg \
  --json | jq -r .id)

# Send the first message
forge platform conversation send-message \
  --conversation-id "$CONV_ID" \
  --message "What appointments are available tomorrow?" \
  --env myorg

# Continue the same conversation
forge platform conversation send-message \
  --conversation-id "$CONV_ID" \
  --message "How about 2pm?" \
  --env myorg

# With patient context
forge platform conversation create --service-id <uuid> --entity-id <uuid> --env myorg
```

`send-message` requires an existing conversation ID. Use `conversation create` first and pass the returned ID on subsequent calls to continue the same conversation thread.

**Inline Reply Evaluation**

`send-message` can evaluate a final reply in the same command. Repeat `--must-contain` or `--must-not-contain` for fast local checks. Repeat `--judge-criteria` for model-based checks against natural-language requirements. Judge checks require configured judge credentials and `--i-understand-pii` because the reply may contain sensitive data.

```bash
forge platform conversation send-message \
  --conversation-id "$CONV_ID" \
  --message "I need to move tomorrow's appointment" \
  --must-contain "appointment" \
  --must-not-contain "I cannot help" \
  --judge-criteria "The reply offers a concrete next step" \
  --i-understand-pii \
  --env myorg
```

Forge requests a final, filler-free reply. If background work is still pending, it does not grade the interim acknowledgement. Use `conversation poll` to claim the completed reply.

**Conversation Replay**

`conversation replay` copies structured caller turns into a new text conversation so you can compare behavior against the same inputs. It is a dry run by default: Forge displays the source turns and proposed target without creating a conversation or invoking tools. Pass `--apply --yes` together to execute the replay, because replayed turns can invoke side-effecting tools.

```bash
# Inspect the replay plan without creating a conversation
forge platform conversation replay --conversation-id <uuid> --env myorg

# Replay against another service after reviewing the plan
forge platform conversation replay \
  --conversation-id <uuid> \
  --service-id <target-service-uuid> \
  --apply --yes \
  --env myorg
```

Replay supports text conversations with structured transcripts. Output is redacted by default. Raw transcript output requires both `--unredacted` and `--i-understand-pii`. Optional edit modes can replace, insert, or truncate at a selected source turn. Use `forge platform conversation replay --help` for the current mode-specific flags.

To test the Sessions WebSocket, connect through the documented [Sessions WebSocket](https://docs.concurrence.com/developer-guide/platform-api/platform-api/sessions) directly, or use the Python CLI's `text-ws-smoke` command described in its tab.

#### Unified Runs

`forge platform run` is the canonical read surface across conversation runs and framework runs. It uses the same channel-neutral run identifiers as the Developer Console Runs page.

| Command                      | Description                                                                         |
| ---------------------------- | ----------------------------------------------------------------------------------- |
| `forge platform run list`    | List runs with kind, channel, and status filters plus continuation-token pagination |
| `forge platform run summary` | Show aggregate totals, live counts, status counts, and kind counts                  |
| `forge platform run get`     | Retrieve one run by its channel-neutral run ID                                      |

```bash
forge platform run list --kind conversation --channel voice --status live --env myorg
forge platform run summary --kind conversation --env myorg
forge platform run get <run-id> --env myorg
```

Use `conversation` for conversation-specific create, send, poll, and close operations. Use `run` to inspect conversations and retained framework history. `agent-run harness-context` is a separate read-only capability. See [Runs](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs) in the developer guide.

#### Tool Testing

The `forge platform tool-test` commands let you test context graph tools without making phone calls:

| Command                            | Description                                                     |
| ---------------------------------- | --------------------------------------------------------------- |
| `forge platform tool-test resolve` | List available tools for a service with input schemas           |
| `forge platform tool-test execute` | Execute a tool with custom parameters and optional dry run mode |

#### Trigger Management

The `forge platform triggers` command group manages action automations that run on a schedule, in response to supported platform events, or through a manual fire.

| Command                          | Description                                                                  |
| -------------------------------- | ---------------------------------------------------------------------------- |
| `forge platform triggers create` | Create a trigger with an action binding and schedule or supported event type |
| `forge platform triggers list`   | List triggers with active/inactive filtering                                 |
| `forge platform triggers get`    | Get trigger details including next fire time                                 |
| `forge platform triggers update` | Update trigger configuration                                                 |
| `forge platform triggers delete` | Delete a trigger                                                             |
| `forge platform triggers pause`  | Pause a trigger's schedule                                                   |
| `forge platform triggers resume` | Resume a paused trigger                                                      |
| `forge platform triggers fire`   | Manually fire a trigger for testing                                          |
| `forge platform triggers runs`   | View trigger execution history                                               |

Scheduled triggers use cron expressions. Event-based triggers match a supported world-model event and can narrow matches with an event filter. Manual fires use the same durable execution path, which makes them useful for testing a trigger before activation. See [Outbound](https://docs.concurrence.com/channels/outbound) for how triggers fit into automated contact patterns.

#### Platform Functions

The `forge platform function` command group manages platform functions - declarative SQL, Python, AI, and table-valued (UDTF) functions that agents can call mid-conversation. Table-valued functions return rows rather than a single value.

| Command                            | Description                                                        |
| ---------------------------------- | ------------------------------------------------------------------ |
| `forge platform function register` | Register a new platform function with its definition and metadata  |
| `forge platform function list`     | List all registered functions in the workspace                     |
| `forge platform function test`     | Execute a function with test parameters and inspect the result     |
| `forge platform function delete`   | Remove a function registration                                     |
| `forge platform function query`    | Run an open-scope SQL query against workspace data                 |
| `forge platform function catalog`  | Display the full function catalog with signatures and descriptions |
| `forge platform function sync`     | Sync function definitions between local files and the platform     |

See [Platform Functions](https://docs.concurrence.com/agent/platform-functions) for conceptual background.

**Authorization-Binding Test Values**

For trusted function tests and developer-playground conversations that do not carry live authorization, Forge can read, set, or clear a playground test value on an `authorization_binding` parameter. Live authorization always takes precedence. This value is not a general SQL default.

```bash
forge platform function binding-test-value get <function> <parameter> --env myorg --json
forge platform function binding-test-value set <function> <parameter> --value "example_a,example_b" --dry-run --env myorg
forge platform data-query binding-test-value clear <query> <parameter> --env myorg
```

Both `function` and `data-query` support `get`, `set`, and `clear`. `set` and `clear` accept `--dry-run` to validate and show the write without persisting it. Clearing a value preserves the authorization binding and makes a no-authorization playground execution fail closed.

#### Intake Sources

Use `forge platform intake-source` to inspect registered dataset intake sources and remove a registration safely.

```bash
forge platform intake-source list --workspace <workspace-uuid> --env myorg --json
forge platform intake-source delete <source-uuid> --workspace <workspace-uuid> --env myorg --dry-run --json
forge platform intake-source delete <source-uuid> --workspace <workspace-uuid> --env myorg --yes --json
```

`list` uses the configured workspace unless `--workspace` overrides it and follows all result pages. `delete` requires explicit canonical, non-zero source and workspace UUIDs. It prompts with a default-no confirmation unless `--yes` is present. `--dry-run` reads the listing and previews the target without sending a delete, even when combined with `--yes`.

Deletion removes only the intake-source registration. It does not purge upstream files, imported tables or data, credentials, or history. Forge does not automatically retry deletion failures, so after a timeout or coordination error, inspect source state before explicitly retrying.

### CLI Updates

On macOS, upgrade an installed binary in place with the built-in self-update command:

```bash
forge update            # download and install the latest release
forge update --check    # report whether an update is available without installing
```

`forge update` always installs the latest release. It downloads the release for your Mac's architecture, verifies its SHA256 checksum, checks that the downloaded binary runs, and replaces the current executable. It skips the download when you already have the latest version, and after an update it prints the latest release's notes when they are published.

| Flag      | Purpose                                                                                    |
| --------- | ------------------------------------------------------------------------------------------ |
| `--check` | Report whether an update is available and exit without downloading or installing anything. |
| `--force` | Reinstall even when up to date, and overwrite a locally built `dev` binary.                |

If the install directory is not writable, such as `/usr/local/bin`, `forge update` stops and asks you to re-run it as `sudo forge update`. A locally built binary reports its version as `dev`, and `forge update` does not overwrite it unless you pass `--force`.

Forge 0.1.75 and earlier cannot upgrade themselves with `forge update`. Re-run the install script once. Later versions then upgrade with `forge update`.

On Linux, rebuild from source or reinstall from your organization's release channel to upgrade.
{% endtab %}

{% tab title="Python CLI (legacy)" %}
{% hint style="warning" %}
Prefer the **Go CLI** (see the other tab) for all new work. Use the Python build only if you depend on the Classic API or one of the Python-only commands listed below.
{% endhint %}

The Python CLI shares the Platform API command surface with the Go build - `auth`, `validate`, `forge platform push`, and the `forge platform` resource groups for agents, context graphs, services, skills, functions, conversations, tool tests, simulation, surfaces, and integrations. For those, follow the **Go CLI** tab. The syntax is the same. In addition, because the Python build also supports the Classic API, it offers the `sync-to-local` / `sync-to-remote` workflow against the Classic API. This tab documents what is different in the Python build.

### Installation

The Python CLI is not a standalone binary - it runs from a git checkout with a full Python runtime, managed by Poetry.

1. Install Python 3.13 (the repo pins `3.13.5`, e.g. via `pyenv install 3.13.5`).
2. Install [Poetry](https://python-poetry.org/) 2.x.
3. From the repo root, install dependencies and activate the environment:

```bash
poetry install
$(poetry env activate)
```

Commands run as `poetry run forge ...` (or just `forge ...` inside the activated environment). Because the tool runs from a checkout, it must be invoked from the repository root.

### Authentication

Unlike the Go build, the Python CLI supports **both** the Classic API and the Platform API. The `--platform` flag selects which surface a command targets - omit it for the Classic API, pass it for the Platform API. Both use device code login and static API keys. The Python build uses its own repository configuration rather than Go CLI profiles.

### Command-name differences

The command groups are largely identical to the Go build, with a few naming differences to watch for:

* The trigger group is `forge platform trigger` (singular) in the Python CLI, versus `forge platform triggers` (plural) in the Go CLI.

### Legacy-only commands

The following commands are implemented in the Python build only. Use the Python CLI if you rely on any of them.

#### Analytics (`forge analyze`)

The `forge analyze` command group provides SQL-based exploration of workspace data directly from the CLI, replacing the need for external analytics tools.

| Command                  | Description                                                                                                   |
| ------------------------ | ------------------------------------------------------------------------------------------------------------- |
| `forge analyze query`    | Execute ad-hoc SQL SELECT queries (inline or from file). Results are capped and queries are time-bounded.     |
| `forge analyze describe` | Preview a query's output schema without executing it - useful for validating JOINs and checking column types. |
| `forge analyze tables`   | List available tables in the workspace schema. Supports SQL LIKE patterns for filtering.                      |
| `forge analyze schema`   | Describe a table's columns: names, data types, and comments.                                                  |
| `forge analyze sample`   | Preview sample rows from a table (default 5, max 20).                                                         |
| `forge analyze detail`   | Rich table metadata: row count, size, partitioning, column nullability, data freshness.                       |
| `forge analyze profile`  | Profile a column's data distribution: cardinality, null rate, min/max values.                                 |
| `forge analyze catalog`  | Display the full data catalog reference offline without a database connection.                                |

Pre-built analytics query templates cover common patterns like conversation volume, tool performance, and metric trends:

```bash
# List templates
forge analyze template list

# Run a template with parameters
forge analyze template run conversation-volume -P days=7
```

#### Insights (`forge platform insights`)

The `forge platform insights` command group provides conversational data exploration from the CLI, wrapping the platform's [Insights Agent](https://docs.concurrence.com/intelligence-and-analytics/intelligence/analytics-dashboards#insights-agent) capabilities - workspace queries, schema metadata, and health digests.

| Command                               | Description                                                                                                  |
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| `forge platform insights sql`         | Execute a SQL query against workspace data and return formatted results                                      |
| `forge platform insights schema`      | Describe available tables, columns, and functions in the workspace schema                                    |
| `forge platform insights digest`      | Generate an AI-powered digest summarizing recent workspace activity, entity counts, and data quality signals |
| `forge platform insights suggestions` | Get suggested starter questions based on the workspace's data and recent activity                            |

```bash
# Execute a SQL query against the workspace data warehouse
forge platform insights sql "SELECT ..." --env myorg

# Read SQL from a file
forge platform insights sql --sql-file my_query.sql --env myorg --json

# List available tables, columns, and functions
forge platform insights schema --env myorg

# Get a workspace health digest with entity counts and data quality signals
forge platform insights digest --env myorg

# Get suggested starter questions for exploring workspace data
forge platform insights suggestions --env myorg
```

#### Call Trace Analysis (`forge platform trace`)

The `forge platform trace` command group provides call trace analysis from the CLI, wrapping the platform's [trace analysis](https://docs.concurrence.com/intelligence-and-analytics/intelligence/call-intelligence#call-trace-analysis) capabilities - deep call understanding from the intelligence pipeline.

| Command                     | Description                                                                                                                                     |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `forge platform trace list` | List call traces with filters for date range, service, quality score, outcome, and direction                                                    |
| `forge platform trace get`  | Get detailed trace analysis for a specific call, including emotional arc, decision moments, component attribution, and coaching recommendations |

```bash
# List recent trace analyses
forge platform trace list --env myorg

# Filter by outcome and lookback window
forge platform trace list --outcome failed --days 7 --env myorg

# Get detailed trace analysis for a specific call
forge platform trace get <call-sid> --env myorg
```

Trace analysis provides:

* **Emotional arc** - How caller sentiment evolved across the conversation
* **Key decision moments** - Critical points with quality assessment and causal attribution
* **Coaching recommendations** - Actionable improvements tied to specific call moments
* **Counterfactuals** - Alternative actions that could have changed the outcome
* **Signal-response alignment** - Whether the agent responded appropriately to caller signals
* **Interaction dynamics** - Turn-taking quality, rapport trajectory, and repair effectiveness

Trace output uses rich formatting with colored outcome indicators and structured digest sections for quick scanning of call quality issues.

#### Conversation Quality Check

The `forge quality check` command scans workspace conversations for agent behavioral issues - stuck loops, degenerate output, repetition, and other quality problems. It queries production conversation data directly and runs pattern-based detectors to surface problematic interactions.

```bash
# Scan last 24 hours
forge quality check <workspace-name>

# Wider window with message snippets
forge quality check <workspace-name> --days 7 --verbose

# Structured output for scripting
forge quality check <workspace-name> --json
```

| Detector                   | What It Finds                                                                              |
| -------------------------- | ------------------------------------------------------------------------------------------ |
| **Character degeneration** | Repeated characters, low entropy output, stuttering patterns                               |
| **Stuck agent loops**      | Agent repeats the same response while the caller changes topics                            |
| **Repetitive patterns**    | High similarity across sliding message windows                                             |
| **Word salad**             | Incoherent output patterns like or-chains and excessive word repetition                    |
| **Phantom success**        | Agent claims a tool call succeeded when the tool actually returned an error                |
| **Wrong tool inputs**      | A tool is called with parameters that do not match what the caller actually asked for      |
| **Ungrounded claims**      | The agent asserts capabilities or facts not supported by the configured entity definitions |
| **Safety / PII**           | The agent leaks sensitive information or provides unsafe guidance                          |

Some detectors (phantom mismatch, wrong tool inputs, ungrounded claims, and safety/PII) require an LLM key to run.

Results include conversation IDs, timestamps, detector names, and severity. Use `--verbose` to see the actual message excerpts that triggered each finding.

See [Voice Simulation](https://docs.concurrence.com/testing/testing/voice-simulation) and [Drift Detection](https://docs.concurrence.com/testing/testing/drift-detection) for related quality monitoring capabilities.

#### Metrics Management (`forge platform metrics`)

The legacy Python CLI exposes workspace metric settings and current metric reads. Use only commands backed by the current Platform API:

| Command                                     | Description                                                |
| ------------------------------------------- | ---------------------------------------------------------- |
| `forge platform metrics settings`           | View built-in and custom workspace metric definitions      |
| `forge platform metrics define`             | Replace the custom definitions supplied in a JSON document |
| `forge platform metrics list`               | List current metric values                                 |
| `forge platform metrics catalog`            | List active built-in and custom catalog entries            |
| `forge platform metrics get <metric-key>`   | Read values for one metric                                 |
| `forge platform metrics trend <metric-key>` | Read a metric time series                                  |

```bash
# View current metric settings
forge platform metrics settings --env myorg

# Define a metric
forge platform metrics define --file metric-definitions.json --env myorg

# Read one metric's recent trend
forge platform metrics trend scheduling_success --days 14 --env myorg
```

The Python CLI still registers `metrics freshness` and `metrics evaluate`, but the current Platform API has no dedicated metric-freshness or generic metric-evaluate route. Do not use those commands. The embedded [production-eval operation](https://docs.concurrence.com/developer-guide/platform-api/safety/production-evals#evaluating-a-call) is separate: it runs active eval definitions other than the platform's defaults and persists their verdicts.

#### Coverage-Optimized Simulation (`forge simulation`)

In addition to the `forge platform sim` and `forge platform simulation` groups shared with the Go build, the Python CLI has a top-level `forge simulation` group that provides coverage-optimized simulation testing against context graphs. It automatically steers simulated conversations toward unvisited states, behaviors, and tools to maximize test coverage.

Each simulation turn follows a scoring loop:

1. The platform generates recommended user responses (graph-unaware)
2. An LLM classifier predicts which state each response would transition to
3. A scorer ranks responses by expected coverage value using graph structure
4. The highest-scoring response is sent as the simulated user message
5. Coverage state is updated based on the agent's response

| Command                     | Description                                                                                                                                                          |
| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `forge simulation run`      | Execute a simulation with configurable sessions, turn budgets, and coverage targets                                                                                  |
| `forge simulation plan`     | Generate a target spec from a natural-language objective (e.g., "test the cancellation flow end-to-end")                                                             |
| `forge simulation bridge`   | Generate scenario variations from a natural-language objective, run multi-turn conversations with LLM-driven personas, and track coverage using interaction insights |
| `forge simulation evaluate` | Compare metric scores across simulation runs, including before/after diff mode                                                                                       |
| `forge simulation cleanup`  | Delete ephemeral test users created by simulation runs                                                                                                               |

Simulations are highly configurable:

| Setting         | Default    | Description                                                                                              |
| --------------- | ---------- | -------------------------------------------------------------------------------------------------------- |
| **Sessions**    | 3          | Number of parallel conversations                                                                         |
| **Max turns**   | 20         | Maximum turns per session                                                                                |
| **Budget**      | 100        | Total turn budget across all sessions                                                                    |
| **Algorithm**   | `frontier` | Scoring algorithm: `frontier`, `heatmap`, or `random`                                                    |
| **Temperament** | `random`   | Simulated user personality: `cooperative`, `neutral`, `frustrated`, `confused`, `skeptical`, or `random` |

The `forge simulation bridge` command combines scenario generation with multi-turn conversation execution. You describe what you want to test in natural language, and the bridge generates diverse scenario variations, runs each as a full conversation with an LLM-driven persona, and collects interaction insights after every turn for coverage tracking.

```bash
# Generate and run 5 scenarios testing cancellation handling
forge simulation bridge --service "Scheduling" --objective "test cancellation edge cases" --scenarios 5 --env staging
```

Simulation bridge results are persisted locally across runs, enabling trend analysis and regression detection. Tag scenarios for selective execution (for example, `forge simulation bridge --tag scheduling`) to build a reusable test library that grows over time.

#### Streaming text smoke test (`forge platform conversation text-ws-smoke`)

The legacy Python command opens the Platform Sessions WebSocket, sends one message, and waits for the agent response. It requires an entity ID for context and accepts service, message, and conversation options. The Go binary does not implement this command; use it only when the Python CLI is already part of your workflow.

#### Changelog (`forge changelog`)

The `forge changelog show` command provides cross-entity change traceability - tracking what changed across agents, context graphs, behaviors, and metrics over time. This gives teams visibility into configuration drift without relying on external version control tooling.

### CLI Updates

The Python build updates itself from its git checkout rather than downloading a binary. It checks `origin/main` in the background (throttled) and, when updates are available, prompts before applying them. You can also update manually:

```bash
forge update
```

When updates are applied, uncommitted local changes are stashed during the update and restored afterward. If dependencies changed, `poetry install` is re-run automatically and the original command is re-executed.
{% endtab %}
{% endtabs %}

## Coding Agent Skills

The `amigo-forge` plugin is a public skill marketplace for Codex and [Claude Code](https://docs.claude.com/en/docs/claude-code/overview). It lets your coding agent drive the `forge` CLI for you. Instead of remembering command syntax, you describe what you want in plain language - "scope this agent before I build it", "validate my entity JSON", "run regression sims before I promote" - and the agent picks the matching skill and runs it against the `forge` binary you already have installed. The skills drive your local binary; they do not ship or install it.

The marketplace lives in the public [`concurrence-solutions/forge-skills`](https://github.com/concurrence-solutions/forge-skills) repository and requires `forge` version 0.1.23 or newer on your PATH. See [Installation](#installation) in the Go CLI tab to install the binary.

### Install

Codex:

```bash
# Add the marketplace (one time)
codex plugin marketplace add concurrence-solutions/forge-skills
```

Then open Codex, run `/plugins`, choose the `amigo-forge` marketplace, and install the `forge` plugin.

Claude Code:

```bash
# Add the marketplace (one time)
claude plugin marketplace add concurrence-solutions/forge-skills

# Install the forge plugin
claude plugin install forge@amigo-forge
```

List installed skills and plugins with `/plugins` in Codex or `/plugin` in Claude Code.

### Available Skills

| Skill                | Use it to                                                                                                                                                                                      |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `forge-agent-design` | Scope an agent before building - decide where each piece of complexity belongs (a deterministic function, a context graph state, an isolated skill, a router, or multiple agents). Start here. |
| `forge-build-agent`  | Stand up the entities end to end: functions, then a context graph, the agent, skills, a service, and a pinned version set.                                                                     |
| `forge-validate`     | Run the local, no-auth pre-push validation gate over your entity JSON.                                                                                                                         |
| `forge-sync`         | Read, edit, validate, and deploy entity data through `forge platform` commands - pull with `get`, then push with a dry run first, then apply.                                                  |
| `forge-simulate`     | Regression-test and prove parity before promoting a version set, keeping a rollback path.                                                                                                      |

In any Forge project, describe what you want and the coding agent selects the matching skill. You can also invoke a skill explicitly:

```
# Codex
$forge-agent-design

# Claude Code
/forge:forge-agent-design
```

### Keeping Skills Up to Date

Codex loads new skill versions after the marketplace catalog is refreshed and the installed plugin is updated. Refresh the marketplace catalog from a shell:

```bash
codex plugin marketplace upgrade amigo-forge
```

Then open `/plugins`, update the installed `forge` plugin if prompted, and start a new thread so Codex reloads the plugin instructions.

Claude Code auto-update is off by default for third-party marketplaces. Turn it on from `/plugin` > **Marketplaces** > `amigo-forge` > **Enable auto-update** so Claude Code refreshes the catalog and updates the plugin at startup. To update by hand, refresh the catalog and then update the plugin:

```bash
# Refresh the marketplace catalog
claude plugin marketplace update amigo-forge

# Update the installed plugin to the catalog's latest version
claude plugin update forge@amigo-forge
```

Run `/reload-plugins` afterward to activate the new version in the current session without restarting.

## Typical Workflow

1. **Pull current configurations** from the platform to your local environment.
2. **Make changes** to the JSON configuration files.
3. **Push to staging** and run your test sets to validate.
4. **Review results** and iterate if tests fail.
5. **Promote to production** after validation passes.

This workflow supports both manual changes and automated optimization. Teams can use Agent Forge directly for planned configuration updates, or set up automated pipelines that use Agent Forge to deploy and test changes as part of a continuous improvement process.

## When to Use Agent Forge

* **Managing configurations across environments**: Keep staging and production in sync with a controlled promotion process.
* **Bulk updates**: Modify multiple agents, behaviors, or evaluation criteria in a single operation.
* **Scripted deployments**: Integrate Agent Forge into CI/CD pipelines for automated testing and deployment.
* **Audit and rollback**: Maintain a complete history of configuration changes with the ability to revert.
* **Building agents from scratch**: Use Platform API commands to create agents, context graphs, and services entirely from the CLI.
* **Coverage testing**: Run simulation tests that automatically explore unvisited states and edge cases.

{% hint style="info" %}
Use the [Platform API developer guide](https://docs.concurrence.com/developer-guide/platform-api/platform-api) for setup, authentication, and workspace configuration details. This reference page covers the Agent Forge command surface.
{% endhint %}


# Performance Characteristics

How to interpret voice latency, scaling, API rate limits, and post-call processing behavior.

Operational characteristics for major platform subsystems. Unless a customer agreement says otherwise, the values on this page describe runtime controls or API limits rather than a service-level agreement.

## Voice Pipeline Latency

The voice pipeline prepares first audio before or during conference setup where the call flow allows it, then records latency at multiple boundaries. It does not publish one universal first-message or speech-recognition latency guarantee.

End-to-end turn latency varies with the selected models, speech providers, tool dispatch mode, external integrations, audio quality, and network path. Per-call summaries expose observed engine and audio time-to-first-byte measurements rather than relying on one platform-wide average. [Filler speech](https://docs.concurrence.com/channels/voice/audio-pipeline) can acknowledge some processing gaps, and [prompt caching](https://docs.concurrence.com/platform-overview/cost-and-latency) can reduce repeated prompt processing where the selected model path supports it.

### Per-Turn Processing Layers

The platform-managed speech-to-text and text-to-speech path has five processing layers. Provider-owned speech-to-speech sessions use a different path. See [Audio Pipeline](https://docs.concurrence.com/channels/voice/audio-pipeline).

| Layer                  | What Happens                                                                          |
| ---------------------- | ------------------------------------------------------------------------------------- |
| **STT processing**     | Audio converted to transcript text                                                    |
| **Engine**             | Context graph navigation, state guidance, tool selection, and selected memory context |
| **Render**             | LLM generates response text                                                           |
| **TTS generation**     | Text converted to speech audio with emotion parameters                                |
| **Transport delivery** | Audio delivered to the telephony layer                                                |

## Scaling and Recovery

The voice runtime scales horizontally, but this documentation does not publish a universal workspace concurrency ceiling or throughput commitment. Capacity depends on the deployed region, voice path, provider quotas, and customer configuration.

An integration call reports its own result, and a failed or ambiguous write is not reconciled automatically. Check the destination before retrying a write.

## API Rate Limits

Platform API routes attach rate-limit policies individually. The following are current common policies, not a substitute for the contract and response headers on a specific endpoint:

| Operation                        | Limit     | Scope                    |
| -------------------------------- | --------- | ------------------------ |
| **Outbound call creation**       | 1,000/min | Per credential and route |
| **Conversation creation**        | 60/min    | Per credential and route |
| **Common write policy**          | 10/min    | Per credential and route |
| **Common read policy**           | 60/min    | Per credential and route |
| **Default authenticated policy** | 100/min   | Per credential and route |

Outbound call creation has a higher route-specific limit for campaign and outreach fan-out. Rate-limit responses include `Retry-After`, `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset`. Clients should use those values rather than infer remaining capacity from a local counter.

Separately from rate limits, each workspace can register up to 100 test caller numbers.

## End-of-Turn Detection

End-of-turn controls can be set at the service level and, on compatible recognition paths, overridden by a context graph state's turn policy. The thresholds balance responsiveness against the risk of cutting off a caller. Provider support and the speaking patterns of the target population determine useful settings.

## Post-Call Processing

When transcript verification is enabled and a recording exists, an asynchronous job can create a second caller transcript with word timing and compare it with the live transcript. The result and comparison evidence are stored when processing succeeds. This optional artifact is not guaranteed for every call, is not guaranteed ground truth, and does not automatically replace transcription configuration or update keyterms.


# Developer Guide

Choose the correct Concurrence API, configure credentials and region, and follow implementation guides for data, agents, channels, and operations.

Build an integration with Concurrence using the API and credentials assigned to your deployment. This guide connects setup, SDK examples, and endpoint contracts to the workflow you want to implement.

Start with [regions and endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints) and [credentials](https://docs.concurrence.com/developer-guide/getting-started/credentials) when connecting a deployment. You can run the local starter before access is provisioned.

## Choose a Task

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><a href="https://docs.concurrence.com/developer-guide/guides/first-verified-conversation"><strong>Run your first conversation</strong></a></td><td>Start with a credential-free fixture, then connect a provisioned test service and inspect the saved answer.</td></tr><tr><td><a href="https://docs.concurrence.com/developer-guide/guides/data-to-verified-action"><strong>Connect data and actions</strong></a></td><td>Follow a source record through retrieval, authorization, and confirmation in the target system.</td></tr><tr><td><a href="https://docs.concurrence.com/developer-guide/guides/build-and-prove"><strong>Test and release a workflow</strong></a></td><td>Configure the service, evaluate representative cases, and prepare promotion and recovery.</td></tr><tr><td><a href="https://docs.concurrence.com/developer-guide/guides/operate-and-improve"><strong>Operate and troubleshoot</strong></a></td><td>Locate a run, inspect its evidence, reconcile the result, and select the next action.</td></tr></tbody></table>

Already have Console access? Use [First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation). The [guide index](https://docs.concurrence.com/developer-guide/guides) groups channel, governance, and integration tasks by outcome.

Use [Integrate Channel Manager](https://docs.concurrence.com/developer-guide/reference-guides/integrate-channel-manager) to send messages or run calls from your own backend. If your SMS sender is approved and a number is assigned, start with [Launch an SMS Outreach Campaign](https://docs.concurrence.com/developer-guide/reference-guides/launch-sms-outreach-campaign). These guides use Channel Manager's own OAuth client credentials and do not require a Platform workspace.

## Quick Start

For Platform and Classic integrations, choose the API by its resource and authentication contracts before installing a client or copying a request. Both APIs support conversational workflows.

Use [Choose Credentials](https://docs.concurrence.com/developer-guide/getting-started/credentials) for Platform and Classic access. Keep the hosts, package names, and imports shown in the examples, including `amigo` identifiers. See [Rebrand and Compatibility](https://docs.concurrence.com/reference/concurrence-rebrand).

{% tabs %}
{% tab title="Platform API" %}
Use the workspace-scoped Platform API for deployed agent workflows, shared world-model data, supported voice and messaging channels, integrations, and operator controls.

1. Download and run [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation) locally. The starter includes the SDK and needs no Concurrence credentials in local mode.
2. When your test workspace is ready, confirm its ID, [regional endpoint](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints), and [accepted credential](https://docs.concurrence.com/developer-guide/platform-api/platform-api/authentication).
3. [Create a Test Service](https://docs.concurrence.com/developer-guide/guides/create-a-test-service) if you need an agent, graph, and service. Complete the starter's **Provisioned test service** checklist, then run it against that service and inspect the result.
4. Follow [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove), then [Operate and Improve](https://docs.concurrence.com/developer-guide/guides/operate-and-improve). Use the [SDK quickstart](https://docs.concurrence.com/developer-guide/platform-api/platform-sdk/quickstart) to explore additional operations.
   {% endtab %}

{% tab title="Classic API" %}
Use the organization-scoped Classic API for integrations built around Classic users, services, conversation event streams, Actions, and Dynamic Behaviors.

1. Confirm the organization ID, user ID, and [regional endpoint](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints).
2. Set up the [Classic API key-to-token exchange](https://docs.concurrence.com/developer-guide/reference-guides/authentication).
3. Install a [Classic SDK](https://docs.concurrence.com/developer-guide/classic-api/sdks/sdk-installation): `amigo-sdk` for Python or `@amigo-ai/sdk` for TypeScript.
4. Run [Hello World](https://docs.concurrence.com/developer-guide/classic-api/sdks/sdk-hello-world), including incremental handling of conversation events.
5. Continue with the [Classic resource guide](https://docs.concurrence.com/developer-guide/classic-api/core-api).
   {% endtab %}
   {% endtabs %}

## API Comparison

| Decision           | Platform API                                                                                                          | Classic API                                                                     |
| ------------------ | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Resource boundary  | Workspace for workspace-scoped resources. Some identity and management routes have other scopes                       | Organization and authenticated user                                             |
| Credential flow    | Workspace keys, interactive identity credentials, or scoped OAuth credentials on their supported routes               | API key credentials exchanged for a user bearer token                           |
| Conversation paths | Text turns, persistent sessions, phone calls, and managed messaging with channel-specific lifecycles                  | Conversation create/interact streams, voice notes, and supported realtime paths |
| Agent capabilities | Context Graph tool bindings, Skills, platform functions, integrations, and dynamic behavior sets that adjust guidance | Versioned Tools/Actions and Dynamic Behaviors                                   |
| Client packages    | `@amigo-ai/platform-sdk`                                                                                              | `@amigo-ai/sdk`, `amigo-sdk`                                                    |

Shared names such as service, agent, or version set do not make IDs, credentials, payloads, or SDK methods interchangeable. [Core Concepts](https://docs.concurrence.com/developer-guide/getting-started/core-concepts) maps each resource to its owning API.

### System Architecture

For a workflow that crosses data retrieval, agent execution, an external action, and human follow-up, read [How It Works](https://docs.concurrence.com/platform-overview/how-it-works). This guide owns the implementation details for those boundaries.

## Documentation Structure

Use the [implementation path](https://docs.concurrence.com/developer-guide/guides#implementation-path) to move from access to a verified result, release, and operation. For architecture decisions, start with [Architecture and Deployment](https://docs.concurrence.com/platform-overview/architecture-and-deployment).

### Browse Reference Areas by Task <a href="#browse-reference-areas-by-task" id="browse-reference-areas-by-task"></a>

[Guides](https://docs.concurrence.com/developer-guide/guides) follow the customer workflow: Build, Evaluate, Operate, Improve, Data, and Govern. Use [Compatibility and Retirements](https://docs.concurrence.com/developer-guide/reference-guides/compatibility-and-retirements) for Classic setup and release history.

| Your next task                                    | Start here                                                                                                                                                                                                                                                                        |
| ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Establish credentials and regional routing        | [Getting Started](https://docs.concurrence.com/developer-guide/getting-started)                                                                                                                                                                                                   |
| Configure agents, services, and version selection | [Platform resources](https://docs.concurrence.com/developer-guide/platform-api/platform-api) or [Classic resources](https://docs.concurrence.com/developer-guide/classic-api/core-api)                                                                                            |
| Build a specific workflow                         | [Guides](https://docs.concurrence.com/developer-guide/guides)                                                                                                                                                                                                                     |
| Use a typed client                                | [Platform SDK](https://docs.concurrence.com/developer-guide/platform-api/platform-sdk) or [Classic SDKs](https://docs.concurrence.com/developer-guide/classic-api/sdks)                                                                                                           |
| Connect workspace data and external systems       | [Data & World Model](https://docs.concurrence.com/developer-guide/platform-api/data-world-model) and [Integrations](https://docs.concurrence.com/developer-guide/platform-api/integrations)                                                                                       |
| Query Classic organization data                   | [Data Access](https://docs.concurrence.com/developer-guide/classic-api/data-access)                                                                                                                                                                                               |
| Inspect runtime outcomes                          | [Runs](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs), [Operators](https://docs.concurrence.com/developer-guide/platform-api/conversations/operators), and [Safety & Monitoring](https://docs.concurrence.com/developer-guide/platform-api/safety) |
| Maintain an existing deployment                   | [Best Practices](https://docs.concurrence.com/developer-guide/operations/devops), with each page's API and CLI scope                                                                                                                                                              |
| Check terminology or compatibility                | [Reference](https://docs.concurrence.com/developer-guide/operations/reference) and [Change Logs](https://docs.concurrence.com/api-reference/change-logs)                                                                                                                          |

## Support and Resources

Investigate an incomplete result with [Troubleshooting](https://docs.concurrence.com/developer-guide/guides/troubleshooting). Before changing an existing integration, review [Current Upgrade Guidance](https://docs.concurrence.com/api-reference/change-logs/upgrade-guide).

Use the public schema embedded in each endpoint section for its request and response contract. The surrounding prose explains authorization, lifecycle, failure handling, and availability that a schema alone cannot establish. WebSocket and separately served routes identify their own protocol or schema boundary.

For deployment-specific access and support, contact your Concurrence representative through your agreed support channel. Report SDK issues in the relevant package repository: [Platform TypeScript](https://github.com/concurrence-hq/concurrence-platform-typescript-sdk/issues), [Classic TypeScript](https://github.com/concurrence-hq/amigo-typescript-sdk/issues), or [Classic Python](https://github.com/concurrence-hq/amigo-python-sdk/issues).


# Getting Started

Establish your API, tenant boundary, credentials, and regional endpoint, then validate a first read before building a Concurrence workflow.

For a new Platform project, follow the workspace setup and verified conversation path below. If you maintain an existing Classic integration, choose its separate credential flow in [Choose Credentials](https://docs.concurrence.com/developer-guide/getting-started/credentials). Channel provisioning, data connections, and a configured service are additional prerequisites for a working agent interaction.

<figure><img src="https://1651797362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2YwM0LHtEGLt9S21OyC3%2Fuploads%2Fgit-blob-9241f2566f609b78de23b6d9da872c2b60582d11%2Fgetting-started-path.svg?alt=media" alt="Choose the API and assigned region, establish tenant and credential access, verify a read, confirm the test service and channel, then run a verified conversation."><figcaption><p>A first project has separate access, configuration, and verification steps.</p></figcaption></figure>

## Build Your First Project

Choose the path that matches your access:

| You have                                                                                                 | Start here                                                                                                                                                                                                                                                                                                                |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Node.js and npm, with no workspace access yet                                                            | [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation), **Local walkthrough**. Run the SDK against fixtures and inspect the result file.                                                                                                                          |
| Test workspace and authoring credentials, without a service                                              | [Create a Test Service](https://docs.concurrence.com/developer-guide/guides/create-a-test-service). Create and verify the configuration, then run the conversation starter.                                                                                                                                               |
| Console access and a configured test service                                                             | [First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation). Send a text question, inspect the answer, and end the session in your browser.                                                                                                                              |
| A configured test service and Platform API credentials                                                   | [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation), **Provisioned test service**. Verify an answer in durable history and confirm closure.                                                                                                                    |
| An existing Classic integration                                                                          | [Classic Hello World](https://docs.concurrence.com/developer-guide/classic-api/sdks/sdk-hello-world), after you [install](https://docs.concurrence.com/developer-guide/classic-api/sdks/sdk-installation) and [configure](https://docs.concurrence.com/developer-guide/classic-api/sdks/sdk-configuration) a Classic SDK. |
| Your own backend, an approved SMS sender with an assigned number, and Channel Manager client credentials | [Launch an SMS Outreach Campaign](https://docs.concurrence.com/developer-guide/reference-guides/launch-sms-outreach-campaign). Send a controlled message, read delivery status, and test opt-out. This path does not require a Platform workspace.                                                                        |

The prerequisites below apply when connecting to a Platform or Classic deployment. The Channel Manager guide lists its own. The local walkthrough needs no Concurrence account, service, or key.

## Learn by Building

After access is in place, follow the ten-step [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path) path, from a test service to a governed deployment. Each guide ends with a footer that names the next step.

For the mental model behind the steps, read [How a Call Works](https://docs.concurrence.com/platform-overview/how-a-call-works). Classic API credentials are covered in [Classic Authentication](https://docs.concurrence.com/developer-guide/reference-guides/authentication) under **Reference Guides**.

## Prerequisites

| Confirm with your implementation team | Platform API                                                                 | Classic API                                                      |
| ------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| Tenant boundary                       | Workspace ID for workspace resources                                         | Organization ID and the user represented by the credential       |
| Endpoint                              | Assigned Platform regional hostname                                          | Assigned Classic regional hostname                               |
| Credential                            | Workspace key or the scoped token required by the chosen route               | API key, key ID, and user ID for the token exchange              |
| Workflow configuration                | Service, selected versions, eligible tools, and the required channel binding | Service, selected version set, and the relevant user permissions |

Keep long-lived credentials in your backend or secret manager. Browser and external-user workflows need their documented access boundary. Publishing a workspace key in a client bundle does not create one.

## Essential Reading

1. [Core Concepts](https://docs.concurrence.com/developer-guide/getting-started/core-concepts) maps the resource names and boundaries.
2. [Regions & Endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints) explains hostname selection.
3. [Choose Credentials](https://docs.concurrence.com/developer-guide/getting-started/credentials) identifies the caller, tenant, and accepted authentication flow.
4. [Govern a Deployment](https://docs.concurrence.com/developer-guide/guides/govern-a-deployment) records channel, feature, and regional prerequisites.

## Build Your First Application

For the Platform and Classic paths in [Build Your First Project](#build-your-first-project), complete the corresponding SDK steps below:

* **Platform:** [install the Platform SDK](https://docs.concurrence.com/developer-guide/platform-api/platform-sdk/installation), [configure the client](https://docs.concurrence.com/developer-guide/platform-api/platform-sdk/configuration) with the assigned workspace and regional hostname, and run the read-only [Quickstart](https://docs.concurrence.com/developer-guide/platform-api/platform-sdk/quickstart) before the guides. Then use [Conversations](https://docs.concurrence.com/developer-guide/platform-api/conversations) to choose the channel and lifecycle your application needs.
* **Classic:** [install a Classic SDK](https://docs.concurrence.com/developer-guide/classic-api/sdks/sdk-installation), [configure the client](https://docs.concurrence.com/developer-guide/classic-api/sdks/sdk-configuration) for the correct organization and user, and follow [Hello World](https://docs.concurrence.com/developer-guide/classic-api/sdks/sdk-hello-world). Handle stream errors and completion explicitly, then apply the [conversation lifecycle](https://docs.concurrence.com/developer-guide/classic-api/core-api/conversations/conversations-lifecycle) for your application.

## Key Resources

A successful authenticated read confirms access to that operation. It does not establish that a channel is provisioned, source data is ready, or a workflow can complete an external action.

Continue with [Guides](https://docs.concurrence.com/developer-guide/guides) for implementation paths. Use [Evaluating Concurrence](https://docs.concurrence.com/platform-overview/evaluating-amigo) to define the evidence for a broader technical evaluation, and the [API Reference](https://docs.concurrence.com/api-reference) to inspect operation schemas.


# Core Concepts

Map Concurrence's conceptual model to Platform and Classic resources, keeping authentication, version selection, conversations, and evidence distinct.

The two APIs use some of the same product names, but each has its own identifiers, credentials, payloads, and lifecycle rules. Use this map to find the correct implementation contract. For the relationships between data, configuration, execution, and evidence, read the conceptual [Core Concepts](https://docs.concurrence.com/platform-overview/core-concepts).

## Platform API

### Setup

| Concept                      | Implementation role                                                                                                    | Continue here                                                                                               |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Workspace                    | Boundary for workspace resources, data, and access. Account and identity routes have their own scope                   | [Workspaces](https://docs.concurrence.com/developer-guide/platform-api/workspaces)                          |
| Agent                        | Versioned identity, general guidance, and communication style                                                          | [Agents](https://docs.concurrence.com/developer-guide/platform-api/workspaces/agents)                       |
| Context Graph                | Authored states, transitions, objectives, and state tool bindings. The service selects the graph used at runtime       | [Context Graphs](https://docs.concurrence.com/agent/context-graphs)                                         |
| Skill                        | A companion definition with its own prompt and declared tools. The state binding governs execution and result handling | [Skills](https://docs.concurrence.com/developer-guide/platform-api/workspaces/skills)                       |
| Service and version set      | Deployment configuration and the selected component versions and supported preferences                                 | [Services](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services)                   |
| Dynamic behavior             | A library set with immutable versions. A version set pins the version a service runs                                   | [Dynamic Behaviors](https://docs.concurrence.com/developer-guide/platform-api/workspaces/dynamic-behaviors) |
| Channel use case and binding | Provisioned channel route connected to the service that handles it                                                     | [Use Cases & Bindings](https://docs.concurrence.com/developer-guide/platform-api/workspaces/use-cases)      |

A version selection is not a separate tenant or a snapshot of all source data. Agent and Context Graph instructions guide model behavior. Authorization and tool validation enforce operation boundaries.

### Voice and Operations

| Concept      | Implementation role                                                                                                 | Continue here                                                                                  |
| ------------ | ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Conversation | Interaction history and lifecycle on a supported channel                                                            | [Conversations](https://docs.concurrence.com/developer-guide/platform-api/conversations)       |
| Session      | Runtime context and protocol for processing an interaction. Resumption and configuration loading depend on the path | [Sessions](https://docs.concurrence.com/developer-guide/platform-api/platform-api/sessions)    |
| Run          | Channel-neutral inventory and detail for supported execution records                                                | [Runs](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs)           |
| Operator     | An authorized person using the controls supported by the channel                                                    | [Operators](https://docs.concurrence.com/developer-guide/platform-api/conversations/operators) |

Platform supports text and messaging as well as phone calls. Operators join voice calls by phone, not through a browser microphone. Listen, takeover, handback, external transfer, and integration-write approval are distinct operations.

### Data

| Concept          | Implementation role                                                           | Continue here                                                                                                           |
| ---------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| World model      | Source-attributed observations, entities, and derived read views              | [Data & World Model](https://docs.concurrence.com/developer-guide/platform-api/data-world-model)                        |
| Data source      | Stored source record; the platform does not poll it                           | [Data Pipeline Monitoring](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/connector-runner) |
| Intake           | Authenticated submission to supported dataset sources                         | [Customer Data Intake](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/intake)               |
| Generated memory | Bounded observations and narrative context derived from previous interactions | [Memory](https://docs.concurrence.com/agent/memory)                                                                     |

Event acceptance, projection freshness, generated memory, and external delivery have different lifecycles. A recognized caller binding can locate an entity; it does not replace the verification required by the workflow.

## Classic API

### Setup

The Classic API scopes resources to an organization and acts through an authenticated user. A service and its selected version set determine the configured agent experience. Classic Tools, also called Actions, are versioned code packages. Classic Dynamic Behaviors are trigger-based rules. They are not Platform Skills or Platform triggers, and the Platform API has its own [dynamic behavior sets](https://docs.concurrence.com/developer-guide/platform-api/workspaces/dynamic-behaviors).

Continue with [Services](https://docs.concurrence.com/developer-guide/classic-api/core-api/services), [Agents & Context Graphs](https://docs.concurrence.com/developer-guide/classic-api/core-api/agents-and-context-graphs), [Tools](https://docs.concurrence.com/developer-guide/classic-api/core-api/tools), and [Dynamic Behaviors](https://docs.concurrence.com/developer-guide/classic-api/core-api/dynamic-behaviors).

### Users

A Classic user has an identifier, role-based permissions, and associated context. A user model is generated or maintained context used for personalization. It is not an authoritative copy of every clinical or scheduling fact.

See [Users](https://docs.concurrence.com/developer-guide/classic-api/core-api/users), [User Models](https://docs.concurrence.com/developer-guide/classic-api/core-api/users/user-models), and [Permissions](https://docs.concurrence.com/developer-guide/classic-api/permissions).

### Conversations

Classic conversation creation and interaction use incremental NDJSON event streams on their streaming paths. A conversation contains interactions and retained messages. Consumers must process the documented event variants, distinguish errors from completion, and finish or resume the conversation under the relevant lifecycle contract.

Voice-note and realtime paths have their own media and protocol rules. See [Conversations](https://docs.concurrence.com/developer-guide/classic-api/core-api/conversations), [Events](https://docs.concurrence.com/developer-guide/classic-api/core-api/conversations/conversations-events), and [Lifecycle & Finish](https://docs.concurrence.com/developer-guide/classic-api/core-api/conversations/conversations-lifecycle).

## Choosing the Right Contract

Use the API named in your service configuration and integration agreement. Do not assume a shared concept name implies shared storage, automatic migration, credential compatibility, or the same event format. [Terminology Mapping](https://docs.concurrence.com/developer-guide/operations/reference/terminology-mapping) records the product-to-schema names, and [Choose Credentials](https://docs.concurrence.com/developer-guide/getting-started/credentials) explains the separate credential flows.


# Regions & Endpoints

Configure regional Platform, identity, service, and Console hosts, distinguish Classic endpoints, and migrate clients without relying on legacy redirects.

Configure the regional hosts assigned to your deployment before authenticating. Platform resources and identity use separate hosts in the same region. Classic integrations use their own regional endpoints and credentials.

For the deployment decision, start with [Regional Coverage and Data Residency](https://docs.concurrence.com/platform-overview/data-residency). For implementation, select the Platform region below, configure the client, then confirm each required service.

## Regional Base URLs

Use the assigned region consistently across Platform, identity, and Console. Existing Classic integrations can go directly to [Classic Regional Configuration](#classic-regional-configuration).

### Regional Deployment Map <a href="#global-deployment-map" id="global-deployment-map"></a>

<figure><img src="https://1651797362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2YwM0LHtEGLt9S21OyC3%2Fuploads%2Fgit-blob-1c03b1386fc8ce1d38b76fdd741d33829e1f5ea2%2Fregional-coverage.svg?alt=media" alt="Four independent deployment regions: US East in Northern Virginia, Canada Central in Montreal, EU Central in Frankfurt, and Australia Southeast in Sydney. Select the assigned region and confirm each required service separately."><figcaption><p>Independent regional deployments. Use the assigned host. The US endpoint is not a global router.</p></figcaption></figure>

### Platform API

| Slot | Location                               | Base URL                                  |
| ---- | -------------------------------------- | ----------------------------------------- |
| `us` | N. Virginia (`us-east-1`), production  | `https://platform.api-us.concurrence.com` |
| `ca` | Montreal (`ca-central-1`), production  | `https://platform.api-ca.concurrence.com` |
| `eu` | Frankfurt (`eu-central-1`), production | `https://platform.api-eu.concurrence.com` |
| `au` | Sydney (`ap-southeast-2`), production  | `https://platform.api-au.concurrence.com` |

### Identity and Developer Console

Use the same assigned slot for Platform resources, identity, and Console. The identity base is separate from the Platform API base.

| Slot | Identity base URL                         | Developer Console                    |
| ---- | ----------------------------------------- | ------------------------------------ |
| `us` | `https://identity.api-us.concurrence.com` | `https://console-us.concurrence.com` |
| `ca` | `https://identity.api-ca.concurrence.com` | `https://console-ca.concurrence.com` |
| `eu` | `https://identity.api-eu.concurrence.com` | `https://console-eu.concurrence.com` |
| `au` | `https://identity.api-au.concurrence.com` | `https://console-au.concurrence.com` |

### Service-Specific Hosts

Replace `<slot>` with the assigned `us`, `au`, `eu`, or `ca` slot. These are hostname patterns, not a promise that every service is provisioned in every slot. Keep the documented route path and select its owning service rather than sending every request to the Platform API host.

| Service           | Canonical HTTPS host                          | Routing boundary                                                                                                                                                                                                                                                                                                                                                                         |
| ----------------- | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Platform API      | `platform.api-<slot>.concurrence.com`         | `/v1/*`, `/s/*`, and Platform MCP protected-resource metadata                                                                                                                                                                                                                                                                                                                            |
| Agent engine      | `agent-engine.api-<slot>.concurrence.com`     | Returned call/observer connection URLs under `/voice-agent/` or `/agent/`. Use `wss://` for WebSockets. Also serves [live call context](https://docs.concurrence.com/developer-guide/guides/live-call-context) at `/agent/calls/{call_sid}/context` and [app voice session](https://docs.concurrence.com/developer-guide/guides/app-voice-session) start at `/agent/voice-session/start` |
| Identity          | `identity.api-<slot>.concurrence.com`         | `/token`, `/device/*`, identity `/.well-known/*`, and login `/sessions` routes                                                                                                                                                                                                                                                                                                           |
| Data-MCP          | `data-mcp.api-<slot>.concurrence.com`         | `/data-mcp/*`, not the Platform `/v1/mcp` endpoint                                                                                                                                                                                                                                                                                                                                       |
| SMS               | `sms.api-<slot>.concurrence.com`              | `/outbound-sms`. Workspace SMS operations remain on Platform                                                                                                                                                                                                                                                                                                                             |
| Developer Console | `console-<slot>.concurrence.com`              | Console pages and Console-owned API routes                                                                                                                                                                                                                                                                                                                                               |
| Forms             | `forms.api-<slot>.concurrence.com`            | Provisioned form URLs                                                                                                                                                                                                                                                                                                                                                                    |
| Tool manager      | `tool-manager.api-<slot>.concurrence.com`     | Provisioned tool-management endpoints                                                                                                                                                                                                                                                                                                                                                    |
| Zoom meeting bot  | `zoom-meeting-bot.api-<slot>.concurrence.com` | Provisioned meeting-bot endpoints                                                                                                                                                                                                                                                                                                                                                        |
| Channel Manager   | `channels.api-us.concurrence.com`             | Documented US production channel API and `/openapi.json`                                                                                                                                                                                                                                                                                                                                 |

### SDK configuration

Specify the regional base URL via the SDK `base_url` or `baseUrl` setting.

{% tabs %}
{% tab title="Platform TypeScript" %}

```typescript
import { AmigoClient } from '@amigo-ai/platform-sdk'

const client = new AmigoClient({
  apiKey: process.env.AMIGO_PLATFORM_API_KEY!,
  workspaceId: process.env.AMIGO_WORKSPACE_ID!,
  baseUrl: 'https://platform.api-ca.concurrence.com',
  identityBaseUrl: 'https://identity.api-ca.concurrence.com',
})

const workspace = await client.workspaces.get()
```

{% endtab %}

{% tab title="Classic Python" %}

```python
from amigo_sdk import AmigoClient

with AmigoClient(
    api_key="<key>",
    api_key_id="<key-id>",
    user_id="<user>",
    organization_id="<org>",
    base_url="https://api-ca-central-1.amigo.ai",
) as client:
    org = client.organization.get()
```

{% endtab %}

{% tab title="Classic TypeScript" %}

```typescript
import { AmigoClient } from "@amigo-ai/sdk";

const client = new AmigoClient({
  apiKey: process.env.AMIGO_API_KEY!,
  apiKeyId: process.env.AMIGO_API_KEY_ID!,
  userId: process.env.AMIGO_USER_ID!,
  orgId: process.env.AMIGO_ORGANIZATION_ID!,
  baseUrl: "https://api-ca-central-1.amigo.ai",
});

const org = await client.organizations.getOrganization();
```

{% endtab %}
{% endtabs %}

### Migrating Existing Clients

1. Set Platform and identity base URLs separately. The Platform SDK's `baseUrl` takes an origin without `/v1`. Device-code helpers take `identityBaseUrl`. Forge profiles have separate `--api-url` and `--identity-url` options.
2. Configure token helpers against the identity host. From Platform SDK 0.113.1, `client.tokens.*` uses `identityBaseUrl`, then `baseUrl`. Set `identityBaseUrl` whenever you set `baseUrl`, as shown in [SDK Configuration](https://docs.concurrence.com/developer-guide/platform-api/platform-sdk/configuration#identity-and-agent-connections).
3. Use returned connection URLs for calls and observers. The workspace text socket `/v1/{workspace_id}/sessions/connect` stays on the Platform host. Login `/sessions` routes belong to identity. Check [Text Sessions](https://docs.concurrence.com/developer-guide/platform-api/platform-api/sessions) before changing WebSocket configuration.
4. Update relevant allowlists, provider callback URLs, and saved Console bookmarks. Preserve credentials, scopes, workspace IDs, package names, and imports.

{% hint style="warning" %}
**The `*.platform.amigo.ai` hosts do not resolve.** A client, allowlist, or bookmark that names one fails before reaching the platform, and nothing redirects it. Configure the canonical hosts above directly and test your client's authentication and connection behavior.
{% endhint %}

### How routing differs between the APIs

* **Classic API: region matching is required.** Use the base URL that matches your organization's data residency. Requests to a mismatched region return "Organization not found" errors.
* **Platform API: region matching is required.** `https://platform.api-us.concurrence.com` is the US endpoint, not a global router. Use the deployment hostname agreed during provisioning and store it with the integration configuration. A workspace response reports the serving deployment's region. It is not a mutable placement policy. The region-update field is accepted but ignored, and it does not move data.

AI-backed service and model availability can differ by deployment. Do not infer that every external model or processor runs in the workspace region. Confirm the data path and regional availability for the features you enable.

{% hint style="info" %}
Contact your Concurrence representative for regional availability.
{% endhint %}

For organizations on dedicated clusters, you can also target your cluster explicitly via the `x-mongo-cluster-name` header - see [Dedicated Clusters](#dedicated-clusters) below.

## Confirm Each Service

Regional Platform and Classic API hosts identify those API deployments. Confirm managed channels, provider integrations, and any external processors separately before adding them to a workflow. Use the service-specific mapping only for a confirmed deployment. Substituting a slot into a hostname does not establish service availability.

| Capability                         | Regional readiness to verify                                                                |
| ---------------------------------- | ------------------------------------------------------------------------------------------- |
| Platform workspace resources       | Assigned Platform host, workspace access, and required features enabled in that deployment  |
| Classic integration                | Assigned Classic host and organization. Use the Classic credential flow                     |
| Managed phone and messaging        | Provisioned line/account and binding, regional support, and delivery/processing constraints |
| External data and model processing | Approved source/destination and the applicable data-processing boundary                     |

Record the confirmation owner, test evidence, limitations, and date using [Govern a Deployment](https://docs.concurrence.com/developer-guide/guides/govern-a-deployment). [Data Residency](https://docs.concurrence.com/platform-overview/data-residency) explains the broader deployment review.

## Classic Regional Configuration

### Classic API

| Region | Location                   | Base URL                              |
| ------ | -------------------------- | ------------------------------------- |
| **US** | N. Virginia (`us-east-1`)  | `https://api.amigo.ai`                |
| **CA** | Montreal (`ca-central-1`)  | `https://api-ca-central-1.amigo.ai`   |
| **EU** | Frankfurt (`eu-central-1`) | `https://api-eu-central-1.amigo.ai`   |
| **AU** | Sydney (`ap-southeast-2`)  | `https://api-ap-southeast-2.amigo.ai` |

### cURL example

```bash
curl -X GET \
  -H "Authorization: Bearer <YOUR_JWT_TOKEN>" \
  "https://api-ca-central-1.amigo.ai/v1/<your-org-id>/organization/"
```

### Environment variables

You can also set the regional endpoint via environment variables.

```env
# US
AMIGO_BASE_URL=https://api.amigo.ai

# CA
# AMIGO_BASE_URL=https://api-ca-central-1.amigo.ai

# EU
# AMIGO_BASE_URL=https://api-eu-central-1.amigo.ai

# AU
# AMIGO_BASE_URL=https://api-ap-southeast-2.amigo.ai
```

## LLM Regional Availability

Not all LLMs are deployed in every region. When selecting [version set presets](https://docs.concurrence.com/developer-guide/operations/devops/channel-tagging), make sure the preset's LLMs are available in your target region.

Confirm model and feature availability for the intended deployment. A preset name does not guarantee that every model or external processor is available in every region.

The legacy Python Agent Forge build provides `forge channel llm-info` and `forge channel validate-preset <preset> <channel>` for Classic channel presets. Preset validation checks channel compatibility. It does not query regional model availability. These commands are not part of the current Go CLI's Platform-only command surface.

{% hint style="info" %}
**Classic preset compatibility.** Legacy preset and Python Forge instructions belong to [Classic channel tagging](https://docs.concurrence.com/developer-guide/operations/devops/channel-tagging). Confirm the current model and processor availability for the actual deployment before reusing a historical preset. These presets do not establish Platform regional support.
{% endhint %}

## Dedicated Clusters

This section covers Classic organization provisioning. It does not configure Platform workspace placement.

Some enterprises run on dedicated, isolated clusters. In these cases, include `x-mongo-cluster-name` to direct requests to your assigned cluster.

{% hint style="info" %}
**Cluster name.** Your Concurrence team provides the exact cluster name if your tenant uses a dedicated cluster. Do not guess this value.
{% endhint %}

**Header**: `x-mongo-cluster-name: <cluster-name>`

**When to use**:

* **Required**: organization provisioning (Create Organization)
* **Recommended**: early provisioning flows when the organization may not yet be discoverable via the global config
* **Optional**: normal operations for established organizations. Most endpoints do not require it once your org is fully set up.

### cURL example (dedicated cluster)

```bash
curl -X PUT \
  -H "Authorization: Bearer <YOUR_JWT_TOKEN>" \
  -H "x-mongo-cluster-name: <your-dedicated-cluster-name>" \
  -H "Content-Type: application/json" \
  "https://api-eu-central-1.amigo.ai/v1/<your-org-id>/organization/" \
  -d '{
    "org_name": "Example Corp",
    "user_dimensions": [],
    "logo": "<base64>",
    "square_logo": "<base64>",
    "favicon": "<base64>",
    "default_user_preferences": {},
    "azure_devops_team_name": "example-team"
  }'
```

The SDKs do not expose a raw-header helper. Use cURL for dedicated-cluster provisioning requests.

## Recommendations

{% hint style="success" %}
**Best practices**

1. Confirm your organization or workspace region with your Concurrence representative and set the matching base URL.
2. For dedicated cluster tenants, store your cluster name in a secure configuration store.
3. Include the `x-mongo-cluster-name` header where instructed for dedicated clusters.
   {% endhint %}

{% hint style="warning" %}
**Troubleshooting "Organization not found"**

If you see this error:

* Verify you are calling the correct regional base URL.
* For provisioning flows, make sure the `x-mongo-cluster-name` header is set (if you are on a dedicated cluster).
  {% endhint %}

## Next Step

Choose the matching [credential flow](https://docs.concurrence.com/developer-guide/getting-started/credentials), then follow [Getting Started](https://docs.concurrence.com/developer-guide/getting-started) to verify access and a first result. Keep regional and service confirmation in your [deployment record](https://docs.concurrence.com/developer-guide/guides/govern-a-deployment).

## Egress IP Addresses

### Get Egress IP Addresses

Returns the static IP addresses used by outbound platform traffic. Add them to firewall allowlists so data source connectivity such as EHR and FHIR stores can reach your systems. Any authenticated role can read it.

{% openapi src="<https://platform.api-us.concurrence.com/v1/openapi.json>" path="/v1/{workspace\_id}/network/egress-ips" method="get" %}
<https://platform.api-us.concurrence.com/v1/openapi.json>
{% endopenapi %}


# Choose Credentials

Choose Platform or Classic credentials, confirm the tenant and host, and verify access before starting a workflow or installing a client.

For a new Platform integration, start with your assigned workspace, regional API base, and a credential accepted by the operation you need. Keep the API family and base URL alongside the tenant identifier in your integration configuration.

## Choose the Access Boundary

| Your task                                                            | Tenant and caller                                       | Credential and owning guide                                                                                                                                              |
| -------------------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Read or configure Platform workspace resources from a trusted server | One workspace, with the permissions of the key or token | [Platform workspace keys](https://docs.concurrence.com/developer-guide/platform-api/platform-api/authentication) on routes that accept them                              |
| Run a scoped backend integration                                     | Workspace and scopes granted to the client              | [OAuth2 machine-to-machine](https://docs.concurrence.com/developer-guide/platform-api/platform-api/oauth2)                                                               |
| Use managed channels with your own agent or backend                  | Provisioned setups and granted channel operations       | [Standalone Channel Manager OAuth](https://docs.concurrence.com/developer-guide/platform-api/conversations/channel-manager#authenticate) on its separately assigned host |
| Sign in to the Console with your organization's Okta app             | Approved account and active membership in one workspace | [Organization SSO](https://docs.concurrence.com/developer-guide/guides/organization-sso)                                                                                 |
| Sign in interactively to a CLI or desktop application                | Signed-in identity and selected workspace               | [Device authorization](https://docs.concurrence.com/developer-guide/platform-api/platform-api/authentication#device-code-flow-cli-and-desktop-apps)                      |
| Maintain a Classic integration                                       | Organization and authenticated user                     | [Classic key-to-token exchange](https://docs.concurrence.com/developer-guide/reference-guides/authentication), then a Classic SDK or HTTP client                         |
| Query Classic data through the standalone Data-MCP service           | Classic organization and user                           | [Data-MCP](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/data-mcp)                                                                          |

API keys, identity tokens, provider tokens, and channel-management credentials have different access boundaries. Organization SSO authenticates approved human members. Machine credentials have separate authorization rules. Similar route names do not make their hosts or authorization rules interchangeable. For browser applications, follow [Serve an Agent From a Web App](https://docs.concurrence.com/developer-guide/platform-api/conversations/serve-agent-from-web-app). Keep long-lived workspace credentials on the trusted server.

## Verify Platform Access

1. Obtain your workspace ID, assigned [regional endpoint](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints), and the required read permission from the implementation owner.
2. Configure the [Platform SDK](https://docs.concurrence.com/developer-guide/platform-api/platform-sdk/configuration), or use the workspace-key HTTP example in [Authentication & API Keys](https://docs.concurrence.com/developer-guide/platform-api/platform-api/authentication#api-key-usage).
3. Run the read-only [SDK quickstart](https://docs.concurrence.com/developer-guide/platform-api/platform-sdk/quickstart). Confirm the returned workspace matches the intended test deployment.
4. Select an explicitly configured test service before running [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation).

A successful read verifies access to that resource. It does not verify channel provisioning, tool permissions, provider enrollment, or external delivery.

For a machine integration, set an appropriate [credential expiry](https://docs.concurrence.com/developer-guide/platform-api/platform-api/oauth2#set-a-machine-credentials-expiry), monitor the returned deadline, and verify replacement access before deactivating the old credential. Credential expiry, access-token expiry, and connection lifetime are separate boundaries.

## Diagnose Access Failures

Check the API family, host, tenant identifier, credential expiry, and required scope or permission before repeating a request. Use the route's documented error response to distinguish authentication failure from insufficient access or an unavailable resource. Preserve the correlation identifier when one is supplied, and use [Troubleshooting](https://docs.concurrence.com/developer-guide/guides/troubleshooting) to identify the next diagnostic.

## Sessions Mean Different Things

| Session                 | Purpose                                   | Continue here                                                                                                    |
| ----------------------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Identity session        | Login, token validity, and account access | [Platform authentication](https://docs.concurrence.com/developer-guide/platform-api/platform-api/authentication) |
| Persistent text session | Connection and interaction protocol       | [Platform Sessions](https://docs.concurrence.com/developer-guide/platform-api/platform-api/sessions)             |

Ending a conversation, disconnecting a socket, and revoking a login are different operations.


# Guides

Task guides for configuring, testing, operating, and governing Concurrence workflows, with prerequisites and evidence of completion.

Use these guides to complete an implementation or operating task. Each identifies the required access and configuration, the steps to follow, and the evidence to inspect. Endpoint pages supply the underlying request and response contracts.

## Learn by Building <a href="#implementation-path" id="implementation-path"></a>

Follow these ten guides in order to build one Platform workflow end to end, from a test service to a governed deployment. Each step ends with a result you carry into the next one, and each guide closes with a **You are here** footer that points to the next step. You can also enter at any step. The tables below match guides to your starting point.

Before step 1, confirm the assigned [region and service hosts](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints) and choose [credentials](https://docs.concurrence.com/developer-guide/getting-started/credentials). For the mental model behind the steps, read [How a Call Works](https://docs.concurrence.com/platform-overview/how-a-call-works).

{% stepper %}
{% step %}

### 1. Create a test service

[Create a Test Service](https://docs.concurrence.com/developer-guide/guides/create-a-test-service): author an agent and Context Graph, pin their versions on a service, and read the selection back.

**Result:** recorded component IDs, selected versions, a verified test service, and a cleanup owner.
{% endstep %}

{% step %}

### 2. Run your first verified conversation

[First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation): run the starter against fixtures or your test service, read the answer back from history, and close the conversation.

**Result:** an evidence file with an inspected answer and verified closure.
{% endstep %}

{% step %}

### 3. Run your first Console conversation

[First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation): start a text conversation on the same service in the Console and inspect its execution details.

**Result:** a text answer, inspected tool evidence, and an ended session.
{% endstep %}

{% step %}

### 4. Add a tool

[Pass Context to Tool Parameters](https://docs.concurrence.com/developer-guide/guides/conversation-context): declare accepted context on the service and bind it to a tool parameter in the active Context Graph state.

**Result:** a tool that receives a verified value from your application.
{% endstep %}

{% step %}

### 5. Verify an integration action

[Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action): exercise an external write through its test operation and a conversation, then confirm the outcome at the target.

**Result:** independent evidence of the intended change, or an explicit unresolved outcome with a reconciliation owner.
{% endstep %}

{% step %}

### 6. Add escalation and safety

[Add Escalation and Safety](https://docs.concurrence.com/developer-guide/guides/escalation-and-safety): configure caller verification, forwarding, and an escalation path, and test the safety behavior on your runtime.

**Result:** tested verification, transfer, and emergency cases on the test service.
{% endstep %}

{% step %}

### 7. Build and prove with simulations

[Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove): test representative cases with simulations, review the evidence, and promote selected versions with a recovery plan.

**Result:** acceptance evidence, a selected configuration, and an agreed release decision.
{% endstep %}

{% step %}

### 8. Run a voice session in your app

[Run a Voice Session in Your App](https://docs.concurrence.com/developer-guide/guides/app-voice-session) (beta): get a one-use ticket from your backend and stream audio between your app and a realtime voice service.

**Result:** a voice session from your own app, recorded like a call.
{% endstep %}

{% step %}

### 9. Operate and improve

[Operate and Improve](https://docs.concurrence.com/developer-guide/guides/operate-and-improve): find a run, intervene where supported, reconcile incomplete effects, and turn a failure into a test case. Use [Troubleshoot an Integration](https://docs.concurrence.com/developer-guide/guides/troubleshooting) when a request or outcome needs investigation.

**Result:** a traceable run, an appropriate intervention, and a repeatable evaluation case for the next change.
{% endstep %}

{% step %}

### 10. Govern a deployment

[Govern a Deployment](https://docs.concurrence.com/developer-guide/guides/govern-a-deployment): record access, provisioning, regional boundaries, and operating responsibilities before a customer workflow goes live.

**Result:** a deployment record your team reviews before each material change.
{% endstep %}
{% endstepper %}

## Start Your First Conversation

| Your starting point                                                 | Follow this guide                                                                                                                            | Finish with                                                                              |
| ------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| You want to try the SDK without workspace access                    | [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation), **Local walkthrough**        | An evidence file from a credential-free fixture run, an expected rejection, and cleanup. |
| You have an authoring credential and test workspace, but no service | [Create a Test Service](https://docs.concurrence.com/developer-guide/guides/create-a-test-service)                                           | Agent, graph, version pins, and service readback evidence.                               |
| You have Console access and a configured test service               | [First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation)                                 | A text answer, inspected execution details, and an ended session.                        |
| You have a test service and Platform API credentials                | [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation), **Provisioned test service** | An answer read back from service history and verified closure.                           |

## More Guides

These guides sit beside the path. Use them when your workflow needs the capability.

### Context and Data

| Task                                                                                                             | Verified outcome                                                                                                             |
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [Set Context on a Live Voice Call](https://docs.concurrence.com/developer-guide/guides/live-call-context)        | A verified value set on a live call from your backend and received by a context-bound tool, never by the model               |
| [Connect Data to a Verified Action](https://docs.concurrence.com/developer-guide/guides/data-to-verified-action) | Tested data meaning, queryable record, verified agent access, and target outcome, including correction and concurrency cases |

### Deliver Through a Channel

| Task                                                                                                                          | Verified outcome                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| [Test a Managed SMS Workflow](https://docs.concurrence.com/developer-guide/guides/test-managed-sms)                           | For a Concurrence agent on a workspace service: provisioned routing, send/delivery evidence, and suppression behavior                 |
| [Launch an SMS Outreach Campaign](https://docs.concurrence.com/developer-guide/reference-guides/launch-sms-outreach-campaign) | For your own backend on the Channel Manager API: a controlled message, delivery read, signed reply, opt-out check, and go-live record |

### Test Voice Agents

| Task                                                                                               | Verified outcome                                                                                                                              |
| -------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| [Run Arbiter Voice Tests](https://docs.concurrence.com/developer-guide/guides/arbiter-voice-tests) | With provisioned Arbiter access: an applied suite, black-box calls to an approved phone target, an exit-code gate, and JSON and JUnit reports |

### Govern and Operate

| Task                                                                                                             | Verified outcome                                                                                                   |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [Set Up Organization SSO](https://docs.concurrence.com/developer-guide/guides/organization-sso)                  | An approved user signs in to the intended workspace and an unauthorized user is refused                            |
| [Build Your Own Operator Console](https://docs.concurrence.com/developer-guide/guides/build-an-operator-console) | Beta: a signed-in operator who takes over a text conversation or phone call from your own screen and hands it back |
| [Troubleshoot an Integration](https://docs.concurrence.com/developer-guide/guides/troubleshooting)               | Failing boundary, reconciliation action, and escalation evidence                                                   |

The guides cover Build, Evaluate, Operate, Improve, Data, and Govern tasks. The standard Console sidebar emphasizes Home, Build, Evaluate, Data, and Govern. Additional permitted pages remain reachable through Console search. Each guide connects those entry points to the owning API and supported client instructions. Confirm [capability availability](https://docs.concurrence.com/platform-overview/capability-availability) before relying on a preview or managed channel.

## Build a Knowledge-Base Agent

The knowledge-base playbooks below describe a particular build workflow. Confirm their API, data-access, and tooling prerequisites before applying them to your deployment. Start with [Getting Started](https://docs.concurrence.com/developer-guide/getting-started) for the general Platform and Classic integration paths, then read the end-to-end playbook before its methodology deep dive.

1. [Build a Knowledge-Base Agent End to End](https://docs.concurrence.com/developer-guide/guides/build-a-kb-agent-end-to-end) - the full path: load your data, assign roles, build the agent, and test it.
2. [Knowledge-Base Agent: Retrieval and Build Methodology](https://docs.concurrence.com/developer-guide/guides/building-a-knowledge-base-agent) - the deep-dive behind the build step: the retrieval-architecture decision and the measurement-driven build loop, grounded in a controlled bake-off.

## Reference Guides

The **Reference Guides** group holds guides for specific integrations and compatibility questions outside the main path:

* [Classic Authentication](https://docs.concurrence.com/developer-guide/reference-guides/authentication) - the Classic API key exchange.
* [Integrate Channel Manager Through the API](https://docs.concurrence.com/developer-guide/reference-guides/integrate-channel-manager), [Launch an SMS Outreach Campaign](https://docs.concurrence.com/developer-guide/reference-guides/launch-sms-outreach-campaign), [Reconcile a Channel Manager Attempt](https://docs.concurrence.com/developer-guide/reference-guides/reconcile-channel-manager), [Send Email With a Channel Manager Template](https://docs.concurrence.com/developer-guide/reference-guides/channel-manager-email-templates), and [Connect a Channel Manager Voice Receiver](https://docs.concurrence.com/developer-guide/reference-guides/channel-manager-voice-receiver) - run your own runtime on Concurrence channels.
* [Compatibility and Retirements](https://docs.concurrence.com/developer-guide/reference-guides/compatibility-and-retirements) - the correct Classic path and release history.


# 1. Create a Test Service

Create a synthetic Platform text service with a versioned agent and Context Graph, verify its selected versions, and recover from an incomplete setup.

Create the service needed by [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation). The downloadable starter creates an agent, an agent version, a Context Graph, a graph version, and a text service that pins those versions. It reads the service back and records the IDs before you run a conversation.

This is a synthetic configuration exercise. The agent explains which information a scheduling team needs before considering an appointment change. It does not implement scheduling or a clinical guideline. The graph's instructions guide model behavior. Access controls and test-system isolation establish the permission boundary.

## Before You Start

You can rehearse setup locally with Node.js 22 and npm, without credentials. To create real resources, first arrange the following:

| Prerequisite              | Ready when                                                                                                                                                                                                                         |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Assigned test workspace   | Your administrator supplies its ID and [regional Platform base URL](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints). This guide starts with an existing workspace.                             |
| Authoring access          | Your [workspace credential](https://docs.concurrence.com/developer-guide/getting-started/credentials) can create and read agents, Context Graphs, versions, and services. Conversation access is also required for the next guide. |
| Isolated data and actions | The implementation owner confirms this workspace contains only permitted test data and has no production integration credentials, patient records, or outbound channel bindings available to this exercise.                        |
| Cleanup owner             | Someone with the required deletion permissions can remove these test resources after the conversation is closed.                                                                                                                   |

{% hint style="warning" %}
The sample has no graph tool bindings. Service and runtime configuration can expose additional tools, so an empty tool list or an instruction to avoid writes is not sufficient isolation. Review effective access before creating the service. The sample preserves the platform's caller-verification defaults.
{% endhint %}

## 1. Download and Rehearse

Download the same starter used for the conversation tutorial. It includes both setup and conversation commands, configuration, fixtures, and tests.

{% file src="/files/cgkESp5ztA2rhX4SRogb" %}
Download the runnable Platform setup and conversation starter.
{% endfile %}

After extracting it:

```bash
cd amigo-first-conversation
npm ci
npm test
npm run setup:demo
```

Read `artifacts/setup-local.json`. It should contain `mode: "local-fixture"` and `stage: "verified"`, along with synthetic resource IDs and selected version numbers. The SDK uses an injected fixture transport and does not contact Concurrence or run a model. The fixture's version numbers deliberately differ from one to check that the sample uses returned values.

The setup command refuses to overwrite an existing setup record. Keep the record until you have inspected the outcome. To repeat a local rehearsal, archive or remove only `artifacts/setup-local.json`.

## 2. Understand the Configuration

Review `setup-config.json` before using a deployment. It contains the complete agent and graph requests, including two graph states: `answer_question` and `finish`. The authored exit condition asks the graph to move to `finish` when the user explicitly says they are finished. The conversation tutorial separately closes the conversation through its lifecycle API.

| Order | Resource                                                                                             | What the starter records or verifies                                                                                            |
| ----- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| 1     | [Agent](https://docs.concurrence.com/developer-guide/platform-api/workspaces/agents)                 | The new agent ID. In Console terminology, this is a Persona.                                                                    |
| 2     | Agent version                                                                                        | The returned version number and the synthetic assistant instructions.                                                           |
| 3     | [Context Graph](https://docs.concurrence.com/developer-guide/platform-api/workspaces/context-graphs) | The new graph ID.                                                                                                               |
| 4     | Graph version                                                                                        | The returned version number and the initial/terminal states.                                                                    |
| 5     | [Service](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services)             | The agent and graph IDs, explicit `release` version pins, and `channel_type: "text"`. In Console terminology, this is an Agent. |

`src/setup.ts` executes this sequence. `src/setup-cli.ts` records the regional base, workspace, unique resource name, current step, acknowledged IDs, and version numbers. It writes a checkpoint before each mutation and reads back the service's active state, channel type, component IDs, and release pins before reporting success.

Configuration verification does not prove that a model can answer, a tool is authorized, or an external action succeeds. Those require the next workflow checks.

## 3. Create the Test Service

Complete the prerequisites, then supply the API key through your normal secret-injection mechanism in a trusted terminal or server process. Set the non-secret values:

```bash
export AMIGO_BASE_URL='https://platform.api-us.concurrence.com'
export AMIGO_WORKSPACE_ID='your-test-workspace-id'
export AMIGO_TEST_WORKSPACE_CONFIRMED='yes'
# AMIGO_API_KEY must already be supplied by your secret mechanism.
npm run setup
```

Use your assigned regional base. The US base is an example. This command makes five create requests and one read. It creates real configuration resources and does not start a conversation. The test-workspace flag records your prerequisite check. It does not configure a sandbox or change permissions.

Inspect `artifacts/setup-live.json` and the command's exit status. Continue only when:

* The command exits successfully and the record says `mode: "provisioned-platform"`, `stage: "verified"`.
* The saved regional base and workspace match your test deployment.
* `agent_id`, `context_graph_id`, and `service_id` are present, with numeric agent and graph versions.
* You retain this record as the configuration evidence for the conversation test.

## 4. Run and Verify a Conversation

Copy the `service_id` from the verified **live** record into the existing terminal environment:

```bash
export AMIGO_SERVICE_ID='service-id-from-setup-live-json'
export AMIGO_TEST_SERVICE_CONFIRMED='yes'
npm start
```

Follow [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation) to inspect the answer in durable history, verify closure, and exercise the rejected-request path. Keep the setup record beside the conversation result. A fixture service ID is not a usable deployment resource.

## Recover an Incomplete Setup

Setup is a sequence of independent writes, not one transaction. The starter disables automatic retries and does not automatically roll back after failure. A failed command can leave resources behind. Its last saved stage identifies the operation to inspect.

| Last recorded stage or symptom                                 | Next action                                                                                                                                                     |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `not_started`, authentication failure, or permission rejection | Check the API family, region, workspace, and credential permissions. Inspect any acknowledged IDs before starting another setup.                                |
| `creating_agent` or `creating_graph`                           | Search the corresponding resource list for the unique recorded `name`. A lost response can mean creation succeeded without a locally saved ID.                  |
| `creating_agent_version` or `creating_graph_version`           | Read the recorded parent and list its versions. Compare the intended configuration before creating another version.                                             |
| `creating_service`                                             | Search services for the recorded name and inspect its agent/graph IDs and release pins. Do not blindly repeat the create request.                               |
| `verifying_service`                                            | Read the saved service ID. Investigate a read failure or mismatched configuration. Do not treat the create response alone as verification.                      |
| Local file-write failure                                       | Stop. Inspect the operation named in the last checkpoint and recover acknowledged or potentially created resources through the API before continuing.           |
| Setup record already exists                                    | Inspect and reconcile that attempt. Archive it only after deciding whether to keep or remove its resources. Removing the file does not remove remote resources. |

Use the list, version, read, and deletion operations in [Agents](https://docs.concurrence.com/developer-guide/platform-api/workspaces/agents), [Context Graphs](https://docs.concurrence.com/developer-guide/platform-api/workspaces/context-graphs), and [Services](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services). If the outcome remains uncertain, keep the record and follow [Troubleshooting](https://docs.concurrence.com/developer-guide/guides/troubleshooting#prepare-an-escalation). Do not include keys or patient data in escalation material.

## Clean Up and Continue

After a successful exercise, close the conversation and confirm its lifecycle as described in the conversation guide. Then have the cleanup owner inspect the recorded resources and confirm they are not being reused:

1. Delete the test service by its recorded ID using `client.services.delete(serviceId)`.
2. Delete the test graph using `client.contextGraphs.delete(graphId)`.
3. Delete the test agent using `client.agents.delete(agentId)`.
4. Confirm each deleted resource returns a not-found response from its read operation. If a deletion response is lost, read the same ID before retrying. Resolve references or permission failures rather than deleting shared resources.
5. Apply your retention process to test evidence and retained records, then revoke a temporary credential if one was issued. Deleting configuration is not a promise to erase conversation history or all retained versions.

An incomplete attempt needs the reconciliation above before cleanup, including resources whose create response was lost. The setup command does not perform deletion.

For a real workflow, continue with [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove): review the patient arc, data contract, tool permissions, channel configuration, evaluations, and promotion/recovery plan. A pinned agent and graph do not freeze model output, workspace data, runtime defaults, or external-system behavior.

***

**You are here:** step 1 of 10 in [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path), Create a Test Service.

**Previous:** [Guides](https://docs.concurrence.com/developer-guide/guides#implementation-path). **Next:** [Step 2: First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation).


# 2. First Verified Conversation

Run a pinned TypeScript starter, verify a durable text response, exercise a failure, and close the conversation with explicit test-service prerequisites.

Build a trusted Node.js client that creates a web conversation, asks a synthetic scheduling question, reads the answer back from durable history, and closes the conversation. The result is an evidence file you can inspect. This first project does not book an appointment or contact a patient.

Choose how to run the same client:

| Start here                   | What you need                                               | What the result verifies                                                                                          |
| ---------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| **Local walkthrough**        | Node.js and npm, with no Concurrence account or credentials | The real Platform SDK works with the supplied synthetic HTTP fixtures. No model or Concurrence service is called. |
| **Provisioned test service** | A configured test workspace, service, and credential        | Your service returns an answer that the client can read back from history, and the conversation closes.           |

Both paths start with the download below. If you want to test a service in your browser, follow [First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation).

## Before You Start

You need Node.js 22 or later, npm, and a tool to extract ZIP files. The starter pins `@amigo-ai/platform-sdk` to `0.148.0` and commits its dependency lockfile. Use `npm ci` to reproduce the checked version.

You can run the **Local walkthrough** immediately. The **Provisioned test service** tab in step 2 lists the additional setup required before contacting Concurrence.

## 1. Get the Starter

Download and extract the starter ZIP. It contains only the example source, pinned dependencies, fixtures, tests, and the documentation snapshots used by its checks. No GitHub organization access is required.

{% file src="/files/cgkESp5ztA2rhX4SRogb" %}
Download the runnable Platform conversation starter.
{% endfile %}

In the extracted directory:

```bash
cd amigo-first-conversation
npm ci
npm test
```

Tests use fixture responses and do not contact Concurrence. `npm run check:docs` also compiles the included SDK quickstart snapshots and checks this tutorial's client block against its executable source.

## 2. Run a Conversation

{% tabs %}
{% tab title="Local walkthrough" %}

```bash
npm run demo
```

No credentials or provisioning are needed. The SDK's injected transport accepts only the example host and never sends a network request. The fixture asks which information a scheduling team needs before considering an appointment change. Its answer explains the prerequisites and says that no appointment changed.
{% endtab %}

{% tab title="Provisioned test service" %}
Before running this path, your workspace administrator or Concurrence implementation contact must supply:

| Prerequisite                                | Ready when                                                                                                                                                                                   |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Regional Platform API base and workspace ID | Both identify the same test deployment. See [Regions and Endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints)                                      |
| Workspace API key                           | It can create, read, submit turns to, and close conversations in that workspace. See [Authentication](https://docs.concurrence.com/developer-guide/platform-api/platform-api/authentication) |
| Configured test service ID                  | Its selected agent and Context Graph answer ordinary text questions without requiring a patient entity or production data                                                                    |
| Reviewed tool and data access               | The service has no production write tools, outbound channel actions, or private patient context. A prompt asking for a test is not an authorization boundary                                 |
| Configuration record                        | The implementation owner records the service and selected configuration used for the test                                                                                                    |

If your test workspace has no service, follow [Create a Test Service](https://docs.concurrence.com/developer-guide/guides/create-a-test-service) using the setup command in this same download. It creates the agent, graph, and pinned service and records their IDs. Workspace access and isolation remain prerequisites. Use the **Local walkthrough** while arranging them.

Keep credentials in a trusted terminal or server process. Supply the key through your normal secret-injection mechanism, then set the non-secret deployment values:

```bash
export AMIGO_BASE_URL='https://platform.api-us.concurrence.com'
export AMIGO_WORKSPACE_ID='your-test-workspace-id'
export AMIGO_SERVICE_ID='your-configured-test-service-id'
export AMIGO_TEST_SERVICE_CONFIRMED='yes'
# AMIGO_API_KEY must already be supplied by your secret mechanism.
npm start
```

Use the regional base supplied for your deployment. The US base above is an example. Confirm the prerequisites before setting the test-service flag. The program sends one synthetic user message. Agent wording varies with your configuration and runtime.
{% endtab %}
{% endtabs %}

## 3. Inspect the Evidence

Read `artifacts/result.json`. A successful local run includes:

```json
{
  "mode": "local-fixture",
  "conversation_id": "33333333-3333-4333-8333-333333333333",
  "answer": "Confirm the appointment, the requested change, available alternatives, and the authority to make the change. No appointment has been changed.",
  "durable_answer_verified": true,
  "closed": true,
  "external_action_verified": false
}
```

For a provisioned run, `mode` is `provisioned-platform`, and the ID and answer come from your service. The program verifies that every returned agent answer is present in conversation history and that closure is visible on a subsequent read. A completed text answer establishes neither booking success nor the quality of a clinical decision.

The program writes `artifacts/progress.json` as soon as creation succeeds, before submitting a turn. If a later request fails, keep that ID and inspect the conversation before retrying. Only a zero exit status and the result from **this run** establish success. An older result file is not new evidence.

**You have completed the conversation when:**

* The command exits successfully and writes a new `artifacts/result.json`.
* `mode` matches the path you chose.
* `answer` contains the response and `durable_answer_verified` is `true`.
* `closed` is `true`. `external_action_verified` remains `false` because this exercise does not verify an external action.

Keep this result if you want to compare it with the rejection exercise, which writes its own result to the same file.

## 4. Exercise a Rejection

```bash
npm run demo:failure
```

This sends an invalid web-create request with `force_new: true`. The fixture returns a validation rejection, and the program records `expected_rejection: 422`. The current web contract rejects this combination because every web create already starts a new conversation. To exercise the same rejection in your provisioned test environment, use `npm start -- --invalid` with the prerequisites above.

An authentication error or transport failure does not count as the expected rejection. See the canonical [Conversation operations](https://docs.concurrence.com/developer-guide/platform-api/conversations) for the request and response contracts.

## 5. Understand the Client

<figure><img src="https://1651797362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2YwM0LHtEGLt9S21OyC3%2Fuploads%2Fgit-blob-7d8e2d88777384836b5d8455f27f3b0422050009%2Ffirst-conversation-flow.svg?alt=media" alt="A first-conversation check creates a conversation, sends a synthetic turn, confirms the answer in durable history, and verifies closure. Pending or missing evidence needs investigation before continuing."><figcaption><p>If an answer is pending or absent, keep the ID and inspect state before proceeding.</p></figcaption></figure>

The following block is checked against the executable `src/starter.ts` on every PR. The CLI supplies either the fixture transport or your provisioned client.

```typescript
import { AmigoClient } from '@amigo-ai/platform-sdk'

export const message = 'This is a synthetic documentation exercise. What information would a scheduling team need before considering an appointment change? Do not book or change anything.'

export async function firstConversation(
  client: AmigoClient,
  serviceId: string,
  onCreated: (id: string) => Promise<void> = async () => {},
) {
  const conversation = await client.conversations.create({ service_id: serviceId, channel: 'web' })
  // Persist the ID before sending a turn, so an ambiguous failure can be investigated.
  await onCreated(conversation.id)
  const turn = await client.conversations.createTurn(conversation.id, { message })
  if (turn.background_pending) {
    throw new Error(`Background work remains for ${conversation.id}. Keep this conversation open and follow the web integration delivery guide.`)
  }
  const answers = turn.output.filter(item => item.role === 'agent' && item.text.trim())
  if (!answers.length) throw new Error(`No completed agent answer for ${conversation.id}`)
  const durable = await client.conversations.get(conversation.id)
  if (!answers.every(answer => durable.turns?.some(item => item.role === 'agent' && item.text === answer.text))) {
    throw new Error(`Answer not found in durable history for ${conversation.id}; investigate before retrying`)
  }
  await client.conversations.close(conversation.id)
  const closed = await client.conversations.get(conversation.id)
  if (closed.lifecycle !== 'closed') throw new Error(`Close was not confirmed for ${conversation.id}`)
  return {
    conversation_id: conversation.id,
    answer: answers.map(item => item.text).join('\n'),
    durable_answer_verified: true,
    closed: true,
    external_action_verified: false,
  }
}

export async function demonstrateRejection(client: AmigoClient, serviceId: string) {
  try {
    await client.conversations.create({ service_id: serviceId, channel: 'web', force_new: true })
  } catch (error) {
    if (error && typeof error === 'object' && 'statusCode' in error && error.statusCode === 422) {
      return { expected_rejection: 422, reason: 'force_new does not apply to web conversations' }
    }
    throw error
  }
  throw new Error('Expected a validation rejection but the request succeeded; stop and investigate the contract')
}
```

If `background_pending` is true, the starter stops without claiming a completed answer or automatically closing the conversation. Implement the receipt-based delivery flow in [Serve an Agent From a Web App](https://docs.concurrence.com/developer-guide/platform-api/conversations/serve-agent-from-web-app) before choosing a service with background tools.

## 6. Clean Up and Continue

A successful conversation run closes its created conversation and verifies closure. Closing ends the conversation lifecycle. It does not erase retained records. After an incomplete run, inspect the saved ID, reconcile pending work, and use the [close operation](https://docs.concurrence.com/developer-guide/platform-api/conversations) when appropriate. Follow your workspace's retention and deletion process for test records.

Local artifacts and fixture state are disposable. Remove `artifacts/` after retaining any required evidence, and revoke a temporary test key through your normal credential process. The conversation command does not create a service, entity, sender, or external appointment. If you used the separate setup command, follow [test-service cleanup](https://docs.concurrence.com/developer-guide/guides/create-a-test-service#clean-up-and-continue) for its configuration resources.

For production, add scoped browser access, request correlation, background delivery and acknowledgement, retry reconciliation, operational monitoring, and workflow-specific authorization. Continue with [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action), [Test a Managed SMS Workflow](https://docs.concurrence.com/developer-guide/guides/test-managed-sms), or [Troubleshoot an Integration](https://docs.concurrence.com/developer-guide/guides/troubleshooting). Use the [SDK Quickstart](https://docs.concurrence.com/developer-guide/platform-api/platform-sdk/quickstart) for additional operations.

## Troubleshooting

| What you see                                                                         | What to do next                                                                                                                                                                                                                                                     |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `npm ci` or compilation fails                                                        | Check `node --version` is 22 or later and that you are in the extracted starter directory. Keep the supplied lockfile and capture the first installation or compiler error.                                                                                         |
| A `Set AMIGO_...` message during a local attempt                                     | Run `npm run demo`. `npm start` selects the provisioned path and requires its environment variables.                                                                                                                                                                |
| Authentication or service lookup fails                                               | Check the API family, assigned regional base, workspace, key permissions, and configured service. Start with [Choose Credentials](https://docs.concurrence.com/developer-guide/getting-started/credentials).                                                        |
| Background work remains, the answer is missing from history, or the connection fails | Inspect the conversation identified by this attempt's `artifacts/progress.json` before resending. Follow [web delivery](https://docs.concurrence.com/developer-guide/platform-api/conversations/serve-agent-from-web-app) for a service that uses background tools. |
| The result file contains an older success or only `expected_rejection`               | Check the most recent command's exit status. The failure exercise replaces the result file, and a previous success does not establish a new successful conversation.                                                                                                |
| Closure was not confirmed                                                            | Inspect the saved conversation's lifecycle and pending work, then follow the documented [close operation](https://docs.concurrence.com/developer-guide/platform-api/conversations).                                                                                 |

***

**You are here:** step 2 of 10 in [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path), First Verified Conversation.

**Previous:** [Step 1: Create a Test Service](https://docs.concurrence.com/developer-guide/guides/create-a-test-service). **Next:** [Step 3: First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation).


# 3. First Console Conversation

Sign in to the Console, choose a configured test service, start a text conversation, inspect its answer and tool evidence, and end the session.

Test a configured agent service in your browser. You will send a synthetic question, inspect the answer and available execution details, and end the conversation. You do not need to install an SDK or create an API key for this walkthrough.

If you are still arranging workspace access, use the credential-free local walkthrough in [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation).

## Before You Start

Ask your workspace administrator or implementation contact for:

* The Console address and account with access to the intended test workspace.
* An active text service, with published versions of its linked agent and Context Graph. A voice service opens a voice call in the Playground instead.
* Confirmation that the service can answer an ordinary text question without patient context, production write tools, or outbound messaging actions.

The Playground uses the service's configured data and tools. A synthetic question alone does not isolate those resources. Use a service reviewed for this exercise.

## 1. Sign In and Choose Your Workspace

Open the Console address supplied for your deployment. The US entry point is [console-us.concurrence.com](https://console-us.concurrence.com).

Choose **Continue with Google**, or enter your email address and choose **Email me a sign-in link**. Use the account granted access to your workspace. An emailed link opens a **Continue signing in** page. Choose **Continue** to finish. Each link works once, expires shortly, and is used only when you choose **Continue**.

On the workspace selection screen, select the agreed test workspace. Check its name, ID, and region when shown.

**Check:** You can enter the intended workspace. If it is missing, ask the administrator to check your membership and Console address.

## 2. Open Your Test Service

The Console lists services as agents and their agents as personas. This walkthrough uses the API names, service and agent, and quotes the Console's labels in bold.

Open **Evaluate > Playground** and find the agreed service. Use **Find an agent** or the **Text** channel filter to narrow the cards, and **Load more agents** if the service is not in the first group. Only active services appear in this list.

Check the service's card. It shows the service's description and channel, and the **Persona** and **Context graph** it runs, each with the version the service's release pins, or **Latest** when no release is set. Confirm these match the test setup with your implementation contact.

Choose **Test** on the card. A text service opens the text Playground with a **Start a session** dialog.

**Check:** The dialog names the intended service. If it says the agent needs published persona and context graph versions, the service's agent or Context Graph has no published version. Resolve that before continuing.

## 3. Start a Text Conversation

In **Start a session**, set **Who speaks first** to **User first**. Leave **Test identity** blank for this exercise, and clear any remembered value. For a later test that requires patient context, use only the synthetic entity UUID supplied for that test. If the service declares conversation context, fill in the required fields.

Keep tool execution in the default simulated mode for this walkthrough. Tools return simulated results instead of calling connected systems. Read the session setup, then choose **Start text session**. In **User first**, the conversation waits for your message. **Agent first** instead asks the agent to open with its greeting.

**Check:** The conversation header shows **Active** and the message field is ready. A blank conversation is expected until you send the first message in **User first**. If the session cannot start, the dialog shows the reason the API returned.

## 4. Send a Question and Inspect the Result

Send this question to the reviewed test service:

```
What information would a scheduling team need
before considering an appointment change?
Do not book or change anything.
```

Press **Enter** to send. **Shift+Enter** inserts a new line. Wait for the answer before sending a follow-up.

For this exercise, a useful answer identifies prerequisites such as the existing appointment, the requested change, available alternatives, and authority to make the change. Wording varies by service configuration. If the answer claims to have changed an appointment, stop and investigate the tool evidence with the implementation owner.

The conversation shows your message, any state changes and tool calls, and the agent's answer. Open a tool call to see its inputs and result. The header shows the current state. In the inspector beside the conversation:

* **Stream** lists each turn's operations, with search and a failed-only filter.
* **Run details** summarizes the session and lists anything that needs attention, such as a failed tool. Under **Current configuration**, **Persona** and **Context graph** show the configuration the service's release points at. The Console notes that this does not confirm which version the session ran.

Missing details can reflect unavailable evidence and do not prove that no tool ran.

**Check:** Your message and a completed answer are visible. Record the expected result, observed answer, and any unexpected tool activity. An answer about scheduling is not evidence of a booking or of clinical quality.

## 5. End and Record the Conversation

Choose **End session** after the answer is complete and any unexpected work has been reconciled. Confirm the **Ended** state and the session summary, and check for an error. If ending fails, the session stays active with the error, so you can choose **End session** again. **New session** starts a separate conversation. Use it only when you intend to begin another test.

Record the workspace, service, configuration, test time, input, and observed result in your team's test record. When you need independent history and closure verification, inspect the conversation through [Evaluate > Runs](https://docs.concurrence.com/developer-guide/guides/operate-and-improve) and its conversation detail, or use the [SDK starter](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation). The Console's end control closes the conversation. It does not erase retained history or reverse external changes.

## Troubleshooting

| What you see                                                                       | What to check next                                                                                                                                                                                                                                                                                                        |
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The sign-in link says it didn't work                                               | Request a new link from the sign-in page. Each link works once and expires shortly.                                                                                                                                                                                                                                       |
| The workspace is missing                                                           | Confirm the signed-in account, membership, and Console address with the workspace administrator.                                                                                                                                                                                                                          |
| **No active agents found**, or your service is missing                             | Choose **View Agents** to check the agreed service's configuration, or **Load more agents** when available. Ask the owner to resolve inactive or missing test configuration.                                                                                                                                              |
| The start dialog says the agent needs published persona and context graph versions | Ask the configuration owner to publish a version of each missing agent or Context Graph and check the service's version selection. Publish Context Graphs through the [API or Forge](https://docs.concurrence.com/developer-guide/guides/build-and-prove#build). The Console graph page supports inspection, not editing. |
| **Test identity** says the value must be an entity UUID                            | Clear the remembered value for this context-free exercise, or supply the agreed synthetic entity UUID.                                                                                                                                                                                                                    |
| The session is active but no greeting appears                                      | In **User first**, send the opening message. In **Agent first**, check the start dialog for a reported error.                                                                                                                                                                                                             |
| Sending or ending reports an error                                                 | Preserve the workspace, service, time, and any conversation identifier. Inspect durable history and lifecycle before repeating the action, and follow [Troubleshooting](https://docs.concurrence.com/developer-guide/guides/troubleshooting). If ending failed, the session stays active, so you can end it again.        |

## Continue

* [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove) connects service configuration to repeatable testing and release.
* [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) adds independent evidence from a configured test system.
* [Playground and Interactive Testing](https://docs.concurrence.com/testing/testing/playground) explains voice mode, inspection, and related evaluation tools.

***

**You are here:** step 3 of 10 in [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path), First Console Conversation.

**Previous:** [Step 2: First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation). **Next:** [Step 4: Add a Tool: Pass Context to Tool Parameters](https://docs.concurrence.com/developer-guide/guides/conversation-context).


# 4. Add a Tool: Pass Context to Tool Parameters

Declare accepted conversation context on a service, supply values at creation, and bind them to tool parameters in the active Context Graph state.

Use start-time conversation context to pass application values to a tool without asking the model to supply those parameters. There are three configuration points: the **service** declares accepted keys, the **conversation create request** supplies values, and the **Context Graph's state-to-tool binding** selects which parameters receive them.

This Platform API task extends [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove) for an already configured service and tool. The map supplies inputs for one conversation; declaring it does not update world-model facts, create memory, or grant tool access.

## Choose the Right Context Feature

| You need to…                                                      | Use…                                                                                                                                                                                                                |
| ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Supply a typed application value to a tool for one conversation   | The start-time `context` map and state binding in this guide                                                                                                                                                        |
| Supply a verified value to a tool after a voice call has started  | [Set Context on a Live Voice Call](https://docs.concurrence.com/developer-guide/guides/live-call-context), from a trusted backend                                                                                   |
| Add free-text guidance to a turn or an opening WebSocket exchange | The separate text fields in [Conversations](https://docs.concurrence.com/developer-guide/platform-api/conversations) or [Sessions](https://docs.concurrence.com/developer-guide/platform-api/platform-api/sessions) |
| Read or retain facts about a person across conversations          | The [World Model](https://docs.concurrence.com/data/world-model) and [Functional Memory](https://docs.concurrence.com/agent/memory), under their own write and retrieval contracts                                  |
| Supply verified identity for an integration's authentication      | [External User Subject-Key Binding](https://docs.concurrence.com/developer-guide/platform-api/integrations/external-user-subject-key-binding), rather than caller-supplied application context                      |
| Add stored user information through the Classic API               | Classic [User Models and additional context](https://docs.concurrence.com/developer-guide/classic-api/core-api/users/user-models)                                                                                   |
| Inspect a service's neutral configuration and tool descriptors    | [Harness Context](https://docs.concurrence.com/developer-guide/platform-api/functions/harness-context), a read-only discovery operation                                                                             |

## Before You Start

Use a test workspace with permission to update its service, publish a Context Graph version, and create and inspect conversations. You need a configured read-only test tool whose input and result you can inspect. The example assumes that tool accepts two string parameters, `region` and `query`, and can report which region it actually received.

Use the regional API base and credentials assigned to that workspace. See [Choose Credentials](https://docs.concurrence.com/developer-guide/getting-started/credentials). Save the current service schema and selected graph version before changing them. This guide does not provision a service, integration, or channel.

Platform SDK 0.109.1 and later type `accepted_context` on services and the `context` map on conversation create and outbound call requests. The tool-call spec types include `context_bindings` but not `context_binding_aliases` as of 0.110.0. Use the HTTP contracts embedded below when you need aliases.

The synthetic test below uses a blocking tool with `result_persistence: "accumulate"` so its result can be inspected in history. If your workflow requires ephemeral results, keep that policy and verify the received input at the test tool instead. See [Tool Result Persistence](https://docs.concurrence.com/agent/context-graphs#tool-result-persistence).

{% hint style="warning" %}
**Runtime and identity scope.** Bindings apply to direct tools and companion skill inputs on the current runtime. Mapped bindings require their source value before execution. Automatic `channel-id` requires an available channel address and the service declaration. It does not verify a person’s identity. On voice calls, a binding to a declared key that the call did not start with refuses to run until the key is set, and a companion skill input bound to such a key is refused. Read [Supported Tool Paths](#supported-tool-paths) and [Reserved Channel Identity](#reserved-channel-identity).
{% endhint %}

## How the Values Reach the Tool

<figure><img src="https://1651797362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2YwM0LHtEGLt9S21OyC3%2Fuploads%2Fgit-blob-16ef419e9b0ba8ad3d212a4dbe42dac71f37cd07%2Fconversation-context-flow.svg?alt=media" alt="The service validates supplied context. A state-tool binding maps the accepted region into a hidden tool parameter; dispatch combines it with the model-supplied query."><figcaption><p>Verify with a read-only test tool. Supplied context does not prove identity.</p></figcaption></figure>

## 1. Declare the Schema on the Service <a href="#id-1.-declare-the-schema-on-the-service" id="id-1.-declare-the-schema-on-the-service"></a>

Set `accepted_context` in the top-level request body when creating or updating the service:

| Task                                 | Operation                                      |
| ------------------------------------ | ---------------------------------------------- |
| Create a service with its schema     | `POST /v1/{workspace_id}/services`             |
| Read the current schema              | `GET /v1/{workspace_id}/services/{service_id}` |
| Replace an existing service's schema | `PUT /v1/{workspace_id}/services/{service_id}` |

Service updates use **PUT**, not PATCH. For the complete contracts, see [Services](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services).

For a dedicated test service, this is a complete update body:

```json
{
  "accepted_context": [
    {
      "key": "region",
      "type": "string",
      "description": "Synthetic routing region for the test lookup",
      "required": true
    },
    {
      "key": "attempt",
      "type": "number",
      "description": "Optional test attempt number",
      "required": false
    }
  ]
}
```

The service's page (**Agents** in the Console) displays declared context keys, types, required status, and descriptions read-only. Use the service API to change `accepted_context`. The text Playground presents these keys as input fields when you start a test session.

Read the service back and confirm the schema before starting a conversation. A supplied list replaces the entire previous `accepted_context` list. Preserve any existing keys you still need. Omission or `null` leaves the list unchanged, while `[]` accepts no caller-supplied context keys.

Each entry requires `key`, `type`, `description`, and `required`. Keys must be unique, 2-63 characters, and contain only lowercase letters, digits, and internal hyphens. Underscores and leading or trailing hyphens are invalid. Types are `string` or `number`. The service accepts at most 100 key declarations.

Adding a required key affects subsequent create requests validated against this service. Update callers together with the service schema.

`accepted_context` is service-level configuration. Selecting a previous graph version does not restore a previous context schema. Save and restore that schema separately when rolling back.

## 2. Bind a Parameter in the Context Graph <a href="#id-2.-bind-a-parameter-in-the-context-graph" id="id-2.-bind-a-parameter-in-the-context-graph"></a>

The binding belongs to the **tool call specification on the state**, not the tool's create/update body. The underlying tool must already declare the parameter.

Read the service's selected Context Graph version. In the action state that calls your test tool, add `context_bindings` to its existing `action_tool_call_specs` entry, or to `exit_condition_tool_call_specs` when that is where the tool is used:

```json
{
  "tool_id": "lookup_test_hours",
  "execution": "blocking",
  "result_persistence": "accumulate",
  "context_bindings": ["region"]
}
```

This is a **ToolCallSpec fragment**, not a complete graph or tool creation request. Replace `lookup_test_hours` with the exact model-callable tool name, including a prefix such as `fn_` or `wsq_` for [Platform Functions](https://docs.concurrence.com/agent/platform-functions#using-functions-in-context-graphs). The execution and persistence values select the test behavior described above. Retain the entry's other settings and the graph's other states and bindings.

Each `context_bindings` list item uses the same name for the accepted context key and tool parameter. Use `context_binding_aliases` when the names differ:

```json
{
  "tool_id": "lookup_test_patient",
  "context_binding_aliases": {
    "patient_id": "patient-id"
  }
}
```

This is another ToolCallSpec fragment: the left side is the tool parameter, and the right side is the service’s accepted context key. The target parameter is hidden from the model and filled at dispatch. An alias takes precedence over a same-name binding for the same target. A missing alias source rejects the tool call before execution, even if the model supplies a value or the input schema has a default. Several parameters can map to one source key.

Declare the binding in each state where it is needed, using that state's tool-spec list. Keep a tool's bindings consistent across states, especially for voice runtimes that advertise one tool schema for the whole call.

Publish the complete revised graph using:

{% openapi src="<https://platform.api-us.concurrence.com/v1/openapi.json>" path="/v1/{workspace\_id}/context-graphs/{context\_graph\_id}/versions" method="post" %}
<https://platform.api-us.concurrence.com/v1/openapi.json>
{% endopenapi %}

Select that graph version in the test service's [version set](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services#version-sets). Preserve its agent and model selections. A new graph version does not change a version set pinned to an older one.

**Check:** The selected graph version contains the binding in the action state that will execute the tool. The tool's original input schema still declares `region`. The runtime removes it from the model-visible schema for the bound call.

## 3. Supply Values When Creating the Conversation <a href="#id-3.-supply-values-when-creating-the-conversation" id="id-3.-supply-values-when-creating-the-conversation"></a>

Send the map in `context` on `POST /v1/{workspace_id}/conversations`. Replace the synthetic service UUID with your test service ID:

```json
{
  "service_id": "11111111-1111-4111-8111-111111111111",
  "channel": "web",
  "context": {
    "region": "test-east",
    "attempt": 1
  }
}
```

The create request accepts at most 50 context keys. String values are limited to 8,192 characters. Service validation returns `422` for unknown keys, missing required keys, and values that do not match the declared type after request parsing. Send a JSON number for `number`, not a numeric string or a boolean. Arrays, objects, and null values are not context values.

**Validation edge case:** The public contract excludes booleans, but the current conversation-create parser can coerce `true` and `false` to `1` and `0` before service validation. Validate your application's values before sending them. Do not rely on a boolean producing `422`.

An empty `context` map works only when the service has no required keys. If an optional key in the legacy same-name `context_bindings` list is absent from a text conversation, the runtime leaves that parameter unchanged, and the tool can apply its own default or reject missing input. In contrast, a missing `context_binding_aliases` source rejects the call. Do not bind a required tool parameter to an optional key unless that absence is handled.

On voice calls, a binding to a declared key that the call did not start with refuses to run until the key is set on the live call. See [Set Context on a Live Voice Call](https://docs.concurrence.com/developer-guide/guides/live-call-context#how-the-agent-uses-the-value).

Save the returned conversation ID before sending a turn. Context is stored for the conversation and restored on subsequent text turns. The turn request's text `context` field is a different feature and does not update this map. See [Conversation operations](https://docs.concurrence.com/developer-guide/platform-api/conversations).

### Outbound Requests

Outbound SMS and iMessage use the same create operation with the channel's required `recipient` and `use_case_id`. The service's `accepted_context` validates the map before dispatch. Existing channel permissions, provisioning, and delivery requirements still apply.

Outbound voice uses `POST /v1/{workspace_id}/calls/outbound` and its `context` map. Those values reach the live call's bound tools, and each key is then set for the call, so a later [live-call update](https://docs.concurrence.com/developer-guide/guides/live-call-context#set-once-semantics) to a different value is rejected. Validation and routing use the service bound to the supplied `use_case_id`. This request does not select a service through `service_id`. Follow [Calls](https://docs.concurrence.com/developer-guide/platform-api/conversations/calls) for the required phone, patient, and routing inputs. Its `goal` and `system_prompt` supply startup instructions, and `metadata` supplies correlation data. None replaces the typed `context` map. The 50-key and 8,192-character limits above describe the conversation-create body, not a universal limit for every context-bearing route.

## 4. Verify the Bound Input

Send a message that triggers the read-only lookup, such as “Use the test lookup to show opening hours.” The model supplies `query`, and the runtime supplies `region` from the conversation context when the bound action-state tool executes.

Use the test tool's observed request or a result that explicitly echoes its received parameters to verify:

```json
{
  "region": "test-east",
  "query": "opening hours"
}
```

The exact query wording may vary. Confirm that the tool received `region: "test-east"`, that its result reached durable conversation history under this test's accumulate policy, and that the selected service and graph versions match your test record. Ephemeral bindings retain execution metadata instead of raw arguments and results. Tool telemetry is useful when available. Model narration alone does not prove which parameters reached the tool.

Repeat in a fresh conversation with a different synthetic region to check that the value is conversation-specific. Also try omitting `region`, adding an undeclared key, and sending `attempt: "one"`. Each create should return `422` before a conversation is created. Resolve ambiguous network outcomes by inspecting retained state before retrying.

Close successful test conversations and verify closure through the [close and detail operations](https://docs.concurrence.com/developer-guide/platform-api/conversations). Restore the saved service schema and version selection if the test configuration is temporary. Closing a conversation does not erase its retained context or undo an external operation.

## Supported Tool Paths

The runtime resolves the tool's binding from the state where the call starts and carries that binding into execution. This includes action, decision, and data-collection states. The example above uses an action state.

| Tool or state                                        | Current behavior                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Direct integration endpoint                          | Context parameters are injected before the integration call when the launching state's spec binds that exact tool name. Integration authentication and grants still apply.                                                                                                                                                                                                                                                                                                                 |
| Direct world tool                                    | Uses the same injection path. Its existing parameter schema, validation, and execution policy still apply.                                                                                                                                                                                                                                                                                                                                                                                 |
| SQL-backed platform function or workspace data query | Uses the direct-tool path when exposed to the conversation. Parameter names must also satisfy the SQL tool's own naming rules. Use `context_binding_aliases` to map a hyphenated context key to an underscore-containing SQL parameter.                                                                                                                                                                                                                                                    |
| Companion skill input                                | Receives the bound context before the companion starts, including on background execution. A mapped source must exist. Passing that skill input to an integration sub-tool requires its own `skill_input_bindings`. See [Skills](https://docs.concurrence.com/developer-guide/platform-api/workspaces/skills#bind-skill-inputs-to-integration-tools). On voice calls, a skill input bound to a declared key the call did not start with is refused. Bind that key on the sub-tool instead. |
| Decision or data-collection state                    | The binding resolves from that state's `tool_call_specs` list. Action states use `action_tool_call_specs` and `exit_condition_tool_call_specs`. Annotation states do not bind tools.                                                                                                                                                                                                                                                                                                       |
| Realtime voice runtime                               | The call stays in its initial state, so bindings resolve across the whole graph. When states bind the same parameter differently, the initial state wins, then the first state in graph order. Keep a tool's bindings consistent across states.                                                                                                                                                                                                                                            |
| Standalone tool test or direct function invocation   | Has no conversation context binding merely because the tool is used in a graph. Supply the endpoint's required inputs through that operation's contract.                                                                                                                                                                                                                                                                                                                                   |

Context bindings are distinct from identity bindings and authorization-bound SQL parameters. Keep their parameter names separate. Do not context-bind credential or access-control parameters. Caller-supplied context is application input, not proof of identity or permission. Removing a parameter from the model's tool schema does not make its value a secret: tool results, retained context, or telemetry can expose it. Do not put credentials in this map.

Tool result persistence governs the tool journal and later prompts. It does not clear the separately stored start-time context map. Apply your retention requirements to both.

## Reserved Channel Identity

The reserved key is **`channel-id`**, with a hyphen. It is not `channel_id`, a use-case ID, a conversation UUID, or the business's sending address.

The initialization rule fills a declared string `channel-id` from a non-empty caller/channel address, overriding the value in the initialization map. Voice uses the caller or destination phone number, and messaging adapters carry their channel-specific sender identifier. The text path preserves this initialized map for tool execution and re-derives the channel address when a session is restored. The separately persisted start-time context remains the originally supplied map, so it can differ from the effective tool input.

On the inbound voice path, valid caller numbers are normalized to E.164. Withheld, anonymous, invalid, and non-phone caller identifiers are treated as unidentified, so they supply no phone address for automatic filling. An absent address does not erase a caller-supplied context value. Do not use a supplied `channel-id` as a fallback identity. Even a valid phone address is not proof of the caller's identity or authority.

{% hint style="info" %}
**Verify the channel address.** Automatic filling depends on the address supplied by the selected channel adapter. A web conversation need not have a phone address. Test the effective tool input on your deployed channel before relying on automatic filling.
{% endhint %}

When preparing a supported deployment for automatic filling, declare `channel-id` as `type: "string"` and `required: false`. API validation occurs before initialization, so `required: true` can reject a create request that omits it before any auto-fill occurs. An absent caller address also means there is nothing to auto-fill. Do not send a placeholder value to bypass that validation.

Use an explicitly supplied, non-reserved key for ordinary application context. It remains caller-supplied data and must not replace the tool's authorization checks.

## Troubleshooting

| Symptom                                           | Check next                                                                                                                                                                                                                                           |
| ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Service update returns `405`                      | Use `PUT /services/{service_id}`, not PATCH or PUT on the collection.                                                                                                                                                                                |
| Schema or create request returns `422`            | Check key spelling, uniqueness, scalar types, required keys, and request limits. `channel_id` is not a valid accepted-context key.                                                                                                                   |
| Bound parameter is missing                        | Check the selected graph version, launching state, deployed state coverage, exact tool name and parameter name, and whether the optional context key was supplied.                                                                                   |
| A warehouse parameter uses underscores            | Add an explicit `context_binding_aliases` mapping from that tool parameter to the accepted context key. There is no implicit translation.                                                                                                            |
| Model is still asked for the value                | Confirm the binding is on the active state's ToolCallSpec, rather than on the tool definition or an unselected graph version.                                                                                                                        |
| Voice tool returns a missing-context rejection    | The key is declared but the call did not start with it. Set it with [live call context](https://docs.concurrence.com/developer-guide/guides/live-call-context) before the agent needs the tool, or remove the declaration if nothing will supply it. |
| `channel-id` is absent or differs from the sender | Check the service declaration, channel adapter address, and effective tool input. Do not infer identity from a supplied value.                                                                                                                       |

Continue with [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) when the tool performs an external write, and [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove) for a reviewed configuration rollout.

***

**You are here:** step 4 of 10 in [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path), Add a Tool: Pass Context to Tool Parameters.

**Previous:** [Step 3: First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation). **Next:** [Step 5: Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action).


# 5. Verify an Integration Action

Verify a configured integration action from authorization through target acknowledgement, including rejection, ambiguous delivery, and test cleanup.

Use this guide after [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation) to verify work outside the conversation. The example is a synthetic appointment change against a scheduling test system. Your integration owner supplies the target contract and fixture. Concurrence does not define one universal appointment-write payload for every scheduling system.

## Prerequisites

Have a configured test service, a test integration and endpoint, credentials limited to synthetic records, and permission to inspect the operation's evidence. Choose one fixture appointment, record its starting value, and document how the target can be read back and restored. The integration owner must verify that the selected endpoint has no production side effects.

Decide whether the test uses direct execution or [approval-gated integration writes](https://docs.concurrence.com/developer-guide/platform-api/integrations/approval-gated-integration-writes).

<figure><img src="https://1651797362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2YwM0LHtEGLt9S21OyC3%2Fuploads%2Fgit-blob-eb44a1e2d798eabbb070775ed017aa36d78005f3%2Fintegration-outcome-flow.svg?alt=media" alt="Integration verification checks inputs and authorization, resolves any required approval, executes on the supported path, and independently confirms the destination outcome."><figcaption><p>Approval is not proof that an external mutation succeeded.</p></figcaption></figure>

## 1. Establish the Contract and Access

Use [Integrations](https://docs.concurrence.com/developer-guide/platform-api/integrations) to inspect the configured endpoint and its input schema. Verify that the test service exposes the intended tool and that its principal has the required access. [Tool Testing](https://docs.concurrence.com/developer-guide/platform-api/functions/tool-testing) explains resolution and the separate integration-endpoint test operation.

Record the service configuration, integration/endpoint identifiers, synthetic target record, proposed old-to-new change, and external read-back method. A test label or a generic dry-run flag is not a universal guarantee that nothing will be written.

## 2. Test the Action in Isolation

Invoke the integration endpoint's dedicated test operation using the fixture payload that matches its schema. Save the returned result and inspect the target record independently. Classify the result as confirmed, rejected, failed, or unresolved.

A returned success from a tool can describe request acceptance rather than a committed target change. If the target processes requests asynchronously, use its documented completion/read-back procedure. Do not invent a retry or idempotency contract where the integration does not provide one. The test follows the same retry rules as a conversation, so a write that times out or gets a `502`, `504`, `520`, or `524` goes out once and stays unresolved until you read the target back. So does a write answered with a 2xx whose body doesn't hold what its `field` or `graphql` success rule reads. See [Writes Answered With a 2xx](https://docs.concurrence.com/developer-guide/platform-api/integrations#writes-answered-with-a-2xx). The test response reports such a write as `"outcome": "unknown"`. Classify it as unresolved, not failed. The test waits as long as the endpoint's own timeout allows, so check `over_text_budget` before you rely on the endpoint in a text conversation. When it is `true`, the call took as long as a text turn waits on one and would time out there. See [Endpoint Retries](https://docs.concurrence.com/developer-guide/platform-api/integrations#endpoint-retries).

In the Console, Tool Tester and an endpoint's **Test** dialog show the result's outcome as **Succeeded**, **Failed**, or **May have been written**, beside the HTTP status, **Written** or **Not written**, and a warning when the call would time out in a text conversation. After a **May have been written** result, **Execute Test** asks **Send this write again?** before it sends the write.

## 3. Exercise the Conversation Path

Start a new test conversation with the configured service and request the same bounded change. Inspect the selected tool, its input, the result, and the resulting agent statement through [Conversation detail](https://docs.concurrence.com/developer-guide/platform-api/conversations) with tool-call metadata requested where supported.

For an approval-gated call, verify that the target remains unchanged while the write is parked. Review the exact pending payload, record an approval or rejection through the supported decision operation, and exercise the next supported turn. A granted decision alone is not target acknowledgement. Only text conversations offer approval-gated tools, so exercise this path in a text conversation. See [Approval-Gated Integration Writes](https://docs.concurrence.com/developer-guide/platform-api/integrations/approval-gated-integration-writes#key-concepts).

## 4. Prove the Failure Boundary

| Case                                                                                                       | Evidence required before passing                                                                                                                                                                            |
| ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Missing or unauthorized input                                                                              | The action is refused and the target remains unchanged                                                                                                                                                      |
| Reviewer rejects a parked write                                                                            | No external write occurs. The agent communicates the rejection accurately                                                                                                                                   |
| Target rejects the request                                                                                 | The actual error is recorded. The agent does not confirm a completed change                                                                                                                                 |
| No answer that settles the write, such as a timeout or a 2xx body its `field` or `graphql` rule can't read | The tool result reports `"outcome": "unknown"`, the platform doesn't send the write again, and the agent is told to say it can't confirm the request went through. Target read-back establishes the outcome |
| Successful target change                                                                                   | Read-back confirms the intended record and value. The agent's statement matches that evidence                                                                                                               |

An approval consumption can precede an interrupted external call. Verify the destination before any manual retry. Repeating a conversation turn is not proof that a target write will be deduplicated.

### Reconcile Unknown Outcomes

A write that got no answer saying whether it went through, for example after a timeout, has an unknown outcome: the vendor may have made it. In the conversation's tool calls it reports `succeeded: false`, with `"outcome": "unknown"` in its result. The platform doesn't send it again in that conversation, and the reply checks don't count it as done. See [Endpoint Retries](https://docs.concurrence.com/developer-guide/platform-api/integrations#endpoint-retries) for the full rule.

Nothing reconciles these writes automatically. Find them in your tool-call records, read the target to learn what happened, and complete or undo the change through the target's own process.

## 5. Save Evidence and Clean Up

Use the [evaluation packet](https://docs.concurrence.com/platform-overview/evaluation-packet) to record each case, configuration, conversation, operation, target acknowledgement, and reviewer decision. Restore the synthetic appointment using the target's supported process, close test conversations, and reconcile any unresolved writes before deleting test evidence.

You are ready to extend the workflow when both normal and failure cases have target evidence. Move to [managed SMS testing](https://docs.concurrence.com/developer-guide/guides/test-managed-sms) for channel behavior or [troubleshooting](https://docs.concurrence.com/developer-guide/guides/troubleshooting) when the evidence stops at an intermediate stage.

***

**You are here:** step 5 of 10 in [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path), Verify an Integration Action.

**Previous:** [Step 4: Add a Tool: Pass Context to Tool Parameters](https://docs.concurrence.com/developer-guide/guides/conversation-context). **Next:** [Step 6: Add Escalation and Safety](https://docs.concurrence.com/developer-guide/guides/escalation-and-safety).


# 6. Add Escalation and Safety

Configure caller verification, call forwarding, a safe-exit line, and an escalation path on a test service, then test each one before release.

Use this guide after [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) to give a test service a path to a person and to check the platform's safety behavior on your runtime. It collects settings documented on their owning pages. Follow the links for the full contract.

## Prerequisites

Have a configured test service, a synthetic patient record, and permission to update the service. For phone transfers, have a provisioned voice line bound to the service and destination numbers your team controls. Confirm which [voice family](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#choosing-a-realtime-voice-family) the service uses: transfers, operator takeover, and several safety controls differ by family.

## 1. Decide Whether the Workflow Needs the Caller's Record

If the workflow reads patient records, add `world_confirm_patient_identity` to the Context Graph state that confirms identity, and have that state ask for the caller's full name and date of birth. Until the caller verifies, built-in record reads return `verification_required`.

If the workflow never needs the record, for example a call to a payer line, set `platform_caller_verification: false` on the service. See [Caller Verification](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#caller-verification).

## 2. Configure Forwarding

Add a `voice_config.forwarding` block to the service. Choose `warm_transfer` explicitly, then either a fixed `forward_to` or dynamic mode with `approved_destinations`. Set `fallback_to` for the line the safe exit dials. Each number must also be on the `allowed_forwarding_numbers` list of the voice use case bound to the service, or the save returns `422`. Public emergency and N11 short codes are refused as destinations.

Warm transfer is available on the `concurrence` cascade and `gpt_realtime`. The other realtime families use cold transfer. See [Call Forwarding](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services#call-forwarding) and [Voice Configuration](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#call-forwarding).

## 3. Author the Escalation Path in the Graph

In each safety-sensitive state, write the escalation conditions, boundary constraints, and a safe fallback for when no person or destination is available. To let the agent take a message when it can't transfer, offer a tool whose write records one, such as `world_ticket_create` or an integration endpoint declared `message`. See [Safety & Escalation](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#safety-and-escalation) and [Endpoint Write Declarations](https://docs.concurrence.com/developer-guide/platform-api/integrations#endpoint-write-declarations).

On the platform-managed runtime, author the graph's emergency path too: the agent's own reply plays when a caller describes an emergency. On `gpt_realtime`, review `medical_emergency_ending`. See [Realtime Emergency Script](https://docs.concurrence.com/developer-guide/platform-api/conversations/voice-agent#realtime-emergency-script).

## 4. Test Each Path

Run each case on a test call or simulation and record the transcript and tool calls:

| Case                                           | Expected evidence                                                                          |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------ |
| Record request before verification             | The read returns `verification_required`                                                   |
| Wrong date of birth, then the right one        | A failed attempt, then the record loads                                                    |
| Request for a person                           | `forward_call` to the configured destination, a recorded message, or how to reach the team |
| Transfer to an unapproved number               | `forward_call` refuses it without dialing                                                  |
| A claimed booking with no booking write        | On voice, the reply is stopped and corrected. On text, a logged hit                        |
| A medical emergency, in plain and hinted words | The runtime's documented emergency behavior, and the call stays open                       |
| A non-emergency mention of a condition         | The workflow continues                                                                     |

Recognition covers a limited set of phrasings and can miss others, so test several. Simulations return `dry_run` results for tools. Test a live transfer with a test call to a destination your team controls.

## 5. Plan the Operator Path

If people intervene in live runs, read [Operators and Escalation](https://docs.concurrence.com/operations-and-safety/operators). Operator takeover on phone calls is available on supported platform-managed calls, and the operator APIs are a beta feature a workspace must be enabled for. Define what happens when no operator is available.

## Production Differences

A test destination, a synthetic record, and a test call don't establish staffing, carrier behavior, or clinical protocol. Before release, confirm the production destinations, staffing, and escalation owners, and repeat the cases on the production service configuration.

See [Runtime Safety](https://docs.concurrence.com/operations-and-safety/runtime-safety) for the full control map, and [Safety Layers Separate From the Agent Model](https://docs.concurrence.com/design/safety-layers) for why the controls are built this way.

***

**You are here:** step 6 of 10 in [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path), Add Escalation and Safety.

**Previous:** [Step 5: Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action). **Next:** [Step 7: Build and Prove With Simulations](https://docs.concurrence.com/developer-guide/guides/build-and-prove).


# 7. Build and Prove With Simulations

Configure a Platform service, test its behavior, and release selected versions with clear acceptance criteria and a recovery plan.

Follow this path to configure a service, test the workflow, and release selected versions. You need a test workspace, permitted synthetic data, and an implementation owner who can confirm which tools and channels are enabled.

<figure><img src="https://1651797362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2YwM0LHtEGLt9S21OyC3%2Fuploads%2Fgit-blob-674abe29f6c82c60baa0697a261edd210a4475a2%2Fbuild-prove-release.svg?alt=media" alt="Configure the agent, graph, tools, service and channel. Test the candidate and external outcomes, review evidence and a recovery plan, then deliberately promote and inspect a run. Failures return to configuration."><figcaption><p>Promotion is an explicit decision based on reviewed evidence. Recovery also checks external effects.</p></figcaption></figure>

## Build

For a first text workflow, [Create a Test Service](https://docs.concurrence.com/developer-guide/guides/create-a-test-service) supplies a complete SDK setup with configuration files, explicit version pins, partial-failure recovery, and cleanup. Then use [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation) to verify runtime evidence.

Agree on the workflow before configuring the agent. Write a [patient arc](https://docs.concurrence.com/agent/pattern-discovery-and-reuse#turn-feedback-into-a-patient-arc) with the user's request, source data, decision branches, permitted actions, completion criteria, and handoff owner. Have the customer workflow owner review the expected behavior and exceptions. Use synthetic examples to turn those decisions into test cases.

Console groups authoring under **Build**: Personas, Context Graphs, Tools, Agents, and Channels. The Console's Personas are API agents, and its Agents are API services. Visibility and permissions depend on the workspace. Use the corresponding contracts when automating the same task.

1. Confirm [credentials and workspace access](https://docs.concurrence.com/developer-guide/getting-started/credentials).
2. Configure the [agent](https://docs.concurrence.com/developer-guide/platform-api/workspaces/agents) and [Context Graph](https://docs.concurrence.com/agent/context-graphs). Publish graph changes through the supported API or [Agent Forge](https://docs.concurrence.com/reference/agent-forge). Console graph pages show a selected version as plain text, JSON, or a graph, and download it as JSON. Identify which tools can read data or change an external system, and use test targets for the first run.
3. Bind the agent and graph in a [service](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services). Read back the selected versions and field-specific configuration. A service version set does not isolate all data or external effects.
4. Choose the supported [conversation path](https://docs.concurrence.com/developer-guide/platform-api/conversations). Managed channels require a [provisioned binding](https://docs.concurrence.com/developer-guide/platform-api/workspaces/use-cases). Console Channels forms begin the managed setup process. Submitting a form does not provision the channel.

If a tool needs an application value supplied when the conversation starts, follow [Pass Context to Tool Parameters](https://docs.concurrence.com/developer-guide/guides/conversation-context) to declare the service schema and bind the parameter in the graph. Keep that input separate from identity bindings and choose the tool's result-retention policy deliberately.

## Evaluate <a href="#prove" id="prove"></a>

Console's **Evaluate** area includes Playground, Runs, Simulations, and Metrics. The Case Library and test suites are tabs under **Simulations**. Choose your first check:

* [First Console Conversation](https://docs.concurrence.com/developer-guide/guides/first-console-conversation) walks through a browser text session with your configured service, including readiness errors and inspection controls.
* [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation) provides a runnable SDK project, durable-answer verification, a rejected-request exercise, and cleanup. Start locally without credentials, then use its provisioned mode to test your service.

For a graph or channel change, use [Playground](https://docs.concurrence.com/testing/testing/playground) and the applicable [simulation workflow](https://docs.concurrence.com/testing/testing/simulations). Cover these cases from the approved arc:

* The normal path reaches the expected result.
* Missing or stale data triggers the agreed recovery or handoff.
* An existing request is handled without duplicating it.
* An unauthorized or rejected action follows the agreed failure path.
* A human handoff reaches the right owner with the required context.

Record the configuration, input, expected outcome, observed result, and failures for each case. Verify external changes separately with [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action). Simulation success does not establish production delivery or deterministic future output.

### Choose the Test Type <a href="#choose-the-test-type" id="choose-the-test-type"></a>

| Question                                                       | Test                                                                                                                   | Evidence                                                                   |
| -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Did the agent follow the right path and choose the right tool? | Logical test in a [simulation](https://docs.concurrence.com/testing/testing/simulations) or the Playground             | States, tool calls, and assertion or metric verdicts                       |
| Does a caller get the correct outcome on a real call?          | Black-box call with [Run Arbiter Voice Tests](https://docs.concurrence.com/developer-guide/guides/arbiter-voice-tests) | Transcript, recording, call status, and timing as the caller observes them |
| Did the external change complete?                              | [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action)       | Readback or acknowledgement at the target                                  |
| Is released behavior holding?                                  | [Production Evals](https://docs.concurrence.com/developer-guide/platform-api/safety/production-evals)                  | Persisted verdicts with missing-result counts                              |

Follow the [Healthcare Agent Testing Method](https://docs.concurrence.com/testing/testing/healthcare-agent-testing) for case design, grader controls, repeated trials, and reporting. [Black-Box Voice Testing](https://docs.concurrence.com/testing/testing/voice-simulation) explains what a call can and cannot show.

## Promote and Recover

Use [Version Sets & Promotion](https://docs.concurrence.com/developer-guide/operations/devops/version-sets-best-practices) to compare the candidate with the current release and retain the previous selection for rollback. Prefer explicit component versions for a reproducible release. An unpinned version can resolve newer configuration later.

Before promotion, record who reviewed the evidence, which channel and integration checks ran, and how to recover if the new behavior fails. After promotion, inspect a permitted test run through [Runs](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs). Rolling back configuration does not undo external mutations that already completed. Reconcile those through the owning integration.

***

**You are here:** step 7 of 10 in [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path), Build and Prove With Simulations.

**Previous:** [Step 6: Add Escalation and Safety](https://docs.concurrence.com/developer-guide/guides/escalation-and-safety). **Next:** [Step 8: Run a Voice Session in Your App](https://docs.concurrence.com/developer-guide/guides/app-voice-session).


# 8. Run a Voice Session in Your App

Start a hold-to-talk voice session from your own app: your backend gets a one-use ticket, the app streams PCM16 audio over a WebSocket, and the agent answers on the same socket.

A voice session is one live voice conversation between your app and a voice service. App voice sessions are a beta feature, with limits on how many can run at once per workspace and per person. The app streams the user's microphone to a WebSocket, the agent's voice comes back on the same socket, and transcripts and timing frames arrive as small JSON messages. The agent is the service's own agent: it can use the service's tools, and the session is recorded and billed like a call.

## Before You Start

You need:

* A voice service on `gpt_realtime`, `eleven_realtime`, `gpt_live`, or `grok_voice`. Any other service is refused with `422`. See [Choosing a Realtime Voice Family](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#choosing-a-realtime-voice-family) for channels and graph requirements, and [Session Provider](https://docs.concurrence.com/developer-guide/platform-api/workspaces/services#session-provider) for save refusals.
* A workspace API key whose role is member or above. Keep it on your backend. Do not ship it in the app.
* The agent engine host for your region, `https://agent-engine.api-us.concurrence.com` in US production. See [Regions & Endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints#service-specific-hosts).

These operations are not published in the Platform OpenAPI document, so this page describes their contract directly.

## How a Session Runs

1. Your app asks your backend for a session.
2. Your backend calls the start route with the API key and receives a `ws_url` and a one-use `ticket`.
3. Your backend hands both to the app.
4. The app opens the WebSocket, waits for `ready`, then streams audio every 20 ms until it hangs up.

On `gpt_live`, the opening AI and recording notice is prerecorded, as are the emergency scripts and a small set of fixed lines. The caller cannot interrupt these prerecorded lines, and speech during playback is not processed. The timeout line is English only. The session uses Concurrence reasoning for multi-state Context Graph navigation on delegated requests and is billed as voice minutes. See [GPT-Live](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#gpt-live) for configuration and channel scope.

The agent speaks first. It plays the spoken notice that the call is with an AI and is recorded, then its greeting if the service has one. The notice plays at the start of a session when it can be rendered. On `eleven_realtime`, it is spoken in the selected ElevenLabs voice. On `grok_voice`, it is prerecorded, as are the emergency scripts and a small set of fixed lines, and the rest of the session uses the selected Grok voice. For a service that needs the notice spoken word for word, prefer `gpt_realtime` and verify the opening with representative calls.

## Start a Session

Call `POST /agent/voice-session/start` from your backend:

```http
POST /agent/voice-session/start
Authorization: Bearer <workspace API key>
Content-Type: application/json
```

```json
{
  "service_id": "00000000-0000-4000-8000-000000000002",
  "subject": {"external_subject_key": "user-1", "caller_id": "+12025550100"},
  "audio": {"input": {"encoding": "pcm16", "sample_rate": 24000}},
  "turn_mode": "hold_to_talk"
}
```

* `service_id` is the voice service to run.
* `subject.external_subject_key` is 1 to 128 characters: your stable id for the end user. It caps concurrent sessions per person. The platform does not verify it.
* `subject.caller_id` is optional, an E.164 number the session treats as the caller's phone number, as on a phone call. It is not verified and does not prove who is speaking.
* `audio` and `turn_mode` can be left out. They accept only the values shown.
* Any other field is refused with `422`. A request cannot change the agent's prompt or configuration.

The response:

```json
{
  "ws_url": "wss://<voice host>/agent/voice-session",
  "subprotocol": "auth",
  "ticket": "vst_...",
  "call_sid": "vs-0123456789abcdef0123456789abcdef",
  "expires_in": 60,
  "audio": {
    "input": {"encoding": "pcm16", "sample_rate": 24000, "channels": 1},
    "output": {"encoding": "pcm16", "sample_rate": 24000, "channels": 1}
  },
  "turn_mode": "hold_to_talk"
}
```

The ticket works for one connection and for 60 seconds. `call_sid` identifies the session: it is the `session_id` in the `ready` frame and the id the conversation is recorded under.

| Status | `detail.code`                                                              | Meaning                                                                                                                                                                                     | What to do                                                                            |
| ------ | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| 401    | none                                                                       | The API key is missing or wrong                                                                                                                                                             | Fix the key                                                                           |
| 403    | none                                                                       | The credential may not use this route                                                                                                                                                       | Use a workspace API key                                                               |
| 403    | `voice_session_permission_required`                                        | The key's role is below member                                                                                                                                                              | Use a key with member role or above                                                   |
| 403    | `eleven_realtime_not_enabled`                                              | The service is on `eleven_realtime` and the workspace's `data_residency` is `regional`                                                                                                      | Use a service on another realtime voice family                                        |
| 403    | `gpt_live_region_unsupported`                                              | The service uses `gpt_live` outside the US                                                                                                                                                  | Use a US workspace, or choose another family                                          |
| 403    | `gpt_live_unavailable`                                                     | The service uses `gpt_live` and the workspace has regional data residency                                                                                                                   | Choose a family that meets the workspace's residency policy                           |
| 403    | `grok_voice_not_enabled`                                                   | The service is on `grok_voice` and the workspace's `data_residency` is `regional`                                                                                                           | Choose a family that meets the workspace's residency policy                           |
| 404    | `service_not_found`                                                        | No active service with this id in the workspace, or the service has no agent or Context Graph version                                                                                       | Check `service_id` and the service's configuration                                    |
| 422    | `unsupported_service_runtime`                                              | The service is not on a supported realtime voice family, or an `eleven_realtime` service has no voice configured                                                                            | Select a supported family and configure its voice on the service                      |
| 422    | `direct_program_unsupported`                                               | The service's agent version runs a [direct program](https://docs.concurrence.com/developer-guide/platform-api/workspaces/direct-programs#grok-voice) and the service is not on `grok_voice` | Put the service on `grok_voice`, or select an agent version that runs a Context Graph |
| 429    | `workspace_concurrency_limit`                                              | The workspace has too many live sessions                                                                                                                                                    | Wait and retry                                                                        |
| 429    | `subject_concurrency_limit`                                                | This person has too many live sessions                                                                                                                                                      | End one or wait                                                                       |
| 429    | `start_rate_limit`                                                         | The key started too many sessions in the last minute                                                                                                                                        | Wait for the `Retry-After` seconds                                                    |
| 503    | `no_voice_capacity`                                                        | No voice capacity was free                                                                                                                                                                  | Retry once after the `Retry-After` seconds                                            |
| 503    | `config_unavailable`, `slot_store_unavailable`, `ticket_store_unavailable` | A dependency was not available                                                                                                                                                              | Retry shortly                                                                         |
| 503    | `residency_unavailable`                                                    | The workspace's data residency could not be checked for an `eleven_realtime`, `gpt_live`, or `grok_voice` service                                                                           | Retry after the `Retry-After` seconds                                                 |

For `gpt_live_region_unsupported`, `detail.message` is `GPT-Live is US only for now.` For `gpt_live_unavailable`, it is `GPT-Live requires a US workspace without regional data residency`. For `grok_voice_not_enabled`, it is `Grok Voice is not available to a workspace with regional data residency`. For `residency_unavailable`, it is `Voice session availability could not be checked; retry`.

The `401` and the `403` without a code have a plain string as `detail`. A `422` for a body that does not fit the request has a list of problems as `detail`. Every other error has `detail.code` and `detail.message`.

## Open the Socket

Offer the ticket only in the `Sec-WebSocket-Protocol` header, as the two subprotocols `auth` and the ticket, in that order:

```javascript
const socket = new WebSocket(start.ws_url, ["auth", start.ticket]);
socket.binaryType = "arraybuffer";
```

* Keep the ticket out of the URL, a query string, and cookies, and do not log it.
* The server answers with the `auth` subprotocol. Treat a socket with no selected subprotocol as failed.
* Open the socket only when you are ready to stream. The ticket is spent when the server reads it, so a reconnect is a new start call, and the opening notice plays again.

## Stream Audio

Both directions are binary frames of PCM16, little-endian, mono, 24000 Hz.

* **Client to server.** Send 20 ms frames of 480 samples (960 bytes). A frame must hold whole samples and be at most 9600 bytes. Anything else closes the socket with `4008`. Do not send empty frames.
* **Server to client.** The agent's voice arrives in frames of varying size, normally a whole number of samples. If you re-chunk, keep sample alignment.
* **Echo cancellation.** Turn it on for the microphone, or the agent hears itself while the user holds the button.

### Hold to talk

The session is hold to talk. The user holds a button while speaking and releases it to finish. Your app sends the microphone's samples while the button is held and zero samples otherwise, one frame every 20 ms at real-time pace from `ready` until the session ends.

Keep streaming the zero frames after a release. The agent decides that the user has finished from the silence that follows the speech, so a socket that goes quiet does not end the turn. Because the decision rests on silence, a pause of a few hundred milliseconds in the middle of a press can end the turn early.

## Frames

### From the app

Each is a JSON text frame with a `type`. Other text frames are ignored.

| Frame                     | When to send it                                                                                       |
| ------------------------- | ----------------------------------------------------------------------------------------------------- |
| `{"type": "input.start"}` | The button is pressed. Send it before the first audio frame of the press. It does not clear playback. |
| `{"type": "input.end"}`   | The button is released. Keep streaming zero frames.                                                   |
| `{"type": "stop"}`        | Hang up. The server answers `ended` with reason `client_stop` and closes with `1000`.                 |

### From the server

A client ignores any frame whose `type` it does not know.

| Frame           | Meaning                                                                                                                                                                                                                                                             |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ready`         | The first message sent. Carries `protocol` (`amigo-voice-session.v1`), `session_id`, the audio formats, `turn_mode`, and `limits`. You can start streaming.                                                                                                         |
| `call_progress` | `{"phase": "live"}`: the agent session is set up and the opening starts. Keep the hold button disabled until it arrives.                                                                                                                                            |
| `transcript`    | A complete utterance, not a partial one. `text` is the utterance and `role` is `user` or `agent`. An agent line carries `interrupted`, true when the reply had already been cut off when its transcript was sent. A cut that comes later arrives as `interruption`. |
| `interruption`  | The agent's speech was cut off, usually because the user barged in. Clear the playback queue immediately.                                                                                                                                                           |
| `latency`       | The server's measure from the end of the user's turn to the first agent audio it forwarded, as `e2e_ttfb_ms`. `is_greeting` is true for the opening, which is measured from when the agent session starts to open. It leaves out your network and playback buffer.  |
| `error`         | A fatal condition with a `code`: `bad_audio_frame`, `idle_timeout`, `service_not_ready`, `unsupported_service_runtime`, or `internal_error`. An `ended` frame and a close follow.                                                                                   |
| `ended`         | The last frame before the close. `reason` is `client_stop`, `idle_timeout`, `max_duration`, or `server_ended`. Treat a reason you do not know as `server_ended`.                                                                                                    |

Transcripts contain the conversation. Show them only to the person in the session and treat them as sensitive. Nothing about the agent's tools or configuration is sent to the app.

### Close codes

| Code   | Meaning                                                                                                    |
| ------ | ---------------------------------------------------------------------------------------------------------- |
| `1000` | Normal end, after `ended`.                                                                                 |
| `1011` | Server error.                                                                                              |
| `1013` | The host could not take the session: no capacity, or a dependency was unavailable. Start a new session.    |
| `4001` | No ticket was offered.                                                                                     |
| `4003` | The ticket is malformed, unknown, expired, or already used. Start a new session.                           |
| `4008` | Audio was refused: a frame of odd length, over 9600 bytes, or audio arriving faster than real time allows. |
| `4010` | The server received no frame of any kind for 30 seconds.                                                   |
| `4200` | The session could not start. The close reason says whether to try again shortly.                           |

A session lasts at most 30 minutes, which ends it with `ended` reason `max_duration`. If the user says nothing, the agent checks in and then ends the session, with `ended` reason `server_ended`, unless the platform has recognized that the user described a medical emergency or self-harm, in which case silence leaves the session open.

## Client Rules

1. Check that the server selected the `auth` subprotocol and that `ready.protocol` is `amigo-voice-session.v1`. Close if not. Send nothing before `ready`.
2. Stream a frame every 20 ms from `ready` to the end: microphone while held, zeros otherwise.
3. Send `input.start` before the first audio frame of a press and `input.end` on release. Do not clear your playback queue on a press, so the opening notice is heard in full even when a press lands during it.
4. Clear the playback queue when `interruption` arrives.
5. Play the agent's audio through a small jitter buffer: hold the first chunk after a pause back by about 100 ms and schedule each chunk to start where the last one ends.
6. If the socket's send buffer holds more than about 2 seconds of audio, drop new frames instead of queuing stale speech.
7. On `1013` and `4003`, call start again. On `503` `no_voice_capacity`, retry once after `Retry-After`.

## Set Context on the Session

A voice session has a `call_sid`, so a trusted backend can bind verified values to it after it starts, with the same endpoint as for phone calls: `POST /agent/calls/{call_sid}/context`. The key must be declared in the service's `accepted_context`. The caller needs an admin or owner workspace API key, a higher role than the one that starts a session. Use the `call_sid` from the start response, and send the request after the app receives the `call_progress` frame: until the session is live the call is not found and the request returns `404`. Start-time context is not part of a session start request. See [Set Context on a Live Voice Call](https://docs.concurrence.com/developer-guide/guides/live-call-context) for the contract, including what a repeat or conflicting value returns.

## What Is Fixed

* The audio format is 24 kHz, 16 bit, mono in both directions. There is no other input rate and no transcoding.
* The turn mode is hold to talk.
* `gpt_live` supports multi-state Context Graphs in US workspaces without regional data residency. It also serves inbound phone calls, Playground, and test calls. Outbound calls, warm transfer, and operator takeover are not available.
* `eleven_realtime` also serves inbound phone calls, the Playground, and test calls. Outbound calls are not available. Phone calls support end call and cold transfer through the configured call controls. An app session does not dial a transfer destination. See [Eleven Realtime](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#eleven-realtime).
* `grok_voice` also serves inbound phone calls, the Playground, and test calls, in workspaces without regional data residency. Outbound calls, warm transfer, and operator takeover are not available. See [Grok Voice](https://docs.concurrence.com/developer-guide/platform-api/workspaces/voice-configuration#grok-voice).

***

**You are here:** step 8 of 10 in [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path), Run a Voice Session in Your App.

**Previous:** [Step 7: Build and Prove With Simulations](https://docs.concurrence.com/developer-guide/guides/build-and-prove). **Next:** [Step 9: Operate and Improve](https://docs.concurrence.com/developer-guide/guides/operate-and-improve).


# 9. Operate and Improve

Investigate a Platform run, use supported operator controls, reconcile incomplete effects, and turn observed failures into repeatable evaluations.

Start with the workspace, run or conversation identifier, approximate time, and the outcome being investigated. Use a credential permitted to inspect that workspace. Operator actions require additional permissions and channel support.

<figure><img src="https://1651797362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2YwM0LHtEGLt9S21OyC3%2Fuploads%2Fgit-blob-2bb272412e01e74a094dadd2095ed6dc4167b10e%2Foperate-improve-flow.svg?alt=media" alt="Locate the run and inspect evidence, select supported channel-specific controls, reconcile outcomes, reproduce the failure as an evaluation, and use Build and Prove to review the candidate before release."><figcaption><p>Use the channel’s lifecycle controls, then turn a reproduced failure into a candidate evaluation.</p></figcaption></figure>

## Find the Execution

In the standard Console workspace, open **Evaluate → Runs**. Operator-only workspaces retain **Operate → Runs**. The unified inventory includes supported conversation and framework run records, and the old Conversations listing redirects there. Conversation detail remains the place to inspect the underlying conversation. The [Runs API](https://docs.concurrence.com/developer-guide/platform-api/conversations/runs) documents filtering, detail, and supported controls.

Record the selected service/version, channel, execution state, and available error or correlation identifiers. In a run's **Run details**, **What ran** shows the runtime, versions, version set, models, and speech and voice providers the run recorded, and **Current configuration** shows the service's current configuration, which can differ from what ran. Read history and traces as evidence with their stated completeness limits. A generated summary or missing recording link is not sufficient to determine whether an action completed.

## Choose the Correct Lifecycle Action

| Observation                                                       | Next action and verification                                                                                                                                                                                                                                                                                                     |
| ----------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| An application text conversation has reached its intended outcome | Apply the documented [conversation close](https://docs.concurrence.com/developer-guide/platform-api/conversations) behavior and read back its state. Preserve the durable answer before cleanup                                                                                                                                  |
| A persistent text connection drops                                | Follow the [session protocol](https://docs.concurrence.com/developer-guide/platform-api/platform-api/sessions). Verify the conversation state before creating another interaction                                                                                                                                                |
| A managed message thread is complete                              | Use that [channel's lifecycle](https://docs.concurrence.com/developer-guide/platform-api/conversations). Thread identity, terminal closure, and a forced new conversation are separate decisions                                                                                                                                 |
| An eligible voice run needs human intervention                    | Use your [operator API integration](https://docs.concurrence.com/developer-guide/platform-api/conversations/operators), as described in [Build Your Own Operator Console](https://docs.concurrence.com/developer-guide/guides/build-an-operator-console). Verify takeover and handback separately. Voice operators join by phone |
| An integration action is approved or a request times out          | Inspect the target system before retrying, because [approval alone does not confirm that the action completed](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action)                                                                                                                                 |

Do not apply one channel's close or retry behavior to every session type. Where an outcome is ambiguous, preserve identifiers and reconcile before repeating a mutation.

## Recover and Escalate

Follow [Troubleshoot an Integration](https://docs.concurrence.com/developer-guide/guides/troubleshooting) to locate access, configuration, execution, projection, and external-delivery failures. Record the last successful step, the observed error, and the next check. Share only the information needed to investigate through the agreed support channel.

## Improve

Review **Home → Insights** for patterns across runs. Open **Evaluate → Metrics** for metric definitions, and find **Dashboards** through Console search. Use [quality metrics](https://docs.concurrence.com/testing/testing/metrics), [production evaluations](https://docs.concurrence.com/developer-guide/platform-api/safety/production-evals), and [trace analysis](https://docs.concurrence.com/developer-guide/platform-api/safety/call-trace-analysis) according to their access and coverage limits.

Turn a reproduced failure into a test case with a stated expected result. Test the proposed configuration against that case using [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove). Record cases that could not be evaluated separately from passes, and check model-generated assessments against the underlying run and target-system records.

***

**You are here:** step 9 of 10 in [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path), Operate and Improve.

**Previous:** [Step 8: Run a Voice Session in Your App](https://docs.concurrence.com/developer-guide/guides/app-voice-session). **Next:** [Step 10: Govern a Deployment](https://docs.concurrence.com/developer-guide/guides/govern-a-deployment).


# 10. Govern a Deployment

Confirm workspace access, feature provisioning, regional processing boundaries, and operational responsibilities before enabling a customer workflow.

Prepare this record with the implementation and access owners before enabling a workflow. Console's **Govern** area brings together Members & Access, API Keys & Tokens, Compliance & Audit, and Settings. Access to a Console page does not grant every underlying operation.

## Establish Access

Use [Choose Credentials](https://docs.concurrence.com/developer-guide/getting-started/credentials) to select the caller and credential. Confirm the assigned workspace, the permissions needed for each task, and who can rotate or revoke access. Keep integration credentials in the trusted environment and review the owning [authentication contract](https://docs.concurrence.com/developer-guide/platform-api/platform-api/authentication).

## Confirm Availability and Region

Check [Capability and Availability](https://docs.concurrence.com/platform-overview/capability-availability) for the distinction between supported interfaces, provisioning, previews, and demos. Record the actual enablement evidence for this workspace. A demonstration is not an enrollment record.

Use [Regions & Endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints) for the assigned host. Confirm each additional service, including managed channels, separately. A regional API hostname alone does not establish the location of every processor or supporting service.

| Record                 | Required decision or evidence                                                             |
| ---------------------- | ----------------------------------------------------------------------------------------- |
| Workspace and access   | Tenant identifier, credential/principal, permissions, accountable access owner            |
| Capability             | Supported interface, Console visibility, preview/provisioning agreement where needed      |
| Region and processing  | Assigned hosts, permitted processing/data paths, approved external dependencies           |
| Retention and recovery | Agreed retention/deletion behavior, recovery expectations, and responsible owner          |
| Operational readiness  | Monitoring evidence, intervention route, escalation contact, rollback/reconciliation plan |
| Verification           | Test deployment, observed outcome, remaining limitation, reviewer, and date               |

## Review the Deployment Evidence

Use the [Technical Evaluation Packet](https://docs.concurrence.com/platform-overview/evaluation-packet), [Data Residency](https://docs.concurrence.com/platform-overview/data-residency), and [Compliance and Audit](https://docs.concurrence.com/operations-and-safety/compliance) to keep configuration choices distinct from contractual commitments. An API reference, source commit, or configuration snapshot does not establish a service-level commitment.

Recheck the record when adding a channel, processor, integration, or region, and before promoting a materially changed workflow. Use [Current Upgrade Guidance](https://docs.concurrence.com/api-reference/change-logs/upgrade-guide) when older clients or retired interfaces are involved.

***

**You are here:** step 10 of 10 in [Learn by Building](https://docs.concurrence.com/developer-guide/guides#implementation-path), Govern a Deployment.

**Previous:** [Step 9: Operate and Improve](https://docs.concurrence.com/developer-guide/guides/operate-and-improve). **Next:** you have finished the path. Revisit [Operate and Improve](https://docs.concurrence.com/developer-guide/guides/operate-and-improve) and [Build and Prove](https://docs.concurrence.com/developer-guide/guides/build-and-prove) for each change, or browse the [other guides](https://docs.concurrence.com/developer-guide/guides#more-guides).


# Set Context on a Live Voice Call

Set verified context on a live voice call from a trusted backend so context-bound tools receive the value server-side without the model seeing it.

Use this endpoint when a trusted backend learns a verified value, such as a patient ID, only after a voice call has started. The backend sets the value on the live call, and any tool bound to that context key receives it server-side when it runs. The value never enters the model's prompt, so the agent does not hear, say, or choose it.

A common pattern is a verification step that runs before the call reaches the agent. Instead of reading the verified ID aloud in a handoff briefing, the backend sends it to Concurrence over an authenticated API call.

This guide extends [Pass Context to Tool Parameters](https://docs.concurrence.com/developer-guide/guides/conversation-context), which covers start-time context, `accepted_context`, and Context Graph bindings. Read that guide first.

{% hint style="warning" %}
**Your backend owns correlation.** The platform checks that the call belongs to your workspace and that the key is declared. It cannot check that the value belongs to the person on this call. Binding one person's ID to another person's call is the main risk in this integration, and only the sender can prevent it. Follow [Find the Call](#find-the-call) exactly.
{% endhint %}

## Before You Start

You need:

* A voice service whose `accepted_context` declares the key. See [Declare the Key](#declare-the-key).
* A Context Graph whose tool binding names the key through `context_bindings` or `context_binding_aliases`, as in [Bind a Parameter in the Context Graph](https://docs.concurrence.com/pages/2aLSJdlgnky98MXI6u5M#id-2.-bind-a-parameter-in-the-context-graph).
* A workspace API key whose role holds `Conversation:CreateForPrincipal`. Admin and owner roles hold it, and a key narrowed to only that permission works. A key without it gets `403`. Keep the key in your backend's secret store. Never put it on a device, in a browser, or in an agent's prompt. Prefer a dedicated key with a short expiry. See [Authentication & API Keys](https://docs.concurrence.com/developer-guide/platform-api/platform-api/authentication).
* The agent engine host for your region. The endpoint is served by the agent engine, not the Platform API host: `https://agent-engine.api-us.concurrence.com` in US production. See [Regions & Endpoints](https://docs.concurrence.com/developer-guide/getting-started/regions-and-endpoints#service-specific-hosts).

This operation is not published in the Platform OpenAPI document, so this page describes its contract directly.

## Declare the Key

Add the key to the service's `accepted_context`:

```json
{
  "key": "patient-id",
  "type": "string",
  "required": false,
  "description": "Verified patient ID set by the backend after verification"
}
```

* Use `required: false`. The value arrives after the call starts, so nothing supplies it at call start.
* Use `string` for identifiers, even numeric-looking ones, so leading zeros survive. A `number` key accepts only a JSON number.
* `channel-id` is reserved and cannot be set through this endpoint.
* A service update replaces the whole `accepted_context` list. Keep every key you still need. See [Declare the Schema on the Service](https://docs.concurrence.com/pages/2aLSJdlgnky98MXI6u5M#id-1.-declare-the-schema-on-the-service).

An undeclared key returns `422`. Keep the tool binding on the tool that calls your API, not on a companion skill's own inputs. See [How the Agent Uses the Value](#how-the-agent-uses-the-value).

## Find the Call

The endpoint needs the call's `call_sid`. Poll the active-sessions list after you place or receive the call:

{% openapi src="<https://platform.api-us.concurrence.com/v1/openapi.json>" path="/v1/{workspace\_id}/sessions/active" method="get" %}
<https://platform.api-us.concurrence.com/v1/openapi.json>
{% endopenapi %}

The list is best-effort and real-time. A new call usually appears within a few seconds, but it can appear late. Take a `call_sid` only when **exactly one** entry matches all of these:

* `service_id` is the service you expect.
* `caller_id` is the number the call came from.
* The session started at or after the time you placed or transferred the call. Derive the start from `duration_seconds` and the time you read the list.
* No other call of yours has already claimed that `call_sid`.

If more than one entry matches, or none does, do not send the value. The agent then handles the call without it, under whatever policy your Context Graph defines for unverified callers. When your calls share an origin number, for example a fixed trunk number, concurrent calls share a `caller_id`, so this rule matters most.

## Set the Value

Send the value as soon as you have the `call_sid`, before the agent needs it:

```http
POST https://agent-engine.api-us.concurrence.com/agent/calls/{call_sid}/context
Authorization: Bearer <workspace API key>
Content-Type: application/json

{"context": {"patient-id": "TEST-PATIENT-0001"}}
```

| Part       | Rule                                                                                                                                               |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `call_sid` | The value from the active-sessions entry. Up to 64 characters of letters, digits, `_`, and `-`.                                                    |
| `context`  | An object with 1 to 50 keys.                                                                                                                       |
| Key        | A key declared in the service's `accepted_context`: 2 to 63 lowercase letters, digits, and internal hyphens.                                       |
| Value      | A JSON string of 1 to 1,024 characters, or a JSON number. The type must match the declaration. Booleans, arrays, objects, and `null` are rejected. |

Put the value only in the request body. Never put it in the URL path or query string.

### Set-Once Semantics

Each key can be set once per call:

* Sending the same value again returns `200` with the key reported as `unchanged`.
* Sending a different value for a key that is already set returns `409`. Nothing is overwritten, and the original value stays.
* A request with several keys is applied together. Keys that conflict are reported, and the others are still bound.

Because of this, resending the same body after a timeout or `503` is safe. Outbound voice calls created with a start-time `context` map hold those keys from the start, so setting one of them to a different value also returns `409`.

## Responses

A successful request returns:

```json
{
  "call_sid": "2c725f98-a9c6-4be2-8a48-6eb42d1f81cb",
  "keys": { "patient-id": "bound" }
}
```

Error bodies name keys, never values.

| Status | Body                                                                                                                                                                                                                                                               | What to do                                                                                                                                                                                                                                                              |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `200`  | Each key is `bound`, or `unchanged` on a repeat with the same value                                                                                                                                                                                                | Done.                                                                                                                                                                                                                                                                   |
| `401`  | Missing, invalid, or expired credential                                                                                                                                                                                                                            | Fix the credential. Do not retry with the same one.                                                                                                                                                                                                                     |
| `403`  | `"Setting call context requires Conversation:CreateForPrincipal"`                                                                                                                                                                                                  | Use a key whose role holds that permission. Do not retry.                                                                                                                                                                                                               |
| `404`  | `"Call not found"`                                                                                                                                                                                                                                                 | The call is unknown, has ended, or belongs to another workspace. All three look the same. A call whose conference has ended also answers `404` even while its session is still tearing down, so set the value before the call ends. Check the `call_sid`. Do not retry. |
| `409`  | `message`, `conflicting_keys`, and the per-key outcomes in `keys`                                                                                                                                                                                                  | A different value is already set for this call. Treat it as a correlation bug: do not retry, and alert.                                                                                                                                                                 |
| `422`  | `message` of `"Undeclared context keys"`, `"Reserved context keys"`, or `"Context value type mismatch"`, with the affected `keys`. For a malformed body, a validation error whose `detail` entries carry only `loc`, `msg`, and `type`, never the submitted values | A configuration or client bug. Fix the declaration or the request. Do not retry.                                                                                                                                                                                        |
| `503`  | `"Call context store unavailable"` or `"Service config unavailable"`                                                                                                                                                                                               | Nothing was written. Retry the same body with exponential backoff, for about 10 seconds in total.                                                                                                                                                                       |

## How the Agent Uses the Value

Your backend sets each key once per call, after it has verified the caller and found the call.

<figure><img src="https://1651797362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2YwM0LHtEGLt9S21OyC3%2Fuploads%2Fgit-blob-880ee733fb9fddc3f5044271559d50788e60fe9b%2Flive-call-context-flow.svg?alt=media" alt="A tool bound to a declared key is refused until your backend sets the key on the live call with POST /agent/calls/{call_sid}/context. Once the key is set, the tool runs with the value injected, and the model never sees it."><figcaption><p>Each key is set once per call. Error bodies name keys, never values.</p></figcaption></figure>

* **Injected at dispatch.** A tool whose binding names the key receives the value when it runs. The model does not supply it and cannot override it. A value the call already started with takes precedence.
* **Fails closed until set.** On voice calls, a binding to a declared key that the call did not start with refuses to run until the key is set. The tool returns a rejected-input result instead of calling your system without the value. This applies to `context_bindings` lists as well as aliases, and on voice it takes precedence over the missing-optional-key behavior in [Pass Context to Tool Parameters](https://docs.concurrence.com/pages/2aLSJdlgnky98MXI6u5M#id-3.-supply-values-when-creating-the-conversation). Text conversations follow that page.
* **Retry after the key lands.** If the tool runs before your request arrives, it is refused, and the agent can call it again on a later turn. On some voice runtimes, the agent also receives a short note naming the key (never the value) when it is set, without interrupting the caller.
* **Store failures fail closed.** If the stored value cannot be read, the tool returns a generic error instead of running without it.
* **Not on companion skill inputs.** On voice, a companion skill whose own inputs bind a declared key that the call did not start with is refused, whether or not the key is later set, because skill inputs are framed into the skill's prompt. Bind the key on the tool that calls your system instead.
* **Scrubbed from tool output.** Where a value is at least four characters long, it is replaced with `[<key>]` in tool results and error text the model sees, including encoded forms such as a URL that echoes it. Shorter values are not scrubbed. Do not echo the value back in your API responses if you can avoid it.
* **Kept only for the call.** The value expires automatically shortly after the platform's maximum call duration.

## Verify in a Test Workspace <a href="#verify-in-staging" id="verify-in-staging"></a>

1. Declare the key on a service in your test workspace and bind it on a read-only test tool that reports the parameter it received.
2. Place a test call and find its `call_sid` with the matching rule above.
3. Send a synthetic value such as `TEST-PATIENT-0001`. Expect `200` with `bound`. Send it again: `200` with `unchanged`. Send `TEST-PATIENT-0002`: `409`.
4. Ask the agent something that needs the tool. Confirm the test tool received `TEST-PATIENT-0001`.
5. Confirm the agent never says the value and that it does not appear in the call transcript.
6. Try the request with a key that lacks the permission (`403`) and with a made-up `call_sid` (`404`).

Model narration alone does not prove which value reached the tool, so check the tool's own record. Remove the test key and binding afterwards if the configuration is temporary.


# Data to a Verified Action

Follow a synthetic record from a supported source through queryable data and agent access to an independently verified external integration outcome.

Use a synthetic record and an approved test destination to verify the whole data path. Obtain a configured source, supported mapping, permitted read access, and an integration whose test behavior and mutation permissions are understood. If any prerequisite is missing, complete provisioning before running the corresponding step.

For a hospital integration, first agree on the [exchange pattern and interface scope](https://docs.concurrence.com/data/healthcare-interoperability). Inbound patient or scheduling notifications and outbound changes need separate access, tests, and confirmation. The steps below assume a supported, provisioned source and target.

<figure><img src="https://1651797362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2YwM0LHtEGLt9S21OyC3%2Fuploads%2Fgit-blob-1b8b808583aadcf0517cf69a0f66538d6dea14f9%2Fdata-verification-flow.svg?alt=media" alt="Follow a synthetic record through input acceptance, asynchronous queryability, demonstrated agent retrieval, path-specific authorization, and independent confirmation in the target system."><figcaption><p>Each arrow requires new evidence. Acceptance does not establish queryability, retrieval, or external completion.</p></figcaption></figure>

## Define the Data and Action Contract

Choose one bounded workflow and record what makes its inputs usable. For clinical measurements, use [Reusable Clinical Data](https://docs.concurrence.com/data/clinical-data-contracts) to specify subject identity, units, measurement time, allowed age, missing-data behavior, and calculation version. Keep the original source references with the normalized result.

Name the system that owns the task and the system that confirms the action. They can be different: an application can own a referral task while the scheduling system owns its booking. Define the evidence that permits each step to complete, the response to a concurrent change, and the owner of an ambiguous result.

Prepare synthetic cases with known expected results. For the BMI mapping example, 70 kg with 175 cm and 70,000 g with 1.75 m both produce 22.86 kg/m² for display. A missing weight unit or zero height takes the specified rejection or review path. These cases validate a calculation, not clinical eligibility.

## Connect the Source

Configure a supported [intake source](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/intake-sources) or submit records through [FHIR import](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/fhir). Data-source records are not polled. Record the source identifier and the submitted record's external identifier so that you can locate the same record later.

[Authenticated dataset intake](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/intake) and [browser Surfaces](https://docs.concurrence.com/developer-guide/platform-api/conversations/surfaces) have different contracts. A Surface submission does not automatically create a dataset file. Source support and parsing must be confirmed for the chosen format.

## Verify Queryable Data

Use **Data → Records** and the relevant [entity read](https://docs.concurrence.com/developer-guide/platform-api/data-world-model#entity-reads) or [FHIR resource read](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/fhir) to locate the intended record and inspect source attribution. Verify its identity and the fields needed by the workflow. World-model read views update asynchronously; acceptance of an input is not evidence that the corresponding projection is already queryable.

If the record is missing or stale, inspect source status, mapping, identity resolution, and freshness before resubmitting. Preserve the original identifiers. Caller recognition may require a separate [external identity binding](https://docs.concurrence.com/developer-guide/platform-api/integrations/external-user-subject-key-binding); a queryable record alone does not prove recognition is ready.

Compare the read result with the prepared case: subject, source values, normalized units, measurement time, and calculation inputs. Check the source's clinical time separately from receipt time; a fresh import can contain an old measurement. For a derived value, retain its input references and calculation version in the test evidence. Use [pipeline monitoring](https://docs.concurrence.com/developer-guide/platform-api/data-world-model/connector-runner) for stored ingestion evidence, then verify the specific record through its supported read interface.

## Verify Agent Access

Configure the test service with the intended graph, query/tool access, and subject context. Run the bounded interaction from [First Verified Conversation](https://docs.concurrence.com/developer-guide/guides/first-verified-conversation) against that configured test service. Check the retained answer and available tool evidence against the synthetic source record. A plausible answer does not establish that the agent retrieved the intended source.

Expose the reviewed calculation through a supported [platform function](https://docs.concurrence.com/developer-guide/platform-api/functions) or [workspace data query](https://docs.concurrence.com/developer-guide/platform-api/functions/workspace-data-queries) as appropriate to its inputs. Workspace queries read workspace-owned tables; they are not an automatic query path into every world-model view. Verify the returned value, missing-data behavior, and permitted subject selection before testing the conversation.

## Verify the External Outcome

Follow [Verify an Integration Action](https://docs.concurrence.com/developer-guide/guides/verify-an-integration-action) for the authorized test mutation, expected failure, target acknowledgement or read-back, and reconciliation. Apply approval requirements only to the integration path that implements them.

| Milestone                 | Evidence to keep                                                             |
| ------------------------- | ---------------------------------------------------------------------------- |
| Submitted                 | Source and request identifiers, and input acceptance or rejection            |
| Queryable                 | Intended entity, source attribution, required fields, and observed freshness |
| Used by the workflow      | Service/version, conversation/run, and available retrieval or tool evidence  |
| Authorized                | Required permission and approval decision for the specific action            |
| Completed externally      | Target acknowledgement or independent read-back                              |
| Reconciled and cleaned up | Resolution of ambiguous attempts and cleanup of the permitted test resources |

Stop at the last verified milestone when later evidence is missing. Use [Troubleshooting](https://docs.concurrence.com/developer-guide/guides/troubleshooting) for the next diagnostic rather than repeating an uncertain mutation.

## Exercise Corrections and Concurrent Changes

Run the cases below against the selected integration and application contracts. Record the actual outcome and owner when a required behavior is unavailable. Do not treat an authored instruction as enforcement.

| Case                                           | Evidence of the intended behavior                                                                                          |
| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Repeat the same source record                  | The chosen ingestion or application deduplication policy preserves one logical observation for the calculation             |
| Deliver a measurement after its clinical date  | The calculation applies the agreed time window, and receipt time does not silently replace measurement time                |
| Correct an input already used by a task        | The new derivation is inspectable and the task owner rechecks affected pending work                                        |
| Submit two competing task updates              | The authoritative application detects or serializes the conflict under its documented mutation contract                    |
| Change the user's request during a slow lookup | The application checks that the returned result still belongs to the active request                                        |
| Lose the response after an external write      | The action stays unresolved until destination evidence is reconciled. Retries follow that operation's idempotency contract |

In a version-checked application, capture both the version each client read and the version accepted by the mutation. Keep any rejected edit available for review or reapplication. An optimistic display of an edit is not confirmation that the shared projection or external system accepted it.

## Finish with a Reusable Evidence Package

Keep the synthetic source records, mapping and calculation versions, expected and observed outputs, service configuration, run references, destination confirmation, and recovery results together. Have the implementation owner identify unresolved cases and the evidence required to close them.

End test conversations and cancel synthetic bookings or tasks through the system that owns them. Handle retained test records under the workspace's retention policy. Ending a conversation does not erase its evidence.

Production use adds authorized source access, clinical acceptance, representative data coverage, channel provisioning, workload testing, and operating support. Before using the same logic for a second workflow, review its [reuse package and deployment bindings](https://docs.concurrence.com/data/connect-another-workflow#package-the-reusable-parts).


# Test a Managed SMS Workflow

Test a provisioned SMS workflow through routing, consent controls, conversation evidence, recipient delivery, suppression, and operational handoff.

A working text client does not verify SMS delivery. Use a provisioned test use case and a recipient controlled by your test team to exercise the actual channel. This guide follows Concurrence's managed SMS boundaries. Use [SMS](https://docs.concurrence.com/developer-guide/platform-api/conversations/sms) for the implementation contract and [SMS concepts](https://docs.concurrence.com/channels/sms) for sender and consent-control behavior. If your own backend sends through the Channel Manager API without a workspace service, follow [Launch an SMS Outreach Campaign](https://docs.concurrence.com/developer-guide/reference-guides/launch-sms-outreach-campaign) instead.

## Before You Start

Complete managed provisioning with Concurrence: the sender resources and registration, eligible use-case identifier, workspace linkage, and inbound routing must be ready. Your team must hold consent evidence appropriate to the sending brand and intended test messages. Also have a configured test service, a controlled recipient, access to the exposed delivery evidence, and a Concurrence contact for managed-channel issues.

A workspace credential can use the public service-binding and conversation operations. It does not grant the separate sender-provisioning or suppression-management permissions. Record the test sender, recipient, use case, and responsible operator before sending.

<figure><img src="https://1651797362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2YwM0LHtEGLt9S21OyC3%2Fuploads%2Fgit-blob-c33d05cc0e9e10a8d55cf1eb4eabfd5f577b7e8e%2Fsms-delivery-evidence.svg?alt=media" alt="Confirm provisioning, consent and suppression controls, then verify routing, the conversation and send decision, provider acceptance, exposed delivery status, and receipt by the controlled test recipient."><figcaption><p>Keep these observations separate. Missing delivery evidence remains an unresolved result.</p></figcaption></figure>

## 1. Verify Routing

Use [Use Cases and Bindings](https://docs.concurrence.com/developer-guide/platform-api/workspaces/use-cases) to inspect the provisioned use case's service binding. Confirm that inbound test content reaches the expected service. A binding establishes routing. It does not establish registration approval or recipient consent.

## 2. Send One Bounded Test

Follow [Starting an Outbound Conversation](https://docs.concurrence.com/developer-guide/platform-api/conversations#starting-an-outbound-conversation) with the SMS channel, configured service, managed use case, and controlled recipient. The managed channel selects the sender from its provisioned resources.

Record separate observations:

1. Whether conversation creation succeeded and which conversation was selected.
2. What the agent produced and whether channel policy accepted the send.
3. Provider acceptance and any later delivery status available for the deployment.
4. What the controlled recipient actually received.

If a final carrier receipt is unavailable, record that absence. A screenshot from the controlled recipient can support this test's observed receipt. It does not establish a universal delivery guarantee.

## 3. Exercise Inbound and Suppression Behavior

Reply from the controlled recipient and verify that ordinary content reaches the intended non-terminal conversation. Phone continuity does not by itself establish patient identity.

On the supported sender path, exercise the recognized opt-out flow with the provisioning owner. Verify that ordinary sends are suppressed across the managed business setup. Do not try another sender or conversation as a way to bypass suppression.

On the supported toll-free path, `START` or `UNSTOP` clears the line-specific opt-out only. Setup-wide suppression requires a separately authorized reversal with a recorded reason. Agree on test cleanup with the channel operator before exercising this case. A client with Channel Manager's `sms:consent:write` permission can use the [recipient API](https://docs.concurrence.com/developer-guide/platform-api/conversations/channel-manager#sms-recipient-opt-in-and-opt-out) for this step. A workspace API key alone cannot authorize it.

## 4. Decide Whether the Channel Is Ready

Pass the test only when routing, expected recipient behavior, policy checks, and exception ownership are supported by the evidence. Mark an unavailable receipt or unresolved send explicitly rather than converting it into delivery success. An opt-in-message send record establishes provider acceptance of that message, not proof of prior consent.

Close test conversations when appropriate. Retain suppression and consent records according to the agreed process. Do not clear them merely to get a test to pass. For a production launch, repeat the relevant cases with the actual approved sender configuration, channel-specific limits, monitoring, and staffed escalation path.

Use [Troubleshoot an Integration](https://docs.concurrence.com/developer-guide/guides/troubleshooting) to package missing-delivery evidence for the team that owns the failing boundary.


# Run Arbiter Voice Tests

Validate and apply an Arbiter suite, place black-box test calls to an approved phone target, gate on exit codes, and read reports and transcripts.

Arbiter places real phone calls to a voice agent, plays the caller, and grades what the caller can observe. The target can be a phone agent built outside Concurrence at an approved, reachable number.

## Before You Start

Arrange Arbiter access with your Concurrence implementation team. Before testing, confirm the following.

* Provisioned Arbiter access, with the `arbiter` CLI installed and its profile and authentication configured for you
* A phone target you are approved to call, registered as an Arbiter target
* Synthetic records in the target system, and a provisioned caller-ID number when the scenario depends on phone lookup

Runs place real calls and can change the target system. Use synthetic records and test endpoints. Check the setup before the first run:

```bash
arbiter config doctor
```

## Inspect Targets, Suites, and Cases

```bash
arbiter target list
arbiter suite list
arbiter suite get <suite-id>
arbiter case list <suite-id>
```

Add `--json` to any command for machine-readable output.

## Validate and Apply a Suite File

A suite file is YAML or JSON in the Arbiter API format. `display_name` and `agent_target_id` are required.

```yaml
display_name: Scheduling regression
agent_target_id: <target-id>
language: en-US
cases:
  - name: Reschedule for a synthetic patient
    mode: llm
    persona: A polite caller who wants to move an appointment to next Tuesday.
    number_of_runs: 3
    assertions:
      - type: call_completed
      - type: llm_judge
        prompt: The agent confirms the new appointment day before the call ends.
        expect: true
```

Replace `<target-id>` with the `id` from `arbiter target get <name> --json`. A case uses `mode: llm` with a persona or `mode: scripted` with a `script`.

```bash
arbiter suite validate suite.yaml
arbiter suite apply -f suite.yaml
```

`suite validate` runs offline and exits `0` when the file is valid and `2` otherwise. Add `--strict` to treat warnings as errors. `suite apply` creates a suite when the file has no top-level `id` and replaces the suite when it has one. An unknown `id` exits `4` and does not create a suite.

## Run a Suite and Gate on the Result

```bash
arbiter suite run <suite-id> --fail-on-suite-fail --fail-on-inconclusive \
  -o report.json --junit arbiter.xml
```

Use `arbiter case run <suite-id> <case-id>` for one case. The CLI prints `launched run <run-id>` when the launch is accepted. Record that ID.

`--wait` alone exits `0` for any completed run, including one with failed cases. Add a gate flag to fail a pipeline. Both gate flags imply `--wait`.

| Exit code | Meaning                                                                                                                                |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `0`       | The run completed and no selected gate failed                                                                                          |
| `10`      | The run completed, and the suite verdict failed with `--fail-on-suite-fail` or a result was inconclusive with `--fail-on-inconclusive` |
| `11`      | The run ended as failed or cancelled                                                                                                   |
| `12`      | `--wait-timeout` elapsed. The run keeps going                                                                                          |
| `130`     | The wait was interrupted. The run keeps going unless you passed `--cancel-on-interrupt`                                                |

The CLI writes `-o` and `--junit` after the run ends and before it decides the exit code. A report or file write error can still prevent an artifact, so have CI check that the expected files exist and retain them. The JUnit file reports an inconclusive case as skipped unless `--fail-on-inconclusive` is set.

## Read the Report and Transcripts

```bash
arbiter run get <run-id>
arbiter run report <run-id> -o report.json --junit arbiter.xml
arbiter run transcript <run-id> --case <case-id>
```

`run report` retries while the report is being written, up to `--report-timeout`. Expect passed, failed, inconclusive, and errored counts, per-case assertion results, and transcripts. Review inconclusive and errored results as part of the total.

## Recover Without Duplicate Calls

* **Unknown launch.** A launch is sent once and is not retried. If it fails with a network or server error, or is interrupted before it returns, the run may or may not exist. Check `arbiter run list` before you launch again, because a second launch places a second set of calls.
* **Timeout or interrupt.** After exit `12` or `130` the run continues. Re-attach with `arbiter run watch <run-id>`, or stop it with `arbiter run cancel <run-id>`.
* **Cleanup.** Reverse any changes the calls made to synthetic records. `arbiter suite delete <suite-id> --yes` archives a finished suite.

## What a Passing Run Shows

A passing run is caller-observable evidence for the target and suite you ran. It does not show the target's internal tool calls or confirm an external write. Pair it with logical tests and external-action checks as described in [Healthcare Agent Testing Method](https://docs.concurrence.com/testing/testing/healthcare-agent-testing). [Black-Box Voice Testing](https://docs.concurrence.com/testing/testing/voice-simulation) explains what each call artifact supports.




---

[Next Page](https://docs.concurrence.com/llms-full.txt/1)

