Flower Garden

Grimvane The Flower Garden

Your software and AI agents keep their data without servers

Most software keeps its memory, search and storage on separate servers that someone has to run and pay for. The garden puts them inside your program, as six small libraries, a record store that survives crashes, and a notation made for AI agents.

How it fits

AI answers are only as good as the context behind them

An AI model that has to hunt through files for its context takes more steps, and every step costs time and money. The garden does the finding in plain code, so the model starts with the facts it needs.

Search, ranking, memory, caching and access checks run the same way every time, and none of them asks a model to decide anything.

01

The flowers

Six libraries · No server

Six libraries handle your data with no servers to buy or run.

Each flower keeps one kind of data and works with any kind of record. Python is the reference copy, and the C# copies follow the same rulebook.

The six flowers
02

Terrarium

Record store · C#

Records stay whole through crashes and power cuts.

One folder, one writer, a sealed log and the indexes you ask for, with no server and no native library.

Terrarium
03

GVN

Notation · For AI agents

AI agents find the facts they need without reading everything.

Every line carries its full address, so a line found by a search still says exactly what it is about.

GVN

Nothing here is a service to run or a vendor to depend on.

Each part is code that runs inside your program, and your data stays where your program keeps it.

Portable

A rulebook applies to any language, any time

Each flower is defined by numbered rules and test cases that belong to no language, so no team is locked into one. Python is the reference copy, the C# copies answer the same cases, and a copy in Rust, C++ or any other language would be judged by them too.

The rulebook fixes behavior and any file that crosses languages, byte for byte. Names and memory layout are left to each language, so every copy reads as if it were written there.

  1. 01

    The rulebook

    Numbered rules in plain language, one behavior each. A rule is never renumbered.

    A-21. The defaults are k1 1.5 and b 0.75.
  2. 02

    The cases

    Operations and their expected results, stored as data any language can read.

    {"rule": "A-43", "steps": [..., {"op": "count", "expect": 1}]}
  3. 03

    The copies

    A new language needs one small runner that maps the cases onto its own API.

    • Python the reference
    • C# all six flowers
    • Go GVN
    • Rust open
    • C++ open
    • Yours open
How it works
  • Each flower ships a manifest, its rulebook, case files and a small runner per language. Every rule has a case and every case names a rule, and a runner fails on any gap between the two.
  • Results that depend on a platform's math library, such as ranking scores, are compared within a stated tolerance.
  • Where a file crosses languages, as a sealed vault does, reference files are checked in byte for byte, and a live cross-check has each copy write what the other reads.
  • Mutation tests break a copy one line at a time to show the cases catch each break.
  • GVN follows the same pattern with its own corpus, and Terrarium's on-disk format is specified in full, apart from its code.

The flowers

Six building blocks cover the data most software needs

Pick the ones you need. Each works alone and fits with the others, whether it holds a company's records, an assistant's memory or a game's world.

  • 01

    You import it and call it

    No server, no port and no process to run.

  • 02

    It holds any kind of data

    It stores what you give it and hands it back when you ask.

  • 03

    Every layer can be swapped

    Backends, embedders and serializers plug in behind one interface.

  • 04

    Extras are switches you turn on

    The smallest setup needs only Python. Databases, encryption and a GPU come when you want them.

Fig. 1
Camellia

01Vector memory

Camellia

It finds things by what they mean

Store documents, notes or messages as text, then ask in your own words. Camellia hands back the closest matches, and old memories can fade on their own.

from camellia import MemoryStore

Used in

  • Life After the world's memory of what you did, and how it fades
  • Hearth the memory layer

Planned for

  • Corvath semantic memory
How it works

Text becomes vectors through a pluggable embedder, either a NumPy one with no model at all or a local GGUF model through llama.cpp. Search is cosine similarity over the stored vectors. An optional lifecycle gives each memory an importance that decays with time, grows when the memory is recalled, and prunes the weakest.

Made with

  • Python
  • GDScript port
  • C# port
  • NumPy
  • Cosine search

Storage

  • In-memory
  • SQLite
  • PostgreSQL
Camellia in Grimvane's project graph, as an agent reads it
  1. camellia.description = "Vector memory library - semantic storage/retrieval, pluggable embeddings, memory lifecycle"
  2. camellia.name = "Camellia"
  3. camellia.tech[0] = "python"
  4. camellia.tech[1] = "numpy"
  5. camellia.type = "library"
  6. rel.corvath.camellia.type = "planned-consumes"
  7. rel.corvath.camellia.usage = "Semantic memory and vector retrieval"
  8. rel.flower-garden.camellia.type = "contains"
  9. rel.hearth.camellia.type = "depends-on"
  10. rel.hearth.camellia.usage = "Vector store and embedder for the memory layer; keyword fallback only when the package is absent"
  11. rel.life-after.camellia.type = "consumes"
  12. rel.life-after.camellia.usage = "World memory, semantic traces of player actions, decay over time/distance (GDScript port)"
Fig. 2
Dahlia

02Structured storage

Dahlia

It keeps structured records with no database server

Describe the shape of a record once, then store as many as you like and ask for exactly the ones you want. They can live in memory or in a single file, and the same code works with PostgreSQL if you already run it.

from dahlia import Store

Used in

  • Life After inventory, the state of objects and rooms
  • Kindlefall card definitions, enemies, relics and the state of each run

Planned for

  • Corvath structured data
How it works

You declare a schema as a dataclass or a typed dict, and every record is checked against it before it is written. Queries combine filter operators over any field. The same API runs in memory, on SQLite or on PostgreSQL. The C# copy keeps each field in one typed array per collection, so a filter walks memory in order.

Made with

  • Python
  • GDScript port
  • C# port
  • Schema validation

Storage

  • In-memory
  • SQLite
  • PostgreSQL
Dahlia in Grimvane's project graph, as an agent reads it
  1. dahlia.description = "Structured storage library - schema-driven collections, filter operators, pluggable backends"
  2. dahlia.name = "Dahlia"
  3. dahlia.tech[0] = "python"
  4. dahlia.type = "library"
  5. rel.corvath.dahlia.type = "planned-consumes"
  6. rel.corvath.dahlia.usage = "Structured data storage"
  7. rel.flower-garden.dahlia.type = "contains"
  8. rel.kindlefall.dahlia.type = "consumes"
  9. rel.kindlefall.dahlia.usage = "Card definitions, enemy data, relic collections, run state, meta-progression (GDScript port)"
  10. rel.life-after.dahlia.type = "consumes"
  11. rel.life-after.dahlia.usage = "Inventory, object state, room data, interaction flags (GDScript port)"
Fig. 3
Wisteria

03Graph database

Wisteria

It maps how things connect and finds what is related

Store things and the links between them, then walk the links, find a path, or pull out just the part of the graph you care about.

from wisteria import Graph, ActivationEngine, CompressedStore

Used in

  • Life After the world as a graph of places, things and what you did
  • Kindlefall the overworld map, rival pathfinding and territory

Planned for

  • Corvath knowledge graphs
  • Project Blackbox relationships between characters and factions
How it works

Nodes and directed edges are typed and carry metadata, with traversal, path-finding and subgraph extraction built in. An activation engine spreads relevance out from a starting point across several families of edge at once, so the same node can rank differently depending on what was asked before. Large graphs fit in a compressed store.

Made with

  • Python
  • GDScript port
  • C# port
  • Graph traversal
  • Multi-head activation

Storage

  • In-memory
  • SQLite
  • PostgreSQL
Wisteria in Grimvane's project graph, as an agent reads it
  1. rel.corvath.wisteria.type = "planned-consumes"
  2. rel.corvath.wisteria.usage = "Knowledge graphs, tool dependency chains, session context linking"
  3. rel.flower-garden.wisteria.type = "contains"
  4. rel.kindlefall.wisteria.type = "consumes"
  5. rel.kindlefall.wisteria.usage = "Overworld map generation, rival faction pathfinding, territory control (GDScript port)"
  6. rel.life-after.wisteria.type = "consumes"
  7. rel.life-after.wisteria.usage = "World graph, acoustic propagation, scene connectivity, relationship traversal (GDScript port)"
  8. rel.project-blackbox.wisteria.type = "planned-consumes"
  9. rel.project-blackbox.wisteria.usage = "NPC relationship graphs, faction networks, rumor propagation paths"
  10. wisteria.description = "Graph database library - nodes, edges, traversal, multi-head activation, compressed awareness, centrality"
  11. wisteria.name = "Wisteria"
  12. wisteria.tech[0] = "python"
  13. wisteria.type = "library"
Fig. 4
Aster

04Search index

Aster

It searches by keyword and ranks the best match first

Aster searches text by keyword, counts the results by category and shows where each match sits. It pairs with Camellia, which matches meaning instead of words.

from aster import Index

Used in

  • Life After searchable journals, terminals and inscriptions

Planned for

  • Corvath full-text search
How it works

Text is tokenized into an inverted index and ranked with BM25. Results come back with facet counts and highlighted snippets. The index lives in memory, in SQLite FTS5 or in PostgreSQL tsvector, and the C# copy ranks the same way as the Python original.

Made with

  • Python
  • GDScript port
  • C# port
  • BM25 ranking
  • Tokenization

Storage

  • In-memory
  • SQLite FTS5
  • PostgreSQL tsvector
Aster in Grimvane's project graph, as an agent reads it
  1. aster.description = "Full-text search and indexing with BM25 ranking, faceted search, highlighting"
  2. aster.name = "Aster"
  3. aster.tech[0] = "python"
  4. aster.type = "library"
  5. rel.corvath.aster.type = "planned-consumes"
  6. rel.corvath.aster.usage = "Full-text search across knowledge base"
  7. rel.flower-garden.aster.type = "contains"
  8. rel.life-after.aster.type = "consumes"
  9. rel.life-after.aster.usage = "Searchable lore from journals, terminals, inscriptions (GDScript port)"
Fig. 5
Lotus

05Tiered cache

Lotus

It keeps your busiest data fast and the rest cheap

Hot data stays in memory, warm data on disk and cold data in a remote store. Whatever you read moves closer, and stale entries expire on their own.

from lotus import Cache

Used in

  • Life After keeping nearby areas fast and distant ones cold

Planned for

  • Corvath response and context caching
How it works

Three tiers sit behind one key-value API: a dictionary in memory, SQLite on disk, and any cold backend that implements the tier protocol. Each tier evicts by least recent use and by time to live, configured per tier, and a read promotes an entry toward the hot tier.

Made with

  • Python
  • GDScript port
  • C# port
  • LRU
  • TTL

Storage

  • Memory (hot)
  • SQLite (warm)
  • Any remote store (cold)
Lotus in Grimvane's project graph, as an agent reads it
  1. lotus.description = "Tiered caching library - hot/warm/cold tiers, LRU+TTL, auto-promotion/eviction"
  2. lotus.name = "Lotus"
  3. lotus.tech[0] = "python"
  4. lotus.type = "library"
  5. rel.corvath.lotus.type = "planned-consumes"
  6. rel.corvath.lotus.usage = "Response and context caching"
  7. rel.flower-garden.lotus.type = "contains"
  8. rel.life-after.lotus.type = "consumes"
  9. rel.life-after.lotus.usage = "Zone caching, hot/warm/cold tiers by proximity to explorer (GDScript port)"
Fig. 6
Thistle

06Encrypted storage

Thistle

It encrypts sensitive data and can record who opened it

Everything is encrypted at rest and opens only with a key. Access can be limited by role, and every open can be written to an audit log.

from thistle import Vault

Used in

  • Life After locked vaults and the record of who opened them

Planned for

  • Corvath credentials and other sensitive data
How it works

Data is sealed with AES-256-GCM under a key derived from a passphrase through PBKDF2-HMAC-SHA256 or Argon2id. Role-based access and the audit log are optional layers over the same vault. A vault sealed by the C# copy opens in the Python one, and the reverse.

Made with

  • Python
  • GDScript port
  • C# port
  • AES-256-GCM
  • PBKDF2 or Argon2

Storage

  • Encrypted file store
  • Encrypted SQLite
Thistle in Grimvane's project graph, as an agent reads it
  1. rel.corvath.thistle.type = "planned-consumes"
  2. rel.corvath.thistle.usage = "Encrypted credential and sensitive data storage"
  3. rel.flower-garden.thistle.type = "contains"
  4. rel.life-after.thistle.type = "consumes"
  5. rel.life-after.thistle.usage = "Locked vaults, encrypted content, gated progression, audit logs (GDScript port)"
  6. thistle.description = "Encrypted storage library - AES-256-GCM, PBKDF2/Argon2, optional RBAC and audit logging"
  7. thistle.name = "Thistle"
  8. thistle.tech[0] = "python"
  9. thistle.type = "library"
Fig. 7
Terrarium

Terrarium · Record store

A crash never leaves a record half written

Terrarium is a record store that runs inside your program, for anything that has to keep its data, from business records and event logs to a game's world. There is no database server to license or run, nothing to install beside your program, and it finds any record quickly.

  • 215 msto read a million records, encrypted
  • 24xfaster reads than SQLite
  • 0acknowledged writes lost in forced crashes

Grimvane's benchmark on one machine, with a million records and SQLite called directly through its C library.

Made with

  • C#
  • AES-GCM
  • CRC-32C
  • Spatial index

Used in

Project Blackbox keeps its saved worlds in it

  1. 01

    One writer, never two

    A store is a folder that exactly one writer holds. A second writer is turned away.

  2. 02

    A write lands whole or not at all

    Changes land as whole commits. After a crash, each one is either all there or not there at all.

  3. 03

    Encryption is built in

    A sealed store encrypts everything it writes, so neither the records nor the shape of the data can be read.

  4. 04

    Choose how safe each write is

    Every commit survives the program dying. A durable commit also survives the power going out.

  5. 05

    A large store stays light in memory

    Recent changes stay in memory and older ones fold into snapshots on disk, so a large store stays small in RAM.

  6. 06

    Indexes you declare

    Look records up by key, by any field you index, or by location, for anything with a position.

  7. 07

    Follow changes live

    Other readers can follow every commit in order without ever slowing the writer down.

  8. 08

    Old records still open

    Records written by an older version of your software are upgraded as they are read.

How it works
  • Writes append to segment files as checked line frames. An open frame carries a CRC-32C, and a sealed frame is AES-GCM ciphertext with its nonce and tag.
  • A manifest names the live snapshot and segments. A new one is written, synced and renamed into place, so a reader never sees a half-made state.
  • Compaction merges closed segments into a new sorted snapshot off the write path, so the writer never waits on it. Event streams are kept whole and never compacted.
  • A lookup reads the in-memory tail first, then one block of the snapshot, found through a sparse key index.
  • Secondary indexes are declared when a store opens, on a field path or a function you register, unique or not, with an optional filter. The spatial index buckets points into cells of a size you choose.
  • On a host, commits that land close together share one disk sync.
  • The on-disk format is specified in full, apart from the code, so a reader could be written from the document alone.

GVN · Grimvane Notation

Every line an AI agent reads stands on its own

An AI agent rarely reads a whole file, and in a nested file a line pulled out on its own can lose its meaning. In GVN every line says exactly what it is about, so an agent fetches only the lines it needs.

Each statement is a path and a value, and the path names its subject in full. Grimvane's tools hand an agent only the lines it asked for.

wisteria, from Grimvane's project graph
  1. rel.corvath.wisteria.type = "planned-consumes"
  2. rel.corvath.wisteria.usage = "Knowledge graphs, tool dependency chains, session context linking"
  3. rel.flower-garden.wisteria.type = "contains"
  4. rel.kindlefall.wisteria.type = "consumes"
  5. rel.kindlefall.wisteria.usage = "Overworld map generation, rival faction pathfinding, territory control (GDScript port)"
  6. rel.life-after.wisteria.type = "consumes"
  7. rel.life-after.wisteria.usage = "World graph, acoustic propagation, scene connectivity, relationship traversal (GDScript port)"
  8. rel.project-blackbox.wisteria.type = "planned-consumes"
  9. rel.project-blackbox.wisteria.usage = "NPC relationship graphs, faction networks, rumor propagation paths"
  10. wisteria.description = "Graph database library - nodes, edges, traversal, multi-head activation, compressed awareness, centrality"
  11. wisteria.name = "Wisteria"
  12. wisteria.tech[0] = "python"
  13. wisteria.type = "library"
13 lines in canonical order. Each one names its subject in full.

Where it runs

  • Grimvane's project graph, where every project and every link between projects is a line
  • Each project's map of its own code, which an agent searches instead of reading the whole tree
  • The shared record of decisions, rules and work in progress kept by a team of agent sessions
  • The index of what Grimvane's agents remember
  • Character cards in Hearth
More on grimvane.ai
How it works
# one statement per line: <path> = <value>
wisteria.name = "Wisteria"
wisteria.tech[0] = "python"
rel.life-after.wisteria.type = "consumes"
  • A value is a JSON scalar: a string, a number, true, false or null. Structure lives in the path, never in the value.
  • Order lives in [i] indices, so shuffling the lines loses nothing.
  • Edges are statements too, under rel., with the source and the target in the path.
  • Every document has exactly one canonical form, sorted and deduplicated, so the same facts always produce the same bytes. A merge is a union of lines, and two values at one path are reported as a conflict instead of being settled silently.
  • A malformed line is reported and skipped, and the lines around it are untouched.
  • Implementations in Python and Go write the same canonical bytes for the same facts.

In use

The garden already runs inside Grimvane's products

Every part on this page is at work in one of Grimvane's own products, from games to a self-hosted AI chat.

Featured · Uses the most of it

Project Blackbox

Project Blackbox is a game set in a walkable world, where skills grow out of how each person plays. A team of AI agent sessions works on it, and GVN is how they share what they know.

  • Terrarium keeps its saved worlds and characters, and recovers them after a crash
  • GVN maps its own code, every component and file, so an agent searches the map instead of reading the tree
  • GVN holds the shared record ten AI agent sessions keep of their decisions, rules and work in progress
  • Wisteria · planned relationships between characters and factions, and the paths rumors travel
  • Game

    Life After

    A cinematic adventure about a long walk home, running on all six flowers.

  • AI assistant

    Hearth

    A self-hosted AI chat. Camellia is its memory layer, and its character cards are written in GVN.

  • Game

    Kindlefall

    A roguelike deckbuilder. Dahlia holds its cards and runs, and Wisteria draws its overworld.

Used in a game

Life After runs on all six flowers

Life After is a cinematic adventure game about a long walk home. Every flower has a part in it, and the game shows what the six do when they run together.

  • Camellia, the soul

    It remembers what you did, and it forgets if you stay away too long.

  • Dahlia, the skeleton

    Inventory, the state of objects, rooms and interaction flags all rest on it.

  • Wisteria, the spine

    The world is a graph of places, things and what you did, and sound travels along it.

  • Aster, the recall

    It searches the journals, terminal logs and inscriptions the world leaves lying about.

  • Lotus, the performance

    It keeps the area you are in fast and lets the distant regions go cold.

  • Thistle, the lock

    What it guards is sealed, and the record of who opened it before you is part of the story.

Visit Life After