gunk-dev/the-valley

ida-48c8868-stores-beyond-git.md

source9787759f09camain's published tip history
2.1 KiB · Rendered
1---
2type: idea
3id: ida-48c8868
4status: raw
5title: "Stores beyond git: liveness is store-native, depth is store-agnostic"
6created: 2026-07-13
7source: musing during the S1 migration, 2026-07-13
8---
9
10# Stores beyond git
11
12Observation (2026-07-13): restic's virtue is that it is not tied to git — it protects a directory
13tree. Given devops volatility and the ambition past SDLC use-cases
14([README § where this goes](../../../README.md#where-this-goes)), projects will eventually maintain
15state in systems other than git.
16
17The layering already falls out of Phase 0's durability stack:
18
19- **Live replication (RPO≈0) is store-native.** Git has push mirrors; a database would bring WAL
20 streaming; an object store brings replication policy. Store types should eventually declare their
21 own liveness mechanism.
22- **Depth (point-in-time, verified-restorable) is store-agnostic.** The restic layer covers whatever
23 paths a store declares; the `#Backup` depth layer stays one generic thing.
24
25Consistency wrinkle: bare git repos are file-backup-friendly; volatile stores (live databases) are
26crash-consistent at best under file-level snapshots — future store types need a declared
27quiesce/dump prelude. ZFS snapshots re-enter here: [[dcr-d7952bc]]
28([dcr-d7952bc-phase0-replication-github-transitional.md](../decisions/dcr-d7952bc-phase0-replication-github-transitional.md))
29rejected ZFS send _for git repo replication_ specifically; atomic filesystem snapshots are the
30natural substrate for freezing volatile non-git state before the depth pass — and the pilot host is
31already ZFS.
32
33Demand signal on the pilot host today: deployed-service state (reel-life's notebook, Home Assistant
34state) lives outside the valley dataDir, covered by nothing declared. The rung that makes
35deployed-service state matter is [S4](../../design/user-scenarios.md#the-rest-of-the-ladder); that
36is when this idea gets pulled.
37
38Extends the deliberate hedge in [[dcr-0f5d9b1]]
39([dcr-0f5d9b1-cue-config-host-module.md](../decisions/dcr-0f5d9b1-cue-config-host-module.md)) — a
40project _has_ stores; git is one, nested on purpose — and the schema comment on `#Project` in
41[valley.cue](../../../schema/valley.cue).