MediaLisp iOS security profile
Updated 28 November 2026. MediaLisp is published by Media Export Pty Ltd and uses the RustLisp engine. This is a statement of controls and limits, not a guarantee of crash resistance or a security certification.
Check the host revision
learning-3 reference, AI context and beginner tutor prompt (current): engine af8e0b5f6d97ab379337d3539fd8dbe0d6337fd8, with the same guest capability policy as learning-1 and learning-2. It adds a beginner tutor prompt to Ask an AI and publishes it with the reference; it does not change what guest Lisp may do.
learning-2 reference and AI context: engine af8e0b5f6d97ab379337d3539fd8dbe0d6337fd8, with the same guest capability policy as learning-1. It changes the app interface (text size, keyboard bar, iPhone portrait layout) and adds number formatting to the reference; it does not change what guest Lisp may do.
learning-1 reference and AI context: engine af8e0b5f6d97ab379337d3539fd8dbe0d6337fd8, with all guest host capabilities denied. Guest Lisp cannot read, write, delete, list or publish files, including Documents. No guest file-exercise mode is exposed. This is enforced by the host, not by prompt wording or a Lisp variable.
Earlier profiles at MediaLisp af8e0b5 and RustLisp af8e0b5 allowed file operations inside the app's Documents root. Their versioned descriptions remain available for those installed builds. The new policy requires installing the updated app; publishing this page does not change an older app.
Pasted and AI-generated Lisp is code
The programmable REPL supports reader-time execution: #. evaluates a form while reading, and #S can invoke a constructor. Binding *READ-EVAL* to NIL can disable these features for a read, but general guest Lisp can change its own bindings. Do not use the general REPL as a supposedly passive parser for untrusted data. Reader-time code remains subject to the host capability policy.
Cut Notes descriptions are a separate data boundary
The hardened Cut Notes compiler creates a fresh interpreter with no host capabilities, loads only its trusted compiler, then sets *READ-EVAL* to NIL before reading an edit description. #. and #S syntax, including nested attempts and attempts to re-enable reader evaluation, are rejected. The parsed datum is structurally validated by the trusted compiler, not evaluated as source. Input and resource bounds still apply. This change must also be installed in the Cut Notes app.
Availability and resource limits
Fuel, a 30-second cooperative deadline, approximate Lisp heap limits and bounded host input/output reduce risk. They do not establish a total process-memory bound or guaranteed termination time. Long native operations are not preemptible. Temporary allocations, symbol/metadata growth, repeated evaluations and callbacks need process-level tests. Safe Rust prevents particular memory-safety errors; it does not establish freedom from stack overflow, aborts, hangs or OS memory termination.
Transcript history is trimmed when it exceeds 128 KiB. File output is denied in the learning profile. String-output streams have a separate engine limit and contribute to approximate heap accounting; they are not bounded by the host transcript allowance.
Stop, reset and persistent effects
Stop requests cooperative cancellation. Cleanup is not guaranteed after a resource limit. Reset closes/cancels and joins the old worker before creating another; it does not forcibly kill threads or roll back completed effects. A long native operation can delay reset. Host-managed app documents remain separate from guest access; reset does not delete them.
Filesystem policy outside the learning profile
The legacy file-enabled bridge constructor remains available for explicitly selected host use and confinement tests. It is not used by the current MediaLisp app and supplies no disk quota. Root-path checks assume a host-controlled namespace and are not race-resistant filesystem confinement. Any future file-exercise mode needs a separate scratch directory, enforced write/open-file quotas, namespace control and a dedicated review. A periodic size check alone is not a hard quota.
Validation and remaining work
Regression coverage checks rejected reader-time evaluation, compiler recovery, guest file/host capability denial, cancellation, reset and ordinary-stack execution through the real bridge. Simulator evidence is not a substitute for physical-device measurements. Adversarial device testing of nested reader/macro/callback/printing paths, total memory, Stop latency and repeated-session growth remains pending. No iOS sandbox escape, arbitrary native execution or remote compromise path is known; these tests do not prove that none exists.
MediaLisp