Skip to content
Eavyn

Docs

How it works

The moving parts, in the order a lease meets them.

Leases

A lease reserves a number of GB in one tier for a number of seconds. The size is reserved capacity: it is what you pay for and what counts against a node. Stored data has its own caps, listed in the overview.

  • active: reads and writes work.
  • grace: the lease has expired. For 24 hours memory answers 403, but the same key can still renew it.
  • expired: the grace period is over. The next sweep deletes every key, document and proposal, writes the wipe to the event log and frees the slot.
  • released: the holder ended it early. The wipe happens in the same transaction.

Sweeps are lazy: one runs whenever a lease is created and whenever GET /api/status is called. The public receipt outlives the data.

Tiers and pricing

Rate curve parameters for each tier, live
TierSizeDurationBaseSlope 1KinkSlope 2ReserveNotional / GB
Warm1–4 GB1h to 7d2.00%8.00%80.00%60.00%10.00%150 USDG
Hot4–16 GB1h to 90d3.00%10.00%80.00%75.00%10.00%300 USDG
Rack16–64 GB1d to 1y4.00%12.00%85.00%90.00%10.00%400 USDG
Vaultcontact64+ GB1d to 1y5.00%15.00%90.00%100.00%10.00%500 USDG

Each tier is its own market with its own pool. Utilisation u is GB leased over GB of capacity in that tier. The borrow rate follows a kinked curve:

if u <= kink:  borrow = base + slope1 * u / kink
else:          borrow = base + slope1 + slope2 * (u - kink) / (1 - kink)

supply = borrow * u * (1 - reserveFactor)
price  = notionalPerGb * borrow * sizeGb * seconds / one year

A lease is priced at the utilisation it creates, so one large lease cannot buy at the empty-pool rate. All money is integer micro-USDG, rounded half-up.

Leases and renewals are paid in USDG on Robinhood Chain. The whole payment goes to the published operator address; there is no separate fee on top and no share paid to lenders yet.

Placement and nodes

A new lease goes to the least-loaded node in its tier that is up and has room. You can pin a node by id; if it is down or full the request fails instead of landing elsewhere.

Today every node is a partition of the one server that runs Eavyn. That server heartbeats all nodes every 30 seconds, and a node with no heartbeat for 90 seconds counts as down. The status page shows each one.

Memory

Two stores share a lease. Keys hold values up to 32 KB, with a version per key and optional compare-and-set through ifVersion. Documents hold up to 256 KB each and live in one of four layers: transcript, note, wiki, digest.

  • transcript: what happened in a session. Reflection never edits it.
  • note: short things worth remembering.
  • wiki: settled facts, as pages with paths, linked to each other.
  • digest: about 300 words that stand for the rest, served as eavyn://context.

Every document write makes a new version, and deletes are soft, so any version can be read and restored. Memory is stored as plain text and returned as data, wrapped in a notice that it is material to read, not instructions.

Keyword search, no embeddings: it is predictable and it is cheap. Text is lowercased, split on letters and digits, and 40 common words are dropped. Documents and keys are scored with BM25 (k1 1.2, b 0.75), and each hit carries a snippet of about 120 characters either side of the match with the matched terms marked.

Reflection

Eavyn does not run a model. Reflection is three calls, and you bring the model:

  1. prepare returns the transcripts and notes fenced in a data block, the instructions, and the JSON shape to answer in.
  2. submit stores your model’s answer as a proposal. Live memory does not change.
  3. apply or reject resolves changes by index. Each change carries the version it was written against; if the document moved on, applying it is a 409.

Secret scrubbing

Before anything is stored, these are replaced with [redacted:kind]: private keys and other 32-byte hex strings, BIP39 seed phrases of 12 or more words, lease keys, JWTs, bearer tokens, sk- style API keys, Slack and Google keys, GitHub tokens, AWS access keys, password= style values and email:password pairs. The response says how many were replaced. The values themselves are never logged.

Scrubbing is a safety net, not a guarantee. Memory is readable by whoever runs the server; do not store anything you would not hand to the operator.

Keys and limits

A lease key is 110 random bits, shown once. Only its SHA-256 hash and a 12-character prefix are stored, so a lost key cannot be recovered and a copy of the database holds no working keys.

Every route counts requests per address and, once a key resolves, per lease: 60 reads, 20 writes or 5 new leases a minute. A 429 carries Retry-After.