code60-transmission-server 0.0.0-stage → 0.1.0-staging.12

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 (98) hide show
  1. package/LICENSE +180 -0
  2. package/README.engine.md +463 -0
  3. package/README.md +376 -2
  4. package/dist/src/broker/filesystem.js +385 -0
  5. package/dist/src/broker/index.js +734 -0
  6. package/dist/src/broker/native/README.md +207 -0
  7. package/dist/src/broker/native/build.js +46 -0
  8. package/dist/src/broker/native/command-helper.c +93 -0
  9. package/dist/src/broker/native/fs-helper.c +529 -0
  10. package/dist/src/broker/native/git-helper.c +205 -0
  11. package/dist/src/broker/policy.js +149 -0
  12. package/dist/src/broker/startup-lock.js +14 -0
  13. package/dist/src/broker/types.js +11 -0
  14. package/dist/src/cli/configure.js +208 -0
  15. package/dist/src/cli/daemon.js +369 -0
  16. package/dist/src/cli/helpers.js +112 -0
  17. package/dist/src/cli/main.js +189 -0
  18. package/dist/src/cli/runtime-build.js +38 -0
  19. package/dist/src/config/coding-policy.js +4 -0
  20. package/dist/src/config/deployment.js +183 -0
  21. package/dist/src/config/documents.js +29 -0
  22. package/dist/src/config/profile-validation.js +129 -0
  23. package/dist/src/config/schema-graph.js +237 -0
  24. package/dist/src/config/schema-loader.js +185 -0
  25. package/dist/src/config/validation-pool.js +105 -0
  26. package/dist/src/config/validation-protocol.js +1 -0
  27. package/dist/src/config/validation-worker.js +106 -0
  28. package/dist/src/config/workflow-language.js +9 -0
  29. package/dist/src/config/workflow-schema.json +545 -0
  30. package/dist/src/config/workflow-types.js +1 -0
  31. package/dist/src/config/workflow-validation.js +95 -0
  32. package/dist/src/engine/budgets.js +50 -0
  33. package/dist/src/engine/clocks.js +27 -0
  34. package/dist/src/engine/commands.js +477 -0
  35. package/dist/src/engine/contracts.js +11 -0
  36. package/dist/src/engine/drain-state.js +31 -0
  37. package/dist/src/engine/effective-permissions.js +120 -0
  38. package/dist/src/engine/instruction-pins.js +205 -0
  39. package/dist/src/engine/retries.js +50 -0
  40. package/dist/src/engine/state.js +1 -0
  41. package/dist/src/engine/timing.js +23 -0
  42. package/dist/src/engine/tool-observations.js +87 -0
  43. package/dist/src/engine/workflow-engine.js +1862 -0
  44. package/dist/src/main.js +28 -0
  45. package/dist/src/mcp/catalog.js +71 -0
  46. package/dist/src/mcp/main.js +26 -0
  47. package/dist/src/mcp/server.js +177 -0
  48. package/dist/src/runtime/codex-app-server.js +91 -0
  49. package/dist/src/runtime/codex-executable.js +50 -0
  50. package/dist/src/runtime/containment.js +82 -0
  51. package/dist/src/runtime/engine-driver.js +221 -0
  52. package/dist/src/runtime/json-line-writer.js +192 -0
  53. package/dist/src/runtime/pinned-instruction-sources.js +24 -0
  54. package/dist/src/runtime/protocol-client.js +264 -0
  55. package/dist/src/runtime/protocol-pool.js +183 -0
  56. package/dist/src/runtime/protocol-projection.js +393 -0
  57. package/dist/src/runtime/protocol-types.js +1 -0
  58. package/dist/src/runtime/protocol-worker.js +18 -0
  59. package/dist/src/runtime/provider-bridge.js +290 -0
  60. package/dist/src/runtime/provider-credentials.js +41 -0
  61. package/dist/src/runtime/provider-transport.js +406 -0
  62. package/dist/src/runtime/runtime-broker.js +213 -0
  63. package/dist/src/runtime/workspace-instructions.js +120 -0
  64. package/dist/src/runtime/workspace-view.js +74 -0
  65. package/dist/src/server/api-contract.json +11629 -0
  66. package/dist/src/server/api-types.js +1 -0
  67. package/dist/src/server/application.js +44 -0
  68. package/dist/src/server/auth.js +67 -0
  69. package/dist/src/server/broker-handlers.js +242 -0
  70. package/dist/src/server/coding.js +281 -0
  71. package/dist/src/server/control-plane.js +50 -0
  72. package/dist/src/server/deployment.js +249 -0
  73. package/dist/src/server/errors.js +22 -0
  74. package/dist/src/server/history-handlers.js +127 -0
  75. package/dist/src/server/http.js +124 -0
  76. package/dist/src/server/paging.js +56 -0
  77. package/dist/src/server/publication.js +119 -0
  78. package/dist/src/server/tool-event-handler.js +77 -0
  79. package/dist/src/server/workspace-handlers.js +34 -0
  80. package/dist/src/storage/coordinator.js +224 -0
  81. package/dist/src/storage/startup-lock.js +71 -0
  82. package/dist/src/storage/store.js +167 -0
  83. package/dist/src/tools/check-worker.js +81 -0
  84. package/dist/src/tools/checks.js +117 -0
  85. package/dist/src/tools/command-check.js +34 -0
  86. package/dist/src/tools/commands.js +312 -0
  87. package/dist/src/tools/developer.js +353 -0
  88. package/dist/src/tools/dns.js +248 -0
  89. package/dist/src/tools/http-contract.js +38 -0
  90. package/dist/src/tools/http.js +358 -0
  91. package/dist/src/tools/index.js +194 -0
  92. package/dist/src/tools/worker-check.js +73 -0
  93. package/dist/src/workspaces/git.js +227 -0
  94. package/dist/src/workspaces/index.js +937 -0
  95. package/dist/src/workspaces/source.js +295 -0
  96. package/examples/deployment.local.json +22 -0
  97. package/package.json +71 -4
  98. package/scripts/postinstall.mjs +26 -0
package/README.md CHANGED
@@ -1,3 +1,377 @@
1
- # Temporary Holding Version
1
+ # Code60 Transmission Server
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A local workflow server for running bounded coding-agent steps against a Git
4
+ workspace. It stores workflow state, approvals and tool authority in SQLite,
5
+ brokers file, command and network access, and returns verified coding changes
6
+ as an uncommitted diff. Low-level workflows also support Git commit results.
7
+
8
+ From this checkout, run `npm run build`, then use `node dist/src/cli/main.js`
9
+ in place of `npx -y code60-transmission-server` in the commands below.
10
+
11
+ ## Run with npx (MCP)
12
+
13
+ For coding tasks, configure the installed Codex executable, provider/model, and
14
+ an existing private API-key file once:
15
+
16
+ ```sh
17
+ npx -y code60-transmission-server configure --executable /absolute/path/to/codex --provider openrouter --model openai/gpt-5.3-codex --credential-file /absolute/path/to/provider.token
18
+ npx -y code60-transmission-server doctor --repository /absolute/path/to/project
19
+ ```
20
+
21
+ `configure` also offers interactive prompts when run in a terminal. It enables
22
+ brokered commands with outbound networking and discovers installed toolchain
23
+ directories. It does not import your Codex login or ambient API keys.
24
+ `doctor --check-provider` explicitly makes a small billable model request;
25
+ ordinary readiness checks do not claim that provider authentication was verified.
26
+
27
+ The default MCP toolset is the compact coding interface. Call
28
+ `get_coding_readiness`, then `start_coding_task` with a stable `idempotencyKey`
29
+ and `body: { repositoryPath, task }`. Existing staged, unstaged, and untracked
30
+ source changes become the baseline. Workers can inspect/edit source, run builds
31
+ and tests, ask questions, and receive `send_task_message` guidance. Inspect
32
+ `get_run` and `get_coding_task_result` for the diff and executable check evidence.
33
+ Successful coding tasks leave HEAD and staging unchanged and edits uncommitted.
34
+
35
+ For an existing deployment, stop its daemon and run `code60 configure --coding-only`
36
+ to enable coding tools and outbound commands while preserving its provider,
37
+ model, credential references, and runtime settings. Profile permissions and
38
+ deployment permissions both apply: a profile cannot override a deployment deny.
39
+ `doctor` reports missing deployment grants before a task spends model tokens.
40
+
41
+ After upgrading, stop the old daemon and reconnect your MCP client. The launcher
42
+ detects mismatched engine builds and reports the restart command; it preserves
43
+ runs and never automatically replaces a running engine. `mcp-config` pins the
44
+ installed package version, including prereleases, so a staging installation does
45
+ not silently generate a client configuration for the stable release. Select
46
+ `code60-transmission-server@staging` explicitly when testing the staging release.
47
+ Tasks without executable checks explicitly report `unverified`.
48
+ Codex installed through npm is supported: configuration resolves its launcher
49
+ to the native platform binary while keeping the runtime sandbox restricted.
50
+
51
+ Run an existing published workflow from the default toolset with `list_workflows`,
52
+ `list_workspaces`, `get_workflow_version`, and `start_workflow_run`:
53
+
54
+ ```json
55
+ {"idempotencyKey":"my-saved-workflow-task","body":{"workflowVersionId":"VERSION_FROM_LIST_WORKFLOWS","workspaceId":"TARGET_FROM_LIST_WORKSPACES"}}
56
+ ```
57
+
58
+ This runs the saved version with its pinned worker/verifier profiles and leaves
59
+ the result uncommitted by default. The target workspace is the project to edit;
60
+ it can differ from the folder containing the workflow JSON. Workspace instruction
61
+ files such as `task.md` must exist in that target project. A genuinely missing
62
+ task still needs to be supplied. A new task without a saved workflow uses
63
+ `start_coding_task`. Follow either kind of run with `get_run` and `list_run_events`.
64
+
65
+ Use `--toolset admin` to author/publish workflows and profiles and advertise the
66
+ complete administrative catalog. Existing low-level calls remain dispatchable in either toolset. Their
67
+ default result mode remains automatic commits; select `resultMode: working_tree`
68
+ to accept a revision without committing. Commit mode requires clean source.
69
+
70
+ The [coding-task example](examples/coding-task/README.md) demonstrates a real bug
71
+ reproduction, fix, regression test, build, and preservation of existing work:
72
+ `npm run example:coding-task`.
73
+
74
+ Releases additionally require the [installed-package acceptance gate](scripts/acceptance/README.md):
75
+ a live Codex MCP client must discover the default tools and complete fresh saved
76
+ and built-in coding tasks without developer intervention. The exact accepted
77
+ tarball is staged; missing live credentials or failed acceptance blocks staging.
78
+
79
+ On macOS with Node.js **24.22.0 or newer in the 24.x line** and Xcode Command
80
+ Line Tools (`/usr/bin/clang` and Git), any MCP client can start and connect to
81
+ the server directly via `npx` — no separate daemon startup is required:
82
+
83
+ ```json
84
+ {
85
+ "mcpServers": {
86
+ "code60": {
87
+ "command": "npx",
88
+ "args": ["-y", "code60-transmission-server"]
89
+ }
90
+ }
91
+ }
92
+ ```
93
+
94
+ Or print the ready-to-paste client entry from Terminal:
95
+
96
+ ```sh
97
+ npx -y code60-transmission-server mcp-config
98
+ ```
99
+
100
+ On first connection, the launcher compiles the native macOS containment helpers
101
+ (during install or on demand into a private user-owned directory), creates a
102
+ private `0700` state directory at
103
+ `~/Library/Application Support/Code60 Transmission/state` with `0600`
104
+ `configuration.json` and `operator.token`, and starts one shared detached
105
+ background engine for that state directory. Multiple MCP clients share the same
106
+ engine, and closing an MCP client leaves the engine running so active runs are
107
+ not interrupted. Pass `--state-directory /absolute/path` to isolate an
108
+ independent state directory.
109
+
110
+ Inspect or stop the background engine at any time:
111
+
112
+ ```sh
113
+ npx -y code60-transmission-server status
114
+ npx -y code60-transmission-server stop
115
+ ```
116
+
117
+ The default state directory and port (`31260`) are shared cleanly with the
118
+ macOS `.pkg` installer below. Before changing `configuration.json` or upgrading
119
+ to a new package version, let active runs finish, run `stop`, and reconnect.
120
+ Registered workspaces must be standalone Git repositories prepared normally on
121
+ disk (with a real `.git` directory, at least one commit, and no hardlinked
122
+ `.git/objects` files—do not initialize repositories inside a sandbox that
123
+ forbids deleting files, and use `git clone --no-hardlinks` for local clones).
124
+
125
+ ## Install on macOS
126
+
127
+ Open the Code60 Transmission `.pkg` for your Mac's architecture. It installs
128
+ the engine, stdio MCP bridge, Node.js, SQLite binding, and both native helpers
129
+ for your macOS account. Both the engine and bridge use the bundled Node runtime.
130
+ The package targets macOS 14 or newer.
131
+
132
+ To get the connection settings for your desktop MCP client, run this command in Terminal.
133
+
134
+ ```sh
135
+ "$HOME/Library/Application Support/Code60 Transmission/app/code60" mcp-config
136
+ ```
137
+
138
+ Copy the printed server entry into your client's MCP settings. For a client
139
+ with separate fields, use the printed absolute path as its stdio command and
140
+ leave the arguments empty. The first connection creates a private operator
141
+ token and configuration and starts one engine in your macOS login session.
142
+ Each client gets its own bridge. The engine stays running after clients close.
143
+
144
+ The installed launcher also supports `configure`, `doctor`, `status`, and
145
+ `stop`. Run `code60 stop` before reconfiguring a running installation, then
146
+ reconnect the MCP client. Use `code60 mcp --toolset admin` for the full catalog.
147
+
148
+ Private configuration, token, database, and engine log live together in
149
+ `~/Library/Application Support/Code60 Transmission/state/`, outside the installed
150
+ `app/` directory. The default API port is `31260`. If that port is in use,
151
+ set `listenPort` in `state/configuration.json` to a free port and reconnect.
152
+ The bridge reads the same setting. The initial deployment supports operator
153
+ setup. To run coding-agent steps, configure the Codex CLI and a model provider
154
+ as described in [Configure and run](#configure-and-run). Git workspace operations
155
+ use Apple's Command Line Tools Git and your configured author identity.
156
+
157
+ Before an upgrade or a configuration reload, let active runs finish, disconnect
158
+ the clients, and stop the loaded engine.
159
+
160
+ ```sh
161
+ launchctl bootout "gui/$(id -u)/com.codemanufactory.code60.transmission"
162
+ ```
163
+
164
+ Install the new package or edit the private configuration, then reconnect.
165
+ Reinstalling updates the application and preserves the private state.
166
+
167
+ ## Build the macOS installer
168
+
169
+ On a build Mac of the target architecture, use the official unpacked Node
170
+ 24.22.0 or newer 24.x distribution (including its `LICENSE`), npm, and Apple's
171
+ Command Line Tools.
172
+
173
+ ```sh
174
+ npm ci
175
+ npm run package:macos
176
+ ```
177
+
178
+ The output is `dist/installers/Code60-Transmission-<version>-<arch>.pkg`.
179
+ The build stages a fresh TypeScript compilation, native helpers, and locked
180
+ production dependencies. It checks architecture, deployment targets, dynamic
181
+ library paths, and the bundled SQLite binding. The default build is unsigned
182
+ for local testing. For a public release, set `APPLICATION_SIGN_IDENTITY` and
183
+ `INSTALLER_SIGN_IDENTITY` to your Developer ID Application and Installer
184
+ identities, and set `NOTARY_PROFILE` to your notarytool Keychain profile.
185
+ The same build command then signs the native code and package, submits it to
186
+ Apple, staples the ticket, and checks Gatekeeper acceptance.
187
+
188
+ In a separate macOS login account with port 31260 available and no installed
189
+ Transmission engine, run `node scripts/smoke-macos-package.mjs /absolute/path/to/the.pkg`.
190
+ It checks the installer domain and exercises the extracted payload with two MCP
191
+ clients and a real per-user engine, then removes its temporary service and files.
192
+
193
+ ## Requirements for building from source
194
+
195
+ - macOS, for the native containment used by the runtime and helpers.
196
+ - Node.js **24.22.0 or newer in the 24.x line**, and npm.
197
+ - An installed Codex CLI with `app-server` support.
198
+ - Xcode Command Line Tools (`/usr/bin/clang`), including a C toolchain, and Git
199
+ with your existing author identity available for workspace commits.
200
+
201
+ ## Install and build
202
+
203
+ From the checkout:
204
+
205
+ ```sh
206
+ npm ci
207
+ npm run build
208
+ ```
209
+
210
+ The build emits TypeScript **and compiles both C helpers** into
211
+ `dist/src/broker/native/.build/`. Starting the server does not build them.
212
+
213
+ ## Configure and run
214
+
215
+ For a complete first run with a real model, follow
216
+ [the hello-world example](examples/hello-world/README.md). After building and
217
+ setting `OPENROUTER_API_KEY`, run `npm run example:hello-world`. It creates its
218
+ own disposable Git workspace and private configuration, runs the workflow,
219
+ checks the artifact and acceptance commit, and stops the server.
220
+
221
+ Start with [examples/deployment.local.json](examples/deployment.local.json).
222
+ It contains no secrets, leaves the runtime disabled, and denies all tool access.
223
+ Uppercase `REPLACE_WITH_...` values are placeholders. Before enabling the runtime,
224
+ set your Codex executable's absolute path, the local model ID/effort, and an unused
225
+ loopback model port served by an owned Responses-compatible synthetic provider.
226
+ No model provider is started for you.
227
+
228
+ Keep state and private files outside the checkout. For a **new** state directory:
229
+
230
+ ```sh
231
+ ROOT="$(pwd -P)"
232
+ STATE="$HOME/code60-engine-state"
233
+ mkdir -m 700 "$STATE" &&
234
+ install -m 600 examples/deployment.local.json "$STATE/configuration.json" &&
235
+ node --input-type=module -e 'import { randomBytes } from "node:crypto"; import { writeFileSync } from "node:fs"; writeFileSync(process.argv[1], randomBytes(32).toString("base64url") + "\n", { mode: 0o600, flag: "wx" });' "$STATE/operator.token"
236
+ ```
237
+
238
+ Edit that private configuration copy. Keep it and the token owned by your user,
239
+ mode `0600`, without symlinks or hardlinks. The state directory must be `0700`.
240
+ Never put the token in configuration JSON, command arguments or Git.
241
+
242
+ ```sh
243
+ npm start -- \
244
+ --state-directory "$STATE" \
245
+ --fs-helper "$ROOT/dist/src/broker/native/.build/fs-helper" \
246
+ --git-helper "$ROOT/dist/src/broker/native/.build/git-helper" \
247
+ --configuration "$STATE/configuration.json" \
248
+ --operator-token-file "$STATE/operator.token"
249
+ ```
250
+
251
+ All five paths must be absolute. With the example ports, the authenticated API
252
+ is at `http://127.0.0.1:31260/api/v1`. There is no unauthenticated health route or
253
+ automatic login. Read the private token in your API client, then follow the
254
+ [operator walkthrough and recovery rules](README.engine.md#operator-api-walkthrough)
255
+ to register an explicitly authorized Git workspace, publish profiles/workflows,
256
+ and start a run. The disabled example supports API setup, not agent execution.
257
+
258
+ ## Connect an agent over MCP
259
+
260
+ Start the Transmission Server with your private deployment configuration, then
261
+ configure your MCP client to launch the built stdio bridge. For clients that use
262
+ an `mcpServers` configuration, replace both absolute paths and use the engine's
263
+ configured port.
264
+
265
+ ```json
266
+ {
267
+ "mcpServers": {
268
+ "code60": {
269
+ "command": "node",
270
+ "args": [
271
+ "/absolute/path/to/code60-transmission-server/dist/src/mcp/main.js",
272
+ "--port", "31260",
273
+ "--operator-token-file", "/absolute/path/to/private/operator.token"
274
+ ]
275
+ }
276
+ }
277
+ }
278
+ ```
279
+
280
+ The client launches one bridge per connection. The bridge reads the private token
281
+ file on startup and authenticates to the engine on IPv4 loopback. The agent can
282
+ exercise the configured operator’s authority, including approval decisions and
283
+ recovery. Workspace registration requires an unrestricted operator. To execute
284
+ agent steps, enable and configure the deployment runtime.
285
+
286
+ 1. Discover runtimes and named checks, then register an authorized worktree with
287
+ `create_workspace`. Use the selected provider's `credentialReferences`
288
+ from `get_runtime_configuration` as `credentialRefs.provider` when publishing
289
+ a worker with `create_agent_profile`.
290
+ 2. Call `get_workflow_schema` and `get_workflow_example`, or read the MCP
291
+ resources `code60://workflow/schema` and `code60://workflow/example`.
292
+ Replace the example’s worker placeholder with
293
+ the profile’s `latestVersionId`. Pass the YAML or JSON source and any bundled
294
+ resources to `validate_workflow`, then publish with `create_workflow`.
295
+ 3. Call `create_run` with a unique `idempotencyKey` and a `body` containing
296
+ `workspaceId` and the workflow’s `latestVersionId` as `workflowVersionId`.
297
+ Save the returned `body.id`. A 202 response means the engine admitted the run.
298
+ 4. Read `get_run` or call `list_run_events` with `runId`, `follow: true`,
299
+ and `waitSeconds: 30`. Reuse each `body.nextCursor` as `cursor` on the next
300
+ poll, including after reconnecting. Inspect approvals, blocks, and artifacts
301
+ through their list and get tools. Closing the MCP client leaves the engine
302
+ running.
303
+
304
+ Tools return the HTTP `status` and engine `body` in structured content and text,
305
+ plus `etag`, `location`, and `idempotentReplay` when available. All POST tools
306
+ take `body` and `idempotencyKey`. Reuse the same arguments after a lost response.
307
+ For a conditional command, pass the target read’s `etag` as `ifMatch`. On a
308
+ stale-version error, reread the target before making a new decision. Poll
309
+ `get_operation` for asynchronous operator commands.
310
+
311
+ ## Workflow examples
312
+
313
+ - [Hello world](examples/hello-world/README.md): run a real agent, validate its
314
+ artifact, and verify the accepted Git commit. Run `npm run example:hello-world`.
315
+ - [Pull request lifecycle](examples/pull-request/README.md): clone the disposable
316
+ GitHub repository, create a worktree, make an agent change, push/open/merge a
317
+ PR, and delete the worktree. Run `npm run example:pull-request`.
318
+
319
+ ## Browse the API specification
320
+
321
+ With Docker running, start Swagger UI:
322
+
323
+ ```sh
324
+ npm run docs:api
325
+ ```
326
+
327
+ Open [http://localhost:8080](http://localhost:8080) to browse the OpenAPI specification.
328
+ The API server does not need to be running. Press Ctrl+C to stop the viewer and
329
+ remove its container. The first run downloads the Swagger UI image.
330
+
331
+ ## Tests
332
+
333
+ ```sh
334
+ npm run typecheck
335
+ npm test -- --maxWorkers=1
336
+ ```
337
+
338
+ `npm test` builds its own native helpers before running the suite, including the
339
+ normal-entrypoint and restart tests. Installed-runtime tests use
340
+ `CODE60_CODEX_EXECUTABLE` (an explicit absolute executable path) first, otherwise
341
+ look for `codex` on `PATH`; absence is a clear test failure, not a silent skip.
342
+ No Codex configuration or credentials are read by that lookup. To run just the
343
+ runtime pilot, use `npm run test:pilot -- --maxWorkers=1`. Run native builds/tests
344
+ serially. Preserved-image mode is optional, not needed for a fresh clone.
345
+ See [validation details](README.engine.md#validation) for focused checks.
346
+
347
+ ## Limits
348
+
349
+ - The [hello-world example](examples/hello-world/README.md) has live validation
350
+ through OpenRouter with GPT-5.3-Codex. Other provider/model combinations need
351
+ their own validation; the normal automated suite uses synthetic providers.
352
+ - Single host, one coordinator per state directory, loopback API only. No
353
+ multi-host service, public ingress or browser login is supplied.
354
+ - Broker tools include file/range reads, precise edits, directory creation,
355
+ paginated search/diffs, sandboxed commands and their input/output/stop controls,
356
+ questions, context retrieval, and `http_request`. Profile and deployment policy
357
+ both apply. Commands may use configured toolchains and outbound networking;
358
+ host credentials, engine state, and command writes to Git metadata are denied.
359
+ - Git-aware source tracking excludes ignored dependencies/build output and uses
360
+ streamed content-addressed checkpoints. Default source quotas are 100,000
361
+ entries, 1 GiB per file, and 10 GiB of unique source content per run. Configure
362
+ `sourceQuotas` to change these explicit operational bounds.
363
+ - Working-folder runs require exclusive source editing while commands execute.
364
+ Same-user external filesystem races are not a mandatory isolation boundary;
365
+ detected conflicts and uncertain commands retain their leases for recovery.
366
+ - Containment is macOS-only. Preserved-image test success does not establish
367
+ clean-build, sanitizer or cross-platform support.
368
+
369
+ See [README.engine.md](README.engine.md) for configuration, API, authorization,
370
+ instruction pinning, deadlines and recovery details.
371
+
372
+ ## Repository skills
373
+
374
+ Use `$add-workflow-example` to add or revise a runnable example with setup
375
+ instructions and end-to-end verification. The
376
+ [repository skill](.agents/skills/add-workflow-example/SKILL.md) describes the
377
+ required implementation and evidence.