#7309·screenpipe

feat(enterprise): opt-in 'always running' enforcement for supervised background agents

Author: louis030195Created Sep 25, 2026Updated Sep 25, 2026

Context

Follow-up to #7305, which added admin-enforced tray suppression. That PR makes a fully surface-free deployment possible: no windows, no Dock, no menu-bar item. What it deliberately does not add is process supervision.

What exists today

enforce_auto_start is already implemented and enforced by a reconciler in src-tauri/enterprise_autostart.rs. It repairs the OS login item (via the autostart plugin) on a 10s cooldown, so the app comes back at next login/boot.

What it does not do: watch for a dead process. enrollment_status() checks whether the login item is enabled, not whether the app is running. There is no supervisor, no heartbeat, and no relaunch on unexpected exit. A kill -9 mid-session stays dead until next login.

Proposal

Gate process supervision behind a separate policy flag, enforce_always_running, default off, server-driven like the rest of hidden_sections.

Hard requirements before this ships:

  1. Default off. Never implied by enforce_auto_start, and never inferred from tray suppression. Suppressing chrome is not consenting to persistence.
  2. Crash-only trigger. Relaunch on unexpected exit / crash, not on explicit quit or force-quit. This is the standard distinction and it is the one that preserves employee trust: a process that respawns after a deliberate force-quit is indistinguishable from malware persistence.
  3. User escape hatch. With the tray suppressed there is no in-app affordance, so there must be an out-of-band way to stop it — a documented hotkey, and a tray item whenever the tray is visible.
  4. Restart budget + exponential backoff. A crash loop must not spin or pin a core.
  5. Observable + documented. The employee and their EDR both see this. Whatever the admin console says must match actual behavior.
  6. No TCC weakening. Restarting does not re-grant, re-prompt, or work around screen-recording / microphone permissions.

Why not default-on

An app that respawns itself after a kill reads as malware to employees, and increasingly trips EDR and compliance tooling. That is a serious problem in exactly the enterprise orgs this feature targets: surface-free background capture already works with zero chrome, so someone who force-quits is already off-policy, and respawning buys little while creating a lot of risk.

Open questions

  • Is a launchd/Windows Service supervisor in scope, or a Tauri-side in-process watchdog? The former survives app crashes; the latter cannot, and loses the in-app escape hatch.
  • Does this need a MDM/Intune story instead, where the OS restarts the app on login and on crash?
  • What is the audit story — does the relaunch need to be reported to the enterprise control plane?