Skip to content

feat(mdsilo): add mdSilo, a Markdown knowledge base and feed reader (com.mdsilo.mdSilo) - #1021

Merged
jing2uo merged 1 commit into
flatpark:mainfrom
rhgKc2yp:add/com.mdsilo.mdSilo
Nov 7, 2026
Merged

jing2uo merged 1 commit into
flatpark:mainfrom
rhgKc2yp:add/com.mdsilo.mdSilo

Conversation

@rhgKc2yp

@rhgKc2yp rhgKc2yp commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Adds mdSilo (com.mdsilo.mdSilo), a Markdown knowledge base, book reader and feed reader. Closes #751; upstream demand: mdSilo/mdSilo-app#438.

Packaging: Official 0.7.0 x86_64 .deb as extra-data on GNOME 51, with automatic release resolution. The upstream app is unmodified. The wrapper selects WebKit's compositing renderer; the pinned Ayatana stack supports its tray. The domain-based ID follows #751 because upstream uses mdsilo.

Sandbox: Network for feeds and HTTPS sync/publishing; Wayland/fallback X11, IPC and DRI for rendering; PulseAudio for podcasts; direct PipeWire socket access as requested; tray watcher and icon-directory access. Workspaces use the folder portal. Broad home/Documents access is omitted; the metainfo documents per-folder overrides and their reset command.

Tested from a signed local repository install:

  • Descriptor audit, AppStream, approvals and link checks; offline root-without-capabilities unpack; build and publish.sh --verify installation passed.
  • Fresh-profile rendering and matching X11 window class passed. Native Wayland passed in the user's manual test.
  • Opened a workspace through the portal, edited/saved Markdown, and verified notes, workspace access and feed data after restart.
  • Fetched/read/starred RSS articles and played an HTTPS podcast. PipeWire had active stereo links and a five-second non-silent capture. After enabling direct socket access, rebuilt/reinstalled, verified pw-cli info 0 inside the sandbox, and checked startup.
  • Tray registration and host-readable icon passed; no blocked bus-name ownership or unexpected home/autostart/launcher files. No single-instance plugin is used.
  • Shell-suite checks passed except a local Node-launcher failure; the affected test passed all 20 cases inside Builder. Environment-dependent checks reported skips; package build/install passed separately.

Limitations: No MPRIS name appeared during playback. Ebook formats, Git synchronization and site publishing were not tested.

Flathub: Packaging-time name search found no mdSilo listing; the proposed ID returned 404. Community package; no upstream approval claimed.

AI-assisted with Codex.

Thanks!

Closes #751

@jing2uo

jing2uo commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Review: mdSilo (com.mdsilo.mdSilo)

Reviewed at head dbf32325 against docs/reviewers/review-runbook.md. This was a static review only: I didn't run any build command, the resolver, apply_extra or the app. pr-checks passed (lint-and-test, guard-infra, build-changed x86_64/aarch64).

Recommendation: PASS once the one ⚠️ (row 3.9) is resolved. Drop --filesystem=xdg-run/pipewire-0, or justify it in the PR. Two non-blocking nits are at the end.

# Phase Check Tier Verdict Evidence
0 Safety Static-only; artifacts handled in an isolated dir ★ ✅ The .deb and the Ayatana tar were fetched as bytes into a scratch dir. Entries were listed before extraction (--no-same-owner --no-same-permissions). Nothing in them was executed
1.1 Scope Classification ★ ✅ New app: 8 files, all under registry/com.mdsilo.mdSilo/ (+156/−0)
1.2 Scope High-scrutiny surface ★ ✅ No .github/, scripts/, config/ or existing resolver is touched. The resolver is in the new app dir. guard-infra passed
2.1 Provenance Submitter account ★ ⚠️ rhgKc2yp: created 2026-10-22, 0 followers, 10 repos, all from the last two weeks (*-release build repos, a flatpark fork, templates). It has 20 merged PRs and 7 open PRs here. The account is new, but its packaging work has a track record in this repo. The bytes come from upstream (5.1/5.4), so the account's trust doesn't decide the verdict
2.2 Provenance Source repo ★ ✅ mdSilo/mdSilo-app: created 2022-02, 854★, 49 forks, AGPL-3.0, last pushed 2026-11-07. mdsilo.com was registered 2021-09. Upstream issue #438 (open since 2023-04) asks for a Flatpak. FlatPark's own discovery issue #751 found it
2.3 Provenance Commit identity ★ ✅ One commit, rhgKc2yp <[email protected]>, which matches the account
2.4 Provenance Timeline ★ ✅ Upstream published mdsilo-v0.7.0 on 2026-10-31 17:12 UTC via github-actions[bot]. The PR was opened 2026-11-06 by an unrelated account. There is no account→repo→release chain
2.5 Provenance Trust tier ★ ✅ unknown-but-plausible
2.6 Provenance Artifact tier ★ ✅ Tier 1: open source (AGPL-3.0-or-later). The payload is the official upstream .deb
3.1 Manifest Source types ★ ✅ One extra-data source (sha256 + size 17050716, x86_64-only). One archive source: ayatana-v2, a prebuilt stack the catalog already consumes as an archive (22 manifests, e.g. com.codexu.NoteGen). The rest are local file sources. No git
3.1b Manifest Only shared prebuilt in /app ★ ✅ ayatana-stack (cp -a ./. /app/, the same as NoteGen) is the only remote content in the ref. The .deb is extra-data. The mdsilo module only installs in-repo files
3.2 Manifest finish-args escape perms ★ ✅ None. Grants: network, ipc, wayland, fallback-x11, dri, pulseaudio, xdg-run/pipewire-0, talk-name=org.kde.StatusNotifierWatcher and xdg-run/tray-icon:create. Each has a comment
3.3 Manifest policy: honest ★ ✅ proprietary: false (AGPL). dangerous_permissions: [] is correct, since no escape permission is used
3.4 Manifest build-commands / injected code ★ ✅ The build commands only install files. The wrapper sets WEBKIT_DISABLE_DMABUF_RENDERER=1 (overridable) and execs through a symlink. Nothing is put in LD_PRELOAD and nothing is patched. libayatana-appindicator3.so.1 is found from /app/lib by Tauri's dlopen
3.4b Manifest packaging: declarations ★ ✅ None needed: nothing is injected, there are no host commands and no sandbox is turned off. The Ayatana stack is support files, which the site derives from the manifest
3.5 Manifest Source URLs genuine ★ ✅ github.com/mdSilo/mdSilo-app/releases/download/mdsilo-v0.7.0/mdsilo_0.7.0_amd64.deb and github.com/flatpark/prebuilt/releases/download/ayatana-v2/…
3.6 Manifest App id matches vendor ★ ✅ Upstream's Tauri identifier is the bare mdsilo. com.mdsilo.* follows the domain mdsilo.com, as #751 suggested. The metainfo says "community package … repackages the official upstream Linux build unmodified"
3.7 Manifest update.command ★ ✅ ./resolve-update.sh
3.8 Manifest Download host ★ ✅ Upstream's GitHub releases. The asset was uploaded by github-actions[bot] in mdSilo/mdSilo-app, not by the submitter
3.9 Manifest Optional caps opt-in ★ ⚠️ --filesystem=xdg-run/pipewire-0 is justified only as "requested for this package". The binary has no pipewire strings at all. Podcast playback goes through WebKit/GStreamer to PulseAudio, which --socket=pulseaudio already covers. The system-services doc reserves this grant for apps that connect to PipeWire themselves (XerahS recording a node). Please remove it, or explain in the PR which feature needs it. Home/Documents access is correctly left out, and the folder override and its reset are documented in the metainfo
3.10 Manifest Testing record ★ ✅ The PR body lists what passed: descriptor/AppStream/link checks, offline unpack as root without capabilities, publish.sh --verify, fresh profile, X11 WM_CLASS, native Wayland, portal workspace edit/save, RSS + podcast, tray, data persisting across a restart. It also lists what wasn't tested: MPRIS (none appeared), ebooks, Git sync, publishing
4.1 Runtime No fetch-and-exec ★ ✅ tauri-plugin-updater is compiled in, but it is never registered: src-tauri/src/lib.rs:58 has // .plugin(tauri_plugin_updater::Builder::new().build()), and tauri.conf.json has plugins.updater.active: false. The updater:default ACL entry has nothing to call. This settles #751's "check how the updater behaves under the sandbox". The inject plugin (plugins.rs) appends local JS from $XDG_DATA_HOME/mdsilo/plugins (inside the sandbox, the app's own data dir). It fetches nothing. Spawning is limited to open::that (xdg-open → OpenURI portal). The only Command::new("git") is in sync/tests.rs
4.2 Runtime Resolver as code ★ ✅ It reads releases/latest of the hard-coded mdSilo/mdSilo-app (optionally with GITHUB_TOKEN), so prereleases are excluded by the API. The tag must match ^(mdsilo-)?v?X.Y.Z$. It requires exactly one asset ending in _amd64.deb (.deb.sig doesn't match) and prints JSON with jq -e. No eval, no writes. The URL is the asset's browser_download_url. CI computes the sha256
4.3 Runtime Network × filesystem ★ ✅ Network is the core feature (feeds, podcasts, HTTPS Git sync, publishing). There are no static filesystem grants: workspaces come through the document portal. Hosts in the binary are github.com, mdSilo.github.io, api.openai.com (an optional AI feature), docs.rs and Tauri's ipc.localhost/asset.localhost
5.1 Artifact sha256 == pin ★ ✅ mdsilo.deb: c79e5cda…db32b0, 17050716 bytes, which also equals GitHub's asset digest. ayatana-stack…tar.xz: 1051a537…b876fdc, 156660 bytes
5.2 Artifact Inspected per type ★ ✅ .deb: debian-binary, control.tar.gz, data.tar.gz. Control holds only control and md5sums, so there are no maintainer scripts. Data: 17 entries, all 0/0: 12 dirs, 4 0644 files (desktop + 3 PNGs) and one 0755 (usr/bin/mdsilo). No symlinks, no .., no absolute paths, no setuid/setgid. Ayatana tar: one top-level dir. Its symlinks are only the in-dir .so version chains
5.3 Artifact Open-source: nothing injected 1 ✅ The binary is run unmodified. The registry icon is byte-identical to the .deb's 256x256@2/apps/mdsilo.png (5307a6a0…). The desktop entry is rewritten for the app id (Icon, StartupWMClass, Name). That is metadata only. The vendor's own mdsilo.desktop stays inside /app/extra/mdsilo/share/, which isn't exported
5.4 Artifact Shipped == official ★ ✅ apply_extra.sh unpacks data.tar* with --no-same-owner. It takes the launcher name from the vendor desktop entry, validates it against [a-zA-Z0-9._-] and checks that it is executable. It moves usr/ to mdsilo/, adds a relative symlink com.mdsilo.mdSilo → bin/mdsilo (for argv[0] / WM_CLASS) and deletes the .deb. Nothing is rewritten
5.5 Artifact Bundled runtime vs upstream ★ ✅ No bundled runtime. Every NEEDED library comes from org.gnome.Platform//51 (webkit2gtk-4.1, soup-3.0, gtk-3, javascriptcoregtk-4.1, …). libgit2 and SQLite are statically vendored by upstream's crates (vendored-libgit2, libsqlite3-sys bundled). The Ayatana stack was built by FlatPark's prebuilt workflow (ayatana-v2)
5.6 Artifact IOC scan ★ ✅ No hits for xmrig, stratum+, /dev/tcp, nc -e, bash -i, crontab, .bashrc, LD_PRELOAD, .config/autostart, systemctl. No RPATH/RUNPATH. The second \x7fELF match (offset 21693525) is followed by 75 df 41 80, which is not a valid ELF header. It sits in .text, so it is code bytes, not an embedded binary. The dotted-quad strings are version/date noise
6.1 Compliance Purpose ★ ✅ Notes, book and feed reader. AGPL allows redistribution, and extra-data keeps the binary off FlatPark's storage anyway
6.2 Compliance Non-FOSS not a reason ★ ➖ Open source
7.1 Verdict Overall ★ ✅ PASS after 3.9 is resolved
7.2 Verdict Hard-fail triggers ★ ✅ None
7.3 Verdict Recommends only ★ ✅ A maintainer merges

Files read

  • com.mdsilo.mdSilo.yml: finish-args and their comments, the ayatana-stack module (identical to NoteGen's) and the mdsilo module with its MANAGED extra-data block.
  • flatpark.yml: x86_64-only (upstream ships no aarch64 Linux build), update.command and policy:.
  • apply_extra.sh: see 5.4.
  • mdsilo-wrapper: one env default, then exec.
  • resolve-update.sh: see 4.2.
  • com.mdsilo.mdSilo.desktop and .png: compared against the .deb (5.3).
  • com.mdsilo.mdSilo.metainfo.xml: license is AGPL-3.0-or-later, which matches upstream's package.json and LICENSE. Both screenshot URLs at the mdsilo-v0.7.0 tag return 200. The <release> date is 2026-10-31, the same as published_at.
  • Upstream source at mdsilo-v0.7.0: src-tauri/Cargo.toml, tauri.conf.json, capabilities/default.json, and all src-tauri/src/*.rs grepped for spawning, the updater and plugin loading (4.1).

Reproduce

curl -fsSLo mdsilo.deb https://github.com/mdSilo/mdSilo-app/releases/download/mdsilo-v0.7.0/mdsilo_0.7.0_amd64.deb
curl -fsSLo ay.tar.xz https://github.com/flatpark/prebuilt/releases/download/ayatana-v2/ayatana-stack-ayatana-v2-gnome-51-x86_64.tar.xz
sha256sum mdsilo.deb ay.tar.xz; stat -c '%n %s' mdsilo.deb ay.tar.xz
bsdtar -tvf mdsilo.deb                                         # debian-binary control.tar.gz data.tar.gz
bsdtar -xOf mdsilo.deb 'control.tar*' | bsdtar -tvf -          # control md5sums
bsdtar -xOf mdsilo.deb 'data.tar*' | bsdtar -tvf -             # 17 entries, 0/0, no links
bsdtar -tvf ay.tar.xz
mkdir x && bsdtar -xOf mdsilo.deb 'data.tar*' | bsdtar --no-same-owner --no-same-permissions -xf - -C x
readelf -d x/usr/bin/mdsilo | grep -E 'NEEDED|RPATH|RUNPATH'
LC_ALL=C grep -aobP '\x7fELF' x/usr/bin/mdsilo                 # 0 and 21693525 (.text)
strings -n6 x/usr/bin/mdsilo | grep -E 'xmrig|stratum\+|/dev/tcp|nc -e|bash -i|crontab|\.bashrc|LD_PRELOAD'
strings -n6 x/usr/bin/mdsilo | grep -ci pipewire               # 0
sha256sum x/usr/share/icons/hicolor/256x256@2/apps/mdsilo.png registry/com.mdsilo.mdSilo/com.mdsilo.mdSilo.png
gh api 'repos/mdSilo/mdSilo-app/contents/src-tauri/src/lib.rs?ref=mdsilo-v0.7.0' --jq .content | base64 -d | grep -n updater

Not covered

  • Nothing was built or run here (runbook Phase 0). The build, check-apply-extra.sh and the rest of pr-checks.yml are covered by CI, which passed.
  • mdSilo's Rust and TypeScript source wasn't audited (Tier 1). I only read the Tauri entry point, config and capabilities. The frontend bundle is compressed inside the binary, so I didn't scan it.
  • Ebooks, Git sync, site publishing and MPRIS weren't tested, as the PR says.

Nits (non-blocking)

  • The icon is 256×256 (upstream's 256x256@2 asset) but is installed to hicolor/512x512/apps/. hicolor/256x256/apps/ would match its real size.
  • Upstream's updater could come back if a future release uncomments tauri_plugin_updater in lib.rs. A one-line comment in the manifest or in apply_extra.sh would tell the next bump reviewer to check it.

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.

[app discover] mdSilo

2 participants