AI systems generate structured, high-fidelity data.
Legacy systems do not preserve it.
Reinterpreted
Silently dropped
Unmeasured
Non-recoverable
A scoring system (EFS)
Measurable fidelity
The standard for how
AI data survives
real-world systems.
CORD sits between AI systems and legacy software, ensuring structured data is preserved, translated, and measurable across every interaction.
JSON standardized how data is structured. CORD standardizes how AI-generated data survives translation.
If your system cannot measure data loss, it cannot trust its own outputs. CORD makes loss visible, auditable, and comparable across every translation.
Active implementations are currently being tested in production pipelines involving CRM systems, intake platforms, and AI-driven workflows.
AI systems are the new interface for data collection. Legacy systems were never designed to receive them.
AI systems are now the primary interface for data collection across healthcare, automotive, real estate, finance, and HR. Legacy systems — CRMs, EHRs, DMSs, ATSs — were built for form fields and flat schemas. They were never designed to receive structured AI output. Without a protocol layer, information loss is inevitable — and currently invisible. No standard exists to measure it. CORD changes that.
As AI becomes the primary interface for data collection, a protocol layer for preserving structured output becomes unavoidable. The question is not whether this layer will exist — it is whether it will be standardized or fragmented. CORD is the standardized answer.
What CORD is not
CORD occupies a precise layer. Understanding what it is not prevents misclassification and accelerates adoption decisions.
Without CORD vs. with CORD
- No structured envelope for AI-generated data
- No versioning model for interaction state
- No standard for dual-format output
- No measurement of information loss
- No per-field mapping status
- No auditable fidelity metric
- No conformance model for implementing systems
- Data loss is invisible, unaudited, and unmeasured
- Canonical Interaction Envelope for all AI output
- Snapshot and delta versioning with parent references
- Dual-format output: full-fidelity + legacy representation
- EFS: normalized fidelity score per translation
- FULL / PARTIAL / NONE mapping status per field
- Machine-readable loss report per envelope
- Four-tier conformance model including CORD-compatible
- Data loss is measured, recorded, and auditable
Why existing standards are insufficient
| Standard | Purpose | Gap relative to CORD |
|---|---|---|
| JSON / XML | Generic serialization | No interaction semantics, versioning, or loss model |
| OpenAPI / GraphQL | API schema definition | Defines transport contracts, not content fidelity |
| HL7 FHIR | Health data exchange | Domain-specific; no fidelity measurement; not AI-native |
| CloudEvents | Event metadata | Transport-layer; no interaction content or fidelity |
| ActivityStreams | Semantic activity modeling | No legacy translation model or loss quantification |
Protocol architecture
CORD operates at the data layer — above transport protocols, below application business logic. Six core concepts constitute a complete interaction fidelity protocol.
x_cord_digest. Enables tamper detection at the data layer without external signing infrastructure.Data flow
Envelope structure
The CORD Interaction Envelope is the canonical container for a single interaction event. All required fields must be present for CORD-compliant serialization.
Top-level fields
Required and optional columns match the published envelope schema. Fields marked optional may be omitted entirely — for example, an AI-to-AI handoff envelope omits target_system, legacy_output, and the legacy efs.
| Field | Type | Required | Description |
|---|---|---|---|
| cord_version | string | Yes | Spec version in use — e.g. "1.0" |
| envelope_id | string (UUID) | Yes | Globally unique envelope identifier |
| envelope_type | enum | Yes | "snapshot", "delta", or "handoff" |
| version | integer | Yes | Monotonic counter within a version chain |
| parent_envelope_id | string (UUID) | Optional | UUID of parent envelope; omitted for chain roots |
| created_at | string (ISO 8601) | Yes | UTC creation timestamp |
| domain | string | Yes | Classification domain — e.g. "healthcare" |
| source_system | string | object | Yes | Originating AI system. String, or {system_id, model} object |
| target_system | string | object | Optional | Target system. Omitted for AI-to-AI handoffs that have no legacy target |
| fields | object | Yes | Object keyed by field name; each value is a field object (see below) |
| legacy_output | object | Optional | Flattened legacy-format representation; omitted when there is no legacy translation |
| loss_report | object | Optional | EFS score and per-field mapping status; present whenever a translation or handoff is scored |
| event_log | array | Optional | Ordered list of typed interaction events |
| x_cord_digest | string | Recommended | SHA-256 digest for envelope integrity. Format: "sha256:<hex>". See Security. |
Field object structure
fields is an object keyed by field name. Each value is a field object:
| Property | Type | Description |
|---|---|---|
| value | any | Field value — string, number, array, or object |
| type | string | Semantic type — e.g. "text", "code", "date", "structured" |
| confidence | float [0.0–1.0] | AI system confidence in this field value |
| source | string | Value origin — e.g. "nlp", "user_input", "classifier" |
| changed | boolean | True if field changed from parent (delta envelopes only) |
Envelope examples
{
"cord_version": "1.0",
"envelope_id": "a3f9c201-7d42-4b1a-9e0f-2c88d3f5ab01",
"envelope_type": "snapshot",
"version": 1,
"created_at": "2025-09-14T10:22:00Z",
"domain": "healthcare",
"source_system": "intake-ai-v2",
"target_system": "epic-ehr-adapter",
"fields": {
"chief_complaint": { "value": "chest pain, onset 3 hours ago, radiating to left arm", "type": "text", "confidence": 0.97, "source": "nlp" },
"icd10_codes": { "value": ["R07.9", "R07.4", "I20.9"], "type": "code_array", "confidence": 0.84, "source": "classifier" },
"pain_score": { "value": 7, "type": "integer", "confidence": 0.92, "source": "nlp" }
},
"legacy_output": { "chief_complaint": "chest pain", "icd10_primary": "R07.9", "pain_score": "7" },
"loss_report": { "efs": 0.61, "field_mappings": [
{ "field": "chief_complaint", "status": "PARTIAL", "partial_coefficient": 0.5, "note": "Radiation and onset detail truncated" },
{ "field": "icd10_codes", "status": "PARTIAL", "partial_coefficient": 0.62, "note": "Primary code only; 2 of 3 codes lost" },
{ "field": "pain_score", "status": "FULL", "note": "Value preserved; type coerced to string" }
]},
"event_log": [
{ "event_type": "utterance", "timestamp": "2025-09-14T10:20:14Z", "actor": "patient", "content": "I have chest pain" },
{ "event_type": "classification", "timestamp": "2025-09-14T10:20:15Z", "actor": "intake-ai-v2", "field": "icd10_codes" }
],
"x_cord_digest": "sha256:e4a7c3f901b2d844a1e09f3bc20d1847e4a7c3f901b2d844a1e09f3bc20d1847"
}{
"cord_version": "1.0",
"envelope_id": "b7d1e443-2a91-4c8f-af20-d07c91f3bc12",
"envelope_type": "delta",
"version": 2,
"parent_envelope_id": "a3f9c201-7d42-4b1a-9e0f-2c88d3f5ab01",
"created_at": "2025-09-14T10:28:00Z",
"domain": "healthcare",
"source_system": "intake-ai-v2",
"fields": { "pain_score": { "value": 9, "confidence": 0.95, "changed": true } },
"legacy_output": { "pain_score": "9" },
"loss_report": { "efs": 1.0, "field_mappings": [{ "field": "pain_score", "status": "FULL" }] },
"x_cord_digest": "sha256:b9c2d7f1e30a5621c4890fd2b9c2d7f1e30a5621c4890fd2b9c2d7f1e30a5621"
}Envelope Fidelity Score (EFS)
EFS is a normalized metric on [0.0, 1.0] quantifying the proportion of semantic information preserved when a CORD envelope is translated into a legacy format. It is a required output of every CORD-compliant translation — and a publishable benchmark for any implementing system.
EFS: 0.61 means 39% of structured data fidelity was lost during translation. The remaining 61% was preserved in the legacy system. The loss is now visible, measured, and recorded.
field_mappings to understand the distribution of loss across fields.Mapping status taxonomy
| Status | Meaning | Fidelity contribution |
|---|---|---|
| FULL | Field value completely represented in legacy output. | Maximum weight contribution to EFS |
| PARTIAL | Field value partially represented. Some semantic content preserved; meaningful information was discarded or truncated. | Coefficient in range [0.5, 0.9] — baseline default is 0.5. |
| NONE | Field could not be represented in legacy output. No information from this field exists in the legacy record. | Zero contribution to EFS |
EFS output structure
{
"efs": 0.74,
"field_mappings": [
{ "field": "primary_diagnosis", "status": "FULL", "note": "Mapped to primary_dx without loss" },
{ "field": "symptom_history", "status": "PARTIAL", "note": "Duration and progression context truncated" },
{ "field": "differential_diagnoses", "status": "NONE", "note": "Target schema has no field for differential list" }
]
}EFS is computed as a weighted aggregate of per-field fidelity contributions: FULL = 1.0, PARTIAL = 0.5 baseline (range 0.5–0.9, implementation-defined), NONE = 0.0.
Confidence-based coefficient selection
When AI confidence scores are available on source fields, implementations SHOULD use them to refine the PARTIAL coefficient. A field with low confidence receives a coefficient at the lower bound (0.5); a field with high confidence may receive a coefficient toward the upper bound (0.9).
if (confidence < low_threshold) → coefficient = 0.5 if (confidence >= high_threshold) → coefficient = 0.9 otherwise → linear interpolation in [0.5, 0.9]
Display format
EFS is computed and stored as a decimal in [0.0, 1.0]. User interfaces MAY display EFS as a percentage for human readability. Implementations MUST NOT store the percentage form in place of the decimal in any envelope, log, or downstream record.
Auditable PARTIAL coefficients
When a field's mapping status is PARTIAL, the resolved coefficient SHOULD be recorded in the partial_coefficient property of the field mapping entry. This enables full auditability of EFS computation.
Envelope integrity and protection
CORD envelopes may contain sensitive personal, medical, or financial data. The protocol defines mechanisms for tamper detection, replay protection, and data confidentiality at the envelope layer.
x_cord_digest field containing a SHA-256 hash of the canonical JSON serialization (excluding the digest field itself). Format: sha256:<hex>.envelope_id uniqueness at ingestion and reject envelopes with a created_at timestamp older than an implementation-defined staleness threshold.Digest computation
// 1. Serialize envelope to canonical JSON (sorted keys, no whitespace) canonical = json_serialize(envelope, sort_keys=true, separators=[",",":"]) // 2. Exclude x_cord_digest field before hashing delete canonical["x_cord_digest"] // 3. Compute SHA-256 digest = sha256(canonical) // 4. Store as extension field envelope.x_cord_digest = "sha256:" + hex(digest)
When to use CORD
- AI-generated structured data passes through legacy or third-party systems
- Data transformations occur across system boundaries
- Fidelity, traceability, or auditability are critical
- Systems are natively interoperable with no schema mismatch
- No transformation or interpretation occurs during transit
- Data fidelity is not a concern for the use case
Conformance model
CORD defines four conformance levels. Conformance is assessed at the level of a complete translation pipeline — the originating AI system, the translation process, and the target legacy system.
Validation categories
Legacy-translation conformance is assessed against three base validation categories that every CORD-compliant envelope MUST pass. CORD v1.1 adds a fourth category that applies only to AI-to-AI handoff envelopes:
| Category | Name | Validates |
|---|---|---|
| 1 | Envelope Structure | All required fields present, correctly typed, structural constraints satisfied |
| 2 | EFS Reporting | loss_report present with valid EFS in [0.0, 1.0], field_mappings array with valid FULL/PARTIAL/NONE status on every entry |
| 3 | Mapping Completeness | Every source field in fields has a corresponding entry in loss_report.field_mappings — no silent omissions |
| 4 | Handoff-Aware v1.1 | Applies when the envelope is a handoff. Verifies that the sender attached the fidelity baseline (required_claims and producer_attestation), that handoff_chain is present and correctly ordered, and that the receiver computed handoff_efs against the baseline and returned it in loss_report. |
handoff envelopes — it adds the handoff fidelity contract on top of the base checks. A system that never emits handoffs remains fully CORD-Compliant on Categories 1–3 alone. Meeting all four earns the CORD-Compliant (Handoff-Aware) designation. Full definition in the AI Contract profile; carriage over MCP and A2A in Transport Bindings.Four conformance tiers
Fully satisfies all CORD specification requirements.
- Valid envelope with all required fields
- Correct snapshot / delta classification
- Monotonic version counter; parent references on all deltas
- Loss report with EFS per translation
- FULL / PARTIAL / NONE status on every source field
- Serialized as
application/cord+json
Satisfies core requirements; optional features may be omitted.
- Valid envelope with required fields
- Loss report with an EFS value
- Serialized as
application/cord+json - MAY omit: event log, per-field notes, version chaining
Produces or consumes CORD envelopes in part, or is in active migration.
- Can parse or emit core CORD envelope fields
- Does not yet produce full EFS or per-field mapping status
- Appropriate for systems migrating toward CORD-Partial or CORD-Compliant
Does not participate in the CORD ecosystem.
- No CORD-structured envelope produced
- No EFS or loss report generated
- Translation occurs without structured loss measurement
Non-compliant indicates the system does not participate in the CORD ecosystem — not that it is defective.
Reference examples
CORD envelopes across four domains. Each shows the AI-collected structured data, the compressed legacy output, and the resulting EFS.
AI intake assistant captures structured patient data during a voice interaction. Target: legacy EHR with a constrained schema.
{
"fields": {
"chief_complaint": { "value": "chest pain, onset 3h, left arm radiation, 7/10", "confidence": 0.97 },
"icd10_codes": { "value": ["R07.9", "R07.4", "I20.9"], "confidence": 0.84 },
"pain_score": { "value": 7, "confidence": 0.92 },
"allergy_list": { "value": ["penicillin", "sulfa"], "confidence": 0.99 }
},
"legacy_output": { "chief_complaint": "chest pain", "icd10_primary": "R07.9", "pain_score": "7", "allergies": "penicillin, sulfa" },
"loss_report": { "efs": 0.61, "field_mappings": [
{ "field": "chief_complaint", "status": "PARTIAL" },
{ "field": "icd10_codes", "status": "PARTIAL" },
{ "field": "pain_score", "status": "FULL" },
{ "field": "allergy_list", "status": "FULL" }
]}
}AI sales assistant captures structured customer intent during a dealership inquiry. Target: legacy DMS with a flat lead record.
{
"fields": {
"vehicle_interest": { "value": { "make": "Toyota", "model": "Camry", "year": 2025, "trim": "XSE" }, "confidence": 0.95 },
"budget": { "value": { "max_monthly": 650, "down_payment": 5000 }, "confidence": 0.88 },
"trade_in": { "value": { "make": "Honda", "model": "Civic", "year": 2019, "mileage": 48200 }, "confidence": 0.91 }
},
"legacy_output": { "vehicle_interest": "2025 Toyota Camry XSE", "monthly_budget": 650, "trade_make": "Honda", "trade_model": "Civic", "trade_year": 2019 },
"loss_report": { "efs": 0.81, "field_mappings": [
{ "field": "vehicle_interest", "status": "FULL" },
{ "field": "budget", "status": "PARTIAL" },
{ "field": "trade_in", "status": "FULL" }
]}
}Quick Start
Core operations required to produce a CORD-compliant envelope. Examples use pseudocode; any language or serialization library may be used.
1. Initialize an envelope
envelope = {
cord_version: "1.0", envelope_id: generate_uuid(),
envelope_type: "snapshot", version: 1,
parent_envelope_id: null, created_at: utc_now_iso8601(),
domain: "healthcare", source_system: "my-ai-system",
target_system: "target-crm", fields: {}, legacy_output: {}, loss_report: {}, event_log: []
}2. Add structured fields
envelope.fields["patient_name"] = { value: "Jane Smith", type: "text", confidence: 0.99, source: "user_input" }
envelope.fields["symptoms"] = { value: ["headache", "nausea"], type: "text_array", confidence: 0.87, source: "nlp" }3. Serialize to application/cord+json
payload = json_serialize(envelope)
http_post(url: "https://target.example.com/intake", headers: { "Content-Type": "application/cord+json" }, body: payload)4. Compute the loss report
loss_report = { efs: 0.0, field_mappings: [] }
total_weight = 0; fidelity_sum = 0
for name, field in envelope.fields:
status = assess_mapping(field, target_schema)
loss_report.field_mappings.append({ field: name, status: status })
fidelity_sum += get_field_weight(field) * fidelity_coefficient(status)
total_weight += get_field_weight(field)
if total_weight > 0: loss_report.efs = round(fidelity_sum / total_weight, 2)Adopt CORD
CORD is an open specification. There is no registration required to implement it.
Frequently asked questions
.cord.json envelopes and view EFS distributions, per-field loss heatmaps, and binding-vs-actual gaps. Implementers that publicly report aggregate EFS by domain are listed in the adopter registry.[0.0, 1.0] — this is the canonical form referenced in the spec and the conformance model. User interfaces MAY display EFS as a percentage for human readability (e.g. 0.84 shown as 84%), but the canonical value carried in the envelope is always the decimal form. Implementations that display the percentage form should surface the decimal form on detail or audit views, and must not store the percentage form in place of the decimal in envelopes, logs, or downstream records. See the Display format section of the EFS reference for details.application/cord+json serialization. Event logs, version chaining, and envelope digest are optional at the partial tier.x_cord_digest field contains a SHA-256 hash of the envelope's canonical JSON serialization (excluding the digest field itself). Any consumer can recompute the digest and compare — a mismatch indicates the envelope has been tampered with. This provides data-layer tamper detection without requiring external signing infrastructure or certificate management.envelope_id is unique at ingestion and reject envelopes with a created_at timestamp older than a configurable staleness threshold. This prevents duplicate processing of previously ingested envelopes.partial_coefficient property for full auditability. This is optional but recommended.Changelog
CORD versions follow MAJOR.MINOR format. MAJOR increments indicate breaking changes to envelope schema or EFS semantics. MINOR increments are additive and backwards-compatible.
- New binding profile: CORDspec-over-A2A — carries the v1.1 envelope as an A2A structured-data part, returns EFS results as a structured-data part, advertises support via an
AgentExtensionin the Agent Card - New binding profile: CORDspec-over-MCP — carries the v1.1 envelope as tool-result
structuredContentwith a text fallback, returns EFS results asstructuredContent, advertises support via tool_meta - States how Category 4 and the CORD-Compliant (Handoff-Aware) designation are satisfied over each binding; Categories 1–4 unchanged
- Four reference payloads added
- Pins: A2A v1.0.0, MCP revision 2025-11-25. No new transport, discovery, or auth. Measurement only, no enforcement
- Backwards compatible with v1.0 and v1.1. See Transport Bindings profile for full spec.
- New
envelope_type:"handoff"for AI-to-AI exchange without a legacy translation step handoff_chainarray for tracking AI-to-AI lineage, oldest-firstrequired_claimsoptional field for explicit fidelity contracts (any envelope type)producer_attestationrequired field on handoff envelopeshandoff_efsmetric distinct from the legacy translationefsloss_reportgainshandoff_efsandupstream_envelope_typekeys- Category 4 (Handoff-Aware) added to validation categories — the handoff fidelity contract for AI-to-AI handoff envelopes
- CORD-Compliant (Handoff-Aware) sub-designation for systems passing all four categories
- Two reference examples: multi-agent sales pipeline and healthcare triage chain
- Backwards compatible with v1.0. See AI Contract profile for full spec.
- Display format rule added to EFS reference: decimal canonical, percentage presentation-only
- Observability guidance added to Adopt CORD
- Two FAQ entries added covering observability and display format
- No changes to envelope schema, EFS computation, conformance model, or required fields
- Initial public specification release
- Canonical Interaction Envelope structure defined
- Envelope Fidelity Score (EFS) introduced — normalized [0.0–1.0]
- Four-tier conformance model including CORD-compatible
application/cord+jsonmedia type registered- SHA-256 envelope integrity via
x_cord_digest
- Internal draft for specification review
- Initial EFS metric definition and loss coefficient model
Open specification, community-governed
CORD is an open specification maintained through a community governance process. It is not associated with any single vendor, platform, or product.
Specification Process
Changes proceed through a public proposal and comment process. Anyone may submit proposals. Changes to required fields require supermajority of active maintainers.
Planned: Advisory Board
A 5–9 member advisory board representing AI system builders, legacy software vendors, enterprise integrators, and independent contributors.
Breaking Changes
Changes to required fields or envelope structure require supermajority approval and a 12-month deprecation notice. Migration guides are published before every major release.
Conformance Validation
CORD-compliant systems MUST pass three validation categories: envelope structure, EFS reporting, and mapping completeness. Systems that implement the v1.1 handoff envelope type additionally MUST pass a fourth category — Handoff-Aware — to earn the CORD-Compliant (Handoff-Aware) sub-designation; systems that do not use handoff envelopes are unaffected. Self-assessment is sufficient under v1.0.
Open Participation
The specification, schema, and all reference tooling are Apache 2.0 licensed. Contributions are welcome via GitHub pull request and public issue tracker.
Specification Stages
Concept → Draft → Candidate → Release → Deprecated. CORD v1.0 is at Release status. Stage transitions are documented in the changelog.