Knolo KIP-0018: Bounded EQL Joins and Deterministic Ordering
Knolo KIP-0018 adds read-only equality joins and one-field ORDER BY to bounded EQL, with a fixed tie-break so every runtime returns results in the same order.
Knolo is the open-source, local-first Knowledge Image runtime and format (Apache-2.0, @knolo/core on npm). An earlier note covered Knolo KIP-0007, the bounded EQL query language whose plans and results get roots anyone can recheck. KIP-0018, Bounded EQL Joins and Ordering V1, extends it without giving up that property.
A note on status: the Knolo KIP index on knolo.org currently shows labeled example records, not accepted standards. KIP-0018 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.
The Knolo KIP-0018 grammar
FROM <kind|*>
[JOIN <kind|*> ON <field> = <field> ...]
[WHERE <field> = <literal> AND ...]
[SEARCH "text"]
[ORDER BY <field> [ASC|DESC]]
[LIMIT <positive integer>]
Everything is optional except FROM, and every new clause is read-only.
Knolo joins stay small on purpose
A join compares a scalar field on the source object with a scalar field on the joined object. Only equality is allowed, and a query may have at most four join clauses. Results return stable joined object identities, so a caller can cite exactly which objects were paired.
The specification is just as clear about what joins are not. Execution scans verified snapshots and builds no persistent index. Query indexes, mutation, embedded expressions and authority evaluation are left to later work. The existing 1,000-result limit still applies.
Deterministic ordering in Knolo EQL
ORDER BY takes one scalar field, ascending or descending. Two rules make the order the same everywhere:
- objects missing the field sort after objects that have it;
- ties break on object identity, ascending.
Without a fixed tie-break, two honest runtimes could return the same set in different orders and produce different result roots. With it, the same image and the same query give the same bytes.
Old Knolo queries keep their roots
Compatibility is the part of KIP-0018 that matters most for a public record. Legacy queries omit the new optional plan fields, so their plan and result roots do not change. A receipt written against a KIP-0007 query before joins existed still checks out. Only queries that use joins add the ordered joined identities to the result root.
As with every Knolo root, this is an integrity check: it shows a result was computed from these exact inputs, not that the content is true.
Read further on Knolo
- Knolo open technology specifications and Knolo compatibility
- Knolo bounded EQL docs on knolo.dev and Knolo query receipts
- The KIP-0018 text and its source in the Knolo knolo-core repository on GitHub
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 · eql · query · knowledge-image · open-source
