Full architecture specification · Chapter 10 of 20

8. HTTP6 protocol model, roles, and records

On this page
  1. 8.1 Normative envelope fields
  2. 8.2 Cryptographic key schedule
  3. 8.3 Request and response proofs
  4. 8.4 State, identity and routing
  5. 8.5 Threat-by-threat security contract

The first specification edition uses the working identifiers http6.w1 for the proof-bearing HTTPS-compatible profile and http6.n1 for the native protocol. The names are project-defined version strings. They are not registered Internet standards. A wire implementation requires a published binary codec, test vectors, and deterministic serialization. The initial source model below is therefore an implementation contract rather than a claim of an existing interoperable endpoint.

There are seven protocol roles. The Admission Presenter displays the verified requesting service and the local challenge. The Client Circuit Executor is the measured, process-bound runtime. The Service Discovery Authority vouches for destination descriptors. The Server Circuit Twin participates in the handshake and record exchange. The Proof Authority evaluates initial human admission, registered agents, and retained current state. The WASIX Application Sandbox executes admitted web/API handlers through bounded host capabilities. The Policy Enforcement Point gates external data and business effects before the application receives a request. A single host may combine several roles under different credentials; the security contract names their independent decisions.

A channel begins in NEW, moves through DISCOVERED, SERVER_ATTESTED, CLIENT_PROPOSED, HUMAN_PENDING, ADMITTED, KEY_CONFIRMED, and ACTIVE. A failure moves it to REJECTED or HELD. A replay or retired epoch moves it to REVOKED. These states are durable enough that a process crash cannot turn a previously consumed challenge into a fresh one. A server operation has its own substate: RESERVED, CLAIMED, VERIFIED, DISPATCHED, COMPLETED, or UNCERTAIN with terminal failure categories. A server cannot infer a completed business effect solely from an authenticated transport ACK.

8.1 Normative envelope fields

Every protected application record carries one immutable, canonical header and one cryptographic body. The prototype schema uses deterministic CBOR or another strictly specified binary encoding; JSON below is for readability. The sender includes an explicit record class (REQUEST, RESPONSE, ASSET_CHUNK, HEARTBEAT, ACK, CLOSE, or REKEY), a protocol version, channel and epoch identifiers, peer role, direction, sender process generation, normalized route ID, sequence, predecessor digest, operation ID, optional referenced request, policy epoch, content type, expiry/hold rules, and a digest of its canonical payload. The protected body consists of the authenticated ciphertext, AEAD nonce or derived nonce reference, and a fresh proof authenticator.

{
  "protocol": "http6.n1",
  "kind": "REQUEST",
  "channel_id": "opaque-channel-id",
  "epoch": 8,
  "direction": "client_to_server",
  "sender_generation": "opaque-runtime-generation",
  "sequence": 42,
  "previous_commitment": "hash-of-prior-directional-record",
  "operation_id": "unique-operation-id",
  "route_id": "admitted-route-identifier",
  "method": "GET",
  "resource": "/documents/report",
  "payload_digest": "hash-of-canonical-plaintext",
  "policy_epoch": 3,
  "ciphertext": "AEAD-protected bytes",
  "record_proof": "fresh-directional-authenticator"
}

A parser rejects duplicate fields, unknown critical extensions, out-of-range lengths, reinterpreted Unicode, ambiguous path separators, and noncanonical encodings. Protected content remains opaque to intermediaries, subject to deliberate public routing metadata. Compression, streaming, and partial reads have versioned definitions; compressing secret-dependent content alongside attacker-controlled content can create an information side channel and therefore requires its own reviewed profile.

8.2 Cryptographic key schedule

Initial authenticated key establishment derives a transcript secret from the approved ephemeral agreement. The service identity is independently authenticated and the client's attested ephemeral key is bound to the same transcript. A possible conventional composition uses a well-reviewed KEM/ECDH construction, HKDF, an approved AEAD cipher, and a separate MAC construction. HPKE (RFC 9180) and TLS 1.3 (RFC 9846) provide relevant engineering models for key establishment and authenticated channels; HTTP6's native use requires a separate exact composition rather than assuming these standards supply an HTTP6 wire format.

The shared lineage can be modeled as Kroot = KDF(ephemeral_secret, transcript_hash, fresh_context, enrolled_identity_binding). Separate labels derive Kc2s_encrypt, Ks2c_encrypt, Kc2s_proof, Ks2c_proof, and distinct rekey materials. Each record uses a unique (epoch, direction, sequence) derivation; the resulting AEAD nonce remains unique for every invocation of the selected cipher. The per-record proof authenticates the canonical header, ciphertext digest, operation commitment, previous accepted record, and live runtime generation. A proof accepted at position 42 is different from position 43, even for repeated plaintext, and a server proof cannot substitute for a client proof because its direction-specific keys differ.

The entropy pool is defined as coordinated, cryptographically derived state, rather than two processors reading identical exported random bytes. The clients' fresh contributions are mixed into the handshake and the derived secret schedule. Regular rekey uses the authenticated prior ratchet and a fresh contribution according to a specified hybrid derivation. The KDF can be deterministic because its secret inputs have sufficient independent entropy; proof codes, a human-entered secret string, a timestamp, and a public challenge are excluded as the sole inputs to encryption strength. Historical keys are erased from active memory according to the forward-secrecy and retention policy.

A design asserting unconditional or information-theoretic transcript privacy must separately prove that the exact observable record, including headers, sizes, timing, failures, and rekeys, satisfies its stated distribution assumptions. The implementation here uses concrete authenticated cryptography for channel protection and retains the private-reference construction for human admission. This makes protocol roles precise without conflating a transcript theorem with all properties of a deployed web transport.

8.3 Request and response proofs

For a client request, the policy engine authorizes the tuple (owner, service, runtime, route, method, resource, canonical-payload-digest, sequence, epoch). The server verifies both ciphertext integrity and the proof-circuit record authenticator under the named current state before invoking a handler. For a server response, the client verifies (channel, referenced_request, server_generation, response_code, response-digest, sequence, epoch). This creates symmetric authenticated participation: every direction proves that its sending twin controls the state of that direction.

For large media, a stream has a named parent operation and a bounded stream policy. Every chunk carries its own authenticator and sequence; video frames may map to multiple protected chunks, and a conference may have one committed track manifest plus per-packet protection. The cryptographic record proof can be a short MAC tag because the strong human proof authorized the parent executor, while the continuously advancing key schedule now proves active machine participation. The design does not require replaying the full human geometry per frame. Bandwidth and CPU budgets determine the selected record size and whether selected packets are encrypted individually or grouped into authenticated segments.

An API with write effects adds a persistent operation-consumption register. If a response is lost after a payment succeeds, the client queries the status of the same operation through a fresh authenticated record. The server returns the previously committed result and prevents a duplicate charge. This is the distinction between at-most-once proof acceptance and exactly-once business effect: the latter is achieved through idempotency and application reconciliation, not solely through a cryptographic MAC.

8.4 State, identity and routing

An HTTP6 route descriptor defines the authenticated destination service, protocol version, port and network transport, canonical origin, allowed path templates, approved destination identities, permitted IP/subnet policy, and the runtime's machine identity constraints. Remote machine identification uses attestation or hardware-backed keys. A MAC address ordinarily resides at a local link layer and is absent from routable Internet packets; it is a useful enrollment policy attribute when a trusted local agent reports it, rather than a remote cryptographic identity. An IPv6 address may identify the observed connection and can be used as a strict mobility condition, while cryptographic service identity remains the protection against masquerading.

A strict route change triggers HOLD_ROUTE, closes the previous channel after verifying the live peer state, and issues a new handshake and admission as required. For user-facing sessions, the selected policy mandates human reentry on process or network transition. For machines, an attested restart policy can authorize a new channel epoch after the service confirms the registered hardware, application measurement, and approved route. Neither policy reuses a previously recorded proof position.

8.5 Threat-by-threat security contract

Packet interception: The intercepted record contains a spent sequence position and encrypted content. A different sender lacks the matching session secrets and runtime identity; the resource checks current consumption before processing.

Executable/circuit theft: A copied WASM binary is only an artifact. Protected opening uses the machine and process admission record, current circuit epoch, custody policy and fresh proof context. Copying the program to another host produces a different runtime generation whose attempt to participate is rejected by the paired service.

Live man-in-the-middle: A relay may forward ciphertext, but channel identity, transcript confirmation, and authenticated ephemeral establishment prevent it from silently creating an independent authenticated twin. In-band phishing and a compromised legitimate endpoint remain addressed by verified destination presentation, endpoint isolation, and operation-specific approval policy.

API key theft: A legacy API key may initially remain behind a proof-gated capsule. The eventual native HTTP6 service authorizes operations through the current record proof and local policy, removing the need for a reusable bearer key at that selected resource.

Service impersonation: The server's identity and attested binary are verified before the person responds. An unauthenticated availability answer cannot select the policy or redirect the proof to a counterfeit recipient.

Reboots, lost networks, and stale backup: A retired generation and consumed nonces stay recorded in independent retained state. New process and route generations enter an admission flow, even when the same computer returns to the network. Operators can reinstate an approved fleet through the disaster recovery root procedure defined below.