Conformance and security evidence
This document is the canonical owner of the evidence required before Konclave protocol, cryptographic, identity, relay, daemon, or adapter changes are...
Repository-relative paths and “this checkout” refer to the Konclave source repository, not this website. The source link above identifies the exact revision used here.
This document is the canonical owner of the evidence required before Konclave protocol, cryptographic, identity, relay, daemon, or adapter changes are delivered.
Evidence levels
Focused iteration
During implementation, run the smallest deterministic test covering the changed invariant. Do not substitute a full workspace build for a missing assertion.
Pull-request merge gates
GitHub-hosted runners own complete workspace, integration, packaging, and hosted evidence for this public repository. Merge gates grow with implemented capabilities and include the suites below once their corresponding surfaces exist.
Authorization store conformance is the focused draft-capable gate for
Konclave.LocalAuthorizationStore. It runs the crate’s exact format, integration
test, and Clippy commands plus the daemon’s authorization-runtime and local-service
tests before client, administration, or package integration relies on new store
behavior.
Authorization reload conformance is the focused draft-capable gate for the daemon’s
failed-closed reload recovery state machine. It runs the exhaustive transition table,
deterministic delayed-read recovery, a real exclusive SQLite-lock boundary test,
shared-service client closure and fresh-snapshot recovery, Rust formatting, and
Clippy before distribution or package integration relies on the behavior.
Relay migration conformance and Relay migration Windows conformance are the
focused draft-capable gates for moving durable profiles between self-hosted relay
endpoints. They run the exhaustive migration transition table, shared
installation-identity derivation, exact endpoint-bound credential resealing,
interrupted apply/resume and local abort, partial-migration profile admission denial,
exact retry after stable enrollment rate limiting, repeated migration against a real
enrollment endpoint, a real 30-profile batch above one relay rate window, installer
argument contracts, Rust formatting, and component lint. The Windows gate additionally
proves exact owner-restricted file replacement and the packaged PowerShell
orchestration scope.
Pairing rendezvous conformance is the focused draft-capable gate for compact
pairing handoff. It runs the fixed Crockford Base32 and HKDF vectors, authenticated
capability round trips, token/lookup/expiry/ciphertext negative cases, protocol
compatibility, relay publish/take policy and SQLite migration, authenticated HTTP and
client redirect safety, a complete two-client daemon pairing, generated local-service
tool contracts, generated TypeScript protocol bindings and schema checks, extension
command acceptance, Rust and TypeScript formatting, and component lint.
Short-code pairing conformance is the focused draft-capable gate for the
non-bearer human-code authorization flow. It runs the pure confirmation transition
table, six-digit code and locator validation, RFC 9807 OPAQUE registration/login and
wrong-code cases, opaque state canonicalization, deterministic transcript/SAS
vectors, role-separated encrypted-channel tests, bounded protocol codecs, relay
policy and SQLite migration, authenticated HTTP and real client transport acceptance,
generated TypeScript protocol checks, sealed daemon schema migration and restart
recovery, malicious-relay and wrong-code rejection, mutual-confirmation-to-MLS
acceptance, deterministic local tool contracts, extension command acceptance, Rust
and TypeScript formatting, strict lint, and the pinned security-dependency policy.
Trusted device alias conformance is the focused draft-capable gate for local
address-book binding and repeat-conversation bootstrap. It runs canonical alias and
current-root decisions, sealed profile migrations and tamper checks, bounded internal
request/response codecs, restart and accepted-response-loss recovery, exact
pairing-authorization binding, a two-device second-conversation and real-message
acceptance, user-history and adapter-delivery exclusion, deterministic command-only
tool boundaries, generated TypeScript protocol checks, extension command acceptance,
Rust and TypeScript formatting, and strict lint.
Generic client conformance is the focused draft-capable gate for the unsupported
harness fallback. It runs the generic argument and identity contract, the shared
TypeScript client and policy-configuration tests, full extension formatting and lint,
type checking, compilation, and package verification. Its relevance covers the full
extension plus the authorization store, transport, platform storage, and daemon
authorization boundaries. It runs Generic quota and issuer-state store coverage,
live daemon disablement, transport coverage, and packaged-acceptance compilation
before packaged daemon or skill integration relies on that contract.
User presence conformance is the focused draft-capable gate for native
UserPresence authorization. It runs the pure request-binding and lifecycle tables,
WebAuthn verification vectors, exact schema-1-to-2 migration and credential-store
tests, CLI policy/helper bounds, local-service transport, daemon issuance/restart
recovery, TypeScript policy selection, bounded native-helper process behavior, exact
completion retry, extension coverage, compilation, and plugin package verification.
Its relevance includes every Rust, sidecar, extension, workflow, and release-package
surface that can alter this evidence path.
Release evidence
A release records exact dependency versions, supported protocol versions, fixture
set hashes, conformance results, security-review disposition, and known limitations.
Machine-readable manifests live under protocol/releases/ and are verified by
scripts/protocol/Test-ProtocolRelease.ps1. A manifest becomes immutable when its
declared protocol tag is created from the merged main commit.
The verifier evaluates every release manifest. A released manifest is checked against
its exact declared Git tag rather than against later source evolution. The verifier
first requires the tracked manifest to remain identical to that tag, then validates
lockfiles, fixtures, dependency versions, protocol limits, MLS configuration, and
profile schema from an isolated tag archive. An unreleased manifest whose tag does
not yet exist is validated against the current working tree. Releases after
protocol-v1.0.0-alpha.1 additionally bind the vendored A2A source and provenance,
immutable A2A fixtures, public interoperability crates, classified TCK profile, and
official SDK provenance. Exact A2A identities are selected by release tag so a future
protocol or SDK upgrade adds a verifier profile without changing the meaning of an
older immutable manifest.
protocol-v1.0.0-alpha.3 is an additive source/SDK snapshot with the same v1 wire
and upstream A2A profile. It publishes the shared task-store lifecycle policy and
optional portable adapter assertions, binds the current schema and dependency
snapshot, and does not claim a new backend or daemon-independent native runtime.
protocol-v1.0.0-alpha.4 publishes the shared durable
NativeConversationProcessor and NativeSession, explicit semantic journal and
sealed-storage contracts, and the bounded independently owned native-service
example. It also snapshots the negotiated request-service and request-delivery
semantics already present in the implementation. Ordinary legacy requests retain
their encoded representation; optional delivery cutoffs and receipts require
signed capability support and never silently downgrade.
The snapshot records profile schema 24, exact lockfile/fixture identities and
the native implementation’s completed source, compatibility and platform evidence.
An admission cutoff is not task cancellation, and a delivery receipt is not
proof of execution. The bounded example rejects unsupported delivery options
before admission; a production journal/MLS adapter still needs direct ownership,
atomicity, sealing and restart qualification. This is a source/SDK release, not
a binary, installer or marketplace publication or an operating deployment.
protocol-v1.0.0-alpha.5 snapshots source version 0.1.31 with the same v1 wire,
profile schema 24 and upstream A2A requirement profile. It includes the shared
authenticated unknown-route/version error boundary and reusable external
conformance deployment runner. Missing credentials on unknown HTTP routes now
receive authentication refusal instead of a bare framework 404; authorized
current/default-version misses retain a bounded 404 without task effects.
The source snapshot records actual runtime, platform and conformance evidence;
it does not republish binaries or select a deployment or provider.
The hosted Rust-lint lane runs scripts/protocol/Test-ProtocolReleaseProfiles.ps1
against an isolated archive of the release’s verified source: the submitted head
before publication and its immutable tag afterward. It verifies the new profile
and refuses unknown release profiles, missing A2A evidence and substituted SDK
identity. Tagged historical manifests remain checked against their own source.
Continuous integration checks out a shallow revision without tags, so a locally missing tag does not prove that a release is unpublished. The verifier asks the origin remote, shallow-fetches the exact release tag when it exists, and fails closed when that lookup cannot complete. It never falls back to the working tree for a manifest whose release already exists.
Required suites
Schema compatibility
- compile every Konclave-owned
.protoschema for Rust and TypeScript, and compile the vendored A2A schema through its dedicated Rust boundary; - decode immutable fixtures from every supported major version;
- verify additive-field compatibility with a previous reader;
- reject reused field numbers, invalid enum zero values, malformed lengths, and unsupported major versions;
- compare canonical semantic values across Rust and TypeScript implementations.
- verify harness-adapter API v1 operation names, bounds, JSON shapes, every delivery payload kind, acknowledgement/release behavior, crash/reclaim semantics, and connection-bound ambiguous-claim recovery against the immutable shared-local-service fixture without invoking Copilot CLI;
- verify the vendored A2A v1.0.1 schema, license, generation stubs, and immutable fixtures against their recorded byte lengths and SHA-256 digests;
- reject initial-profile A2A requests that use another protocol version, binding, tenant, role, part form, media type, metadata, extension, task reference, URL trust mode, encoded size, text size, identifier shape, or history range.
- prove A2A mapping derives one stable task and Konclave request identifier from the exact tenant, agent, context, and source message; rejects tenant/context substitution; and keeps A2A task state distinct from delivery and handling state.
- run the portable A2A task-store contract against SQLite, covering exact create retry, context binding, expected-generation transitions, completion evidence, terminal immutability, message/artifact idempotency, restart recovery, hard byte and row capacities, retention tombstones, atomic task/message snapshots, and corruption refusal.
- validate bounded public and extended Agent Cards, exact production or loopback interfaces, Bearer/mTLS requirements, public/private visibility, authorization-before-lookup, explicit no-scan catalogs, exact protected-profile parameters, required-extension downgrade refusal, protected-only discovery, standard-gateway startup refusal, and deterministic OASF projection without claiming full OASF server validation.
- exercise the A2A HTTP+JSON reference router and outbound client over exact tenant paths, preferred media/version headers, bounded status errors, immediate and terminal-wait tasks, ETag revalidation, redirect refusal, no-proxy client construction, response correlation, SQLite restart state, and TLS-or-loopback binding.
- run the pinned upstream A2A TCK only on GitHub-hosted capacity, require every supported requirement ID to pass, and permit only the exact versioned exclusions and upstream defects recorded by the A2A conformance profile; and
- run the same loopback gateway through the pinned official
a2a-pythonclient for discovery, non-streaming tasks, artifacts, lookup/listing, and SSE.
MLS and cryptographic integration
- run upstream RFC 9420 known-answer and interoperability vectors supported by the selected provider;
- keep project vectors for device credential bindings, invitations, group creation, membership changes, application framing, exporters, and state restoration;
- test invalid signatures, wrong groups, stale epochs, removed members, corrupted Welcome messages, downgrade attempts, deleted secrets, invitation substitution, and device root-key compromise recovery;
- prove key material and plaintext are absent from
Debug, serialization, logs, telemetry, panic messages, and snapshots; - verify provider and persistence adapters fail closed.
- restart from sealed conversation signing material and MLS state across pending join, pending commit, application ratchet, and removed-device tombstone transitions;
- restart Join and Membership replay heads after later local policy acceptance but before the accepted operation’s own relay echo;
- reject a same-route, same-class, same-parent Commit receipt whose envelope identifier differs from the identifier authenticated by the Welcome, and prove exact acceptance across checkpoint and restart;
- resume an exact historical add retry with its original Welcome and cursor after later policy transitions;
- terminalize ready application outbox rows atomically on self-removal, return a permanent not-member retry result, perform no relay submission, and keep later exact route replay healthy;
Property and fuzz testing
Property tests cover identifiers, counters, authorization transitions, deduplication, cursor acknowledgment, epoch transitions, and encode/decode round trips.
Fuzz targets cover all untrusted binary decoders, protobuf-to-domain conversion, relay envelope framing, invitation parsing, and MLS adapter entry points. Every fixed crash or excessive-allocation case becomes a permanent regression input.
Relay opacity and delivery
- persist and replay only allowlisted metadata plus opaque MLS bytes;
- scan storage, logs, metrics, and traces for fixture plaintext and key sentinels;
- test at-least-once duplicates, gaps, pagination, expiration, reconnect, and atomic invitation redemption;
- test conflicting Commits, honest compare-and-set epoch serialization, and fail-closed behavior when a client observes a fork;
- reject an N+2-first replay page without journal or MLS mutation, then accept the exact N+1/N+2 page; reject cursor arithmetic overflow before mutation;
- test authenticated WebSocket catch-up, live notification, disconnect, reconnect, missed-message replay, heartbeat failure, and notification-loss recovery;
- document that an isolated split view cannot be detected under the initial trusted sequencer assumption;
- prove retries are idempotent and do not repeat application side effects.
Daemon and adapter authorization
- reject unauthorized local peers and malformed model-generated tool arguments;
- authenticate protocol-v2 issuer and session roles with exact key versions, exact profile/session-key grants, policy and evidence claims, fresh challenges, pinned service identity, and uniform signed rejection;
- verify UserPresence registration and assertion challenge, relying party, origin, credential, signature, UP/UV flags, user handle, and counter state; bind the exact installation, service, issuer connection and request, policy, profile, ephemeral session key, harness, evidence, capabilities, and expiries; require the session-key signature; recover only an already-issued exact completion; reject replay, substitution, stale challenges, changed assertions, unsupported platforms, and silent AccountTrusted fallback; and complete overlapping valid assertions out of order to prove stale credential state cannot regress the durable counter or issue a second grant;
- refuse startup without a valid installation-bound authorization store, preserve grants across service restart, and observe exact revocation, profile suspension, issuer disablement, policy invalidation, and reload failure within the documented one-second live-state bound, including an in-flight long delivery claim; reload failure must close clients without terminating the service and restore access only after a fresh verified snapshot;
- prove the issuer cannot invoke operational methods, grants expire without active eviction, quota exhaustion denies, and active-registration checks close revoked connections;
- bound shared-service request payload plus cached-response reservations, never publish a false terminal outcome for abandoned execution, reject conflicting idempotency-key reuse, and return one sealed recorded outcome across reconnect, replacement grant, and service restart;
- prove authenticated cancellation is scoped to one session key and request ID, wins only before commit, and yields to the actual durable result after commit;
- inject terminal-journal read/write failures and prove they neither leak process-wide ledger capacity nor replace a committed result with a false terminal response;
- reproduce
fixtures/local-service/v2/authorization-transcript.jsonfrom Rust and TypeScript, including every grant claim and both role-separated signatures; - keep
fixtures/local-service/v1/copilot-tools.jsonbyte-semantically aligned with the Rust router and consume that generated input schema from the Copilot SDK adapter; - prove fresh interactive and delivery handshakes correlate policy authority only through the same authenticated session public key, then reject another session key;
- exchange and activate one exact policy digest across packaged clients, restart the shared service, and complete one exact directed request without bypassing native permission or delivery-lease checks;
- reject ordinary text, another device’s request, stale delivery generations, stale handling attempts, changed policy digests, and a second response before any model or outbound side effect;
- prove claim recovery is bounded, idle no-response completion is terminal and idempotent, and one response transition shares the sender-counter/outbox transaction;
- prove root-signed device capability advertisement preserves legacy credential fixtures, rejects capability substitution, and prevents directed requests to a local or absent target or a conversation with any legacy incapable remote member before sender-counter allocation;
- prove delivery heartbeats renew one active handling claim without changing its attempt or lease generation, ordinary polling leaves abandoned event claims reclaimable, prompt startup is bounded, and Copilot acknowledges only after terminal turn completion;
- verify schema-18 migration, authenticated downgrade refusal, sealed handling-record and row-count tampering detection, hard capacity, and absence of response plaintext from ordinary SQLite columns;
- normalize bounded object and serialized-object pre-tool arguments into the same
exact
send_messagedecision while rejecting malformed, oversized, scalar, collection, proxy, and unknown-field inputs; - reconcile an exact policy-operation own echo against its reserved outbound message while continuing to reject different local or remote content under that identifier;
- prove tools expose no raw identity key, MLS secret, or storage wrapping key;
- test cancellation, backpressure, bounded watches, reconnect, and daemon restart;
- prove an absent or connection-accepted-but-silent local service cannot hold Copilot extension startup beyond the installed transport budget, while ordinary operation deadlines and the UserPresence ceremony window remain independent;
- simulate long and changing extension outages to prove retries recover, diagnostics remain logarithmically sparse, arbitrary exception text is not logged, and a valid response resets suppression;
- verify CLI and Copilot adapters produce the same domain outcomes through the public client contract.
- verify the outbound relay client refuses insecure remote endpoints and redirects, bounds length-declared and chunked responses, services watch heartbeats, and reconnects from the last durable cursor.
- verify sender attribution, authorization, counters, and replay state derive from the authenticated MLS sender even when application bytes attempt impersonation.
End-to-end vertical slice
The first functional milestone is not complete until two independently running sessions can:
- create device identities;
- create a conversation;
- issue and redeem one invitation;
- join through an opaque relay;
- exchange authenticated encrypted messages;
- disconnect one endpoint;
- send while it is offline;
- reconnect and replay the missed message;
- receive a duplicate without repeating side effects;
- remove a device and prove it cannot decrypt a later message.
The test records no plaintext or secrets in relay diagnostics.
shared_service_process exercises the current process model with 20 clients and one
service PID over the Community Relay HTTP API. It covers pairing, bidirectional
messages, client disconnect, offline replay, service restart, identity recovery,
process/descriptor/memory bounds, and relay opacity. The deeper legacy
multi_process_relay_e2e remains supplemental domain regression coverage for removal
and post-removal denial until those cases move into the shared-process harness.
Determinism
Tests inject clocks, randomness, storage, and transport faults through explicit providers. Security fixtures use committed deterministic seeds only inside test code. Production random generation never accepts a deterministic fallback.
Tests avoid arbitrary sleeps. Async behavior uses deterministic signals, paused time, bounded deadlines, and observed task completion.
Specialized review
Before delivery, changes affecting cryptography, identity, invitation redemption, authorization, membership, wire parsing, replay state, secret persistence, or relay-visible metadata require:
- repository review through
review-changes; - a specialized security review;
- disposition of every material finding;
- an ADR update or superseding ADR when architecture or trust assumptions change.
Deferred platform evidence
Primary CI runs on hosted Linux and does not execute the Windows Service runtime. The hosted Windows package lane retains the existing native security and endpoint tests; changes needing broader Windows Service execution report that missing evidence until the package workflow adds the corresponding test.
Content: Konclave,Apache-2.0. Revision: 8d0d3676e9fc746749a4fc04ddeb4499023c4104.