p2panda / handbook

Website with tutorials, specification, info and learn sections of p2panda
https://p2panda.org
Creative Commons Attribution Share Alike 4.0 International
87 stars 8 forks source link

Document exclusion lists facilitating deletion #276

Closed sandreae closed 7 months ago

sandreae commented 1 year ago

This is an idea that came to mind while working on the replication announcement specification. We are likely to introduce an exclusion list which limits which documents and peers you want to replicate. I'm considering if we could do something similar locally as a way to support full document deletion. The pattern would go like this:

This would mean that you stop replicating the document, and made a best effort to spread that deletion out on the network. Of course this comes with it's own dangers, data could "re-appear" if the deletion doesn't replicate to all peers, but maybe this is something that could be fine tuned to account for most situations. An additional rule for safety would be:

adzialocha commented 1 year ago

That's a nice description of a deletion protocol!

I understand exclusion lists as a manual configuration by node maintainers so I'd be surprised to suddenly see my configuration automatically being changed without my consent but if we keep track of that internally, on top of these configurations then it's all good, just want to separate the concerns.

sandreae commented 1 year ago

Yeh, this is actually separate thing from the exclusion list (although that triggered the line of thought). A deletion list would only ever be kept locally, never broadcast (it could get massive sometimes).

sandreae commented 1 year ago

I see I confused terms in there, will fix that.