Skip to content

docs: the move from a host notesd to the Flatpak (plan 0008, G4) - #115

Merged
bketelsen merged 2 commits into
mainfrom
irulan/g4-move-from-host-notesd
Oct 28, 2026
Merged

bketelsen merged 2 commits into
mainfrom
irulan/g4-move-from-host-notesd

Conversation

@frostyard-machines

Copy link
Copy Markdown
Contributor

Plan 0008, gap G4: a desktop that ran notesd from a build or the .deb has another data directory and socket, so the host notesd and the Flatpak's can both run and watch one vault folder. The plan asks for the move to be explicit and written down, and tested once.

What changes (docs only)

  • docs/design/app.md, Operational notes: "Moving from a host notesd", 6 steps: finish the host sync (sync status, sync verify), sync leave there, stop and disable the host notesd, open and join each vault again in the Flatpak (a new device; files match by history), revoke the old device on the hub, remove the host notesd and ~/.local/share/frostnotes.
  • Why leave comes first: both notesd keep the device token in the same Secret Service item (hub/<hub ID>/token, internal/secrets.HubToken), so the Flatpak's pairing replaces the host's token; a host notesd still joined would sync with it as that device.
  • docs/plans/0008-…: G4's status and the test record; G1's status (PR feat(app): join a hub, leave it and pair again from the app (G1) #111 merged).
  • docs/design/sync.md: a back-link in Operational notes.

The test run (2026-10-28) in a copy of Phase 3 run 1's VM (snapshot after-item-4; the snapshot is unchanged): host notesd from main b7bf450 as a user notesd.service, a loopback hub, the Flatpak 0.2.0, a real Secret Service. Before the move, both notesd ran at once. After the steps: the Flatpak joined as a new device, the hub's log stayed at 6 revisions (every file matched by history), no conflict, files byte for byte unchanged, sync verify ok; edits crossed both ways; the old device showed revoked; an unpushed line merged with no conflict; removing the host data directory did not affect the Flatpak. Not tested: the move through the app's Sync section and against lodge over HTTPS (Phase 3, item 6).

Checks: make check passes. No code change.

The steps are in design/app.md's operational notes: let the host notesd
finish its sync, leave the hub there, stop it, open and join each vault
again from the Flatpak as a new device, revoke the old device, then
remove the host notesd. Leaving comes first because both notesd keep the
device token in one Secret Service item. The plan records the test run of
2026-10-28 in a copy of Phase 3's VM.
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Oct 28, 2026
@bketelsen
bketelsen merged commit cc9fac6 into main Oct 28, 2026
9 checks passed
@bketelsen
bketelsen deleted the irulan/g4-move-from-host-notesd branch October 28, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants