@usine/executor 0.6.1-next.512.g0e8713d.1.1 → 0.6.1-next.571.g33bab87.1.1

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.
Files changed (152) hide show
  1. package/README.md +28 -12
  2. package/dist/bind-mount.d.ts +4 -0
  3. package/dist/bind-mount.d.ts.map +1 -0
  4. package/dist/bind-mount.js +9 -0
  5. package/dist/bind-mount.js.map +1 -0
  6. package/dist/cloudflare/cloudflare.js +4 -4
  7. package/dist/cloudflare/cloudflare.js.map +1 -1
  8. package/dist/container-limits.d.ts +2 -0
  9. package/dist/container-limits.d.ts.map +1 -0
  10. package/dist/container-limits.js +8 -0
  11. package/dist/container-limits.js.map +1 -0
  12. package/dist/disk-full.d.ts +12 -0
  13. package/dist/disk-full.d.ts.map +1 -0
  14. package/dist/disk-full.js +36 -0
  15. package/dist/disk-full.js.map +1 -0
  16. package/dist/exe-dev/exe-dev.d.ts.map +1 -1
  17. package/dist/exe-dev/exe-dev.js +1 -0
  18. package/dist/exe-dev/exe-dev.js.map +1 -1
  19. package/dist/executor.d.ts +23 -2
  20. package/dist/executor.d.ts.map +1 -1
  21. package/dist/executor.js +20 -2
  22. package/dist/executor.js.map +1 -1
  23. package/dist/guard.d.ts.map +1 -1
  24. package/dist/guard.js +2 -1
  25. package/dist/guard.js.map +1 -1
  26. package/dist/harness-preflight.d.ts +4 -3
  27. package/dist/harness-preflight.d.ts.map +1 -1
  28. package/dist/harness-preflight.js +4 -4
  29. package/dist/harness-preflight.js.map +1 -1
  30. package/dist/prepared-attempt.js +2 -2
  31. package/dist/prepared-attempt.js.map +1 -1
  32. package/dist/provision.d.ts +13 -5
  33. package/dist/provision.d.ts.map +1 -1
  34. package/dist/provision.js +56 -9
  35. package/dist/provision.js.map +1 -1
  36. package/dist/remote/container.d.ts +15 -3
  37. package/dist/remote/container.d.ts.map +1 -1
  38. package/dist/remote/container.js +46 -27
  39. package/dist/remote/container.js.map +1 -1
  40. package/dist/remote/machine.d.ts +19 -2
  41. package/dist/remote/machine.d.ts.map +1 -1
  42. package/dist/remote/memory.d.ts +20 -3
  43. package/dist/remote/memory.d.ts.map +1 -1
  44. package/dist/remote/memory.js +76 -12
  45. package/dist/remote/memory.js.map +1 -1
  46. package/dist/remote/remote.d.ts.map +1 -1
  47. package/dist/remote/remote.js +28 -12
  48. package/dist/remote/remote.js.map +1 -1
  49. package/dist/ssh/api-keys.d.ts +10 -1
  50. package/dist/ssh/api-keys.d.ts.map +1 -1
  51. package/dist/ssh/api-keys.js +10 -0
  52. package/dist/ssh/api-keys.js.map +1 -1
  53. package/dist/ssh/container.d.ts +1 -1
  54. package/dist/ssh/container.js +3 -3
  55. package/dist/ssh/container.js.map +1 -1
  56. package/dist/ssh/credentials.d.ts +3 -3
  57. package/dist/ssh/credentials.js +3 -3
  58. package/dist/ssh/disk.d.ts +18 -0
  59. package/dist/ssh/disk.d.ts.map +1 -0
  60. package/dist/ssh/disk.js +102 -0
  61. package/dist/ssh/disk.js.map +1 -0
  62. package/dist/ssh/gateway/forward.d.ts +3 -3
  63. package/dist/ssh/gateway/model-route.d.ts.map +1 -1
  64. package/dist/ssh/gateway/model-route.js +4 -2
  65. package/dist/ssh/gateway/model-route.js.map +1 -1
  66. package/dist/ssh/gateway/preflight.d.ts +1 -1
  67. package/dist/ssh/gateway/preflight.js +1 -1
  68. package/dist/ssh/image.d.ts +32 -1
  69. package/dist/ssh/image.d.ts.map +1 -1
  70. package/dist/ssh/image.js +171 -0
  71. package/dist/ssh/image.js.map +1 -1
  72. package/dist/ssh/model.d.ts +23 -7
  73. package/dist/ssh/model.d.ts.map +1 -1
  74. package/dist/ssh/model.js +2 -0
  75. package/dist/ssh/model.js.map +1 -1
  76. package/dist/ssh/preflight.d.ts +8 -4
  77. package/dist/ssh/preflight.d.ts.map +1 -1
  78. package/dist/ssh/preflight.js +57 -10
  79. package/dist/ssh/preflight.js.map +1 -1
  80. package/dist/ssh/provisioner/boxd/client.d.ts +0 -1
  81. package/dist/ssh/provisioner/boxd/client.d.ts.map +1 -1
  82. package/dist/ssh/provisioner/boxd/client.js.map +1 -1
  83. package/dist/ssh/provisioner/boxd/exec.d.ts +13 -29
  84. package/dist/ssh/provisioner/boxd/exec.d.ts.map +1 -1
  85. package/dist/ssh/provisioner/boxd/exec.js +37 -41
  86. package/dist/ssh/provisioner/boxd/exec.js.map +1 -1
  87. package/dist/ssh/provisioner/boxd/grpc-client.d.ts.map +1 -1
  88. package/dist/ssh/provisioner/boxd/grpc-client.js +2 -3
  89. package/dist/ssh/provisioner/boxd/grpc-client.js.map +1 -1
  90. package/dist/ssh/provisioner/boxd.d.ts +2 -2
  91. package/dist/ssh/provisioner/boxd.d.ts.map +1 -1
  92. package/dist/ssh/provisioner/boxd.js +21 -53
  93. package/dist/ssh/provisioner/boxd.js.map +1 -1
  94. package/dist/ssh/provisioner/checks.d.ts +2 -2
  95. package/dist/ssh/provisioner/checks.d.ts.map +1 -1
  96. package/dist/ssh/provisioner/checks.js +13 -7
  97. package/dist/ssh/provisioner/checks.js.map +1 -1
  98. package/dist/ssh/provisioner/connection.d.ts.map +1 -1
  99. package/dist/ssh/provisioner/connection.js +5 -3
  100. package/dist/ssh/provisioner/connection.js.map +1 -1
  101. package/dist/ssh/provisioner/machines.d.ts +2 -1
  102. package/dist/ssh/provisioner/machines.d.ts.map +1 -1
  103. package/dist/ssh/provisioner/machines.js +7 -5
  104. package/dist/ssh/provisioner/machines.js.map +1 -1
  105. package/dist/ssh/provisioner/model.d.ts +5 -2
  106. package/dist/ssh/provisioner/model.d.ts.map +1 -1
  107. package/dist/ssh/provisioner/model.js.map +1 -1
  108. package/dist/ssh/provisioner/reuse.d.ts +1 -1
  109. package/dist/ssh/provisioner/reuse.d.ts.map +1 -1
  110. package/dist/ssh/provisioner/reuse.js +6 -6
  111. package/dist/ssh/provisioner/reuse.js.map +1 -1
  112. package/dist/ssh/provisioner/tailnet/bootstrap.d.ts +5 -2
  113. package/dist/ssh/provisioner/tailnet/bootstrap.d.ts.map +1 -1
  114. package/dist/ssh/provisioner/tailnet/bootstrap.js +48 -16
  115. package/dist/ssh/provisioner/tailnet/bootstrap.js.map +1 -1
  116. package/dist/ssh/runtime.d.ts +1 -1
  117. package/dist/ssh/runtime.d.ts.map +1 -1
  118. package/dist/ssh/runtime.js +3 -8
  119. package/dist/ssh/runtime.js.map +1 -1
  120. package/dist/ssh/ssh.d.ts +2 -2
  121. package/dist/ssh/ssh.d.ts.map +1 -1
  122. package/dist/ssh/ssh.js +12 -4
  123. package/dist/ssh/ssh.js.map +1 -1
  124. package/dist/supervisor/container.d.ts +66 -0
  125. package/dist/supervisor/container.d.ts.map +1 -0
  126. package/dist/supervisor/container.js +522 -0
  127. package/dist/supervisor/container.js.map +1 -0
  128. package/dist/supervisor/image.d.ts +20 -0
  129. package/dist/supervisor/image.d.ts.map +1 -0
  130. package/dist/supervisor/image.js +30 -0
  131. package/dist/supervisor/image.js.map +1 -0
  132. package/dist/supervisor/model-relay.d.ts +8 -0
  133. package/dist/supervisor/model-relay.d.ts.map +1 -0
  134. package/dist/supervisor/model-relay.js +87 -0
  135. package/dist/supervisor/model-relay.js.map +1 -0
  136. package/dist/supervisor/names.d.ts +3 -0
  137. package/dist/supervisor/names.d.ts.map +1 -0
  138. package/dist/supervisor/names.js +5 -0
  139. package/dist/supervisor/names.js.map +1 -0
  140. package/dist/supervisor/sources.d.ts +30 -0
  141. package/dist/supervisor/sources.d.ts.map +1 -0
  142. package/dist/supervisor/sources.js +165 -0
  143. package/dist/supervisor/sources.js.map +1 -0
  144. package/dist/supervisor/storage.d.ts +24 -0
  145. package/dist/supervisor/storage.d.ts.map +1 -0
  146. package/dist/supervisor/storage.js +124 -0
  147. package/dist/supervisor/storage.js.map +1 -0
  148. package/dist/supervisor/supervisor.d.ts +3 -0
  149. package/dist/supervisor/supervisor.d.ts.map +1 -0
  150. package/dist/supervisor/supervisor.js +3 -0
  151. package/dist/supervisor/supervisor.js.map +1 -0
  152. package/package.json +10 -6
package/README.md CHANGED
@@ -12,7 +12,23 @@ Worker preflight checks each coding-agent brain with the shared `admitBrain` pol
12
12
 
13
13
  ## Orchestrator model access
14
14
 
15
- `@usine/executor/gateway` exports `gatewayModelRouteFor(worker, repository, gateway)` for model runtimes on the orchestrator, including the coordinator and supervisor. It opens SSH forwards to the admin API and model proxy, checks the proxy's caller-token requirement, and registers an anonymous attachment. `credential(protocol)` reports the gateway's credential kind; `request(protocol, body, headers, signal)` streams a model response with the caller token. Provider credentials remain on the gateway. The attachment renews every two minutes, restores missing gateway state under the same ID, and detaches on scope closure.
15
+ `@usine/executor/gateway` exports `gatewayModelRouteFor(worker, repository, gateway)` for model runtimes on the orchestrator, including the coordinator and supervisor. It opens SSH forwards to the admin API and model proxy, checks the proxy's caller-token requirement, and registers an anonymous attachment. `credential(protocol)` reports the gateway's credential kind; `request(protocol, body, headers, signal)` streams a model response with the caller token, after it removes from `headers` every header that the gateway reads a caller credential from. Provider credentials remain on the gateway. The attachment renews every two minutes, restores missing gateway state under the same ID, and detaches on scope closure.
16
+
17
+ ## Supervisor sandbox
18
+
19
+ `@usine/executor/supervisor` provides one container per supervisor turn on the orchestrator host. `containerSandboxLayer({ root, image, runtime, route, limits, imagePullTimeout })` finds Podman, then Docker, unless `runtime` names one. Startup prepares `image` in the background, using a cached image when available and retrying failed preparation every minute. A turn waits up to 30 seconds for the image before refusing with a retry message. The container has no network, a read-only root filesystem, no capabilities and no new privileges, and runs as the orchestrator's user. An `ExecShell` seat enters it with `<runtime> exec`.
20
+
21
+ `limits` defaults to `SupervisorLimits`: 1 CPU, 1024 MiB memory without swap, 256 processes/threads, 64 MiB `/tmp` and 512 MiB per conversation. Shared memory is capped at 16 MiB and container logs are disabled. Opening verifies the runtime's cgroup v2 limits and refuses a seat if they are not enforced. Runtime commands, including startup, have a 30-second timeout; image pulls have no timeout unless `imagePullTimeout` is set. Pull output is drained with a diagnostic tail of 8,192 characters.
22
+
23
+ On both Docker and Podman, each conversation uses a preallocated ext4 image in `<root>/disks/<sha256>.ext4`, mounted with `fuse2fs` at `<root>/conversations/<sha256>`. It bounds container writes and Pi's host-side session files. Linux, FUSE access, `user_allow_other` in `/etc/fuse.conf`, `fuse2fs`, `fusermount`, `e2fsprogs` and `util-linux` are required. Allocation or mount failure refuses the turn. An existing image must match the configured size; resizing requires an offline migration. The conversation's writable home persists across turns. Its workspace and every source are read-only bind mounts, passed with CSV-quoted `--mount` arguments that reject missing sources. Directory and settings creation replaces unsafe entries without following symlinks.
24
+
25
+ The container relay forwards model requests over a Unix socket to the orchestrator. The HTTP server accepts at most eight connections and reads at most `limits.modelRequestMib` per body (32 MiB by default). It forwards only `POST /anthropic-messages/v1/messages` and `POST /openai-responses/v1/responses` for `SandboxRequest.model`, removes caller credential headers, and returns a generic 502 on route failure. The harness token contains no credential.
26
+
27
+ Turn end, shutdown and startup remove containers by `usine.supervisor.root` and `usine.supervisor.conversation` labels and verify their removal. A remaining container prevents a new turn from accessing that conversation's filesystem. Cleanup owns this lifecycle even when a session stops the relay; after an orchestrator crash, startup removes leftovers. Preparation failures leave the supervisor unavailable with a reason while the instance remains usable.
28
+
29
+ `makeSupervisorSources(root, origin)` prepares shallow source exports. Repository names reject `.` and `..` segments; cache and tree directories use SHA-256 names. Fetch sets `transfer.fsckObjects=true`, and exports remove absolute symlinks before publication. Preparations of one repository run one at a time. A tree stays available while a turn holds it and is removed when it is no longer the head and has no holders.
30
+
31
+ `test/supervisor/container-runtime.test.ts` runs on `USINE_SANDBOX_TEST_RUNTIME`, with `USINE_SANDBOX_TEST_IMAGE` (default `docker.io/library/node:22-slim`). CI runs Docker with the filesystem prerequisites. The suite checks isolation, persistence, relay-stop cleanup and restart, and disk, process and memory exhaustion while an outside SQLite database remains writable.
16
32
 
17
33
  ## Attempt lifetime
18
34
 
@@ -55,7 +71,7 @@ A push that GitHub refuses for a file over its size limit (`GH001`) fails the sa
55
71
 
56
72
  A request whose `resume` names a pushed salvage fetches the revision and applies the salvage on top. A salvage forked from the fetched commit is checked out as is; one from an older base is rebased onto it, with `commitAuthor` as the committer. A salvage with no changes beyond the revision is dropped. One that doesn't rebase cleanly is left out: the worktree starts from the revision, `RunSpec.conflictingSalvage` names it, and its branch keeps the work. A missing ref falls back to the revision.
57
73
 
58
- Startup reconciliation lists each worker connection's `attempts/` once per executor instance, and adapters skip historical attempts missing from the listing without checking paths. A failed listing stays cached for that startup and is retried after a restart. Existing checkouts keep the record-before-remove salvage order; succeeded attempts only need removal. `recover` returns `gone` when neither the attempt's machine nor its checkout is left: a local checkout that is missing, a provisioned SSH machine that is deleted, or a Cloudflare sandbox that is gone. Otherwise it returns `found`. `recover` has no `CheckoutRequest`, so its caller passes the salvage commit's author as an effect, which runs only before a salvage: the orchestrator reads the App's bot account there.
74
+ Startup reconciliation lists each worker connection's `attempts/` once per executor instance, and adapters skip historical attempts missing from the listing without checking paths. A failed listing stays cached for that startup and is retried after a restart. Existing checkouts keep the record-before-remove salvage order; succeeded attempts only need removal. `recover` returns `gone` when neither the attempt's checkout nor a machine created for the attempt is left: a local checkout that is missing, a missing checkout on the long-lived machine of an SSH or exe.dev worker, a provisioned SSH machine that is deleted, or a Cloudflare sandbox that is gone. Otherwise it returns `found`. On an SSH worker's long-lived machine, listing the leftovers first reclaims the containers and credentials that no attempt holds, so a missing checkout leaves nothing of the attempt to reconcile. `recover` has no `CheckoutRequest`, so its caller passes the salvage commit's author as an effect, which runs only before a salvage: the orchestrator reads the App's bot account there.
59
75
 
60
76
  `Executor.sweep` removes the files on the workers that no attempt holds or can use. The orchestrator runs it after startup recovery and at each reconcile. It never fails and logs what it couldn't remove. The SSH executor removes Codex homes and Claude project directories there (see [Behind a gateway](#behind-a-gateway)); the local, exe.dev, and Cloudflare executors remove nothing.
61
77
 
@@ -67,9 +83,9 @@ This replaces the 0.x `Executor.launch(prepared, io)` and `Executor.cleanup(prep
67
83
 
68
84
  ## Worker preflight
69
85
 
70
- Call `executor.preflight(worker, brains, maxConcurrentAttempts)` with the roster's `BrainSpec` values and the worker's `max_concurrent_attempts` before scheduling. It returns a `PreflightReport`, whose `degraded` gives the reason when the worker runs attempts without a capability that keeps them apart, such as an SSH worker without Docker, and whose `containerLimits` gives the CPU, memory, and process limits of each attempt container on an SSH worker with Docker; `fullPreflight` is the report without either.
86
+ Call `executor.preflight(worker, brains, maxConcurrentAttempts)` with the roster's `BrainSpec` values and the worker's `max_concurrent_attempts` before scheduling. It returns a `PreflightReport`, whose `degraded` gives the reason when the worker runs attempts without a capability that keeps them apart, such as an SSH worker without Docker, whose `containerLimits` gives the CPU, memory, and process limits of each attempt container on an SSH worker with Docker, and whose `findings` lists what the preflight found missing that attempts run without; `fullPreflight` is the report without any of them.
71
87
 
72
- SSH image preparation logs local image presence and inspection time before starting a container. Preflight pulls the image and logs the pull duration and `downloaded`, based on the image IDs before and after the pull.
88
+ SSH image preparation logs local image presence and inspection time before starting a container. Preflight pulls the image and logs the pull duration and `downloaded`, based on the image IDs before and after the pull. After each successful pull, it removes the other images of the image's repository and logs what it removed. It keeps the current image, the most recently built other image, and every image that a container uses. After a rollback, the retained image can be newer than the current image. A failed removal is logged and doesn't fail the pull.
73
89
 
74
90
  A failed pull logs its attempt number, exit code, duration, and up to 1,000 characters of stderr. If the image is absent, preparation retries on the same machine after 5 seconds and then 15 seconds, for at most three pulls. Preflight fails with the last pull error if the image remains absent. A failed pull can use an existing local image.
75
91
 
@@ -170,13 +186,13 @@ Salvage inspection, staging, or snapshot failures keep the checkout, uncommitted
170
186
 
171
187
  Attempt containers mount `/dev/shm` and `/tmp` in memory and set `TMPDIR=/tmp` for Docker and Podman. `SshWorkerContainer.shmSizeMib` and `tmpfsSizeMib` override each filesystem's default capacity of 2048 MiB. Each capacity is capped at the container memory limit; both filesystems and running processes share that limit. Temporary files are removed with the container. The executor logs the applied capacities when it records and starts a container.
172
188
 
173
- `@usine/executor/ssh` runs the same contract on any Linux machine that the orchestrator reaches over SSH ([ADR 0026](../../docs/adr/0026-eu-ssh-worker.md)); `infra/hetzner` creates one on Hetzner Cloud. Each worker has an SSH destination, an optional identity file and port, and a root under which it keeps `workers/<name>/repos`, `attempts`, and `credentials`. The machine needs Git, rootless Podman or Docker, and the roster's harness logins for the SSH user.
189
+ `@usine/executor/ssh` runs the same contract on any Linux machine that the orchestrator reaches over SSH ([ADR 0029](../../docs/adr/0029-worker-kinds-and-adapter-set.md)); `infra/hetzner` creates one on Hetzner Cloud. Each worker has an SSH destination, an optional identity file and port, and a root under which it keeps `workers/<name>/repos`, `attempts`, and `credentials`. The machine needs Git, rootless Podman or Docker, and the roster's harness logins for the SSH user.
174
190
 
175
- Preflight checks the SSH connection, a writable root, Git, memory for `maxConcurrentAttempts`, the container runtime, and the roster's harnesses where children run. With a container runtime, it pulls the attempt image, checks that the image's user has the SSH user's ID, finds the container limits, and probes the harnesses in a container from the image that removes itself. Without either runtime, it probes them over SSH and reports the worker as degraded. A Docker that doesn't answer the SSH user, the `docker` group or a writable socket without the `docker` CLI, an image that can't be pulled and isn't on the machine, or another user ID is a `container` `WorkerCapabilityError`: an SSH user that can use Docker never runs an attempt.
191
+ Preflight checks the SSH connection, a writable root, Git, memory for `maxConcurrentAttempts`, the container runtime, the free disk space, and the roster's harnesses where children run. The free disk space check reads `df` for the root and the container runtime's image storage; below `SshWorkerAddress.minFreeDiskGib` (10 if unset) on either, it fails with a `disk` `WorkerCapabilityError` that states the free space and the threshold. `prepare` repeats the check before a new checkout, and a reattachment skips it. A command of the executor that reports `ENOSPC` or `No space left on device` during preflight or `prepare` also fails with a `disk` error. With a container runtime, it pulls the attempt image, checks that the image's user has the SSH user's ID, finds the container limits, and probes the harnesses in a container from the image that removes itself. With a container runtime, it also checks that the SSH user can read the host kernel journal or ring buffer, and reports a finding if it can't. Without either runtime, it probes them over SSH and reports the worker as degraded. A Docker that doesn't answer the SSH user, the `docker` group or a writable socket without the `docker` CLI, an image that can't be pulled and isn't on the machine, or another user ID is a `container` `WorkerCapabilityError`: an SSH user that can use Docker never runs an attempt.
176
192
 
177
193
  ### Attempt containers
178
194
 
179
- With a container runtime on the machine, each attempt runs in its own container from `SshWorkerAddress.container.image`, or `ATTEMPT_IMAGE`, the image of `infra/worker-image/Dockerfile` with this release's harness versions, with CPU, memory, and process limits. `ATTEMPT_IMAGE` derives its tag from the harness descriptors, matching the generated `infra/worker-image/tag.txt` that image publishing and snapshot creation read. The container mounts the attempt's checkout and the SSH user's login files for the attempt's harness read-write, and its cached clone and credential directory read-only; behind a gateway, also gh's configuration directory and socket read-only. It uses the machine's network, and gets the attempt's variables, secrets included, on the runtime's `run` command's standard input. Every command for the attempt runs in it through the shell's `container` (`<runtime> exec -i <name> sh -c <command line>`): the children, the checkout's git, the harvest, the salvage, the pre-push hook, and the attempt's harness probe, which runs once the checkout exists. Only the container's start and removal and the cached clone's fetch run as the SSH user.
195
+ With a container runtime on the machine, each attempt runs in its own container from `SshWorkerAddress.container.image`, or `ATTEMPT_IMAGE`, the image of `infra/worker-image/Dockerfile` with this release's harness versions, with CPU, memory, and process limits. `ATTEMPT_IMAGE` derives its tag from the harness descriptors, matching the generated `infra/worker-image/tag.txt` that image publishing and snapshot creation read. The container mounts the attempt's checkout read-write. Only if the attempt's harness uses the SSH user's login, it also mounts that harness's credential files read-write and its seeded files read-only, which the image copies into the home; it mounts neither when the gateway holds the provider's credential or the provisioner gives the attempt an API key. Preflight logs, for each harness, which login files the worker's containers mount if the machine has them, and why. The container mounts its cached clone and credential directory read-only; behind a gateway, also gh's configuration directory and socket read-only. It uses the machine's network, and gets the attempt's variables, secrets included, on the runtime's `run` command's standard input. Every command for the attempt runs in it through the shell's `container` (`<runtime> exec -i <name> sh -c <command line>`): the children, the checkout's git, the harvest, the salvage, the pre-push hook, and the attempt's harness probe, which runs once the checkout exists. Only the container's start and removal and the cached clone's fetch run as the SSH user.
180
196
 
181
197
  `SshWorkerAddress.container` sets each limit as an `Option`. Preflight derives each one that is `None` from the machine: it runs `nproc` and reads `/proc/sys/kernel/threads-max`, `/proc/sys/kernel/pid_max`, and `/proc/meminfo` over SSH, and divides the machine's total, less a reserve for the machine's own processes, by `maxConcurrentAttempts`:
182
198
 
@@ -194,11 +210,11 @@ Preflight prepares `usine-pnpm-store`, a named volume shared by every attempt co
194
210
 
195
211
  Preflight also prepares `usine-turbo-cache` with the same ownership checks. Every attempt container mounts it read-write at `/home/usine/.cache/turbo`, the image's `TURBO_CACHE_DIR`, so concurrent and later attempts reuse task outputs. Both volumes survive container removal; reclaim the Turborepo cache with `podman volume rm usine-turbo-cache` after removing containers that reference it.
196
212
 
197
- The caches are trusted shared state across jobs and instances using the same runtime store. Provisioned workers delete them with their machine after each attempt. To reclaim disk space on a long-lived worker, finish its attempts, remove containers that reference the volume, and run `podman volume rm usine-pnpm-store` on that worker. Run preflight again after removal to recreate it. There is no automatic pruning or quota. See the [worker guide](https://docs.usine.dev/guides/add-a-worker/#shared-pnpm-store).
213
+ The caches are trusted shared state across jobs and instances using the same runtime store. pnpm's integrity checks don't protect an attempt from another attempt that writes to the store. Provisioned workers delete them with their machine after each attempt. To reclaim disk space on a long-lived worker, finish its attempts, remove containers that reference the volume, and run `podman volume rm usine-pnpm-store` on that worker. Run preflight again after removal to recreate it. There is no automatic pruning or quota. See the [worker guide](https://docs.usine.dev/guides/add-a-worker/#shared-pnpm-store).
198
214
 
199
215
  The checkout is a repository of its own whose objects come from the cached clone through an alternate, so commits never write the read-only clone. The container is named `usine-<attempt id>` and labeled with `SshExecutorOptions.instance`, `SshExecutorOptions.instanceId`, the worker, and the attempt. It's removed after the checkout's release, which salvages in it, and before the credential. If the container stopped before the release, for example because the kernel killed it for memory or a command signaled its init, the release starts it again and salvages in it, and logs the container's status, exit code, and whether it was killed for memory. Before it removes the container, the release reads how many processes the kernel killed in it for memory: the `oom_kill` count of the container's cgroup in `/sys/fs/cgroup/memory.events`, plus one for each start after the kernel killed the container's init, since a start gives the container a new cgroup. A count above zero goes to `Sink.outOfMemory` with the container's ID and memory limit. The run store keeps the count of each container: a reattachment's new container adds its kills to those of the earlier one, and a second record of the same container replaces its count. A container that only a recovery started isn't read. A count that can't be read or recorded is logged as a warning, and the container is still removed. The salvage never runs git in the checkout as the SSH user. A process's first use of a worker removes the containers with both its instance labels that belong to that worker, or to a worker that started no container in this process, so a running attempt's container on a shared machine stays. Instances that share a GitHub App, and so `instance`, have different `instanceId`s, so they don't remove each other's containers. Before its first container starts, the executor writes `<root>/workers/<name>/container-checkouts/<attempt>`, outside every container's mounts, and removes it with the checkout. A reattachment or recovery reads that marker, never the checkout, which the attempt can change: with it, commands run in a new container; without it, as the SSH user, on a machine without Docker only. A mismatch, such as a checkout from before Docker on a machine that now has it, fails with an `ExecutorOperationError` and leaves the checkout.
200
216
 
201
- Before removing an attempt container with recorded memory kills, the executor reads the worker host's kernel journal since container creation, falling back to `dmesg` when the journal is unavailable. It matches each OOM victim's cgroup to the full Docker or Podman container ID and records the kernel task name and host PID alongside the counter. Kernel task names can be truncated and exclude arguments. Missing or unreadable kernel logs leave the counter intact and produce a warning; cleanup continues.
217
+ Before removing an attempt container with recorded memory kills, or one started again, whose new cgroup counts from 0, the executor reads the worker host's kernel journal since container creation. When the journal has no `oom-kill:` line, it reads the ones in `dmesg`, filtered on the worker, and it logs which log it read. A readable journal with no `oom-kill:` line on a host whose `dmesg` is restricted, such as one with `kernel.dmesg_restrict=1` and the SSH user in `systemd-journal`, counts as a readable log that names no process. It matches each OOM victim's cgroup to the full Docker or Podman container ID (`<id>`, `docker-<id>.scope`, `libpod-<id>.scope`, or `libpod-<id>`) and records the kernel task name and host PID alongside the counter, up to `MAX_KILLED_PROCESSES`; the count includes victims beyond it. Kernel task names can be truncated and exclude arguments. Missing or unreadable kernel logs leave the counter intact and produce a warning; cleanup continues.
202
218
 
203
219
  The SSH user needs permission to read host kernel logs. On systemd workers, add that user to `systemd-journal` and reconnect SSH. New Hetzner worker images grant this membership. Keep kernel logs available until attempt cleanup; details from older attempts cannot be reconstructed from the counter alone.
204
220
 
@@ -236,12 +252,12 @@ Boat machine creation distinguishes concurrent sandbox, compute allowance, billi
236
252
 
237
253
  A worker whose address has `machine: { _tag: "Provisioned" }` has no machine of its own: it creates a Hetzner Cloud server or a Boat sandbox for each attempt and deletes it afterwards by default ([#550](https://github.com/basaltbytes/usine/issues/550)). The layer provides `WorkerMachines` for the scheduler:
238
254
 
239
- - `create(worker, runId, attemptId, brains)` reuses an eligible idle machine or creates one, tagged with `SshExecutorOptions.instance`, the worker, the run, the persisted attempt, and a random value of this process, and waits up to `machineReadyTimeout` (or `provisioner.timings.sshWait`, 600 seconds by default) until it answers over SSH. It then waits for cloud-init, creates the root, and waits for the selected container runtime. The worker's first machine after `provisioner.timings.machineCheckInterval` seconds since its last successful check, and its first after the layer starts, also gets the machine preflight with `brains`, whose failure is a `WorkerCapabilityError`. Each machine runs one attempt at a time, so that preflight derives the unset container limits for one slot, and the worker's machines get them until the next such preflight. The grant's `checked` is then a `MachineCheck` with the brains and the limits. A provider's refusal, no capacity or quota, no answer, or a timeout is a `MachineUnavailableError` with its `reason`. On failure or interruption, the machine is deleted.
255
+ - `create(worker, runId, attemptId, brains)` reuses an eligible idle machine or creates one, tagged with `SshExecutorOptions.instance`, the worker, the run, the persisted attempt, and a random value of this process, and waits up to `machineReadyTimeout` (or `provisioner.timings.sshWait`, 600 seconds by default) until it answers through its remote shell: SSH, or boxd's `Exec` stream. It then waits for cloud-init, creates the root, and waits for the selected container runtime. The worker's first machine after `provisioner.timings.machineCheckInterval` seconds since its last successful check, and its first after the layer starts, also gets the machine preflight with `brains`, whose failure is a `WorkerCapabilityError`. Each machine runs one attempt at a time, so that preflight derives the unset container limits for one slot, and the worker's machines get them until the next such preflight. The grant's `checked` is then a `MachineCheck` with the brains and the limits. A provider's refusal, no capacity or quota, no answer, or a timeout is a `MachineUnavailableError` with its `reason`. On failure or interruption, the machine is deleted.
240
256
  - `adopt(worker, attemptId)` holds the machine of an attempt from an earlier process, found by that tag in one listing per worker. If the provider can't be read, the hold still keeps `sweep` from deleting the machine, and the next use looks it up again.
241
257
  - `release(hold)` resets an eligible machine for reuse or deletes it, unless it has the attempt's checkout: one kept for a reattachment, until its parent task's stop is confirmed, or with unpreserved work. That machine stays for the next process. A failed deletion is retried by `sweep`.
242
258
  - `sweep` warns at startup about machines with the instance label whose worker is not configured, using the configured providers' credentials. It lists each provisioned worker's machines and deletes those that no hold or creation of this process has. The engine runs it after startup recovery and at each reconcile.
243
259
 
244
- Set the provisioner's `reuse` to `Option.some(new ProvisionerReuse({ attempts, maxAge }))` to
260
+ Set a Hetzner or Boat provisioner's `reuse` to `Option.some(new ProvisionerReuse({ attempts, maxAge }))` to
245
261
  reuse clean machines of the same worker. `attempts` includes the first assignment; `maxAge`
246
262
  accepts positive compact durations such as `2h`, up to `24d`. Reuse requires Podman or Docker and runs
247
263
  preflight before each assignment. Cleanup or gateway-detach failure retires the machine.
@@ -380,4 +396,4 @@ Preparation creates `.usine/outputs/` and excludes `.usine/` from Git commits an
380
396
 
381
397
  boxd machines don't use SSH. Their endpoint is an `Exec` endpoint: the machine id and an `ExecTransport` that runs command lines on it through the `BoxdExec` service, in this process. `machineAt` gives such a machine an `ExecShell` instead of a `RemoteShell`, and `RemoteCommands`, liveness probes, containers, and the child host run its commands through the transport with no local program. Each boxd worker's driver builds one `BoxdExec` for its region, so every command of its machines shares one HTTP/2 connection, which holds the API key. `BoxdExec` raises the HTTP/2 connection and stream windows to 8 MiB, sends stdin in chunks of at most 64 KiB as the call writes them, pings a connection that receives nothing for 30 seconds, ends both output streams with every chunk received, and cancels the call when its scope closes. A call that ends without an exit code fails with `HostUnreachable`, so `RemoteCommands` fails with an `ExecutorOperationError` whose cause is `HostUnreachable`, and the readiness wait and liveness probe count the machine as not answering. `RemoteCommands` reports an SSH client's exit code 255 the same way, so no executor caller compares an exit code with 255, and a command on an exec shell that exits 255 itself returns that exit code. A boxd worker ignores `identity_file`, and its preflight warns when it is set; the executor pins no host key and writes no OpenSSH configuration for its machines. When a boxd machine stops answering, the executor asks boxd whether it still exists, and a deleted, stopped, failed, or destroyed machine ends its attempt as an infrastructure failure. If boxd's API fails, the machine counts as present and the attempt stays unresponsive.
382
398
 
383
- The SSH provisioner restores boxd machines from prepared snapshots with the configured egress allowlist, labels, and isolation in the restore request's machine spec, validates their captured size and region, waits one second for the allowlist before connecting, and disables idle timers. The transport sends account calls and `ListRegions` to the worker's `endpoint`, which defaults to `https://boxd.sh:9443`. With a region, it finds the region's API endpoint with `ListRegions` when it starts, keeps the account endpoint for the region that it serves, and fails preflight with the listed region ids when boxd lists no such region with an API endpoint; without a region, every call goes to the account endpoint. Preflight compares the snapshot's region with the region that boxd serves, and warns when boxd stores the snapshot archived rather than locally. Every revision of a worker with the same API key, endpoint, and region shares one API client and one `Exec` connection, and callers that wait for a client share its build's result. Over TLS or to a loopback address, a call carries the API key as the bearer; once boxd refuses the key as a bearer, the transport exchanges it for a session at the URL that `exchangeUrl` derives from the endpoint, as `@boxd-sh/sdk` 0.3.0 does. A call that boxd refuses with `UNAUTHENTICATED` on a session exchanges the key for a new session and runs once more. `Exec` calls carry the bearer that the other calls settled on, after a `whoami` probe when no call has settled it yet. The driver refuses to connect to a region whose API endpoint uses neither TLS nor a loopback address. Boat and boxd share the provisioner tailnet bootstrap. The gRPC transport uses a generated projection of the boxd 0.3.0 API behind a decoded client port; regenerate it with `pnpm boxd:generate` from this package. See [Add a boxd worker](https://docs.usine.dev/guides/add-a-boxd-worker/) for snapshot and live-test setup.
399
+ The SSH provisioner restores boxd machines from prepared snapshots with the configured egress allowlist, labels, and isolation in the restore request's machine spec and SSH off, validates the snapshot's region and, when `size` is set, its vCPU count and memory, logs the snapshot's size, waits one second for the allowlist before connecting, and disables idle timers. A boxd provisioner has no reuse policy: every attempt gets a new machine, and its driver has no `assign`, so an idle boxd machine is never reassigned. When the worker's configuration sets `reuse`, the provisioner's `ignoredReuse` carries it, and preflight warns that usine ignores it. The transport sends account calls and `ListRegions` to the worker's `endpoint`, which defaults to `https://boxd.sh:9443`. With a region, it finds the region's API endpoint with `ListRegions` when it starts, keeps the account endpoint for the region that it serves, and fails preflight with the listed region ids when boxd lists no such region with an API endpoint; without a region, every call goes to the account endpoint. usine keeps no fixed region list, so a worker can use a boxd deployment in the operator's own cloud account. Preflight compares the snapshot's region with the region that boxd serves, and warns when boxd stores the snapshot archived rather than locally. Every revision of a worker with the same API key, endpoint, and region shares one API client and one `Exec` connection, and callers that wait for a client share its build's result. Over TLS or to a loopback address, a call carries the API key as the bearer; once boxd refuses the key as a bearer, the transport exchanges it for a session at the URL that `exchangeUrl` derives from the endpoint, as `@boxd-sh/sdk` 0.3.0 does. A call that boxd refuses with `UNAUTHENTICATED` on a session exchanges the key for a new session and runs once more. `Exec` calls carry the bearer that the other calls settled on, after a `whoami` probe when no call has settled it yet. The driver refuses to connect to a region whose API endpoint uses neither TLS nor a loopback address. Boat and boxd share the provisioner tailnet bootstrap. The gRPC transport uses a generated projection of the boxd 0.3.0 API behind a decoded client port; regenerate it with `pnpm boxd:generate` from this package. See [Add a boxd worker](https://docs.usine.dev/guides/add-a-boxd-worker/) for snapshot and live-test setup.
@@ -0,0 +1,4 @@
1
+ export declare const mountField: (key: string, value: string) => string;
2
+ /** A bind mount with CSV quoting, which preserves commas and colons in paths. */
3
+ export declare const bindMount: (source: string, destination: string, access: "readonly" | "writable") => string;
4
+ //# sourceMappingURL=bind-mount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bind-mount.d.ts","sourceRoot":"","sources":["../src/bind-mount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAAS,MAAM,SAAS,MAAM,KAAG,MACb,CAAC;AAE5C,iFAAiF;AACjF,eAAO,MAAM,SAAS,WAAY,MAAM,eAAe,MAAM,UAAU,UAAU,GAAG,UAAU,WAMjF,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const mountField = (key, value) => `"${key}=${value.replaceAll('"', '""')}"`;
2
+ /** A bind mount with CSV quoting, which preserves commas and colons in paths. */
3
+ export const bindMount = (source, destination, access) => [
4
+ "type=bind",
5
+ mountField("source", source),
6
+ mountField("destination", destination),
7
+ ...(access === "readonly" ? ["readonly"] : []),
8
+ ].join(",");
9
+ //# sourceMappingURL=bind-mount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bind-mount.js","sourceRoot":"","sources":["../src/bind-mount.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,KAAa,EAAU,EAAE,CAC/D,IAAI,GAAG,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC;AAE5C,iFAAiF;AACjF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,WAAmB,EAAE,MAA+B,EAAE,EAAE,CAChG;IACE,WAAW;IACX,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,aAAa,EAAE,WAAW,CAAC;IACtC,GAAG,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;CAC/C,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { admitBrain, AdmissionContext, catalog } from "@usine/agents/harness";
1
+ import { admitBrain, AdmissionContext, catalog, codingAgent } from "@usine/agents/harness";
2
2
  import { Harnesses } from "@usine/agents/harness/node";
3
3
  import { ApiKeyCredential, CreateSandbox, ProviderGrant, SandboxCredentials, sandboxName, } from "@usine/cloudflare";
4
4
  import { harnessEnvironment, SANDBOX_HOME } from "@usine/cloudflare/harness";
@@ -48,7 +48,7 @@ const isExecutorError = Schema.is(ExecutorError);
48
48
  const operationError = (operation) => (error) => ExecutorOperationError.make({ operation, message: error.message, cause: error });
49
49
  /** Returns why `address` can't run `brain`, or `None` if it can. */
50
50
  const brainGap = (address, brain) => {
51
- const admitted = admitBrain(catalog, "coding-agent", brain, AdmissionContext.make({ placement: "sandbox", credential: "api-key" }));
51
+ const admitted = admitBrain(catalog, codingAgent, brain, AdmissionContext.make({ placement: "sandbox", credential: "api-key" }));
52
52
  if (Result.isFailure(admitted))
53
53
  return Option.some(WorkerCapabilityError.make({
54
54
  worker: address.name,
@@ -407,7 +407,7 @@ const makeCloudflareExecutor = (options) => Effect.gen(function* () {
407
407
  message: error.message,
408
408
  })), Effect.ignore));
409
409
  yield* createSandbox("preflight", worker, name, PREFLIGHT_ATTEMPT);
410
- yield* verifyHarnessReadiness(workerName, Option.none(), distinct, agentsHarnessProbe(harnesses, worker.shellFor(name), {}, "sandbox-api-key"));
410
+ yield* verifyHarnessReadiness(workerName, Option.none(), distinct, agentsHarnessProbe(harnesses, worker.shellFor(name), {}, "api-key", "sandbox"));
411
411
  }));
412
412
  }
413
413
  yield* Effect.logInfo("Cloudflare Worker preflight verified", {
@@ -507,7 +507,7 @@ const makeCloudflareExecutor = (options) => Effect.gen(function* () {
507
507
  // sandbox is the container that was checked when it was created.
508
508
  if (!request.reattach) {
509
509
  yield* createSandbox("prepare", worker, name, request.attemptId);
510
- yield* verifyHarnessReadiness(request.worker, Option.none(), [request.agent.brain], agentsHarnessProbe(harnesses, shell, {}, "sandbox-api-key"));
510
+ yield* verifyHarnessReadiness(request.worker, Option.none(), [request.agent.brain], agentsHarnessProbe(harnesses, shell, {}, "api-key", "sandbox"));
511
511
  }
512
512
  const access = yield* acquireSandbox(worker, name, request.attemptId, request.repository, request.permissions, "prepare");
513
513
  const host = {
@@ -1 +1 @@
1
- {"version":3,"file":"cloudflare.js","sourceRoot":"","sources":["../../src/cloudflare/cloudflare.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,kBAAkB,EAElB,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,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AC,IAAI,CACjB,QAAQ,EACR,QAAQ,CAAC,EAAE,CAAC;QACV,IAAI,EAAE,YAAY;QAClB,OAAO;QACP,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,SAAS;QACT,OAAO;QACP,KAAK,EAAE,MAAM,CAAC,IAAI;KACnB,CAAC,CACH,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC;AAEL;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,OAAkC,EAUlC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;AAQ1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const CONTAINER_LIMITS_SCRIPT: string;
2
+ //# sourceMappingURL=container-limits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container-limits.d.ts","sourceRoot":"","sources":["../src/container-limits.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,QAMnC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export const CONTAINER_LIMITS_SCRIPT = String.raw `
2
+ read quota period < /sys/fs/cgroup/cpu.max
3
+ awk -v q="$quota" -v p="$period" -v cpus="$1" 'BEGIN { exit !(q != "max" && p > 0 && q >= int(cpus * p + 0.5) - 1 && q <= int(cpus * p + 0.5) + 1) }'
4
+ [ "$(cat /sys/fs/cgroup/memory.max)" = "$2" ]
5
+ [ "$(cat /sys/fs/cgroup/memory.swap.max)" = 0 ]
6
+ [ "$(cat /sys/fs/cgroup/pids.max)" = "$3" ]
7
+ `;
8
+ //# sourceMappingURL=container-limits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container-limits.js","sourceRoot":"","sources":["../src/container-limits.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMhD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { WorkerName } from "@usine/core/worker";
2
+ import { Effect } from "effect";
3
+ import { type ExecutorError } from "./executor.ts";
4
+ /** Returns whether `error`, or a cause it wraps, reports that the disk is full. */
5
+ export declare const reportsDiskFull: (error: ExecutorError) => boolean;
6
+ /**
7
+ * Returns `effect` with a failure of one of the executor's own commands that ran out of disk
8
+ * space on `worker` replaced by a `disk` capability error, so the Worker waits for a preflight
9
+ * that passes instead of the Attempt failing as if its task were blocked.
10
+ */
11
+ export declare const classifyDiskFull: <A, R>(worker: WorkerName, effect: Effect.Effect<A, ExecutorError, R>) => Effect.Effect<A, ExecutorError, R>;
12
+ //# sourceMappingURL=disk-full.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disk-full.d.ts","sourceRoot":"","sources":["../src/disk-full.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAa,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,KAAK,aAAa,EAAyB,MAAM,eAAe,CAAC;AAK1E,mFAAmF;AACnF,eAAO,MAAM,eAAe,UAAW,aAAa,KAAG,OActD,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAE,CAAC,UAC3B,UAAU,UACV,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,KACzC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAkBjC,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { Effect, Predicate } from "effect";
2
+ import { WorkerCapabilityError } from "./executor.js";
3
+ /** What Node, Git, Docker, and Podman print when a write fails because the disk is full. */
4
+ const DISK_FULL = /ENOSPC|no space left on device/iu;
5
+ /** Returns whether `error`, or a cause it wraps, reports that the disk is full. */
6
+ export const reportsDiskFull = (error) => {
7
+ const seen = new Set();
8
+ let current = error;
9
+ while (Predicate.isObject(current) && !seen.has(current)) {
10
+ seen.add(current);
11
+ if ("message" in current &&
12
+ Predicate.isString(current.message) &&
13
+ DISK_FULL.test(current.message))
14
+ return true;
15
+ current = "cause" in current ? current.cause : undefined;
16
+ }
17
+ return Predicate.isString(current) && DISK_FULL.test(current);
18
+ };
19
+ const isDiskFull = (error) => !(error._tag === "WorkerCapabilityError" && error.capability === "disk") &&
20
+ reportsDiskFull(error);
21
+ /**
22
+ * Returns `effect` with a failure of one of the executor's own commands that ran out of disk
23
+ * space on `worker` replaced by a `disk` capability error, so the Worker waits for a preflight
24
+ * that passes instead of the Attempt failing as if its task were blocked.
25
+ */
26
+ export const classifyDiskFull = (worker, effect) => Effect.catchIf(effect, isDiskFull, (error) => Effect.logWarning("A worker command ran out of disk space; the worker needs a preflight", {
27
+ worker,
28
+ error: error._tag,
29
+ message: error.message,
30
+ }).pipe(Effect.andThen(Effect.fail(WorkerCapabilityError.make({
31
+ worker,
32
+ capability: "disk",
33
+ message: `Worker "${worker}" ran out of disk space: ${error.message}`,
34
+ cause: error,
35
+ })))));
36
+ //# sourceMappingURL=disk-full.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disk-full.js","sourceRoot":"","sources":["../src/disk-full.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAsB,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE1E,4FAA4F;AAC5F,MAAM,SAAS,GAAG,kCAAkC,CAAC;AAErD,mFAAmF;AACnF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAoB,EAAW,EAAE;IAC/D,MAAM,IAAI,GAAG,IAAI,GAAG,EAAW,C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AAM,4BAA4B,KAAK,CAAC,OAAO,EAAE;IACrE,KAAK,EAAE,KAAK;CACb,CAAC,CACH,CACF,CACF,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"exe-dev.d.ts","sourceRoot":"","sources":["../../src/exe-dev/exe-dev.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,KAAK,MAAM,EAAU,KAAK,EAAU,MAAM,QAAQ,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAA8B,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAMtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA6FxD;;;;GAIG;AACH,eAAO,MAAM,KAAK,YACP,qBAAqB,KAC7B,KAAK,CAAC,KAAK,CACZ,QAAQ,EACR,KAAK,EACL,cAAc,GAAG,SAAS,GAAG,mBAAmB,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAC9B,CAAC;AAEzD,OAAO,EACL,sBAAsB,EACtB,KAAK,qBAAqB,EAC1B,iBAAiB,EACjB,eAAe,GAChB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"exe-dev.d.ts","sourceRoot":"","sources":["../../src/exe-dev/exe-dev.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,KAAK,MAAM,EAAU,KAAK,EAAU,MAAM,QAAQ,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAA8B,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAMtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA8FxD;;;;GAIG;AACH,eAAO,MAAM,KAAK,YACP,qBAAqB,KAC7B,KAAK,CAAC,KAAK,CACZ,QAAQ,EACR,KAAK,EACL,cAAc,GAAG,SAAS,GAAG,mBAAmB,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAC9B,CAAC;AAEzD,OAAO,EACL,sBAAsB,EACtB,KAAK,qBAAqB,EAC1B,iBAAiB,EACjB,eAAe,GAChB,MAAM,YAAY,CAAC"}
@@ -72,6 +72,7 @@ const makeExeDevExecutor = (options) => Effect.gen(function* () {
72
72
  repositoryUrl: (_machine, repository) => `https://${EDGE_GITHUB_HOST}/${repository}.git`,
73
73
  // exe.dev Workers have no Gateway; every harness uses its own login.
74
74
  gatewayCredential: () => Effect.succeedNone,
75
+ credentialRoute: () => "host-login",
75
76
  grantFor,
76
77
  readOnlyAccessGap: Option.some("An exe.dev GitHub integration has the access of exe.dev's GitHub App, which can't be limited to read-only"),
77
78
  reclaim: () => Effect.void,
@@ -1 +1 @@
1
- {"version":3,"file":"exe-dev.js","sourceRoot":"","sources":["../../src/exe-dev/exe-dev.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrE,OAAO,EAAe,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEtE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,yEAAyE;AACzE,M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,EAAE,CAAC,MAAM,CAAC,WAAW;QAC3C,eAAe,EAAE,GAAG,EAAE,CAAC,YAAY;QACnC,QAAQ;QACR,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAC5B,2GAA2G,CAC5G;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI;QAC1B,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,YAAY;KACvD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL;;;;GAIG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,OAA8B,EAK9B,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAEzD,OAAO,EACL,sBAAsB,EAEtB,iBAAiB,EACjB,eAAe,GAChB,MAAM,YAAY,CAAC"}
@@ -15,7 +15,7 @@ import { type Brand, Context, Effect, Option, Redacted, type Result, Schema, Sco
15
15
  export declare const githubBotLogin: (kind: WorkerKind, appLogin: BotLogin) => BotLogin;
16
16
  export declare const ExecutorOperation: Schema.Literals<readonly ["preflight", "prepare", "launch", "cancel", "cleanup"]>;
17
17
  export type ExecutorOperation = typeof ExecutorOperation.Type;
18
- export declare const WorkerCapability: Schema.Literals<readonly ["machine", "toolchain", "memory", "harness-login", "credentials", "gateway", "container", "provider"]>;
18
+ export declare const WorkerCapability: Schema.Literals<readonly ["machine", "toolchain", "memory", "disk", "harness-login", "credentials", "gateway", "container", "provider"]>;
19
19
  export type WorkerCapability = typeof WorkerCapability.Type;
20
20
  declare const ExecutorOperationError_base: Schema.Class<ExecutorOperationError, Schema.TaggedStruct<"ExecutorOperationError", {
21
21
  /** `cleanup` includes removing a checkout, its credential, or credentials left by an earlier process. */
@@ -53,6 +53,8 @@ declare const WorkerCapabilityError_base: Schema.Class<WorkerCapabilityError, Sc
53
53
  * - `toolchain`: Git or a brain's harness doesn't run.
54
54
  * - `memory`: less than 1.5 GiB per concurrent Attempt, no swap for more than one, or memory
55
55
  * not reported.
56
+ * - `disk`: the machine has less free disk space than its threshold, or a command of the
57
+ * executor ran out of disk space.
56
58
  * - `harness-login`: a brain's harness isn't logged in.
57
59
  * - `credentials`: an exe.dev integration isn't ready, or the Worker kind can't issue a
58
60
  * read-only credential for a `permissions: read` Loop.
@@ -63,7 +65,7 @@ declare const WorkerCapabilityError_base: Schema.Class<WorkerCapabilityError, Sc
63
65
  * - `provider`: a provisioned Worker's provider refuses its token, or its image, SSH key,
64
66
  * network, server type, or location doesn't exist there.
65
67
  */
66
- readonly capability: Schema.Literals<readonly ["machine", "toolchain", "memory", "harness-login", "credentials", "gateway", "container", "provider"]>;
68
+ readonly capability: Schema.Literals<readonly ["machine", "toolchain", "memory", "disk", "harness-login", "credentials", "gateway", "container", "provider"]>;
67
69
  readonly message: Schema.NonEmptyString;
68
70
  /** The observed value, for example unrecognized `git --version` output or the harness readiness report. */
69
71
  readonly cause: Schema.Defect;
@@ -112,6 +114,11 @@ export interface PreflightReport {
112
114
  * the machine. `None` if the Worker runs no containers or the preflight checked no machine.
113
115
  */
114
116
  readonly containerLimits: Option.Option<ContainerLimits>;
117
+ /**
118
+ * What the preflight found missing that Attempts run without, for operators, such as a kernel
119
+ * log that the SSH user can't read, which leaves out-of-memory kills without process names.
120
+ */
121
+ readonly findings: ReadonlyArray<string>;
115
122
  }
116
123
  /** The report of a Worker that runs Attempts as designed, without containers. */
117
124
  export declare const fullPreflight: PreflightReport;
@@ -154,8 +161,15 @@ declare const CheckoutRequest_base: Schema.Class<CheckoutRequest, Schema.Struct<
154
161
  readonly maxAttemptMinutes: Schema.Option<Schema.Int>;
155
162
  /** The maximum tokens consumed by the parent and all children, or `None` for no limit. Holds don't pause it. */
156
163
  readonly maxAttemptTokens: Schema.Option<Schema.Int>;
164
+ /**
165
+ * The minutes an idle child that answered waits for its background work to start a turn, or
166
+ * `None` for no limit; copied into the RunSpec.
167
+ */
168
+ readonly maxBackgroundWaitMinutes: Schema.withConstructorDefault<Schema.Option<Schema.Int>>;
157
169
  /** The Pi parent's reasoning effort. The launch fails if the model doesn't support it. */
158
170
  readonly parentEffort: Schema.Literals<readonly ["off", "minimal", "low", "medium", "high", "xhigh", "max"]>;
171
+ /** What coordinates the Attempt's children, copied into the RunSpec. */
172
+ readonly coordinator: Schema.withConstructorDefault<Schema.Literals<readonly ["session", "events"]>>;
159
173
  /** The ref that unfinished work is pushed to if the Attempt doesn't succeed. */
160
174
  readonly salvageRef: Schema.brand<Schema.NonEmptyString, "SalvageRef">;
161
175
  /** The previous Attempt's pushed salvage, checked out instead of `revision`. */
@@ -175,6 +189,11 @@ declare const CheckoutRequest_base: Schema.Class<CheckoutRequest, Schema.Struct<
175
189
  * success without a CI handoff verifies the pull request of the checkout's branch on origin.
176
190
  */
177
191
  readonly requiresCi: Schema.Boolean;
192
+ /**
193
+ * The labels the Item must carry after a successful Attempt, copied into the RunSpec; empty
194
+ * disables the check.
195
+ */
196
+ readonly outcomeLabels: Schema.withConstructorDefault<Schema.$Array<Schema.brand<Schema.String, "GitHubLabelName">>>;
178
197
  /**
179
198
  * The author and committer of every commit that the Attempt's parent and children make. Their
180
199
  * environment sets it, so no git config on the Worker's machine applies.
@@ -301,6 +320,8 @@ declare const MachineCheck_base: Schema.Class<MachineCheck, Schema.Struct<{
301
320
  * or `None` if the machine has no Docker.
302
321
  */
303
322
  readonly containerLimits: Schema.Option<typeof ContainerLimits>;
323
+ /** The machine's preflight findings, as in `PreflightReport`. */
324
+ readonly findings: Schema.$Array<Schema.String>;
304
325
  }>, Brand.Brand<"@usine/executor/executor/MachineCheck">>;
305
326
  /** The machine preflight of a provisioned Worker's first machine each day. */
306
327
  export declare class MachineCheck extends MachineCheck_base {