← Blog

· Hive AI

Knolo KIP-0005: One Writer, One Base Commit, One Child Commit

Knolo KIP-0005 defines single-writer transactions for V5 Knowledge Images: detached snapshots for readers, one child commit per base, and stale writes rejected.

Knolo is the open-source, local-first Knowledge Image runtime and format (Apache-2.0, @knolo/core on npm). Its V5 behaviour is written down as Knolo Improvement Proposals, or KIPs, so any implementation can be checked against the same text. This note covers one of the shortest and most foundational: KIP-0005, single-writer transactions, listed as an implemented foundation feature.

What Knolo KIP-0005 specifies

A KnowledgeImageStoreV5 maintains one committed image and permits one active writer transaction. Readers call snapshot() and receive detached, immutable state, so reading never waits on a writer and never sees half-staged work.

A transaction records the base commit digest, stages new objects, and creates exactly one child commit. Per the KIP, that child commit:

  • sets parents to the base commit digest;
  • increments sequence by one;
  • retains all prior objects and events;
  • appends events for the staged objects;
  • recomputes the object, event, transaction, view, commit and state roots.

How Knolo rejects a stale write

Commit rejects a transaction that is not the store's active writer, or whose base commit is no longer current. Rollback releases the writer slot without changing the committed image.

The effect is simple to state: a Knolo commit always names the exact state it was built on, and it can only land on that state. There is no silent last-writer-wins. Because every root is recomputed, the result can be checked by anyone holding the bytes; see Knolo roots and receipts and Knolo V5 concepts.

What Knolo KIP-0005 deliberately leaves out

The KIP is explicit about its limits. This release does not provide concurrent writers, durable file locking beyond the Node adapter, or transaction signatures. Sync summaries, conflict planning and application, and authority evaluation are defined by later KIP contracts, without changing this single-writer boundary.

That layering is the point. Later Knolo specs, such as the sync and merge KIPs (KIP-0012 to KIP-0016) and key rotation in KIP-0010, build on a transaction model that stays small and testable. A spec that states what it does not do is easier to implement faithfully, and easier to check for compatibility.

Read the Knolo specifications

knolo · kip-0005 · specification · open-technology · open-source