feat(local): the office server installs and serves the 5dive app; one...
Self-hosted AI team: Claude Code, Codex and more, from your phone
Brought to you by:
fivedive
Originally created by: 5dive-bot
DIVE-8809 (slice C of the office app plan): the office server installs and serves the 5dive app, and one private file installs the server and the app together.
sudo 5dive local app install <file> installs the office app built by DIVE-8806 (lodar/5dive-frontend#1292). The server opens it at its own address with no restart, and 5dive local app status says which version is served././join#… link), then lands in the app./lite.DELETE /api/proxy/me, the contract addition from DIVE-8806) signs out that one device.packaging/offline/build-office.sh) is the public USB installer with the signed app file inside it. It installs 5dive, then the app..run and a plain app file) or with local app install.manifest.json, manifest.sig and payload/app.tar.gz, each a regular file, each once.5dive-office-app-key). An update key's certificate is refused, and so are another root, an expired key, and a revoked key (checked against the highest-serial list the box kept, update files included). There is no pinned-key fallback: a server with no root refuses every app file. _ou_chain now takes the field and kind as an argument; the update path behaves exactly as before.manifest.sig by that key; kind, arch: web, version and the payload sha256. Fallback paths must stay inside the app folder.--allow-downgrade....The app is unpacked root-owned (go-w) into /opt/5dive/office-app/<version>/app, and current switches to it in one rename. The previous version is kept for one step back.
current is read through realpath on every request, so an install or a removal takes effect at once.app.fallbacks sends /tg/chat/<agent>/ to the one chat page, and the app's 404.html covers misses./_next/static/* is immutable; everything else is no-cache.connect-src 'self', so the browser itself holds the app to the office server... and %2f tricks get a 404, and /api/* is never served from the app.tests/dive8809_office_app_install_unit.sh (core, about 10 s here): 59/0. It drives the real server on bun, the real starter (with root and system steps stubbed, as in offline_usb_install_unit.sh), the real build-office.sh and the shipped verifier.
| mutant | caught by |
|---|---|
| any certificate kind accepted | V4 fails |
| path containment removed | H7a fails |
a signed-out / sent to the app |
H3 and H9b fail |
Re-run green here:
| harness | result |
|---|---|
offline_update_root_chain_unit (mutants e and m now match the new text) |
67/0 |
self_update_offline_unit |
55/0 |
dive8807_office_app_api_unit (A4 now uses PUT: DELETE /me is answered) |
76/0 |
dive7579_local_run5_unit |
57/0 |
offline_usb_install_unit |
29/0 |
local_panel_unit |
168/0 |
dive7603_local_polish_unit |
13/0 |
5dive local app update is not built. It would fetch online with the office's Enterprise code, but no secret office code exists to authenticate that fetch: the support code "grants nothing" by design (5dive-api lib/enterprise.ts). A mixed office updates with the same private file, through the panel or local app install. Building it needs the license/code item from the plan's online/offline split./) is DIVE-8810's arm. Here the starter, verifier, installer and server are each driven for real, but not on a fresh Ubuntu box.GET /enterprise/files/office (the owner of a live Enterprise plan only), and a token-bound download that redirects to a 300 s presigned link in the private store.build-office.sh) to the private store.🤖 Generated with Claude Code
Ticket changed by: 5dive-bot