Repository navigation
Releases
Graphrt 0.6.2
WebAssembly plugins can now send and receive binary HTTP bodies (body_base64, "response_encoding": "base64"). This unblocks the supabase WebAssembly build's upload_object, so graphrt-plugins now ships WebAssembly builds of every supabase agent tool and, on its new declarative rest-kit runtime, of open-meteo, currency-rates, wikipedia and web-search. Those builds start several times faster and use a fraction of the memory of the Node.js plugins (numbers below). One Rust API change for embedders: graphrt-wasm's request and response bodies are now bytes, while plugins and the CLI are unaffected.
Added
- WebAssembly plugins can send and receive binary HTTP bodies:
graphrt::httptakesbody_base64and, with"response_encoding": "base64", answers withbody_base64(guest SDK:HttpRequest::body_base64,HttpRequest::response_encoding,HttpResponse::body_base64).- Text bodies work as before.
- Used by the supabase WebAssembly build's
upload_object.
- Measured in graphrt-plugins against the Node.js plugins (Linux aarch64, 4-vCPU VM, mock upstream, min-size musl build):
- A cold
graphrt runof supabaseselect_rowstakes 23.5 instead of 116.6 ms (p50), and serve plus plugin hold 10.2 instead of 129.3 MiB after the runs. - open-meteo, currency-rates and web-search run cold in 16.3–18.1 instead of 102.9–106.3 ms (p50, as workflow nodes) and hold 9.3–10.1 instead of 112.2–126.4 MiB.
- A warm call is 1–3 ms slower than on Node.js (a fresh module instance per call).
- A cold
Changed
- graphrt-wasm:
HttpRequest::bodyisOption<Vec<u8>>andHttpResponse::bodyisVec<u8>, so an embedder'sHttpEgresspasses bytes and no longer checks UTF-8 (the host does, for guests that ask for text).
Install
# agent build (run, serve, eval)
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.6.2/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.2/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.2The 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.6.1...v0.6.2
Graphrt 0.6.1
WebAssembly plugins can now offer tools to the agent node and make outbound HTTP requests through the same SSRF safe egress as http-request (additions to plugin ABI version 1). The supabase user_rpc tool of graphrt-plugins needs this release, and against the Node.js plugin it cuts a cold graphrt run from 118.8 to 18.4 ms p50. graphrt gateway now holds 1,000 concurrent SSE streams in ~45 MiB instead of ~76 MiB, and child processes no longer inherit an AppImage's environment. No breaking changes.
Added
- WebAssembly plugins can offer agent tools and make outbound HTTP requests.
- A module lists
toolsin its manifest and exportsgraphrt_tool_call. - The agent's per-call
tool_context(e.g. an end user's JWT) reaches it only when the plugin haspermissions.secretsand is trusted, and the host scrubs context values from tool results and errors. graphrt::http(plugins withpermissions.network, builds withhttp) goes through the same SSRF-safe egress ashttp-request: public addresses unless--allow-private-network, no redirects, host-owned framing headers, at most 16 requests per call, a 30 s timeout cap and body caps (newWasmLimitsfields).permissions.envvariables are handed to the guest asenv.- The Rust guest SDK gains
Manifest::tool,Plugin::call_tool,export_plugin!(P, tools)andhttp(). - From Rust:
WasmPlugin::load_with_host(.., WasmHost),WasmPlugin::tools(), theHttpEgresstrait. - Additions to ABI version 1.
- docs/wasm-plugins.md.
- Cost: +57.7 KiB (aarch64 musl
serve,llm,wasm,trust-gateway). - The pilot port, the supabase
user_rpctool in graphrt-pluginswasm/supabase-rpc, cuts a coldgraphrt runfrom 118.8 to 18.4 ms p50 and the agent's RSS after runs from 127.0 to 9.2 MiB against the Node.js plugin (Linux aarch64).
- A module lists
- Optional profile in
bench/budgets.toml:agent-slim-wasm,agent-slim-gateway-wasm,agent-slim-gateway-wasm-net(wasm +848.9 KiB, +http +1022.6 KiB on aarch64 musl), gated withscripts/budget-gate.py --optional(bench/targets.sh passes it).bench/wasm-plugin/supabase_tool.pycompares a Node.js and a WebAssembly plugin through a real agent.
examples/supabase-chatbot/teststakeSERVE_EXTRA_ARGS(e.g.--allow-private-networkfor the WebAssembly plugin). Both tests pass with it.
Changed
graphrt gatewayholds 1,000 concurrent SSE streams in ~45 MiB instead of ~76 MiB (Linux aarch64, peak RSS, plan §4.2 target 64 MiB, now the gate ofbench/budgets.toml).- Run streams from Unix-socket and
http://agents go through a lean HTTP/1.1 client (graphrt_gateway::stream_conn,httparseonly, already in the tree): one 2 KiB adaptive read buffer per stream instead of ~34 KiB of hyper and reqwest state (read, write and head buffers, the dispatch channel), agent frames parsed straight out of it, keep-alive reuse of finished streams' connections. - The per-run supervisor future is 3.5 KiB instead of 7.9 KiB (no doubly stored
async fnarguments). - Warm TTFB overhead is unchanged or lower (Unix socket p50 0.247 vs 0.257 ms, loopback TCP p95 0.29 ms for both), gateway CPU per streamed chunk 8–10 % lower.
- Binary +18 KiB (
gateway-core, aarch64, +28 KiB on x86_64, 7.98 of 8 MiB). https://agents and the control calls keep using reqwest.
- Run streams from Unix-socket and
Fixed
--plugins <dir>pointing at a WebAssembly plugin's own directory no longer also loads its.wasmas a bare module (which lost the manifest's permissions).- Programs graphrt starts no longer get an AppImage's environment.
- An application packaged as a Linux AppImage (e.g. the Graphrt desktop app) runs with the bundle's folders in front of
LD_LIBRARY_PATH,PATH,PYTHONPATH, … andPYTHONHOME,GTK_PATH, … pointing into it. - Plugin processes and stdio MCP servers (
inherit_env: true, and thePATH/HOME… of the minimal environment), thekillof a plugin's process group andgit cloneofinstall_from_gitinherited them, so the computer's own programs loaded the bundle's older libraries and failed (libsystemd.so.0: version `LIBSYSTEMD_254' not found). - When the running binary is inside
$APPDIR, every entry inside it is dropped for children. - Elsewhere nothing changes.
- New in
graphrt_core::child_env:apply_host_env,set_child_env,host_var,host_vars,host_env_fixesand the*_with/apply_env_fixesvariants taking explicit fixes.
- An application packaged as a Linux AppImage (e.g. the Graphrt desktop app) runs with the bundle's folders in front of
Install
# agent build (run, serve, eval)
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.6.1/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.1/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.1The 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.6.0...v0.6.1
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
Graphrt 0.5.0
Scale to zero, everywhere. graphrt gateway (preview) is an always on front for scale to zero agents: it owns the run store, holds every run's stream, wakes agents on demand and dispatches runs again after drains, lost replicas and its own restarts. It ships providers for local processes, Kubernetes, Cloud Run, ECS Fargate, Lambda, Fly and Azure Container Apps, and graphrt deploy ships immutable versions to them. Releases now include a second build per platform (graphrt-gateway-<target>) and a :gateway image, while the agent build stays as slim as before. Contains breaking changes, see Changed (Breaking).
Changed (Breaking)
gateway.yamlvalues are typed as YAML resolves them: a string setting given an unquoted number (name: 2024) is refused with its path and line (deployments[0].name (line 3, column 11): invalid type: integer2024, expected a string). Quote it. Errors in the file now name the setting's path and line.graphrt serve: a bad query parameter is answered400 Failed to deserialize query string: <field>: <reason>. Request bodies keep axum's statuses and texts (415, 400, 422 with the field path).graphrt serve --verify-jwtrefuses to start without an API key on every address, loopback included.- A reverse proxy on the same host forwards the internet to a loopback port (and one that rewrites
Hostalso passes the DNS-rebinding check), which made run lists, events and resume of every user public. - Migration: set
GRAPHRT_API_KEY(or--api-key-env VAR) next to--verify-jwt. - User tokens keep working without it on the client side.
- A reverse proxy on the same host forwards the internet to a loopback port (and one that rewrites
graphrt serve --verify-jwt: a run started with a user token streams onlyresponse(answer) events,run_startedand the terminal event, and its blocking result onlyrun_id,status,outputs,answer,usage,reasons,error_type,reasonandelapsed_ms.- Node events (inputs, outputs, tool results, retrieved documents, rendered prompts when capture is on),
run_failed's error text and the pause snapshot are no longer sent to end users. - API-key callers are unchanged.
- Resume and run reads still take only the API key.
- Migration: clients that read
node_chunkshould readresponseevents instead. - To keep the old behaviour for trusted clients, pass
--user-events all.
- Node events (inputs, outputs, tool results, retrieved documents, rendered prompts when capture is on),
- OpenTelemetry presets (
--otel-preset,GRAPHRT_OTEL_PRESET) refuse to start when the preset's credential header (Authorization,x-api-key) would go to a host other than the preset's, because an explicitOTEL_EXPORTER_OTLP_TRACES_ENDPOINTor a pushedOTEL_EXPORTER_OTLP_METRICS_ENDPOINTpoints elsewhere, or over plainhttp://to a non-loopback host.--langfuse-scoresrefuses plainhttp://to a non-loopback host too.- Migration: point the preset at its backend with its base URL variable (
LANGFUSE_BASE_URL,PHOENIX_COLLECTOR_ENDPOINT, ...), usehttps://for a self-hosted backend on another machine, or set the credentials yourself inOTEL_EXPORTER_OTLP_HEADERSwhen exporting through a collector.
POST /v1/runs/{id}/feedbackwith a user token (--verify-jwt) accepts only runs started with a token of the same user.- Run records gain
user_verified(truewhenuser_idis a verifiedsub, kept on resume,falsefor records written before this release). - A run started with the API key and a body
user_idis no longer rateable by that user's token: the body value is an unverified label, so a key holder could make any run rateable by anyone. - Migration: let end users start the runs they rate with their own token.
- API-key callers can still post feedback for any run, with
userin the body.
- Run records gain
Added
- Release assets: every platform gets a second archive,
graphrt-gateway-<target>(featuresgateway-all,eval,online-eval: the same CLI plusgraphrt gatewayandgraphrt deploywith every provider, it links mimalloc, the agent archivegraphrt-<target>does not), with its checksum inSHA256SUMSand the same smoke test plusgateway --help/deploy --help.- The container image gains
ghcr.io/bimapangestu28/graphrt:<version>-gateway(also<major.minor>-gatewayandgateway). install.sh --gatewayinstalls the gateway build.release.ymlbuilds both.
- The container image gains
graphrt gatewaywarm-up and cost guards (plan F4), all off or bounded by default (docs):POST /v1/deployments/{d}/warmprewarms the current version ahead of traffic.warm.predictivelearns per-deployment arrival patterns (288 five-minute slots, weekdays and weekends apart, 2.3 KiB) and prewarmslead_secsbefore expected traffic (hit rate 81–84 % in the seeded simulation, target ≥ 70 %)warm.max_warm_replica_secs_per_daycaps the idle replica-seconds kept warm per UTC day (prewarms refused, idle replicas released at once, runs still wake on demand)wake_storm.max_parallel_wakes(default 16) bounds provider wakes in flight gateway-wide andprewarm_jitter_ms(default 1000) spreads prewarms.- Cron prewarms are jittered and no longer delay the fire.
- New metrics:
graphrt_gateway_prewarm_{started,hits,misses}_total{source},…_warm_replica_seconds,…_warm_budget_replica_seconds,…_wakes_in_flight,…_wakes_gated_total. - Binary (
min-size,--features gateway): +60.8 KiB x86_64 musl (9,441,208 -> 9,503,416 B), +48.2 KiB aarch64 musl (8,074,536 -> 8,123,944 B), +48.6 KiB macOS arm64 (7,011,360 -> 7,061,136 B).
graphrt gatewaypreempts runs shortly before a platform's request cap (Cloud Run 60 min, Container Apps standard ingress 240 s) and re-dispatches them, so long runs continue across the cap: the gateway sendspreempt_after_msandserve --trust-gatewaypreempts the execution itself.- Versions past the 7-day pool are retired on the platform too (Cloud Run traffic tags, Container Apps revisions, Fly Machine pools), with retry.
- The
kubeconfigfeature ofgraphrt-provider-k8sreads kubeconfig files without per-struct deserializers, sogw-k8s-kubeconfigis smaller. graphrt gatewayruns deployments on Kubernetes, Cloud Run, ECS Fargate, Lambda, Fly and Azure Container Apps, besides local processes: cargo featuresgateway-k8s(gateway-k8s-in-clusterwithout kubeconfig),gateway-cloud-run,gateway-ecs,gateway-lambda,gateway-fly,gateway-acaandgateway-allofgraphrt-cli(gw-*/deploy-*ofgraphrt-gateway).- Providers are named under
providers:ingateway.yamland picked per deployment (provider:) - Endpoints and credentials come only from that operator configuration.
- Cloud Run requests carry the invoker ID token (
X-Serverless-Authorization) - Lambda runs go through
InvokeWithResponseStream. graphrt deploy --target k8s|cloud-run|ecs|lambda|fly|acaapplies a version with the provider's deploy driver and registers it with the gateway.- See docs/gateway.md.
- Providers are named under
Idempotency-Keyfor side effects, since execution is at-least-once per node (retries, and the re-run of an in-flight node when a preempted run resumes).http-requestsendsIdempotency-Key: <run_id>:<exec_id>on POST, PUT, PATCH and DELETE: the same for every attempt and re-execution of a node execution, different for any other.- A workflow-set header wins and
idempotency_key: falseturns it off. - Plugins receive the key as
idempotency_keyinnode.run(process and WebAssembly), exposed by the Rust, Python, TypeScript and WebAssembly guest SDKs. NodeContext::idempotency_key()ingraphrt-corebuilds it.- See docs/workflow-format.md.
graphrt serve --deployment NAME(or$GRAPHRT_DEPLOYMENT), now a flag ofserveitself (it was part of--trust-gateway): webhook idempotency run ids include the deployment, derived exactly asgraphrt gatewayderives them (hook-+ first 32 hex digits ofsha256("hook|<deployment>|<hook>|<key>")), so servers of different deployments can share a store and a delivery maps to one run whichever of the two receives it.- Without it, ids are derived as before.
- See docs/serving.md.
graphrt-provider-fly(featureprovider-fly): the Fly Machines provider of the upcominggraphrt gateway.- A deployment version is a pool of pre-created Machines, woken with
start(suspended snapshots first), released withsuspendfalling back tostop, addressed over 6PN. - Its
deploydriver (graphrt deploy --target fly) creates the app, writes Fly app secrets fromenv:/fly:references and creates the stopped pool withkill_timeout=grace_secs(≤ 300 s). - Hand-rolled Machines REST client, no Fly SDK.
- Passes the provider conformance suite against a fake Machines API.
- Not wired into a binary yet.
- See docs/gateway-fly.md.
- A deployment version is a pool of pre-created Machines, woken with
graphrt-provider-apicrate: theProvider/DeployDrivertraits, capabilities and error kinds of the upcominggraphrt gateway, the shared provider HTTP layer (token bucket per provider API, jittered retry, token cache with one refresh on 401) and the C1–C13 provider conformance harness with a scripted fake HTTP server.Provider::invokelets a platform without an HTTP address (Lambda) carry the gateway's requests, andmax_grace_secs = 0marks a platform where no preemption is possible.ProviderErrorKindis#[non_exhaustive]and has aPlatformTimeoutkind for a run cut at such a platform's time cap (Lambda), recorded asfailed{platform_timeout}and never retried.- No user-visible change yet.
graphrt-gcpcrate (gateway plan F2, GCP family), each part behind its own cargo feature and without a Google SDK.auth-gcp: access and ID tokens from the metadata server or a service-account key (RS256 JWT signed withring, exchanged at the OAuth 2.0 token endpoint), cached untilexp - 5 min, one shared fetch per token, one refresh aft...
Graphrt 0.4.0
Evaluation lands: graphrt eval runs datasets against a workflow with deterministic, trajectory, retrieval and judge assertions, where a judge is an ordinary graphrt workflow. graphrt serve can score sampled production runs online, take human feedback and export scores as OpenTelemetry events, and spans now follow the OpenTelemetry GenAI semantic conventions with presets for Langfuse, LangSmith, Braintrust, Opik, Phoenix and MLflow. Also new: end user JWT verification and per user rate limits for serve. Contains breaking changes, see Changed (Breaking).
Changed (Breaking)
- OpenTelemetry span names: the run span is
invoke_workflow {workflow}(wasworkflow {workflow}) withgen_ai.operation.name=invoke_workflow, and is kindINTERNALunless it continues a caller'straceparent(thenSERVER, as before)- Model nodes are
chat {model}(was the node title, now ingraphrt.node.title) - Agents are
invoke_agent {title}withgen_ai.operation.name=invoke_agent(waschat).
- Model nodes are
system-onespans reportgen_ai.operation.name=chat(was the non-standardclassify, nowgraphrt.operation.kind=classify).gen_ai.systemis deprecated in favor ofgen_ai.provider.name. Both are emitted for this release,gen_ai.systemwill be removed in the next.tool_call/tool_resultprogress no longer appear as span events on the agent span (they areexecute_toolspans).model_requestprogress never becomes a span event.graphrt-otelAPI:OtelConfig::capture_content: boolis replaced byOtelConfig::capture: CaptureMode.AttrValueis#[non_exhaustive].RunRecordand the CLI'sServiceOptionshave new public fields (construct them withRunRecord::running/..Default::default()).
Added
- Online evaluation:
graphrt serve --evaluators <file>(cargo featureonline-eval, on by default, not in the IoT build) scores a deterministic sample of finished runs with the assertions ofgraphrt evalthat need no expected answer (judgeworkflows,regex,contains*,starts-with,is-json,json-schema,latency,tokens,trajectory:*), validated at startup.- Evaluators filter on workflow, run status, tags and metadata.
- Sampling hashes the run id with the evaluator name.
- Runs are queued after their response to a bounded pool (
concurrency,queue) - A full queue drops and counts (
graphrt.eval.dropped). - Without
--evaluatorsnothing runs and runs pay only an emptyOptioncheck (serve throughput within noise). - Scores, online evaluation, presets and the uploader add about 98 KiB to the default min-size binary and nothing to the IoT build.
graphrt_eval::onlineholds the config, sampling and evaluation.examples/evals/onlinereplays the reference judges offline.- See docs/evals.md#online-evaluation.
- Run scores (cargo feature
scores):GET /v1/runs/{id}/scores, andPOST /v1/runs/{id}/feedbackfor human feedback{name, value, comment?, user?}(number, boolean or text values).- Scores are stored next to the run (
runs/<id>/scores.json, or in memory, bounded by--max-runsand the TTL) with deterministic ids, so a repeated score replaces the earlier one. - With
--verify-jwt, an end user's token may give feedback on the user's own runs only, as that user.
- Scores are stored next to the run (
evaluate {name}spans: every score (online, human, and each assertion ofgraphrt eval) becomes a span in the evaluated run's trace, under its root span, with agen_ai.evaluation.resultevent (gen_ai.evaluation.name,.score.value,.score.label,.explanation), plus agraphrt.eval.scorehistogram by evaluator.- Names live in
graphrt_otel::semconv.
- Names live in
- Vendor presets:
--otel-preset <name>(orGRAPHRT_OTEL_PRESET) forlangfuse,langsmith,braintrust,opik,phoenixandmlflowfills the traces endpoint, auth and routing headers (Langfuse Basic auth andx-langfuse-ingestion-version: 4,x-bt-parent,x-mlflow-experiment-id...) and resource attributes (opik.project_name,openinference.project.name) from each vendor's own environment variables, and turns the metrics push off.- Small static tables in
graphrt_otel::preset.
- Small static tables in
graphrt serve --langfuse-scores(cargo featurelangfuse) uploads online and human scores to Langfuse's/api/public/scoreswith the run's trace and root observation ids and the score's deterministic id, through the egress policy, with retries.graphrt eval --otelexports one trace per test run withlangfuse.experiment.*attributes (a Langfuse experiment over OTLP, with the Braintrust preset andBRAINTRUST_PARENT=experiment_id:<id>, a Braintrust experiment) and anevaluatespan per assertion. It used to ignore--otel.graphrt-otel:EventTracer::with_span_attributes,with_root_attributesandwith_root_span_id.TraceId::from_hex/SpanId::from_hex.OtelConfig::export_metricsandpreset.graphrt-eval:EngineTarget::engineandenv.graphrt serve --verify-jwt INPUT(cargo featurejwt, on by default) verifies the token of a header-mapped input as a JWT:ES256/RS256keys from a JWKS (--jwt-jwks-url, refreshed in the background and on unknownkid) and/or anHS256secret (--jwt-secret-env), withexp,nbf,--jwt-issuerand--jwt-audiencechecks and a requiredsub.- A valid token may start runs (
POST /v1/workflows/{name}/runsonly, of workflows that declare the input, others are403) without the API key and setssys.user_id. - An invalid one is
401. --user-rate-limit Nallows N runs per minute persub(429withRetry-After).- The server refuses
--verify-jwton a non-loopback address without an API key. - No new crates.
- About 33 KiB of binary.
- A valid token may start runs (
examples/supabase-chatbot: a multi-user chatbot backend for apps signed in with Supabase Auth: agent with the supabase plugin inuser_rpcmode andtool_context, memory fromsys.history, a sample schema with RLS and an isolation test, a distroless container and Fly.io / Cloud Run / VPS notes.graphrt serve --input-header INPUT=HEADERmaps a request header (leadingBearerstripped) to a secret start input of new, streamed and resumed runs, so an app can send a user's JWT next to the serve API key.- The value is masked everywhere and never stored.
- Resumes must send the header again.
- A missing header for a required input is
401, the same input in the body400, and a non-secretdeclaration fails at startup.
agent_thoughtprogress events carrystreamed(whether the turn's text was streamed).- docs/serving.md documents the SSE format, the
responseevent and how retry /on_errorpolicies hold back live answer text. agentnodetool_context: per-run values (e.g. the end user's JWT) sent to one provider's tools beside the arguments, as a newcontextfield of the plugin protocol'stool.call({"secrets": {name: string}}).- Only plugins with
permissions.secretsthat the operator trusts receive it. - Other providers fail the node with
tool_context_denied. - The values are never shown to the model or recorded, and are masked in tool results, logged arguments and node errors.
- Hosts announce the
tool_contextfeature ininitialize.
- Only plugins with
- Plugin SDKs pass the context as the tool handler's second argument (TypeScript
(args, context), Python(args, context)for two-parameter handlers, RustToolCall::context). Existing handlers keep working. NodeContext::observe_secretlets a node register plaintext it handles as a run secret, so later node error messages are scrubbed.- OpenTelemetry: agent tool calls are
execute_tool {tool}child spans (gen_ai.tool.name,gen_ai.tool.call.id, error status for failed or denied calls).knowledge-retrievalnodes areretrievalspans withgen_ai.retrieval.top_k.gen_ai.provider.name,gen_ai.agent.nameandgen_ai.response.finish_reasons. - OpenTelemetry content capture follows
OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENT(NO_CONTENTdefault,SPAN_ONLY,EVENT_ONLY,SPAN_AND_EVENT).- With it on, the run span carries the run input and output (
graphrt.run.input/outputandlangfuse.observation.input/output), model spansgen_ai.system_instructionsandgen_ai.input.messages/gen_ai.output.messagesas structured values, tool spans their arguments and result, retrieval spans the query and document ids. - Values stay masked and capped at 4 KB.
- With it on, the run span carries the run input and output (
graphrt_core::node::CaptureContentservice: when registered (the CLI does so while content capture is on),llmnodes report their rendered messages asmodel_requestprogress, agents add result text totool_resultprogress andknowledge-retrievaladds itsqueryto the node metadata. Nothing extra is built without it.POST /v1/workflows/{name}/runsacceptsmetadata,session_id,user_idandtags.- They are stored on the run record and stamped on every span (
session.id,user.id,gen_ai.conversation.id,langfuse.session.id,langfuse.user.id,langfuse.trace.tags,langfuse.trace.metadata.*). graphrt rungets--session-id,--user-id,--tagand--metadata.
- They are stored on the run record and stamped on every span (
RunRecordgainstrace_idandspan_id(root span of the latest traced execution),metadata,session_id,user_id,tags, andinputs, kept (secrets masked) only with the newgraphrt serve --store-inputs.graphrt-otel:semconvmodule with every attribute name,CaptureMode,RunContext,EventTracer::{capture, with_context, content_limit, root_span_id},Span::is_run_root,AttrValue::Structured.- docs/observability.md: setups for Langfuse v4, Phoenix, Opik, MLflow, LangSmith and Braintrust.
graphrt eval <file.eval.yaml>: evaluate a workflow against test cases and gate CI on the pass rate.- Eval files use Promptfoo's
tests/assert/defaultTestshape plus JSONL datasets. - Assertions cover outputs (
equals,containsand its variants,regex,starts-with, `is...
- Eval files use Promptfoo's
Graphrt 0.3.2
A telemetry fix: short commands such as graphrt run now deliver their daily report. Release builds also point at the project's collector endpoint. Telemetry stays opt in and off by default.
Changed
- Release binaries, the Homebrew formula and the container image report to the project's collector (
graphrt-telemetry.bimapangestu280.workers.dev) once a user opts in withgraphrt telemetry enable. Still off by default.
Fixed
- Telemetry: the daily report of a short command such as
graphrt runwas lost.- The background thread claimed the day and removed its counts, then the process exited before the request finished, so nothing arrived and nothing was retried (only long-running
servedelivered reports). - A finishing process now waits for that once-a-day report, at most the 5-second send timeout.
- Telemetry is opt-in and no released binary had an endpoint, so no user data was affected.
- The background thread claimed the day and removed its counts, then the process exited before the request finished, so nothing arrived and nothing was retried (only long-running
Install
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.3.2/install.sh | sh
brew install graphrt/graphrt/graphrt
cargo install graphrt-cli
docker pull ghcr.io/bimapangestu28/graphrt:0.3.2The 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.
- Windows (experimental): cross-compiled, not yet run on Windows.
Full changelog: CHANGELOG.md · v0.3.1...v0.3.2
Graphrt 0.3.1
Loading large workflows is fast again. 0.3.0's strict validation did redundant work, so graphrt run / validate on a 1,000-node workflow took ~54 ms instead of 0.2.0's ~14 ms. No behaviour changes, and errors are reported exactly as in 0.3.0.
Added
- The iOS sample app is verified on a physical iPhone (iOS 18.3). Its README has the device build, install and launch steps.
- Plugin SDKs 0.2.0 on PyPI and npm (
graphrt-plugin): tool handlers can return images (tool_images), as shipped in graphrt 0.3.0.
Changed
- Every crate now declares Rust 1.89 as its MSRV (was 1.85 for most).
- The declaration was wrong, not the code:
graphrt-core's defaultyamlfeature has needed 1.89 since 0.2.0 throughserde-saphyr2, and the CLI, FFI and RAG crates already declared it. - The MSRV CI job (and
scripts/ci-local.sh) now checks the whole workspace on 1.89.
- The declaration was wrong, not the code:
Performance
- Validation compiles a clean document from the nodes it already built and checked, instead of building and checking them again in
Graph::build. - Source positions are computed only when there is something to report.
Graph::fingerprintis computed on first use and cached: only snapshots, run records and traces need it. Values are unchanged.graphrt runon a 1,000-node chain (macOS arm64,min-sizebuild): 0.3.0 55 ms, 0.3.1 16 ms, 0.2.0 15 ms.
Install
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.3.1/install.sh | sh
brew install graphrt/graphrt/graphrt
cargo install graphrt-cli
docker pull ghcr.io/bimapangestu28/graphrt:0.3.1The 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.
- Windows (experimental):
graphrt-x86_64-pc-windows-gnu.zipis cross-compiled and has not been run on Windows yet.
Full changelog: CHANGELOG.md · v0.3.0...v0.3.1
Graphrt 0.3.0
Workflow format v1 is frozen with a JSON Schema, and validation now collects every error with its location. Also new: webhook triggers, opt in anonymous telemetry, plugins installable by name from the plugin catalog, Android and iOS sample apps, a comparison against LangGraph, and another round of engine, LLM path and server speedups. A security review brought fixes, most of which also shipped as 0.2.1. Contains breaking changes to the workflow format and the Rust API, see Changed (Breaking).
Changed (Breaking)
- Unknown fields are errors in v1 documents: at the document,
graph, node, edge,retry,on_errorand variable-declaration level, and in node configs whose catalog schema is closed (additionalProperties: false, all built-in kinds, ascatalog::schema::objectnow produces).- Plugin configs with open schemas are unaffected.
schema::open_objectbuilds one.- Required config fields from the catalog schema are enforced (for example a
template-transformwithouttemplate). - The import layout (top-level
workflow/app,data-wrapped nodes) stays lenient. - Migration: run
graphrt validateand fix what it reports. - Move tool metadata to
x-keys.
versionmust be"1"(or1) or absent. Migration: setversion: "1".- Edge handles are checked: an edge must use a handle the source node can select (
sourcefor non-branch nodes, case ids andfalseforif-else, class ids, action ids, a plugin's fixed handles).- Non-branch nodes used to follow edges with any handle.
fail-branchedges on nodes without that strategy are a warning (never taken).- Migration: use
sourceor the node's handle.
- Reserved names: top-level
imports,inputs,outputs,triggers,metadata,requires,subgraphs. Node-leveldisabled,cache,metadata(plugin configs cannot use them either). human-input: the request expiry isexpire_after_ms(pause data still reportstimeout_ms). A configtimeout_mswas always taken as the node's per-attempt timeout and never reached the node. Migration: rename it.- Loop variables are
{name, type, input_type, value}.label,var_typeandvalue_type(which meant the input source, unlike every othervalue_type) still work as deprecated aliases. - Deprecated, still accepted with a warning:
environment_variables,conversation_variables, declarationvalue_type, nodeparentId/container_id/iteration_id/loop_id,error_strategy/default_value,retry_config, edgesourceHandle/source_handle. - API:
NodeDochas astrictfield.ConfigErrorhas afieldfield.DocumentError::Field.GraphError::{MissingNode, MissingParent, UnknownReference}carry asuggestion, newGraphError::{InvalidField, UnknownHandle}.graphrt validatetakes--format.CliErrorhaspreformatted. - Breaking (
graphrt-core):Event::NodeChunk::fieldis anArc<str>instead of aString, so a streamed chunk no longer allocates its field name.- Serialized events are unchanged.
- New
NodeContext::chunk_shared(&field, text)streams under a name the node keeps in anArc<str>. NodeContext::chunk(&str, text)keeps its signature (and allocates the name per chunk).- Migrating: compare with
field.as_ref() == "text", usefield.to_string()where aStringis needed, and.into()when building the event.
- Breaking (
graphrt-core):ResponseChunk::node_idis anArc<str>instead of aString(shared with the graph instead of copied per chunk). Migrating as forNodeChunk::field. NewResponseAssembler::push_into(&event, &mut out)appends to a caller-owned buffer.pushis unchanged. - Breaking (
graphrt-llm):collect's callback receives eachChatDeltaby value (FnMut(ChatDelta), wasFnMut(&ChatDelta)), after the delta was added to the response, so streamed text can be moved into a chunk instead of copied.- Closures that ignore the delta (
|_| {}) compile unchanged. - Others match on the owned delta instead of a reference.
- Closures that ignore the delta (
- Breaking (
graphrt-llm):nodes::common::PromptTemplate::messagesreturns&[PromptMessage]instead ofVec<&PromptMessage>. New helpersnodes::common::finish_reason_valueandStreamField::shared. - Node outputs and pool namespaces use the new
graphrt_core::Variablesmap (keys aregraphrt_core::VarName) instead ofIndexMap<String, Value>/IndexMap<Arc<str>, Value>.- It is a reference-counted, insertion-ordered flat map: cloning is a reference-count bump, so a node's outputs become its pool namespace and its event payload without being copied.
- Affected:
NodeOutput::outputsisVariables.NodeOutput::withtakesimpl Into<VarName>(string literals,String,&String,Arc<str>).Event::NodeSucceeded::outputsandEvent::NodeFailed::outputsareVariables(same JSON).VariablePool::namespace()returnsOption<&Variables>andVariablePool::set_outputstakes&Variables.
Migration: most code compiles unchanged, since Variables has the familiar get, insert, remove, iter, keys, values, len, contains_key, extend and collect() API. Iteration yields (&str, &Value) instead of (&String, &Value). Use .to_owned() where a String is needed. Pass a non-'static &str name as name.to_owned(). outputs.insert("x".into(), v) becomes outputs.insert("x", v). Convert with Variables::from(index_map), variables.to_index_map() or IndexMap::from(variables). Indexing a missing name (outputs["x"]) yields Value::Null instead of panicking. remove keeps the order of the remaining entries (like IndexMap::shift_remove).
Added
graphrt serve --webhooks <file>: webhook triggers.POST /v1/hooks/{hook}starts an async run of the hook's workflow from any JSON body and answers202with the run id.- Bodies map to inputs by JSON Pointer and header (
inputs,headers) or pass whole (body_input, defaultbody). - Optional HMAC-SHA256 signature checks in the GitHub, Stripe, Slack, generic or graphrt formats, compared in constant time, with a replay window for the timestamped ones.
- Secrets from the environment,
--env-fileor a file. - An idempotency key header (default
Idempotency-Key) maps redeliveries to the first run, durably with--store. - Deliveries share
--max-body-bytes. GET /v1/hookslists the hooks.- See docs/serving.md.
- Webhook completion callbacks (
callback): a signed (X-Graphrt-Signature: t=..,v1=..) JSON result POSTed when the run succeeds, fails, aborts or pauses, through the HTTP egress policy (private networks refused unless--allow-private-network, no redirects), retried with exponential backoff on network errors,408,429and5xx. - Opt-in anonymous usage telemetry for the
graphrtbinary (telemetryfeature, in the default set).- Off by default.
- On only after
graphrt telemetry enableorGRAPHRT_TELEMETRY=1, and always off withDO_NOT_TRACK, in CI, or without an endpoint (GRAPHRT_TELEMETRY_URLat build or run time). - At most one report a day, sent from a background thread with a 5 s timeout: a random install id, version, OS/arch, features, build (
cli/docker) and per-day counts of runs andserverequests, aggregated intelemetry.jsonin the user config directory. graphrt telemetry statusprints exactly what would be sent.- Not in the embedded or FFI libraries.
- See docs/telemetry.md.
tools/telemetry-collector/: a Cloudflare Worker + D1 collector for those reports (strict payload validation, no IP addresses stored, schema, wrangler config template, weekly-active-installs and daily-runs queries). Not deployed.- Workflow format v1 is frozen, with a JSON Schema (draft 2020-12):
schema/workflow-v1.schema.json, oneoneOfbranch per node kind keyed ontype, built from the node catalog.graphrt schemaprints the schema for the node kinds in the running build, including plugins.- The examples carry a
# yaml-language-server: $schema=...header. - Editor setup (VS Code YAML, JetBrains) and the stability promise are in
docs/workflow-format.md.
- Validation reports every problem at once:
graphrt validateandrunshow rustc-style errors withfile:line:column, a source snippet, the document path (graph.nodes[1].template) and "did you mean" suggestions for field names, node types, node ids in edges, parents and selectors, and edge handles.graphrt validate --format jsonprints a machine-readable report.- Library:
graphrt_core::validate::validate_text,Diagnostic,source_map::SourceMap,doc_schema::workflow_schema,Registry::descriptor_ref,Node::branch_handles,ConfigError::field.
x-keys (document,graph, nodes, edges) are free for tools and ignored.- Tools can return images that the
agentnode shows to the model, enabling vision loops such as computer use (screenshot, then click by coordinates).ToolOutputgainsimages(ToolImage::Base64 {media_type, data_base64}orToolImage::Url), checked againstcheck_images(4 per result, 5 MiB each, png/jpeg/webp/gif, https URLs).- Anthropic, Gemini 3+ and Bedrock Claude/Nova receive them inside the tool result.
- OpenAI-compatible servers and other models get them in a user message right after the tool results.
- New agent option
keep_tool_images(default 3,nullfor all) keeps only the latest N image-bearing results. - Plugin protocol:
tool.callresults acceptimages, andinitializeannouncesfeatures: ["tool_images"]. - The Python, TypeScript and Rust SDKs send images only to hosts that announce it.
- MCP image blocks are forwarded too.
- See
docs/tool-images.md.
graphrt plugin install <name>[@version]installs a plugin from the graphrt-plugins catalog (index.jsonof itscatalogrelease, or--index <url|path>/$GRAPHRT_PLUGIN_INDEX): the latest version or the exact o...
Graphrt 0.2.1
Security patch release for 0.2.0, recommended for every 0.2.0 user. It fixes sandbox limits that could be switched off, secret plaintext in error messages and code outputs, more SSRF address forms, unbounded concurrent runs and DNS rebinding in graphrt serve, predictable temp directories, and a SQLite CVE. No breaking API changes, but read the upgrade notes (MSRV and new serve limits).
Upgrade notes
- MSRV:
graphrt-ragnow needs Rust 1.89 (was 1.85), because the patched SQLite is only inrusqlite0.41, which declares Rust 1.89.- No
rusqlite0.40.x orlibsqlite3-sys0.38.x release carries the fix (the advisory listslibsqlite3-sys >= 0.39.0as patched, and that needs Rust 1.88). graphrt-ffienablesgraphrt-rag(withsqlite) through its defaultragfeature, so a defaultgraphrt-ffibuild needs Rust 1.89 too.graphrt-clialready needed 1.89.- The other crates keep their MSRV.
- No
graphrt serverefuses new and resumed runs with429 Too Many Requestswhile 256 runs execute (--max-active-runs,0= unlimited).graphrt servewithout an API key on a loopback address answers403to requests whoseHostis not a loopback name. If you put a reverse proxy in front of such a server, set an API key or have the proxy forward a loopbackHost.- Plugin manifests asking for
limits.max_message_bytesabove 256 MiB are rejected.
Security
codenode (JavaScript): a workflow could switch off the sandbox's memory and stack limits by asking forlimits.memory_bytes: 0orlimits.stack_bytes: 0(QuickJS reads zero as "unlimited"), and unbounded recursion then overflowed the native stack and aborted the whole process (for examplegraphrt serve).- An operator stack ceiling above 16 MiB had the same effect, and one above the executor's thread stack (2 MiB on tokio's blocking pool) crashed the process too.
- Limits now have floors (1 MiB heap, 64 KiB stack) and a 16 MiB stack ceiling, and JavaScript runs on a dedicated thread sized from the stack limit, so deep recursion is always a catchable
RangeError. - The
graphrt-codetokiofeature no longer changes behaviour and is kept for compatibility.
codenode (JavaScript): error messages thrown by scripts are truncated to 8 KiB, so a script cannot push megabytes into events and run records. An operator time limit too large for the clock no longer panics. A long chain of promise jobs is bounded by the time limit between jobs as well.- Python subprocess runner: the working directory is created fresh and owner-only (
0700) instead of adopting an existing directory at the predictable temp path. - Engine: node error messages are scrubbed of every secret the run has seen (
type: secretenv variables, secret-typed inputs, re-supplied resume secrets, secret outputs) before they reachnode_failed/node_retry/run_failedevents,error_messageoutputs of handled errors, the run store and OTel spans.- Previously an error that echoed a key (a provider body such as "Incorrect API key provided: sk-...", an HTTP error snippet from an echo endpoint, an exception in code) was recorded verbatim.
- New public helpers in
graphrt_core::redact(redact_secrets,SecretSet,MIN_SCRUB_LEN).
- LLM providers: error bodies of failed provider requests are scrubbed of the credentials the request carried (
Authorization,x-api-key,x-goog-api-key,api-keyheaders,keyquery parameters) before they become error messages. OpenAI-compatible gateways and self-hosted servers often echo the full key. codenode: returned strings containing a secret input (key, or"Bearer " + key) are re-tagged as secrets, so they are masked innode_succeededevents, SSE, run records and snapshots while staying usable downstream. Captured Python stdout is scrubbed. Previously they were stored in plaintext.- HTTP egress policy: also blocks the IPv4-translated form
::ffff:0:a.b.c.d(judged by the embedded IPv4 address), the local-use NAT64 prefix64:ff9b:1::/48, Teredo2001::/32and the Azure WireServer address168.63.129.16. - OTel HTTP exporter: redirects are no longer followed, so vendor key headers cannot follow a redirect to another host.
- Bundles:
graphrt run/serve --bundleextracted configs to a fixed, predictable directory in the shared temp dir and reused it if it existed, so another local user could pre-create it and plant symlinks or swapproviders.json(e.g. pointingbase_urlat their server).- Each invocation now extracts into a new owner-only (
0700) directory. - Signatures are checked with strict Ed25519 verification.
- Each invocation now extracts into a new owner-only (
- Plugins:
limits.max_message_bytesis capped at 256 MiB. WebAssembly plugins get at most 4 tables of 100,000 elements (was 8 x 1,000,000), which lived outside thememory_bytesbudget. graphrt serve: new--max-active-runs(default 256,0= unlimited) caps runs executing at once.- Further starts and resumes get
429. - Previously
"async": truerequests could start unlimited parallel runs (--max-runsonly bounds kept records). AppState::with_max_active_runssets it for embedders (default unlimited there).
- Further starts and resumes get
graphrt servewithout an API key on a loopback address now accepts only loopbackHostnames (localhost,127.0.0.1,[::1]), blocking DNS rebinding from web pages.- A non-loopback address without a key prints an explicit warning.
- Run store I/O errors no longer return server file paths to clients, and
top_kon/v1/knowledge/retrieveis capped at 100.
Debugoutput ofOtelConfig(OTLP headers) and the MCPStdioConfig(env) /HttpConfig(headers, bearer token) shows names only, never values.- Dependencies:
rusqlite0.40 -> 0.41 (bundled SQLite 3.54.1), fixing RUSTSEC-2026-0459 / CVE-2026-119375 (uninitialized page-cache memory read through a crafted database and-walpair) ingraphrt-rag'sSqliteStore.- This raises
graphrt-rag's MSRV to Rust 1.89 (see the upgrade notes). paste(unmaintained, build-time only, via candle) is acknowledged indeny.toml.
- This raises
- Docs: new docs/security.md (sandbox limits, egress policy, masking guarantees and their limits, deployment knobs). SECURITY.md now has a threat model, explicit scope and supported versions.
Install
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.2.1/install.sh | GRAPHRT_VERSION=0.2.1 sh
# or
cargo install graphrt-cli --version 0.2.1
docker pull ghcr.io/bimapangestu28/graphrt:0.2.1The 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.
Full changelog: CHANGELOG.md · v0.2.0...v0.2.1
Graphrt 0.2.0
Knowledge bases you can manage from an app, in process embeddings, serving on small devices, and a much faster engine and server. Contains breaking API changes, see Changed.
Added
graphrt serve --max-runs <n>. See docs/serving.md for small-device numbers.- Knowledge base API in
graphrt serve(with--knowledge): list datasets and documents (paged), add or replace documents from text or uploaded files (--max-upload-bytes, default 16 MiB), inspect a document's chunks, delete documents, and test retrieval, all on the knowledge base the workflows use.- Ingestion runs one request at a time to keep small devices responsive.
- Documents can be disabled and re-enabled (
PATCH .../documents/{document},KnowledgeBase::set_document_enabled): a disabled document keeps its chunks and stays disabled across re-ingestion, but no search returns it (memory, SQLite and Qdrant stores, reserved chunk metadata key_disabled). - Parent-child chunking per dataset (
chunking: { max_chars, parent_max_chars }in the knowledge config,KnowledgeBase::set_chunking): small children are embedded and searched, and retrieval returns each matching parent once, rebuilt from its children (nothing extra stored).ChunkerConfiggainsparent_max_charsandTextChunkgainsparent(breaking for struct literals)- Children carry
parent_indexmetadata.
- Knowledge base datasets can be created and deleted at runtime:
GET /v1/knowledge/resources,POST /v1/knowledge/datasetsandDELETE /v1/knowledge/datasets/{dataset}, backed byKnowledgeBase::{create_dataset, remove_dataset, dataset_details, resource_names, runtime_datasets}.- New datasets name a store, embedder and reranker declared in the knowledge config.
- They are saved next to it (
kb.datasets.json) and recreated on start byserve,runandkb.
graphrt-rag:VectorStore::list_documents(memory and SQLite stores),DocumentSummary,KnowledgeBase::{list_documents, document_chunks, delete_document, is_managed},RagError::Unsupported.IngestReportis serializable.graphrt-rag:LocalEmbedder(featurelocal-embed), sentence embeddings computed in-process with candle on the CPU: no embedding server, API key or network once the model is cached.- BERT-family models from Hugging Face (
sentence-transformers/all-MiniLM-L6-v2by default,intfloat/multilingual-e5-smallfor Indonesian and other languages) or a local model directory. - Configured as
embedders: { local: { type: local, model: ... } }. - On by default in
graphrt-cli(featurelocal-embed, about +2.1 MiB).
- BERT-family models from Hugging Face (
graphrt-ffi: the SQLite knowledge store is available on mobile, so bundles usingstores: { ...: { type: sqlite } }load on Android and iOS (built and linked for Android arm64, iOS not built yet).graphrt plugin install <git-url> --subdir <path>installs a plugin from a subdirectory of a git repository, so monorepos with one plugin per directory (such asgraphrt-plugins) work.- Absolute paths,
..and symlinks are rejected. - Only that directory is copied.
- Library:
graphrt-pluginaddsinstall_from_git_subdir(install_from_gitis unchanged).
- Absolute paths,
graphrt-core:Registry::register_lazily_described, which builds a node kind's catalog descriptor only when it is first requested.graphrt-cli: optionalmimallocfeature to replace the global allocator.
Changed
- Breaking (
graphrt-rag): clones of aKnowledgeBaseshare their datasets (so datasets created through one clone are visible to all).KnowledgeBase::datasetsreturnsVec<DatasetInfo>andchunkingreturns an ownedChunkerConfig. - Breaking (
graphrt-core): thenode_idandexec_idfields of everyEventvariant areArc<str>instead ofString, so the engine shares the ids it already holds instead of allocating two strings per event (every streamed chunk included).- Serialized events are unchanged.
- Migrating: compare with
node_id.as_ref() == "llm"instead ofnode_id == "llm", usenode_id.to_string()where aStringis needed, and.into()when building an event from aString.
- Breaking (
graphrt-core):GraphNode::{kind, title}and thekindandtitleofEvent::NodeStartedareArc<str>(shared, not copied per execution). Serialized events are unchanged. - Breaking (
graphrt-core): run stores keep events as serialized JSON:RunStore::append_events/eventstake and returnVec<StoredEvent>(Box<serde_json::value::RawValue>), built withevent_to_stored.stored_event_typereads an event's type.- The stored text is identical to what
event_to_jsonproduced, soGET /v1/runs/{id}/eventsis unchanged.
- Breaking (
graphrt-http):HttpClient::clientandHttpClient::manual_redirect_clientreturnResult<&reqwest::Client, ClientError>. The four underlying clients are built on first use.ClientErrorisClone.
Performance
- Startup no longer loads the system trust store for HTTP clients a run never uses: LLM providers (
graphrt-llm) andgraphrt-httpbuild their clients on the first request.graphrt run hello.yamlused to read every CA certificate six times (361 file opens, now 1). - Built-in node kinds build their catalog descriptors lazily: node registry construction went from ~530 µs to ~7 µs.
template-transformcompiles its template once instead of on every run: ~20% less engine time per template node.- Net effect,
graphrt run hello.yaml(static musl binary, Linux arm64): 10.1 ms -> 6.5 ms wall clock, 3.1 ms -> 0.6 ms user CPU. - Fewer allocations per run and per node execution: a variable pool allocates its namespace shards on first write (an empty pool was 33 allocations, one per execution frame), namespace keys are reused instead of re-allocated on every write, node commits without variable writes skip the undo log, execution ids are written without
format!, andArc<str>ids are copied without going throughDisplay.- On the benchmark harness (Apple M-series, same machine before and after): 1,000 concurrent instant runs 63k -> 82k runs/s (+31%), per-node scheduling 1.55 -> 1.27 µs (noop chain) and 2.31 -> 1.57 µs (1,000-way fan-out), time to first streamed chunk overhead 14.5 -> 11.6 µs.
- Shared
Arc<str>event ids (see Changed) took the same benchmark to 94k runs/s (+49% over 0.1.0 in total), 1.06 µs per noop node and a 10.2 µs streaming overhead. The response assembler and the OpenTelemetry tracer key their maps by the shared ids too. - Cheaper per-frame bookkeeping: index-keyed maps use a multiplicative hasher and are sized up front, and the scope's id set is built only when a node writes variables.
- Against 0.1.0 on the same machine: 0.87 µs per node on a 1,000-node chain (was 1.55), 1.18 µs on a 1,000-way fan-out (2.31), 98k instant runs/s (63k)
- Raw data in
bench/results/2026-11-1{8,9}-*.
graphrt serve: a run's 4,096-slot broadcast channel is created only when something subscribes to its events (it took ~30% of server CPU), and accepted connections setTCP_NODELAY(streamed responses no longer wait ~40 ms for a delayed ACK on Linux).- Static musl, Linux arm64, 1 CPU: synchronous runs 2,875 -> 20,613 req/s, streaming 382 -> 3,392 req/s, async 4,232 -> 20,499 req/s.
- macOS native synchronous 26k -> 46k req/s.
- Engine: fewer allocations per node execution (ids built on the stack, shared
Arc<str>kind/title, outputs no longer copied into the pool), run events queued in a reusable buffer with an atomic waker instead of an mpsc channel, and stored events kept as JSON text (297 ns and 2.6 allocations per event, was 485 ns and 14.3).- Per-node scheduling another 7-15% lower (0.73 µs on a 1,000-node chain).
bench/run.sh: the harness's global allocation counter is enabled only in the sections that read it. It had capped the concurrency section at ~60-80k runs/s. With it gated the same machine measures ~300k runs/s for the llm graph and ~390k for a no-LLM graph at 11 workers (a measurement fix, not a runtime speed-up).
Fixed
graphrt servewithout--storekept every run (record and events) in memory forever: under a 32 MiB limit the server was OOM-killed after ~1,800 runs. The in-memory store now keeps at most--max-runsruns (default 1000), dropping the oldest finished runs first and always keeping running and paused ones.
Install
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.2.0/install.sh | sh
# or
cargo install graphrt-cli
docker pull ghcr.io/bimapangestu28/graphrt:0.2.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.
Full changelog: CHANGELOG.md · v0.1.0...v0.2.0