The problem statement, local editorial edition · Chapter 23 of 26

Appendix C. Semantic Record Contract

The following is a proposed semantic sketch based on the original Figure 2, with additional separation of authentication and authorization and response semantics. It is not wire-frozen. A subsequent profile chooses types, canonical bytes, cryptographic suites, extension behavior, size bounds, and fixtures. It does not adopt the review statement's layout or put a sensitive payload digest in a visible unauthenticated header.

record_contract: proposed_not_wire_frozen
public_authenticated_header:
  version: selected-profile-version
  channel_epoch: admitted-epoch
  direction: client-to-server-or-server-to-client
  stream_id: admitted-stream
  sequence: unused-directional-position
  record_kind: profile-defined-class
  ciphertext_length: bounded-by-profile
protected_content:
  sender_instance: admitted-instance-reference
  peer_identity: authenticated-recipient
  root_receipt_ref: approved-origin-of-authority
  lineage_ref: authenticated-delegation-chain
  policy_digest: admitted-policy-commitment
  operation_id: stable-business-operation-identifier
  request_reference: required-for-response
  method_or_operation: canonical-operation
  target_resource: canonical-resource
  arguments_and_payload: canonical-protected-bytes
  purpose_and_classification: validated-policy-inputs
  predecessor_reference: profile-defined-stream-state
response_context:
  request_reference: authenticated-request-reference
  operation_id: stable-operation-identifier
  responding_principal: authenticated-service-instance
  execution_status: profile-defined-status
  outcome_reference: durable-outcome-reference-if-available
  effect_evidence: optional-resource-issued-evidence
  response_payload: canonical-response-content
protection:
  authenticated_encryption: selected-reviewed-AEAD-if-required
  record_authentication: integrity-and-authenticity-of-record
  instance_proof: admitted-instance-key-possession
  authorization_evidence: authenticated-grant-and-current-authority
  channel_binding: intended-peers-channel-context-and-epoch

Figure C.1: Proposed semantic record and response fields. The placement of response_context, overlap with general content fields, and applicability to particular record classes are open encoding decisions. In a native AEAD design, the canonical public header is authenticated and the protected content encrypted. A W1 profile may instead compose existing TLS and application-level protection; it must identify what remains protected across intermediary termination. The eventual authenticator covers or unambiguously binds the required header, protected content, and authority context. No self-referential authentication field is assumed.

Successful record authentication and decryption do not independently authorize a requested operation. Instance possession, grant, lineage, policy, and current state are separately evaluated; a future design may combine cryptographic mechanisms only with a supporting analysis. Role and directional key separation, nonce uniqueness, traffic limits, erasure, and key confirmation belong to the cryptographic profile. Per-stream or per-record derivation is a design choice, not a guarantee. An authentic response states a result; evidence of correct execution depends on the responsible resource and its trust model.