Knolo KIP-0007: Bounded EQL and Query Roots Anyone Can Recheck
Knolo KIP-0007 defines a read-only EQL over V5 Knowledge Images with canonical plan and result roots; KIP-0018 adds joins and ordering without changing old roots.
Knolo is the open-source, local-first Knowledge Image runtime and format (Apache-2.0, @knolo/core on npm). Every Knolo query over a V5 Knowledge Image goes through one small, written-down surface: KIP-0007, Bounded EQL v1, extended by KIP-0018 with joins and ordering. This note walks through what the Knolo specification fixes, and why a query in Knolo produces roots another implementation can check.
Knolo KIP-0007: a read-only query surface
KIP-0007 defines a read-only query surface over a mounted V5 Knowledge Image. It does not alter the V4 retrieval APIs, mutate objects, or evaluate authority and policy decisions. The grammar is deliberately short:
FROM <kind|*>
[WHERE <field> = <literal> AND <field> = <literal> ...]
[SEARCH "text"]
[LIMIT <positive integer>]
Keywords are case-insensitive. Supported fields are id, kind and scalar meta.<key> values. Literals are quoted strings, safe integers, true, false or null. SEARCH matches every normalized term as a substring of the UTF-8 object bytes. The limit defaults to 100 and is capped at 1000.
The Knolo plan root
The parser normalizes keyword spelling, text case, whitespace, field names and filter order, then encodes the plan as canonical CBOR (filters, kind, limit, search, source knowledge-image-v5, version 1). The plan root is computed over the domain-separated prefix knolo:query-plan:v1 and that canonical encoding. Two hosts that write the same query differently still get the same plan root.
The Knolo result root
Matching objects are filtered, sorted by stable object identity and truncated by the plan limit. The result root binds three things: the committed image state root, the plan root, and the ordered matching object ids, under the prefix knolo:query-result:v1. The specification requires the Rust and TypeScript runtimes to produce identical plan roots, hit ids and result roots for the same image and expression. Querying is snapshot-based and read-only.
Knolo KIP-0018: joins and ordering without breaking old roots
KIP-0018 adds up to four read-only equality JOIN ... ON clauses and one-field ORDER BY with ASC or DESC. Missing values sort after present values, and object identity is the ascending tie-break. The 1,000-result limit stays.
The compatibility rule matters most for an open ecosystem: legacy queries omit the new optional plan fields and keep their existing plan and result roots. A receipt written before KIP-0018 still verifies after it. Join results add the ordered joined identities to the result root. Execution scans verified snapshots and builds no persistent index.
What Knolo EQL leaves out on purpose
Mutation statements, embedded expressions, authority checks and policy overrides remain unsupported. Indexes and durable query history are separate work (KIP-0021 covers query index history). Keeping the query surface this narrow is what lets a third-party runtime claim compatibility with evidence: it either reproduces the roots or it does not. See Knolo compatibility and the Knolo specifications.
Links
knolo · kip · eql · specifications · compatibility · open-technology
