Research: can a community's any-sync CONTENT come home — re-seeding a fresh network from members' devices, the space IDs, and the files nobody still holds #1405

Open
opened 2026-09-12 02:12:02 +00:00 by ben · 0 comments
Owner

Parent

Map: The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired (#1293)

Question

ADR 0238 ruled that a community's identity comes home as a data move but its CONTENT does not move with it — and said so out loud in the product. This ticket is the research that turns that deferral into a decision.

Why it is deferred: Mātou runs one any-sync network for every community it hosts — one network id, one network signing key, one coordinator, one Mongo holding the coordinator's space registry and the consensus ACL log, one S3 store behind the file node — and none of it is re-derivable; adding a node means regenerating the whole network config (research #1314 findings 5, 6 and §1.3). So a community cannot be handed its slice of that network the way ADR 0238 hands it its agent directories. A gateway network would be a new network with a new id, and the spaces would have to arrive from somewhere else.

The one thing in our favour: any-sync is local-first. Every member's device already holds a full copy of the spaces they are in, so the move cannot lose what people have locally. The question is whether those copies can re-seed a fresh network at all.

Questions the research must answer:

  1. Can a space be re-published into a different network? Space ids are random and registered with the old coordinator (#1314 finding 6). Does a client pointed at a new network register the same space id, or does it mint a new one — and if the latter, what happens to every object tree, ACL record and cross-space reference that names the old id?
  2. The ACL and the consensus log. A space's membership history lives in the consensus node's log in Mātou's Mongo. Does a re-published space carry its ACL history, or does it start from the publishing member's own record — and what does that mean for who can read the community and read-only spaces afterwards?
  3. Who has to publish what. The community/read-only/admin spaces are the steward's; each private space is its own member's. Which member's device is authoritative for a shared space, and what happens to a space whose only holders never open their app again?
  4. The files. Blobs live on Mātou's file node behind S3 and may have been evicted from members' devices. What fraction is actually recoverable from clients, how would we know before committing, and is a server-side blob export the only honest answer for the rest?
  5. Is a server-side extraction viable instead? Pulling one community's spaces out of shared node storage + Mongo + S3 and loading them into a new network — how bespoke, and does anything upstream exist for it?
  6. What does the wallet need? Today the descriptor's anysync block is read once at boot with a 5-minute cache and the Go backend refuses to start when the coordinator does not answer (#1314 findings 2 and 9). What would it take for a wallet to change networks without losing its local data, and is there a safe order?
  7. The honest fallback. If re-seeding cannot work, what does the product say and offer — Mātou's network kept readable while new content is written at home, or something better?

Nothing is executed live against a community. A throwaway two-network lab is the right shape. Findings land on a research/anysync-content-transfer branch with a context pointer from this ticket.

## Parent Map: [The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired](https://git.matou.nz/Matou/idss/issues/1293) (#1293) ## Question **ADR 0238 ruled that a community's identity comes home as a data move but its CONTENT does not move with it** — and said so out loud in the product. This ticket is the research that turns that deferral into a decision. Why it is deferred: Mātou runs **one** any-sync network for every community it hosts — one network id, one network signing key, one coordinator, one Mongo holding the coordinator's space registry and the consensus ACL log, one S3 store behind the file node — and **none of it is re-derivable**; adding a node means regenerating the whole network config (research #1314 findings 5, 6 and §1.3). So a community cannot be handed its slice of that network the way ADR 0238 hands it its agent directories. A gateway network would be a **new** network with a new id, and the spaces would have to arrive from somewhere else. The one thing in our favour: any-sync is **local-first**. Every member's device already holds a full copy of the spaces they are in, so the move cannot lose what people have locally. The question is whether those copies can re-seed a fresh network at all. **Questions the research must answer:** 1. **Can a space be re-published into a different network?** Space ids are random and registered with the *old* coordinator (#1314 finding 6). Does a client pointed at a new network register the same space id, or does it mint a new one — and if the latter, what happens to every object tree, ACL record and cross-space reference that names the old id? 2. **The ACL and the consensus log.** A space's membership history lives in the consensus node's log in Mātou's Mongo. Does a re-published space carry its ACL history, or does it start from the publishing member's own record — and what does that mean for who can read the community and read-only spaces afterwards? 3. **Who has to publish what.** The community/read-only/admin spaces are the steward's; each private space is its own member's. Which member's device is authoritative for a shared space, and what happens to a space whose only holders never open their app again? 4. **The files.** Blobs live on Mātou's file node behind S3 and may have been evicted from members' devices. What fraction is actually recoverable from clients, how would we know before committing, and is a server-side blob export the only honest answer for the rest? 5. **Is a server-side extraction viable instead?** Pulling one community's spaces out of shared node storage + Mongo + S3 and loading them into a new network — how bespoke, and does anything upstream exist for it? 6. **What does the wallet need?** Today the descriptor's `anysync` block is read once at boot with a 5-minute cache and the Go backend refuses to start when the coordinator does not answer (#1314 findings 2 and 9). What would it take for a wallet to change networks without losing its local data, and is there a safe order? 7. **The honest fallback.** If re-seeding cannot work, what does the product say and offer — Mātou's network kept readable while new content is written at home, or something better? Nothing is executed live against a community. A throwaway two-network lab is the right shape. Findings land on a `research/anysync-content-transfer` branch with a context pointer from this ticket.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1405
No description provided.