Commit Graph
9 Commits
Author SHA1 Message Date
Jan Tomášek ab330a8ae8 Reduce container startup imports and precompile Python
Keep preparation independent of settings and model imports while preserving
root-password persistence and credential masking. Compile checked-hash
bytecode during image builds and load MCP/A2A adapters on protocol requests.

Reuse the core ASGI builder for desktop routes to preserve socket lifecycle
and middleware. Add startup, access-check, and build regression coverage.

Validation: three matched Docker boots per version reduced median HTTP
readiness from 26.03s to 10.05s. 331 tests and 22 subtests passed, with one
skip and two confirmed baseline failures excluded. Browser, offline
embeddings, and bytecode invalidation checks passed.
2026-11-18 21:18:18 +01:00
Jan Tomášek 2c8b62a5f3 Install Docker application directly in /a0
Bake one filtered Git checkout into /a0 and recommend persisting /a0/usr.
Cache application dependencies by their manifests, consolidate base APT
installation, and remove seed copying and duplicate installation scripts.
Refresh APT indexes silently in the background once per container.

Keep browser profiles under usr and migrate legacy profiles through a
complete staged copy, preserving existing worker mount validation. Document
mount migration and source-update behavior across container replacement.
Align browser UI assertions with the incoming shared-canvas change.

Validation: full-suite coverage of 3,405 pytest cases, with focused reruns
for upstream UI integration; six real PRoot checks and 18 JavaScript cases.
Built base, local and branch images; verified package parity, offline ONNX,
OCI pull/unpack, PTY Python/Node, updater fetch/rollback, browser input/audio/
screenshots/downloads and user-data/sandbox/browser persistence on recreation.
Checked default Docker seccomp without added capabilities. ARM64 and Ubuntu
AppArmor hosts were not tested.
2026-11-16 19:47:59 +00:00
Jan Tomášek 540ec7d854 Replace gVisor with PRoot and shared copy-on-write sandbox files
Run guests under separate Linux UIDs while retaining PRoot fake-root for
installers. Share immutable image files through hardlinks and copy each file
before mutation. Preserve existing disk roots during migration, maintain worker
bindings and lifecycle behavior, and remove gVisor sidecars and the Compose
seccomp override.

Build the pinned runtime in a disposable stage, bootstrap source updates, and
keep Unix socket scratch paths short. Preserve worker request ACLs and translate
fake-root Unix credentials for browser audio.

Validation: 3,398 unit tests and six real runtime checks passed. Verified default
Docker seccomp, missing-bundle image build, source bootstrap, persistent PTY,
worker RPC, browser render/input/audio/downloads/profile restart, and WebUI HTTP
startup. Fresh base is about 71 MiB smaller; a clean default sandbox uses about
9.7 MiB private disk. Ubuntu AppArmor and ARM64 were not available to test.
2026-11-16 18:42:18 +00:00
Jan Tomášek 188cff2073 Move optional runtimes into persistent gVisor plugin sandboxes
Move tunnel, browser, document, speech and integration runtimes into plugin-owned
sandboxes with lazy dependencies and instance-scoped lifecycle management.
Reuse Tuxee display assets and the sandbox image's Python/Node runtimes, enable
automatic Desktop login, and show elapsed time for each browser launch.

Slim the outer image, use offline ONNX embeddings, and calculate sandbox storage
only on demand. Include regression coverage and updated runtime documentation.
Exclude local handoff notes and temporary verification artifacts from publication.
2026-11-08 21:43:22 +01:00
Jan Tomášek e29bf35844 test: align Docker contract with Depfix candidate 2026-11-08 21:43:00 +01:00
Jan Tomášek 3aba1e0e1e fix: align Supervisor runtime and select grouped-provider repair 2026-11-08 21:42:56 +01:00
Jan Tomášek 23f7248365 Select repaired Depfix and record prototype activation checkpoint 2026-11-08 21:42:29 +01:00
Jan Tomášek 0937fd9052 Fix sandbox sidecars and reconcile Debian prototype builds
Retain current gVisor process helpers, avoid a forky cross-upgrade on trixie, and align CPU bootstrap dependencies. Document the separately scoped Depfix blocker; application build and UI startup remain pending.
2026-11-08 21:42:27 +01:00
Jan Tomášek dadcbfa4d9 Reconstruct preserved sandbox WIP from sanitized source snapshot
Reconstructed against verified original base 93d1131ce1. Original local commits and index metadata were not present in the transfer.
2026-11-08 21:42:13 +01:00