# RunFlow Governed container execution and API-driven DAG workflows. Version 0.2.0. Base URL: https://runflow.rodmena.co.uk The hosted service also answers at runflow.rodmena.app, a deprecated alias. Configure clients with runflow.rodmena.co.uk. Run untrusted or agent-generated code in a hardened Docker sandbox; compose runs into DAG workflows with retries, human-approval gates and scheduled triggers; receive signed webhooks for everything. Multi-tenant, quota-enforced, fail-closed. ## 1. Authentication Authorization: Bearer rak_<43 chars> Keys are **auth-issued** and returned exactly once at provisioning. RunFlow stores nothing recoverable. **Bare tenant-UUID keys are NOT accepted.** They were, until 2026-07-31, when the key and the tenant id stopped being the same value. Presenting one: 401 {"detail":"Tenant-UUID API keys are no longer accepted. Use the auth-issued key (rak_...) for this tenant."} Distinguish the 401s — they mean different things: | body | meaning | |---|---| | `Invalid API key` | not a key auth issued: malformed keys are refused without an auth call, and well-formed ones auth does not recognise get the same answer | | `Unknown API key` | auth recognises the key, but its tenant holds no RunFlow role | | `Tenant-UUID API keys are no longer accepted…` | the retired shape, with the remedy named | | `Missing bearer token` | no `Authorization` header, an empty one, or a scheme other than `Bearer` (the scheme is case-insensitive) | Without a working key, an `/api/v1` request gets the same answer whatever its path, method or query string. That answer is one of the 401s above, a 403 for a key whose tenant is not provisioned on this node, or a 503. A 404, 405, redirect or parameter error is only returned to a caller whose key works. A **503** means authorization was *undetermined* (auth unreachable) — it is retryable and is deliberately never rendered as a denial. Do not treat it as 401. `/health` and `/ping` need no key. `/metrics` is answered only to the local host and the estate's monitoring host, and anyone else gets 403 from the edge. **Getting a key.** A RODMENA platform asks the RunFlow agent on AgentBus (role `runflow`) and gets the key back in the sealed body of the reply. Anyone else contacts RODMENA (https://rodmena.com/contact/) for a key. **Unknown query parameters are refused** on every `/api/v1` route with 400, once your key has been accepted. The `detail` lists the supported parameters, or says `supported: none`. A cache-busting parameter such as `?cb=1` therefore gets a 400. To bypass a cache on `/api/v1`, send the header `Cache-Control: no-cache` instead. Paths outside `/api/v1` (`/health`, `/ping`, `/openapi.json`, `/llms.txt` and the pages) ignore query strings. **MCP.** MCP clients reach the API's operations as tools at `/mcp/`. The endpoint is stateless streamable HTTP and answers in JSON without a session id. Send the same `Authorization: Bearer ` header you use on `/api/v1`. A refused key gets the same status and `detail` body on `/mcp/` as on `/api/v1`, and once the key is accepted a query string on `/mcp/` gets 400 with `supported: none`. Permissions, tenant scoping and quotas are enforced by the REST endpoint code that each tool calls. ## 2. Runs | Method | Path | Notes | |---|---|---| | POST | `/api/v1/runs` | `{image, command, env?, tags?, scheduled_start?, webhook?, entrypoint?, image_scope?, sandbox?}` → `{track_id, status, eligible_start}` | | GET | `/api/v1/runs` | `?state_filter=&tag=&limit=&offset=&include_scheduling_info=`. `state_filter` takes ONE state; any other parameter name (e.g. `state`, `status`) is refused with 400 and the supported names | | | | run `state` vocabulary: `scheduled` `queued` `pulling` `running` `paused` `stopping` → terminal `exited` `failed` `timeout` `killed` (there is no `completed`; poll for those four) | | GET | `/api/v1/runs/{track_id}` | status, scheduling info, **env redacted** | | GET | `/api/v1/runs/{track_id}/logs` | `?stream=stdout\|stderr\|both&since=&limit=&tail=` → `{lines, next_since, eof, total_lines, capture}`. See "Logs" below | | GET | `/api/v1/runs/{track_id}/result` | exit code, duration, last 1 KB of stdout | | DELETE | `/api/v1/runs/{track_id}` | soft-delete; the row is purged on the normal retention clock, **not** exempted from it | | POST | `/api/v1/runs/{track_id}/{pause,resume,stop,kill}` | control | **Logs.** A bare call returns the start of the log. Page forward with `since=` until `next_since` equals `total_lines` (at most 1,000 lines a page). `stream=both` is the whole stdout log followed by the whole stderr log, not interleaved by time. Lines are split on `\n`, `\r` and `\r\n`, and invalid UTF-8 comes back as U+FFFD. Each stream is kept up to 128 MiB, counted in bytes. To know whether you hold the whole log, read `capture.status`, not the line count: - `complete`: every byte the container wrote to the requested streams is in the log. - `capped`: a stream reached the 128 MiB limit. RunFlow also writes a line starting `[runflow: log truncated at`, but a job can print that line itself. - `error`: capture ended early. `capture.streams..reason` says why. - `pending`: the run has not finished. - `unknown`: RunFlow holds no capture record for the run. That is the case for every run that finished before 15 November 2026, and those runs can be missing output from a job that wrote several MB in a second. `capture.streams.` also gives `bytes_received` and `bytes_written`. The same per-stream record is on `GET /api/v1/runs/{track_id}` as `log_capture`. `env` is encrypted at rest under a per-tenant key and **secret-pattern keys are redacted on every read path**. The container still receives the plaintext — so if your image echoes its environment, that lands in captured stdout, which we store. `idempotency_key` (1-128 characters) makes a submit safe to retry. The first submit with a key answers 202 and creates the run. A repeat with the same key and the same image, command and resource fields answers 200 with that run and `"idempotent_replay": true`, creates nothing and charges nothing. A repeat with different fields answers 409 `{"detail": {"code": "idempotency_key_reused", "track_id": ...}}`, as does a key whose run was deleted. Keys are per tenant and per node, and a key becomes free again when retention purges its run. `scheduled_start` defers a run. **A deferred run spends a `max_daily_runs` slot on the day you SUBMIT it** (the counter is by `submitted_at`), and when its time comes it needs a worker, an image pull and a container to do nothing but call back — so it is the wrong tool for an alarm clock; use a timer. (Correction 2026-08-01: this note previously claimed a deferred run holds a concurrency slot while waiting. It does not — `scheduled` was never counted by the gate.) ### Measured usage Each run in `GET /api/v1/runs` and `GET /api/v1/runs/{track_id}` carries `usage`: "usage": {"memory_current_mb": 412, "memory_peak_mb": 507, "cpu_usage_seconds": 38.2, "cpu_cores_avg_60s": 0.94, "sampled_at": "2026-10-18T01:02:03Z", "source": "cgroup-v2"} The values come from the run container's cgroup v2 files `memory.current`, `memory.peak` and `cpu.stat` (`usage_usec`), read every 2 s while the container runs. MB means MiB, the unit of `memory_limit_mb`. `cpu_cores_avg_60s` is the CPU time used over the last 60 s divided by the elapsed time, or over the run's life when it is younger than 60 s. A null value was not measured and does not mean zero. When the host has no cgroup v2, or the run's cgroup cannot be found, every value is null and `source` is `"unavailable"`. A run that has not started, or that finished before this field existed, reads the same way. After a run ends, `memory_peak_mb`, `cpu_usage_seconds` and `sampled_at` stay on the run for its retention, and `memory_current_mb` and `cpu_cores_avg_60s` are null. The kernel removes the cgroup before RunFlow sees the exit, so the kept peak is `memory.peak` at the last read. That read is at most 2 s before the exit, and a spike in those final 2 s can be missed. `GET /health` lists `"run_usage"` in `capabilities` on a host that can measure. Its `capacity` object adds `cpu_used_millis` and `memory_used_mb` summed over live runs (null if any live run has no value), `memory_reserved_mb` (the memory limits of the runs holding a slot), `max_concurrent_runs` and `admission_mode`. With `"admission_mode": "memory"` the host lists `"memory_admission"` and starts a run only when its memory limit fits the unreserved memory capacity. The run at the head of the queue waits for memory and later runs do not overtake it. A submit may also carry `memory_request_mb`, the memory the run is expected to use (at most `memory_limit_mb`; a larger value is lowered to the limit and the response says `clamped`). On a host listing `"run_requests"`, admission reserves the request and the container stays capped at `memory_limit_mb`. The container gets the request as its cgroup `memory.low`, so its memory up to the request is protected and memory above it is reclaimed first under pressure. A run starts only when the reserved requests plus its own fit the memory capacity, and the measured memory of the live runs plus its request fits too. A live run that has not been sampled yet counts at its request, and one that cannot be measured counts at its limit. Several runs growing past their requests at once can fill the host, and the kernel then kills one container, which ends with exit code 137. Without `memory_request_mb` the request equals the limit, which is the behaviour before this field existed. A finished run carries `oom_killed`, which is true when the kernel killed a process in the run's container for memory. That includes a child process, such as a browser renderer, killed while the main process kept running. The run can then end with any exit code and still read true. It is false when no process was killed for memory, and null when RunFlow could not read it, which is also how runs that finished before the field existed read. It appears in `GET /api/v1/runs`, `GET /api/v1/runs/{track_id}`, the workflow node views, and the `result` block of terminal run webhooks. `cpu_limit` is the run's share of the node's CPUs when they are busy. When several runs want CPU at once, the kernel divides it in proportion to their `cpu_limit`. A run asking for 2 cores then gets twice the CPU time of a run asking for 1. When cores are idle, a run can use more than its `cpu_limit`, up to the smaller of `cpu_cores` in `GET /api/v1/usage` and the node's per-run maximum. Because runs are charged by run time, using idle cores adds no charge. A node that shares CPU this way reports `"cpu_burst": true` in the `capacity` object of `GET /health`. With `false`, `cpu_limit` is a hard ceiling. A program that sizes itself from the container's `cpu.max`, such as a test runner choosing a worker count or a runtime choosing its thread pool, now sees that ceiling and not your `cpu_limit`. Pass the count explicitly if it must match the booking. ## 2b. Image builds Only nodes that run builds offer them. Such a node lists `"build"` in `GET /health` `capabilities`, and its `builds` object reports `max_build_cpu`, `max_build_memory_mb`, `max_build_seconds`, `max_concurrent_builds` and `build_disk_free_mb`. Any other node answers the build endpoints with 409 `image_builder_unavailable`. A node listing `"build_only"` refuses every way of creating a run (runs, workflows, templates, schedules, triggers, timers) with 409 `node_build_only`. A node that is being deployed or maintained drains first. While it drains, `GET /health` reports `"deploy": {"state": "draining", ...}` (otherwise `{"state": "serving"}`), and new runs, workflows, template runs and builds get 503 `node_draining` with `Retry-After: 120`. Runs already queued or running finish, and reads, logs, kill, timers, schedules and triggers keep working. Submit to another node, or retry after the delay. | Method | Path | Notes | |---|---|---| | POST | `/api/v1/builds` | build a Dockerfile at a GitHub commit and push it → 202 `{track_id}` | | GET | `/api/v1/builds` | `?state_filter=&tag=&limit=&offset=`, builds only | | GET | `/api/v1/builds/{track_id}` | status; `build` holds the request, `build_result` the pushed ref and digest | | POST | `/api/v1/builds/{track_id}/kill` | stops the build and every process it started | {"context": {"git_url": "https://github.com//", "sha": "<40 hex>", "submodules": false, "dir": "."}, "dockerfile": "Dockerfile.prod", "target": null, "build_args": {"CI_COMMIT": "<40 hex>"}, "labels": {}, "push_ref": "containers.rodmena.co.uk///:", "pull_refs": ["containers.rodmena.co.uk/rodmena/@sha256:"], "cache_scope": "", "cache_from": "", "cpu_limit": 2, "memory_limit_mb": 2048, "timeout_seconds": 3600, "tags": [], "env": {"GIT_TOKEN": ""}, "idempotency_key": ""} A build is a run of kind `build`. `GET /api/v1/runs?tag=` lists builds with runs, each with a `kind` field, and the logs, events and kill endpoints work on a build's `track_id`. A build ends in a run terminal state: `exited` with `exit_code` 0 when the image is pushed and verified, `timeout`, `killed`, or `failed`. The newest event's `reason` names the cause. Omitted resources default to the node's ceilings, and a value above a ceiling is refused with 422. RunFlow fetches the repository at `sha` itself, with `GIT_TOKEN` passed to git and never to the build. Every `.git` is removed before the build sees the context, so pass the commit as a build arg if the build needs it. Submodules are followed only to `https://github.com/` repositories. `dockerfile` and `context.dir` are relative to the repository root. The build gets no registry credential. A `FROM`, `COPY --from` or `RUN --mount=from` on a private image in containers.rodmena.co.uk fails with 401, unless the image is listed in `pull_refs`, pinned by digest, under `rodmena/` or under the push path's own `//`. `FROM ${BASE_IMAGE}` with `BASE_IMAGE` set to the same string as the `pull_refs` entry resolves to that image. Public images pull anonymously. The Dockerfile frontend is pinned by RunFlow, so a `# syntax=` line has no effect, and `build_args` keys starting with `BUILDKIT_` are refused. RunFlow pushes only `push_ref`, refuses one that already exists (409 `push_ref_exists`), and never deletes anything from the registry. The build succeeds only when the registry serves the pushed manifest with the digest the build produced. `build_result.digest` is that manifest digest: one linux/amd64 image manifest, not an index. Pull it by `@sha256:` digest. Builds run as an unprivileged user in a user namespace, without Docker, and under the memory, CPU and time limits of the request. A build over its memory limit fails with reason `oom`. `cache_scope` keeps a layer cache per tenant and scope on the build node, and a scope ending in `@` also exports its cache. `cache_from` imports such an export read-only. When the scope is busy with another build, the build runs with an empty cache and `build_result.cache` says `cold_busy`. A run can use a built image with `"sandbox": "built"`: the hardened sandbox with a writable root filesystem and a 512 MB `/tmp`. The image must be under your own build prefix and pinned by digest. The container runs as the image's `USER` when that is a numeric uid other than 0, and as an unprivileged uid otherwise. `"entrypoint": []` clears the image's ENTRYPOINT. `"image_scope": "//"` refuses any built image outside that path. A run of an image under another tenant's build prefix is refused with 403 `image_not_permitted`. ## 3. Scheduled timers Fire a signed webhook at a wall-clock time with **no container** and **no run-quota cost**. | Method | Path | Notes | |---|---|---| | POST | `/api/v1/timers` | `{fire_at, payload?, label?, idempotency_key?}` → 201; **200 + the existing timer on a duplicate key** | | GET | `/api/v1/timers` | `?state_filter=pending\|fired\|cancelled&label_filter=` | | GET | `/api/v1/timers/{id}` | | | DELETE | `/api/v1/timers/{id}` | cancel; **409 if it already fired** | **Exactly-once creation:** `idempotency_key` (≤128 chars) guarantees at most one timer per (tenant, key), DB-enforced, for the LIFETIME OF THE ROW (pending: forever; fired/cancelled: until retention purge). A duplicate create returns the existing timer — whatever its state — so a crash-recovery re-issue after the fire cannot schedule a second wake. Log the key before calling, re-issue on recovery: timer creation is safely classifiable `idempotent`. **How a timer reaches you.** A timer carries no URL. Register an endpoint once with `POST /api/v1/webhooks {"url": ..., "events": ["timer.fired", "tenant.timer_delivery_dead"]}`, and each timer is delivered as `timer.fired` to the endpoints that are subscribed and active when it fires. The delivery's `data` carries your `payload`, `fire_at`, `fired_at` and `fire_delay_seconds`. Signing and retries are in section 5. `fire_at` must be timezone-aware; a past instant is refused with 422 (timers do not fire retroactively). **Full sub-second precision is kept — do not truncate.** The firing loop ticks once a second, so a timer fires at the first tick at or after `fire_at`: up to ~1s late, never early. If you derive `fire_at` from your own deadline, round UP; `%S` truncation makes us fire *before* your work is due, and every signal — delivery 200, `fire_delay_seconds` healthy — still looks green while the timer contributes nothing. `payload` is opaque and echoed back — **secret-pattern keys are redacted in the delivery as well as the API**, so send a reference you resolve locally, never a credential. It is capped at **64 KiB serialized** (422 above that, stating both numbers). Fires exactly once, enforced by a conditional database claim. A timer missed during an outage fires on recovery and reports `fire_delay_seconds`. Long-horizon contract (2026-08-01): `fire_at` has **no upper bound** and a **pending timer is never purged** (fired/cancelled history ages out on your `retention_days`). The fired timer records `deliveries_enqueued` — deliveries go only to endpoints ACTIVE at fire time, and **zero is a readable answer**, not an absence. An endpoint auto-disabled by 20 consecutive failures announces `tenant.webhook_endpoint_disabled` to your remaining active endpoints; a `timer.fired` delivery that exhausts its ~36m10s retry budget announces `tenant.timer_delivery_dead`, naming the delivery to redeliver. If a stored payload is ever unrecoverable, the alarm still fires ON TIME with `payload: {}` and `data.payload_error` set — a timer is never silently dropped. ## 3b. Recurring schedules — cron-fired webhooks, no container `POST /api/v1/schedules` `{cron, timezone?, payload?, label?, idempotency_key?}` → a signed **`schedule.fired`** webhook on each occurrence, with timer economics (no container, no run quota) and trigger machinery: cron evaluated in an IANA timezone (DST-correct; a UTC offset is refused), **exactly-once per occurrence** via a DB-arbitrated fire ledger, missed occurrences fire on recovery (most recent one, delay stated, dropped count recorded). NOTE the distinct event type — subscribe to `schedule.fired` / `schedule.*`, not `timer.fired`. There is nothing to re-arm: one registration keeps firing until you PATCH `{enabled:false}` or DELETE it. Re-enabling resumes from NOW (a deliberate pause is not an outage — no catch-up). `GET /api/v1/schedules/{id}/fires` is the occurrence ledger (`deliveries_enqueued`, `fire_delay_seconds`, dropped notes) — reconcile against it. Cap: `max_schedules` enabled schedules (numerator `active_schedules` in `/usage`); tier minimum interval applies (free: hourly). Payload: same 64 KiB capped, encrypted, secret-redacted echo as timers. Permissions: the timer permissions. Do NOT emulate recurrence by chaining one-shot timers — a missed re-arm ends the chain silently, which is the failure this primitive exists to prevent. ## 4. Workflows, templates, webhooks - `POST/GET /api/v1/workflows[/{id}]`, `…/nodes/{ref}`, `…/nodes/{ref}/{approve,reject}` — DAG execution with retries and human-approval gates. **`approve` returns 409 with two distinct `detail` values**: `not_awaiting_approval` (safe to treat as idempotent success) and `not_an_approval_node` (**not** success — you are pointing at the wrong node). Branch on `detail`, not on the status. A missing workflow or node is 404. A queued node waits for a worker with no time limit, and a cron trigger skips its fires while that workflow is open. Set `start_deadline_seconds` on a container node to fail the attempt (reason `expired`) if no worker has picked it up that many seconds after launch. Its `timeout_seconds` still counts from container start. - `POST/GET/PATCH/DELETE /api/v1/templates[/{id}]` — parameterised stored DAGs, plus cron `triggers` for unattended runs. - `POST/GET/PATCH/DELETE /api/v1/webhooks[/{id}]` — signed delivery of run, workflow, node and timer events. ## 5. Webhook delivery contract Envelope: {event_id, event_type, occurred_at, resource:{type,id}, data:{…}, delivery:{delivery_id, attempt, endpoint_id}} `delivery.delivery_id` and `delivery.attempt` equal the `X-RunFlow-Delivery` and `X-RunFlow-Attempt` headers of the same request. They are set per attempt, before signing. **No `tenant_id`** — it was removed 2026-07-31, because it was a live credential. Use `delivery.endpoint_id` to tell tenants apart; an endpoint belongs to exactly one. A field removed from the envelope **never reappears on a retry or a manual redelivery** — redaction is applied at transmission, not only at build. Signature: X-RunFlow-Signature: sha256= HMAC-SHA256(key, b"." + ) **Hex-decode a generated secret before using it as the HMAC key.** We show it as 64 hex characters; the key is the 32 bytes those decode to. A secret you *supply* at registration is used verbatim. Getting this wrong produces a signature that never matches and gives no clue why. Retries are **re-signed** with a fresh timestamp; `X-RunFlow-Event-Id` is stable across attempts — dedupe on that. Retry policy — and note the asymmetry: 2xx -> delivered 408, 429, 5xx, transport failure -> retried (10s, 1m, 5m, 30m) any other 4xx, and 3xx -> DEAD after one attempt, no retry So **register your endpoint last**, after the receiving route is live. Registration checks only that an endpoint URL uses `https` and has no userinfo. RunFlow checks the address the URL resolves to when it delivers. A URL that resolves to a loopback, private, link-local or CGNAT address is accepted at registration and then refused as `blocked_target` on every delivery, and the delivery is not retried. RunFlow follows no redirects. **Testing from a machine the internet cannot reach.** Put the receiver behind a public HTTPS tunnel such as `retunnel http -s `, which gives a fixed `https://.retunnel.net` URL with a valid certificate, and register that URL. `POST /api/v1/webhooks/{id}/test` sends a signed `webhook.test` at once. For the real path, create a timer with `fire_at` a minute or two ahead. Answer 200 once and check that delivery stops, then answer 503 and watch the retries arrive 10 s and 1 min later. If the tunnel URL changes, `PATCH /api/v1/webhooks/{id}` with the new one. "Webhooks retry" is the natural assumption and a 4xx quietly opts out of it. Source addresses, for receivers that allow-list callers. Webhooks, timers and schedules for tenants of `runflow.rodmena.co.uk` are sent by the service on that host, from: IPv4 57.128.183.155 IPv6 2001:41d0:801:2000::8224 (used only when your receiver has an AAAA record) These are the addresses this node's deliveries leave from. Register timers and endpoints on the node whose addresses you allow-list, because each RunFlow node delivers from its own. A node behind a shared NAT shares its address with other machines on that network. Treat an address match as a coarse filter and verify `X-RunFlow-Signature` on every delivery, because the signature is the part that proves the delivery came from RunFlow. ## 5b. Tenant lifecycle events — subscribe to these `tenant.suspended`, `tenant.unsuspended`, `tenant.webhook_endpoint_disabled` (your endpoint crossed the 20-consecutive-failure auto-disable threshold; sent to your remaining active endpoints), `tenant.timer_delivery_dead` (a timer.fired OR schedule.fired delivery exhausted its retries — `data.resource_type` distinguishes; carries the delivery id to redeliver). **This is the only channel that survives a suspension.** The credential you lose when access is revoked is the one you use to call us; a webhook is us calling you, signed with the endpoint secret, and delivery never consults suspension state. Without a `tenant.*` subscription a revocation reaches you as an unexplained 401 whenever you next happen to call — days later, for a bursty consumer. `tenant.suspended` carries `reason` and `remedy`. ## 6. Limits Per-tenant quotas. Exceeding one returns **429**. These are the tier defaults; a given tenant's effective values are authoritative from `GET /api/v1/usage`, and any of them can be raised on request. The values in `/usage` can be lower than this table, because each node caps concurrent runs, CPU and memory per run at what its hardware can hold. For example, a standard tenant on a node that can give each run 1.166 cores sees `cpu_cores: 1.166`. | | free | standard | pro | |-------------------------|------|----------|-----| | concurrent runs | 1 | 4 | 8 | | runs per day | 100 | 2,000 | 20,000 | | max run timeout (s) | 60 | 3,600 | 21,600 | | max queue wait (s) | 300 | 1,800 | 3,600 | | CPU cores per run | 0.5 | 2.0 | 4.0 | | memory per run (MB) | 256 | 1,024 | 2,048 | | concurrent workflows | 1 | 10 | 25 | | nodes per workflow | 5 | 50 | 200 | | workflow templates | 1 | 20 | 100 | | template triggers | 1 | 10 | 50 | | webhook endpoints | 1 | 10 | 50 | | webhook payload (bytes) | 65,536 | 262,144 | 1,048,576 | | schedules | 1 | 100 | 500 | | pending timers | 50 | 1,000 | 10,000 | | retention (days) | 3 | 30 | 90 | Timers count PENDING only — a fired timer frees its slot. **Images:** the free tier restricts images to a small allowlist. Paid tiers set no allowlist, so you may run arbitrary public images. Separately, `sandbox: "trusted"` — which relaxes the hardened defaults to a writable rootfs and the image's own user — is honoured only for images on the host operator's trusted allowlist, matched exactly and pinned by digest. That is a supply-chain control, and no tier grants it. Runs are firewalled from egress to co-located hosts. This does **not** apply to our webhook dispatcher, which originates from the service, not the sandbox. A connection the firewall blocks fails at once with ECONNREFUSED, the errno a closed port on a reachable host also gives. It is not a containment signal. Do not classify on it, because an ordinary network path can produce it. Every run's seccomp profile is Docker's default with three changes, made for CVE-2026-98432 until fixed kernels ship. setsockopt(IPPROTO_IP, IP_OPTIONS) returns EPERM. MPTCP is switched off in the run's network namespace, so an IPPROTO_MPTCP socket fails with ENOPROTOOPT. 32-bit x86 programs cannot run: the kernel kills them with SIGSYS (exit code 159), because their socket calls cannot be filtered. Every other socket option behaves as under Docker's default. ## 7. When to use RunFlow — and when not Reach for it to execute untrusted or agent-generated code in a sandbox, to run container jobs with live logs and pause/resume, to compose them into DAGs with retries and human approval, or to schedule any of that unattended. It is the wrong tool for: - **A pure alarm clock in your own process** — if you already have a database and a tick, an `eligible_start <= now()` claim needs no external dependency. Our timers are worth it when you want the callback signed, retried and dead-lettered, not merely fired. - **Latency-critical inner loops** — every run starts a container. - **Long-lived services** — runs are jobs with an exit code, not daemons. ## 8. Operation index Every `/api/v1` operation, in one place. The sections above explain each one. | Method | Path | Purpose | |---|---|---| | POST | `/api/v1/runs` | submit a run | | GET | `/api/v1/runs` | list runs | | GET | `/api/v1/runs/{track_id}` | run status, usage and log capture | | DELETE | `/api/v1/runs/{track_id}` | delete a run | | GET | `/api/v1/runs/{track_id}/result` | exit code and outcome | | GET | `/api/v1/runs/{track_id}/logs` | logs | | GET | `/api/v1/runs/{track_id}/utilization` | resource utilization | | POST | `/api/v1/runs/{track_id}/{pause,resume,stop,kill}` | control a run | | GET | `/api/v1/runs/{track_id}/deliveries` | webhook deliveries for a run | | POST | `/api/v1/builds` | submit an image build | | GET | `/api/v1/builds` | list builds | | GET | `/api/v1/builds/{track_id}` | build status | | POST | `/api/v1/builds/{track_id}/kill` | kill a build | | GET | `/api/v1/usage` | measured usage and effective limits | | GET | `/api/v1/audit` | the tenant's audit log | | GET | `/api/v1/tenant/quotas` | the tenant's quotas | | POST | `/api/v1/workflows` | submit a workflow | | GET | `/api/v1/workflows` | list workflows | | GET | `/api/v1/workflows/{workflow_id}` | workflow status | | DELETE | `/api/v1/workflows/{workflow_id}` | delete a workflow | | GET | `/api/v1/workflows/{workflow_id}/result` | workflow outcome | | GET | `/api/v1/workflows/{workflow_id}/events` | workflow event history | | GET | `/api/v1/workflows/{workflow_id}/deliveries` | webhook deliveries for a workflow | | POST | `/api/v1/workflows/{workflow_id}/{cancel,pause,resume}` | control a workflow | | GET | `/api/v1/workflows/{workflow_id}/nodes/{ref}` | one node's status | | POST | `/api/v1/workflows/{workflow_id}/nodes/{ref}/{retry,approve,reject}` | act on a node | | POST | `/api/v1/templates` | store a template | | GET | `/api/v1/templates` | list templates | | GET | `/api/v1/templates/{ref}` | one template | | PATCH | `/api/v1/templates/{ref}` | update a template | | DELETE | `/api/v1/templates/{ref}` | delete a template | | POST | `/api/v1/templates/{ref}/run` | launch a workflow from a template | | POST | `/api/v1/templates/{ref}/triggers` | add a cron trigger to a template | | GET | `/api/v1/triggers` | list triggers | | GET | `/api/v1/triggers/{trigger_id}` | one trigger | | PATCH | `/api/v1/triggers/{trigger_id}` | update a trigger | | DELETE | `/api/v1/triggers/{trigger_id}` | delete a trigger | | GET | `/api/v1/triggers/{trigger_id}/fires` | a trigger's fire ledger | | POST | `/api/v1/webhooks` | register a webhook endpoint | | GET | `/api/v1/webhooks` | list webhook endpoints | | GET | `/api/v1/webhooks/{endpoint_id}` | one endpoint and its delivery counters | | PATCH | `/api/v1/webhooks/{endpoint_id}` | update an endpoint | | DELETE | `/api/v1/webhooks/{endpoint_id}` | delete an endpoint | | POST | `/api/v1/webhooks/{endpoint_id}/test` | send a signed `webhook.test` | | POST | `/api/v1/webhooks/{endpoint_id}/rotate-secret` | rotate the signing secret | | GET | `/api/v1/webhooks/{endpoint_id}/deliveries` | an endpoint's deliveries | | GET | `/api/v1/webhooks/deliveries/{delivery_id}` | one delivery | | POST | `/api/v1/webhooks/deliveries/{delivery_id}/redeliver` | send a delivery again | | POST | `/api/v1/timers` | set a one-shot timer | | GET | `/api/v1/timers` | list timers | | GET | `/api/v1/timers/{timer_id}` | one timer | | DELETE | `/api/v1/timers/{timer_id}` | cancel a timer | | POST | `/api/v1/schedules` | create a recurring schedule | | GET | `/api/v1/schedules` | list schedules | | GET | `/api/v1/schedules/{schedule_id}` | one schedule | | PATCH | `/api/v1/schedules/{schedule_id}` | update a schedule | | DELETE | `/api/v1/schedules/{schedule_id}` | delete a schedule | | GET | `/api/v1/schedules/{schedule_id}/fires` | a schedule's fire ledger | ### Operator only These need the `runflow_tenant_admin` role, which ordinary tenant keys do not hold. | Method | Path | Purpose | |---|---|---| | PUT | `/api/v1/tenant/quotas` | replace a tenant's quotas | | PATCH | `/api/v1/tenant/quotas` | change some of a tenant's quotas |