You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 377db66
Browse filesBrowse the repository at this point in the historyBrowse files
roberttwang
committed
fix(sop): stream artifact handoffs and settle transfer failures
Copy file name to clipboardExpand all lines: docs/deployment.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,12 @@ The upstream process roles remain `-role api`, `-role worker` and `-role all`. A
191
191
192
192
Personal runners are connected from the execution-machine page with a short-lived binding code. The installer is served at `/runners/install.sh`. `AGENTFLOW_RUNNER_BINARY` can point to binaries with `{os}` and `{arch}` substitutions. Container images bundle Linux/macOS amd64/arm64 runner and gate binaries. Native source installations can build on demand with Go.
193
193
194
+
SOP deliverables support up to 20 MiB per file. Runner 0.13.0 and later transfer
195
+
declared files separately from the task completion report, so several files
196
+
can be handed off together. Installations with automatic Runner updates
197
+
enabled receive the bundled version after the platform release. Older Runners
198
+
keep their 1 MiB inline upload limit until they update.
199
+
194
200
Docker workspaces on macOS use a Linux Runner executable for Git credentials and MCP calls. The installer chooses the architecture of the installed macOS Runner, including Intel binaries running under Rosetta. For a universal Runner on Apple Silicon it installs the arm64 helpers and adds the amd64 helpers when available. Foreground starts and the command printed by `--no-start` select the native arm64 slice, including from a Rosetta shell. On Intel Macs the installer installs the amd64 helpers. By default, it places the helpers next to the host binary. A Runner-side `AGENTFLOW_RUNNER_BINARY` template with `{os}` selects the installation and runtime path. To install both helpers, use `{arch}` and give each architecture a distinct destination. The installer saves the template for upgrades and includes it in launchd and in the startup command printed by `--no-start`. Helper paths must resolve to files separate from the macOS Runner.
195
201
196
202
The installer checks the helper destinations against the staged macOS binary and installs the required Gate MCP helpers before replacing an installed Runner. When the existing Runner has a working Docker helper, an upgrade requires a compatible helper at the new Runner's configured path before replacing the binary and restarting the service. Relative templates in the installed launchd configuration use the job's working directory. The installer and updater validate the Linux executable's format, architecture, and load segments before replacing it. Custom installs keep a compatible existing helper. A Runner built from a local checkout can build its companion from that checkout. A download URL with an `{os}` placeholder can supply both binaries when used as the Runner's download source.
@@ -220,8 +226,9 @@ For an external MySQL deployment, review that migration and check column existen
220
226
Compose runs `migrations/042_run_artifacts_content_mediumtext.sql` before the
221
227
platform starts, including during `./start.sh pull`. The native development
222
228
script runs the same migration against its Compose database. It widens an existing
223
-
`run_artifacts.content` column from `TEXT` to `MEDIUMTEXT` for the 1 MiB artifact
224
-
contract and preserves existing data, character set, collation and nullability.
229
+
`run_artifacts.content` column from `TEXT` to `MEDIUMTEXT` for inline artifacts
230
+
and preserves existing data, character set, collation and nullability. Larger
231
+
files use separate chunk tables added at platform startup.
225
232
For a deployment using an external MySQL server and no Compose startup, run this
226
233
SQL file in the deployment's database upgrade step before starting the new binary.
227
234
If the Compose migration fails, review `docker compose --profile platform logs
fmt.Fprintf(&manifest, "## %s / repository-patch (%s)\n\nNo full diff is stored. The run workspace is the source of truth.\n\n%s\n\n", artifact.NodeID, artifact.RepositoryDir, summary)
fmt.Fprintf(manifest, "## %s / %s\n\n- path: `%s`\n- sha256: `%s`\n- bytes: %d\n\nRead this file; the body is not inlined in the prompt.\n\n", artifact.NodeID, artifact.Name, rel, artifact.SHA256, len(artifact.Content))
115
+
fmt.Fprintf(manifest, "## %s / %s\n\n- path: `%s`\n- sha256: `%s`\n- bytes: %d\n\nRead this file; the body is not inlined in the prompt.\n\n", artifact.NodeID, artifact.Name, rel, artifact.SHA256, max(artifact.Size, int64(len(artifact.Content))))
107
116
}
108
117
109
118
// recoverMisplacedArtifacts copies required deliverables into the sandbox when
0 commit comments