PlatypusDB: the database agents actually want
The world does not speak. Only we do. The world can, once we have programmed ourselves with a language, cause us to hold beliefs. But it cannot propose a language for us to speak.
— Richard Rorty, The Contingency of Language (1986)
Abstract
PlatypusDB is an agent-native, bitemporal event database: Gleam (OTP) control plane over a Zig data plane, in-process with WunderOS. Custom-built, not assembled. The Merkle WAL is the database; graph, vector, versioned-tree, image, analogy views derive from it. Datalog reads it crisply; VSA resonance reads it fuzzily. It replays deterministically and is fuzzed by a VOPR: one write path, two clocks, zero glue code.
The “agents just need a filesystem” camp is right about the axis (agents want the database nearby, inside the harness or agentic OS) and wrong about the organ (agents need two clocks kept, fuzzy recall, provable provenance; a filesystem does none). Agentic memory is crisp and fuzzy, layered, cryptographic, bitemporal. That shape is no subset of any general-purpose database, so we built one fitting it precisely and embed it in WunderOS. “Holographic” and “hierarchical” are non-decorative terms needing explanation; this note discharges that burden in part, and gives the accounting it obliges.
The world PlatypusDB exists to support is this:
Nothing an agent has seen, said, or done is lost. It can be found again whether you, or another agent, remember it exactly or only vaguely. And what was found, when, and on whose authority can be, under color of external audit, proved afterwards.
1. Build vs buy has no great third option
You have data, so you need a database, and there are two ways to get one. Use an existing one: decades of optimization arrive soon, along with an inherited shape you may not have wanted (correct when the problem fits, as almost every project does; costly glue, impedance, and abandoned features when it does not). Or build one that fits: nothing unneeded, everything needed, at the price of owning the boring parts forever. There is no third option and no way to have both; every account presenting the trade as dissolvable comes from someone who paid for neither side. Being unbalanced, I chose to build. This is the second database I have built; the first was Stardog, a general-purpose system, whereas PlatypusDB is built for WunderOS specifically, and that difference is the one that matters.
2. An assemblage is not a database
The move nobody defends and everyone makes is to assemble one: Neo4j for the graph, Postgres with a time-series extension for the log, pgvector for embeddings, an append-only table with a trigger for audit, Python to hold the four together, four databases and a prayer. Each keeps its own clock, its account of what a fact is, its durability model, and its opinion about when a write happened; the glue owns none and must reconcile all. Every seam is where the two clocks of PLRN-018 can part, with no component able to notice, because noticing would require holding both at once. When audit asks what the system believed at the moment it acted, the assemblage cannot answer: the information was distributed across stores never obliged to agree about time.
The philosophical failure: an assemblage assumes one of its four descriptions is the real one and the others indexes over it, usually the relational store because it has the schema. This owes everything to the idea that data storage mirrors reality, with one correct vocabulary. But the world does not propose a schema. What remains is a working distinction between the log and its redescriptions: graph, tree, vector, index are redescriptions, each useful, none the picture.
The difference is chimera versus platypus: the platypus looks assembled but is one animal descended once, whose parts grew together and share a bloodstream. PlatypusDB has many organs and one origin, each a redescription of the same log under one chain.
Figure (text summary). Four projections above one append-only log (Erregung per-query discarded; Blätterwald LSM forest; Astwerk commit DAG; Gartenhaus others’ truth). The log keeps two clocks, one lexicon, one provenance chain; retraction is an event and no byte is rewritten. Beneath: WaxRow 4 KB, WaxBank 128 KB + Merkle footer, io_uring/O_DIRECT, header commits last. Lose a projection: rebuild. Lose the log: gone. Assemblage has the top row four times and no middle.
3. The pressures are survivable one at a time
Fourteen properties of the enterprise agent problem produce this shape, in four groups: what agents emit, recall, do, and enterprises demand. Each alone already has an answer.
| # | Pressure | WunderOS answer |
|---|---|---|
| 1 | Agents emit at machine rate | 4 KB row; 31 rows/bank; io_uring+O_DIRECT page-aligned append; summary by superposition, no index |
| 2 | Cannot know what will matter | Five slots (S,P,O,C,L) + runtime Lexicon; fixed shape, open vocabulary |
| 3 | Agents see, not only read | Image as first-class SOCL-slot filler; same Groove algebra; late fusion |
| 4 | Crisp vs fuzzy recall | One row: 2048 B bundle + 48 B fingerprints |
| 5 | Association by adjacency | Spreading activation (4 edge kinds); graph built per query, discarded |
| 6 | Structural analogy | analogy/3 with confidence; confidence semiring |
| 7 | Speculation / branches | Copy-on-write branch; abandoned leaves nothing |
| 8 | Standing queries | Nabla leases; deltas; roadmap fuzzy bound |
| 9 | Whole-shape compute | Herzschlag semiring kernels; Grafiklog |
| 10 | Retraction as event | Bytes untouched; ULID of retracting event |
| 11 | Cryptography constructed | Merkle footer per bank; accountable principal per row |
| 12 | Two clocks | Event + observation time on every row |
| 13 | Versioned history derived | Astwerk: Merkle root of twigs; equal states equal roots |
| 14 | Durability per agent off-host | Kaltlager (roadmap; ratified ADR, no code) |
3.5 Where that leaves us
Retraction, chain, two clocks, version DAG: one discipline at four altitudes: never destroy, always attribute, proof as recomputation. Durability at scale carries the discipline past the host. What must survive is evidence, not data.
Answers in isolation do not compose, which is why PlatypusDB exists. The chain cannot be bolted to one of four stores: a chain covering only relational rows proves nothing about what the agent retrieved. It must cover the log, which means there must be one log everything else redscribes.
4. The hologram and the hash
The first name of this database was “HHS”: hierarchical, holographic storage. It still means what it says, literally.
4.1 Groove and three operations
The atomic unit is a Groove: 16,384-bit binary hypervector, 2 KB, 64-byte
aligned, loaded in one instruction. Everything is ultimately a Groove. Three
single-instruction operations: Binding (combines two into a third resembling
neither; structure), Bundling (majority-vote superposition; sets), Resonance
(Hamming distance; similarity).
4.2 The Profile is a summary you can search
A fact is a Pentad (subject, predicate, object, context, lineage). Its row
carries a bundle of those 5 slots superposed, so the row already summarizes
itself. 31 rows form a bank; the bank carries a Profile bundling the 31 row
bundles. A query resonates with the Profile iff it resonates with at least one
of the 31 facts. One instruction per bank (_mm512_popcnt_epi64) answers
“could anything here match?” without loading a fact; the full scan runs only
against admitted banks. The summary is searchable; everything else follows.
4.3 The metaphor honestly
A hologram cut in half gives the whole image degraded; fidelity lost, not coverage. The Bank Profile does exactly this: it cannot reconstruct any fact, but can say whether something like the query is in there, over the whole bank at once. The property holds within a level, not across the store. Erregung is per-query and discarded; Blätterwald is a per-predicate forest, materialized.
4.4 Content is its own name
A projection is affordable because keyed by the hash of what it projects.
Content-addressing runs at four altitudes: a symbol’s Groove is BLAKE3 of its
bytes; a row’s content_hash is BLAKE3 of subject/predicate/object/context, so
supersession is content-addressing; a bank’s Merkle footer chains to its
predecessor; and two other surfaces use content-addressing as their durability
model instead of a WAL. Memory tiers use mitosis snapshot, content-addressing
only where replay-idempotence outweighs write throughput.
4.5 Even history is a redescription
The system versions agent states: commit = Merkle root of twigs over ULID-ordered references; equal states equal roots; diff skips matching subtrees; branch copies nothing. Derived, rebuildable, droppable. It also forks a copy-on-write view; two branches cannot observe each other’s writes.
5. Hierarchy is what you add when a hologram saturates
High-dimensional superposition has bounded capacity. Bundle too many and any constituent falls below the noise floor; a hologram of everything is a hologram of nothing. So fan-in is bounded: the bank holds 31 facts (2^5-1), threshold exactly 16, so the binarized Profile is bit 4 of each accumulator slice and costs no arithmetic (63 under evaluation, threshold to bit 5).
Given a bounded hologram, hierarchy is the obvious way to scale: bundle 5 slots into a row, 31 into a bank profile, cluster bank profiles into partitions and keep centroids. A search descends, refining fidelity, running the same operation. You scale by stacking bounded holograms.
Figure (text summary). Four levels: L1 Groove (2 KB); L2 WaxRow (4 KB page with 5 Pentad slots + 48 B fingerprints); L3 WaxBank (128 KB, profile bundles 31 rows + Merkle footer); L4 WaxCenter (~256 partition centroids). Query path: ~256 Hamming distances, one per bank, then 31 rows, then the fact. K=31=2^5-1.
Semantic and physical hierarchy are the same hierarchy. When the structure of summaries and pages agree, a summary sweep is a scan of cache-resident memory and a durable write is a page-aligned append, neither paying for the other.
Third sense: agentic memory tiers: working, episodic, procedural, semantic, institutional, plus the self-describing substrate with compliance as an aspect. Working memory is a materialized view recomputed from the episodic chain at session start; corruption is cache invalidation, not data loss. Physics predicates are queryable facts; tenant predicates register at runtime through the Lexicon.
WaxCloud, orthogonal to the hierarchy, deferred: a weighted point cloud of 32 Grooves compared by optimal transport.
6. Two ways of remembering from the same bytes
Two disjoint read paths. The fuzzy path is agentic recall: resonance, spreading activation via Erregung, late fusion without prior agreement. The crisp path is exact retrieval under Gleamalog via fingerprints; it reads no vectors, and a missing fingerprint is a dead end.
Both read the same bytes. A row is 4 KB: 2048 B superposed bundle (fuzzy), 48 B fingerprints (crisp), the rest identity envelope (ULIDs, content hash, Merkle anchor, accountable principal, retraction/retirement memos, world-time instant).
Images arrive as first-class slot fillers. The crisp path finds an image by fingerprint; the fuzzy path by resonance against text, because query and image resolve into one algebra before comparison.
Paths can be held open: standing returns a lease with deltas; standing is an orthogonal modifier reusing the same planner and dispatch. The unshelved half is fuzzy similarity maintained incrementally under a conformal bound, giving a standing approximate query a calibrated recall guarantee.
Analogy is transfer, not remembering: binding/unbinding in the same algebra, sampled and scored. Retrieval returns what was stored; analogy returns what was not, hence a confidence composing into provenance as a semiring.
7. Inspiration where we found it
The spirit: something TigerBeetle-y for enterprise agents; everything sized, no heap allocation on the hot path; failure modes enumerated with detection and recovery.
8. Why WunderOS is deterministic
Determinism turns §3’s claims into things an auditor can check. A fact is retained under threat of audit; the threat is answered by the whole system replaying deterministically: the same log prefix yields the same authoritative state and the same account of how a query reached its result. Determinism is the warrant under all fourteen.
VOPR: a simulator drives the data plane under a seeded, replayable schedule,
injecting faults (clock drift, torn writes, crash at each durability boundary,
storage faults), checking invariants every tick. A failing seed reproduces
exactly. Known-bad seeds replay on every change; regression fails the build.
Crash recovery checked backend-symmetrically on io_uring and the simulator;
invariants incomplete but gaps enumerated.
9. Gleam, Zig, and no server
Control plane: Gleam on BEAM/OTP (supervision, actors, lifecycles, algorithms).
Data plane: Zig side-car (layout, SIMD, io_uring, transport, roadmap DPDK on a
DPU). Rule: Zig owns storage and transport, Gleam owns the algorithm, enforced.
Trace substrate: Zig holds a per-tenant lock-free ring and three functions, no
policy; Gleam holds routing, tracers, watchdog, supervision, soundness harness.
Herzschlag: bulk-synchronous epochs, tile ownership, semiring kernels in Zig,
Gleam holding boundaries, assignment, conformance harness. Grafiklog: graph
analytics over Herzschlag without out-parameter habits.
No separate database process; PlatypusDB is embedded in WunderOS. This is obviously wrong for a general-purpose database and obviously right for this one, what “fit” means in §1. “Agent-native” is about shape; “WunderOS-native” is about a seam.
10. Related notes and method
Hypervector substrate PLRN-001. Pentad PLRN-003. Provenance PLRN-006; sealed identity/earned capability PLRN-014. Append-only with retraction PLRN-007. Self-similar tree §5 is PLRN-012, instantiated in storage. Unfixable schema PLRN-015. Social tier PLRN-017; perspectival truth PLRN-013. Two clocks PLRN-018. Crisp path PLRN-019. Standing queries PLRN-010.
Engineering discipline §7: TigerBeetle’s. Spreading activation: SYNAPSE (read against REMem). Binary spatter codes/superposition capacity: Pentti Kanerva. LSM tree: O’Neil et al. (1996); tombstone/reclamation: Lethe.
Written with Claude Opus 4.8 as structured interlocutor; motives, ideas, claims, framing, architectural commitments and taste are mine.
Kendall Clark · k@pentad.ai
Great Falls, Virginia
20 July 2026, revised 21 October 2026