Our Personal Data Server from scratch! tranquil.farm

spaces/foundations: canonicality func & STAR profiles #720

Open oyster.cafe
Open opened by oyster.cafe

Another task that all subsequent work will build from. This one must implement metadata & record bodies sharing a single DRISL canonicality check, and adding STAR profiles which contain limits and other aspects as types. Please build on top of @jola.dev 's hard work, crates/tranquil-star and RecordSetHash in crates/tranquil-space.

Reference: bluesky-social/atproto, branch permissioned-data-stacked at 86b693f19 (or later?) PR 6031.

For this task, I recommend that contrary to ref PDS re-encoding records at just ImportRepo, that every record body should go through this same canonicality check as metadata. Feel free to disregard if that's a dumb idea, but that informs the following: I think that one could start by pulling the canonicality logic out of Metadata::decode at crates/tranquil-star/src/metadata.rs into a more abstract func that works on any record body, such that metadata and records can't drift. As for the stars ⭐ I recommend a StarProfile trait that has these 2 atproto-space-repo and atproto-space-meta, and throw in their limits per profile and field.

Sign up or Sign in to add to the discussion.