Repository navigation
Releases
Agent Supervisor 0.3.4
Agent Supervisor 0.3.4
Version 0.3.4 improves process-exit reporting and supports larger service
messages.
Fixed
- A process that exceeds its configured stdout or stderr limit now produces an
exit receipt instead of leaving attached clients waiting indefinitely. - Stream failures are sent to process clients as error events before the final
exit receipt.
Changed
- Supervisor service JSONL frames use a 16 MiB limit across the Rust, Python,
Node.js, and TUI clients.
License
Version 0.3.4 is licensed under Apache-2.0. See the repository LICENSE file
for the complete terms.
Agent Supervisor 0.3.3
Agent Supervisor 0.3.3
Version 0.3.3 adds a standalone terminal process manager and improves the
service and coordinator experience.
Added
- A Ratatui process manager displays active and completed processes, supports
process control, and can render a one-time snapshot without entering an
interactive terminal loop. - The service exposes the TUI through the existing authenticated service
protocol, preserving the existing rendering and input loop. - The README and API documentation describe the terminal process manager and
the Node.js service integration.
Fixed
- Process labels fall back to the OS process ID when metadata is unavailable.
- Windows AppContainer loopback tests retry transient failures, and service
recovery and cancellation tests wait for process cleanup.
License
Version 0.3.3 is licensed under Apache-2.0. See the repository LICENSE file
for the complete terms.
Agent Supervisor 0.3.2
Agent Supervisor 0.3.2
Version 0.3.2 aligns the package versions across the Rust crate, Python
binding, and Node.js native addon. It includes the persistent Supervisor
service and coordinator introduced in 0.3.1.
Compatibility
- No additional public API changes from 0.3.1.
- The Python binding continues to require Python 3.9 or later.
- The Node.js native addon is distributed from a source checkout and is not
published to npm.
License
Version 0.3.2 is licensed under Apache-2.0. See the repository LICENSE file
for the complete terms.
Agent Supervisor 0.3.1
Agent Supervisor 0.3.1
Version 0.3.1 adds an authenticated client API for the persistent Supervisor
service and its service-owned workflow coordinator.
Added
- The service exposes metadata snapshots, epoch/cursor subscriptions, process
streams, and scoped control, reporting, and cancellation clients. - The coordinator tracks FlowRuns, stages, task dependencies, attempts,
processes, waiting states, and bounded evidence. - Flowboard updates use a durable, idempotent outbox. Coordinator state and
dispatch reservations survive service restart; unresolved launches remain
unknown and are not automatically replayed. - Worker tool and approval requests are attempt- and generation-scoped,
fenced, bounded, and hidden from view-only clients.
Limits
- The standalone service currently supports Unix-domain sockets. Windows
process APIs remain available through the embedded library. - Framework-specific checkpoint restoration remains owned by each framework.
An unresolved dispatch after service restart is not replayed unless its
completion can be verified. - Provider smoke tests use fixtures rather than authenticated live accounts.
Validation
The repository test suite covers service recovery, fencing, role separation,
FlowRun reconciliation, client reconnect, bounded output, and worker
cancellation. See the project test records for the complete platform matrix.
License
Version 0.3.1 is licensed under Apache-2.0. See the repository LICENSE file
for the complete terms.
Agent Supervisor v0.3.0
Agent Supervisor 0.3.0
Version 0.3.0 adds manager-owned background process jobs to the Rust
supervisor and the Python Supervisor wrapper. The host application remains
the owner of the supervisor; jobs do not move to a separate daemon.
Added
- Rust
Supervisor::start_background()starts a process under a stable
SupervisorProcessId. The manager drains bounded stdout and stderr, observes
process exit, reaps the child, and retains its finalProcessReceipt. - Rust exposes process status/result lookup, waiting, result removal, stdin
writes and EOF, per-process shutdown, and awaitedshutdown_all(). - Python
Supervisorexposes the corresponding methods. Its
SupervisorProcessIdcompares and hashes by value, and managed results use
RunResultwith an optional output collection error. Supervisor::start_agent_run()in Rust andSupervisor.start_agent_run()
in Python create anAgentRununder the top-level supervisor. Agent-run
tools share the supervisor's process registry and are cleaned up with their
run;shutdown_all()also cancels active agent runs.- The public
AgentRunScopetype is renamed toAgentRunand is now created
bySupervisorrather than constructed independently. Supervisor.stream()in Python andSupervisor::stream()in Rust watch work
as one ordered stream of events, for one process, one agent run, or
everything on the supervisor. Watching never affects the work. Background
jobs can now be followed live, and a late watcher replays retained events.
In Rust, converting aSupervisedChildwithinto_event_stream()publishes
its output to watchers; output read directly from raw pipes stays caller-owned.- Framework adapters publish the agent's events to the run's stream and read
the framework's stream in the background, sosupervisor.stream(run=...)
shows agent events and tool output together without a second read loop.
Each adapter's result exposesagent_run. Rust integrations can use
AgentRun::publish_agent_event(). - Rust and Python examples show multiple jobs, stopping one by ID, inspecting
its output and exit result, and awaiting cleanup of the remaining jobs.
Changed
- The module-level
agent_supervisor.stream()is removed. Use
Supervisor.start()and iterate the returnedProcess, calling
close_stdin()if the command takes no input.Process.wait()returns its
output, andProcess.shutdown()stops it.Command.timeoutdoes not apply to
start(), so enforce a deadline withasyncio.wait_for(). - A background job is no longer stopped for exceeding its output limits. Its
result keeps the newest bytes and setsoutput_truncated. - Streaming framework adapters now start reading as soon as they are called,
rather than when the caller first reads the stream.
Lifecycle and limits
- Existing
Supervisor::start()andSupervisor.start()remain interactive
APIs. The caller uses the returned child/Processhandle for stdin, output,
and final waiting. - Background jobs require an active Tokio runtime. The supervisor owns their
output draining, exit observation, and reaping; useshutdown_all()before
the runtime exits when final results are needed. - Dropping the supervisor requests termination of its remaining process
trees. Drop is synchronous and cannot return final output or await reaping. - One-shot output and output read through the managed interactive event stream
are bounded by the command policy. A Rust caller that takes raw pipes owns
draining and bounding that output. A background job retains its newest
output up to the configured limits. The timeout in a command policy applies
to one-shot execution; persistent jobs run until they exit or the host
explicitly stops them. - Unix shutdown sends a graceful process-group signal and force-stops after
the grace period if needed. Windows has no graceful process signal and
requests a force-stop immediately. - Per-process stop outcomes report the request sent. They do not claim the
process exited; usewait_process()orshutdown_all()to obtain the
observed final receipt.
Examples and API references
Agent Supervisor v0.2.0
Agent Supervisor 0.2.0
Version 0.2.0 adds a shared agent-run lifecycle and stdio MCP integrations
across Rust and Python. It builds on the process execution and WASM support in
the 0.1.x releases.
Added
- Rust exposes
AgentRunPolicyandAgentRunScopefor an overall agent-run
deadline, cancellation, and cleanup of local tool processes. - Python exposes matching
AgentRunPolicyandAgentRunScopetypes. Its
OpenAI Agents SDK, Microsoft Agent Framework, LangGraph, PydanticAI, and
Google ADK adapters use the same public scope. - Rust can run a local stdio MCP server under process supervision and apply
shared MCP tool-call controls. - Python adds import adapters for stdio servers using the official MCP Python
SDK and Prefect FastMCP. Existing server tools and MCP clients keep their
protocol flow. - Rust and Python API references describe the run-scope and tool-process
lifecycles, arguments, return values, defaults, and examples.
Behavior and limits
- The agent framework still runs agent code and model requests in the
application process. A deadline cancels the framework operation
cooperatively; it does not forcibly terminate in-process agent code. - Agent Supervisor cleans up local tool processes started through its APIs.
File, network, and resource enforcement still depends on the selected
platform backend and policy. - MCP adapters in this release supervise local stdio servers. They do not
supervise HTTP transports. - Python framework adapters and Python MCP integrations require optional
dependencies. Install the extras for the SDKs you use; the documentation
lists each extra.
Validation
The Rust all-target test suite and Python unit suite pass in the repository
checkout. FastMCP-specific Python tests require the optional FastMCP extra;
they are skipped when it is not installed.
License
Version 0.2.0 is licensed under Apache-2.0. See the repository LICENSE file
for the complete terms.
Agent Supervisor v0.1.3
Agent Supervisor 0.1.3
Version 0.1.3 adds an optional WebAssembly runner to the Rust API. Native
process execution remains the default.
Added
- The
wasmCargo feature, backed by Wasmi, exposesWasmRunnerthrough the
existingProcessRunnerinterface. - The runner supports one-shot modules with the documented JSON guest ABI,
memory and fuel limits, and no host imports. - Eight WASM unit tests cover ABI execution, host-import rejection, request
policy validation, malformed modules, and input/output/resource limits. - The Python binding remains on the native process backend; it does not expose
the WASM runner.
Limitations
- WASM execution does not provide WASI, host filesystem or network access,
process creation, persistent services, MCP server supervision, or PTYs. - A timed-out invocation may continue in its isolated blocking worker until its
Wasmi fuel budget is exhausted. - WASM execution remains limited to the documented guest ABI and deny-all host
capabilities; this release does not add WASI support.
Validation
The eight WASM unit tests and the complete Rust library unit suite pass with the
wasm feature enabled. The default and WASM-feature builds also compile.
License
Version 0.1.3 is licensed under Apache-2.0. See the repository LICENSE file
for the complete terms.
agent-supervisor v0.1.2
Agent Supervisor 0.1.2
Version 0.1.2 adds an async Python binding alongside the Rust API. It supports
bounded one-shot command execution, output streaming, cancellation, deadlines,
and structured termination results.
Added
- An initial Python package under
python/, implemented with PyO3 and maturin. await run(...)for bounded stdout/stderr capture and structured results.async with stream(...)for stdout/stderr events, optional bounded capture,
deadlines, and cleanup when the stream context exits.- Python API documentation and tests for capture, streaming, output limits,
deadlines, cancellation, and child cleanup. - Python wheel build and API test jobs for Linux, macOS, and Windows in CI.
Compatibility and availability
- The Rust
agent-supervisorcrate remains the published core package. - The Python binding source is included in the GitHub repository but is not yet
published to PyPI. Build it from a checkout with maturin; see the
Python API guide. - The first Python API supports one-shot commands. Streaming commands close
stdin immediately; interactive input and persistent process handles are not
included. - Output is bounded.
run()reports an output limit in the returned result;
streaming raises a structured error after cleanup.
Validation
The Python API suite has 12 integration tests and passed locally on macOS while
building and installing the Python 3.9 ABI-compatible wheel. CI now builds and
runs those tests on Linux, macOS, and Windows. Native Rust platform tests
remain governed by the main CI matrix.
License
Version 0.1.2 is licensed under Apache-2.0. See the repository LICENSE file
for the complete terms.
agent-supervisor v0.1.1
Agent Supervisor 0.1.1
This release publishes the core agent-supervisor crate on crates.io and
keeps the OpenShell integration as a separate developer preview.
Added
- The core
agent-supervisorcrate is available on crates.io as version
0.1.1, licensed under Apache-2.0. - An experimental OpenShell adapter lives in
dev/openshell-adapter/. It runs
one-shot commands in an existing OpenShell sandbox using NVIDIA's Rust SDK.
It is not included in the published core crate because NVIDIA currently
distributes the Rust SDK from Git rather than crates.io. - OpenShell contract documentation describes bounded collection, validation,
deadlines, structured failures, and remote termination limits.
Changed
ExecutableIdentity::canonical_pathis nowOption<PathBuf>. Native
execution continues to provide the verified canonical path; the developer
adapter reportsNonebecause OpenShell does not return the resolved
executable path. Callers reading this field should handle the optional value.- The developer adapter rejects per-command filesystem restrictions, disabled
networking, required enforcement, kernel resource limits, host environment
inheritance, and local executable search paths when the remote API cannot
apply or verify those requirements. - The adapter uses a fresh request ID and a local wait deadline. If a stream
ends, overflows, or times out without an observed exit event, the remote
command's final state is unknown. Closing the stream does not prove process
termination. OpenShell's remote timeout is surfaced as an exit code and
cannot be distinguished from a command returning that code itself. - README, quickstart, and the documentation site now describe the crates.io
release and separate developer adapter.
Compatibility
The canonical_path type change is a source-level API change for users who
read that field. The published core crate has no OpenShell SDK dependency; its
default native API remains usable through the normal crates.io dependency.
The adapter is an unpublished developer package and requires an OpenShell SDK
Git checkout dependency.
Validation
The core test suite passed on macOS. The separate adapter unit tests passed,
and a local Docker OpenShell sandbox smoke test successfully executed
/bin/echo through the adapter. Platform-specific Linux and Windows
integration tests still need to run on their respective operating systems.
License
Version 0.1.1 is licensed under Apache-2.0. See the repository LICENSE file
for the complete terms.