Part 14 — Conformance TestingLink to the section Part 14 — Conformance Testing

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 · Profiles: all

14.1 PrinciplesLink to the section 14.1 Principles

  1. Conformance is claimed per target (Device or Client) and per profile.
  2. Every MUST in Parts 03–13 maps to at least one test case; test identifiers follow T-<part>-<n> (for example T-07-04).
  3. Tests are executed by an open-source UNIVIP Conformance Tool (to be built, roadmap Phase 3) that acts as a client when testing a device and as a device when testing a client.
  4. Mandatory alternatives (MQTT, SRT, RTSP, H.265) have their own optional test groups; passing them permits the additional claim "with MQTT real-time binding", etc.
  5. Results are published as a signed JSON report; a claim without a report is not a conformance claim.

14.2 Test groups (Device)Link to the section 14.2 Test groups (Device)

Group Covers Profile
D-ID Identity members, device_id stability across reconnect; device.platform validity when present (0.3) T, S
D-SEC TLS 1.3 only, no plaintext, authentication methods, scope enforcement, replay rejection; PKI profile (§13.11), claim-code limits (§13.17), per-client quotas (§13.18) T, S
D-SEC-N Non-exportable key storage and signed firmware (§13.12–13.13), signed commands (§13.14), audit hash chain and signed checkpoints (§13.15), on-aircraft limits independent of commands (§13.20) N
D-SESSION hello/welcome/capabilities ordering, ping/pong, reconnection with backoff, event replay after disconnect T, S
D-CAP Capability document validity, consistency with observed behavior (every advertised topic/command works; no unadvertised ones accepted) T/S/C/N/A/F
D-TEL Schema validity, rates, sequence continuity, units/frames sanity (altitude reference present, heading range), stale handling T, S
D-EVT Mandatory events fire under induced conditions (simulated low battery, link loss, state changes), envelope validity, stateful clear T, S
D-MEDIA WebRTC negotiation, H.264 profile/level, RTCP SR cadence, telemetry-to-frame alignment ≤ 100 ms using a test pattern with embedded timecode S
D-CAM Each advertised camera.* command: accept, lifecycle, limits rejection, continuous-move expiry, pilot override C
D-LEASE Acquire/heartbeat/extend/release/expire/revoke; single vehicle lease; camera lease per payload C/N
D-AIR Each advertised vehicle.* command in a simulator or test range: preconditions, rejection reasons, hold within 1 s, lease expiry → hold, failsafe precedence, audit record completeness N
D-GEO Footprint and target schema validity; footprint geometric sanity against known camera pose optional
D-HEADLESS 0.3 draft: Profile T without media; local_pose reported when a facility-frame estimate exists; vehicle.payload.artifact_ready and artifact retrieval (Part 15 §15.4) T
D-AUT 0.3 draft: autonomy capability block, autonomy lease scope, goal lifecycle, operator-assist requests, offline grace and fallback (Part 15 §15.2) A
D-FLEET 0.3 draft: fleet telemetry, dock lifecycle, corridors, handoffs and operation_id correlation (Part 15 §15.3) F
D-DDIL, D-EMCON, D-PQ, D-DUAL 0.3 draft: Tier 3 and DDIL cases defined in Annex B §B.6 Tier 3 / DDIL
D-MQTT, D-SRT, D-RTSP, D-H265 Alternative bindings optional

14.2.1 Cases for D-SEC and D-SEC-N (Draft)Link to the section 14.2.1 Cases for D-SEC and D-SEC-N (Draft)

Method: T = automated against the device or gateway, E = evidence reviewed by the test authority (document, log or lab observation). A device passes a group only when every applicable case passes. Reference tests are in gateway/tests/ and dotnet/tests/Univip.Gateway.Tests/; the .NET gateway's tests in AuditAndSigningTests.cs mirror them (N05_… to N13_… for the cases added there). A case marked "none" has no reference test yet.

Case Requirement Method Pass condition Reference test
D-SEC-N-01 §13.14 T Commands signed with ES256 and with EdDSA are accepted; the audit record shows command_signature_valid: true. test_sign_and_verify_both_algorithms, test_signed_command_is_accepted_and_audited
D-SEC-N-02 §13.14 T alg: none, attached payloads and non-detached forms are refused. test_alg_none_and_attached_payloads_are_refused
D-SEC-N-03 §13.14 T With signed_commands: true, a missing, body-tampered or wrong-key signature gives 401 UNAUTHORIZED, writes an auth.failure audit record, and does not consume the command_id. test_unsigned_or_bad_signature_is_refused_with_401_and_audited
D-SEC-N-04 §13.5, §13.14 T Replaying a captured signed command is rejected as a duplicate. test_replaying_a_captured_signed_command_is_a_duplicate
D-SEC-N-05 §13.14 T A valid signature by a key not registered for the lease's client_id and operator_user, or by an unknown kid, is refused. test_n05_signature_from_an_unregistered_kid_or_operator_is_refused
D-SEC-N-06 §13.14 T A command refused for its signature produces no command_status and no vehicle action. test_n06_a_refused_signature_never_reaches_the_vehicle
D-SEC-N-07 §13.15 T Audit records carry seq and prev_hash from the 64-zero genesis; the chain continues unbroken across a restart and across day files. test_records_chain_from_genesis_and_validate, test_chain_survives_restart
D-SEC-N-08 §13.15 T An edited, deleted or reordered record is detected by chain verification; truncating the tail is detected against a retained checkpoint. test_edit_deletion_and_reordering_are_detected, test_truncating_the_tail_is_caught_by_a_checkpoint
D-SEC-N-09 §13.15 T A signed audit_checkpoint envelope reaches the client at lease end, validates against its schema, verifies with the device key and names a chain head present in the log. test_n09_checkpoint_is_delivered_on_the_session_channel_at_lease_end
D-SEC-N-10 §13.15 T While a lease is active a checkpoint is signed at the configured interval. test_n10_checkpoints_continue_while_a_lease_is_active
D-SEC-N-11 §13.15 T The default interval is at most 3600 s. test_n11_default_checkpoint_interval_is_at_most_one_hour
D-SEC-N-12 §13.12, D-CAP T security.signed_commands and security.audit_chain are true exactly when the behaviour is enforced. test_n12_advertised_security_matches_behaviour
D-SEC-N-13 §13.12 T security.key_storage names the real storage class; a software key is reported SOFTWARE, never as hardware-backed. test_n13_gateway_does_not_claim_hardware_keys_it_lacks
D-SEC-N-14 §13.12 E For SECURE_ELEMENT, TPM or TEE: the vendor shows that the device private key cannot be exported, and, where attestation is true, supplies a verifiable attestation (EAT, RFC 9711) for the credential key. none
D-SEC-N-15 §13.13 E Secure boot and signed firmware: the vendor shows an unsigned, modified or rolled-back image is refused, that firmware_version identifies the running signed image, and supplies an SBOM (SPDX or CycloneDX). none
D-SEC-N-16 §13.20 E, T In a simulator and on a test range, a command that exceeds the aircraft's geofence, altitude or speed limit is refused or clamped by the vehicle controller even with UNIVIP's own checks disabled. none
D-SEC-N-17 §13.20 E The vendor supplies a summary of the safety case or operational risk assessment for the exposed control function. none
D-SEC-N-18 §13.20 T If remote_id.state is reported it is one of ACTIVE, INACTIVE, FAULT, UNKNOWN and matches the broadcast state. test_n18_remote_id_state_is_reported_only_from_the_vehicle; .NET N18_remote_id_state_is_reported_only_from_the_vehicle (simulator only; the MAVLink adapter reports nothing)
D-SEC-M-01 §13.16 T A WebRTC session with a client that offers SRTP_AEAD_AES_128_GCM and the CM/HMAC-SHA1 baseline negotiates AEAD, and the media decrypts; a client offering only the baseline still connects. test_media_negotiates_an_aead_srtp_profile; .NET N_aead_aes_gcm_is_negotiated_…, N_the_cm_hmac_baseline_remains_…, and the aiortc check in MediaTests
D-SEC-M-02 §13.16 T DTLS 1.3 is offered where the stack supports it; media sessions are re-established at least every 24 hours. none (neither reference stack implements DTLS 1.3)
D-SEC-P-01 §13.11 T PKI profile: keys are P-256, Ed25519 or RSA of at least 3072 bits; the certificate carries a urn:univip: SAN URI, keyUsage digitalSignature and EKU clientAuth; an expired, revoked or untrusted-CA certificate is refused (failing closed for Profile N when revocation status is unavailable); a vendor CA is not trusted outside its manufacturer. test_pki_profile.py; .NET SecurityProfileTests (profile check and enforce_pki_profile; CA trust and revocation lookups are the TLS stack's and are not tested)
D-SEC-P-02 §13.17 T Claim codes: at most 5 failed attempts per code, single use, expiry within 15 minutes, per-source rate limiting. test_enrollment_policy.py; .NET SecurityProfileTests (policy engine) and test_operator_keys.py::test_claim_code_enrolls… / A_claim_code_enrolls… (the HTTP exchange)
D-SEC-P-03 §13.18 T Per-client quotas on sessions, WebRTC peers and request rate; one principal cannot starve another; viewing and configuration traffic are shed before telemetry, safety events and lease expiry. test_rate_limits.py, test_pki_profile.py::test_proxied_requests_…, RateLimitTests.cs, SecurityProfileTests.cs (request-rate quotas on REST and proxied requests); test_media.py (WebRTC peers). test_rate_limits.py and RateLimitTests.cs also test in-flight limits and load shedding (reads shed at half the limit, commands kept); WebRTC peers are bounded per client (max_peers_per_client). The gateway holds no inbound per-client session state beyond peers and in-flight requests, so there is no further session quota to test

14.2.2 Cases for Profiles T, A, F and Tier 3 (0.3 Draft)Link to the section 14.2.2 Cases for Profiles T, A, F and Tier 3 (0.3 Draft)

These cases are drafts; method and pass conditions may change before 0.3 is final. Neither reference gateway implements Profiles T, A or F yet, so most cases have no reference test.

Case Requirement Method Pass condition Reference test
D-HEADLESS-01 Part 04 §4.1.1 T A Device claiming T without S passes D-ID, D-SESSION, D-CAP, D-TEL and D-EVT with empty media.streams, and emits no vehicle.camera.stream.* events. none
D-HEADLESS-02 Part 07 §7.4.1 T When only a facility-frame pose exists, telemetry carries a schema-valid local_pose and no fabricated position. none
D-HEADLESS-03 Part 15 §15.4 T A finalized artifact produces vehicle.payload.artifact_ready; the artifact is listed and retrievable over REST (directly or through the session proxy) and its SHA-256 matches the event. none
D-AUT-01 Part 15 §15.2.1 T capabilities.autonomy is present and schema-valid; with enabled: false, every vehicle.autonomy.* command is rejected FLIGHT_CONTROL_DISABLED. none
D-AUT-02 Part 15 §15.2.2 T An autonomy-scope lease authorizes vehicle.autonomy.*, vehicle.hold, vehicle.return_home and vehicle.cancel and refuses vehicle.goto and vehicle.move_relative; at most one vehicle or autonomy lease is active at a time. none
D-AUT-03 Part 15 §15.2.4 T vehicle.autonomy.assign_goal outside vehicle.limits or an active corridor is rejected GEOFENCE or OUT_OF_LIMITS; an accepted goal reports ACCEPTED, EXECUTING and an outcome, and telemetry.autonomy tracks it. none
D-AUT-04 Part 15 §15.2.4 T An induced ambiguity puts the vehicle in AWAITING_ASSIST holding safely and raises vehicle.autonomy.intervention_requested; an assist_response clears it; an unanswered request runs the fallback at deadline_at. none
D-AUT-05 Part 15 §15.2.2 T With on_session_loss: CONTINUE_WITHIN_ODD, the goal continues after session loss for no longer than offline_grace_s (clamped to max_offline_grace_s), then runs fallback_action; leaving the ODD while offline runs it at once; pilot override preempts it; each transition is in the audit chain. none
D-FLEET-01 Part 15 §15.3.2 T telemetry.fleet.availability is always present; dock_state is present whenever assigned_dock_id is. none
D-FLEET-02 Part 15 §15.3.3 T Dock, corridor and handoff commands are refused without a vehicle or autonomy lease, except vehicle.fleet.set_corridor from a principal the operator policy permits; vehicle.dock.abort_prep that cannot be honoured is rejected command-not-cancellable. none
D-FLEET-03 Part 15 §15.3.3 T A movement that would leave an active corridor's allowed_volume or enter a keep-out zone is refused or stopped by the Device, and a corridor past valid_until no longer applies. none
D-FLEET-04 Part 15 §15.3.3 T In a two-vehicle simulation, vehicle.fleet.handoff reports PREPARING, ON_STATION and RELIEVED through vehicle.fleet.handoff_state, and the relieved vehicle executes on_relieved. none
D-FLEET-05 Part 15 §15.3.4 T A supplied operation_id appears in the lease, command, events, telemetry and audit records it relates to. none
D-DUAL-01, D-DUAL-02 Annex B §B.5.2 T As defined in Annex B §B.6. .NET DualControlSigningTests (D_DUAL_01_…, D_DUAL_02_…)
D-DDIL-01…03, D-EMCON-01…02, D-PQ-01…02 Annex B §B.1–B.4 T As defined in Annex B §B.6. none

A Tier INDUSTRIAL or DEFENSE claim requires the D-SEC, D-SEC-N, D-SEC-M and D-SEC-P cases (§14.2.1) that test the rows of Part 13 §13.21 for that tier; a DEFENSE claim also requires every Annex B §B.6 case for the features the Device advertises. A case-by-case mapping from tier rows to cases is not yet defined; until it is, no tier claim can be completed.

14.3 Test groups (Client)Link to the section 14.3 Test groups (Client)

Group Covers Profile
C-SESSION Accepts device sessions, validates auth, handles capabilities updates, deduplicates events T, S
C-RENDER Renders mandatory stream; displays position with altitude reference; alignment ≤ 100 ms measured via timecode pattern S
C-RECORD Recording retains telemetry, events, capabilities; replay reproduces flight path; export of ST 0601 if claimed S
C-CAM Offers only advertised controls; maps PTZ gestures to camera.* only; handles rejections visibly C
C-AIR Lease acquisition before controls; lease state/expiry visible; ACCEPTED not shown as done; failsafe events surfaced immediately; separate permission for vehicle vs camera N
C-SEC TLS 1.3, scope separation, token lifetimes, credential revocation T, S
C-HEADLESS 0.3 draft: shows a Device without media from telemetry alone and does not treat the missing stream as a fault; preserves telemetry and events for replay; renders local_pose T
C-AUT 0.3 draft: shows goal, autonomy state and ODD margin; surfaces intervention requests with their deadline and answers them; shows offline-grace state A
C-FLEET 0.3 draft: shows availability and dock state; correlates vehicles by operation_id; separates fleet administration from vehicle control permissions F

14.4 Test environmentLink to the section 14.4 Test environment

  • Device tests for Profile N MUST be run against a simulator (for example PX4 SITL via the reference gateway) and at least once against real hardware in a controlled environment under an operator's authority before a Profile N claim is published.
  • The timecode pattern for alignment tests is a visible frame counter and a machine-readable timecode strip injected on the video source, so that the client's displayed telemetry time can be compared to the decoded frame's time. The strip encodes 72 bits, most significant first: the capture time on the device clock (48 bits, milliseconds since the Unix epoch), a frame counter (16 bits, modulo 2¹⁶) and a check byte (8 bits: the low byte of the sum of the 8 bytes of the 64-bit big-endian value time << 16 | counter, XOR 0x5A). The bits are drawn as square cells of side c = max(4, ⌊width / 80⌋) pixels, white for 1 on a black background, in 2 rows of 36 cells, row by row; the strip's top-left corner is at (width − 37c, height − 3c). A reader samples the luma at each cell's centre (threshold 50 %) and discards a frame whose check byte does not match. The pattern survives H.264 compression at ordinary bitrates and needs no QR library; the reference gateway's synthetic camera draws it (gateway/univip_gateway/media.py).

14.5 Claim rules (Draft)Link to the section 14.5 Claim rules (Draft)

  • Claims use the exact form UNIVIP <version> <Target> Profile <S|C|N>[, <bindings>].
  • Under the 0.3 draft, claims name the domain and form factor, the profiles and the assurance tier, as in Part 04 §4.6 (for example UNIVIP 0.3 Device · GROUND (WHEELED_AMR) · Profiles T, N, A, F · Tier INDUSTRIAL). A Profile T, A or F claim, or a Tier claim, is valid only once every case in §14.2.2 that applies to it has a published test.
  • A claim is valid for the tested firmware/software version; a MAJOR firmware change requires re-test.
  • Misrepresentation of a claim is grounds for removal from the public conformance list.

14.6 Reference implementations and self-certificationLink to the section 14.6 Reference implementations and self-certification

Until the Conformance Tool exists, implementers MAY publish self-declared interoperability reports against the reference gateway and reference client, using the example messages in ../examples/ and the validator in ../tools/validate.py as the minimum bar. Such reports MUST NOT use the word "conformant".

Generated from spec/14-conformance-testing.md.