Security model
app-anything runs code from the internet — ported apps — and packages it for others. This page states what the tool trusts, what it verifies, and where its responsibility ends.
The threat it actually addresses
A ported backend is an arbitrary program. Left alone, a "portable app" is a vector for: binding ports the user did not choose, writing anywhere on the machine, spawning processes that outlive it, opening browser windows, beating on the network the moment it starts, and turning "the app updated itself" into remote code execution. The contract exists to make all of this observable and refusable, on every host, in every target.
What the tool verifies
- At check time — the manifest schema is strict (typed, patterned values, exact error messages); the static rules catch declared misbehavior, and the dynamic probe measures the real one: loopback-only binds, health-before-ready, handshake completion, sandbox writes, browser opens, orphans, stdout discipline, CORS posture.
- At pack time — the gates run as a pipeline step; a package carries the report of what passed. The digest makes the contents comparable to the report.
- At create time — creators render a package whose declared capabilities they actually offer; a target refusal is a refusal of the declared shape, not a surprise at runtime.
- At run time — the host chooses the port, injects the token, closes stdin to stop, and kills the whole process tree; the desktop shell restricts navigation to the app origin and shows an error view instead of a blank window when the backend dies.
What the tool deliberately does not do
Signing, distribution and update hosting are pass-through: the manifest records a feed the developer declares; creators forward it to the platform's own mechanism. The tool never generates keys, never notarizes, and therefore never claims trust it cannot prove. "Signed deltas" appears in capability notes as what a platform offers, not what this tool guarantees.
The trust boundary, plainly
A backend under app-anything can do anything a backend could do before — the contract makes violations detectable and reportable rather than preventing them. Sandboxing beyond the process tree (containers, seatbelt profiles) is a host policy choice the manifest may declare and a host may refuse; the probe's sandbox checks (AA301/AA302) tell you which side of the line a given app sits on. The honest claim is small: a conformant backend behaves the same under every host, and a non-conforming one is named.
Rendered from docs/explanation/security-model.md on main.