You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4fe94eb
Browse filesBrowse the repository at this point in the historyBrowse files
docs: the refusal list repaired and pinned; what deletion does; what the binding means for restore
Council pass 8 (sol S1/S4/S5, luna M2/M3), reproduced: the coordinator's
troubleshooting insert had severed lane U's unclassified entry mid-sentence,
duplicated two entries and left constraint_violation out. The list is rebuilt
as one bullet per stable reason code and pinned by a test that reads
_REFUSAL_FIXES (which also found controls_changed sharing a bullet). The
setup guide no longer claims a deleted note or parked topic leaves its old row
in the full database (owned records retire, and the retirement is a control
the full tier applies); it names StudyLoop's own application tables as not
mirrored. session-db-tiering stops promising session-sync --tier full
consolidation on the current schema and describes what the binding means for
a restore from the full file (instance_mismatch; a rebind is an open item).
Copy file name to clipboardExpand all lines: docs/session-db-tiering.md
+21-12Lines changed: 21 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,16 @@ graph TB
23
23
|**Full**|`database.full_db_path` (e.g. external volume) | The record. Complete history, kept by the background `sync-full` as a single-writer mirror of this machine's hot DB: bound to it on the first sync, it receives whole sessions and the memory captured from them, never the hot DB's own replication, access or policy state. Read opportunistically by federated search; verification anchor for prune. |
24
24
|**Snapshots**|`database.snapshot_dir`| Point-in-time `VACUUM INTO` copies of the full DB, auto-created every `snapshot_interval_days` after a sync, rotated to `snapshot_retention`. Protect the record from corruption that sync would faithfully propagate. |
25
25
26
-
The full DB is **per-machine**. Cross-machine consolidation is
27
-
`session-sync`'s job: `--tier hot` (default) moves the recent working set
28
-
between hosts (prune-aware — locally pruned sessions are not resurrected);
29
-
`--tier full` consolidates the records (requires `full_db` on the host
30
-
entry in config.yaml).
26
+
The full DB is **per-machine** and, since the mirror contract (ADR-0016,
27
+
2026-10-23), **single-writer**: it is bound to the everyday database that
28
+
first synced into it, and `sync-full` refuses to write anyone else's. Cross-
29
+
machine consolidation through `session-sync --tier full` is therefore not
30
+
available on the current schema: the legacy SQL path refuses any database
31
+
that holds captured memory (`replication/legacy.py`), and a second machine
32
+
writing into a bound full database would contradict the binding. `--tier
33
+
hot` (default) still moves the recent working set between hosts (prune-aware
34
+
— locally pruned sessions are not resurrected). What `--tier full` should
35
+
mean under the mirror contract is an open design item.
31
36
32
37
## Configuration
33
38
@@ -109,19 +114,23 @@ session-sync sync HOST --tier full # consolidate records across machines
109
114
110
115
## Restore procedures
111
116
112
-
**Hot DB lost** (disk failure, new machine):
117
+
**Hot DB lost** (disk failure, new machine): copy the record into place as the
0 commit comments