| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-48c8868 |
| 4 | status: raw |
| 5 | title: "Stores beyond git: liveness is store-native, depth is store-agnostic" |
| 6 | created: 2026-07-13 |
| 7 | source: musing during the S1 migration, 2026-07-13 |
| 8 | --- |
| 9 | |
| 10 | # Stores beyond git |
| 11 | |
| 12 | Observation (2026-07-13): restic's virtue is that it is not tied to git — it protects a directory |
| 13 | tree. Given devops volatility and the ambition past SDLC use-cases |
| 14 | ([README § where this goes](../../README.md#where-this-goes)), projects will eventually maintain |
| 15 | state in systems other than git. |
| 16 | |
| 17 | The 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 | |
| 25 | Consistency wrinkle: bare git repos are file-backup-friendly; volatile stores (live databases) are |
| 26 | crash-consistent at best under file-level snapshots — future store types need a declared |
| 27 | quiesce/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)) |
| 29 | rejected ZFS send _for git repo replication_ specifically; atomic filesystem snapshots are the |
| 30 | natural substrate for freezing volatile non-git state before the depth pass — and the pilot host is |
| 31 | already ZFS. |
| 32 | |
| 33 | Demand signal on the pilot host today: deployed-service state (reel-life's notebook, Home Assistant |
| 34 | state) lives outside the valley dataDir, covered by nothing declared. The rung that makes |
| 35 | deployed-service state matter is [S4](../../design/user-scenarios.md#the-rest-of-the-ladder); that |
| 36 | is when this idea gets pulled. |
| 37 | |
| 38 | Extends the deliberate hedge in [[dcr-0f5d9b1]] |
| 39 | ([dcr-0f5d9b1-cue-config-host-module.md](../decisions/dcr-0f5d9b1-cue-config-host-module.md)) — a |
| 40 | project _has_ stores; git is one, nested on purpose — and the schema comment on `#Project` in |
| 41 | [valley.cue](../../schema/valley.cue). |