Skip to content

feat(compass): add Compass, a keyboard-first launcher (org.tunaos.compass) - #678

Merged
jing2uo merged 2 commits into
flatpark:mainfrom
hanthor:add-org.tunaos.compass
Oct 16, 2026
Merged

jing2uo merged 2 commits into
flatpark:mainfrom
hanthor:add-org.tunaos.compass

Conversation

@hanthor

@hanthor hanthor commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Compass is a keyboard-first launcher for the Linux desktop, written in Rust: application search, clipboard history, snippets, a calculator, an emoji picker, a window switcher and Raycast-compatible extensions behind one search field. It is a hard fork of Vicinae with an Iced/wgpu interface in place of Qt.

Packaging

  • Payload: the official Compass-x86_64.AppImage from the GitHub release (v0.28.3), as extra-data, pinned by sha256 and size. The pin matches the release asset's published digest.
  • apply_extra unpacks it offline with appimage-tools-v2 (fd-26.08). The AppImage is never executed.
  • Runtime: org.freedesktop.Platform//26.08, as upstream's own Flatpak uses. Compass needs neither GTK nor Qt. The AppImage carries its own libssl/libcrypto (RUNPATH $ORIGIN/../lib) and Node; the GPU, Wayland and xkbcommon libraries it opens come from the runtime.
  • /app/bin/compass runs the AppImage's own AppRun, which points COMPASS_NODE and COMPASS_BUILTIN_ICONS into the unpacked tree and execs usr/bin/compass. The engine finds compass-sandbox-exec, compass-file-indexer, the extension runtime and its Rhai scripts beside its own binary. The vendor's bytes are unmodified.
  • Build-time files: upstream's own, from the v0.28.3 tag: the desktop entry, the compass:// / raycast:// / vicinae:// URL handler entry, the metainfo and the icon. The metainfo gains one paragraph giving the flatpak override for File Search (below).
  • Updates: resolve-update.sh follows releases/latest and selects the Compass-x86_64.AppImage asset.
  • packaging: declares host-command.

Permissions

These follow upstream's Flatpak manifest (packaging/flatpak/org.tunaos.compass.yaml), with two left out.

finish-arg Why
--socket=wayland, --device=dri Wayland-only by design, rendered with wgpu. No X11 socket.
--share=network Extensions fetch their data, views load remote images, OAuth exchanges its code, the extension store downloads bundles
--own-name=org.tunaos.compass.* Single instance, CLI activation, and the services the engine exports (org.tunaos.compass.WindowTracker, …)
--talk-name=org.gnome.Shell On GNOME, window switching, clipboard history and paste go through Compass's Shell extension if the user installed it. Its objects live on the Shell's connection. Compass never installs it.
--talk-name=org.kde.StatusNotifierWatcher The tray icon, and Search Tray
--system-talk-name=org.freedesktop.login1, --talk-name=org.gnome.SessionManager, --talk-name=org.kde.Shutdown Power off, reboot, suspend, lock, log out; still subject to logind's polkit policy
--talk-name=org.freedesktop.Flatpak Declared in policy.dangerous_permissions. Compass is a launcher: starting the application the user picked means starting it on the host, through flatpak-spawn --host (compass-platform-linux/src/launch.rs). Host commands an extension asks for go the same way, and only after the user answers Allow Once or Always Allow (compass/src/host_commands.rs). Without it, Compass can search but can't launch.
--filesystem=host-os:ro and the read-only applications / icons / Flatpak export and deploy-tree paths, /home/linuxbrew/.linuxbrew/share/applications:ro The application catalogue it searches. The exports hold symlinks into the deploy trees, so those are granted too, read-only; without them every Flatpak app is missing from search.

Left out:

  • --filesystem=home:ro, which only File Search uses. The metainfo description gives flatpak override --user --filesystem=home:ro org.tunaos.compass to turn it on.
  • --talk-name=org.freedesktop.portal.Desktop, which every sandbox already has.

Tested

  • Descriptor checks: node scripts/read-descriptor.mjs, node scripts/audit-descriptor.mjs and ./scripts/check-approvals.sh pass. The only warning is for the declared --talk-name=org.freedesktop.Flatpak. appstreamcli validate and desktop-file-validate pass on the shipped files; ./scripts/check-links.sh org.tunaos.compass checks 7 links, all OK.
  • Build and install: ./scripts/publish.sh --verify org.tunaos.compass builds (appstreamcli compose: Success), signs, installs from the local signed repo and runs apply_extra.
  • Unprivileged unpack: ./scripts/check-apply-extra.sh org.tunaos.compass reports apply_extra OK as root with no capabilities.
  • Libraries: LD_TRACE_LOADED_OBJECTS=1 inside the sandbox reports nothing missing for compass, compass-sandbox-exec, compass-file-indexer or node.
  • Run: on a headless Sway session (Wayland, llvmpipe), flatpak run org.tunaos.compass start brings up the engine, indexes the host's applications, loads the five bundled Rhai scripts and presents the launcher as a layer-shell surface; the first-run welcome screen renders. compass ping answers; compass query htop / vim return the host's entries. compass app launch org.codeberg.dnkl.foot.desktop started foot on the host through flatpak-spawn --host (a child of flatpak-session-helper, outside the app's cgroup), and it mapped on Sway. Config, cache and state land under ~/.var/app/org.tunaos.compass; nothing is written to the real home.
  • Not tested: the GNOME Shell extension paths, global shortcuts and the tray (the test session has no portal frontend, no Shell and no StatusNotifierWatcher), extension installs, and File Search with the override applied.

🤖 Generated with Claude Code

…pass)

Repackages the official Compass-x86_64.AppImage from the v0.28.3 release as
extra-data, unpacked offline with appimage-tools-v2 and run through the
AppImage's own AppRun on org.freedesktop.Platform//26.08, the runtime
upstream's Flatpak uses. The desktop entries, metainfo and icon are
upstream's files from the v0.28.3 tag.

finish-args follow upstream's Flatpak, minus two grants:
--talk-name=org.freedesktop.portal.Desktop, which every sandbox already
has, and --filesystem=home:ro, which only File Search uses and which the
metainfo now documents as an opt-in override. The launch path needs
--talk-name=org.freedesktop.Flatpak; it is declared under
policy.dangerous_permissions and packaging: host-command.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jing2uo

jing2uo commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Review — org.tunaos.compass (Compass)

Verdict: NEEDS-HUMAN → recommend merge. No hard-fail rows. It needs a human only for the declared --talk-name=org.freedesktop.Flatpak, and the source justifies it (3.2). Static review only: nothing was built, installed or run.

# Check Verdict Evidence
0 Static-only, isolated ✅ AppImage fetched as bytes into a scratch dir; SquashFS carved at offset 944632 (hsqs) and listed/extracted with 7-Zip; nothing executed
1.1 Scope ✅ New app: 9 files, all under registry/org.tunaos.compass/
1.2 High-scrutiny surface ✅ None touched; the resolver is in a brand-new app dir
2.1 Submitter ✅ hanthor (James Reilly): account since 2013, Bluefin LTS maintainer, tuna-os member, #2 contributor to tuna-os/compass
2.2 Source repo ⚠️ tuna-os/compass is a GitHub fork of vicinaehq/vicinae (GPL-3.0), created 2026-09-12 with 2 stars. It's young, but it's an established author on top of an established codebase (Vicinae: 2130 commits)
2.3 Commit identity ✅ fccf748 by James Reilly <[email protected]>, co-authored by Claude; same identity as the v0.28.3 tag commit fa42084
2.4 Timeline ✅ Tag commit 2026-10-08; AppImage built and uploaded 2026-10-15 12:36 UTC by upstream's Release (tagged) workflow (run 38735957617, actor hanthor); PR the same day. That's fast but consistent with "releases now carry the AppImage", and the author is established
2.5 Trust tier ✅ Established; the submitter is upstream
2.6 Provenance tier ✅ Tier 2: an upstream CI release asset uploaded by github-actions[bot] (no build attestation on this one, unlike Tavern)
3.1 Pinning ✅ org.tunaos.compass.yml:81-87 extra-data with sha256 and size 71305720; appimage-tools :73-79 identical to the shared pin; every other source is a local file
3.1b Nothing remote in /app ✅ build-commands :62-69 only install local files
3.2 Escape perms 👤 --talk-name=org.freedesktop.Flatpak (:41), declared in flatpark.yml:21-28 with a justification. Verified: app launch is flatpak-spawn --host (compass-platform-linux/src/launch.rs:138-204); extension host commands go through a consent prompt (compass/src/host_commands.rs:300-310, Allow Once / Always Allow, grants stored under the sandboxed $XDG_CONFIG_HOME). Also --filesystem=host-os:ro plus read-only Flatpak export/deploy trees (:46-55), explained in the PR
3.3 policy: honest ✅ proprietary: false (GPL-3.0-only); dangerous_permissions covers the one high-risk arg
3.4 build-commands ✅ Install-only. The wrapper execs the vendor's own AppRun, which is byte-identical to packaging/appimage/AppRun at the tag. No injected code
3.4b packaging: ✅ host-command declared; en and zh-Hans detail text is accurate
3.5 Source URLs ✅ github.com/tuna-os/compass releases
3.6 App id ✅ org.tunaos.compass = upstream's own Flatpak id (packaging/flatpak/org.tunaos.compass.yaml)
3.7 update.command ✅ ./resolve-update.sh
3.8 Download host ✅ Upstream GitHub release
3.9 Optional caps ✅ home:ro (File Search only) left out and documented as a flatpak override in the metainfo; everything else follows upstream's manifest
3.10 Local-test attestation ✅ Body: publish --verify, check-apply-extra, LD_TRACE_LOADED_OBJECTS, launched on Sway, host launch through flatpak-spawn confirmed; gaps named (GNOME Shell extension, tray, shortcuts, extension installs, File Search)
4.1 Runtime fetch-and-exec ✅ No fetch-and-exec in the package. The user-initiated extension store (Raycast/Vicinae ecosystem: backend.raycast.com, api.vicinae.com) runs extensions under Compass's own Landlock + seccomp worker sandbox (crates/compass-sandbox), which needs no user namespaces and so works inside Flatpak. Same category as an editor's extension marketplace
4.2 Resolver as code ✅ releases/latest → exact asset Compass-x86_64.AppImage; curl/jq only
4.3 Endpoints ⚠️ Network plus host-os:ro (/usr, /etc). Acceptable for a launcher indexing the system catalogue; noted
5.1 sha256 ✅ b8c13949…ebbb, 71305720 B: matches the pin and the GitHub asset digest
5.2 Inspection ✅ 915 entries; no absolute or .. paths, no setuid/setgid; 2 symlinks, both relative and in-tree (.DirIcon, the root svg). Recipe uses appimage-tools; the stub never runs
5.3 Interpreted code == source ➖ Rust binaries (Tier 2, not byte-reproducible); AppRun is byte-identical to the tag
5.4 Artifact == official ✅ Re-fetched; hash equals the pin
5.5 Bundled prebuilts ✅ usr/bin/node is byte-identical to bin/node from nodejs.org node-v22.23.3-linux-x64.tar.xz (fde6a4bf…8f48; the tarball matches SHASUMS256.txt and upstream's pinned NODE_SHA256). libssl.so.3/libcrypto.so.3 are build-host libs gathered by linuxdeploy (standard; no canonical artifact to compare against)
5.6 IOC ✅ RUNPATHs are relative and in-tree only ($ORIGIN/../lib, $ORIGIN/../../lib:$ORIGIN); no /dev/tcp/miner strings. The bundled usr/lib/systemd/user/compass.service sits in /app/extra and isn't exported to the host
6.1 Purpose ✅ A launcher; a GPL-3.0 hard fork of Vicinae with the engine and UI rewritten in Rust (356 commits ahead of the fork point), credited as such in its README
6.2 Non-FOSS ➖ FOSS
7.1 Overall 👤 NEEDS-HUMAN (declared Flatpak escape) → recommend merge
7.2 Hard-fails ✅ None
7.3 Report ✅ Recommendation only; a maintainer merges

Notes, not blocking:

  • The engine, its helpers and the bundled Node were checked as above. Extension installs, the tray and the GNOME Shell paths are named as untested in the PR body; none of them is the core launch/search path.

Submitted by its own developer in flatpark#678, so the PR is the
evidence.
@jing2uo

jing2uo commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Since you're Compass's developer and submitted this yourself, this PR counts as the developer's approval for the listing. I've pushed a commit to this branch that sets catalog.upstream_approved: true and adds the record to docs/upstream-approvals.md, so Compass gets the developer-approved badge.

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.

2 participants