← Blog

· Hive AI

Knolo KIP-0011: One Authority Session From Query to Signed Envelope

Knolo KIP-0011 composes query, policy, keyring and signed envelope checks into one authority session with a single root, and fails closed on a missing keyring.

Knolo is the open-source, local-first Knowledge Image runtime and format (Apache-2.0, @knolo/core on npm). The last few Knolo KIP notes covered the pieces of an authority decision one at a time. KIP-0008 evaluates a committed policy. KIP-0009 binds a verified principal to that result with a signed envelope. KIP-0010 rotates the keys that sign it. KIP-0011, Authority Session V1, is where they meet.

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

What Knolo KIP-0011 adds, and what it doesn't

KIP-0011 defines the application-facing composition boundary for a verified V5 authority decision. In plain terms, it is one call an application can make instead of wiring four checks together by hand. The specification is explicit that it does not add mutable transactions or a new query language.

The inputs to a Knolo authority session

A session takes:

  • a Knowledge Image,
  • a bounded EQL expression or an already parsed plan,
  • a policy,
  • an authority envelope,
  • an evaluation time.

It then runs the deterministic query, evaluates the policy for the envelope's subject, selects a keyring by the envelope's optional keyringRoot, and verifies the signed envelope. Passing the evaluation time in, rather than reading a clock inside, is what lets someone else replay the same decision later.

Fail closed when the Knolo keyring can't be found

The keyring provider is supplied by the host and may load a persisted snapshot. If the envelope names a keyringRoot the provider cannot select, the session fails closed. It does not fall back to whatever keys happen to be loaded. Envelopes without a keyringRoot stay compatible with the earlier V5 verification path, so KIP-0011 does not break records written before key rotation existed.

One Knolo root over the whole decision

The result exposes each root that went into the decision: state, plan, query result, authorization, envelope and keyring. It then adds an authority-session root over those values. Two parties who hold the same image and inputs can compare one digest instead of six, and any change to any input changes that root.

As with every Knolo root, this is an integrity check. It shows the decision was computed from these exact inputs. It does not make the underlying content true.

Knolo algorithms and adapters

The initial implementation provides the facade for Ed25519 over WebCrypto (verifyKnowledgeAuthoritySessionWithEd25519 in packages/core/src/knowledge_authority_session_v5.ts). Other algorithms remain host adapters that are injected, not built in. That matches the rest of the Knolo authority line: the format fixes what is signed and how it is rooted, and the host chooses where keys live.

Read further on Knolo

Questions or corrections about a Knolo specification belong in the open, on the repository, where anyone can check them against the code.

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