Packs run unsandboxed inside the core process
A pack is plain Python that AutoMiner imports into its own process, with the same platform interface the built-in platforms use and full access to the machine. We accept the risk of arbitrary code because a sandbox or a separate process per pack would make the interface far wider, and community platforms would end up second-class. The safeguards are at the door instead: the upload needs a custom header so other websites cannot send it, a confirm screen lists the author, every dependency and every limit, a pack that names a different interface version is refused, and a pack that throws is paused with its error shown.
Considered Options
Section titled “Considered Options”- A subprocess per pack speaking a JSON protocol. Rejected: it gives crash isolation but no security on its own, and every hook would need a wire format.
- No community code: built-in platforms only. Rejected: the goal is that anyone can add a platform such as Netflix, or a service such as a game-capture bridge, without a core release.
Consequences
Section titled “Consequences”AutoMiner has no login of its own. Anyone who can open the UI (through Cloudflare Access, the tailnet or the home LAN) can install a pack, and so can run code on the host.
Amendment, 2026-11-24 (proposed, awaiting Chris): only an error with nowhere else to go pauses a pack
Section titled “Amendment, 2026-11-24 (proposed, awaiting Chris): only an error with nowhere else to go pauses a pack”This amendment is proposed by the pack architecture review and Chris has not approved it yet. Until he does, the rule above stands as written.
“A pack that throws is paused” narrows to errors that have no other sink. A job failure
fails that job, as a built-in platform’s would, and a route handler’s error goes to its
HTTP caller. Errors in ticks, trackers, listings, capture, commands, value checks and
imports have nowhere else to go, so they pause the pack. A SystemExit or other
BaseException inside a job fails the job and pauses the pack too. Without the
narrower rule, one bad source would stop every source of a platform: identify raises
ValueError by design for a URL it does not own. The design is in
docs/packs-architecture.md.