Repository navigation
Graphrt 0.6.0
Plugin cold starts get faster: graphrt serve can keep a warm pool of plugin processes (--plugin-pool, --plugin-idle), the gateway sends warm hints, and the WebAssembly cold start path is quicker. graphrt deploy --target fly --direct (preview) puts one agent online on Fly.io with no gateway. This release also adds the Linux budget checks of the gateway plan (bench/targets.sh) with the fixes they found, and fixes a crash on crafted redirects (RUSTSEC-2026-0592). No breaking changes.
Added
graphrt deploy --target fly --direct(preview, in the default build: featuredeploy-fly): puts one agent online athttps://<app>.fly.devwith no gateway.- Creates the Fly app and its public IPs, writes
--secret NAMEvalues and a generated API key as Fly secrets (the key is printed once), and runs the published graphrt image with the.grtbundle or workflow file delivered in the Machine'sconfig.files, a/readyzreadiness check and always-on or scale-to-zero (Fly proxy autostop) mode. - A version becomes current only once healthy.
- Older versions stay as stopped standby Machines without services.
graphrt deploy status | list-versions | rollback <v> | pause | resume | remove --directmanage it.--jsonprints JSON Lines (stepevents, then oneresultorerror) specified bydocs/schemas/deploy-direct.schema.json.- See docs/deploy-direct.md.
statusreportsstatus(online/paused/deploying/failed/offline),current_version,last_deployed_atand the Machines.list-versionsreportsversions[{label, deployed_at, current, …}].- A deploy that fails after storing a new API key prints it once in a
{"type":"api_key"}line before the error, never in the error line. - Tested against a fake Machines API, not yet on real Fly.
- Creates the Fly app and its public IPs, writes
graphrt-provider-fly:directfeature (FlyDirect), Machines API calls for machine update, metadata, IP assignments and app deletion, and the fake Machines API as thefakefeature for tests of other crates.graphrt serve --plugin-pool <n>keepsnprocesses of each process plugin (up to 32) started from startup and replaces one that exits in the background, so no run on a running agent waits for a plugin to start (a Node.js host takes ~50 ms)- Requests spread over the processes, and a timeout restarts only the process that served it.
--plugin-idle <d>stops an idle pool's processes (agent + Node.js plugin 73.5 MiB -> 5.9 MiB) until the next request or warm hint.- Default
0: unchanged (one process, started at its first node). - From Rust:
PluginHost::with_pool(PoolConfig),ProcessPool,PluginHost::warm_plugins(). - Measured on Linux aarch64: a run on a warm pool p95 3.9 ms, 300 ms after a warm hint p95 10.5 ms, vs. 96 ms when the run has to start Node.js after an idle stop.
- Agent
serve,llm,plugins,trust-gateway+27.1 KiB (aarch64 musl). - The cold wake of a new agent is unchanged (Node.js's own start, ~51 ms, is its floor)
- See docs/plugins.md for that limit and docs/wasm-plugins.md for the WebAssembly path (cold wake p95 15 ms).
- Agent
POST /internal/v1/warm(warm hint). The gateway sends it to the replicas a prewarm (POST …/warm, cron, predictive) finds already up (gateway core +3.1 KiB).hello'swarm_pluginsnow lists the plugins whose process is up instead of every loaded plugin. bench/gateway/gwbench.pyscenariosplugin-pool(RSS per pool size, warm, cold and hinted runs, gated: p95 ≤ 15 ms) andwake-wasm(cold wake with the WebAssembly example plugin, reference).bench/targets.shbuilds theserve,llm,wasm,trust-gatewayagent for it.bench/targets.shchecks every measurable target of the gateway plan on Linux againstbench/budgets.tomland exits 1 on a miss: sizes and idle RSS of the agent and gateway builds (budget-gate.pynow runsgraphrt gatewaytoo), gateway TTFB overhead over a Unix socket and loopback TCP, 1,000 concurrent SSE streams, cold wake with and without a Node.js plugin, webhook ack, cron lag (bench/gateway/gwbench.py), an RS256 JWT microbench and the SIGTERM drain of graphrt as PID 1 of a real container (scripts/test-pid1-container.sh).- Manual CI workflow Bench targets.
graphrt serve --trust-gatewaystarts process and HTTP plugins with the agent instead of at their first node (PluginHost::prewarm): a cold wake with a Node.js plugin no longer waits for the host after the dispatch.
Fixed
release.ymlno longer tries to build the gateway archive for Windows: the gateway is Unix-only and does not compile there, so a tag build would have failed. Windows gets the agent archive only, as in the 0.5.0 release.graphrt gateway: warm first-byte overhead down from ~1.5 ms to ~0.25 ms (p50, Linux aarch64).- Each client stream's first frame waited up to 1 ms for the heartbeat timer.
- A fresh run's stream read the store before its first frame.
start_runmade two store round trips it does not need (a duplicate read for a random id, a separate dispatch claim for an interactive run)- SQLite statements were parsed again on every call.
graphrt gatewaystarted one blocking thread per store operation waiting for the SQLite connection (176 threads, 180 MiB RSS with 200 streams)- Operations now queue for it.
- With mimalloc built without transparent huge pages, a 32-frame broadcast per live run (a lagging stream catches up from the ring) and a smaller supervisor future, the gateway idles at 7 MiB instead of 20 MiB and holds 1,000 streams in ~76 MiB.
graphrt gateway: a version'smin_replicasprewarm that raced its first cold request was dropped as "in flight" and the pool stayed at one replica. Background prewarms (min_replicas, cron, predictive) now wait for the in-flight wake and top up.
Security
- Dependencies:
url2.5.8 -> 2.5.9 (RUSTSEC-2026-0592: stack overflow inUrl::origin()on nestedblob:URLs). Thehttp-requestnode compares the origin of each redirect target, which a remote server chooses, so a craftedLocationheader could crash the process. Affects 0.5.0 and earlier.
Install
# agent build (run, serve, eval)
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.6.0/install.sh | sh
# gateway build (the same CLI plus `graphrt gateway` and `graphrt deploy`, every provider)
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.6.0/install.sh | sh -s -- --gateway
brew install graphrt/graphrt/graphrt
cargo install graphrt-cli # add --features gateway-all for the gateway
docker pull ghcr.io/bimapangestu28/graphrt:0.6.0The container image of this release was published at ghcr.io/bimapangestu28/graphrt and stays there. Starting with the next release, images are published at ghcr.io/graphrt/graphrt.
- Assets:
graphrt-<target>is the agent build.graphrt-gateway-<target>(featuresgateway-all,eval,online-eval, with mimalloc) is the gateway build for Linux (static musl, x86_64 and aarch64) and macOS (x86_64 and aarch64). The gateway is Unix-only, so there is no Windows gateway archive. - Gateway providers: Kubernetes is measured on a local kind cluster. Cloud Run, ECS Fargate, Lambda, Fly and Azure Container Apps are tested against API fakes (conformance suite). Real cloud verification is pending.
- Windows (experimental): cross-compiled (MSVC, static C runtime), not yet run on Windows.
Full changelog: CHANGELOG.md · v0.5.0...v0.6.0