Skip to content

docs(rfd): add RFD 031 for durable conversation storage#415

Merged
JeanMertz merged 2 commits intomainfrom
my-feature
Mar 5, 2026
Merged

docs(rfd): add RFD 031 for durable conversation storage#415
JeanMertz merged 2 commits intomainfrom
my-feature

Conversation

@JeanMertz
Copy link
Collaborator

This RFD proposes a change to how conversations are stored to ensure durability across workspace deletions, specifically addressing the data loss experienced by git worktree users.

The proposed design shifts the source of truth for all conversations to user-local storage, treating the workspace .jp/conversations/ directory as a projection for git visibility. This ensures that conversations persist even if a worktree is removed, while maintaining the ability to commit them to version control.

The document outlines the storage model, dual-write persistence logic, mtime-based conflict resolution for manual edits, and a migration path for existing user-local storage.

This RFD proposes a change to how conversations are stored to ensure
durability across workspace deletions, specifically addressing the data
loss experienced by git worktree users.

The proposed design shifts the source of truth for all conversations to
user-local storage, treating the workspace `.jp/conversations/`
directory as a projection for git visibility. This ensures that
conversations persist even if a worktree is removed, while maintaining
the ability to commit them to version control.

The document outlines the storage model, dual-write persistence logic,
mtime-based conflict resolution for manual edits, and a migration path
for existing user-local storage.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit 2fd5ae6 into main Mar 5, 2026
11 checks passed
@JeanMertz JeanMertz deleted the my-feature branch March 5, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant