A Cell is the fundamental data unit in HexxlaDB. It represents a fact, message, preference, document chunk, or any record stored at a hex coordinate with content, tags, provenance, confidence, and a validity window.Documentation Index
Fetch the complete documentation index at: https://hexxladb.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Cell structure
A Cell contains:- Coord — Hexagonal coordinate
(q, r)where the cell lives on the lattice - RawContent — The actual text content of the record
- Provenance — Source ID, confidence score, and timestamps
- ValidityWindow — Time range during which this cell is considered valid
- Tags — String labels for categorization and filtering
- Facets — Derived views or summaries (6 facet IDs: 0-5)
- ActiveFacet — Which facet is currently selected for display
- Edges — Directed relationships to other cells
- Seams — References to contradiction markers involving this cell
Provenance
Every cell tracks where it came from and how reliable it is:- SourceID — Identifies the origin (e.g., “session-2”, “user-123”, “doc-456”)
- Confidence — Float between 0.0 and 1.0 indicating reliability
- CreatedAt / UpdatedAt — Timestamps for lifecycle tracking
Validity window
Cells support bi-temporal validity:nil for both is always valid. This enables:
- Time-travel queries via MVCC snapshots
- Future-dated records
- Expiring preferences or facts
Tags
Tags are string labels that enable secondary indexing and filtering:"fact"— Objective information"preference"— User preferences or settings"architecture"— Design decisions"bug"— Known issues or workarounds
AscendCellsByTag.
Immutability
TheRawContent of a cell is immutable. To update a record:
- Create a new cell at a new coordinate
- Link it to the original via a seam
- Mark the relationship as supersession (for preferences) or conflict (for contradictions)
Storing a cell
Retrieving a cell
Deleting a cell
DeleteCell removes the cell and all associated data:
- Secondary indexes (source, time, tag)
- Facets
- Outbound edges
See also
- Seams — Contradiction and supersession markers
- Facets — Derived views bound to cells
- Edges — Directed relationships between cells
- Coordinates — Hexagonal addressing system