← Blog

· Hive AI

Knolo KIP-0009: Authority Envelopes Bind a Verified Principal to a Decision

Knolo KIP-0009 binds an externally verified principal to a V5 policy decision: signed envelopes, delegation chains up to eight links, and fail-closed checks.

Knolo is the open-source, local-first Knowledge Image runtime and format (Apache-2.0, @knolo/core on npm). A policy decision only matters if you know who asked. Knolo answers that second question in KIP-0009, Authority Envelope V1, in the specification folder of the Knolo GitHub repo.

A note on status: the Knolo KIP index on knolo.org currently shows labeled example records, not accepted standards. KIP-0009 in the repo is marked "foundation implementation". It describes what the runtimes do today and has not been through a public acceptance process.

Where Knolo KIP-0009 sits

KIP-0008 evaluates a committed policy against a V5 query result and produces an authorization root. It names a principal, but it does not prove that principal is who they say they are. KIP-0009 binds an externally verified principal to that authorization result. KIP-0010 then handles rotating the keys that sign it.

What a Knolo authority envelope carries

An envelope has a version, an issuer, a subject, the authorizationRoot it vouches for, issuedAt and expiresAt, an algorithm, an optional keyId and keyringRoot, a list of delegations, and a signature. The signature covers canonical CBOR of every envelope field except the signature itself. Delegations appear in that signed payload by the digests of their own payloads. authorityEnvelopeRoot is the digest of the signed payload plus the signature bytes, so the envelope has a stable identity anyone can recompute.

Knolo delegation chains are short and continuous

Each delegation names a delegator, a delegatee, exactly one action (query or read), validity bounds, an algorithm and a signature over its canonical payload. The chain rules are strict:

  • It must start at the envelope issuer and end at the envelope subject.
  • It must be continuous: each delegatee is the next delegator.
  • Every link must cover the action being authorized.
  • It can be at most eight links deep.

What Knolo checks, and how it fails

Validity uses the half-open interval [issuedAt, expiresAt). The envelope subject must equal the authorization principal, and the envelope authorizationRoot must equal the root of the verified policy decision. A missing key, an unsupported signature, an expired claim, a broken chain or a root mismatch all fail closed. When keyringRoot is present, the verifier must be given the exact persisted keyring root and rejects a missing or different one. Envelopes without that optional field keep the original V5 behavior, so older records stay valid.

What Knolo leaves to the host

KIP-0009 deliberately does not choose a cryptosystem or an identity provider. The runtime defines the canonical payloads and the chain validation; the application supplies key resolution and the signature verifier. Ed25519, WebCrypto, certificates, group expansion and network identity are adapter responsibilities. The TypeScript runtime includes a WebCrypto Ed25519 adapter with validity- and revocation-aware keyring selection, and the published @knolo/core@6.2.3 exports verifyKnowledgeAuthorityEnvelopeV5 and verifyKnowledgeAuthorityEnvelopeWithEd25519. The Knolo policy and authority docs add that the Rust runtime produces matching canonical authority-envelope roots, while algorithms and identity resolution stay host responsibilities there too. That shared root is what makes a second implementation's Knolo compatibility claim testable.

An authority envelope proves who was allowed to ask and under which policy decision. It does not prove the returned content is true. Verification proves integrity, not truth.

Read more

knolo · kip · specification · authority · knowledge-image · open-source