v0.17 release notes
Archived release notes. The latest release and what is on dev are on What’s New.
v0.17.0 - Local judgment, safer connections, truthful runs (October 2026)
Section titled “v0.17.0 - Local judgment, safer connections, truthful runs (October 2026)”This release adds typed judgment across three backends, makes eval cheaper and repeatable, carries budget and outcome truth across the whole run, and makes remote tool access safer to deploy.
Typed judgment across Jev, LLM emulation, and local Ollama
Section titled “Typed judgment across Jev, LLM emulation, and local Ollama”The new @reactive-agents/judgment package provides batched, typed Choice/Score/Noul decisions through .withJudgment() and agent.judge(). Backend selection is automatic unless overridden: "jev" when a TypeSafe key resolves (apiKey or TYPESAFE_API_KEY), otherwise "llm".
- Jev (
backend: "jev"): TypeSafe’s System One model with real calibrated probabilities. Backs the eval default below and the live model catalog inagent.listJudgmentModels(). Every call emitsJudgmentEvaluatedorJudgmentFailed. - LLM emulation (
backend: "llm"): structured-output over the agent’s existingLLMService, no TypeSafe key required. Choice/Score answers carrycalibrated: false, so gate on that flag when calibration matters.listJudgmentModels()rejects withJudgmentUnsupportedbecause there is no catalog endpoint. - Local Ollama (
backend: "ollama"): the same System One protocol served locally with no API key and no outbound network. Default modelnimble;clefandclef-flashadd vision,tevis text-only.ollama.keepAlive(for example"10m") keeps the decision model warm, andimagesaccepts base64-only screenshots against a vision model with a 32 MiB ceiling. Backends declareJudgmentCapabilities(maxQuestions,supportedKinds,distributions,calibrated,images,modelCatalog); read them withcapabilitiesOf(service).judgeRank()and the comprehension chunker clamp to the real ceiling instead of a hardcoded constant.
agent.judge({ state, questions, images?, includeContext? }) calls judgments directly from user code. state is required unless includeContext: true supplies it; an explicit state field always wins on key collision. includeContext is boolean | JudgeContextConfig: true folds recent messages, tool results, and the reasoning-step trace, while the object form ({ messages?, toolResults?, reasoningSteps? }) opts into named layers with independent windows. agent.judgeRank() re-ranks candidates in bounded Score batches (chunkCap default 30), rejects non-positive chunk sizes and duplicate candidate ids loudly, and keeps input order on ties. agent.listJudgmentModels() is scoped to the judgment backend, not .withModel(), and these types are re-exported through the reactive-agents facade. Calling any of them without .withJudgment() throws immediately instead of silently no-oping.
Harness sites opt in without silently changing existing decisions: strategy selection, complexity routing, task comprehension, completion/termination, and grounding/fabrication run shadow-only JudgmentShadow events for later agreement analysis. The guardrails battery is additive by default and can only add or escalate findings unless "jev-primary" is explicitly set; screenOutputs is observability-only. Autonomy approval stays fully in control of its existing gate, and tool healing only fires above a 0.8 confidence floor after the synchronous healer misses. Without .withJudgment(), behavior is byte-identical. See Judgment Layer and the judgment recipes.
Cheaper, repeatable eval via the Jev engine
Section titled “Cheaper, repeatable eval via the Jev engine”@reactive-agents/eval now scores accuracy, relevance, completeness, and safety through the jev engine by default when a JudgmentService is wired: one batched request per case with real calibrated confidence instead of four float-prompt LLM calls. Dimensions the batch does not cover fall back to the existing per-dimension llm path; with no JudgmentService wired or judgeEngine: "llm", behavior is byte-identical to before. EvalConfig.repeats (default 1) re-scores the same output to measure judge variance, pools repeats per dimension without blending calibrated judgment samples with uncalibrated LLM samples, and drives checkRegression and compare through a statistically derived minimum detectable effect when variance exists. @reactive-agents/judge-server gains the same judgeEngine: "jev" option for /judge. See Evaluation Framework.
Budgets, strategies, and run truth
Section titled “Budgets, strategies, and run truth”.withBudget({ tokenLimit, costLimit }) is now enforced against cumulative run spend through a run-scoped meter, not a fresh allowance per kernel. The meter covers the main pass, auxiliary passes such as verification retries and continuation hooks, structured-output retries, and direct LLM calls between kernels; crash-resume max-seeds it from persisted numbers. Runs without .withBudget() are byte-identical. Compose’s budgetLimit() reads the same spend, and plan-execute-reflect receives remaining budget per wave, stops launching new work once the limit is crossed, and terminates honestly as partial with a budget-limit reason. Adaptive runs now report the dispatched sub-strategy in metadata.strategyUsed via selectedStrategy instead of always reporting "adaptive".
Strategy switches carry the prior ledger forward and mint a typed handoff fact instead of folding the summary into priorContext; carried tool observations are de-duplicated so they do not mint twice. Trace completion carries real cost and termination reason, and AgentStream.collect() matches agent.run() for success, termination, goal achievement, and tool-call metadata. A terminal answer rejected for leaking internal scaffolding gets one bounded, verifier-checked synthesis repair before the existing honest failure path. Local streaming calls are subject to .withLlmTimeout() while the initial request is being set up, not only after the first response chunk; expiry aborts the Ollama SDK fetch. See Cost Tracking, Process Model, Streaming, and Local Models.
Safer tools and agent-to-agent connections
Section titled “Safer tools and agent-to-agent connections”- MCP OAuth 2.1 client: remote
streamable-httpandsseMCP servers can useclient_credentials,private_key_jwt, or a user-authorized flow viarax mcp login|logout|status(with--client-secretand--redirect-portwhere required). Tokens use a permission-restricted store; browser login is never opened implicitly. The client also handles post-connect 401 challenges, trailing-slash issuer differences, and integer-typed tool schemas. See MCP OAuth. - Precise file edits: the new
file-edittool replaces one exact text block rather than rewriting a whole file. Ambiguous edits are refused, and the tool keeps the same high-risk approval posture as file writes. See Tools. - A2A serving:
agent.serveA2A()starts a real server after the agent exists;rax serveuses the same implementation. Task responses now use the A2A task shape, JSON-RPC IDs are preserved, non-blocking sends return promptly, configured base paths are honored, and executor misconfiguration fails immediately instead of leaving tasks stuck.tasks/cancelnow updates the correct stored task, but does not yet interrupt its underlying run.rax servehost and token settings moved toRA_A2A_HOSTandRA_A2A_TOKEN, with the old names kept as a deprecated fallback. See A2A Protocol.
Deploy and observe more easily
Section titled “Deploy and observe more easily”- Cloudflare Workers:
create-reactive-agentadds an edge-readycloudflare-workertemplate with Worker secret bindings and Wrangler scripts. The template is pinned to OpenAI, usesnodejs_compat, and omits persistent memory and shell/filesystem tools on the edge. See Project Scaffolder. - Langfuse:
setupLangfuseExporter()configures OpenInference-attributed OTLP traces for Langfuse, including regional hosts and authentication headers. See OpenTelemetry Tracing. - Demand-driven local context:
.withHarness({ numCtxPolicy: "demand" })opts into sizing Ollama’snum_ctxfrom the assembled prompt with a monotone-growing high-water mark; the default fixed policy is unchanged. See Local Models. - Runnable examples:
rax examplesruns the example suite, lists standalone demos, and launches demos such as Island Survival with provider, model, and port options. See Examples Catalog and CLI Reference.
Reliability, security, and cleanup
Section titled “Reliability, security, and cleanup”- Provider keys are read at layer build time, and missing Groq/xAI credentials no longer fall through to another provider’s OpenAI key.
completeStructured()now sends valid JSON Schema to local, OpenAI, Gemini, Anthropic, and LiteLLM. See LLM Providers and Structured Output. - Entropy is scored once per kernel thought, removing phantom divergence on healthy runs. Observer failures that were silently swallowed are now published as events instead of vanishing. Three inert experimental mechanisms were removed rather than retained as unmeasured switches.
- File tools fail helpfully: an out-of-root path is still refused, but the error names the working root, states the relative-path rule, and suggests the deepest in-root match. See Tools.
- The
write_result_to_fileoverflow hint appears only when that tool is actually offered, andrax demonow selects Gemini correctly when it detects a Google API key.generateAgentCarddefaultscapabilities.streamingtofalsebecause end-to-end A2A SSE streaming is not implemented.
A new simulation showcase
Section titled “A new simulation showcase”The Island Survival demo pairs a deterministic survival engine with optional local world generation and batched System One decisions. Provider failures fall back to scripted decisions, so the simulation remains playable offline. The map, alliances, council, hidden discoveries, resource scarcity, and rescue or all-lost finale make model decisions visible as consequences in a running world.
Contributors
Section titled “Contributors”Thanks to the community contributors whose work shipped in this release:
- sriharsha471: built the Langfuse exporter preset (
setupLangfuseExporter, PR #228) and the Cloudflare Worker template forcreate-reactive-agent(PR #204), including thewrangler.tomlproject-name escaping fix. - ZentropyLabs.ai (Zain Dana Harper): made path-traversal rejections corrective instead of dead ends (PR #202, fixes #201). File tools now name the working root, state the relative-path rule, and suggest the deepest in-root suffix match, with
confinePath()as the single confinement point for file-read, file-write, and directory listing.
Install
Bun (recommended)bun add reactive-agentsNode 22.5+npm install reactive-agentsGet notified on new releases