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.
Load sentence-transformers on the existing cache miss and construct the
preloaded model off the shared background event loop. Start warm-up before
chat restoration inside extensible init_a0, preserving start-hook control
and sharing the loaded model with ordinary runtime requests.
Remove unused speech preload imports and dead warm-up functions. Seed APT
indexes only when absent, skipping the refresh on normal container boots.
Keep the existing Python tunnel service and its provider lifecycle.
Validation: 49 focused framework tests passed, including extension-hook
short-circuit behavior, concurrent embedding-cache reuse, APT cache states,
tunnel behavior and CSRF origins. Three cold Fable chat trials per version:
median submit-to-first-token 9.588s -> 4.234s;
local preparation 6.904s -> 1.197s;
HTTP readiness 42.637s -> 41.139s;
boot-to-first-token 52.093s -> 46.657s.
Provider timing varies; these are local repeated measurements. The live
baseline already omitted APT refresh, so it receives no timing credit.
Raise the runtime container soft nofile limit before supervisord starts so WebUI and managed services inherit a larger descriptor allowance.
Add an explicit compose nofile example, document the startup contract, and cover the limit raise and hard-limit cap with focused regression tests.