@ours.network/install 1.2.1-nightly.6 → 1.2.1-nightly.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GATEWAY_SETUP.md +178 -0
- package/README.md +573 -9
- package/ROOTLESS_PODMAN_VALIDATION.md +210 -0
- package/assets/Dockerfile +15 -12
- package/assets/Dockerfile.gateway +5 -0
- package/assets/docker-compose.yaml +8 -1
- package/assets/fleet-settings.example.json +48 -0
- package/assets/gateway-entrypoint.sh +37 -0
- package/assets/release-lock.json +1222 -4517
- package/assets/release.json +37 -19
- package/assets/scripts/build/build-common.mjs +10 -1
- package/assets/scripts/build/build-sdk.mjs +6 -1
- package/assets/scripts/maintenance/build-context.mjs +1 -1
- package/assets/scripts/maintenance/daemon-owner.mjs +15 -0
- package/assets/scripts/maintenance/docker-layout-conversion.mjs +22 -7
- package/assets/scripts/maintenance/recover-notifications.mjs +36 -0
- package/assets/scripts/maintenance/release-graph.mjs +18 -1
- package/assets/scripts/maintenance/state-operation.mjs +76 -8
- package/assets/scripts/runtime/README.md +7 -0
- package/assets/scripts/runtime/client-setup.mjs +105 -20
- package/assets/scripts/runtime/daemon-client-prefix.mjs +115 -0
- package/assets/scripts/runtime/dependency-ready.mjs +13 -0
- package/assets/scripts/runtime/diagnostics.mjs +72 -0
- package/assets/scripts/runtime/entrypoint.sh +5 -1
- package/assets/scripts/runtime/health-messenger.mjs +7 -6
- package/assets/scripts/runtime/healthcheck.mjs +49 -15
- package/assets/scripts/runtime/notifications-gateway.mjs +90 -0
- package/assets/scripts/runtime/recover.mjs +202 -0
- package/assets/scripts/runtime/start-cowork.sh +5 -0
- package/assets/scripts/runtime/start-messenger.sh +29 -4
- package/assets/scripts/runtime/start-telegram.sh +5 -0
- package/assets/scripts/runtime/supervise.mjs +35 -0
- package/assets/sources.json +54 -28
- package/install.mjs +7 -2
- package/lib/boot-readiness.mjs +96 -0
- package/lib/build-transition.mjs +16 -0
- package/lib/client-cli.mjs +127 -0
- package/lib/container-engine.mjs +127 -0
- package/lib/diagnostics.mjs +1 -0
- package/lib/docker-conversion-runtime.mjs +7 -4
- package/lib/docker-layout-installation.mjs +2 -1
- package/lib/docker-recovery.mjs +60 -0
- package/lib/docker-runtime-repair.mjs +49 -14
- package/lib/effects.mjs +482 -140
- package/lib/gateway-transition.mjs +87 -0
- package/lib/gateway.mjs +227 -0
- package/lib/legacy-migration.mjs +13 -2
- package/lib/orchestrate-uninstall.mjs +23 -6
- package/lib/orchestrate.mjs +335 -44
- package/lib/ownership.mjs +63 -0
- package/lib/plan.mjs +37 -11
- package/lib/podman-preflight.mjs +40 -0
- package/lib/product.mjs +69 -0
- package/lib/removal-plan.mjs +437 -0
- package/lib/removal.mjs +749 -0
- package/lib/server-onboarding.mjs +182 -16
- package/lib/server-ports.mjs +17 -0
- package/lib/setup-options.mjs +119 -29
- package/lib/setup.mjs +93 -22
- package/lib/target.mjs +24 -8
- package/lib/uninstall.mjs +2 -2
- package/lib/usage.mjs +35 -9
- package/lib/welcome.mjs +219 -0
- package/lib/workspace-setup.mjs +154 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -1,3 +1,116 @@
|
|
|
1
|
+
## Start here: choose what you want
|
|
2
|
+
|
|
3
|
+
Run `ours-install` with no options. It asks what you would like to do, in terms of goals:
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
What would you like to do?
|
|
7
|
+
> (●) Add collaboration tools to my agent apps (Claude Code, Codex or another app)
|
|
8
|
+
( ) Install the complete Ours workspace
|
|
9
|
+
( ) Connect my agent apps to an Ours workspace that runs on another computer
|
|
10
|
+
( ) Other setups (server only, custom ports or packages)
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Your existing agent configuration, skills, plugins and custom settings stay as they are. Ours adds its own tools next to them; it does not replace or reconfigure your setup.
|
|
14
|
+
|
|
15
|
+
**Collaboration tools** (`--plugin-only`) give the agent apps you already use their own secure Ours identity, so they can message other agents and people, share files and be woken when mail arrives. They install:
|
|
16
|
+
|
|
17
|
+
- one container: the Ours daemon, published only on `127.0.0.1` (port 3050 by default); nothing else runs;
|
|
18
|
+
- the Ours plugin in each selected app that was found on this computer: Claude Code and/or Codex;
|
|
19
|
+
- the Ours command-line tools and the saved connection in `~/.ours-client`.
|
|
20
|
+
|
|
21
|
+
No Cowork, Messenger, Telegram, Fleet or gateway containers are installed. Clients reach the daemon through a small prefix inside the daemon container that serves only `/daemon/…`, passes requests through unchanged (the daemon still checks every credential) and refuses every other path.
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
ours-install --plugin-only --state-dir ~/.ours-install --identity-name "Your Name" --integrations claude-code,codex
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**The complete workspace** adds rooms per task where you invite other agents and people, task and progress tracking, access from your phone through the Ours App, persistent agents that keep working (Fleet), and orchestration of agents from several vendors.
|
|
28
|
+
|
|
29
|
+
**Another agent app.** Choose "Another agent app" in the list. At the end the installer prints exact instructions for the version it installed: the prepared plugin folder, the MCP server command (`node <folder>/bin/proxy.mjs`, stdio), the skill file, and the npm package `@ours.network/claude-code@<version>`. The app must be able to run a local stdio MCP server and must set `CLAUDE_CODE_SESSION_ID` to a value unique to each agent session in that server's environment; without it the Ours tools refuse to act. Apps that cannot run MCP servers cannot use Ours this way. Do not use the public GitHub marketplace `adapt-toolkit/ours-claude-marketplace` with this release: it currently selects an older, incompatible plugin.
|
|
30
|
+
|
|
31
|
+
### Updating
|
|
32
|
+
|
|
33
|
+
When Ours is already installed, `ours-install` shows the installation and offers:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
◆ Ours is already set up on this computer
|
|
37
|
+
• The complete Ours workspace — folder /home/me/.ours-install, running in Docker
|
|
38
|
+
What would you like to do?
|
|
39
|
+
> (●) Update Ours (recommended)
|
|
40
|
+
( ) Repair: run setup again with the same choices
|
|
41
|
+
( ) Remove Ours from this computer
|
|
42
|
+
( ) Cancel
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
An update keeps the installation's product (collaboration tools or workspace), runtime, folder, identities, data, connected apps and their settings. It never adds workspace parts to a collaboration-tools installation; to switch, remove it first. An unfinished update or setup is offered as "Finish the earlier update or setup". Running the same setup again is safe: it keeps existing identities, and if the server's access credentials were replaced (`ours-install server access-replace`), it issues a fresh client credential.
|
|
46
|
+
|
|
47
|
+
### Removing Ours completely
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
ours-install remove # everything Ours created on this computer
|
|
51
|
+
ours-install remove --dry-run # only show the list
|
|
52
|
+
ours-install remove --state-dir ~/.ours-install # one installation
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The command lists everything it found, grouped (services and containers; identities, keys, messages and settings; connections in your agent apps; persistent agents; programs and downloads; earlier installations), and what it keeps and why. Then it asks you to type `remove ours`. It runs only in a terminal; identities and their private keys exist nowhere else, so they are never deleted without a person confirming. Make a backup first if you may need them: `ours-install server backup server <label> --state-dir <folder>`.
|
|
56
|
+
|
|
57
|
+
What it removes, and how it proves each item is Ours:
|
|
58
|
+
|
|
59
|
+
| Item | Proof required |
|
|
60
|
+
| --- | --- |
|
|
61
|
+
| Containers | Compose project of the installation **and** a Compose project folder inside the installation folder (containers inherit image labels, so a label alone is not proof), or the installer's own helper names on its own image |
|
|
62
|
+
| Images | the image ID recorded when this installer built it, or the image an owned container was created from; a name alone is never proof; only the name is removed (`docker image rm <tag>`, never by ID or with force) |
|
|
63
|
+
| Volumes, network | the installation's Compose project label |
|
|
64
|
+
| Build cache | only the record whose description is the installer's own npm cache mount (`id=/ours-dist-2-npm`), pruned by its record ID (`docker buildx prune --filter id=…`); kept while another Ours installation uses the engine |
|
|
65
|
+
| Installation and connection folders | their own record (`installation.json` / `profile.json`) still names the installation; the folder is renamed aside, then deleted |
|
|
66
|
+
| Downloaded programs | the owner record of each download folder; a damaged record keeps the folder |
|
|
67
|
+
| Claude Code / Codex | the Ours plugin and plugin source (through their own CLIs), their Ours entries in `settings.json` / `config.toml`, and their cached copy of the Ours plugin, only when the source points into Ours downloads |
|
|
68
|
+
| Ours tool records `~/.ours-mcp` | only the rows and session folders of the removed installation |
|
|
69
|
+
| Persistent agents (Fleet) | services that reference this Ours connection, Fleet configuration and state set up by this client |
|
|
70
|
+
| Earlier installations | old daemon and connector services, verified stopped first; marked plugin sections and old skills |
|
|
71
|
+
|
|
72
|
+
It keeps Docker, Node.js, npm, Claude Code and Codex, your other settings, skills and plugins, shared images such as `node:24`, other build cache records, containers and images it cannot prove, and the temporary session guards in `/tmp/ours-<uid>` that every Ours tool session of your user shares.
|
|
73
|
+
|
|
74
|
+
If something cannot be removed, the summary says exactly what and why, the command exits with status 1 and keeps a small retry record (`~/.ours-removal.json`, identities only). Fix the reason and run `ours-install remove` again; it continues where it stopped:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
◆ Removal summary
|
|
78
|
+
! Some Ours items could not be removed yet:
|
|
79
|
+
! - Container images of ours-235c4591528dc8a6 — ours-235c4591528dc8a6:runtime is still used by container user-made, which Ours did not create; remove that container if you no longer need it
|
|
80
|
+
• Fix the reason shown, then run ours-install remove again; it continues from where it stopped.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Running it when nothing is left changes nothing and says so.
|
|
84
|
+
|
|
85
|
+
## Install first, connect the App afterwards
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
ours-install --username alex --name Alex --surname Taylor --disable-fleet-agents-setup
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
This permanent command contains no tunnel credentials or enrollment expiry. On a terminal it asks for the remaining installation choices, including Docker, Podman or native packages. The username is local and has no global uniqueness check. A fresh root is named `<username>@<hostname>`; the optional `--hostname` defaults to the machine name. Messenger stores Name and Surname through its supported profile API. Retried setup retains root identities and existing Messenger profiles.
|
|
92
|
+
|
|
93
|
+
`--disable-fleet-agents-setup` installs the Fleet CLI and saves the choice without opening its agent/model wizard or rewriting existing Fleet configuration. Configure agents in the App after device linking. Complete presets still work unattended; partial presets require a terminal and cannot use `OURS_ASSUME_YES`.
|
|
94
|
+
|
|
95
|
+
### Fleet task commands from a harness command sandbox
|
|
96
|
+
|
|
97
|
+
After Fleet configuration, and again on update, the installer asks the exact Fleet it installed to run `ours-fleet managed-cli setup`. Fleet owns that policy; the installer writes no Codex rule or Claude setting itself, and the step starts no agent session and no model. It runs only when the installed Fleet declares the `managed-cli.setup-v1` capability; the Fleet release this installer pins does. With an earlier Fleet (a retained or development installation) it is skipped (and `--fleet-task-workflow` reports that it was not applied), and it never fails an installation: an unsupported combination is printed with Fleet's reason and left exactly as sandboxed as before.
|
|
98
|
+
|
|
99
|
+
Nothing is prepared unless an Agent declares `managed_cli: [task-workflow]`. To opt agents in from the installer, name them:
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
ours-install client --config /private/profile.json --integrations codex,fleet \
|
|
103
|
+
--fleet-settings /private/fleet-settings.json --fleet-task-workflow FleetCoordinator
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
`--fleet-task-workflow` takes a comma-separated list of Fleet agent names, requires the Fleet integration and conflicts with `--disable-fleet-agents-setup`. It adds that one key to each named Agent and changes no permission. The prepared scope is the packaged Coordinator task workflow (`task create|start|finish|block|unblock|review|list|show`, `room show|members`, template/plan/help inspection) for one pinned Fleet configuration; `task start` and `task finish` provision and retire rooms and agents, which is real authority, and the installer prints that scope. The result is generated configuration only. It is not evidence that a command reached a supervisor: `ours-fleet managed-cli status` and `ours-fleet doctor` report what running agents actually observed. Fleet's `docs/validation/managed-cli-permissions.md` lists the qualified harnesses and platforms.
|
|
107
|
+
|
|
108
|
+
The separate `ours-fleet setup-tunnel <encoded-v2-grant>` step is supported by the pinned Fleet release. Its private App payload remains scoped, signed-root-bound and expiring. Fleet prints its QR and private single-use connection code immediately after successful setup; scan or paste it into the App. `ours-fleet link-device` remains available for additional devices or expired codes. Do not put the expiring tunnel payload in the permanent installer command.
|
|
109
|
+
|
|
110
|
+
Native packages currently provide server-only installation; full Fleet/App onboarding requires the supported gateway (Docker or Podman). The installer refuses unsupported native full-stack setup before changing anything. This flow does not add a native gateway.
|
|
111
|
+
|
|
112
|
+
See [one-connection setup, localhost:4050 and systemd migration](GATEWAY_SETUP.md) for the gateway-only client workflow.
|
|
113
|
+
|
|
1
114
|
# @ours.network/install — one installer for the whole stack
|
|
2
115
|
|
|
3
116
|
Requires Node.js 22+ and npm. Install the selected release channel:
|
|
@@ -10,8 +123,8 @@ ours-install
|
|
|
10
123
|
With no arguments, the wizard explains each step and offers keyboard choices.
|
|
11
124
|
Use arrow keys and Enter to choose, and Space to select integrations. Recommended
|
|
12
125
|
settings keep advanced ports and package overrides out of the usual flow. Text
|
|
13
|
-
input is used for your name and explicitly customized paths or ports.
|
|
14
|
-
|
|
126
|
+
input is used for your name and explicitly customized paths or ports. Docker is recommended for the integrated full-stack gateway on every platform;
|
|
127
|
+
native packages remain available for server-only setup. On Windows run the
|
|
15
128
|
installer inside WSL with Docker Desktop integration. This recommendation concerns
|
|
16
129
|
packaging and isolation, not a guarantee that emulated x64 is faster on ARM Macs.
|
|
17
130
|
|
|
@@ -45,7 +158,7 @@ installers. `--integrations none` explicitly skips client integrations. Use
|
|
|
45
158
|
Fleet's own wizard is available only in interactive setup; CLI Fleet setup requires
|
|
46
159
|
its JSON settings file. Fleet stays stopped until you review and activate it.
|
|
47
160
|
|
|
48
|
-
The server installs the daemon/SDK/CLI,
|
|
161
|
+
The server installs the daemon/SDK/CLI, Telegram, Cowork and Messenger.
|
|
49
162
|
It starts the daemon, preserves the existing Human identity (or creates it once),
|
|
50
163
|
then starts its applications. Full-stack setup issues a separate local client
|
|
51
164
|
credential and configures the selected Codex, Claude Code and Fleet integrations.
|
|
@@ -56,6 +169,29 @@ The installer embeds exact component versions and SHA-512 values for its release
|
|
|
56
169
|
An existing server's retained release selects matching local clients. Secrets are
|
|
57
170
|
read from protected files, and client setup never copies the daemon API master.
|
|
58
171
|
|
|
172
|
+
## Runtime and client packages
|
|
173
|
+
|
|
174
|
+
Server selections include `@ours.network/daemon`, whose `ours-daemon` binary owns
|
|
175
|
+
runtime startup and service administration. Docker runs `ours-daemon serve`;
|
|
176
|
+
native installations install its systemd/launchd service. Existing retained
|
|
177
|
+
installations can still stop and restore their older CLI-owned runtime.
|
|
178
|
+
|
|
179
|
+
Client selections contain the thin SDK and CLI, plus MCP when a harness needs
|
|
180
|
+
it. They exclude the daemon and its native database/ADAPT dependencies. Fleet
|
|
181
|
+
runs beside the harnesses on the client machine and calls the daemon HTTP API.
|
|
182
|
+
Client commands report an unavailable server and never start one automatically.
|
|
183
|
+
|
|
184
|
+
The checked-in source policy and packed installer retain the existing server
|
|
185
|
+
release set (SDK `4.1.1-nightly.1`, CLI `3.1.1-nightly.1`, daemon
|
|
186
|
+
`4.1.1-nightly.1`). The isolated host CLI uses published SDK
|
|
187
|
+
`4.1.1-nightly.1` and CLI `3.1.1-nightly.1`, including the shared gateway
|
|
188
|
+
profile resolver. `releases/nightly.json` binds both selections to verified
|
|
189
|
+
SHA512 integrities. Fleet and the MCP harness packages are selected on the
|
|
190
|
+
same SDK/CLI graph; installer publication and rollout are separate steps, see
|
|
191
|
+
[GATEWAY_SETUP.md](GATEWAY_SETUP.md). Mixed or unselected nested ours
|
|
192
|
+
versions remain rejected within each selected graph. An explicit `--sources`
|
|
193
|
+
override remains available for development.
|
|
194
|
+
|
|
59
195
|
## Migrate an existing global installation
|
|
60
196
|
|
|
61
197
|
The wizard detects the old `~/.ours/config.json` and offers to keep its identities,
|
|
@@ -137,8 +273,8 @@ native package acquisition, and reports completion only after service readiness.
|
|
|
137
273
|
If a Docker service fails, the error includes its last 50 log lines (bounded in
|
|
138
274
|
size) and a command to inspect the logs. A failed daemon prevents consumers from
|
|
139
275
|
starting; a failed consumer does not prevent checks of unrelated consumers.
|
|
140
|
-
Server runtime installation selects SDK/CLI,
|
|
141
|
-
Messenger.
|
|
276
|
+
Server runtime installation selects SDK/CLI, Telegram, Cowork and
|
|
277
|
+
Messenger. MCP runs locally with the Codex and Claude Code plugins and calls the daemon API through the SDK.
|
|
142
278
|
The daemon starts first; consumers are checked through their owning readiness
|
|
143
279
|
interfaces. Messenger uses its existing identity prerequisite and never creates an
|
|
144
280
|
identity. Its failure is reported after attempting unrelated consumers. Package
|
|
@@ -195,9 +331,9 @@ relative to the profile file. Select any nonempty subset of integrations; Fleet
|
|
|
195
331
|
When Fleet settings are supplied, the installer passes them to Fleet's strict
|
|
196
332
|
noninteractive `init --settings`; otherwise it opens Fleet's existing wizard.
|
|
197
333
|
Fleet validates and publishes its own configuration. Client setup verifies the selected
|
|
198
|
-
daemon
|
|
334
|
+
authenticated daemon API before registering native integrations. It acquires
|
|
199
335
|
only selected integration packages and their actual client dependencies. It does
|
|
200
|
-
not
|
|
336
|
+
not administer daemon state or invoke Docker. Codex and Claude Code include the local stdio MCP server as a dependency. Exact npm client
|
|
201
337
|
installation needs no Python; Git source builds use the supplied source recipes
|
|
202
338
|
and their build prerequisites. Normal native clients need neither Docker nor
|
|
203
339
|
server maintenance tools.
|
|
@@ -213,7 +349,8 @@ an existing override and does not edit shell configuration or running sessions.
|
|
|
213
349
|
Repeat with `ours-install client install` to reuse imported inputs and installed
|
|
214
350
|
package records. Existing settings and Fleet-generated files are preserved. A
|
|
215
351
|
prepared profile for the same endpoint/instance may supply a valid replacement
|
|
216
|
-
issued token;
|
|
352
|
+
issued token; a different server instance is refused without changing the default. A verified
|
|
353
|
+
new gateway address for the same instance updates the shared profile for new clients. Invalid
|
|
217
354
|
server access is rejected before import. An acquisition or component failure
|
|
218
355
|
reports incomplete setup and keeps the saved configuration for retry. Selected
|
|
219
356
|
native integrations whose executable is unavailable are incomplete, not installed.
|
|
@@ -224,7 +361,7 @@ Interactive no-argument installation asks for package/Docker server mode, a
|
|
|
224
361
|
prepared client profile, or `client`. Client setup offers the saved server when
|
|
225
362
|
present. On first setup it asks for the server HTTP endpoint, issued-token file,
|
|
226
363
|
source manifest and integration choices, obtains the instance UUID from
|
|
227
|
-
|
|
364
|
+
`/.well-known/ours` at the gateway, displays it, then checks authenticated daemon API access before
|
|
228
365
|
saving anything. No UUID must be entered manually. The 2.0 HTTP flow assumes the
|
|
229
366
|
approved trusted same-host deployment; selection metadata is not cryptographic
|
|
230
367
|
server authentication. Fleet collects missing setup answers through its own wizard.
|
|
@@ -262,6 +399,24 @@ build. `server status` reports the pending phase; `server stop` remains availabl
|
|
|
262
399
|
Other mutations refuse until activation completes. There is no automatic rollback
|
|
263
400
|
of application state after publication.
|
|
264
401
|
|
|
402
|
+
For Docker updates interrupted by the Notifications provenance omission in older
|
|
403
|
+
installers, use an installer containing the recovery helper and resume with
|
|
404
|
+
`ours-install server update --mode docker --state-dir /path/to/installation --compatible`.
|
|
405
|
+
Retain any original `--sources` input; do not substitute a newer candidate.
|
|
406
|
+
This uses the compatibility attestation saved in the pending update. Passing the
|
|
407
|
+
flag again cannot authorize a transition that did not originally record it.
|
|
408
|
+
The helper requires the four core markers to match the retained candidate and
|
|
409
|
+
Notifications to match its retained previous build, including every recorded
|
|
410
|
+
context, lockfile and dependency-tree byte. It preserves a Notifications-only
|
|
411
|
+
backup with the original provenance, repairs that marker atomically with the
|
|
412
|
+
complete state tree, and resumes preparation and the original running subset.
|
|
413
|
+
It also recognizes a completed state exchange whose journal still says `prepared`;
|
|
414
|
+
untouched source state continues through normal migration. Missing retained
|
|
415
|
+
evidence, arbitrary mixed generations, unsafe files and unclean service exits
|
|
416
|
+
remain errors. Keep the installation, candidate and backups intact on refusal.
|
|
417
|
+
An `all update` requires a running daemon for client verification, so complete
|
|
418
|
+
this server recovery first, then repeat `all update` to refresh clients.
|
|
419
|
+
|
|
265
420
|
|
|
266
421
|
New builds retain `build-context.json` alongside their original lockfile and dependency
|
|
267
422
|
tree. The context binds the original record bytes to verified vendor tar names,
|
|
@@ -295,3 +450,412 @@ deletion is required; repeat the original setup with the updated installer.
|
|
|
295
450
|
The repair runs isolated verification containers without state mounts or network
|
|
296
451
|
access. Other image verification failures stop setup without replacing the image.
|
|
297
452
|
An interrupted repair can be retried, including after the image tag was replaced.
|
|
453
|
+
|
|
454
|
+
### Remote clients over HTTPS
|
|
455
|
+
|
|
456
|
+
A client may select an `https://` origin backed by a TLS reverse proxy. Keep the
|
|
457
|
+
daemon listener private and configure the proxy separately with a certificate
|
|
458
|
+
trusted by the client and matching the hostname. Node uses its normal trust
|
|
459
|
+
store; a private CA may be supplied through `NODE_EXTRA_CA_CERTS` before starting
|
|
460
|
+
the client. Certificate verification must remain enabled.
|
|
461
|
+
|
|
462
|
+
The existing issued client credential works over either transport; changing the
|
|
463
|
+
URL scheme does not require a new credential. Keep the server's master on the
|
|
464
|
+
server. Forward `x-ours-api-token` and the `x-ours-*` session headers unchanged,
|
|
465
|
+
and support streamed request/response bodies and long polling. Client requests
|
|
466
|
+
refuse redirects, including HTTPS-to-HTTP redirects: configure the final HTTPS
|
|
467
|
+
origin directly. UUID/capability checks still precede credential-bearing calls.
|
|
468
|
+
|
|
469
|
+
This adds client HTTPS support, not an HTTPS daemon listener, certificate
|
|
470
|
+
provisioning or automatic reverse-proxy configuration. Existing local HTTP and
|
|
471
|
+
SSH-tunnel profiles continue to work.
|
|
472
|
+
|
|
473
|
+
## One-URL Docker gateway
|
|
474
|
+
|
|
475
|
+
New Docker installations use one loopback-published nginx port (default 3050).
|
|
476
|
+
Clients import one `serverUrl`; their daemon endpoint is `<serverUrl>/daemon` and
|
|
477
|
+
Fleet derives `<serverUrl>/cowork/management/rpc`. Cowork, Messenger and Telegram
|
|
478
|
+
backend ports are internal only. Existing installations retain their prior layout
|
|
479
|
+
on ordinary install/update. Select compatible releases before explicitly migrating:
|
|
480
|
+
|
|
481
|
+
```sh
|
|
482
|
+
ours-install server gateway-enable --state-dir /private/ours
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
Migration checks the installed Cowork, Messenger and Telegram capabilities before
|
|
486
|
+
stopping services, verifies authenticated daemon and read-only Cowork management,
|
|
487
|
+
and preserves the existing credential and client integration settings. Failure
|
|
488
|
+
restores routing, client profile and prior service selection. An interrupted
|
|
489
|
+
migration blocks other mutations: repeat `gateway-enable` to finish rollback,
|
|
490
|
+
then run it again to attempt migration. The private `gateway-transition.json`
|
|
491
|
+
retains recovery state until rollback or migration completes. Back up the whole
|
|
492
|
+
installation using the normal server backup procedure before maintenance.
|
|
493
|
+
|
|
494
|
+
For a nested external URL, pass `--server-url https://ours.example/base` during
|
|
495
|
+
Docker install or `gateway-enable`. This sets browser origin and path configuration;
|
|
496
|
+
it does **not** publish a public listener, provide TLS, or install external
|
|
497
|
+
credentials. Configure the authenticated entry first and retain the `/base` path
|
|
498
|
+
when proxying. A compatible release must contain these capabilities:
|
|
499
|
+
`cowork.http-management-v1`, `messenger.gateway-prefix-v1`, and
|
|
500
|
+
`telegram.gateway-listener-v1`. Older releases are rejected without enabling the
|
|
501
|
+
new listener; no package version is silently substituted.
|
|
502
|
+
|
|
503
|
+
### Notifications
|
|
504
|
+
|
|
505
|
+
When the selected release includes `@ours.network/notifications`, gateway
|
|
506
|
+
installations run it inside the Messenger container, under one supervisor with
|
|
507
|
+
Messenger: a signal stops both, and either one exiting stops the container so
|
|
508
|
+
its normal restart recovers both. It publishes no host port. The gateway routes
|
|
509
|
+
`<serverUrl>/notifications/` to it after the same daemon credential check as
|
|
510
|
+
Telegram, and the service's adapter checks that credential again before acting
|
|
511
|
+
as the installation owner. Browser cookies, origins and fetch metadata are
|
|
512
|
+
removed. Messenger produces message notifications over loopback.
|
|
513
|
+
|
|
514
|
+
`prepare` creates the private configuration once in
|
|
515
|
+
`storage/state/notifications/config.json`: the owner token, separate Fleet and
|
|
516
|
+
Messenger producer tokens, and VAPID keys. Later runs only validate it; rotating
|
|
517
|
+
the owner token or VAPID keys would orphan every browser subscription, so a
|
|
518
|
+
differing configuration is refused rather than rewritten. Back it up with the
|
|
519
|
+
rest of the server state. A local client setup binds the Fleet producer token
|
|
520
|
+
to this server in `~/.ours-client/notifications-producer.json`; Fleet then sends
|
|
521
|
+
agent completions through `<serverUrl>/notifications/`. Remote clients and
|
|
522
|
+
native installations do not produce notifications. The gateway discovery
|
|
523
|
+
document is unchanged, so existing clients keep accepting the server. A
|
|
524
|
+
retained source policy without the package keeps working without notifications.
|
|
525
|
+
|
|
526
|
+
An existing complete installation gains them with its normal update, which
|
|
527
|
+
prepares the credentials after activating the new runtime and hands the Fleet
|
|
528
|
+
producer credential to the local client, then a web-only Fleet restart (agents
|
|
529
|
+
keep running):
|
|
530
|
+
|
|
531
|
+
```sh
|
|
532
|
+
ours-install all update --mode docker --state-dir /private/ours --identity-name "Your Name" --integrations codex,fleet --fleet-settings /private/fleet.json --compatible
|
|
533
|
+
ours-fleet web restart
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
### Authenticated external entry
|
|
537
|
+
|
|
538
|
+
Messenger has no application authentication. Loopback access trusts local users;
|
|
539
|
+
never forward this gateway publicly without authentication. All applications on
|
|
540
|
+
this origin share one trust boundary: scripts or XSS in any application can make
|
|
541
|
+
requests to the others. Cowork's entered server credential grants operator room
|
|
542
|
+
administration and stays in memory until reload. Path prefixes do not isolate
|
|
543
|
+
applications. Only expose this origin to trusted operators.
|
|
544
|
+
|
|
545
|
+
A supported external entry is nginx TLS plus HTTP Basic authentication for browser
|
|
546
|
+
paths, with machine paths left to their existing server-token checks. Create the
|
|
547
|
+
password file using an interactive `htpasswd` prompt and make it readable by the
|
|
548
|
+
proxy worker. Use real certificates and the matching `--server-url`. The inner
|
|
549
|
+
gateway remains bound to `127.0.0.1:3050`; neither backend ports nor the inner
|
|
550
|
+
listener should be externally forwarded. Example for `/base`:
|
|
551
|
+
|
|
552
|
+
```nginx
|
|
553
|
+
# In http {}:
|
|
554
|
+
map $http_upgrade $ours_connection { default upgrade; '' close; }
|
|
555
|
+
server {
|
|
556
|
+
listen 443 ssl;
|
|
557
|
+
server_name ours.example;
|
|
558
|
+
ssl_certificate /private/tls/fullchain.pem;
|
|
559
|
+
ssl_certificate_key /private/tls/key.pem;
|
|
560
|
+
auth_basic "ours operators";
|
|
561
|
+
auth_basic_user_file /private/ours-users;
|
|
562
|
+
access_log off;
|
|
563
|
+
proxy_set_header Host $http_host;
|
|
564
|
+
proxy_set_header Upgrade $http_upgrade;
|
|
565
|
+
proxy_set_header Connection $ours_connection;
|
|
566
|
+
proxy_http_version 1.1;
|
|
567
|
+
proxy_read_timeout 300s;
|
|
568
|
+
proxy_buffering off;
|
|
569
|
+
location = /base/.well-known/ours { auth_basic off; proxy_pass http://127.0.0.1:3050; }
|
|
570
|
+
location /base/daemon/ { auth_basic off; proxy_pass http://127.0.0.1:3050; }
|
|
571
|
+
location = /base/cowork/management/rpc { auth_basic off; proxy_pass http://127.0.0.1:3050; }
|
|
572
|
+
location /base/tg-connector/ { auth_basic off; proxy_pass http://127.0.0.1:3050; }
|
|
573
|
+
location /base/ { proxy_pass http://127.0.0.1:3050; }
|
|
574
|
+
location / { return 404; }
|
|
575
|
+
}
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
Browser requests include same-origin proxy credentials. Fleet/SDK use the issued
|
|
579
|
+
`X-Ours-Api-Token`, require no browser login, and reject redirects. An SSH tunnel
|
|
580
|
+
to the loopback gateway is another private transport option, but every client must
|
|
581
|
+
establish its own tunnel and use a URL/origin matching that tunnel; it is not
|
|
582
|
+
automatic remote access. Do not treat a token entered in Cowork as Messenger auth.
|
|
583
|
+
|
|
584
|
+
Publish compatible Cowork, Messenger, Telegram and Fleet artifacts before enabling
|
|
585
|
+
gateway defaults in a qualified installer release. Gateway client setup acquires
|
|
586
|
+
and checks Fleet before activating the managed profile or publishing native
|
|
587
|
+
commands. Migration also checks the installed `ours-fleet version --json`
|
|
588
|
+
capability before stopping services when the selected managed profile includes
|
|
589
|
+
Fleet. Upgrade that executable first. The gate does not inventory differently pinned
|
|
590
|
+
running Fleet instances or remote clients: upgrade every client using this server
|
|
591
|
+
to a compatible Fleet release before cutover.
|
|
592
|
+
|
|
593
|
+
### Cross-repository gateway qualification
|
|
594
|
+
|
|
595
|
+
Build Cowork, Fleet, Messenger and Telegram checkouts with their locked dependencies.
|
|
596
|
+
The real-service test uses disposable local daemon state, a local test broker,
|
|
597
|
+
nginx Docker containers and Chromium; it never uses installed identities or tokens.
|
|
598
|
+
It requires Linux Docker host networking and `openssl`. Set:
|
|
599
|
+
|
|
600
|
+
```sh
|
|
601
|
+
OURS_TEST_GATEWAY_SERVICES=1 \
|
|
602
|
+
OURS_TEST_COWORK_ROOT=/checkouts/ours-cowork \
|
|
603
|
+
OURS_TEST_FLEET_ROOT=/checkouts/ours-fleet \
|
|
604
|
+
OURS_TEST_MESSENGER_ROOT=/checkouts/ours-messenger-server \
|
|
605
|
+
OURS_TEST_TELEGRAM_ROOT=/checkouts/ours-tg-connector \
|
|
606
|
+
OURS_TEST_BROWSER=/opt/google/chrome/chrome \
|
|
607
|
+
node --test packages/installer/test/gateway-services.test.mjs
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
Run `OURS_TEST_DOCKER=1 node --test packages/installer/test/gateway-docker.test.mjs`
|
|
611
|
+
separately for Compose port isolation with a client container. That routing test
|
|
612
|
+
uses echo upstreams; the real-service test covers Fleet room operations, browser
|
|
613
|
+
paths, external authentication and Messenger WebSocket access. Neither test is
|
|
614
|
+
cross-platform Docker Desktop qualification or a live deployment test.
|
|
615
|
+
|
|
616
|
+
### Rootless Podman (qualification in progress)
|
|
617
|
+
|
|
618
|
+
Container installations can select a local Linux rootless backend explicitly:
|
|
619
|
+
|
|
620
|
+
```sh
|
|
621
|
+
export PODMAN_COMPOSE_PROVIDER=/absolute/path/to/docker-compose
|
|
622
|
+
ours-install server install --mode docker --container-engine podman \
|
|
623
|
+
--state-dir "$HOME/.ours-server-podman" --identity-name "Your Name"
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
`mode: docker` remains the legacy container-layout name. `containerEngine` and
|
|
627
|
+
`containerBinding` retain Podman, the invoking UID, native storage paths, socket
|
|
628
|
+
and standalone Compose provider, plus the UID/GID mapping fingerprint. Records without `containerEngine` continue to
|
|
629
|
+
use Docker. Package/client installs reject the engine option. Existing records
|
|
630
|
+
cannot change engines through a flag or ambient connection change; automatic
|
|
631
|
+
Docker-to-Podman data migration is not provided. Legacy local-daemon migration
|
|
632
|
+
(`--migrate-from`) to Podman is also unsupported and is refused before source
|
|
633
|
+
shutdown or managed CLI publication, including migration retries. Use a fresh
|
|
634
|
+
Podman installation, or migrate the legacy daemon with Docker/packages.
|
|
635
|
+
|
|
636
|
+
Podman uses its native build command, with the same resolved Compose build
|
|
637
|
+
context, target, architecture, arguments and secret references, followed by
|
|
638
|
+
Compose `--no-build` startup. It does not require the Docker CLI or daemon.
|
|
639
|
+
The selected standalone Docker Compose provider must be version 2.35 or newer;
|
|
640
|
+
version checks do not replace the behavioral capability probe. `podman-compose`
|
|
641
|
+
is not an interchangeable provider for this implementation. Secrets sourced
|
|
642
|
+
from environment variables use Podman's native build-secret mechanism, never
|
|
643
|
+
build arguments or temporary copies.
|
|
644
|
+
|
|
645
|
+
Prerequisites include a working rootless API socket, sufficient subordinate
|
|
646
|
+
UID/GID mappings, and native volume-subpath isolation. Before setup/start, an
|
|
647
|
+
isolated disposable project tests Compose `!reset`, health waiting, JSON status,
|
|
648
|
+
service DNS, private UID-1000 storage and subpath isolation. A failed check stops
|
|
649
|
+
installation rather than substituting the whole volume. Existing volumes must
|
|
650
|
+
have this installation's project and volume labels. Docker contexts, unrelated
|
|
651
|
+
containers and host directory ownership are not changed.
|
|
652
|
+
|
|
653
|
+
Server boot recovery requires an enabled user `podman.socket`, an enabled
|
|
654
|
+
`podman-restart.service` using `--filter should-start-on-boot=true`, and user
|
|
655
|
+
linger. The standard user-service environment/default socket must select the
|
|
656
|
+
same storage; custom XDG paths and sockets are rejected for server startup.
|
|
657
|
+
The installer diagnoses missing prerequisites and never runs hidden sudo or
|
|
658
|
+
rewrites the vendor unit. Long-running Podman services get `unless-stopped`;
|
|
659
|
+
administration jobs do not. Stop/status remain available when boot prerequisites
|
|
660
|
+
are missing, provided the retained backend is accessible. Runtime-only test
|
|
661
|
+
harnesses may select a separate local socket with `OURS_PODMAN_SOCKET`; its
|
|
662
|
+
storage must match native Podman and the selection cannot change afterward.
|
|
663
|
+
|
|
664
|
+
Gateway images read and validate IPv4/IPv6 nameservers from their container at
|
|
665
|
+
startup. Only the resolver placeholder is replaced; nginx variables and existing
|
|
666
|
+
authentication/routes remain intact. UID 101, read-only rootfs, dropped
|
|
667
|
+
capabilities and tmpfs are retained. Setup and start verify authenticated
|
|
668
|
+
upstream requests in addition to liveness.
|
|
669
|
+
|
|
670
|
+
This change is **not yet a fully qualified server-support release**. Debian's
|
|
671
|
+
Podman 5.4.2 with Compose 5.5.1 failed subpath isolation and has incompatible boot
|
|
672
|
+
recovery semantics. Podman 6.1.2 passed the isolated capability probe on native
|
|
673
|
+
Linux amd64; production and prerelease-source builds, service lifecycle, rebuild and scoped maintenance also passed. See [validation evidence](ROOTLESS_PODMAN_VALIDATION.md). The full public installer/maintenance matrix,
|
|
674
|
+
SELinux Enforcing, logout/reboot, explicit-stop recovery, and Docker regression
|
|
675
|
+
matrix must all be recorded before declaring a supported engine/provider pair.
|
|
676
|
+
The supplied ARM VM results are historical feasibility evidence, not this
|
|
677
|
+
release's qualification.
|
|
678
|
+
|
|
679
|
+
Opt-in gateway fixture (isolated project, only owned resources removed):
|
|
680
|
+
|
|
681
|
+
```sh
|
|
682
|
+
OURS_TEST_DOCKER=1 node --test test/gateway-docker.test.mjs
|
|
683
|
+
PODMAN_COMPOSE_PROVIDER=/absolute/path/to/docker-compose \
|
|
684
|
+
OURS_TEST_PODMAN=1 node --test test/gateway-docker.test.mjs
|
|
685
|
+
```
|
|
686
|
+
|
|
687
|
+
## Account workspace enrollment (task build)
|
|
688
|
+
|
|
689
|
+
The unmerged account onboarding feature requires matching reviewed installer,
|
|
690
|
+
Fleet and Messenger task builds. Do not advertise it as available in `@latest`.
|
|
691
|
+
Use an owned private directory and a 0600 downloaded payload:
|
|
692
|
+
|
|
693
|
+
```sh
|
|
694
|
+
OURS_ACCOUNT_ORIGIN=https://accounts.example.com \
|
|
695
|
+
OURS_WORKSPACE_HOST=alice-home.workspaces.example.com \
|
|
696
|
+
node /absolute/task-ours-network/packages/installer/install.mjs \
|
|
697
|
+
--setup-workspace-file /absolute/private/workspace.payload \
|
|
698
|
+
--workspace-fleet-bin /absolute/task-ours-fleet/dist/cli.js \
|
|
699
|
+
--sources /absolute/private/task-sources.json
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
The wrapper defaults fresh hosts to the full Docker stack and retains existing
|
|
703
|
+
Human roots through the installed SDK with exact instance/private credential
|
|
704
|
+
selection. For an existing supported gateway add `--scope client --config` with
|
|
705
|
+
its private profile. It clears competing inherited daemon selectors before Fleet
|
|
706
|
+
initialization and enrollment; it never copies a browser device bearer to the
|
|
707
|
+
account server. A private stdin payload is also accepted by `--setup-workspace -`.
|
|
708
|
+
Encoding is not encryption; command arguments can enter history/process listings.
|
|
709
|
+
Cloudflare management tokens are forbidden in these payloads.
|
|
710
|
+
|
|
711
|
+
Docker and `cloudflared` are required for the fresh workflow. Supply a complete
|
|
712
|
+
`--fleet-settings` JSON for noninteractive Fleet initialization, or answer its
|
|
713
|
+
terminal prompts. Dry-run never initializes or enrolls Fleet. A one-use App setup
|
|
714
|
+
grant is redeemed only after argument and host-state checks, the read-only
|
|
715
|
+
setup plan (environment overrides, platform, source policy) and `--fleet-settings`
|
|
716
|
+
validation, and Fleet/`cloudflared` availability pass; dry-run and these rejections
|
|
717
|
+
leave the command usable until it expires. Checks that need the private envelope (resumed-workspace match,
|
|
718
|
+
optional-profile Fleet capability) follow redemption, so their failure requires a
|
|
719
|
+
fresh command. Ambiguous redemption is never retried automatically. Read the matching
|
|
720
|
+
ours-app `server/DEPLOYMENT.md` for exact task source-policy generation, external
|
|
721
|
+
Google/Cloudflare prerequisites and account-server setup. On uncertain enrollment
|
|
722
|
+
check account status before requesting a new payload; do not reset identities or
|
|
723
|
+
replay a consumed invitation.
|
|
724
|
+
|
|
725
|
+
Workspace setup requires the trusted invocation configuration `OURS_ACCOUNT_ORIGIN`
|
|
726
|
+
to name the exact HTTPS account origin. The generated App command also carries
|
|
727
|
+
`OURS_WORKSPACE_HOST`, the exact account-record hostname; it takes precedence over
|
|
728
|
+
`OURS_WORKSPACE_DOMAIN`. An operator bootstrap without an exact host may instead
|
|
729
|
+
configure `OURS_WORKSPACE_DOMAIN`, accepting one DNS label under that suffix. A
|
|
730
|
+
missing configuration has no historical-domain fallback. Never obtain these trust
|
|
731
|
+
values from a grant, redeemed envelope, or query. Grant origins are checked before
|
|
732
|
+
redemption; envelope origins and hosts are checked before setup/enrollment, and
|
|
733
|
+
the same trusted configuration is forwarded to Fleet. A v2 grant has no hostname.
|
|
734
|
+
|
|
735
|
+
To move an existing same workspace to another configured origin, obtain a fresh
|
|
736
|
+
payload from the moved account server, select that trusted origin explicitly, and add
|
|
737
|
+
`--workspace-migrate-app-origin`. Fleet verifies the signed binding receipt before
|
|
738
|
+
changing local origin trust, preserves identities/config/device records, and
|
|
739
|
+
restarts the runtime. An implicit origin change is rejected. Browser account
|
|
740
|
+
cookies/device IndexedDB must be linked anew on the new origin. See the app
|
|
741
|
+
server/DEPLOYMENT.md switching procedure.
|
|
742
|
+
|
|
743
|
+
Workspace setup automatically reuses the saved managed gateway profile (or explicit `--config`/`OURS_CONFIG`), including a host with a non-default server state directory. It does not reinstall server/client state, create a root, or initialize an existing Fleet configuration. It requires Fleet capability `workspace.enroll.preserve-profile-v1` and passes `--preserve-profile`; Fleet requires the matching Messenger capability before posting signed enrollment. Hosts running older Messenger must first update that host service through its supported installer lifecycle; this wrapper never guesses or replaces its server directory. After Owner releases Messenger/Fleet/installer, app bootstrap pins must be updated before removing the preview guard.
|
|
744
|
+
|
|
745
|
+
### Private-context Docker script permissions
|
|
746
|
+
|
|
747
|
+
Fresh image builds explicitly make non-secret maintenance/runtime scripts readable by the container user even when the host build context was copied under umask077. Host scripts, selected source policy and state retain their private permissions.
|
|
748
|
+
|
|
749
|
+
For a pending installation using an older image, run the corrected installer against the same pending workspace. It recognizes older shipped script COPY instructions combined with private host script modes, updates those image COPY modes and rebuilds the daemon image from the retained source selection. It leaves host data and enrollment state intact and qualifies the rebuilt image before preparing services. A private retry marker retains the rebuild requirement after interruption; it is removed only after verification succeeds. This rebuild resolves third-party transitive dependencies using the existing testing-delivery rules; selected Ours versions and integrity remain release-checked. It is not a byte-identical image permission-layer repair.
|
|
750
|
+
|
|
751
|
+
Fresh server setup checks its loopback daemon, Cowork and Messenger ports before
|
|
752
|
+
writing the installation configuration. Occupied implicit defaults advance to a
|
|
753
|
+
free port, skipping reserved sibling ports; the selected values are saved in the
|
|
754
|
+
installation record and used by native/container services, gateway and client
|
|
755
|
+
profile generation. An explicitly requested occupied port fails with a diagnostic.
|
|
756
|
+
Existing installation records keep their ports and identities. A listener acquired
|
|
757
|
+
by another process after preflight still causes startup to fail safely; no foreign
|
|
758
|
+
process is stopped and no retained installation is silently moved.
|
|
759
|
+
|
|
760
|
+
Workspace setup pins Fleet `1.2.0-nightly.76` with its recorded registry integrity. This release includes first-time Fleet setup through the host API for the account App, direct App access to the workspace services with the device credential, v2 positional one-use grants and automatic QR/connection-code output from `ours-fleet setup-tunnel`, optional private file/stdin inputs for legacy v1 payloads, a separate `ours-fleet link-device` command for additional devices, host prerequisite checks before the one-time workspace proof (`setup-tunnel --check`), `setup-tunnel --resume` to finish a setup that stopped after the host saved its private pending setup record (not when the proof's answer was lost, or after the setup window expired with an unconfirmed non-default port), and persists the available Fleet loopback port used by the workspace tunnel. It also accepts a setup-generated configuration left behind after the host enrollment state was removed, runs the host Codex when it is at least as new as the packaged one, offers only the Codex models the signed-in account can use, and removes the temporary setup contact after confirmation. Fleet serves no pages and opens no browser: every screen is in the App. Fleet also serves the workspace notification routes, produces notifications through the server gateway with the imported producer credential, accepts the App's device credential on the notification presence socket so an open App receives no push, and defaults agent wakes to `monitor.interrupt: after_tool` (Hermes: no interrupt; role snapshots saved before this default keep no interrupt). Existing installation identities and configured ports remain retained; a retained-port collision fails safely.
|
|
761
|
+
|
|
762
|
+
### App tunnel setup prerelease sequencing
|
|
763
|
+
|
|
764
|
+
The simplified App flow shows one copyable `ours-fleet setup-tunnel <encoded-v2-grant>`
|
|
765
|
+
command for the installed host, including an SSH session on a VPS. Its argument
|
|
766
|
+
contains only the existing v2 single-use grant (`version`, `appOrigin`, `code`,
|
|
767
|
+
`expiresAt`), never a connector token or broad provider credential. The command can
|
|
768
|
+
appear in shell history and process listings: keep it private and remove it from
|
|
769
|
+
history after use. Base64 is encoding, not encryption. Server-side expiry and
|
|
770
|
+
one-time redemption remain enforced. Fleet checks prerequisites before HTTPS POST
|
|
771
|
+
redemption; it never prints the grant or puts it in a URL, and retains existing
|
|
772
|
+
signed-root binding and scoped connector token-file controls. It prints the QR and
|
|
773
|
+
connection code automatically; the App checks readiness and opens the code field.
|
|
774
|
+
Private `--file`/`--stdin` transports remain optional and are the only transports
|
|
775
|
+
for legacy v1 payloads with long-lived credentials.
|
|
776
|
+
|
|
777
|
+
The nightly installer release manifest selects published Fleet `1.2.0-nightly.76`
|
|
778
|
+
and its actual registry integrity through the normal release manifest/source-policy
|
|
779
|
+
generators. This release includes v2 argument and private-input support. The former
|
|
780
|
+
nightly.41 selection predates this capability. Merge and publish the repinned
|
|
781
|
+
installer before deploying the App; the pin change alone is not an installer
|
|
782
|
+
publication. Existing v1 private-file enrollment remains compatible. The legacy
|
|
783
|
+
App wrapper refuses an older Fleet before reading or redeeming its grant.
|
|
784
|
+
|
|
785
|
+
The notification gateway permits daemon-authenticated producer selection only on
|
|
786
|
+
POST `/api/v1/send` and `/api/v1/delete-target`. The latter retires a removed
|
|
787
|
+
conversation using the credential's fixed user/source scope. Browser inbox
|
|
788
|
+
`/api/v1/delete` continues to require the user credential. The notification
|
|
789
|
+
service must support the scoped lifecycle route; this change does not repin or
|
|
790
|
+
publish an installer release.
|
|
791
|
+
|
|
792
|
+
## Boot and failure recovery
|
|
793
|
+
|
|
794
|
+
Docker long-running daemon, Telegram, Cowork, Messenger/Notifications and gateway
|
|
795
|
+
containers use `unless-stopped`. They resume when the selected Docker Engine
|
|
796
|
+
starts, and Docker restarts a failed container with its built-in backoff. A manual
|
|
797
|
+
`docker stop`, `ours-install server stop`, or uninstall stays stopped across
|
|
798
|
+
Engine restarts. Administrative/maintenance jobs have no automatic restart.
|
|
799
|
+
Docker health status alone does not restart a container.
|
|
800
|
+
|
|
801
|
+
The four application containers also supervise their locked entrypoints. After
|
|
802
|
+
90 seconds of startup grace, probes run every 5 seconds with a 15-second timeout.
|
|
803
|
+
Three consecutive local health failures or a child exit stop its entire process
|
|
804
|
+
group (TERM, then KILL within 20 seconds) before restarting. Cowork's detached
|
|
805
|
+
workers carry an explicit supervisor-PID marker; recovery also kills those
|
|
806
|
+
owned groups and waits for them to stop before launching a replacement. Each container start
|
|
807
|
+
allows three automatic child recovery attempts, separated by exponential backoff
|
|
808
|
+
(5 seconds doubling, at most 5 minutes). Ten minutes of continuous readiness
|
|
809
|
+
restores that budget; any failed or timed-out probe, including one during a
|
|
810
|
+
daemon outage, restarts the interval. Exhaustion stops the children and exits the
|
|
811
|
+
container with status 75, so `unless-stopped` restarts it with Docker's own
|
|
812
|
+
backoff and `docker inspect` reports the restart count and exit code. The
|
|
813
|
+
container is never left running without its service. Each failed probe is logged
|
|
814
|
+
with a fixed classification only (`timeout`, `exit:N`, `spawn`, or a daemon
|
|
815
|
+
`liveness:`/`readiness:` class such as `liveness:unreachable` or
|
|
816
|
+
`readiness:auth`), never probe output. The daemon probe separates anonymous
|
|
817
|
+
liveness (`/selection` answers) from authenticated readiness.
|
|
818
|
+
Consumers wait for authenticated readiness of their pinned daemon instance and
|
|
819
|
+
do not spend their recovery budget on a daemon outage. The gateway uses Docker
|
|
820
|
+
process recovery only; a gateway hang requires operator restart.
|
|
821
|
+
|
|
822
|
+
Re-run `server install` to deliver recovery to an existing installation without
|
|
823
|
+
changing its retained exact packages, identity, credentials, volumes or config.
|
|
824
|
+
This explicit install starts its selected services, as before. `server update`
|
|
825
|
+
with reviewed storage compatibility delivers the new selected release and
|
|
826
|
+
restores only previously running services. Retained runtime scripts are refreshed
|
|
827
|
+
and rebuilt on install; an interrupted refresh retains a rebuild marker. The
|
|
828
|
+
restart policy overlay also covers retained Compose files. Reconciliation updates
|
|
829
|
+
only this project's recorded long-running containers and does not start or
|
|
830
|
+
recreate a deliberately stopped container. `server start` can reconcile policies
|
|
831
|
+
but does not retrofit health supervision into an old image: run install/update.
|
|
832
|
+
Backup, migration and update still stop writers before maintenance, and a failed
|
|
833
|
+
maintenance operation keeps them stopped. `server uninstall` (also `ours-uninstall --state-dir PATH` for a managed
|
|
834
|
+
schema-2 installation) stops and removes managed services, retaining volumes,
|
|
835
|
+
identity and credentials. It refuses unfinished transitions and data purge.
|
|
836
|
+
Recovery introduces no host watchdog or service.
|
|
837
|
+
|
|
838
|
+
Host boot is a separate prerequisite. On Linux, enable the selected Docker
|
|
839
|
+
Engine system service; rootless Docker additionally needs its user service and
|
|
840
|
+
user linger. The installer reports read-only boot diagnostics and does not enable
|
|
841
|
+
or restart host services. It reads the persistent `docker.service` unit-file
|
|
842
|
+
state, not whether Docker is running now: when Docker is running but not enabled,
|
|
843
|
+
it says that ours components depending on Docker will not start automatically
|
|
844
|
+
after a reboot and prints the optional command (`sudo systemctl enable
|
|
845
|
+
docker.service`, or `systemctl --user enable docker.service` plus
|
|
846
|
+
`sudo loginctl enable-linger USER` for rootless Docker). A masked unit, or a host
|
|
847
|
+
not booted with systemd or with no `docker.service` (WSL with Docker Desktop integration, snap,
|
|
848
|
+
OpenRC and similar), gets the same warning without a systemctl command. A reachable remote Engine or Docker Desktop context
|
|
849
|
+
cannot prove boot recovery on this machine. A custom Unix socket also has an
|
|
850
|
+
unverified boot-service binding; a host unit cannot establish its startup. On macOS/Windows with WSL, enable Docker
|
|
851
|
+
Desktop startup at sign-in; this does not provide pre-login startup. Rootless
|
|
852
|
+
Podman's existing enabled socket/restart-service and linger preflight remains.
|
|
853
|
+
Native package mode retains its package-owned systemd user/launchd services:
|
|
854
|
+
Linux needs user linger for pre-login startup, macOS needs a GUI login session,
|
|
855
|
+
and native hung-process recovery is not supplied by this Docker supervisor.
|
|
856
|
+
Fleet stays on the host with Fleet-owned lifecycle and crash protection. Installing
|
|
857
|
+
the exact Fleet nightly binary does not upgrade or restart an existing supervisor.
|
|
858
|
+
The published no-policy core delivery is a verified recovery omission that
|
|
859
|
+
reproduces the reported symptom. The original incident cause remains unconfirmed:
|
|
860
|
+
actual host Engine availability, installed policies and pre-reboot stopped state
|
|
861
|
+
still require Owner confirmation.
|