Staged app-code mode

This special mode requires a source-enabled installation and explicit Custom app-code permission. Open /extensions → App code. The AI can prepare a bounded exact-source snapshot, inspect a paged diff, patch permitted application files and run isolated network-disabled regressions. Supervisor, permissions, runtime, dependencies and persistent storage modules are protected. This is not a host installer or an unrestricted coding shell.

The original running code and dirty authored source remain untouched. Only a human selects an exact passing tested version for the next launch. Selection never restarts the current app. If startup fails before native first-frame acknowledgement, the independent launcher restores previous/original code on the next launch. Independent rollback: python3 scripts_native/source_supervisor.py rollback. User projects, conversations and newer data are not reverted. Qualification is application regression, not engineering approval or a signed release. Packaged binary installations must use their existing release updater instead.

Qualification lifecycle

Secure app-code qualification currently requires a source-enabled Linux installation with bubblewrap. Unsupported platforms report unavailable; they never fall back to an unrestricted host process. Inspect changed-file diffs with Previous/Next page. A running version is immutable, remains inspectable and has its own Cancel isolated tests action. Launch errors, malformed qualification receipts, timeouts and cancellations cannot leave a version falsely tested. Qualification is not approval.

Rollback next launch is a human-only compare-and-swap action through the independent source supervisor. It checks the selected versions belong to this project/conversation, preserves projects and newer data, and does not restart the running application. The command-line independent rollback remains available even if staged app code cannot open.