CultLib/packages/cultcache-ts/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 6b117def62 Keep cultcache-ts record homes stable and refuse strays at load
Conform cultcache-ts to the store-composition contract, following C#:

- addBackingStore refuses, attaching nothing, when the new store would
  move the home of any record type the cache already holds (for example a
  store routed to "settings" attached after settings:app landed in the
  generic store).
- pullAllBackingStores reads, decodes and home-checks every record before
  replacing the cache's view. A record delivered by a store that is not
  its home throws naming the key and both stores; nothing is admitted and
  no store is written.
- A cache with zero stores is in memory: put, putEnvelope and delete no
  longer throw. Once any store is attached, a type with no home still
  throws.

Tests for each rule fail on 6bb41f3.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 00:50:07 +02:00
..
cult-cache-inspector.ts Recover schema-stamped cache records across runtimes 2026-06-27 14:34:53 +01:00
cult-cache.ts Keep cultcache-ts record homes stable and refuse strays at load 2026-09-14 00:50:07 +02:00
document.ts Bring language packages into CultLib monorepo 2026-05-30 00:39:39 +01:00
index.ts Promote the swarm document catalog into cultcache-ts 2026-09-06 19:40:37 +02:00
single-file-messagepack-backing-store.ts Add single-file document handles 2026-06-27 15:46:25 +01:00
swarm-documents.ts Promote the swarm document catalog into cultcache-ts 2026-09-06 19:40:37 +02:00
types.ts Bring language packages into CultLib monorepo 2026-05-30 00:39:39 +01:00