Skip to content
This repository was archived by the owner on Nov 15, 2026. It is now read-only.

docs(adr): ADR-0008 and plan 0002, the standalone desktop Flatpak - #23

Merged
bketelsen merged 2 commits into
mainfrom
docs/adr-0008-desktop-flatpak
Oct 27, 2026
Merged

bketelsen merged 2 commits into
mainfrom
docs/adr-0008-desktop-flatpak

Conversation

@frostyard-machines

Copy link
Copy Markdown
Contributor

Step 1d of the suite's standalone Flatpaks program (core ADR-0062, Accepted). Docs only.

  • ADR-0008 (Proposed): org.frostyard.Frostread is a Tauri v2 shell over the existing web bundle, with its own readd in a new desktop mode, in its own sandbox instance (frostnotes ADR-0031's pattern, frostmail ADR-0046's modes, lock, ordered stop and forward-only update).
    • Local is the default: feeds, articles, saved links and search work with nothing else of frostyard's.
    • lodge is a connection, not a sync (reasons in the ADR): the window talks to lodge's readd as a native client; no readd runs on the desktop then.
    • Untrusted content without lodge-content: the daemon's steps are unchanged; the window shows a new items.render in <iframe srcdoc sandbox="allow-popups"> (opaque origin, no scripts) under an app CSP with no network source; images as data: within a 12 MiB budget (kit line 16 MiB); links through the opener.
    • Notes is optional: Export as Markdown through the SaveFile portal in local mode; save as note only in lodge mode, through lodge's readd (ADR-0004 unchanged).
    • Data under ~/.var/app/org.frostyard.Frostread/; no secret outside the database, so no Secret Service permission.
    • Moving from lodge: stay connected, or OPML export and import.
  • Plan 0002: 11 phases, each with a Done when, ending with a release candidate, the clean-install gate on its digest (handoff step 6) and the release.
  • Index, overview and roadmap link both ways.

Open questions for Brian (plan 0002): the lodge mode (connection / sync / both later), moving from lodge (OPML only / full copy), Notes on the standalone desktop (export / none / export now, local link later).

Checks: make check passes; no new broken relative link.

…h its own readd

The desktop app is org.frostyard.Frostread: a Tauri shell over the web
bundle, readd in a desktop mode in its own sandbox, local by default, and
lodge as a connection the user chooses (core ADR-0062). Articles show in a
sandboxed srcdoc frame under a CSP with no network source. Notes is
optional: Export as Markdown locally, save as note in lodge mode. The plan
ends with the clean-install gate on a candidate digest.
…eadd on every lodge start, and name the gate's candidates

- items.render bounds the whole encoded JSON-RPC answer at 12 MiB, counts
  each image's data: URI as encoded, and answers tooLarge when the text
  alone passes it.
- Every start in lodge mode stops a local readd and checks the lock
  before it connects, so a crash after app.json's rename leaves no engine.
- An update replaces readd at the launcher's next run, and the gate
  opens a new window to make that happen.
- The gate tests one release candidate; the baseline serves the update
  check only, and only the release candidate is promoted.
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Oct 27, 2026
@bketelsen
bketelsen merged commit ef216dd into main Oct 27, 2026
5 checks passed
@bketelsen
bketelsen deleted the docs/adr-0008-desktop-flatpak branch October 27, 2026 15:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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