Skip to content

Releases

v0.38.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 11:28
v0.38.0
2fb2192

Each step names its model, and bonnie eval has a reference example.
This is a MINOR release under the pre-1.0 convention: it adds
runtime.StepModel and a model field in the step record payload, and the
examples/refund-desk agent tree. bonnie runs and bonnie eval show the
model, and the bonnie eval interface takes the mouse. No exported Go symbol
is removed. An older journal stays valid: its step records have no model. The
run executor changes only the step payload; the channels and package eval
do not change. BONNIE remains early and experimental. No release is proven
in production. Do not use it for work whose loss would hurt.

The claims

  • A run survives process death. A served agent continues unfinished runs
    at startup from the journalled conversation, including typed tool calls and
    results. SQLite commits each tool-calling step atomically. The sender of a
    turn and its trace context are journalled with the turn and restored on
    resume, so a recovered turn keeps its caller and its trace. A keyed
    decision is answered from the journal after a restart. Unsaved input
    cannot be recovered; execution is not exactly once.
  • A run parks indefinitely. A human-input wait needs no live agent process
    or running sandbox compute. Resume supplies the answer after restart. Keep
    the journal and sandbox data. JetStream waits need their original agent.
  • A run is reachable over HTTP. Routes under /bonnie/v1 expose runs,
    snapshots, events, durable submissions, and owned child runs. Terminal chat
    and the optional /web interface use the same channel and run executor.
    Iroh serves the HTTP wire API over authenticated QUIC streams for approved
    peers. The same authenticated API is also reachable over Core NATS subjects.
    The runs console and its commands act on runs through the same API.

Added

  • examples/refund-desk, the reference for bonnie eval: a refund
    assistant with lookup_order and issue_refund, and evals that use a
    dataset, run checks, a Choice and a Bool judge, JudgeAll on the
    transcript, the language-model judge, and an approval across Restart.
  • Each step record names its model. The step payload adds model,
    the provider/model that Kit reports for the step, and
    runtime.StepModel reads it. The payload keeps its kind and prompt,
    so a reader that decodes a SuspendRequest is not changed. An older step
    record has no model.
  • bonnie runs shows the model. Overview names the model of the latest
    step, and the Trace and Journal tabs name the model of each step. Before,
    the Overview line showed only a model change in the middle of a run.
  • bonnie eval shows the models. The Scores tab names the agent's model,
    from the steps in the eval's journal, and the model of each decision and
    language-model judge. The Conversation tab names the agent's model.
  • The bonnie eval interface takes the mouse. A click selects an eval or
    a tab and moves the focus, the wheel scrolls the panel under the pointer,
    and a drag over the detail copies its text, as in bonnie runs.

Changed

  • task examples and TestExamplesBuildAgainstThisCheckout vet each tree
    with the eval build tag, so an example's *_eval_test.go files compile
    against the checkout and the pinned release. Before, no check compiled
    them.

Known limits

  • Evals call live models and run real tools. bonnie eval sends real
    requests to the agent's model and to the judge, and each request can cost
    money. Judge calls are not journalled. There are no tool stubs and no remote
    targets: an eval runs the agent's own tools in its sandbox, with their real
    effects. A judge score is a model's opinion, not a proof. The saved runs in
    .bonnie/evals hold each eval's full journal; protect them.
  • A dynamic agent binary names a fixed loader. bonnie build names the
    standard glibc loader, or the musl one on a musl host. A host with no
    loader at that path, such as NixOS without nix-ld, needs a binary built
    with --native-loader, and that binary runs only where the toolchain's
    loader path exists. A static binary does not name a loader.
  • The self-contained example is not one static binary. Its model runs
    through Kronk and llama.cpp, so bonnie build makes a binary that loads
    libffi and llama.cpp's shared libraries when it starts. The first start
    downloads about 2 GB into ~/.kronk and needs a network connection. The
    model has its own license, not Apache 2.0.
  • The model database refresh changes a shared cache. update models
    writes Kit's per-user cache outside every sandbox, and other agents of that
    user read it on their next load. Use only trusted catalog sources. A
    cancellation or an output error does not undo an update that Kit committed.
    Running agents must restart to use it. Disabling the command does not stop
    Kit from reading the cache.
  • Mouse copy needs OSC 52. A terminal without OSC 52, such as GNOME
    Terminal, does not get the selection, except inside tmux. Use Shift+drag
    there. On the trace and journal tabs of bonnie runs a selection marks
    screen cells, so a scroll or a key drops it. In bonnie eval a key, the
    wheel, or another eval drops the selection in the detail.
  • A decision is a probability, not an authorization. Enforce access rules
    in host code; keep the sandbox and the network policy as the hard limits. A
    keyed decision is not exactly once: if the process stops after the model
    answers and before the record is written, the next call asks again and can
    cost money. Agent.Decide has no run and writes no record. The startup
    check proves that Kit can call the model, not that its credentials or URL
    settings work. The decide tool takes text only, at most 32 KiB and 16
    questions. Captured decision answers are output content.
  • Linux only. Releases support linux/amd64 and linux/arm64. The default needs
    kernel 5.13 or newer with Landlock enabled; otherwise select Docker.
  • Containment is not isolation. Landlock confines files, not the network,
    and shares the host kernel. Do not run as a user in the docker group:
    access to its socket permits host escape. Docker uses namespaces, not a
    separate kernel. Microsandbox needs Linux and KVM. Local provides no isolation.
  • Sandbox egress is open until a policy is set. Landlock refuses policies it
    cannot enforce. Microsandbox policy is fixed at creation; reattachment with a
    different policy fails. Automatic runtime installation needs network access
    and does not upgrade existing installations or remove runtime requirements.
  • Custom tools and completion callbacks are trusted host code. Use scoped
    Exec for commands; do not retain scopes after execution. Use Kit.Subagent,
    not Kit.Prompt, from active tools. Closure state is not durable; interrupted
    calls and checks can repeat. Child model calls are not durable BONNIE runs.
    Enforce authorization and idempotency in tool code. Keep completion policy and
    limits stable after restart. Usage can be undercounted; unsaved attachments
    are lost, accepted events can repeat, and drafts can appear before acceptance.
    Checks skip suspension and model failure. Managed setup, scoped factories, and
    completion options cannot use WithAgentFactory.
  • A halt stops the turn, not the step. Sibling tool calls still run before
    suspension. Omitting human-input tools does not change permissions.
  • A skill's bundled files stay on the host. Put required text in the skill
    body and required sandbox files in context/. Workspace skills are the
    exception: their assets are live sandbox files, not journal snapshots.
  • Workspace skills are untrusted input. Repository descriptions and bodies
    enter model context and can contain hostile instructions; activation does not
    authorize execution. Discovery is opt-in and opens sandbox compute at startup.
    Only Local, Landlock, and custom sandbox.SkillDiscovery implementations
    support it; built-in Docker and Microsandbox discovery returns an unsupported
    error, and the packaged bonnie-skillfs helper does not enable it. Linux
    openat2 is required. Over-limit skills are skipped, not truncated; a scan
    that fails or times out keeps the last complete catalogue. Saved catalogues
    hold instruction text, so protect the journal.
  • HTTP authentication is opt-in. Protect TCP HTTP separately; Iroh approval
    does not authenticate or disable it. Health remains public on TCP HTTP.
    Verified ownership is required for operation_id. CSRF checks do not replace
    authentication. Chat webhooks verify the platform, not the person.
  • Iroh pairing grants access to all runs, not tenant isolation. Verify peer
    IDs out of band. Persist approved IDs and stable endpoint keys on the host;
    pairing and revocation are process-local. Revocation blocks later requests,
    not requests already accepted. Tickets provide reachability, not permission.
    There is no built-in Iroh CLI, pairing command, or presence advertisement.
    Loopback tests do not prove Internet relays or Rust-client interoperability.
  • Run ownership is per host. Use one process and one submission scheduler per
    journal. SQLite protects transactions, not execution coordination. Do not mix
    direct Start and scheduler delivery to the same run. Network filesystems need
    reliable POSIX locks and are unsafe for the journal.
  • Events are journal-anchored. Durable events replay; transient assistant
    deltas do not. Web chat does not show reasoning deltas. Another process's
    writes do not publish live events in this host.
  • Cleanup is opt-in and deletes files, not history. Waiting and interrupted
    runs are kept;
    publish output before completion. CLI serve does not sweep sandboxes. Locks
    are local to one Runner; deletion callbacks must be safe to repeat. Shared
    directories and custom factories cannot...
Read more

v0.37.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 13:24
v0.37.0
0cd5cca

An agent tree can grade its agent with evals. This is a MINOR release
under the pre-1.0 convention: it adds package eval, the bonnie eval
command, and bonnie build --native-loader. bonnie init writes main.go
with a newAgent function. No exported Go symbol is removed. The run
executor, the journal, and the channels do not change. BONNIE remains early
and experimental. No release is proven in production. Do not use it for work
whose loss would hurt.

The claims

  • A run survives process death. A served agent continues unfinished runs
    at startup from the journalled conversation, including typed tool calls and
    results. SQLite commits each tool-calling step atomically. The sender of a
    turn and its trace context are journalled with the turn and restored on
    resume, so a recovered turn keeps its caller and its trace. A keyed
    decision is answered from the journal after a restart. Unsaved input
    cannot be recovered; execution is not exactly once.
  • A run parks indefinitely. A human-input wait needs no live agent process
    or running sandbox compute. Resume supplies the answer after restart. Keep
    the journal and sandbox data. JetStream waits need their original agent.
  • A run is reachable over HTTP. Routes under /bonnie/v1 expose runs,
    snapshots, events, durable submissions, and owned child runs. Terminal chat
    and the optional /web interface use the same channel and run executor.
    Iroh serves the HTTP wire API over authenticated QUIC streams for approved
    peers. The same authenticated API is also reachable over Core NATS subjects.
    The runs console and its commands act on runs through the same API.

Fixed

  • bonnie build names the standard Linux loader. A tree that loads a C
    library at run time through purego (examples/self-contained-agent) is
    dynamically linked, also with CGO_ENABLED=0. With the Go toolchain from
    nixpkgs, the binary named a loader in /nix/store and stopped on other
    hosts with cannot execute: required file not found. For a Linux target,
    bonnie build now passes the linker -I with the loader that upstream Go
    names for the target GOARCH (/lib64/ld-linux-x86-64.so.2 on amd64), or
    the musl one on a host that has only musl. -I wins over the toolchain
    default in each toolchain; GO_LDSO in the build environment does not,
    because only the nixpkgs linker reads it. The -I is added to the
    -ldflags in GOFLAGS, and a -I there is kept. A static binary does not
    change.

Added

  • bonnie build --native-loader keeps the Go toolchain's own loader, for
    a binary that runs on a NixOS host without nix-ld.
  • Evals: package eval and bonnie eval. An eval is a Go test in an
    agent tree (*_eval_test.go, //go:build eval). eval.New opens the real
    agent in process on a temporary journal. Send, Respond and Restart
    drive one run; Restart opens a new runtime that shares only the journal.
    Run checks on eval.Turn (Succeeded, Suspended, CalledTool,
    CalledToolWith, NotCalledTool, NoFailedTools, MaxSteps) and
    e.Check with matchers are gates, and read the journal. A Score is soft
    by default: AtLeast/AtMost set a threshold, Gate makes it fatal, and
    strict mode (--strict, BONNIE_EVAL_STRICT) makes each miss fatal. The
    recommended judge is a decision model (Judge, JudgeAll with Bool,
    Rubric and Choice questions); JudgeLLM asks a chat model for a score
    and a reason. turn.Decided grades the agent's own decision records. A
    judgment with no model fails the eval. bonnie eval generates the wiring,
    runs go test -tags eval -json, prints each eval and score, and fails on a
    tree with no evals. Tool stubs and remote targets are not included.
  • bonnie eval has a terminal interface, and keeps each run. On a
    terminal it shows the evals live, then each score, failure and
    conversation; o opens an eval's journal in the run console. --tui=false,
    --json, or output that is not a terminal give the plain table. Each run
    is saved in .bonnie/evals/<id> with each eval's journal
    (BONNIE_EVAL_DIR); bonnie eval show and bonnie eval list read them,
    and --keep (default 10) limits how many are kept. In the interface, r
    reruns the selected eval and R each failed eval, as a new saved run that
    names the run it came from. A rerun keeps the whole suite: it replaces only
    the results of the evals it runs, marks the others with the run that made
    them, and counts the whole suite. Prune keeps a run that a kept run
    carries results from. A rerun runs go test once for each package
    and parent test with an anchored -run pattern, because one pattern
    cannot name subtests of two parents without their cross product.
  • bonnie init writes main.go with a newAgent function that main
    serves and each eval calls, so an eval tests the options the binary ships.
    An existing tree keeps working; move the bonnie.New call into newAgent
    before you write evals.

Changed

  • No BONNIE code imports charm.land/fantasy, also not a test. Kit
    v0.139.0 aliases fantasy.LanguageModel as kit.LLMLanguageModel, and
    each type its methods take (kit.LLMCall, kit.LLMResponse,
    kit.LLMStreamResponse, ...). internal/fakemodel and the tests now use
    these aliases. fantasy is // indirect in go.mod. The depguard rule
    fantasy-in-tests-only is now no-fantasy, which denies the import in
    every file. The earlier statement that Kit does not alias the types of
    LanguageModel was wrong for this pin.
  • The Nix package installs the newest release, not master. flake.nix
    pins a bonnie-release input to a tag, and nix/bonnie.nix builds that
    source with its version (it reported 0.7.0 before). The installed msb
    comes from the same release. The dev shell still uses the working tree. A
    new nix-release-pin job in release.yml moves the pin, flake.lock, and
    vendorHash after each tag, with scripts/bump-flake-release-pin.sh and
    scripts/update-flake-vendor-hash.sh. The Nix build no longer runs the
    tests: CI tested the release, and the Nix sandbox has no network for the
    tests that build an agent module.

Known limits

  • Evals call live models and run real tools. bonnie eval sends real
    requests to the agent's model and to the judge, and each request can cost
    money. Judge calls are not journalled. There are no tool stubs and no remote
    targets: an eval runs the agent's own tools in its sandbox, with their real
    effects. A judge score is a model's opinion, not a proof. The saved runs in
    .bonnie/evals hold each eval's full journal; protect them.
  • A dynamic agent binary names a fixed loader. bonnie build names the
    standard glibc loader, or the musl one on a musl host. A host with no
    loader at that path, such as NixOS without nix-ld, needs a binary built
    with --native-loader, and that binary runs only where the toolchain's
    loader path exists. A static binary does not name a loader.
  • The self-contained example is not one static binary. Its model runs
    through Kronk and llama.cpp, so bonnie build makes a binary that loads
    libffi and llama.cpp's shared libraries when it starts. The first start
    downloads about 2 GB into ~/.kronk and needs a network connection. The
    model has its own license, not Apache 2.0.
  • The model database refresh changes a shared cache. update models
    writes Kit's per-user cache outside every sandbox, and other agents of that
    user read it on their next load. Use only trusted catalog sources. A
    cancellation or an output error does not undo an update that Kit committed.
    Running agents must restart to use it. Disabling the command does not stop
    Kit from reading the cache.
  • Mouse copy needs OSC 52. A terminal without OSC 52, such as GNOME
    Terminal, does not get the selection, except inside tmux. Use Shift+drag
    there. On the trace and journal tabs of bonnie runs a selection marks
    screen cells, so a scroll or a key drops it.
  • A decision is a probability, not an authorization. Enforce access rules
    in host code; keep the sandbox and the network policy as the hard limits. A
    keyed decision is not exactly once: if the process stops after the model
    answers and before the record is written, the next call asks again and can
    cost money. Agent.Decide has no run and writes no record. The startup
    check proves that Kit can call the model, not that its credentials or URL
    settings work. The decide tool takes text only, at most 32 KiB and 16
    questions. Captured decision answers are output content.
  • Linux only. Releases support linux/amd64 and linux/arm64. The default needs
    kernel 5.13 or newer with Landlock enabled; otherwise select Docker.
  • Containment is not isolation. Landlock confines files, not the network,
    and shares the host kernel. Do not run as a user in the docker group:
    access to its socket permits host escape. Docker uses namespaces, not a
    separate kernel. Microsandbox needs Linux and KVM. Local provides no isolation.
  • Sandbox egress is open until a policy is set. Landlock refuses policies it
    cannot enforce. Microsandbox policy is fixed at creation; reattachment with a
    different policy fails. Automatic runtime installation needs network access
    and does not upgrade existing installations or remove runtime requirements.
  • Custom tools and completion callbacks are trusted host code. Use scoped
    Exec for commands; do not retain scopes after execution. Use Kit.Subagent,
    not Kit.Prompt, from active tools. Closure state is not durable; interrupted
    calls and checks can repeat. Child model calls are not durable BONNIE runs.
    Enforce authorization and idempotency in tool code. Keep completion policy and
    limits stable after restart. Usage can be undercounted; unsaved attachments
    are lost, accepted events can repeat, an...
Read more

v0.36.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 14:09
v0.36.0
2fa3668

An agent can run its model on the CPU, and bonnie dev keeps its output
in the transcript.
This is a MINOR release under the pre-1.0 convention: it
removes the install.sh --no-checks flag, raises the go line in go.mod to
1.27.2, raises the Kit pin to v0.139.0, and adds
examples/self-contained-agent. No exported Go symbol is added or removed.
The run executor, the journal, and the channels do not change. BONNIE remains
early and experimental. No release is proven in production. Do not use it for
work whose loss would hurt.

The claims

  • A run survives process death. A served agent continues unfinished runs
    at startup from the journalled conversation, including typed tool calls and
    results. SQLite commits each tool-calling step atomically. The sender of a
    turn and its trace context are journalled with the turn and restored on
    resume, so a recovered turn keeps its caller and its trace. A keyed
    decision is answered from the journal after a restart. Unsaved input
    cannot be recovered; execution is not exactly once.
  • A run parks indefinitely. A human-input wait needs no live agent process
    or running sandbox compute. Resume supplies the answer after restart. Keep
    the journal and sandbox data. JetStream waits need their original agent.
  • A run is reachable over HTTP. Routes under /bonnie/v1 expose runs,
    snapshots, events, durable submissions, and owned child runs. Terminal chat
    and the optional /web interface use the same channel and run executor.
    Iroh serves the HTTP wire API over authenticated QUIC streams for approved
    peers. The same authenticated API is also reachable over Core NATS subjects.
    The runs console and its commands act on runs through the same API.

Added

  • examples/self-contained-agent: the customer FAQ assistant of a computer
    repair shop. Its model, LiquidAI's LFM2.5-2.6B, runs on the CPU in the
    agent's process with Kronk. It registers fantasy's Kronk provider with Kit as a custom
    provider. It needs no provider key and no GPU.

Changed

  • install.sh installs the binary only. It no longer examines Landlock,
    provider keys, or Go; bonnie reports a missing prerequisite when it
    starts. The --no-checks flag is removed.
  • The Kit pin is v0.139.0. Kit v0.139.0 and fantasy v0.45.5 need
    Go 1.27.2, thus go.mod now asks for go 1.27.2. Other dependencies are
    at their newest release. templ stays at v0.3.1070, because
    shadcn-templ v2.0.0-beta.15 does not compile with templ v0.3.1100.

Fixed

  • In bonnie chat and bonnie dev, reasoning, question, and assistant lines
    longer than 100 cells lost their tail. The styles set a maximum width, which
    truncates. The transcript already wraps to the terminal width, so the lines
    now wrap.
  • bonnie dev with the TUI no longer prints its messages across the
    screen. The loop's rebuild messages, the go build output, and the
    child's startup and shutdown lines now show in the transcript as dim
    lines. Lines written before the TUI starts are kept and shown when it
    starts. After the TUI closes, output goes to stderr again.

Breaking changes

  • install.sh --no-checks is removed. A script that passes it must drop the
    flag; the installer no longer runs the checks it skipped.
  • A module that requires BONNIE now needs Go 1.27.2 or newer. With
    GOTOOLCHAIN=local and an older Go, the build stops with
    go.mod requires go >= 1.27.2.

Known limits

  • The self-contained example is not one static binary. Its model runs
    through Kronk and llama.cpp, so bonnie build makes a binary that loads
    libffi and llama.cpp's shared libraries when it starts. The first start
    downloads about 2 GB into ~/.kronk and needs a network connection. The
    model has its own license, not Apache 2.0.
  • The model database refresh changes a shared cache. update models
    writes Kit's per-user cache outside every sandbox, and other agents of that
    user read it on their next load. Use only trusted catalog sources. A
    cancellation or an output error does not undo an update that Kit committed.
    Running agents must restart to use it. Disabling the command does not stop
    Kit from reading the cache.
  • Mouse copy needs OSC 52. A terminal without OSC 52, such as GNOME
    Terminal, does not get the selection, except inside tmux. Use Shift+drag
    there. On the trace and journal tabs of bonnie runs a selection marks
    screen cells, so a scroll or a key drops it.
  • A decision is a probability, not an authorization. Enforce access rules
    in host code; keep the sandbox and the network policy as the hard limits. A
    keyed decision is not exactly once: if the process stops after the model
    answers and before the record is written, the next call asks again and can
    cost money. Agent.Decide has no run and writes no record. The startup
    check proves that Kit can call the model, not that its credentials or URL
    settings work. The decide tool takes text only, at most 32 KiB and 16
    questions. Captured decision answers are output content.
  • Linux only. Releases support linux/amd64 and linux/arm64. The default needs
    kernel 5.13 or newer with Landlock enabled; otherwise select Docker.
  • Containment is not isolation. Landlock confines files, not the network,
    and shares the host kernel. Do not run as a user in the docker group:
    access to its socket permits host escape. Docker uses namespaces, not a
    separate kernel. Microsandbox needs Linux and KVM. Local provides no isolation.
  • Sandbox egress is open until a policy is set. Landlock refuses policies it
    cannot enforce. Microsandbox policy is fixed at creation; reattachment with a
    different policy fails. Automatic runtime installation needs network access
    and does not upgrade existing installations or remove runtime requirements.
  • Custom tools and completion callbacks are trusted host code. Use scoped
    Exec for commands; do not retain scopes after execution. Use Kit.Subagent,
    not Kit.Prompt, from active tools. Closure state is not durable; interrupted
    calls and checks can repeat. Child model calls are not durable BONNIE runs.
    Enforce authorization and idempotency in tool code. Keep completion policy and
    limits stable after restart. Usage can be undercounted; unsaved attachments
    are lost, accepted events can repeat, and drafts can appear before acceptance.
    Checks skip suspension and model failure. Managed setup, scoped factories, and
    completion options cannot use WithAgentFactory.
  • A halt stops the turn, not the step. Sibling tool calls still run before
    suspension. Omitting human-input tools does not change permissions.
  • A skill's bundled files stay on the host. Put required text in the skill
    body and required sandbox files in context/. Workspace skills are the
    exception: their assets are live sandbox files, not journal snapshots.
  • Workspace skills are untrusted input. Repository descriptions and bodies
    enter model context and can contain hostile instructions; activation does not
    authorize execution. Discovery is opt-in and opens sandbox compute at startup.
    Only Local, Landlock, and custom sandbox.SkillDiscovery implementations
    support it; built-in Docker and Microsandbox discovery returns an unsupported
    error, and the packaged bonnie-skillfs helper does not enable it. Linux
    openat2 is required. Over-limit skills are skipped, not truncated; a scan
    that fails or times out keeps the last complete catalogue. Saved catalogues
    hold instruction text, so protect the journal.
  • HTTP authentication is opt-in. Protect TCP HTTP separately; Iroh approval
    does not authenticate or disable it. Health remains public on TCP HTTP.
    Verified ownership is required for operation_id. CSRF checks do not replace
    authentication. Chat webhooks verify the platform, not the person.
  • Iroh pairing grants access to all runs, not tenant isolation. Verify peer
    IDs out of band. Persist approved IDs and stable endpoint keys on the host;
    pairing and revocation are process-local. Revocation blocks later requests,
    not requests already accepted. Tickets provide reachability, not permission.
    There is no built-in Iroh CLI, pairing command, or presence advertisement.
    Loopback tests do not prove Internet relays or Rust-client interoperability.
  • Run ownership is per host. Use one process and one submission scheduler per
    journal. SQLite protects transactions, not execution coordination. Do not mix
    direct Start and scheduler delivery to the same run. Network filesystems need
    reliable POSIX locks and are unsafe for the journal.
  • Events are journal-anchored. Durable events replay; transient assistant
    deltas do not. Web chat does not show reasoning deltas. Another process's
    writes do not publish live events in this host.
  • Cleanup is opt-in and deletes files, not history. Waiting and interrupted
    runs are kept;
    publish output before completion. CLI serve does not sweep sandboxes. Locks
    are local to one Runner; deletion callbacks must be safe to repeat. Shared
    directories and custom factories cannot use automatic cleanup. Only Landlock
    and Local support shared directories; use one server and no context seeding.
  • Tool recovery is not exactly once. Saved and current policies must allow
    replay; no tool is replay-safe by default. Replay bypasses interactive approval
    hooks. Different arguments can evade uncertain-action blocks. Outcomes saved
    before a step retain text, not media. Custom factories need their own recovery.
  • Submission deduplication covers admission, not effects. Human waits park
    inputs; failed work is not retried automatically. The scheduler recovers recorded
    submissions; the served host recovers unfinished synchronous runs. Steering supports text only. Atomic
    markers and child creation need runtime.StepJournal. Background children do
    not keep parents busy or grant...
Read more

v0.35.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 15:55
v0.35.0
5b4a3cf

Operator commands refresh the model database, and the terminal interfaces
select text.
This is a MINOR release under the pre-1.0 convention: it adds
WithUpdateCommand and the update models command group, adds mouse
selection and a growing input to bonnie chat, bonnie dev, and
bonnie runs, and raises the Kit pin to v0.137.0. No exported Go symbol is
removed. The run executor, the journal, and the channels do not change.
BONNIE remains early and experimental. No release is proven in production. Do
not use it for work whose loss would hurt.

The claims

  • A run survives process death. A served agent continues unfinished runs
    at startup from the journalled conversation, including typed tool calls and
    results. SQLite commits each tool-calling step atomically. The sender of a
    turn and its trace context are journalled with the turn and restored on
    resume, so a recovered turn keeps its caller and its trace. A keyed
    decision is answered from the journal after a restart. Unsaved input
    cannot be recovered; execution is not exactly once.
  • A run parks indefinitely. A human-input wait needs no live agent process
    or running sandbox compute. Resume supplies the answer after restart. Keep
    the journal and sandbox data. JetStream waits need their original agent.
  • A run is reachable over HTTP. Routes under /bonnie/v1 expose runs,
    snapshots, events, durable submissions, and owned child runs. Terminal chat
    and the optional /web interface use the same channel and run executor.
    Iroh serves the HTTP wire API over authenticated QUIC streams for approved
    peers. The same authenticated API is also reachable over Core NATS subjects.
    The runs console and its commands act on runs through the same API.

Added

  • bonnie update models [source] and compiled agents refresh Kit's shared model
    database through its public SDK. WithUpdateCommand(false) disables the group.
  • examples/triage-desk routes a sample support inbox with a decision model:
    keyed, journalled routing in a tool, and the decide tool for the model.
  • bonnie chat, bonnie dev, and bonnie runs select text with the mouse.
    The interfaces capture the mouse so that the wheel scrolls, which stopped the
    terminal from selecting text. Drag to select; release to copy with OSC 52.
    Inside tmux the copy also uses tmux load-buffer -w, because tmux drops
    OSC 52 from an application at its default set-clipboard external.
    Chat copies a wrapped paragraph as one line, and a drag past the edge of the
    transcript scrolls it. In bonnie runs a selection stays inside the main
    panel. On the overview and conversation tabs it stays on its text when the
    panel scrolls, a drag past the panel scrolls it, and a wrapped message copies
    as one line without the bar at its left.
  • The bonnie chat and bonnie dev input grows with its text, up to 8 rows
    or half of a short screen, so a multi-line paste shows every line. Longer
    text scrolls inside the input.

Fixed

  • In bonnie runs, the mouse wheel over the detail pane of the trace and
    journal tabs scrolls the span detail or the record payload. Before, the
    wheel moved the cursor everywhere, so a long detail could not be read with
    the mouse. On the trace tab, pgdown/pgup and ctrl+d/ctrl+u scroll
    the detail by a page; J/K still scroll one line.
  • A paste in bonnie chat and bonnie dev was dropped. The terminal sends a
    bracketed paste as one message, and the chat model did not give it to the
    input. A paste now reaches the input with its newlines and does not send the
    message. The bonnie runs filter, search, and dialogs also accept a paste.

Changed

  • The Kit pin is v0.137.0, which the model database refresh uses.

Known limits

  • The model database refresh changes a shared cache. update models
    writes Kit's per-user cache outside every sandbox, and other agents of that
    user read it on their next load. Use only trusted catalog sources. A
    cancellation or an output error does not undo an update that Kit committed.
    Running agents must restart to use it. Disabling the command does not stop
    Kit from reading the cache.
  • Mouse copy needs OSC 52. A terminal without OSC 52, such as GNOME
    Terminal, does not get the selection, except inside tmux. Use Shift+drag
    there. On the trace and journal tabs of bonnie runs a selection marks
    screen cells, so a scroll or a key drops it.
  • A decision is a probability, not an authorization. Enforce access rules
    in host code; keep the sandbox and the network policy as the hard limits. A
    keyed decision is not exactly once: if the process stops after the model
    answers and before the record is written, the next call asks again and can
    cost money. Agent.Decide has no run and writes no record. The startup
    check proves that Kit can call the model, not that its credentials or URL
    settings work. The decide tool takes text only, at most 32 KiB and 16
    questions. Captured decision answers are output content.
  • Linux only. Releases support linux/amd64 and linux/arm64. The default needs
    kernel 5.13 or newer with Landlock enabled; otherwise select Docker.
  • Containment is not isolation. Landlock confines files, not the network,
    and shares the host kernel. Do not run as a user in the docker group:
    access to its socket permits host escape. Docker uses namespaces, not a
    separate kernel. Microsandbox needs Linux and KVM. Local provides no isolation.
  • Sandbox egress is open until a policy is set. Landlock refuses policies it
    cannot enforce. Microsandbox policy is fixed at creation; reattachment with a
    different policy fails. Automatic runtime installation needs network access
    and does not upgrade existing installations or remove runtime requirements.
  • Custom tools and completion callbacks are trusted host code. Use scoped
    Exec for commands; do not retain scopes after execution. Use Kit.Subagent,
    not Kit.Prompt, from active tools. Closure state is not durable; interrupted
    calls and checks can repeat. Child model calls are not durable BONNIE runs.
    Enforce authorization and idempotency in tool code. Keep completion policy and
    limits stable after restart. Usage can be undercounted; unsaved attachments
    are lost, accepted events can repeat, and drafts can appear before acceptance.
    Checks skip suspension and model failure. Managed setup, scoped factories, and
    completion options cannot use WithAgentFactory.
  • A halt stops the turn, not the step. Sibling tool calls still run before
    suspension. Omitting human-input tools does not change permissions.
  • A skill's bundled files stay on the host. Put required text in the skill
    body and required sandbox files in context/. Workspace skills are the
    exception: their assets are live sandbox files, not journal snapshots.
  • Workspace skills are untrusted input. Repository descriptions and bodies
    enter model context and can contain hostile instructions; activation does not
    authorize execution. Discovery is opt-in and opens sandbox compute at startup.
    Only Local, Landlock, and custom sandbox.SkillDiscovery implementations
    support it; built-in Docker and Microsandbox discovery returns an unsupported
    error, and the packaged bonnie-skillfs helper does not enable it. Linux
    openat2 is required. Over-limit skills are skipped, not truncated; a scan
    that fails or times out keeps the last complete catalogue. Saved catalogues
    hold instruction text, so protect the journal.
  • HTTP authentication is opt-in. Protect TCP HTTP separately; Iroh approval
    does not authenticate or disable it. Health remains public on TCP HTTP.
    Verified ownership is required for operation_id. CSRF checks do not replace
    authentication. Chat webhooks verify the platform, not the person.
  • Iroh pairing grants access to all runs, not tenant isolation. Verify peer
    IDs out of band. Persist approved IDs and stable endpoint keys on the host;
    pairing and revocation are process-local. Revocation blocks later requests,
    not requests already accepted. Tickets provide reachability, not permission.
    There is no built-in Iroh CLI, pairing command, or presence advertisement.
    Loopback tests do not prove Internet relays or Rust-client interoperability.
  • Run ownership is per host. Use one process and one submission scheduler per
    journal. SQLite protects transactions, not execution coordination. Do not mix
    direct Start and scheduler delivery to the same run. Network filesystems need
    reliable POSIX locks and are unsafe for the journal.
  • Events are journal-anchored. Durable events replay; transient assistant
    deltas do not. Web chat does not show reasoning deltas. Another process's
    writes do not publish live events in this host.
  • Cleanup is opt-in and deletes files, not history. Waiting and interrupted
    runs are kept;
    publish output before completion. CLI serve does not sweep sandboxes. Locks
    are local to one Runner; deletion callbacks must be safe to repeat. Shared
    directories and custom factories cannot use automatic cleanup. Only Landlock
    and Local support shared directories; use one server and no context seeding.
  • Tool recovery is not exactly once. Saved and current policies must allow
    replay; no tool is replay-safe by default. Replay bypasses interactive approval
    hooks. Different arguments can evade uncertain-action blocks. Outcomes saved
    before a step retain text, not media. Custom factories need their own recovery.
  • Submission deduplication covers admission, not effects. Human waits park
    inputs; failed work is not retried automatically. The scheduler recovers recorded
    submissions; the served host recovers unfinished synchronous runs. Steering supports text only. Atomic
    markers and child creation need runtime.StepJournal. Background children do
    not keep parents busy or grant approval. Unsaved callbacks ...
Read more

v0.34.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 11:26
v0.34.0
a007352

Decision models are a durable primitive. This is a MINOR release under the
pre-1.0 convention: it adds WithDecisionModel, WithDecisionTool,
WithDecider, RunScope.Decide, Agent.Decide, and the decision journal
record, and raises the Kit pin to v0.136.0. No exported Go symbol is
removed. RunScope gains a Decide field, so a RunScope literal with
positional fields no longer compiles. BONNIE remains early and experimental.
No release is proven in production. Do not use it for work whose loss would
hurt.

The claims

  • A run survives process death. A served agent continues unfinished runs
    at startup from the journalled conversation, including typed tool calls and
    results. SQLite commits each tool-calling step atomically. The sender of a
    turn and its trace context are journalled with the turn and restored on
    resume, so a recovered turn keeps its caller and its trace. A keyed
    decision is answered from the journal after a restart. Unsaved input
    cannot be recovered; execution is not exactly once.
  • A run parks indefinitely. A human-input wait needs no live agent process
    or running sandbox compute. Resume supplies the answer after restart. Keep
    the journal and sandbox data. JetStream waits need their original agent.
  • A run is reachable over HTTP. Routes under /bonnie/v1 expose runs,
    snapshots, events, durable submissions, and owned child runs. Terminal chat
    and the optional /web interface use the same channel and run executor.
    Iroh serves the HTTP wire API over authenticated QUIC streams for approved
    peers. The same authenticated API is also reachable over Core NATS subjects.
    The runs console and its commands act on runs through the same API.

Added

  • Decision models are a primitive. WithDecisionModel sets a Kit
    decision model, which answers typed boolean, choice, and score questions
    with probabilities. RunScope.Decide gives it to tool factories, Kit setup
    callbacks, and completion hooks; Agent.Decide gives it to host code with
    no run, such as a schedule's Prepare; WithDecisionTool gives the model
    a decide tool. BONNIE decides no policy.
  • Each decision in a run is journalled. A decision record holds the
    model, questions, answers, usage, and an input hash, or the error class of
    a failed call. It never holds the state or a provider error body. A call
    with a Key is idempotent in the run, also after a restart: the stored
    answer is returned and the model is not asked again. The decide tool
    uses its tool call ID as the key and is replay-safe.
  • WithDecider replaces the provider call, for tests and for models Kit
    cannot call.
  • The run console shows decisions in the Journal and Trace tabs, and
    observe records a decide span. Answers are output content.

Changed

  • The Kit pin is v0.136.0, which adds the Decide API.

Known limits

  • A decision is a probability, not an authorization. Enforce access rules
    in host code; keep the sandbox and the network policy as the hard limits. A
    keyed decision is not exactly once: if the process stops after the model
    answers and before the record is written, the next call asks again and can
    cost money. Agent.Decide has no run and writes no record. The startup
    check proves that Kit can call the model, not that its credentials or URL
    settings work. The decide tool takes text only, at most 32 KiB and 16
    questions. Captured decision answers are output content.
  • Linux only. Releases support linux/amd64 and linux/arm64. The default needs
    kernel 5.13 or newer with Landlock enabled; otherwise select Docker.
  • Containment is not isolation. Landlock confines files, not the network,
    and shares the host kernel. Do not run as a user in the docker group:
    access to its socket permits host escape. Docker uses namespaces, not a
    separate kernel. Microsandbox needs Linux and KVM. Local provides no isolation.
  • Sandbox egress is open until a policy is set. Landlock refuses policies it
    cannot enforce. Microsandbox policy is fixed at creation; reattachment with a
    different policy fails. Automatic runtime installation needs network access
    and does not upgrade existing installations or remove runtime requirements.
  • Custom tools and completion callbacks are trusted host code. Use scoped
    Exec for commands; do not retain scopes after execution. Use Kit.Subagent,
    not Kit.Prompt, from active tools. Closure state is not durable; interrupted
    calls and checks can repeat. Child model calls are not durable BONNIE runs.
    Enforce authorization and idempotency in tool code. Keep completion policy and
    limits stable after restart. Usage can be undercounted; unsaved attachments
    are lost, accepted events can repeat, and drafts can appear before acceptance.
    Checks skip suspension and model failure. Managed setup, scoped factories, and
    completion options cannot use WithAgentFactory.
  • A halt stops the turn, not the step. Sibling tool calls still run before
    suspension. Omitting human-input tools does not change permissions.
  • A skill's bundled files stay on the host. Put required text in the skill
    body and required sandbox files in context/. Workspace skills are the
    exception: their assets are live sandbox files, not journal snapshots.
  • Workspace skills are untrusted input. Repository descriptions and bodies
    enter model context and can contain hostile instructions; activation does not
    authorize execution. Discovery is opt-in and opens sandbox compute at startup.
    Only Local, Landlock, and custom sandbox.SkillDiscovery implementations
    support it; built-in Docker and Microsandbox discovery returns an unsupported
    error, and the packaged bonnie-skillfs helper does not enable it. Linux
    openat2 is required. Over-limit skills are skipped, not truncated; a scan
    that fails or times out keeps the last complete catalogue. Saved catalogues
    hold instruction text, so protect the journal.
  • HTTP authentication is opt-in. Protect TCP HTTP separately; Iroh approval
    does not authenticate or disable it. Health remains public on TCP HTTP.
    Verified ownership is required for operation_id. CSRF checks do not replace
    authentication. Chat webhooks verify the platform, not the person.
  • Iroh pairing grants access to all runs, not tenant isolation. Verify peer
    IDs out of band. Persist approved IDs and stable endpoint keys on the host;
    pairing and revocation are process-local. Revocation blocks later requests,
    not requests already accepted. Tickets provide reachability, not permission.
    There is no built-in Iroh CLI, pairing command, or presence advertisement.
    Loopback tests do not prove Internet relays or Rust-client interoperability.
  • Run ownership is per host. Use one process and one submission scheduler per
    journal. SQLite protects transactions, not execution coordination. Do not mix
    direct Start and scheduler delivery to the same run. Network filesystems need
    reliable POSIX locks and are unsafe for the journal.
  • Events are journal-anchored. Durable events replay; transient assistant
    deltas do not. Web chat does not show reasoning deltas. Another process's
    writes do not publish live events in this host.
  • Cleanup is opt-in and deletes files, not history. Waiting and interrupted
    runs are kept;
    publish output before completion. CLI serve does not sweep sandboxes. Locks
    are local to one Runner; deletion callbacks must be safe to repeat. Shared
    directories and custom factories cannot use automatic cleanup. Only Landlock
    and Local support shared directories; use one server and no context seeding.
  • Tool recovery is not exactly once. Saved and current policies must allow
    replay; no tool is replay-safe by default. Replay bypasses interactive approval
    hooks. Different arguments can evade uncertain-action blocks. Outcomes saved
    before a step retain text, not media. Custom factories need their own recovery.
  • Submission deduplication covers admission, not effects. Human waits park
    inputs; failed work is not retried automatically. The scheduler recovers recorded
    submissions; the served host recovers unfinished synchronous runs. Steering supports text only. Atomic
    markers and child creation need runtime.StepJournal. Background children do
    not keep parents busy or grant approval. Unsaved callbacks can repeat.
  • Logs can contain sensitive data. Info includes final responses; Debug
    includes prompts, arguments, results, and reasoning. Synchronous logging can
    delay runs; replay does not log events again.
  • Authoring needs Go and public module access. Static agents need neither Go
    nor BONNIE installed, but their sandbox can need a separate runtime. Scoped
    command operations own resources; do not retain them after return.
  • Cancellation is cooperative, not rollback. Models, tools, and callbacks
    must observe contexts. Detached children can escape process-group signals.
    Route controls to the execution owner. Legacy text answers cannot identify
    delayed questions; chat retry can repeat effects. Served hosts recover interrupted HTTP
    work at startup; address and operation_id cannot be combined.
  • NATS credentials and routes need protection. Use TLS, broker permissions,
    and one authentication method. Payloads do not verify identity. Other connection
    options need a caller-supplied connection. Core NATS can lose tasks and results;
    the host continues interrupted runs, but does not retry result publication.
    Ordinary subscribers get copies.
  • JetStream delivery is at least once. Recovery needs the original journal,
    sandbox data, unique agent identity, and one owner. Waiting runs need their
    original agent. Deduplication and retention are bounded; there is no global
    attempt lookup. Consumer changes can replay messages. Targeted tasks have no
    fallback; task IDs deduplicate per route, not across route...
Read more

v0.33.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 14:37
v0.33.0
e52d012

Inspect and act on runs from the terminal. This is a MINOR release under
the pre-1.0 convention: it adds the interactive bonnie runs console and its
action commands, and puts the chat span into the provider request context.
No exported Go symbol is removed or changed. Two command outputs change: the
runs inspect keys, and turns in runs list --json, which now counts turns.
BONNIE remains early and experimental. No release is proven in production. Do
not use it for work whose loss would hurt.

The claims

  • A run survives process death. A served agent continues unfinished runs
    at startup from the journalled conversation, including typed tool calls and
    results. SQLite commits each tool-calling step atomically. The sender of a
    turn and its trace context are journalled with the turn and restored on
    resume, so a recovered turn keeps its caller and its trace. Unsaved input
    cannot be recovered; execution is not exactly once.
  • A run parks indefinitely. A human-input wait needs no live agent process
    or running sandbox compute. Resume supplies the answer after restart. Keep
    the journal and sandbox data. JetStream waits need their original agent.
  • A run is reachable over HTTP. Routes under /bonnie/v1 expose runs,
    snapshots, events, durable submissions, and owned child runs. Terminal chat
    and the optional /web interface use the same channel and run executor.
    Iroh serves the HTTP wire API over authenticated QUIC streams for approved
    peers. The same authenticated API is also reachable over Core NATS subjects.
    The runs console and its commands act on runs through the same API.

Added

  • bonnie runs is a run console. On a terminal, runs with no
    subcommand opens a full-screen console: runs and their turns on the left,
    and Overview, Conversation, Trace, and Journal tabs on the right. The Trace
    tab draws each turn as a waterfall of invoke_agent, chat, and
    execute_tool spans rebuilt from journal times. The console refreshes
    live, searches, filters by text and state, sorts, copies IDs, and works
    with the mouse. When the HTTP channel at --addr answers, it also answers,
    sends to, cancels, retires, clears, and compacts the selected run. Without
    a terminal, runs prints the list.
  • runs trace, answer, send, cancel, retire, clear, and
    compact.
    trace prints a turn's waterfall, or its spans with --json.
    The others are the console's actions as commands for scripts.

Changed

  • runs inspect opens the new console. Its keys changed; ? lists
    them. runs list sorts by last update and adds TURNS and UPDATED columns.
    In its JSON, turns now counts turns; it used to count step records,
    which are now in steps. The JSON also adds origin, updated, and
    waiting.
  • agentcmd.NewRunsCommand takes the default server address. Agents
    built with Agent.Serve pass their own.
  • Correct security and durability limits, provider login and compiled-agent
    command guidance, root option coverage, and contributor test instructions.
    Add contract tests for option references and the custom runs example.
  • The chat span is in the provider request context. observe opens
    each step's chat span in Kit's step-context hook
    (mark3labs/kit#248), so a
    provider HTTP span from bonnie.WithKit(kit.WithHTTPTransport(...)) with
    otelhttp is its child. A span that a tool starts itself is now also a
    child of chat.
  • The model on a chat span is the model of that step. It comes from
    Kit's step events, so a model change during a turn is shown.

Known limits

  • Linux only. Releases support linux/amd64 and linux/arm64. The default needs
    kernel 5.13 or newer with Landlock enabled; otherwise select Docker.
  • Containment is not isolation. Landlock confines files, not the network,
    and shares the host kernel. Do not run as a user in the docker group:
    access to its socket permits host escape. Docker uses namespaces, not a
    separate kernel. Microsandbox needs Linux and KVM. Local provides no isolation.
  • Sandbox egress is open until a policy is set. Landlock refuses policies it
    cannot enforce. Microsandbox policy is fixed at creation; reattachment with a
    different policy fails. Automatic runtime installation needs network access
    and does not upgrade existing installations or remove runtime requirements.
  • Custom tools and completion callbacks are trusted host code. Use scoped
    Exec for commands; do not retain scopes after execution. Use Kit.Subagent,
    not Kit.Prompt, from active tools. Closure state is not durable; interrupted
    calls and checks can repeat. Child model calls are not durable BONNIE runs.
    Enforce authorization and idempotency in tool code. Keep completion policy and
    limits stable after restart. Usage can be undercounted; unsaved attachments
    are lost, accepted events can repeat, and drafts can appear before acceptance.
    Checks skip suspension and model failure. Managed setup, scoped factories, and
    completion options cannot use WithAgentFactory.
  • A halt stops the turn, not the step. Sibling tool calls still run before
    suspension. Omitting human-input tools does not change permissions.
  • A skill's bundled files stay on the host. Put required text in the skill
    body and required sandbox files in context/. Workspace skills are the
    exception: their assets are live sandbox files, not journal snapshots.
  • Workspace skills are untrusted input. Repository descriptions and bodies
    enter model context and can contain hostile instructions; activation does not
    authorize execution. Discovery is opt-in and opens sandbox compute at startup.
    Only Local, Landlock, and custom sandbox.SkillDiscovery implementations
    support it; built-in Docker and Microsandbox discovery returns an unsupported
    error, and the packaged bonnie-skillfs helper does not enable it. Linux
    openat2 is required. Over-limit skills are skipped, not truncated; a scan
    that fails or times out keeps the last complete catalogue. Saved catalogues
    hold instruction text, so protect the journal.
  • HTTP authentication is opt-in. Protect TCP HTTP separately; Iroh approval
    does not authenticate or disable it. Health remains public on TCP HTTP.
    Verified ownership is required for operation_id. CSRF checks do not replace
    authentication. Chat webhooks verify the platform, not the person.
  • Iroh pairing grants access to all runs, not tenant isolation. Verify peer
    IDs out of band. Persist approved IDs and stable endpoint keys on the host;
    pairing and revocation are process-local. Revocation blocks later requests,
    not requests already accepted. Tickets provide reachability, not permission.
    There is no built-in Iroh CLI, pairing command, or presence advertisement.
    Loopback tests do not prove Internet relays or Rust-client interoperability.
  • Run ownership is per host. Use one process and one submission scheduler per
    journal. SQLite protects transactions, not execution coordination. Do not mix
    direct Start and scheduler delivery to the same run. Network filesystems need
    reliable POSIX locks and are unsafe for the journal.
  • Events are journal-anchored. Durable events replay; transient assistant
    deltas do not. Web chat does not show reasoning deltas. Another process's
    writes do not publish live events in this host.
  • Cleanup is opt-in and deletes files, not history. Waiting and interrupted
    runs are kept;
    publish output before completion. CLI serve does not sweep sandboxes. Locks
    are local to one Runner; deletion callbacks must be safe to repeat. Shared
    directories and custom factories cannot use automatic cleanup. Only Landlock
    and Local support shared directories; use one server and no context seeding.
  • Tool recovery is not exactly once. Saved and current policies must allow
    replay; no tool is replay-safe by default. Replay bypasses interactive approval
    hooks. Different arguments can evade uncertain-action blocks. Outcomes saved
    before a step retain text, not media. Custom factories need their own recovery.
  • Submission deduplication covers admission, not effects. Human waits park
    inputs; failed work is not retried automatically. The scheduler recovers recorded
    submissions; the served host recovers unfinished synchronous runs. Steering supports text only. Atomic
    markers and child creation need runtime.StepJournal. Background children do
    not keep parents busy or grant approval. Unsaved callbacks can repeat.
  • Logs can contain sensitive data. Info includes final responses; Debug
    includes prompts, arguments, results, and reasoning. Synchronous logging can
    delay runs; replay does not log events again.
  • Authoring needs Go and public module access. Static agents need neither Go
    nor BONNIE installed, but their sandbox can need a separate runtime. Scoped
    command operations own resources; do not retain them after return.
  • Cancellation is cooperative, not rollback. Models, tools, and callbacks
    must observe contexts. Detached children can escape process-group signals.
    Route controls to the execution owner. Legacy text answers cannot identify
    delayed questions; chat retry can repeat effects. Served hosts recover interrupted HTTP
    work at startup; address and operation_id cannot be combined.
  • NATS credentials and routes need protection. Use TLS, broker permissions,
    and one authentication method. Payloads do not verify identity. Other connection
    options need a caller-supplied connection. Core NATS can lose tasks and results;
    the host continues interrupted runs, but does not retry result publication.
    Ordinary subscribers get copies.
  • JetStream delivery is at least once. Recovery needs the original journal,
    sandbox data, unique agent identity, and one owner. Waiting runs need their
    original agent. Ded...
Read more

v0.32.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 12:42
v0.32.0
f6612bd

Let an agent change itself, and trace its turns. This is a MINOR release
under the pre-1.0 convention: it adds the selfmod package, OpenTelemetry
tracing with a Langfuse adapter, and a journalled caller for each turn. No
existing public symbol is removed or changed. One fix changes behaviour: two
WithReplaySafeTools options now declare the union of their tools. BONNIE
remains early and experimental. No release is proven in production. Do not use
it for work whose loss would hurt.

The claims

  • A run survives process death. A served agent continues unfinished runs
    at startup from the journalled conversation, including typed tool calls and
    results. SQLite commits each tool-calling step atomically. The sender of a
    turn and its trace context are journalled with the turn and restored on
    resume, so a recovered turn keeps its caller and its trace. Unsaved input
    cannot be recovered; execution is not exactly once.
  • A run parks indefinitely. A human-input wait needs no live agent process
    or running sandbox compute. Resume supplies the answer after restart. Keep
    the journal and sandbox data. JetStream waits need their original agent.
  • A run is reachable over HTTP. Routes under /bonnie/v1 expose runs,
    snapshots, events, durable submissions, and owned child runs. Terminal chat
    and the optional /web interface use the same channel and run executor.
    Iroh serves the HTTP wire API over authenticated QUIC streams for approved
    peers. The same authenticated API is also reachable over Core NATS subjects.

Added

  • Package selfmod: an agent can change its own source. selfmod.Local adds
    modify_agent under bonnie dev, which installs it by default. A subagent
    edits a staged copy of the authored files with sandbox tools, the change
    must generate and build (go build -overlay in the tree), and then each
    changed file is written with one atomic rename. A file that changed in the
    tree meanwhile is a conflict, and nothing is written. The dev loop rebuilds,
    and the next message on the run is answered by the new build.
  • selfmod.Remote adds propose_agent_change for a deployed agent: it clones
    the repository, stages and builds the change when the host has Go, pushes
    its own branch, and opens a draft pull request. It never changes the running
    deployment. Authorize and Credentials are required, and the tool is
    hidden from an unverified sender before Authorize runs. The token stays in
    the BONNIE process; the subagent's sandbox holds only a copy of the
    authored files.
  • bonnie dev --no-self-modify leaves the default tool out of the dev build.
    The dev child gets BONNIE_DEV_ROOT (bonnie.DevRootEnv).
  • bonnie.WithNamedToolFactory: a later factory with the same name replaces
    the earlier one in place.
  • bonnie.RegisterDefaults: options that New applies before its own. A
    default tool factory is dropped, not refused, beside WithAgentFactory.
  • runtime.Caller, Input.Caller, and Session.Caller(): the sender of a
    turn is journalled with the turn (RecordCaller) and restored on resume.
    channel.SendOptions.AuthVerified and chat.Turn.AuthVerified mark an
    identity the channel proved: an HTTP authenticator, or a platform's signed
    event. An identity in an unauthenticated HTTP body is not verified.
  • runtime.Session.AddReplaySafeTools adds to the replay-safe set.
  • OpenTelemetry tracing with WithTracing. Package observe records each
    turn as an invoke_agent span, with a chat span per model step and an
    execute_tool span per tool call, in GenAI semantic-convention names. Spans
    carry metadata only unless observe.WithCapture allows content.
    observe.NewExporter filters or redacts what one destination receives.
  • Package observe/langfuse: an OTLP exporter and tracer provider for
    Langfuse that map turns to agent, generation, and tool observations and the
    run to a session, and a Scorer that records approvals as scores.
  • runtime.Observer and runtime.WithObserver, the tracing seam of the
    runner. A turn record now journals its trace context, so a turn that another
    process recovers continues the same trace. A resume after a human answer
    starts a new trace with a link to the turn that waited.
  • runtime.Input.Trace carries W3C trace context. The HTTP and NATS channels
    read traceparent, and a submission or spawned child run journals it.
    The NATS API transport now accepts Traceparent and Tracestate headers.

Changed

  • Upgrade Kit to v0.135.0, modernc.org/sqlite to v1.61.0, and the other
    Go dependencies to their latest compatible versions.

Fixed

  • Two WithReplaySafeTools options now declare the union of their tools.
    Before, the last option replaced the set of the first.

Known limits

  • Linux only. Releases support linux/amd64 and linux/arm64. The default needs
    kernel 5.13 or newer with Landlock enabled; otherwise select Docker.
  • Containment is not isolation. Landlock confines files, not the network,
    and shares the host kernel. Do not run as a user in the docker group:
    access to its socket permits host escape. Docker uses namespaces, not a
    separate kernel. Microsandbox needs Linux and KVM. Local provides no isolation.
  • Sandbox egress is open until a policy is set. Landlock refuses policies it
    cannot enforce. Microsandbox policy is fixed at creation; reattachment with a
    different policy fails. Automatic runtime installation needs network access
    and does not upgrade existing installations or remove runtime requirements.
  • Custom tools and completion callbacks are trusted host code. Use scoped
    Exec for commands; do not retain scopes after execution. Use Kit.Subagent,
    not Kit.Prompt, from active tools. Closure state is not durable; interrupted
    calls and checks can repeat. Child model calls are not durable BONNIE runs.
    Enforce authorization and idempotency in tool code. Keep completion policy and
    limits stable after restart. Usage can be undercounted; unsaved attachments
    are lost, accepted events can repeat, and drafts can appear before acceptance.
    Checks skip suspension and model failure. Managed setup, scoped factories, and
    completion options cannot use WithAgentFactory.
  • A halt stops the turn, not the step. Sibling tool calls still run before
    suspension. Omitting human-input tools does not change permissions.
  • A skill's bundled files stay on the host. Put required text in the skill
    body and required sandbox files in context/. Workspace skills are the
    exception: their assets are live sandbox files, not journal snapshots.
  • Workspace skills are untrusted input. Repository descriptions and bodies
    enter model context and can contain hostile instructions; activation does not
    authorize execution. Discovery is opt-in and opens sandbox compute at startup.
    Only Local, Landlock, and custom sandbox.SkillDiscovery implementations
    support it; built-in Docker and Microsandbox discovery returns an unsupported
    error, and the packaged bonnie-skillfs helper does not enable it. Linux
    openat2 is required. Over-limit skills are skipped, not truncated; a scan
    that fails or times out keeps the last complete catalogue. Saved catalogues
    hold instruction text, so protect the journal.
  • HTTP authentication is opt-in. Protect TCP HTTP separately; Iroh approval
    does not authenticate or disable it. Health remains public on TCP HTTP.
    Verified ownership is required for operation_id. CSRF checks do not replace
    authentication. Chat webhooks verify the platform, not the person.
  • Iroh pairing grants access to all runs, not tenant isolation. Verify peer
    IDs out of band. Persist approved IDs and stable endpoint keys on the host;
    pairing and revocation are process-local. Revocation blocks later requests,
    not requests already accepted. Tickets provide reachability, not permission.
    There is no built-in Iroh CLI, pairing command, or presence advertisement.
    Loopback tests do not prove Internet relays or Rust-client interoperability.
  • Run ownership is per host. Use one process and one submission scheduler per
    journal. SQLite protects transactions, not execution coordination. Do not mix
    direct Start and scheduler delivery to the same run. Network filesystems need
    reliable POSIX locks and are unsafe for the journal.
  • Events are journal-anchored. Durable events replay; transient assistant
    deltas do not. Web chat does not show reasoning deltas. Another process's
    writes do not publish live events in this host.
  • Cleanup is opt-in and deletes files, not history. Waiting and interrupted
    runs are kept;
    publish output before completion. CLI serve does not sweep sandboxes. Locks
    are local to one Runner; deletion callbacks must be safe to repeat. Shared
    directories and custom factories cannot use automatic cleanup. Only Landlock
    and Local support shared directories; use one server and no context seeding.
  • Tool recovery is not exactly once. Saved and current policies must allow
    replay; no tool is replay-safe by default. Replay bypasses interactive approval
    hooks. Different arguments can evade uncertain-action blocks. Outcomes saved
    before a step retain text, not media. Custom factories need their own recovery.
  • Submission deduplication covers admission, not effects. Human waits park
    inputs; failed work is not retried automatically. The scheduler recovers recorded
    submissions; the served host recovers unfinished synchronous runs. Steering supports text only. Atomic
    markers and child creation need runtime.StepJournal. Background children do
    not keep parents busy or grant approval. Unsaved callbacks can repeat.
  • Logs can contain sensitive data. Info includes final responses; Debug
    includes prompts, arguments, results, and reasoning. Synchronous logging can
    delay runs; replay does not log events again.
  • **Authoring needs Go and pub...
Read more

v0.31.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 09:18
v0.31.0
52ed0b0

Discover skills in the run workspace. This is a MINOR release under the
pre-1.0 convention: it adds opt-in workspace skill discovery and the wire
package, and moves the HTTP and Iroh clients off the runtime. Existing caller
types remain compatible. BONNIE remains early and experimental. No release is
proven in production. Do not use it for work whose loss would hurt.

The claims

  • A run survives process death. A served agent continues unfinished runs
    at startup from the journalled conversation, including typed tool calls and
    results. SQLite commits each tool-calling step atomically. Selected workspace
    skill versions are journalled before the request that uses them, and a
    resumed run restores them before tool recovery. Unsaved input cannot be
    recovered; execution is not exactly once.
  • A run parks indefinitely. A human-input wait needs no live agent process
    or running sandbox compute. Resume supplies the answer after restart. Keep
    the journal and sandbox data. JetStream waits need their original agent.
  • A run is reachable over HTTP. Routes under /bonnie/v1 expose runs,
    snapshots, events, durable submissions, and owned child runs. Terminal chat
    and the optional /web interface use the same channel and run executor.
    Iroh serves the HTTP wire API over authenticated QUIC streams for approved
    peers. The same authenticated API is also reachable over Core NATS subjects.

Added

  • Opt-in WithWorkspaceSkills for bounded recursive repository skill discovery
    before model requests. Qualified identities, Git ignore boundaries, metadata
    budgets and no-follow sandbox I/O keep workspace sources separate from authored
    tree skills. Bodies remain on-demand and assets remain live sandbox files.
  • Append-only selected skill versions restore before tool recovery and the first
    resumed request, even when source files changed or disappeared.
  • bonnie-skillfs, a Linux amd64/arm64 guest discovery helper that task build and GoReleaser package. It is scaffolding for future remote sandbox
    discovery and does not enable discovery in Docker or Microsandbox.
  • runtime.RecordWorkspaceSkills and runtime.WorkspaceSkillVersion for the
    journalled skill catalogue.

Changed

  • Move shared transport types to wire, with compatible aliases in runtime.
    The HTTP and Iroh clients no longer import the runtime or server channels,
    which removes SQLite and go-git from their dependencies. Kit types remain
    part of the client API. The NATS client is unchanged.
  • Upgrade Kit to v0.131.1 for public dynamic, content-backed activation and
    request preparation errors, while retaining file-backed tree activation.

Fixed

  • NATS JetStream shutdown no longer reports a journal read or save that it
    cancelled as a channel failure. Shutdown returned errors such as
    "result cache save failed" when it stopped a handler after a run completed.
    The delivery still stays unacknowledged for redelivery.

Known limits

  • Linux only. Releases support linux/amd64 and linux/arm64. The default needs
    kernel 5.13 or newer with Landlock enabled; otherwise select Docker.
  • Containment is not isolation. Landlock confines files, not the network,
    and shares the host kernel. Do not run as a user in the docker group:
    access to its socket permits host escape. Docker uses namespaces, not a
    separate kernel. Microsandbox needs Linux and KVM. Local provides no isolation.
  • Sandbox egress is open until a policy is set. Landlock refuses policies it
    cannot enforce. Microsandbox policy is fixed at creation; reattachment with a
    different policy fails. Automatic runtime installation needs network access
    and does not upgrade existing installations or remove runtime requirements.
  • Custom tools and completion callbacks are trusted host code. Use scoped
    Exec for commands; do not retain scopes after execution. Use Kit.Subagent,
    not Kit.Prompt, from active tools. Closure state is not durable; interrupted
    calls and checks can repeat. Child model calls are not durable BONNIE runs.
    Enforce authorization and idempotency in tool code. Keep completion policy and
    limits stable after restart. Usage can be undercounted; unsaved attachments
    are lost, accepted events can repeat, and drafts can appear before acceptance.
    Checks skip suspension and model failure. Managed setup, scoped factories, and
    completion options cannot use WithAgentFactory.
  • A halt stops the turn, not the step. Sibling tool calls still run before
    suspension. Omitting human-input tools does not change permissions.
  • A skill's bundled files stay on the host. Put required text in the skill
    body and required sandbox files in context/. Workspace skills are the
    exception: their assets are live sandbox files, not journal snapshots.
  • Workspace skills are untrusted input. Repository descriptions and bodies
    enter model context and can contain hostile instructions; activation does not
    authorize execution. Discovery is opt-in and opens sandbox compute at startup.
    Only Local, Landlock, and custom sandbox.SkillDiscovery implementations
    support it; built-in Docker and Microsandbox discovery returns an unsupported
    error, and the packaged bonnie-skillfs helper does not enable it. Linux
    openat2 is required. Over-limit skills are skipped, not truncated; a scan
    that fails or times out keeps the last complete catalogue. Saved catalogues
    hold instruction text, so protect the journal.
  • HTTP authentication is opt-in. Protect TCP HTTP separately; Iroh approval
    does not authenticate or disable it. Health remains public on TCP HTTP.
    Verified ownership is required for operation_id. CSRF checks do not replace
    authentication. Chat webhooks verify the platform, not the person.
  • Iroh pairing grants access to all runs, not tenant isolation. Verify peer
    IDs out of band. Persist approved IDs and stable endpoint keys on the host;
    pairing and revocation are process-local. Revocation blocks later requests,
    not requests already accepted. Tickets provide reachability, not permission.
    There is no built-in Iroh CLI, pairing command, or presence advertisement.
    Loopback tests do not prove Internet relays or Rust-client interoperability.
  • Run ownership is per host. Use one process and one submission scheduler per
    journal. SQLite protects transactions, not execution coordination. Do not mix
    direct Start and scheduler delivery to the same run. Network filesystems need
    reliable POSIX locks and are unsafe for the journal.
  • Events are journal-anchored. Durable events replay; transient assistant
    deltas do not. Web chat does not show reasoning deltas. Another process's
    writes do not publish live events in this host.
  • Cleanup is opt-in and deletes files, not history. Waiting and interrupted
    runs are kept;
    publish output before completion. CLI serve does not sweep sandboxes. Locks
    are local to one Runner; deletion callbacks must be safe to repeat. Shared
    directories and custom factories cannot use automatic cleanup. Only Landlock
    and Local support shared directories; use one server and no context seeding.
  • Tool recovery is not exactly once. Saved and current policies must allow
    replay; no tool is replay-safe by default. Replay bypasses interactive approval
    hooks. Different arguments can evade uncertain-action blocks. Outcomes saved
    before a step retain text, not media. Custom factories need their own recovery.
  • Submission deduplication covers admission, not effects. Human waits park
    inputs; failed work is not retried automatically. The scheduler recovers recorded
    submissions; the served host recovers unfinished synchronous runs. Steering supports text only. Atomic
    markers and child creation need runtime.StepJournal. Background children do
    not keep parents busy or grant approval. Unsaved callbacks can repeat.
  • Logs can contain sensitive data. Info includes final responses; Debug
    includes prompts, arguments, results, and reasoning. Synchronous logging can
    delay runs; replay does not log events again.
  • Authoring needs Go and public module access. Static agents need neither Go
    nor BONNIE installed, but their sandbox can need a separate runtime. Scoped
    command operations own resources; do not retain them after return.
  • Cancellation is cooperative, not rollback. Models, tools, and callbacks
    must observe contexts. Detached children can escape process-group signals.
    Route controls to the execution owner. Legacy text answers cannot identify
    delayed questions; chat retry can repeat effects. Served hosts recover interrupted HTTP
    work at startup; address and operation_id cannot be combined.
  • NATS credentials and routes need protection. Use TLS, broker permissions,
    and one authentication method. Payloads do not verify identity. Other connection
    options need a caller-supplied connection. Core NATS can lose tasks and results;
    the host continues interrupted runs, but does not retry result publication.
    Ordinary subscribers get copies.
  • JetStream delivery is at least once. Recovery needs the original journal,
    sandbox data, unique agent identity, and one owner. Waiting runs need their
    original agent. Deduplication and retention are bounded; there is no global
    attempt lookup. Consumer changes can replay messages. Targeted tasks have no
    fallback; task IDs deduplicate per route, not across routes.
  • Publish receipts confirm storage, not execution. Existing streams are not
    changed. Filter task IDs and respect cancellation; invalid messages need
    correction. Deduplicate status event IDs and order by sequence. Statuses and
    results have no cross-stream ordering. Queries and cancellation are not durable
    commands; timeouts do not prove failure. Custom reply prefixes are unsupported.
  • The NATS run API is operator access, not tenant isolation. API access
    covers all runs...
Read more

v0.30.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 14:54
v0.30.0
3ce8eaf

Continue unfinished runs after a crash or a restart. This is a MINOR
release under the pre-1.0 convention: it adds public recovery and shutdown
APIs and changes interrupted-run and shutdown behavior. BONNIE remains early
and experimental. No release is proven in production. Do not use it for work
whose loss would hurt.

The claims

  • A run survives process death. A served agent continues unfinished runs
    at startup from the journalled conversation, including typed tool calls and
    results. SQLite commits each tool-calling step atomically. An answer or
    human-input wait already saved can close the turn without a model call.
    Unsaved input cannot be recovered. Uncertain external effects need
    verification, not blind replay; execution is not exactly once.
  • A run parks indefinitely. A human-input wait needs no live agent process
    or running sandbox compute. Resume supplies the answer after restart. Keep
    the journal and sandbox data. JetStream waits need their original agent.
  • A run is reachable over HTTP. Routes under /bonnie/v1 expose runs,
    snapshots, events, durable submissions, and owned child runs. Terminal chat
    and the optional /web interface use the same channel and run executor.
    Iroh serves the HTTP wire API over authenticated QUIC streams for approved
    peers. The same authenticated API is also reachable over Core NATS subjects.

Added

  • runtime.Runner.Continue continues one run whose turn has no stop reason
    (running from a dead process, or interrupted) with no new input. It
    closes a turn whose answer or human-input wait is already durable without a
    model call, sends a durable answer the model has not seen, and otherwise
    continues the saved conversation. A run whose input never became durable
    fails with runtime.ErrRecoveryInputLost.
  • runtime.Runner.Recover, Unfinished, RecoverOptions, and
    RecoveredRun, DefaultRecoverConcurrency, and ErrNothingToContinue continue every such run with bounded concurrency.
    Agent.Run and Agent.Serve call it at startup.
  • runtime.Runner.BeginDrain, Drain, and ErrRunnerDraining: shutdown
    interrupts each turn and refuses new ones, so the next process continues them.
  • channel.Recoverer: Slack, Discord, Telegram, and GitHub post the result of
    a continued run in the conversation that started it (chat.Core.DeliverRecovered,
    chat.AddressMap.AddressesOf). GitHub needs GITHUB_INSTALLATION_ID for it.
  • channel.RecoveryOwner: NATS JetStream keeps its runs for broker redelivery.

Changed

  • Breaking: RunInterrupted.IsTerminal() is now false. Sandbox cleanup no
    longer deletes the files of an interrupted run.
  • Breaking: Agent.Run interrupts in-flight turns at shutdown instead of
    waiting for them. WithShutdownTimeout bounds how long each turn has to
    record interrupted.
  • RunScheduler cancellation interrupts its turns. Their submissions stay
    running, and the next scheduler continues them; before, they were aborted.
  • StartRetry on a running run from a dead process continues the saved
    input, as it does for interrupted, and does not send it a second time.
  • An interrupted parent turn no longer cancels the child runs it owns.
  • The schedule engine continues an interrupted dispatch and does not save the
    interruption as its result. A dispatch held by another owner is retried, not
    failed.

Known limits

  • Linux only. Releases support linux/amd64 and linux/arm64. The default needs
    kernel 5.13 or newer with Landlock enabled; otherwise select Docker.
  • Containment is not isolation. Landlock confines files, not the network,
    and shares the host kernel. Do not run as a user in the docker group:
    access to its socket permits host escape. Docker uses namespaces, not a
    separate kernel. Microsandbox needs Linux and KVM. Local provides no isolation.
  • Sandbox egress is open until a policy is set. Landlock refuses policies it
    cannot enforce. Microsandbox policy is fixed at creation; reattachment with a
    different policy fails. Automatic runtime installation needs network access
    and does not upgrade existing installations or remove runtime requirements.
  • Custom tools and completion callbacks are trusted host code. Use scoped
    Exec for commands; do not retain scopes after execution. Use Kit.Subagent,
    not Kit.Prompt, from active tools. Closure state is not durable; interrupted
    calls and checks can repeat. Child model calls are not durable BONNIE runs.
    Enforce authorization and idempotency in tool code. Keep completion policy and
    limits stable after restart. Usage can be undercounted; unsaved attachments
    are lost, accepted events can repeat, and drafts can appear before acceptance.
    Checks skip suspension and model failure. Managed setup, scoped factories, and
    completion options cannot use WithAgentFactory.
  • A halt stops the turn, not the step. Sibling tool calls still run before
    suspension. Omitting human-input tools does not change permissions.
  • A skill's bundled files stay on the host. Put required text in the skill
    body and required sandbox files in context/.
  • HTTP authentication is opt-in. Protect TCP HTTP separately; Iroh approval
    does not authenticate or disable it. Health remains public on TCP HTTP.
    Verified ownership is required for operation_id. CSRF checks do not replace
    authentication. Chat webhooks verify the platform, not the person.
  • Iroh pairing grants access to all runs, not tenant isolation. Verify peer
    IDs out of band. Persist approved IDs and stable endpoint keys on the host;
    pairing and revocation are process-local. Revocation blocks later requests,
    not requests already accepted. Tickets provide reachability, not permission.
    There is no built-in Iroh CLI, pairing command, or presence advertisement.
    Loopback tests do not prove Internet relays or Rust-client interoperability.
  • Run ownership is per host. Use one process and one submission scheduler per
    journal. SQLite protects transactions, not execution coordination. Do not mix
    direct Start and scheduler delivery to the same run. Network filesystems need
    reliable POSIX locks and are unsafe for the journal.
  • Events are journal-anchored. Durable events replay; transient assistant
    deltas do not. Web chat does not show reasoning deltas. Another process's
    writes do not publish live events in this host.
  • Cleanup is opt-in and deletes files, not history. Waiting and interrupted
    runs are kept;
    publish output before completion. CLI serve does not sweep sandboxes. Locks
    are local to one Runner; deletion callbacks must be safe to repeat. Shared
    directories and custom factories cannot use automatic cleanup. Only Landlock
    and Local support shared directories; use one server and no context seeding.
  • Tool recovery is not exactly once. Saved and current policies must allow
    replay; no tool is replay-safe by default. Replay bypasses interactive approval
    hooks. Different arguments can evade uncertain-action blocks. Outcomes saved
    before a step retain text, not media. Custom factories need their own recovery.
  • Submission deduplication covers admission, not effects. Human waits park
    inputs; failed work is not retried automatically. The scheduler recovers recorded
    submissions; the served host recovers unfinished synchronous runs. Steering supports text only. Atomic
    markers and child creation need runtime.StepJournal. Background children do
    not keep parents busy or grant approval. Unsaved callbacks can repeat.
  • Logs can contain sensitive data. Info includes final responses; Debug
    includes prompts, arguments, results, and reasoning. Synchronous logging can
    delay runs; replay does not log events again.
  • Authoring needs Go and public module access. Static agents need neither Go
    nor BONNIE installed, but their sandbox can need a separate runtime. Scoped
    command operations own resources; do not retain them after return.
  • Cancellation is cooperative, not rollback. Models, tools, and callbacks
    must observe contexts. Detached children can escape process-group signals.
    Route controls to the execution owner. Legacy text answers cannot identify
    delayed questions; chat retry can repeat effects. Served hosts recover interrupted HTTP
    work at startup; address and operation_id cannot be combined.
  • NATS credentials and routes need protection. Use TLS, broker permissions,
    and one authentication method. Payloads do not verify identity. Other connection
    options need a caller-supplied connection. Core NATS can lose tasks and results;
    the host continues interrupted runs, but does not retry result publication.
    Ordinary subscribers get copies.
  • JetStream delivery is at least once. Recovery needs the original journal,
    sandbox data, unique agent identity, and one owner. Waiting runs need their
    original agent. Deduplication and retention are bounded; there is no global
    attempt lookup. Consumer changes can replay messages. Targeted tasks have no
    fallback; task IDs deduplicate per route, not across routes.
  • Publish receipts confirm storage, not execution. Existing streams are not
    changed. Filter task IDs and respect cancellation; invalid messages need
    correction. Deduplicate status event IDs and order by sequence. Statuses and
    results have no cross-stream ordering. Queries and cancellation are not durable
    commands; timeouts do not prove failure. Custom reply prefixes are unsupported.
  • The NATS run API is operator access, not tenant isolation. API access
    covers all runs; per-run ownership authorization is not supplied. It needs an
    HTTP authenticator and restrictive broker ACLs and TLS; broker authentication
    alone does not identify a publisher. Assign one bridge per journal-owning agent
    subject; it is not a shared worker queue. Requests are not retried, reply loss
    does not prove failure, and API delivery i...
Read more

v0.29.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 13:00
v0.29.0
72a10c7

Search and edit inside the sandbox; separate new input from recovery.
This is a MINOR release under the pre-1.0 convention: it adds sandbox tools
and public directory-reading APIs, and changes new-input admission during
interrupted work. BONNIE remains early and experimental. No release is proven
in production. Do not use it for work whose loss would hurt.

The claims

  • A run survives process death. Another process restores the journalled
    conversation, including typed tool calls and results. SQLite commits each
    tool-calling step atomically. Recover admitted work with StartRetry before
    new input. Uncertain external effects need verification, not blind replay.
    Execution is not exactly once; callbacks can run again.
  • A run parks indefinitely. A human-input wait needs no live agent process
    or running sandbox compute. Resume supplies the answer after restart. Keep
    the journal and sandbox data. JetStream waits need their original agent.
  • A run is reachable over HTTP. Routes under /bonnie/v1 expose runs,
    snapshots, events, durable submissions, and owned child runs. Terminal chat
    and the optional /web interface use the same channel and run executor.
    Iroh serves the HTTP wire API over authenticated QUIC streams for approved
    peers. The same authenticated API is also reachable over Core NATS subjects.

Added

  • Default sandbox-backed grep, find, and exact edit tools. Search uses
    bounded JSON results and portable directory enumeration; core host tools
    remain disabled. Search includes dotfiles but does not honor .gitignore.
  • Optional sandbox.DirectoryReader capability, sandbox.DirectoryEntry, and
    sandbox.ErrNotDirectory, preserved by environment and seed wrappers without
    changing the required Sandbox interface.
  • A cancellable mutation gate for edit and write_file callbacks from one
    tool set. It does not coordinate shell commands or external writers.

Changed

  • Breaking: Nonempty runtime.Runner.Start input is now always new input, including
    identical text and metadata-only input. It returns a nil Run and the public
    ErrInputDeferred sentinel while saved unfinished work owns the conversation.
    Callers must retain the undelivered command, recover with StartRetry, then
    submit it after the old logical turn closes. Migrate nonempty crash-recovery
    calls from Start to StartRetry. Zero-value Start keeps legacy recovery.
    The durable scheduler's admission semantics are unchanged.
  • Breaking: grep, find, and edit are now built-in sandbox tool names.
    Rename extra tools that use these names to avoid Kit tool-name collisions.

Fixed

  • Saved chat and scheduled dispatches use StartRetry to recover admitted work
    rather than submit it as new input. Durable scheduler admission is unchanged.
  • Sandbox documentation now states Local's actual path policy: no isolation.

Known limits

  • Linux only. Releases support linux/amd64 and linux/arm64. The default needs
    kernel 5.13 or newer with Landlock enabled; otherwise select Docker.
  • Containment is not isolation. Landlock confines files, not the network,
    and shares the host kernel. Do not run as a user in the docker group:
    access to its socket permits host escape. Docker uses namespaces, not a
    separate kernel. Microsandbox needs Linux and KVM. Local provides no isolation.
  • Sandbox egress is open until a policy is set. Landlock refuses policies it
    cannot enforce. Microsandbox policy is fixed at creation; reattachment with a
    different policy fails. Automatic runtime installation needs network access
    and does not upgrade existing installations or remove runtime requirements.
  • Custom tools and completion callbacks are trusted host code. Use scoped
    Exec for commands; do not retain scopes after execution. Use Kit.Subagent,
    not Kit.Prompt, from active tools. Closure state is not durable; interrupted
    calls and checks can repeat. Child model calls are not durable BONNIE runs.
    Enforce authorization and idempotency in tool code. Keep completion policy and
    limits stable after restart. Usage can be undercounted; unsaved attachments
    are lost, accepted events can repeat, and drafts can appear before acceptance.
    Checks skip suspension and model failure. Managed setup, scoped factories, and
    completion options cannot use WithAgentFactory.
  • A halt stops the turn, not the step. Sibling tool calls still run before
    suspension. Omitting human-input tools does not change permissions.
  • A skill's bundled files stay on the host. Put required text in the skill
    body and required sandbox files in context/.
  • HTTP authentication is opt-in. Protect TCP HTTP separately; Iroh approval
    does not authenticate or disable it. Health remains public on TCP HTTP.
    Verified ownership is required for operation_id. CSRF checks do not replace
    authentication. Chat webhooks verify the platform, not the person.
  • Iroh pairing grants access to all runs, not tenant isolation. Verify peer
    IDs out of band. Persist approved IDs and stable endpoint keys on the host;
    pairing and revocation are process-local. Revocation blocks later requests,
    not requests already accepted. Tickets provide reachability, not permission.
    There is no built-in Iroh CLI, pairing command, or presence advertisement.
    Loopback tests do not prove Internet relays or Rust-client interoperability.
  • Run ownership is per host. Use one process and one submission scheduler per
    journal. SQLite protects transactions, not execution coordination. Do not mix
    direct Start and scheduler delivery to the same run. Network filesystems need
    reliable POSIX locks and are unsafe for the journal.
  • Events are journal-anchored. Durable events replay; transient assistant
    deltas do not. Web chat does not show reasoning deltas. Another process's
    writes do not publish live events in this host.
  • Cleanup is opt-in and deletes files, not history. Waiting runs are kept;
    publish output before completion. CLI serve does not sweep sandboxes. Locks
    are local to one Runner; deletion callbacks must be safe to repeat. Shared
    directories and custom factories cannot use automatic cleanup. Only Landlock
    and Local support shared directories; use one server and no context seeding.
  • Tool recovery is not exactly once. Saved and current policies must allow
    replay; no tool is replay-safe by default. Replay bypasses interactive approval
    hooks. Different arguments can evade uncertain-action blocks. Outcomes saved
    before a step retain text, not media. Custom factories need their own recovery.
  • Submission deduplication covers admission, not effects. Human waits park
    inputs; failed work is not retried automatically. Recovery covers recorded
    submissions, not older synchronous runs. Steering supports text only. Atomic
    markers and child creation need runtime.StepJournal. Background children do
    not keep parents busy or grant approval. Unsaved callbacks can repeat.
  • Logs can contain sensitive data. Info includes final responses; Debug
    includes prompts, arguments, results, and reasoning. Synchronous logging can
    delay runs; replay does not log events again.
  • Authoring needs Go and public module access. Static agents need neither Go
    nor BONNIE installed, but their sandbox can need a separate runtime. Scoped
    command operations own resources; do not retain them after return.
  • Cancellation is cooperative, not rollback. Models, tools, and callbacks
    must observe contexts. Detached children can escape process-group signals.
    Route controls to the execution owner. Legacy text answers cannot identify
    delayed questions; chat retry can repeat effects. Interrupted synchronous HTTP
    work needs explicit recovery; address and operation_id cannot be combined.
  • NATS credentials and routes need protection. Use TLS, broker permissions,
    and one authentication method. Payloads do not verify identity. Other connection
    options need a caller-supplied connection. Core NATS can lose tasks and results;
    interrupted work is not retried automatically. Ordinary subscribers get copies.
  • JetStream delivery is at least once. Recovery needs the original journal,
    sandbox data, unique agent identity, and one owner. Waiting runs need their
    original agent. Deduplication and retention are bounded; there is no global
    attempt lookup. Consumer changes can replay messages. Targeted tasks have no
    fallback; task IDs deduplicate per route, not across routes.
  • Publish receipts confirm storage, not execution. Existing streams are not
    changed. Filter task IDs and respect cancellation; invalid messages need
    correction. Deduplicate status event IDs and order by sequence. Statuses and
    results have no cross-stream ordering. Queries and cancellation are not durable
    commands; timeouts do not prove failure. Custom reply prefixes are unsupported.
  • The NATS run API is operator access, not tenant isolation. API access
    covers all runs; per-run ownership authorization is not supplied. It needs an
    HTTP authenticator and restrictive broker ACLs and TLS; broker authentication
    alone does not identify a publisher. Assign one bridge per journal-owning agent
    subject; it is not a shared worker queue. Requests are not retried, reply loss
    does not prove failure, and API delivery is not durable. Missed live-only
    activity cannot be replayed.
  • Schedules have one journal owner. Change Revision when policy changes.
    Waiting work blocks default overlap. Latest catch-up needs saved cron history,
    not every missed occurrence. Delivery and callbacks can repeat. Only mounted
    tracked chat receivers are supported, not scheduled files or NATS. Execution
    has 16 active occurrences. Manual and HTTP triggers need separate authorization.
  • Browser validation is incomplete. CI excludes the live-state and end-to-end
    browser tests. They need C...
Read more