Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: note the usedPrompts ordering and id-less peer story fixes in the changelog entry (#3531)

[._.]/ Adam Eivydfb4469a77a6
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 84fa8c6692..369c461af9 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -151,4 +151,4 @@
- **[issue-3532] Deleting a social account from your Digital Twin no longer leaves your other machines to put it back.** Peer sync merged the account list add-only: whichever machine still had the account re-inserted it, so an account you removed on one machine reappeared on the next sync cycle, every cycle. A delete now records a tombstone on the account's id, and those tombstones union in both directions — so the machine that still holds the account drops it, instead of the deleting machine merely defending itself while the peer keeps re-sending. The id is the right key here, unlike the identity documents that tombstone on filename: an account id is minted once by the machine that created the account and then travels verbatim between peers, and re-adding the same handle after a delete mints a fresh id, which a platform-and-handle key would have wrongly kept suppressed. An account edited after another machine deleted it also survives — the edit is the user's later word, and the now-obsolete tombstone is dropped so it cannot bounce back from a peer that has not caught up. A peer running an older build simply ignores the new field and keeps offering its copy; the upgraded machine still refuses it, so nothing is corrupted while the two versions differ, and no migration is needed because a file without the field reads as an empty list.
-- **[issue-3531] Deleting an autobiography life story no longer leaves it to be resurrected by your other machines.** Peer sync merged the stories add-only, so a story you deleted on one machine was put straight back by any machine that still had it, on the next sync cycle and every cycle after that — there was no way to permanently remove a story you had written. A delete now records a tombstone against the story, and those tombstones union in both directions, so the machine that still holds the story drops it too rather than the deleting machine merely defending itself while the peer keeps re-sending. The tombstone keys on the story's own id, which is safe here in a way it was not for identity documents: a story id is minted once when the story is written and travels with the record, so every machine knows the same story under the same id. A story that was edited after another machine deleted it is kept rather than reaped — that edit is the user's later word on it — and the now-obsolete tombstone is dropped so it cannot bounce back from a peer that has not seen the edit. A peer running an older build simply ignores the new field and keeps offering its copy; the upgraded machine still refuses it, so nothing is corrupted while the two versions differ. Separately, a fresh install's first story read handed back the shared default record by reference, so anything written into it lingered in memory for the next reader; that record is now copied per read.
+- **[issue-3531] Deleting an autobiography life story no longer leaves it to be resurrected by your other machines.** Peer sync merged the stories add-only, so a story you deleted on one machine was put straight back by any machine that still had it, on the next sync cycle and every cycle after that — there was no way to permanently remove a story you had written. A delete now records a tombstone against the story, and those tombstones union in both directions, so the machine that still holds the story drops it too rather than the deleting machine merely defending itself while the peer keeps re-sending. The tombstone keys on the story's own id, which is safe here in a way it was not for identity documents: a story id is minted once when the story is written and travels with the record, so every machine knows the same story under the same id. A story that was edited after another machine deleted it is kept rather than reaped — that edit is the user's later word on it — and the now-obsolete tombstone is dropped so it cannot bounce back from a peer that has not seen the edit. A peer running an older build simply ignores the new field and keeps offering its copy; the upgraded machine still refuses it, so nothing is corrupted while the two versions differ. Two neighbouring bugs in the same merge went with it: the list of prompts you have already answered was only checked for having changed *length*, so a list that was merely in a different order than a peer's was never written back in the shared order — leaving two machines with the same prompts computing different checksums and re-syncing that file forever — and a story arriving from a peer without a usable id was filed under a blank key, where a second such story would overwrite it and neither could ever be deleted. Separately, a fresh install's first story read handed back the shared default record by reference, so anything written into it lingered in memory for the next reader; that record is now copied per read.