Shard

A study of sharding techniques for semantic memory, run over an original, dependency-free vector store. Five placement strategies, three index structures, one honest question: when a knowledge base is too big for one box — or one context window — how should it be cut, and what does each cut cost?

Where this comes from

This project is the refactored successor to the Palimpsest temporal-ledger study. That study's independent review concluded that its durable ideas were never the blockchain: they were registries sharded by axis of complexity (time, versions, jurisdictions, perspectives) and coordinate-addressed retrieval. Shard takes that conclusion literally: the chain, the VM, the blocks and the replay machinery are gone; what remains is the data those ideas need — an append-only record store with content-hash manifests (each segment carries the sha3-256 of its records; the store fingerprint hashes the ordered manifest; builds are byte-identical per seed — that is the entire integrity story, no consensus vocabulary) — and the sharding question promoted from implementation detail to subject of study.

What's actually running here

Corpus
the eleven real corpora of the parent study + a disclosed synthetic tier for visible shard behavior
Strategies
5
hash · rendezvous (consistent) · range · semantic (k-means) · corpus (axis-of-complexity)
Indexes
3
flat (exact) · IVF (probe dial) · HNSW (graph) — original pure-Python implementations
Vectors
768-dim
real nomic embeddings, int8-quantized; committed cache, byte-reproducible builds

The five cuts

What the study finds

The short version, measured on The Study page (every number recomputable with tools/bench.py): there is no best cut — there are three honest cuts and one measured lesson about resizing. Hash buys balance with total fan-out; range buys temporal locality; semantic buys sub-linear scan at a measured recall price; corpus placement wins outright when queries are domain-scoped, which is exactly the addressing the parent study's agent memory uses. And rendezvous hashing turns the resize catastrophe (≈90% of records moved) into a ≈11% incident.

Then try it yourself on the Console: the same live query through all five strategies, with the fan-out, scanned counts and per-shard hits shown for each.

Honesty