Annex B — Compact CBOR Framing, QUIC/DDIL Store-and-Forward Bursts, EMCON Mode, Post-Quantum Hybrid Cryptography and M-of-N Dual-Control VerificationLink to the section Annex B — Compact CBOR Framing, QUIC/DDIL Store-and-Forward Bursts, EMCON Mode, Post-Quantum Hybrid Cryptography and M-of-N Dual-Control Verification
Version 0.3-draft. This text extends the 0.2.0 baseline backwards-compatibly and is published at the stable /spec/0.2/ and /schemas/v0.2/ addresses. Sections marked “0.3 draft” are new and may change. The 0.2.0 baseline text is in the repository history.
On this page
Maturity: Draft (0.3 extension; see Part 13 §13.21 and ADR-0011) · Normative for devices and clients claiming Tier 3 (DEFENSE), CBOR, QUIC, post_quantum, dual_control, or emcon_supported.
Safety and governance boundary. Every transport and cryptographic mechanism in this Annex serves sensing, mobility, autonomy and central fleet coordination over contested or constrained links. Regardless of assurance tier, UNIVIP does not govern weapon release or kinetic effectors (Part 01 §1.1) and MUST NOT bypass onboard safety controllers or pilot override precedence (Part 11).
B.1 Compact Deterministic CBOR Wire Binding (RFC 8949)Link to the section B.1 Compact Deterministic CBOR Wire Binding (RFC 8949)
On SATCOM, tactical RF and underwater acoustic links, UTF-8 JSON adds substantial framing and key-name overhead. Devices declaring "CBOR" in capabilities.security.wire_encodings support a 1:1 lossless binary projection of the UNIVIP data model using CBOR Core Deterministic Encoding (RFC 8949 §4.2).
B.1.1 Negotiation and framingLink to the section B.1.1 Negotiation and framing
| Transport | Negotiation | Wire Framing |
|---|---|---|
| WSS (Part 05) | WebSocket subprotocol univip.cbor.v1 or welcome.wire_encoding: "CBOR" |
Binary WebSocket frames (opcode 0x02), one CBOR data item per frame |
| HTTPS REST (Part 05) | Content-Type: application/univip+cbor / Accept: application/univip+cbor |
Single CBOR data item as HTTP body |
| QUIC (§B.2) | ALPN univip-quic-v1 (CBOR is the default encoding on QUIC) |
[varint length][uint8 flags][payload bytes] on streams; raw [uint8 flags][payload bytes] in RFC 9221 datagrams |
Frame flags byte (QUIC):
- Bit
0(0x01):ZSTD— payload bytes after the flag byte are compressed with Zstandard (RFC 8878; permitted only when uncompressed length ≥ 512 bytes and bounded to 1 MiB after decompression to prevent decompression bombs). - Bit
1(0x02):COSE— outer data item is aCOSE_Sign1orCOSE_Signenvelope (RFC 9052). - Bits
2..7: reserved, MUST be0on send and rejected withMALFORMEDif non-zero.
B.1.2 Compact integer key tables (CDDL, RFC 8610)Link to the section B.1.2 Compact integer key tables (CDDL, RFC 8610)
Standard members use small positive integers in CBOR maps; vendor x-<vendor> and unknown future string keys remain text strings (tstr), preserving Part 01 §1.4 forward extensibility.
Session Envelope (univip.envelope):
| Key | JSON Member | CBOR Type | Compact Rule |
|---|---|---|---|
1 |
schema |
tstr or uint |
Standard schema registry ID (1=envelope, 2=capabilities, 3=telemetry, 4=event, 5=command, 6=command_status, 7=lease, 8=audit, 9=audit_checkpoint, 10=ddil.burst, 11=ddil.ack) or full string |
2 |
type |
uint or tstr |
Integer code (1=hello, 2=welcome, 3=capabilities, 4=telemetry, 5=event, 6=command_status, 7=signal, 8=lease, 9=audit_checkpoint, 10=request, 11=response, 12=ping, 13=pong, 14=error, 15=ddil.burst, 16=ddil.ack) or dotted string |
3 |
device_id |
tstr or uint |
Full device_id string, or a session-local device_alias (uint) assigned in welcome to save 20–40 bytes per packet |
4 |
msg_id |
bstr (16 B) or tstr |
128-bit raw ULID bytes (bstr .size 16) preferred over 26-char ASCII ULID |
5 |
timestamp |
int (tag 1) or tstr |
Unix epoch milliseconds (int64) on the wire; losslessly converts to RFC 3339 UTC |
6 |
payload |
map |
Schema-specific compact map |
Telemetry (univip.telemetry):
| Key | JSON Member | Compact Representation |
|---|---|---|
1 |
session_id |
bstr / tstr (or omitted when identical to active session header) |
2 |
timestamp |
int64 epoch ms |
3 |
sequence |
uint |
4 |
replayed |
bool (omitted when false) |
5 |
time |
[source_enum, accuracy_ms?] |
6 |
position |
{ 1: lat_e7 (int32, 1e-7 deg), 2: lon_e7 (int32), 3: alt_msl_mm (int32)?, 4: alt_ell_mm?, 5: alt_agl_mm?, 6: depth_mm (uint32)?, 7: source_enum?, 8: h_acc_cm?, 9: age_ms? } |
7 |
local_pose |
{ 1: frame_id, 2: x_mm, 3: y_mm, 4: z_mm?, 5: floor?, 6: yaw_cdeg?, 7: source_enum? } |
8 |
motion |
{ 1: hdg_cdeg (0.01 deg), 2: spd_cmps (cm/s), 3: vn_cmps?, 4: ve_cmps?, 5: vd_cmps?, 6: roll_cdeg?, 7: pitch_cdeg? } |
9 |
power |
{ 1: battery_pct (0..100), 2: mv (uint)?, 3: ma (int)?, 4: rem_s?, 5: age_ms? } |
10 |
link |
{ 1: state_enum, 2: quality_pct?, 3: rssi_dbm?, 4: latency_ms?, 5: transport_enum? } |
11 |
vehicle |
{ 1: state_enum, 2: armed?, 3: in_geofence?, 4: control_source_enum?, 5: lease_id? } |
12 |
health |
{ 1: status_enum, 2: gnss_fix_enum, 3: sats?, 4: faults[]? } |
13 |
payloads |
array of compact payload maps |
14 |
autonomy |
{ 1: state_enum, 2: active_goal_id?, 3: progress_pct?, 4: loc_conf_pct?, 5: in_odd?, 6: margin_pct?, 7: limiting_factors[]? } |
15 |
fleet |
{ 1: availability_enum, 2: operation_id?, 3: dock_id?, 4: dock_state_enum?, 5: turnaround_eta_s? } |
16 |
remote_id |
state_enum |
Typical footprint reduction:
| Message | UTF-8 JSON | Compact CBOR | Reduction |
|---|---|---|---|
| Deployed telemetry sample (position + motion + power + autonomy) | ~520 B | ~150 B | ~71 % |
| Minimal acoustic UUV telemetry sample | ~280 B | ~78 B | ~72 % |
Signed vehicle.autonomy.assign_goal command (excl. PQ sig) |
~490 B | ~195 B | ~60 % |
B.1.3 Canonical signing equivalence across JSON and CBORLink to the section B.1.3 Canonical signing equivalence across JSON and CBOR
To prevent signature-malleability attacks across wire encodings:
- When using detached JWS (Part 13 §13.14), the signature payload is ALWAYS the RFC 8785 (JCS) canonical JSON form of the decoded command object (stripped of
signatureandsignatures), even if the command was transported inside a CBOR envelope. - When pure binary signing is negotiated (
COSE, RFC 9052), the signature covers the RFC 8949 §4.2 Core Deterministic CBOR encoding of the command map (stripped of signature headers) inside aCOSE_Sign1orCOSE_SignSig_structure. A device MUST NOT accept a COSE signature as a JWS or vice versa.
B.2 QUIC Transport and DDIL Store-and-Forward BurstsLink to the section B.2 QUIC Transport and DDIL Store-and-Forward Bursts
Devices operating in Denied, Degraded, Intermittent, and Limited-bandwidth (DDIL) environments (SATCOM, tactical MANET, contested RF, surfacing UUVs) MAY declare "QUIC" in capabilities.transports.realtime and "store_and_forward": true in capabilities.telemetry.
B.2.1 QUIC stream classes and priority (RFC 9000, RFC 9218, RFC 9221)Link to the section B.2.1 QUIC stream classes and priority (RFC 9000, RFC 9218, RFC 9221)
- ALPN:
univip-quic-v1over TLS 1.3 (cipher and PQ-hybrid KEX per §B.4). - Connection migration (RFC 9000 §9): Devices and endpoints SHOULD enable QUIC connection migration so cellular → SATCOM → tactical-radio handoffs preserve session and lease continuity without re-handshaking.
- Head-of-line isolation via stream classes:
| Stream Class | QUIC Mechanism | RFC 9218 Urgency | Carries |
|---|---|---|---|
| Class 0 — Safety & Authority | Bidirectional stream (persistent) | u=0 (highest) |
vehicle.hold, vehicle.cancel, vehicle.emergency_stop, lease heartbeats, audit_checkpoint |
| Class 1 — Control & Alerts | Bidirectional stream(s) | u=1 |
vehicle.* / vehicle.autonomy.* / vehicle.fleet.* commands, command_status, CRITICAL/ERROR events, request/response proxy |
| Class 2 — Live Telemetry | RFC 9221 Unreliable Datagrams (fallback: unidirectional stream) | u=3 |
Live univip.telemetry samples; lost datagrams are never retransmitted, preventing stale buildup on lossy links |
| Class 3 — DDIL Bursts & Artifacts | Bidirectional stream (flow-controlled) | u=6 (background) |
ddil.burst / ddil.ack store-and-forward flush, /artifacts downloads |
B.2.2 Resumable store-and-forward burst protocol (ddil.burst / ddil.ack)Link to the section B.2.2 Resumable store-and-forward burst protocol (ddil.burst / ddil.ack)
While disconnected or in EMCON (§B.3), the device buffers records locally in four priority tiers:
- Tier A (Never Evicted):
univip.auditrecords andunivip.audit_checkpointheads. Exhausting Tier A storage MUST transition the vehicle to safe hold/fallback and refuse new commands rather than overwrite audit history. - Tier B (High): Stateful and
WARNING/ERROR/CRITICALevents (univip.event). - Tier C (Medium): Thinned/keyframe telemetry samples (retaining state changes, corner waypoints, and periodic samples).
- Tier D (Bulk): Mission artifacts (
/artifactsdescriptors and blobs).
On reconnect, the device transmits chunks in strict priority order (Tier A → B → C → D) on Class 3 using type: "ddil.burst" envelopes:
{
"burst_id": "01JDXF10BURST0001",
"tier": "A",
"from_seq": 104,
"to_seq": 128,
"more_available": true,
"items": [ "...audit records or replayed telemetry/events..." ]
}Every historical telemetry item inside ddil.burst MUST carry "replayed": true (Part 07 §7.9.1) and its original sensor timestamp. The central coordinator acknowledges durable receipt with type: "ddil.ack":
{
"burst_id": "01JDXF10BURST0001",
"acked_audit_seq": 128,
"acked_telemetry_seq": 4910,
"acked_event_ids": ["01JDXB12ASSIST9900A"]
}If the link drops mid-burst, the device resumes from acked_* + 1 on the next window without retransmitting acknowledged records.
B.3 EMCON (Emissions Control / Radio-Silence) ModeLink to the section B.3 EMCON (Emissions Control / Radio-Silence) Mode
Devices declaring capabilities.security.emcon_supported: true support controlled radio/acoustic silence while executing bounded autonomous goals (Part 15 §15.2).
B.3.1 EMCON levelsLink to the section B.3.1 EMCON levels
| Level | RF / Acoustic TX | RF / Acoustic RX | Behavior |
|---|---|---|---|
EMCON_OFF |
Normal | Normal | Standard full-duplex UNIVIP session. |
EMCON_BURST_ONLY |
Scheduled windows only | Normal / windowed | Suppresses continuous telemetry and keepalive pings; transmits compact CBOR bursts (§B.2.2) only during burst_window_s intervals or on emergency breakout. |
EMCON_RECEIVE_ONLY |
Prohibited | Active passive listen | Zero outbound packets (no telemetry, no pong, no command_status ACKs); accepts signed one-way broadcast/multicast updates (corridor updates, EMCON_OFF lift); buffers all audit and telemetry locally. |
EMCON_SILENT |
Prohibited | Prohibited | Transceivers powered down; executes pre-authorized autonomous goal strictly within ODD until until expiry or recovery point. |
B.3.2 State machine, dead-man cap and zero-leakage rulesLink to the section B.3.2 State machine, dead-man cap and zero-leakage rules
A vehicle moves from EMCON_OFF into EMCON_BURST_ONLY, EMCON_RECEIVE_ONLY or EMCON_SILENT only via an authorized signed command carrying an explicit until timestamp. Expiry of until, an authorized lift command or an allowed emergency breakout returns the vehicle to EMCON_OFF and triggers a DDIL burst sync.
Scroll horizontally to see the whole diagram.
View Mermaid source
stateDiagram-v2
accTitle: EMCON mode transitions with mandatory dead-man expiry
accDescr: A vehicle moves from EMCON_OFF into EMCON_BURST_ONLY, EMCON_RECEIVE_ONLY or EMCON_SILENT only via an authorized signed command carrying an explicit until timestamp. Expiry of until, an authorized lift command or an allowed emergency breakout returns the vehicle to EMCON_OFF and triggers a DDIL burst sync.
[*] --> EMCON_OFF
EMCON_OFF --> EMCON_BURST_ONLY: vehicle.security.set_emcon (with until)
EMCON_OFF --> EMCON_RECEIVE_ONLY: vehicle.security.set_emcon (with until)
EMCON_OFF --> EMCON_SILENT: vehicle.security.set_emcon (with until)
EMCON_RECEIVE_ONLY --> EMCON_OFF: signed lift received / until expired
EMCON_BURST_ONLY --> EMCON_OFF: signed lift / until expired / emergency breakout
EMCON_SILENT --> EMCON_OFF: until expired / ODD emergency breakout- Command:
vehicle.security.set_emconwith params{ "level", "until", "burst_window_s"?, "allow_emergency_breakout": bool }. Requires an activevehicleorautonomylease, signed command verification (and §B.5 dual control when configured). - Mandatory dead-man expiry (
until): Any level other thanEMCON_OFFMUST specify an explicit UTCuntiltimestamp not exceedingcapabilities.autonomy.max_offline_grace_s. Commands omittinguntilor exceeding the cap MUST be rejected withINVALID_PARAMETERS/OUT_OF_LIMITS. - Zero-leakage rule: Before entering any level above
EMCON_OFF, the device MUST tear down all WebRTC peers, SRT/RTSP streams, ICE consent checks, DNS-SD announcements, and keepalive pings so zero stray network packets are emitted. - Coordinator lease handling: While an authorized EMCON window is active (
now < until), the central coordinator MUST display the vehicle state asEMCON(with countdown tountil) and MUST NOT treat missed heartbeats as an unscheduled lease drop. If the vehicle fails to reconnect within a configured grace period afteruntil, the coordinator raises aCRITICALalert. - Post-EMCON sync: Upon exiting EMCON, the device immediately reconnects, transmits its signed
audit_checkpointcovering all offline actions, and flushes its bufferedddil.burstqueue.
B.4 Post-Quantum Hybrid Cryptography (CNSA 2.0 / NIST FIPS 203 & 204)Link to the section B.4 Post-Quantum Hybrid Cryptography (CNSA 2.0 / NIST FIPS 203 & 204)
Devices declaring security.assurance_tier: "DEFENSE" and security.post_quantum: true enforce quantum-resistant confidentiality against harvest-now/decrypt-later adversaries and quantum-resistant authentication for commands and long-lived audit chains.
B.4.1 Transport key exchange and symmetric ciphersLink to the section B.4.1 Transport key exchange and symmetric ciphers
| Layer | Mandatory Cipher Suite | Mandatory PQ-Hybrid Key Agreement | Classical Fallback |
|---|---|---|---|
| TLS 1.3 / QUIC | TLS_AES_256_GCM_SHA384 (RFC 8446) |
SecP384r1MLKEM1024 (CNSA 2.0, NIST FIPS 203 ML-KEM-1024 + P-384) and/or X25519MLKEM768 (baseline hybrid) |
MUST be disabled when post_quantum: true |
| DTLS 1.3 Media | TLS_AES_256_GCM_SHA384 + SRTP_AEAD_AES_256_GCM (RFC 7714, RFC 9147) |
X25519MLKEM768 or SecP384r1MLKEM1024 (or sovereign link-layer bulk encryption) |
MUST be disabled when post_quantum: true; rekey ≤ 4 h (or ≤ $2^{32}$ packets) |
B.4.2 Command, checkpoint and attestation signatures (NIST FIPS 204)Link to the section B.4.2 Command, checkpoint and attestation signatures (NIST FIPS 204)
| Mode | JWS / COSE alg Identifier |
Verification Semantics |
|---|---|---|
| Pure PQ (Level 3) | ML-DSA-65 (FIPS 204) |
Single ML-DSA-65 verification |
| Pure PQ (Level 5 / CNSA 2.0) | ML-DSA-87 (FIPS 204) |
Single ML-DSA-87 verification |
| Composite Hybrid (Transition Recommended) | ES384+ML-DSA-65, Ed448+ML-DSA-87 |
Strict AND semantics: both the classical signature and the ML-DSA signature MUST verify independently over the exact same canonical payload; failure of either fails verification |
- Hardware key storage & EAT attestation: Tier 3
DEFENSEprivate keys MUST reside in a FIPS 140-3 Level 3+ HSM or Secure Element (key_storage: "SECURE_ELEMENT"or"TPM"). Before granting anyvehicleorautonomylease, the coordinator MUST verify a nonce-bound Entity Attestation Token (EAT, RFC 9711) signed by the device's attested key. - Audit chain digest upgrade: Tier 3 audit logs MUST use SHA-384 (96-char hex, genesis = 96 zeros) or SHA-512 (declared via
hash_alg: "SHA-384"or"SHA-512"onunivip.auditandunivip.audit_checkpoint) so collision resistance remains ≥ 192 bits post-quantum. - Emergency zeroization: On hardware tamper detection or an authorized dual-signed
vehicle.security.zeroizecommand, the device MUST zeroize ephemeral session keys, cached operator public keys, and local mission caches while preserving hardware-sealed tamper evidence where hardware permits.
B.5 M-of-N Dual-Control Signature Verification (command.signatures[])Link to the section B.5 M-of-N Dual-Control Signature Verification (command.signatures[])
When capabilities.security.dual_control: true, high-consequence commands (as configured by the operator's device-local quorum policy—typically vehicle.autonomy.assign_goal, vehicle.fleet.handoff, vehicle.security.set_emcon, and vehicle.security.zeroize) MUST carry command.signatures (an array of ≥ M detached JWS tokens, command.schema.json) rather than a single signature.
B.5.1 Device-local quorum policyLink to the section B.5.1 Device-local quorum policy
The quorum policy is provisioned on the device via hardware-pinned configuration or univip.admin (never supplied inside the command being checked):
{
"command_patterns": ["vehicle.autonomy.assign_goal", "vehicle.fleet.handoff", "vehicle.security.*"],
"threshold_m": 2,
"required_roles": ["MISSION_COMMANDER", "SAFETY_OFFICER"],
"distinct_clients": false,
"max_signer_skew_s": 30
}B.5.2 Normative 8-step verification algorithm (fail-closed)Link to the section B.5.2 Normative 8-step verification algorithm (fail-closed)
A device verifying a dual-controlled command MUST execute every step below in order and reject on the first failure with HTTP 401 (UNAUTHORIZED) and an auth.failure audit record, without consuming command_id or dispatching to the vehicle controller:
- Canonicalize body: Remove
signatureandsignaturesfrom the command object and compute the canonical byte string (RFC 8785 JCS for JWS, or RFC 8949 §4.2 deterministic CBOR for COSE). - Freshness check: Verify
issued_atis not older than 30 s and not more than 5 s in the future, andexpires_at(if present) has not elapsed (Part 13 §13.5). - Count check: Verify
signaturesis present and contains at leastthreshold_mentries (and at most 16 entries to bound CPU work). - Per-signature cryptographic check: For each entry in
signatures[]:- Enforce detached compact form (
header..signature, empty payload segment); rejectalg: noneor any algorithm outside the device's allowed Tier 3 list (§B.4.2). - Resolve
kidagainst the device's locally registered operator key store. Unknown or revokedkid→ reject. - Verify the signature (or both components of a composite hybrid
alg) over the canonical bytes from step 1. - If the protected header carries
iat, verify|iat - issued_at| <= max_signer_skew_s. - Look up the signer's
(operator_user, client_id, roles[])from the device's own key store — the device MUST NEVER trust self-asserted roles inside an unpinned header.
- Enforce detached compact form (
- Principal independence check: Every verified signature contributing to the quorum MUST have a distinct
kidAND a distinctoperator_user. Two keys belonging to the same person MUST count as at most one approval. Whendistinct_clients: true, verified signers MUST also belong to distinctclient_ids. - Role quorum check: Verify that the set of distinct verified signers satisfies
count >= threshold_mAND that every role listed inrequired_rolesis covered by a distinct verified signer (for example,MISSION_COMMANDER+SAFETY_OFFICERmust be two different people even if one user holds both roles). - Replay consumption: Only after steps 1–6 succeed, record
command_idas consumed to block replays (Part 13 §13.5, Part 14D-SEC-N-03). - Dual-control audit record: Append the
univip.auditentry withcommand_signature_valid: true,assurance_tier: "DEFENSE", andco_signers: ["<operator_user_1>:<kid_1>", "<operator_user_2>:<kid_2>"].
B.6 Tier 3 & DDIL Conformance Cases (Draft)Link to the section B.6 Tier 3 & DDIL Conformance Cases (Draft)
| Case | Section | Method | Pass condition |
|---|---|---|---|
| D-DDIL-01 | §B.1 | T | CBOR deterministic telemetry and commands round-trip identically to their JSON representations and validate against the canonical schemas. |
| D-DDIL-02 | §B.2 | T | On a QUIC session undergoing IP address migration and simulated 20 % packet loss on Class 2 datagrams, Class 0 vehicle.hold still completes within 1 s. |
| D-DDIL-03 | §B.2.2 | T | After a 120 s disconnect, ddil.burst delivers Tier A audit records before Tier C telemetry, marks historical telemetry replayed: true, and resumes cleanly after an injected mid-burst drop using ddil.ack. |
| D-EMCON-01 | §B.3 | T | Entering EMCON_RECEIVE_ONLY or EMCON_SILENT tears down WebRTC/STUN/DNS-SD and emits zero packets until until expires, then automatically reconnects and flushes the offline audit chain. |
| D-EMCON-02 | §B.3.2 | T | vehicle.security.set_emcon without until or exceeding max_offline_grace_s is rejected (INVALID_PARAMETERS / OUT_OF_LIMITS). |
| D-PQ-01 | §B.4.1 | T | With post_quantum: true, TLS 1.3 / QUIC rejects pure classical ECDHE-only handshakes and negotiates SecP384r1MLKEM1024 or X25519MLKEM768 with TLS_AES_256_GCM_SHA384. |
| D-PQ-02 | §B.4.2 | T | Composite hybrid command signatures (ES384+ML-DSA-65) are rejected if either the classical or the ML-DSA component is corrupted. |
| D-DUAL-01 | §B.5.2 | T | A dual-controlled command signed by two distinct registered operators covering all required_roles is accepted and records both in audit.co_signers[]. |
| D-DUAL-02 | §B.5.2 | T | A dual-controlled command signed twice by the same operator_user (even with two distinct kids), missing a required role, or tampered after co-signing is rejected 401 UNAUTHORIZED without consuming command_id or moving the vehicle. |