Chio/Docs

ReferenceSpecnew

IETF Internet-Draft

The Chio Protocol Internet-Draft describes the native, hosted, and trust-control protocols and links their registries and conformance evidence.

When to use this page

Use this page when: you need the standards-track document itself, its intended status, its section map, and its normative and informative references. Don't use this if: you want the byte-level framing rules and endpoint contracts an implementer works from (see Wire Protocol) or the capability and receipt field semantics (see Protocol Reference).

Source

This page reflects spec/ietf/draft-chio-protocol-00.md in the Chio repository. The draft is submitted in full conformance with BCP 78 and BCP 79. It is published for review and discussion and is not itself an Internet Standard.

Document Metadata

FieldValue
TitleThe Chio Protocol
StreamNetwork Working Group
AuthorChio Editors
Intended statusStandards Track
DateApril 2026
ExpiresOctober 2026

Abstract

Chio is described as a protocol and runtime profile for mediated tool execution under signed capabilities, signed receipts, explicit versioning, and bounded transport security requirements. The draft defines a native framed transport, an MCP-compatible hosted edge, and trust-control lifecycle endpoints for capability issuance, delegated issuance, receipt query, and revocation.


Conventions and Terminology

The keywords MUST, MUST NOT, REQUIRED, SHOULD, SHOULD NOT, and MAY are interpreted as described in BCP 14 when, and only when, they appear in all capitals. The draft pins four terms:

TermDefinition
capabilityA signed Chio authority token
receiptA signed Chio audit record for one evaluated action
sender constraintProof that binds a caller to an issued capability or session profile
native Chio transportThe framed transport defined in phase 311

Section Map

The draft is organized into the standard Internet-Draft sections. Each one is anchored to normative material elsewhere in the repository and, where it exists, a companion reference page on this site.

SectionDefinesAnchored in
1. IntroductionThree cooperating layers; one caller invokes one tool under delegated authority producing signed receipts
2. Conventions and TerminologyBCP 14 keywords; capability, receipt, sender constraint, native transport
3. Protocol InterfacesNative framed transport, hosted MCP transport, trust-control lifecyclespec/WIRE_PROTOCOL.md
4. Error and Version ModelTwo machine-readable registries for negotiation and error taxonomyspec/versions/, spec/errors/
5. Security ConsiderationsThreat model and surface-specific transport rulesspec/SECURITY.md, spec/security/
6. ConformanceNative conformance lane and language-neutral driver contractstests/conformance/native/
7. IANA ConsiderationsNo IANA actions in this revision
8. ReferencesNormative and informative references

Protocol Interfaces

Section 3 splits the protocol into three cooperating layers. The native transport is narrow; the hosted and trust-control interfaces provide the remaining deployment functions.

Native Chio Transport

The native transport uses one frame format:

  • a 4-byte unsigned big-endian length prefix
  • canonical JSON payload bytes

Versioning is out-of-band exact match. The wire version is chio-wire-v1; there is no in-band downgrade, and incompatible peers close or reset the transport. The native message catalog is:

FamilyMessages
AgentMessagetool_call_request, list_capabilities, heartbeat
KernelMessagetool_call_chunk, tool_call_response, capability_list, capability_revoked, heartbeat

Hosted MCP Transport

The hosted edge exposes three methods on one path:

  • POST /mcp
  • GET /mcp
  • DELETE /mcp

Version selection occurs through initialize.params.protocolVersion and the response echoes the selected value in result.protocolVersion. The current shipped implementation supports exactly one MCP protocol version: 2025-11-25.

Trust-Control Lifecycle

The trust-control service exposes versioned HTTP endpoints under /v1: capability issuance, federated or delegated issuance, receipt query, and revocation. Delegated issuance uses explicit continuation inputs and a signed delegation policy ceiling when a parent capability is continued.


Error and Version Model

Section 4 references two machine-readable registries rather than restating their contents inline:

RegistrySchema idDefines
spec/versions/chio-protocol-negotiation.v1.jsonchio.protocol-negotiation.v1Exact-match compatibility and rejection behavior for the native, hosted, and trust-control surfaces
spec/errors/chio-error-registry.v1.jsonchio.error-registry.v1Numeric Chio error codes, categories, transient/permanent classification, and retry guidance

The negotiation record defines rejection behavior for each interface. On the native interface, an incompatible peer triggers close_or_reset_transport and Chio error 1000. On the hosted MCP edge, a version mismatch is rejected with JSON-RPC -32600 carrying the same Chio code. Trust-control selects versions by path prefix and compares an exact /v1 match. The error registry and the negotiation file are documented field-by-field on the Schemas and Errors page.


Security Considerations

Section 5 defers the full threat model to spec/SECURITY.md and the machine-readable register spec/security/chio-threat-model.v1.json. At minimum, implementations address six threats:

  • capability token theft
  • kernel impersonation
  • tool-server escape
  • replay on the native channel
  • resource-exhaustion denial of service
  • delegation-chain abuse

Transport rules are interface-specific:

RuleRequirement
Remote hosted and trust-control HTTPMUST use TLS
Cross-host tool-server transport over TCPMUST use mTLS
Sender-constrained or grant profile that requires itMUST present DPoP
Plaintext remote deploymentNonconformant

Attestation is not authorization

Attestation does not authorize by itself. It is valid only when paired with sender continuity over the same request. A verified runtime claim without a bound sender constraint does not admit a call.

Conformance

Section 6 points at checked-in conformance evidence for the native Chio lane under tests/conformance/native/. The suite is executed through JSON scenario files and covers six categories:

CategoryScenario file
Capability validationcapability-validation.json
Delegation attenuationdelegation-attenuation.json
Receipt integrityreceipt-integrity.json
Revocation propagationrevocation-propagation.json
DPoP verificationdpop-verification.json
Governed transaction enforcementgoverned-transaction-enforcement.json

The runner supports three language-neutral driver modes, so a third-party implementation can satisfy the same scenarios:

ModeTarget contract
artifactNo external process; the runner validates deterministic Chio fixtures such as signed capabilities, delegation chains, receipts, and DPoP proofs
stdioAn executable that speaks the native framed transport on stdin/stdout; the runner writes one length-prefixed AgentMessage and reads KernelMessage frames until the terminal tool_call_response or EOF
httpAn HTTP service exposing POST /chio-conformance/v1/invoke, carrying plain JSON so non-Rust implementations can use the endpoint without framed bytes

The checked-in suite runs against the reference fixture. Build the runner and fixture, then point the runner at either an --stdio-command or an --http-base-url target:

bash
$ cargo build -p chio-conformance \
    --bin chio-native-conformance-runner \
    --bin chio-native-conformance-fixture

$ target/debug/chio-native-conformance-runner \
    --scenarios-dir tests/conformance/native/scenarios \
    --results-output tests/conformance/native/results/generated/chio-self.json \
    --report-output tests/conformance/native/reports/generated/chio-self.md \
    --stdio-command target/debug/chio-native-conformance-fixture \
    --http-base-url http://127.0.0.1:9954

IANA Considerations

Section 7 declares no IANA actions in the current revision. Future versions may request registrations for Chio media types, Chio protocol parameter names, and Chio error registry identifiers.


References

Normative

ReferenceUsed for
RFC 8785JSON Canonicalization Scheme; canonical JSON payload bytes on the native frame
RFC 9449OAuth 2.0 Demonstrating Proof-of-Possession at the Application Layer (DPoP); sender-constrained proofs

Informative

  • GNAP core work for delegated authorization continuation
  • SCITT architecture and transparency evidence work
  • RATS architecture for verifier-backed runtime claims
  • W3C Verifiable Credentials Data Model
  • OpenID for Verifiable Credential Issuance
  • OpenID for Verifiable Presentations

  • Wire Protocol: normative framing, hosted MCP session lifecycle, and trust-control endpoints.
  • Schemas and Errors: the negotiation artifact and error registry in full.
  • Protocol: capability, receipt, and manifest field semantics.
  • Security: the threat model and transport security matrix.
  • Bindings API: vector corpus and binding-conformance suite.