Skip to content

Changelog ​

All notable changes to bide are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning. While bide is pre-1.0, a minor version (0.x.0) may include breaking API changes, which are marked Breaking: below; the journal format can change between pre-releases without a version bump. Curated highlights for each release are in docs/releases.

Unreleased ​

Unreleased changes are in changes/unreleased/.

0.26.0 - 2026-10-28 ​

Added ​

  • Flow.Run takes agent.WithUntrustedInput and agent.WithTrustedInput (a flow run refused them with ErrConfig before): the source or reason is recorded in run:start's settings, a later drive that states another source is ErrConfig, and an untrusted source is the first mark of a run under a flow taint policy. Experimental.
  • Plan flows enforce a taint policy (experimental, Go only). Builder.WithTaintPolicy (or plan.WithLoadedTaintPolicy) gives a flow an agent.TaintPolicy, and plan.Untrusted, plan.Trusted, plan.TaintExempt, a tool's own declarations and the untrusted key of a config node say what each node's results carry. Once a run has read untrusted content (a node that declares a source, the run's input when WithUntrustedInput names it, or what a flow a node started brought up), a node that can have a side effect needs the policy's escalation gate on a second subject, node:<name>:taint, before its attempt claim, or is refused under Refuse (plan.ErrTaintRefused). The run records its declarations in run:start, a drive under other declarations is ErrConfig, and Flow.Conform checks that every node that ran met its obligation. A flow a node's body starts inside a run under taint inherits the status and marks as an agent child does, and sends the marks it learned up to that node (taint-mark: and taint-child: records), also when ResolveHalt records the node's result. Build, Load, Validate and bide check no longer refuse a flow that declares taint, and a flow block whose tool declares Untrusted or TaintExempt, refused before, is accepted. An agent a node's body runs hands the marks it read up to the node before the node is recorded, and a flow run as an agent's tool marks the tool result subflow:<tool> when it ended with a mark. A flow with no policy that declares a source records it in run:start (taint_sources; nothing is added for a flow that declares none), so it marks what it read when it is run as a tool or as a node's child; a drive by a flow that declares other sources (a node gaining Untrusted, say) is ErrConfig until the run is cancelled. Do not drive a run that started under a flow taint policy with v0.25.x or earlier: they do not read the taint records and run a node this release refused or held at its gate (see KNOWN-LIMITATIONS).
  • plan.RegistryDescription is version 2: each block and merge carries untrusted, trusted and taint_exempt, the description carries taint_declared (so a block that lists none declares none) and taint_policy (plan.TaintPolicyDescription, built from an agent.TaintPolicy by plan.DescribeTaintPolicy; Describe leaves it empty because the policy is the Builder's). A version 1 description is still read and says nothing about taint. bide doctor -declarations and -diff read such a description as a flow's declarations: a removed Untrusted source, a new TaintExempt, a lower gate or require_provenance turned off is weakened, and a description that gives no policy cannot be compared with another (one weakened line). Experimental. plan.DescriptionVersion is 2 and Describe writes it: a description written by v0.26.0 is version 2, which v0.25.x refuses; v0.26.0 reads version 1 and 2.
  • bide edit shows the static taint view: words and a ring under each node, the same words in the outline and the node's accessible name, a Taint section in the inspector with the path from a source, a Taint panel whose buttons select the nodes to look at, an announcement when it changes, and the banner UNTRUSTED EXPOSURE WIDENED when an edit makes a side-effecting node newly read untrusted data with no policy to cover it. flowedit.WithTaintPolicy gives an embedded editor the flow's taint policy; bide edit -blocks uses the description's. Without the declarations the editor says "taint: not known without -blocks". Experimental.
  • plan.ConfigReport.Taint (a plan.NodeTaint for each node) is the static view of flow taint: which declared sources may run before a node, what the flow's taint policy would do to it (escalates, refused, exempt, or reads untrusted when the policy is not given), and what the view cannot know. plan.InspectTaintPolicy gives InspectConfig the policy (the zero agent.TaintPolicy states there is none); InspectConfigDescribed reads the description's. bide check prints a taint section, or one line ("taint: not known without -blocks", or "taint: not known (reason)" when the blocks declare no taint), and bide check -diff reports a side-effecting node that newly reads a source (listed when the policy gates it or it is exempt, weakened as UNTRUSTED EXPOSURE WIDENED when the policy is known to be absent, not certified when the policy is not given) and a source a node no longer declares. Experimental.
  • agent.TaintPolicy.SeparateApprovers (experimental) makes a taint policy's escalation gate a second look by other people. On a call's escalation instance (<call>#taint, or node:<name>:taint in a plan flow) the approvers whose decisions the call's own gate counted do not count, the tally records them as excluded_by_sibling, and an instance left with too few approvers to reach the Gate's Need is denied instead of waiting. agent.New and plan Build are ErrConfig for a tool or node that can be escalated whose own gate is one decision or shares an approver ID with the policy's Gate, and for a policy that separates approvers with a SingleApproval or Refuse. The field is in the declarations digest and the bide doctor document only when set, and bide doctor -diff reports its removal as weakened. audit.ApprovalEvidence carries the own gate's tally with an instance's evidence, and audit.VerifyApprovals recounts it with the same exclusion under agent.ApprovalPolicy.SeparatedFrom; bide audit verify-approvals takes -separate-approvers. The gate-reason record of such a call carries separate_approvers, and the approvals intake refuses (403, excluded_by_sibling) a decision by an approver the call's own gate counted, bide approve and bide approve -list, the run viewer and the notifier stop presenting that approver as eligible. A policy digest changes only for a policy that sets the field. New: agent.ApprovalPolicy.SeparatedFrom, agent.ApprovalTally.ExcludedBySibling, agent.ReasonSibling and agent.ReasonNoSibling.

Changed ​

  • Step, Parallel and ResolveHalt now refuse a step name that starts with taint-mark: or taint-child:, which the engine reserves for the taint marks and child links of a plan flow (agent.IsReservedStepName).
  • A live model turn whose tool-use ID starts with node: now fails with ErrToolUseIDInvalid, as an ID that holds # does: plan flows key their nodes and the gates on them by node:, and a node's escalation instance is node:<name>:taint. A journal that already holds such an ID still replays and resumes; no other ID is affected.

0.25.1 - 2026-10-27 ​

Fixed ​

  • bide audit verify-receipts, bide audit redactions and bide audit notifications now refuse two -journal exports of the same run, as an unusable input (exit 4) naming both files and the run ID. Before, the later file on the command line silently replaced the earlier one, so the receipt or the tombstones were checked against whichever came last, and the verdict could change with the order of the flags (a redacted journal and the whole journal it came from gave PASS or FAIL depending on which was listed last). Pass one export per run. For notifications, two exports of one run taken at different times were both read, so the run's events were counted from each.
  • bide migrate -h now lists everything the migration creates: it named the tables, bide_next_seq_v1 and the lease indexes, but left out the bide_holds table and the bide_redact_v3 function (which the Postgres guide already said it creates), and the EXECUTE revokes on older redaction functions. Help text only; the migration is unchanged.
  • bide view and bide edit now refuse two -journal exports of the same run, as a usage error (exit 2) naming both files and the run ID. Before, the later file on the command line silently replaced the earlier one, so a substituted or stale export of a run could be shown as that run with no sign. Exports of different runs are unchanged. Two exports of one run taken at different times used to resolve to the later file; to look at one of them, pass only that file.
  • A flow config that sets safety or approval on an edge or switch wiring element is now refused with ErrConfig naming wiring[i] (by Load, Validate and InspectConfig). The key has no node to apply to there and was accepted and dropped, so a config could look gated and not be.

Removed ​

  • The cmd/bide-view module, a stub that only printed that bide-view is now bide view, is removed and no longer tagged at a release. Its last tag is cmd/bide-view/v0.25.0, so go install github.com/bide-ai/bide/cmd/bide-view@latest still resolves to that stub, which prints that it moved; install cmd/bide (go install github.com/bide-ai/bide/cmd/bide@latest or brew install bide-ai/tap/bide) and run bide view. Nothing else changes: bide view is part of cmd/bide, and a release tags one module fewer.

0.25.0 - 2026-10-26 ​

Added ​

  • bide edit -run <id> with a store (-db, -postgres, -postgres-env or -journal, the flags bide view takes, opened read-only) compares the file you are editing with the topology that run journaled, in a new panel, Compared with a run. It says SAME DIGEST (typed mode), NO DIFFERENCE SEEN (structural mode, where kinds, types and gates are not compared), DIFFERS FROM THE RUN with the changes the topology digest covers (including a change of order), or CANNOT COMPARE, and that a run paused under a different topology will not resume under the file. It compares topologies and nothing more: it does not say the run followed the file, and safety and assert lines, which are not in a journal or the digest, are not compared. It never blocks a save and does not change the weakened banner. A run that journaled no topology, has no digest yet, or journaled a topology that does not match its digest is named as such. The run is read once and again on Reload run. The page also draws the run's path on the flow (a ring and words per node: ran, started with no result recorded, paused at its approval gate; a dashed line over each connection taken), laid on the file by name with the session's renames, and lists what the file cannot show; the path is read by a few point reads per node. With a store, with or without -run, a second panel, Unfinished runs this file would refuse, lists the store's unfinished runs by the digest each recorded (one small record per run, never a history; at most 5000 runs, the first by run ID, said as "at least") and says which a drive under the file (resume, recovery or restart) would refuse: a different digest, or a topology that differs by what the digest covers; runs of another flow and runs that recorded no digest yet are counted apart. -run is no longer required with a store. See Compare with a run.
  • plan.InspectTopology(t Topology) ConfigReport is the report of a declared Topology alone: its digest, its approval gates and which nodes every path to passes through a gate, computed by the code InspectConfig uses. It is for a tool that holds a topology and no config, such as the topology a run journaled (JournaledTopology). Safety and Assertions are nil, since a topology carries neither; it does not validate (a dangling edge or a duplicate name is tolerated), never panics, costs time linear in the nodes and edges, and shares no memory with its argument. The editor's "compare with a run" (above; docs/design/visual-editor.md, "Phase 4 design") uses it.
  • agent.RaisesSafety(reason) (experimental, with ToolSpec.RaisesSafety): agent.New now refuses with ErrConfig a wrapper whose declared Safety is safer than a tool it embeds or unwraps, at any depth (the order is a side effect, then Idempotent, then ReadOnly), naming the wrapper, the tool and both levels; a wrapper that really does make the call safer declares RaisesSafety(reason) (the reason follows the rules of agent.Trusted). The reason is in the declarations document (raises_safety, and idempotent for a retry-safe side effect) and, only when set, in the declarations digest, so existing digests are unchanged. bide doctor -declarations lists it and bide doctor -diff reports adding it as WEAKENED and removing it as strengthened. bide doctor -diff also reports any tool that becomes safer to re-run (side effect to Idempotent, or either to ReadOnly) as WEAKENED. Behavior change: an agent with such a wrapper (for example a ReadOnly wrapper over a side-effecting tool) now fails at New until the wrapper declares the inner tool's Safety or RaisesSafety. See docs/reference/extension-points.md and docs/guides/untrusted-content.md. The declarations format stays bide.declarations.v1 (experimental), and every document the agent now dumps carries a tracks_idempotent member (and, where they apply, idempotent and raises_safety), so an older bide doctor (v0.24.0 and earlier) refuses a new document as having an unknown member. In the other direction, bide doctor -diff of a baseline dumped by an older version against a new dump that has an Idempotent side-effecting tool reports one WEAKENED line, asking you to regenerate the baseline with the new version, instead of reading the missing member as "not Idempotent": a pipeline regenerates its baseline once after upgrading. Behavior change, broader than Safety: the wrapper check on an Unwrap chain now also looks inside the tools each chain tool embeds, for every property it checks (approval gate, Timeout, Caps, Untrusted and Safety), so an agent whose wrapper reaches a tool by Unwrap that in turn embeds a gated, capped, untrusted or less safe tool, and that was accepted before, can now fail at New with ErrConfig until the wrapper declares the same.

Changed ​

  • Amount caps are experimental: agent.WithCaps, agent.WithCapNamespace and ToolSpec.Caps are marked experimental in their documentation and in the API reference, as the taint names are, and docs/trust/stability.md now lists every experimental name and command of v0.23.0 and v0.24.0 (the caps names, WithTaintPolicy and TaintPolicy, GateReason, (*Agent).Declarations, the Why fields, bide audit caps, bide doctor -declarations and -diff, bide init -agent and -single-approver). Under that page, experimental means the Go names and the command flags may change in a minor release with a changelog entry; a configured cap still refuses the call it covers. No behavior changes.

Fixed ​

  • The core module and its test code build on Solaris and illumos again (go vet ./... was failing in the core, flowedit and cmd/bide-anchor): the tests that make a named pipe are built only where syscall.Mkfifo exists (Linux, macOS, FreeBSD, NetBSD, OpenBSD, DragonFly), and notify/relay's state-file lock, which used syscall.Flock, now builds everywhere. On Solaris and AIX (not illumos, which has Flock) a relay refuses a StatePath at start with exclusive file locks are not supported on this platform, as on any platform without a file lock; it never runs two relays on one file unlocked. The SQLite-backed modules (store/sqlite, govern/sqlitelog, cmd/bide and the modules that import them) still do not build on DragonFly, Solaris and illumos, because modernc.org/sqlite does not support them.
  • bide audit verify-evidence and bide audit verify-decision-coverage name a step whose key holds a call ID by that ID. The line for the gate of call c2#taint read step "approval-pending:c2%23taint", the escaped form the engine stores in the key; it now reads step "approval-pending" of call "c2#taint", and a key suffix stays (step "approval-tally:v3" of call "c2#taint"). This covers the approval gate's keys (pending, request, tally, deadline, decision, exec hold, identity, pause, reason). A key that is not that shape, or whose ID is a digest (an ID over 96 escaped bytes), is shown as stored, and so is a notification key (approval:<run>:<call>:<n>), which names a run before the call. Other commands that quote a stored record name in an error, and the key of an absence proof, still show it as stored. Display only: the stored key, the package and its seal are unchanged.
  • bide view says why a gate's signatures were not checked when the -sth or -evidence given is for another run: signatures not checked: the proof given is for another run (signed head: "run-b"); give -sth or -evidence for this run. It used to say pass -approver-keys, with -sth or -evidence, which a user who had passed all three could not act on. The note appears only when no prover made a proof for the run; a proof for this run that fails is shown as the failure it is. The run IDs are shown escaped and cut at 64 characters. Nothing about what is checked changes: a run without a proof is still unchecked.

0.24.0 - 2026-10-25 ​

Added ​

  • The approve page lists why a call is held (the untrusted content a tainted turn read, or the cap rule that holds it, with this call's figures as of the ask) above the arguments, as text, labelled as the application's record and not part of what the approver signs, and marks the arguments as model-written and unverified (everything in them is chosen by the model). The intake's GET /pending answer carries the reasons as why (approvals.Pending.Why, experimental). The page bundle changes: its approve-page.SHA256SUMS are new, so an organisation that pins the bundle reviews the update. The signed decision (bide.approval.v3) is unchanged.
  • Every attempt marker the engine, ClaimAttempt or ResolveHalt (for the next attempt) claims now carries recorded_at, the instant of the claim on the clock the run was driven with (WithClock, else the wall clock), readable as Record.RecordedAt(). The marker's AttemptedAt stays the wall clock, which the age of a halt is measured on, so a run clock that lags or leads does not move it. A caller cannot set it. bide audit caps dates a call's cap window by it. Markers written before keep their form.
  • bide audit caps (experimental) audits the amount-cap ledgers of a store, read-only. Each ledger run must read under the ledger's own rules, and its window total must be the sum of its live reserves. Its slots must agree with the cap-reserve records of the runs that made the calls (a deleted slot, a changed slot, a slot no run recorded) and with each attempt's cap-intent, which must fit the call's own time (a planted intent that moves a slot to another window fails) and the rule's index run. A release of a call whose tool produced a result fails, and any other release must be explained by the loop's cap-release: record or by the attempt's void (without either it fails when anchored and warns when not). With -sth and -pubkey the ledgers and the runs' cap records must be what the newest signed heads commit to, and entries after them fail as not attested; with -unanchored the report says first that whoever can write the store can delete a slot or append a release undetected. It lists the slots counted over the limit under a waiver and the reconcile exposure, and -namespace, -rule, -window and -run narrow the audit and list what they left unchecked. bide sample now writes a small cap ledger (bide audit caps -db sample.db -unanchored). The amount caps guide gains a worked configuration and the cost of a ledger on an AuditedStore. See docs/guides/amount-caps.md.
  • When the loop releases a call's cumulative-cap reservation because the tool never began, it first journals why, as a cap-release:<attempt> record in the run that made the call (bide.cap-release.v1: the attempt and the reason, a cap refusal or a chain that returned without calling the tool). A write that fails releases nothing: the slot stays counted and the reconcile pass releases it after the void, as when a release fails. The name is reserved, so Step and ClaimAttempt refuse it. bide audit caps holds each release to this record or to a void. A release the reconcile pass makes is justified by the void and writes no record.
  • bide doctor -declarations <file> reports on the taint and cap declarations a host dumps from its agent (side-effecting tools with no taint policy, exempt tools, cap-carrying tools, a weak escalation gate), and bide doctor -diff <old> <new> lists every change between two dumps as weakened, changed or strengthened (a raised cap limit, a removed or renamed cap rule, a removed Untrusted, a new TaintExempt, a lower need, a requester no longer excluded) and exits 1 if anything is weakened. A document with a member this version does not know, or whose digest is not the digest of what it declares, is refused. (*Agent).Declarations writes the document. The first-run checks are unchanged. See docs/guides/untrusted-content.md.
  • The reasons a call is gated are shown to the approver. bide approve -list and the decision screen print why: lines for the escalation gate of a tainted call (the untrusted content its turn read, where, and at which journal position), bide view shows them in the gate's card, -list -json carries why, and the notifier payload carries approval.why (a cap reason's figures only for a tool named in Args(...)). The reasons come from the gate-reason record the engine writes; they are the application's record, no gate reads them, and the signed decision does not bind them. agent.GateReason (the type of one reason, experimental) and the Why fields of agent.NotifyApproval and notify.Approval are new.
  • bide init -agent scaffolds an agent project instead of a plan flow: a tool that returns an email and declares it untrusted (agent.Untrusted), a refund, and an agent.WithTaintPolicy whose escalation gate is two of three signed decisions that do not count the requester (ExcludePrincipal), so a side effect the model asks for after reading the email waits for a human decision. -single-approver makes the gate one unsigned decision for a team of one (weaker, and the project's README says so). The project runs with no API key, checks its own story in go test, and writes declarations.json for bide doctor -declarations. The plan-flow scaffold is unchanged; the taint policy does not cover plan flows. New flags: experimental. bide init also refuses (a usage error, nothing written) a module name with an empty element, an element that begins or ends with a dot or holds .., or text spelled like a marker of its project template; its templates are filled in one pass.
  • agent.TaintPolicy.RequireProvenance (experimental) makes the taint policy refuse a tool that states no provenance: a tool must declare Untrusted or the new agent.Trusted(reason) (the tool's results are the host's own; the reason is required, goes in the declarations digest, and writes no mark; ToolSpec.Trusted is the same declaration), else agent.New returns ErrConfig naming the tool. A new Run, Send or SendOnce must state WithUntrustedInput or WithTrustedInput, else ErrConfig at its first drive with nothing written (a sub-agent's run and a resume are not asked). The declarations document gains require_provenance and trusted; bide doctor -diff reports turning the requirement off, or replacing Untrusted by Trusted, as WEAKENED, and -declarations lists a tool with no provenance when the policy does not require one. The digest of a policy that does not set it is unchanged. The bide init -agent scaffold sets it. Trusted, ToolSpec.Trusted and RequireProvenance are experimental. See docs/guides/untrusted-content.md.
  • Taint now crosses run boundaries when a taint policy is in force (experimental). A sub-agent started by a call of a tainted turn records the marks that turn was shown in its run:start (ext.taint_inherited) and starts tainted; a sub-agent whose run ended with a mark marks the parent's tool_result for the call (subagent:<tool name>), so the parent's next turn is tainted; and a session turn that ended with marks records them in the session journal (taint/turn/<n>), so every later turn starts with them. Runs that are not under taint record and pass nothing, and their journals are as before. No exported name is added. See docs/guides/untrusted-content.md.
  • agent.WithTaintPolicy and agent.TaintPolicy (experimental): a run that read content marked untrusted needs an escalation gate for each later side-effecting call (or, with Refuse, is refused), in addition to the tool's own gate. The gate is a second instance on the call, under the subject <call>#taint, decided by its own approvers; an approval clears nothing. The approvals intake, bide approve, bide approve -list, bide view and the audit evidence decide and show the instance by the gate its pause note records, never by the tool's own gate. Sub-agents and sessions inherit taint, in this release, as the taint inheritance entry describes. See the guide in docs/guides/untrusted-content.md.

Fixed ​

  • A model stream that is cut partway through an event (a dropped connection) now ends with the read error, retried as before, in every adapter that reads SSE (Anthropic, OpenAI, Gemini). Before, the half event the cut left was decoded first, and the turn failed with a misleading "unexpected end of JSON input" decode error in place of the failed read. A reply over the response cap was already handled this way.

0.23.2 - 2026-10-25 ​

Fixed ​

  • ClaimAttempt stamps a marker's AttemptedAt from the wall clock again. v0.23.1 stamped it from the clock bound to the context (WithClock), so under a run clock that lagged the wall clock a marker claimed this instant looked old: ResolveHalt with WithMinHaltAge resolved it at once, and the notifier's sweep reported it as a halt before WithNotifyHaltAge, defeating the grace period they enforce. The engine's own claims for a tool call and a Journal.Step were always stamped from the wall clock. The age checks use the wall clock unless the resolver is given its own clock, so they see the true age again. Without WithClock nothing changes.

0.23.1 - 2026-10-24 ​

Fixed ​

  • The cap reconcile pass (Recover, RecoverLoop) read the wall clock to decide whether a day or hour window was still open, while a run reserves by its own clock. It now reads the clock bound to its context, else the wall clock. No application could bind one to Recover, so a deployment saw no change in behavior; the wall-clock judgement and its over-count direction for WithClock agents are documented in Recover, RecoverLoop and the known limitations. (#512)

Security ​

  • agent.ClaimAttempt now claims bare attempt markers only; it returns ErrConfig and writes nothing for anything else. Before, v0.23.0 and earlier let a caller with journal access plant records through it: a tool result (the next drive completed the call with the forged result and never ran the tool), a single-approver approval (the next drive ran the gated tool), and a record under a name the engine reserves, such as a cap-intent: that pinned a cap reservation to an old window and so bypassed the cap, a gate-reason: or an approval-pending:. Now a name under a reserved prefix (cap-intent:, cap-reserve:, gate-reason:, approval-pending:, slot:, taint/ and the rest that Step refuses, except attempt:), the engine-derived attempt:not-started: and attempt:retry: forms, an empty name, a record whose kind is not attempt, a caller-set AttemptedAt (the claim stamps it from the context's clock now (changed in v0.23.2: the wall clock again); before, a caller could back-date a marker so a halt looked old enough for ResolveHalt's WithMinHaltAge), and an attempt record that carries a result, an approval, a model turn or a reconciliation are all refused. The engine's own paths (the halt resolution's claim included) do not go through the exported call and are unchanged. An approval of an m-of-n gate was never affected, since only signed decisions count. A caller with journal access can still pre-claim an attempt:tool:<call> marker, which halts the call and cannot admit it or release a cap.

0.23.0 - 2026-10-23 ​

Added ​

  • CI: a "Test (FIPS 140-3)" job runs the Go tests of the modules with GODEBUG=fips140=only against Go's in-tree FIPS module and module v1.26.0 (in the merge queue, on main and on a pull request labelled full-ci) and against module v1.0.0 (on main), with Postgres and Redis service containers and a live Redis and Postgres test required to pass. Not run under the mode: the SoftHSM2 and PKCS#11 suites, the MinIO Object Lock suite (anchor/awss3), the cloud KMS and GCS emulator suites, the step-ca container recipe, the browser-driven suites (they have their own Chrome jobs) and the exhaustive or corpus-rewriting tests. Under v1.0.0, which has no ML-DSA, it skips the tests listed in .github/fips-v1.0.0-excluded.txt and nothing else, and a check fails when a listed test no longer fails with that error. It is not a required check. New tests in internal/fipsmode and cmd/bide/internal/approvecmd pin that the approved schemes (Ed25519, ECDSA P-256) work under the mode and that ML-DSA or hybrid under v1.0.0 is an error, not a panic. The documentation states what is tested; bide still makes no claim of FIPS validation.
  • Cumulative amount caps: agent.WithCaps now accepts sum N CUR per run|hour|day [by key] -> refuse (a tool that carries one reserves each call's amount in a cap ledger, a reserved journal run under @cap/, after its attempt is claimed and before the tool begins, and the call that would take the window over its limit is refused as a known failure the model reads, with the tool not called), and agent.WithCapNamespace names the deployment's ledgers (default default). A store that cannot be read or written fails the call before the tool is begun, so a cap is fail closed; an amount of zero reserves nothing; a negative, absent or unparseable amount, a missing key, or a key with a byte outside ASCII is refused. A call that may have run stays counted, so a window only over-counts. The loop releases the slot of a not-retry-safe call it proved never began (it seals the call's began word first, and releases before it records the attempt as not started), and Recover and RecoverLoop release the slot of an attempt recorded as not started; a call that began, an Idempotent call, a ResolveHalted call and a saga's rollback are never released. -> gate is still refused at registration. See the amount caps guide.
  • Per-call amount caps: agent.WithCaps(lines...) declares rules on a tool (name: tools.argument[minor, currency=member] > 500 USD -> refuse), and ToolSpec carries Caps for a tool that builds its own spec. The rules are checked against the tool's input schema when the tool is registered (an argument the schema lacks, one that is an array, object or boolean, a currency member that is not a string, a limit above 2^53 minor units, a rule with -> gate or -> gate(name), which arrives with the escalation gate, and a cumulative sum rule, which needs the cap ledger, are ErrConfig and "not yet supported"), and every call is decided twice: on the arguments the model sent, before any gate or claim, where a refused call is answered with a tool error that names the rule and gives no figure, and again on the arguments the tool will receive after any tool middleware, where a call a middleware pushed over the limit is refused before the call begins. An amount that cannot be read with certainty (negative, absent, an exponent form, too many fraction digits, or arguments with a repeated or case-variant member) gets the rule's action, and a currency no rule covers gets the strictest action among the argument's rules, compared byte for byte; no float is used. The reasons are recorded in gate-reason:<call>, which can add a requirement and never remove one. A tool that carries caps cannot be a plan flow block: plan.Registry.RegisterTool and Builder.Tool return ErrConfig. See amount caps and the limits in KNOWN-LIMITATIONS.md (array shapes, no conversion, no totals). Break risk: none for existing code; the new ToolSpec field is nil for a tool that does not use it.
  • Reserved names for the cap and taint work that follows, and agent.ErrToolUseIDInvalid. Run IDs that start with @cap/ are reserved for cap ledger runs: Run, Stream, RunTyped and Session return ErrConfig for one (Run, Stream and RunTyped already did for @stop; Session still accepts that id), as do the exported calls that write records to a run you name (Approve, SubmitDecision, Cancel, ResolveHalt, AnswerInterrupt, Signal, Enqueue, Ack, ClaimAttempt, Step, Parallel, Lease and the audit.Record* writers; reads such as History and Status are not refused, and these calls keep their existing behaviour for @stop), and agent.IsReservedRun (the stop control run or a cap ledger) and agent.IsCapRun report them; Recover, RecoverLoop, the notification sweep and its backfill, the run viewer, bide approve -list, bide audit notifications and bide audit redactions skip such a run. Step names that start with slot:, cap-intent:, cap-reserve:, gate-reason: or taint/ are reserved as well (Step, Parallel and ResolveHalt return ErrConfig, IsReservedStepName reports them, and redaction treats them as protected). A live model turn whose tool-use ID holds # now fails with ErrToolUseIDInvalid, which wraps ErrModel and ErrProtocol (so middleware.Retry and middleware.Retryable retry it, and the rejected turn is not journaled); resuming a journal that already holds such an ID does not re-check it, but agent.Replay used as the model of a new run treats the recorded turns as live and fails with ErrToolUseIDInvalid on a recorded # ID. Break risk: a deployment that already runs a run ID under @cap/ can no longer start it, and the existing run is no longer recovered, listed by the viewer or bide approve -list, or read by the audit verbs, so a gate waiting in it would not be shown to an approver; rename such a run before upgrading. A Step or Parallel task named with one of these step prefixes in a run that resumes fails with ErrConfig, and a model server that sends # in a tool-use ID fails every turn that calls a tool.
  • Untrusted-content marks (experimental, part of the design in docs/design/untrusted-content-and-amount-caps.md): agent.Untrusted(source) declares that a tool's results are untrusted content, and the engine records the source with every result (Safety.Untrusted of the result record, including denials, errors and a saga's failure record); agent.WithUntrustedInput and agent.WithTrustedInput state the provenance of a run's input in run:start's settings, and a later drive that passes another is ErrConfig; agent.RetrievalUntrusted marks a retrieval layer's step; agent.TaintExempt(reason) is a Go-only exemption declaration. Marks are recorded with or without a taint policy and gate nothing yet. A tool that embeds or unwraps an Untrusted tool and does not carry the declaration is refused at registration (as for an approval gate, a timeout or caps), Step refuses a Safety that names an untrusted source, and a tool that declares Untrusted or TaintExempt is refused as a plan flow node until flows have a taint rule. Records without marks are byte for byte as before; older binaries ignore the new members.

Changed ​

  • CI: a push to main that is one commit changing only documentation or the changelog now skips the Go test jobs, as a pull request does (Lint, the docs checks and the changelog check still run, and the CI run still completes with success, so the release script's gates read it as before; the release script now checks the push run of the nearest commit at or below the release commit that changes code, so a documentation commit on a red code commit cannot be tagged). The commit is diffed against the push's before SHA; a push of several commits, a force push or a first push runs everything.
  • CI: Test (windows-latest) is now skipped on every run that changes no code, not only on a pull request: a documentation-only push to main (and a documentation-only merge queue batch) no longer starts the Windows job that the Go jobs' skip was meant to save. The decision moved into .github/scripts/windows-decide.sh, whose self-test runs in CI and covers each event and a failed diff. A skipped job still satisfies the required check, and any doubt still runs it.
  • CI: Test (windows-latest) now also runs on a pull request that changes a test file, testdata or a golden file, .gitattributes, a file that is not Go or documentation (go.mod, scripts, workflows), or a Go file named *_windows.go, with a go:build line naming windows or negating a constraint (!linux, !unix), or importing runtime, os, path, path/filepath, io/fs, syscall, mime, encoding or golang.org/x/sys, so Windows-only failures (line endings, MIME types, file identity, signals) show before the merge queue. Any other pull request still skips it, which satisfies the required check; the merge queue and main run it on every change as before.

Fixed ​

  • bide edit: an assert line the grammar cannot read is now judged to name a node by one rule, whatever punctuation surrounds the name. The name counts when it stands in the line as a whole word or span, with a space, any punctuation or any symbol (not a letter, digit or combining mark) on each side, so [audit], audit-, audit/x, *audit*, _audit_, audit|, a curly apostrophe or guillemets all name audit, audits and audit2 do not, and a node name with spaces or punctuation is found as written. Removing or renaming a node such a line names is refused and names the line to fix first. The guide now says the refusal is a convenience and not a safety boundary: an unreadable line is never an assertion the check reads and stays reported as an error.
  • bide edit: removing a node no longer leaves assert lines that name it behind to report as broken. The removal dialog (the remove_node dry run) now lists the assertions that name the node, and the confirmed removal takes them with the edges and arms, so the confirmation covers exactly what goes. Removing an assertion is a weakening, so the weakened banner names each removed line and the save dialog asks for the weakening confirmation as for any removed assertion; Undo restores the node, its wiring and its assertions. An assert line the grammar cannot read is never guessed at: if one of its words (punctuation trimmed) is the node's name, the removal is refused and says which line to fix or remove first, the same rule a rename follows; a line with no such word is left alone.
  • bide edit: renaming a gated node no longer reads as a weakening when it is combined with another change to that node. The editor now keeps the renames made in the editing session (old name to new name, in order; an Undo takes a rename back with its step) and compares the text with the baseline read as if those renames had been made in it, so the renamed node is matched to its baseline self, while a rename together with a lowered need, a lowered safety, a removed gate or a removed assert line is still reported, and a rename onto a name the baseline holds for a different node is not honoured. The page sends the list with each request and the verdict names the renames it matched (new exported API in flowedit: Rename, CompareRenamed, Weakening.Renamed, and Edited.Renames); the saved file and bide check -diff are unchanged (the classifier already paired a node renamed with the same block, kind and edges, so a pure rename was not reported by either; the guide and KNOWN-LIMITATIONS.md said it was, and now say what is true: CI cannot know a rename and still reports one made beside another change to that node).
  • Three paths no longer panic under GODEBUG=fips140=only: importing govern/redislog (go-redis hashed its script with SHA-1 in package init; the script now uses NewScriptServerSHA, so Redis computes the digest and an append still works after SCRIPT FLUSH, a restart or a Redis that refuses SCRIPT), verifying an RFC 3161 token that carries a SHA-1 signingCertificate attribute (DigiCert's tokens do; the consistency comparison now runs with enforcement off and is still made), and a webhook secret shorter than 14 bytes (under that mode notify.NewWebhook returns agent.ErrConfig wrapping the new notify.ErrShortSecret, a delivery that a secret cannot sign is not sent, notify.Verify and notify.VerifyBody return it, notify.Sign leaves the secret out, notify.CheckSecret is the rule, and relay.New and the bide notify verbs refuse the secret at start; other deployments are unchanged, and 32 bytes or more is recommended). Correction: the documentation said FIPS mode and ML-DSA are mutually exclusive; that holds only for Go's FIPS 140-3 module v1.0.0 (crypto/mldsa is unavailable there) and not for v1.26.0 and later, where ML-DSA and hybrid signing work under GODEBUG=fips140=only. bide makes no claim of FIPS validation.

Security ​

  • A tool that wraps another through Unwrap and does not carry an Untrusted declaration of the wrapped tool (the option, or a source in Safety) is now refused at registration with ErrConfig, as one that weakens the wrapped tool's approval gate, timeout or cap rules is (#508). Before, a wrapper that held the inner tool in a named field and wrote its own Spec registered with the declaration gone. A wrapper that neither embeds the inner tool nor implements Unwrap is still not seen.
  • agent.New, With and the plan registry's RegisterTool now refuse, with ErrConfig, a tool wrapper (a tool with an Unwrap() Tool method) whose own Spec weakens the approval gate, the Timeout or the cap rules (Caps) of a tool on its Unwrap chain, however it holds that tool (a named field was not seen before: the outer Spec won, so a gate the wrapped tool declared silently did not apply). Weaker means no gate, fewer decisions needed, a SingleApproval over an m-of-n gate, an approver the wrapped gate does not name, no ExcludePrincipal where the wrapped gate has it, no gate deadline or a longer one, for the tool's Timeout none or a longer one, and for Caps a rule line the wrapped tool has that the wrapper does not carry word for word. This changes behaviour for a wrapper that dropped or loosened a declaration: declare the same on the wrapper, or build its spec from the wrapped tool's. Not checked through the chain: Safety (a wrapper may legitimately raise it, so the rule needs a design decision; until then not declaring a weaker Safety than the wrapped tool is the wrapper author's duty, as a ReadOnly claim over a side-effecting tool loses at-most-once protection), and Untrusted is checked by its own entry. Also fixed: a wrapper whose Unwrap returns a typed nil pointer no longer panics registration or sub-agent lookup; it ends the chain.

0.22.0 - 2026-10-21 ​

Added ​

  • bide-anchor reads the Google Cloud Storage anchor with -backend gcs, taking -project (the project number) in place of -owner: verify and export work offline on a downloaded copy, and check and export read the bucket with read-only credentials, with the same exit codes as for S3 (1 for a finding, including a generation that vanished between the listing and the read, 3 when the audit could not finish, never 0 after an aborted audit). anchor/gcs gains the ErrWrongProject sentinel for a bucket another project owns (it is still an agent.ErrConfig error), which the command reports as a finding. With -backend gcs, -kms-key and -retention state the key and retention the anchor was configured with, so a bucket whose default key was swapped or whose locked retention is shorter is a finding (the S3 backend refuses the flags, since its reader checks neither). The command module now requires anchor/gcs, and a test checks the S3 and GCS object layouts cannot take each other's objects.
  • bide check, bide view -config and bide check -diff take -blocks <file> (a block it holds that the config does not use is not reported; with -diff, -old-blocks describes the earlier version, which otherwise is checked structurally) (and -old-blocks <file> with -diff): a description of the program's registered blocks, written with json.Marshal of plan.Registry.Describe(). The check then covers block, predicate and merge names, types, safety, the approval gates blocks declare in Go and the digest, and a block swapped for one that declares no gate is reported as a weakening. The result is labelled as per the description file, not checked against the program.
  • bide edit can add, remove and rename a node and write the entry (the first step of the editor's structure phase). Each is a verified splice like the gate and safety forms: the result is checked against the data the operation should produce, computed from the operation alone. A rename rewrites the node's name in the entry, edges, switches, arms, else, join inputs and assert lines (the last through the assertion grammar, refusing a line it cannot rewrite), and a rename of a gated node reads as weakened because the gate comparison follows names. A removal first lists what else goes (the edges, arms and comments that name the node) and is refused unless the same list is confirmed; assert lines naming the node are left in place for the check to report. The editor never changes the entry node without being asked: removing the entry, or the first node of a config with no entry key, is refused with a pointer to set_entry. The API gains the operations add_node, remove_node, rename_node and set_entry, and Operation.DryRun, Operation.Confirm and Applied.Cascade.
  • bide edit can add an edge by dragging from the small circle at a node's right edge in the flow onto another node (the last step of the editor's structure phase). It sends the same add_edge operation the inspector's Connections form does, so it has the same refusals, verification and weakened banner, and it is an extra: the circle is hidden from assistive technology and not in the Tab order, every connection can be made and removed from the inspector by keyboard, and dropping on the same node, on nothing or pressing Escape cancels with no change (as does losing the pointer or a redraw mid-drag). It works with a mouse, a pen or a finger (the touch target is at least 44 px, and a touch elsewhere on the flow still scrolls the page). The layout stays derived from the topology; nothing about where a node is drawn is stored.
  • bide edit can set an arm's loop bound and add, change and remove joins (the fourth step of the editor's structure phase). A loop bound is a number above 0 on a switch arm (0 removes it); a join is added from a disclosure under the outline (a name, a merge block and its inputs) and edited on its own inspector: the merge block, the inputs in order (add, move, remove), the same safety and approval gate forms a node has (written on the join's wiring element), and edges out of it. Removing a join lists what goes with it (the edges out of it, a switch on it, its comments) and needs that list confirmed, as removing a node does, and a node that is an input of a join is still not removed. The editor checks what the config says (an input is a declared node or join, named once, not the join itself); it cannot check that a merge block is registered or that its arity and types fit the inputs, which plan.Load does with the registry. New joins are written as inputs: [a, b] where the file has none to copy. The keyboard test no longer walks the whole page to the assertion form: it uses the skip links. The API gains the operations add_join, remove_join, set_join_inputs, set_join_merge and set_loop_max, Operation.Inputs and Operation.Max, and set_safety, set_approval and clear_approval accept a join's name.
  • bide edit can reorder nodes and wiring elements and set the flow's name and its in and out type names (the second step of the editor's structure phase). A move exchanges two neighbouring list items as one splice (new engine operation Swap): each item keeps its own text, the comments directly above it and its trailing comment byte for byte, and whatever lies between them stays; the result is checked independently of the splice (the data with the two items exchanged, the same lines in another order, every line outside the pair where it was, each item with the comments it had), and moving back restores the exact bytes. A move into or out of the first place is refused when the config has no entry key, since the first node is then the entry; write the entry first. The wiring list is one Tab stop with a single Move pair for the selected element, and the flow settings are a closed disclosure, so the page does not cost a Tab stop per element. The API gains the operations move_node, move_wiring, set_flow, set_in and set_out, and View.In and View.Out.
  • bide edit -blocks <file> and flowedit.WithRegistry / flowedit.WithBlocks make the flow editor typed. The editor then checks the config as Load does (by type name for a description file, labelled as not checked against the program), refuses an operation that connects what does not fit, adds the approval gate and safety a block declares in Go to the weakened banner without ever saying less than the structural check (so changing a block to one with no gate reads as the gate removed, and the structural "possibly" stays), and shows the digest, a palette of the program's blocks (a search, a filter for what fits the selected node, one Tab stop) and each node's types on the page; a connection by form, by drag or from the palette that does not fit is refused with plan's words, a target whose types differ is marked, and a text with errors against the blocks shows a NOT CERTIFIED banner. A port's drag handle no longer reaches over a neighbouring node in a dense or scaled-down flow.
  • bide edit can add and remove edges, make a node a switch and remove the switch, and add, change, move and remove arms and set the else (the third step of the editor's structure phase), from the inspector's Connections section. Targets are chosen from the declared nodes; the editor refuses what plan.Load refuses (an edge or arm to an undeclared node, an edge into a join, an edge from a switched node, a switch on a node with an edge out, a self edge, a duplicate edge or arm, a switch with no arm: the only arm is removed with the switch). A new edge or arm that reaches a gated node by another way shows the weakened banner, from the same classifier as bide check -diff. New wiring is written in the style of the file, and as edge: [a, b] and when: [{pred: p, to: t}] where the file has none to copy; a plain scalar with a quote character inside a flow list is now written quoted, so the engine can edit its own output. The API gains the operations add_edge, remove_edge, add_switch, remove_switch, add_arm, remove_arm, set_arm, move_arm and set_else, Operation.Pred and Operation.To, and View.Wires.
  • plan.AllowUnusedBlocks(), an option for plan.InspectConfig and plan.InspectConfigDescribed (both now take ...InspectOption): a registered block the config does not use is no problem. Without it such a block is an error and the report has no kinds, types, safety or digest for the flow, because the check stops before it builds anything. Load and Validate still refuse an unused block. It is for tools that list the blocks a config could use, such as the flow editor's palette. Source-compatible, except for code that stores InspectConfig or InspectConfigDescribed in a variable of func type. Experimental for InspectConfigDescribed.
  • plan.InspectConfigDescribed checks a flow config against a RegistryDescription instead of a Registry, with the same code InspectConfig runs: blocks, predicates, merges, types, safety, approval gates and the digest are checked without the program that registered them. RegistryDescription.Validate reports why a description read from a file is not one this release reads. Types are told apart by name only, so two distinct types spelled the same are one type, and messages write a type with its package path. Experimental: may change in any 0.x release.
  • plan.ConfigReport has a new Findings list: for each error in Problems, a plan.Finding with a Kind (plan.ProblemEdgeTypes, ProblemArmTypes, ProblemJoinInputTypes, ProblemTerminalTypes, ProblemSafetyAboveRegistration, the loop kinds ProblemLoopNoExitArm, ProblemLoopMoreThanOneBackArm, ProblemLoopHeadNotAncestor, ProblemLoopBodyNotSimple, ProblemLoopInnerSwitch, ProblemLoopEdgeLeaves, ProblemLoopEdgeEnters, or ProblemOther), the full names it is about, Got and Want where the kind has them, and the message. A tool tells problems apart by kind and names instead of reading messages, which shorten long names and name a wiring element by its position. Findings are complete (not capped at the first hundred type problems), are found beside any other error, and every error has exactly one; ConfigProblem is unchanged. A kind's name, names order and Got and Want formats are stable in 0.x, kinds may be added, and other may become a specific kind in any release, so treat it like an unknown kind. See the plan flows guide (Findings). bide edit now reads findings instead of internal records. Findings are in the Go API only: bide check and the JSON of the viewer and editor pages do not carry them. The errors of Load and Validate carry no kinds; call InspectConfig or InspectConfigDescribed for them. The node, edge or arm of a problem is set where the problem is made, no longer read from its message, so a node whose name holds the message's punctuation is attributed exactly.
  • Registry.Describe returns a RegistryDescription of what a Registry has registered: each block's name, kind, input and output type names, declared safety and approval gate, each predicate's switched type, each merge's input types, and any registration errors. It is data only (no functions or reflect values), sorted by name, and is the first part of the visual editor's typed mode. Experimental: it may change in any 0.x release.
  • The theme file format for bide's visual pages and bide theme check: a theme is a small JSON file of typed values (colours as #rgb or #rrggbb, fonts from a fixed list, numbers in ranges) that names a shipped base and overrides some of it, with strict keys (an unknown, repeated or differently cased key is an error). bide theme check parses a file and measures the resolved theme: WCAG text contrast 4.5:1 and non-text contrast 3:1 (the focus ring and the control edge on the page, a panel, a nested panel and the graph canvas, and the focus ring also on a node's fill and the selected item's tint), CIEDE2000 distance between the status colours (ok, warning, alert, info at least 20; the gated, side-effect, idempotent and idle colours at least 10 from every other), a colour-blindness check (a warning for your theme; the shipped themes must pass it), and a polarity check (alert warm and nearer red than warning, ok not). It exits 1 on a theme that fails. See docs/guides/themes.md and docs/design/themes.md.
  • bide edit draws from the checked themes, as bide view does. It takes -theme file.json (a custom theme that must pass bide theme check, refused before anything is served if it does not) and -theme-default name, its Theme button steps through light, dark, high-contrast and your theme (naming the next one and announcing the change to a screen reader), a reader whose system asks for more contrast gets high-contrast and one whose system forces colors gets the system's colors, and a program that embeds the editor can lock it to one theme (flowedit.WithThemeLock), which hides the button. The page's own colors now follow the contrast rules: the primary button's text is the theme's on_accent color, the edges of buttons, inputs and the source box use border_strong (3:1 against what they sit on, where the old 1.4:1 hairline did not reach it), every text control, wherever a form puts it, takes the theme's surface and edge, the dialog dims the page with a shadow of the theme's scrim color around it (it needs no support for custom properties in ::backdrop), its box keeps the theme's elevation and a border_strong edge and scrolls inside the screen when its content is tall (forced colors drop shadows, so there it keeps its border and does not dim), and the selected node in the graph is drawn with a 7 px ring in the focus color over its state (its fill and dashes still tell the state; before, a selected gated node was not marked in the graph at all). The Editor (Chrome) job now measures these colors in every shipped theme and system mode, and runs axe-core in high-contrast as well as light and dark.
  • A Go program can choose the themes of the pages it embeds. The theme package (github.com/bide-ai/bide/theme, 0.x API; it was internal) parses and checks a theme file as bide theme check does (Parse, Load, Check, Report, Shipped, Lookup), and planview.Handler, planview.DiffHandler and flowedit.New take planview.WithThemes, WithDefaultTheme and WithThemeLock (the same three in flowedit): extra themes beside light, dark and high-contrast, the theme a reader starts in, and a lock that makes one theme the only one (no switch, no remembered choice). A host passes only values that passed the checks: it cannot give CSS or a selector, the stylesheet generators are not exported, and a reader whose system asks for more contrast or forces colors still gets those over a default and over a lock (a Chrome test holds both). Upgrading: planview.Handler and planview.DiffHandler now end in a variadic opts ...Option, so a call is unchanged but code that holds either function as a value of the old func type (a struct field, a variable, an interface method) no longer compiles; wrap the call in a closure. A bad set of themes (a nil or foreign theme, a repeated name, an unknown default or lock) panics when planview builds the handler and makes flowedit.New return an error. Measure has a String method, the line bide theme check prints for a measure.

Changed ​

  • The awss3 Reader now audits the bucket itself: Audit reads its versioning, Object Lock configuration and default encryption and reports a finding for versioning that is not enabled, Object Lock off, a missing default retention or one under 24 hours, and, through the new ReaderConfig.KMSKeyID, Retention and Mode expectations, a default retention shorter than configured, a default mode weaker than configured, a default encryption that is not the expected KMS key, and an object that is not encrypted with it or is retained for less than the expected retention from its own write; bide-anchor -backend s3 takes the same as -kms-key, -retention and -lock-mode (a KMS alias is refused as the expected key, since S3 reports the key an alias resolves to and the check would match any key: pass the key ARN). The shipped reader policy gains exactly the three read actions this needs (s3:GetBucketVersioning, s3:GetBucketObjectLockConfiguration, s3:GetEncryptionConfiguration), so a reader whose policy lacks them now gets an access error on the bucket read, and bide-anchor check exits 3 (state unknown) instead of passing: add the actions to the reader role.
  • awss3.New now accepts only a key ID (a lower-case UUID), a multi-Region key ID (mrk- and 32 lower-case hex digits) or a key ARN as Config.KMSKeyID, and refuses everything else, an alias (alias/name or an alias ARN) above all, with an error wrapping agent.ErrConfig, because S3 reports the ARN of the key an alias resolves to and the read-back that checks each head's key could not tell which key it was: an alias used to match any key. Upgrading: a deployment configured with an alias must switch Config.KMSKeyID to the key ARN, or New refuses to start with the error awss3: Config.KMSKeyID: KMS key must be a key ID or key ARN (got "alias/..."): a lower-case UUID, mrk- and 32 lower-case hex digits, or arn:<partition>:kms:<region>:<account>:key/<one of those>, with no spaces or other characters; for an alias, pass the ARN of the key it points to: config, which you can search your logs for; an upper-case key ID, a key ID with a leading or trailing space and any other string that is not one of those forms are refused the same way (a key ID or key ARN in the forms above works as before). The Reader (ReaderConfig.KMSKeyID) and bide-anchor -kms-key apply the same allow-check. The key is an AWS KMS key, so a deployment on an S3-compatible server that was configured with a key name of that server (MinIO with a KES key, say) must switch to Config.EncryptionNone, which means the anchor does not check which key encrypts the heads.
  • The flow editor guide now shows typed mode (the Blocks region, the typed tag and the digest, the NOT CERTIFIED banner and the save dialog with its two confirmation boxes) and the themes guide shows one page in light, dark, high-contrast and a custom theme. scripts/shots.sh regenerates them, and the approve page images, in its default run.
  • bide edit's Undo and Redo are now tested over every kind of structure edit (the last step of the editor's structure phase before drag to connect): a node added, renamed and moved, an edge, a switch, a loop bound, a join, the flow's name and a gate removed. A Chrome test walks the history back to the file's exact text one step at a time, checks that the weakened banner follows each text (the server computes it again for every step), walks it forward again, and checks that the history survives a save (Undo past a save says unsaved changes, and Redo back to the saved text says saved). The behaviour is unchanged from phase 1; the guide says what it covers.
  • gcs.LoadDir now uses the directory loader shared in audit/anchorobj (Layout.LoadDir) instead of its own copy: no change in behaviour (an empty directory, equivocation in one partition, a stray file, a symbolic link and an oversized file are still errors), and, as awss3.LoadDir already does, a path that is not a directory is an error wrapping ErrObject.
  • The Google Cloud Storage real-run runbook and known limitations now record the teardown of the 2026-10-17 run: a delete after the retention ends goes through soft delete (the objects stay listed for the soft delete period), a bucket whose objects are only soft-deleted can be deleted, the Cloud Storage lien on project deletion is not removed when the bucket is deleted and has to be removed by hand before the project can be deleted, and the key version is destroyed after its 30-day delay while the key and key ring remain.
  • plan.LoadReader reads at most 16 MiB and refuses a larger config with an error wrapping agent.ErrConfig, without reading past the byte that shows it is too large. It used to read its reader to the end however long that was, so a reader that never ended (an HTTP body, a pipe) filled memory. No real config is near the limit; to load a larger one, read it yourself and call plan.Load. The viewer's config readers (bide view -config, -diff, and the checks that share them) apply the same 16 MiB limit to a flow config file or a -diff git revision; they allowed 256 MiB before. bide edit already refuses a config over 1 MiB. A -diff git revision is read up to the limit and git show is stopped there, rather than buffered whole before the size check; a named pipe given as a config file is refused instead of blocking.
  • A config approval block on a node whose registered block already declares an approval gate is now reported as one problem that says how to fix it (keep one, by removing approval from the config or the gate from the block) by Load, Validate and InspectConfig, and Build words a plan.Approval on a Tool with its own gate the same way; before, InspectConfig listed two problems for the one cause, neither with a remedy. The cause was that InspectConfig split an error's text at "; ", so any problem whose text held "; " (a node named "a; b", or a message with one in it) was cut in two and attached to no node: assemble, Build and the graph checks now carry their problems as a list that InspectConfig reads part by part, and the "; " workarounds in the loop and wiring checks are gone. The text of the errors Load and Validate return is unchanged, and the problems bide check and the viewer show that held "; " (such as "is fed by [...]; combine several producers with a Join") now keep Build's own wording instead of a comma rewrite, so they match Load's.
  • plan's config reading (plan.Load, Validate, InspectConfig, and so bide check, bide view -config and bide edit) now refuses an identifier that holds a character that does not print: a control character, an invisible or direction-changing one (a zero-width space or joiner, a soft hyphen, the byte order mark, a bidirectional override such as U+202E), a space other than a plain one, a private-use or unassigned code point, any character with the Unicode property Default_Ignorable_Code_Point (the Hangul and Khmer fillers, the grapheme joiner, the Mongolian selectors, every variation selector, the zero-width joiner and non-joiner) or the Braille blank, a combining mark with nothing before it, or a space at either end. This also refuses some legitimate text, on purpose, because two names that differ only by an invisible character read the same and one can impersonate the other: a word spelled with a zero-width non-joiner (Persian, Urdu), an Indic conjunct spelled with a zero-width joiner, an emoji joined sequence (a family, a rainbow flag; a country flag, two regional indicators, is accepted), an emoji with a variation selector (a red heart), and a left-to-right or right-to-left mark. Transliterate the name or spell it without the joiner or selector. It applies to the flow name, entry, in and out, node names and blocks, every reference in edges, switches, arms and else, join names, inputs and merges, and the assert lines (whose words may still be separated by any whitespace). Such a name could read as another in a diff or a review, and was accepted and drawn as written. The error wraps agent.ErrConfig and names the field and the character written out, for example nodes[2].name "ch\u{202E}gra" holds a character that does not print (U+202E). As a second line of defence bide check, bide check -diff, bide view, every page it serves and its error messages write any such character that reaches them (a file name, a journal's topology, a step or predicate name) as \u{XXXX}; its JSON endpoints and the other commands are not filtered. Upgrading: a config with such a name now fails to load with that error, which you can search your logs for; rename the node (or fix the block, flow or reference) to a name of printing characters and a plain space, everywhere the config uses it (edges, arms, assert lines). Renaming a node changes the topology digest, so a run paused under the old flow does not resume under the renamed one.
  • The approve page draws from the shipped themes, inside its pinned bundle: light and dark by the system's color scheme, high-contrast when the system asks for more contrast (prefers-contrast: more), and the system's colors under forced colors, instead of two hand-written palettes that never saw a contrast check. The page takes no theme from a script, a URL, config.json or its host (a test holds that, and another holds the bundle's hashes in a committed golden, so a later change to a shipped theme is a visible change to the signed bundle). Text is 4.5:1, a control's edge 3:1, a disabled button has a dashed edge as well as its color, and the focus ring is drawn. REJECT now differs from Approve in shape (a heavy double edge against a thin solid one), in every mode: before this release the two differed by color and by their words only, and under forced colors, where both take the system's button colors, by their words alone. Upgrading: the approve page's SHA256SUMS and the Subresource Integrity hash in its index.html change in this release. Anyone who pins the approve page by hash, or hosts it on their own origin, must update the pin from this release's signed approve-page.SHA256SUMS (verify it as before) and redeploy the new bundle; a copy built earlier no longer matches. app.css is about 5 KB larger (1.5 KB to 6.9 KB); the script, the protocol and the page's behaviour are unchanged.
  • States that bide view's graph and lists told apart by color alone now differ in shape or words as well, so they stay apart in greyscale, in forced colors and for a color-blind reader: a changed edge in the diff is dash-dot (an added one stays solid, a removed one a longer dash), a counterexample path is a heavy dotted line (the path taken stays a dash), a problem edge is a short dash, a warning node has a dashed box and a diamond mark where a problem has a circle, a row added by live mode carries a "new" badge, the run list's keyboard row has a marker and aria-current, and a stat's colored number has a glyph (check, cross, bang) on its label. A test now fails when two of these differ by color alone. A test in real Chrome (the Viewer (Chrome) job) draws each of these states from the real pages and fails if the browser computes two of them as the same line, and a fast static test guards the stylesheet text.
  • bide view answers the system's accessibility settings. A reader whose system asks for more contrast (prefers-contrast: more) gets the high-contrast theme (black on white, 7:1 text), over a dark system setting and over -theme-default, unless they chose a theme in the page; when the system forces colors (forced-colors: active) the system's colors win over every theme, and the graph tells the run states apart by the shape of each node's box (thin solid done, dashes attempted, dash-dot waiting, heavy solid halted, dots not reached) as well as its glyph and words. The edge of every input, select and button now uses a new border_strong color that reaches 3:1 against its surroundings in every theme (it was a 1.4:1 hairline), and the states the pages draw in the info color (waiting for a person, the path taken, the last node, live) use a separate --info token, which has the accent's value in the shipped themes and which a theme file can set apart. The Viewer (Chrome) test now runs under all of these modes.
  • The docs now describe the finished theme work: the themes guide, the design note's status, the roadmap and the docs index say that bide view, bide edit and the approve page draw from the checked themes and that a Go program can pass themes to planview and flowedit; KNOWN-LIMITATIONS says the colour and contrast checks cover the editor too and that the manual pass with a real contrast theme, macOS Increase contrast and a screen reader is still owed, and that forced colours do not dim the editor's save dialog; the editor design note's accessibility section describes the themes, the switch, the selection ring and the dialog.
  • bide view draws from checked themes: its colours, fonts, spacing and radii come from one generated stylesheet (light, dark and a new high-contrast theme) instead of palettes written in the page's CSS, the header button and the t key step through the themes and name the current one, and bide view takes -theme file.json (a custom theme, which must pass bide theme check and is refused before anything is served if it does not) and -theme-default name. The shipped light and dark colours are retuned slightly so the status colours stay apart for a colour-blind reader and the idempotent step is no longer the same blue as a waiting gate (idempotent steps are now teal); the flow editor, which shares the viewer's stylesheet, takes the same colours.
  • The flow editor guide shows a drag to connect in progress, and scripts/shots.sh regenerates the picture (editor-structure) with the others.

Fixed ​

  • Test only: the Go tests that drive a page in Chrome through a Node script (the editor, the run viewer and the approve page) ran the script with no deadline, so a Chrome or script that stalled held the test until the whole test binary timed out (one such run hung for 564 seconds with nothing said), and the approve page's client-certificate test, at its own limit, killed Node but left the Chrome it had started running. They now run the script under a five-minute deadline, kill it together with the Chrome it started, and fail with what it had printed. No behaviour of the product changes.
  • planview.CheckDiff and planview.DiffHandler (a program's own diff check with its Registries; present since v0.15.0, reproduced on v0.21.0) passed a diff silently when a side had errors against its Registry: such a side has no gates to compare, so a gate removed by changing a block read as no change and CheckDiff returned false, where the same diff without Registries reports it. A common cause was one Registry shared by both versions that holds a block the config does not use (an error in Load). The diff is now made structurally, as without the Registry, so the weakening is reported as it would be without it; the result is labelled not certified (DiffView.Fallback), its verdict is never good, and CheckDiff returns true. Every result also says how each side was checked (DiffView.OldBasis, NewBasis). bide check -diff and bide view -config -diff pass no Registry, so they were never affected. To protect a pipeline that runs an earlier release, upgrade; until then give each version its own Registry, holding exactly the blocks that version's config uses (plan.Load requires it), so neither side has errors.
  • bide edit's list edits kept only the items at the start and the end of a list, so an edit that replaced an item in the middle or that changed both ends deleted and re-wrote the items it meant to keep: the comments above or beside a kept item were lost, and a block list turned into a flow list. This affected an approval gate's approvers list (set_approval, from the first release of the editor) and the inputs of a join (set_join_inputs, new). A list edit now keeps the longest common subsequence of the old and the new list exactly as it is, with its comments and the list's style, inserts the new items where they belong and deletes only the old items that are not in the new list; removing one approver is one deleted item and adding one is one inserted item. If you saved a gate edit made with an earlier editor, check the diff of its approvers list for comments that went missing.
  • plan.InspectConfig with a Registry no longer reports "Model step has no bound model" as an error for a config with a Model block (since v0.14.0, which added it). A check never runs the flow, so it does not need the model that Load binds. The programs affected are those that check a config against their own Registry: planview.Handler, planview.Check, planview.DiffHandler, planview.CheckDiff and direct InspectConfig callers; they showed such a config as broken, with no digest. bide check and bide view -config pass no Registry and were not affected.
  • bide check, bide view -config and plan.InspectConfig without a Registry now make every check plan.Load and plan.Build make on the wiring alone, so a config that bide check passed could not still fail to load for a reason that needs no Go code. New: a cycle that is not a loop, a node not reached from the entry (worded so it reads as work in progress: a node you have declared and not wired in yet is a config that will not load), a node fed by several producers without a join, join inputs on mutually exclusive arms of a switch or that a switch can skip, and the shape of a loop's body (no inner switch or nested loop, no edge leaving or entering it past its head, no node between the head and the switch that is not on the loop path). They are Build's own checks run over a spec with no types, in Build's order; with a Registry nothing changes (Build makes them itself, after the type checks). Upgrading: a config with one of these now fails bide check, and the editor shows it as a config error until it is wired. The examples had one: examples/plan/flows/refund-policy-bypass.yaml, the policy-bypass demo that the run viewer guide, bide sample (flows/refund-bypass.yaml) and bide check -diff use, routed a vip arm straight to charge, which made charge fed by two producers, a config plan.Load has always refused; the earlier bypass example was a config Load refuses; it is now one that loads, with the bypass routed to an ungated node: the vip arm reaches a second charge step (charge_vip, block charge), so the violated assertion is now "every path to charge_vip passes approval >= 2 of 3" with the counterexample validate -> lookup -> charge_vip. A bypass of a gate on the same step cannot be a loading config, because a step with several producers needs a join.
  • bide check, bide view -config and plan.InspectConfig without a Registry (the structural check) now report these things that plan.Load already refused and the structural check showed no error for, so a config that bide check passed could still fail to load: an edge that leaves a join, or a switch that is over a join, before the join's wiring element (a join is registered when its element is reached); an edge, an arm or an else into a join (a join is entered only by its inputs); a node that is switched over and has an edge out; two switches over one node; a join that reads a join defined after it in the wiring (Load registers a join when it reaches its wiring element, so the input is unknown; this includes a join that reads itself and a cycle of joins), a switch with more than one loop-back arm (an arm with loop_max above 0), a loop with no exit arm (no other arm and no else), and a loop-back arm whose target is not an ancestor of the switch in the forward graph (the edges, a join's inputs and the arms that do not loop back). Each is an error naming the wiring element. A config that bide check passed and Load refused for one of these now fails bide check too; fix it by defining the input join first, or by pointing the loop arm back at an earlier node of the loop. The rest of the wiring checks that Build makes, and the ones this list left out (a cycle that is not a loop, a node not reached from the entry, a node fed by several producers, the shape of a loop's body), are reported by the same check too since the structural check was completed later in this release; what a clean bide check still cannot show is what needs the program's Go side (names, types, gates a block declares), which -blocks covers.
  • A named pipe given where bide expects a file no longer hangs it: bide view (-sth, -evidence, -approver-keys, -stop-policy, -pubkey as a file), bide edit (a config swapped for a pipe after its check), bide approve (-item, -approver-keys, -cert, -log-key, -verify-receipt, -tls-ca), bide stop -stop-policy, bide notify (-secret-file, -previous-secret-file, -client-ca, -cert and -key, -ca), the webhook notifier's client certificate, key and server CA files, bide approve -tls-ca, -client-cert and -client-key, bide journal redact (-pubkey, the JSON and signed-head files they read), bide identity and the identity preflight (-policy, -params, -expect, certificate chains, the files a policy names) and bide-anchor -pubkey open the file without waiting for a writer and refuse anything but a regular file, with the reason; a directory is refused the same way. Upgrading: these flags no longer accept a path that names a named pipe, a device or any other file that is not a regular file. A process substitution (-pubkey <(vault read ...)) still works on unix, as does /dev/stdin and a /dev/fd/N path (/proc/self/fd/N on Linux): the form is matched as written, so a symbolic link to one is refused, and the stream is read up to the flag's size limit. /dev/stdin is standard input and is owned like -. A flag that carries a secret or a policy also takes - for standard input, and one flag only can read it in a run (a second is refused, naming both): -pubkey (bide view, bide journal redact, bide-anchor), -sth, -evidence, -approver-keys and -stop-policy (bide view), -stop-policy (bide stop), -item, -approver-keys and -log-key (bide approve), and -secret-file and -previous-secret-file (bide notify); bide approve needs -yes with any of them, since the confirmation would read standard input too. A file named - is written ./-. Files that had no size limit now have one, and a file over it is refused with a message naming the flag and the limit: 1 MiB for -pubkey (bide view, bide journal redact, bide-anchor) and -log-key; 16 MiB for -verify-receipt, -tls-ca, -client-cert, -client-key, the bide notify secret, CA, certificate and key files, -params (bide identity and the preflight), -policy and the files a policy names, -expect, and bide journal redact's -sth and -authorization; and the signed-heads log (-head-out, bide journal redact) has no total limit, which would stop a log that only grows: it is read one head per line, and a head over 64 KiB is refused (the heads are held whole in memory, as before, because the redaction trail checks and signs over the full chain of prior heads: about 0.3 to 1 KiB each, so a 260 MiB log of about 650,000 heads takes a few hundred MiB). The limits already in place are unchanged (-item, -approver-keys, -stop-policy, -cert, bide view's -sth, -evidence and journals). Errors that quote text from a document are bounded: the strict JSON reader quotes a field name escaped and cut to 64 characters, the decoding errors of encoding/json that pass through it are cut to 256 (theme, plan, tool-argument and audit documents), a theme's own messages quote a bad value the same way, a plan config's problem messages shorten each quoted name to 64 characters (the words around the names are kept) and plan.Load's error is cut to 8 KiB, so a name or value as long as the file no longer makes a message as long as the file; a short name is still quoted whole, to help find the mistake. The library readers (theme.Load and the like) read regular files only, so what an error quotes comes from a file the caller could already read. Other messages of the audit and agent packages that quote verified fields are not cut.
  • Test only: TestNewTombstone_ReadsBack built its changed-hash case by replacing the first two hex digits of the leaf hash with "00", which changed nothing when the hash already began with "00" (about one run in 256, since the record carries the time it was made), so the test failed at random. It now flips the first byte.
  • Before release, bide edit against a Registry or a blocks description let an edit through that added a second problem of a kind the text already had: the config check (plan.InspectConfig, plan.InspectConfigDescribed) reported only the first type misfit, and the first of each wiring problem (a loop's shape, a node not reached from the entry, a join's routes), so the typed editor, which refuses an edit that adds a type problem or a loop-shape error by comparing the problems before and after, saw nothing new when a second one appeared. The check now reports every one of them: every edge, switch arm, join input and terminal whose types do not fit, up to 100 with a final line saying how many more there are, and every refusal of the wiring checks. plan.Load and plan.Validate list all the type problems in their error instead of the first. bide check and the viewer show the longer lists. Where there are several problems the first still leads, so a message or an error that began with it still does; plan.Load and plan.Validate errors, which name the first problem as before, now go on to name the others after it. The editor compares the complete lists of type problems, not the first 100 a report lists, so an edit cannot hide a new problem past that cap. The refusals of plan.Load and plan.Validate (type problems and the checks Build makes) now wrap agent.ErrConfig, so errors.Is(err, agent.ErrConfig) holds for them as it does for the other config errors; their text is unchanged. The editor identifies a problem by what it is about, taken from plan as structured records (class, kind, the full names, the types or levels), not by the text it shows, which shortens long names and names a wiring element by its position: so two problems whose names differ only past the 64th character are two, names with brackets or quotes cannot be confused, and moving an element does not make an old problem new. The type problems, the unsafe safeties and the loops' shape are found even when the config has another error (an unknown name, a safety above the registered one), so that error no longer hides them, and the editor compares them all (not the 100 a report lists). A safety stated above what the block registers is refused like a type problem. Building the topological order of a flow no longer scans every node for each node it frees, which made a flow of thousands of nodes slow to check.
  • Test only: the two anchor/awss3 tests that check what a changelog entry says read CHANGELOG.md once a release has assembled the fragments, instead of skipping (the integration job fails on a skipped test).

Security ​

  • The strict JSON reader refuses a document whose structure nests more than 128 levels deep, and any document (JSON kept verbatim, such as a tool call's arguments or a tool's result in a journal record, included) that nests more than 10000, before any decoder runs, and no longer rebuilds the path to each value at every level. In v0.8.0 and later, strictjson.Check rebuilt a path string like $[0][0]... at each level, so its time and memory grew with the square of the nesting depth: 30 KB of [ took 0.8 s and 2.1 GB under encoding/json v1 (GOEXPERIMENT=nojsonv2), 100 KB took 12 s and 30 GB, and 16 KB took about 160 MB in the default build. Every reader built on it was affected: agent tool-call arguments (input the model controls) and typed answers, plan.Load, plan.Validate and plan.InspectConfig (config loading), audit.UnmarshalStrict (signed tree heads, evidence and journal exports), and the stop-policy and approval-item readers (bide stop, bide approve) and theme files. A deeper document now fails with an error naming the limit and the offset (nesting deeper than 128 levels at offset N), at constant memory. Verbatim JSON is held to 10000, encoding/json's own limit and so the deepest a journal writer can record, so an export is never unreadable for what a model or tool put in a tool call or result. The deepest document bide itself reads or writes nests 5 levels (7 in the tests), so no valid input is affected; only a document whose structure is built to be deeper than 128 levels is refused. A very large flat document still costs memory in proportion to its size, and plan.LoadReader and the audit export readers do not cap it: see KNOWN-LIMITATIONS.

0.21.0 - 2026-10-19 ​

Added ​

  • New module anchor/gcs: the second production audit.Anchor, which writes every signed tree head as an object in a Google Cloud Storage bucket whose retention policy is locked, with create-only writes, a read-back that refuses a retention, Cloud KMS key, hold or checksum weaker than configured, and a Reader that lists noncurrent generations so a deleted or overwritten newest head does not hide it, errors on two different signed heads of one size and on a well-formed head with a bad signature, and reports what it skipped. New refuses a bucket owned by another project, without a locked retention policy of at least the configured length, versioning, uniform bucket-level access, enforced public access prevention or the configured default key; the package ships least-privilege custom IAM roles (no delete, so no overwrite, and a separate hold-release identity), and builds on the new experimental audit/anchorobj. It was run once against a real bucket and is otherwise tested against an in-memory model; a locked policy cannot be undone, so read the runbook first, and a run or trail ID in an anchored head cannot be erased, so it must hold no personal data (guide).
  • New module anchor/awss3: the first production audit.Anchor, which writes every signed tree head as an object in an S3 bucket under Object Lock (compliance mode by default, governance only with AllowGovernance), reads it back and refuses a lock, retention or encryption weaker than configured, and keeps keys derived from the head so that the latest head of a trail and the head of any size are prefix listings with no mutable index; New refuses a bucket without Object Lock, versioning or a default retention, every request carries the expected bucket owner, writes are idempotent, and the package ships least-privilege IAM and bucket policies and a Reader and the bide-anchor command (verify, export, check) that verify the objects offline or with read-only credentials. It is tested against MinIO and a fake, never against AWS, and a run or trail ID in an anchored head cannot be erased, so it must hold no personal data (anchoring guide).
  • bide approve -item FILE (and bide-hsm approve -item) takes the run and the call from one call of bide approve -list -json output, a file or - for standard input (which also needs -yes), instead of -run and -call. The input is the call's object or an array of exactly one, decoded strictly (no repeated name, no invalid UTF-8), and the ids are used exactly as decoded, so an id that ends in a line break or holds a bidirectional or invisible character, which a pasted command line or a shell's $(...) cannot carry, can be decided from the command line. -item with -run, -call, -list or -verify-receipt is a usage error, and the input is limited to 1 MiB. The fallback texts of bide view and bide approve -list for such ids, the run viewer and approval guides and the CLI references point to it.
  • bide audit redactions now says how a run ended when its end marker was erased: for each run whose erased end marker the signed redaction trail accounts for (name, leaf hash and time all match), it prints run r1: ended: completed (per trail) (or aborted, or cancelled), and audit.RedactionReport.Ended carries the run, the marker the trail recorded and the kind. The journal itself says only that such a run is over (agent.RunEnded), because a tombstone's name is outside the leaf hash and can be renamed with no key; the signed trail is the one source of the kind. A tombstone renamed to another end marker is still NAME_MISMATCH and reports no kind, and a run whose end marker is kept reports none.
  • audit.CertIdentity now reports the certificate rules a request for a certificate must ask for: IDKind, EKU, AllowsEmailProtectionEKU, PolicyOID and MaxLeafLifetime (the effective value, 24 hours when the policy set none). They are read-only (EKU returns a copy) and change no verdict; they let a tool such as a certificate request command name what the gate will look for.
  • bide-hsm csr -key <ref> writes a PKCS#10 certificate signing request for a key held in an HSM or a cloud KMS, signed by that key through the same key sources as bide-hsm approve (PKCS#11, AWS KMS, Google Cloud KMS, Azure Key Vault; Ed25519 or ECDSA P-256 as the source has them), so an approver no longer needs the vendor's tooling to get a certificate for it. The request names nothing by default; -san-email, -san-uri and -eku ask for a SAN and a usage, and -policy <file> -as <approver> asks for exactly what the gate's identity policy looks for and prints what the CA must issue. Before it writes, it checks the request's signature, that its public key is the key source's, and that it carries only the names asked for; it writes to -out or standard output and never overwrites a file without -force. bide keygen -csr now builds its request through the same code. Ed25519 and P-256 only: there is no RSA request.
  • audit.CertApprover.CheckCertificate returns the verdict a gate reaches on a decision's certificate chain without a journal, signature or signed head: whether the chain is accepted for the approver and what the revocation status rule makes of it, judged by the counting rule (audit.CheckCount) or the pre-execution rule (audit.CheckExec) at a given decision and provable time. VerifyCertDecision and VerifyCertExec now call the same function for that part, so there is no second copy of the verdict; their behavior is unchanged, and a test pins the two to the same answer across the identity tests.
  • A control mapping page, docs/trust/control-mapping.md, for bank risk and procurement reviews: for SOC 2 (CC6 to CC8), ISO/IEC 27001:2022 Annex A, PCI DSS v4.0 requirement 10, DORA, the EU AI Act (Articles 12, 14 and 15) and SR 11-7 / OCC 2011-12, it lists what bide provides with links to the guide or code that shows it, what the institution must still provide, and what is not covered yet (a production anchor and a kill switch in progress, independent time not used by any gate, no external security review). It is not a certification or legal advice and says an assessor decides. It is linked from the docs index and the docs-site Trust sidebar.
  • bide keygen -csr and bide-hsm csr take -cn <name>, which makes the request's subject one common name (printable ASCII text of at most 64 characters, no leading or trailing space; a bad name is a usage error before any key is used or any billed signature made). The gate reads no subject, so the name changes nothing about who may approve; it exists for tools such as step ca sign that refuse a request with an empty subject and take the certificate's content from the CA's template. Without -cn the request is unchanged: an empty subject.
  • A legal hold's lift can need a second person: bide journal hold authorize has a second person sign, with a key of their own (a key file, or with the new bide-hsm journal a key in an HSM or KMS), their consent to lift one hold, bound to the hold as it stood (matter, runs, tree setting), the placement's trail position and leaf hash, the deployment and a validity; bide journal hold lift -authorization FILE -authorizer-pubkey KEY -require-authorization checks it before anything is written and embeds it in the lift's signed trail record (audit.LiftLegalHold takes audit.WithLiftAuthorization, WithLiftAuthorizers and RequireLiftAuthorization; audit.NewLiftAuthorization and audit.LiftAuthorization make and carry it; a refusal is audit.ErrLiftUnauthorized). The authorizer's key must not be the key that signs the trail or share a component with it (a hybrid key's Ed25519 half is the same key holder). bide audit redactions checks the embedded authorization offline: a bad signature, another hold or placement, a validity lapsed at the lift, the lifter's own key, or a key that is not one of the -authorizer-pubkey keys is the new finding LIFT_UNAUTHORIZED, and -require-lift-authorization makes a lift with none one too. bide-hsm journal is bide journal with its signing keys named by KMS or PKCS#11 reference. Placing a hold needs no second person.
  • bide identity check -cert reports cert.cdp: with CRLs loaded it fails when the issuer's CRLs carry an issuing distribution point (what step-ca stamps) that none of the leaf's plain CRL distribution points names, which is why no CRL covers the certificate and the gate waits, and it names the fix; it warns when the leaf has several plain distribution points with different names, since status is then read from a CRL covering any one of them, which suits mirrors of one CRL and not a CA that partitions. audit.PlainDistributionPoints returns a certificate's plain distribution points, the ones a CRL's issuing distribution point is matched against.
  • bide identity check is the pre-flight for a certificate-bound approval setup, for a bank to run before go-live and an approver to run when a decision is refused. It reports one line per check, with the fix, or the same as JSON (-json): the policy file loads and its pinned CAs and intermediates are valid and match their certificates; the declared CA timings pass the gate's own configuration check; the policy file and -params agree member by member with the policy record the gate journals (-expect), with the members -params cannot declare listed as not verified; the CRLs, read offline from a fetch-crl archive or a flat directory (-crl-dir, never written) or fetched with the refresher's own limits (-fetch), are fresh by the refresher's health model and the status rule's freshness test; and, for an approver's chain (-cert), whether the gate would accept it and let the call run, with the gate's own reason if not. It never reports ready while a part was left out: -no-status and -no-expect give a partial result (exit 4), a failed check exits 1, a usage error 2, an unreadable file 3. Every report lists what a pre-flight cannot check ahead of time. The chain verdict is audit.CertApprover.CheckCertificate, the function the gate's counting and execution checks call.
  • Added the signed acknowledgement of a planted redaction-trail record: audit.AcknowledgeRecord and bide journal acknowledge -position N -reason ... -ticket ... -deployment ... -sign-key ... -head-out ... append a record, signed with the redaction key and bound to its position, that names a leaf the tool did not write by its position and the hash of its bytes, with the reason, the ticket and who, and sign a new head. bide audit redactions then reports that leaf as acknowledged (a note, printed as INFO, that says who acknowledged it, the ticket, the time and the reason) instead of failing on its BAD_SIGNATURE, REORDERED or MALFORMED. It acknowledges only that leaf: the acknowledgement must come after it, a record the tool wrote or an erasure made by hand cannot be acknowledged, other bytes at that position fail again, and an unsigned or wrongly signed acknowledgement acknowledges nothing. audit.CheckRedactionTrail is the check RedactJournal makes before it appends, for the command.
  • Added bide journal redact, the command that erases personal data from finished runs accountably, with agent.Compactor (implemented by store/sqlite) behind its storage step. It lists a plan as a dry run (each record by position, key, kind, length and leaf hash, never content, with a digest), and with -execute -plan-digest erases the records of a finished run into tombstones: it refuses a run that is not over, is leased (checked before anything is written), has a live parent, belongs to a session or has events in the event store (-keep-event-copies is recorded), refuses a run no verified signed journal head covers unless -allow-uncovered (recorded), and refuses a trail that does not match the heads in -head-out (a typo in -trail-db) or that holds records no earlier head attests (unless -accept-unheaded-trail). Every trail record is signed and bound to the deployment named by the required -deployment; the trail's head is signed with a key file and appended to -head-out, also after a failed pass. On SQLite the erasure runs with secure_delete on and the command then checkpoints and truncates the write-ahead log; when a reader holds the database open it says "STORAGE NOT COMPACTED" and exits 1 rather than claim success, and a test reads the database and WAL files for the erased bytes with another connection open. On Postgres the erasing role keeps its own DSN (-redact-postgres-env) because it can read nothing, the replaced row versions stay until the operator's VACUUM (the report says so), and an end-to-end test erases through that role and passes bide audit redactions. The trail is signed from the command line with a key file; HSM and KMS signing go through the library until bide-hsm gains it. The report ends with the copies the command cannot reach. There is no legal hold or second-person authorization yet.
  • Added the optional agent.Redactor store capability, implemented by MemStore, store/sqlite and store/postgres, which replaces one entry of a finished run with a redaction tombstone that keeps its position and audit leaf hash, together with agent.PlanRedaction (a dry run that lists records by position, name and leaf hash and never their content, with a digest), agent.Redact, agent.NewTombstone (a tombstone is read only in the exact byte form it is written, and now carries an optional name member, always written, that must equal the row it sits in, so audit.JournalExport.Journal() recovers the name of a redacted record and decision coverage from an export still lists a redacted approval), agent.TombstoneName, agent.LeafHash, agent.CheckRedaction, agent.RedactionProtected and storetest.Redactor, the conformance suite. A store refuses, writing nothing, a run with no end marker, a run with a live lease, a sub-agent's run while a run above it is not over, a session's runs, a protected record (the journal header, end markers, attempt markers, saga failures the saga compensation records and the records an approval count rests on), a tombstone that does not keep the leaf hash of the bytes it replaces (the store recomputes it), and an entry that changed since the caller read it. The core Store port is unchanged. agent.Status now reports a run whose run:start was redacted as started rather than not started. On Postgres the migration (run as the schema owner) creates a SECURITY DEFINER function, bide_redact_v3, that repeats every check server-side and builds the tombstone; the erasing role holds EXECUTE on it and no privilege on any table, so the application's role cannot erase and raw SQL by the erasing role cannot rewrite a record. A tombstone at a name a redaction never replaces is reported as corruption (ErrStorage) by every reader, and a tombstone's name, which is outside the leaf hash, is labelled "not attested" where a reader acts on it (audit.NoteRedacted now reads "redacted, name not attested"; agent.RunStatus.StartRedacted). There is no command yet and the erasure is not yet recorded in an audit trail; see the retention guide's section on erasing personal data for what it does not reach.
  • Added bide journal hold place|lift|list and the signed record of legal holds: audit.PlaceLegalHold places a hold in the store and then records it in the redaction trail (signed with the redaction key, bound to its position, with the matter, the runs, the reason, the ticket and who), and audit.LiftLegalHold records the lift first and then lifts the hold, so a hold is never lifted without evidence and a failure to record never leaves a run unprotected. bide journal redact refuses a held run and its dry run names the hold. bide audit redactions lists the holds the trail shows in force, compares them with the database's (HOLD_NOT_IN_STORE for one lifted by hand, HOLD_NOT_IN_TRAIL for one placed by hand, HOLD_DIFFERS: other runs, tree setting or matter), reports a lift or placement the trail does not match (HOLD_UNMATCHED), and reports an erasure that began while the trail showed a hold over the run (REDACTED_UNDER_HOLD: when the pass replaced records, or has no end record to say it did not); on Postgres the reading role needs SELECT on the holds table. Two operators placing or lifting the same hold at once leave one record, not a duplicate that the audit would report as HOLD_UNMATCHED. Placing a hold again records one whose record failed, and lifting again finishes a lift whose store step failed, with no second record; a hold lifted by hand can be recorded as lifted.
  • Added legal holds at the store: the optional agent.Holder capability (PlaceHold, LiftHold, Holds; agent.Hold names an ID, a matter, the runs it covers and whether it covers the sub-agent runs below them), implemented by MemStore, store/sqlite and store/postgres, with storetest.Holder as its conformance suite. A store's redaction now refuses a run an active hold covers (agent.ErrRedactHeld) in the same statement that would replace the record, so a hold placed while a pass runs either lands first or the record was already erased; agent.PlanRedaction names the holds that cover a run and refuses it (RedactionPlan.Holds). SQLite and Postgres keep the holds in a bide_holds table the migration creates (a file or schema from before holds has none and no hold). On Postgres the redaction function moves to bide_redact_v3, which reads the table as its owner, so the erasing role can neither read nor change it and a third role with SELECT, INSERT, DELETE on that one table places and lifts holds; the migration creates v3 beside any older bide_redact_v1 or v2 (v1 does not check holds), and revokes EXECUTE on every older version from PUBLIC and every role it was granted to (it never replaces or drops a function), and the store calls only v3, telling you to run the migration when it is missing. v3 takes the holds table's SHARE lock first, so a placed hold stops every erasure that has not yet committed, and refuses to run unless its transaction is at READ COMMITTED: a role whose default isolation is stricter needs ALTER ROLE ... SET default_transaction_isolation = 'read committed'. There is no command for holds and no record of them in the signed redaction trail yet.
  • audit.AuditedStore.WithMinInterval and audit.AuditedEventStore.WithMinInterval publish at most one head per run or trail per interval, so an anchor that keeps every head for years (an S3 Object Lock bucket, say) no longer receives one per write: growth inside the interval is held back and published as one covering head by a timer, so while the process lives every record is covered within the interval, and a run's first head, its end marker (run:complete or run:aborted), Reanchor, Flush, ReanchorRuns and, for trails, ReanchorPending and AnchorTrails publish at once. A process that dies loses its timers, and what it held back stays unanchored until the next start or recovery pass: AuditedStore.ReanchorRuns is that pass for journals, and AnchorTrails already is for trails. The new AuditedStore.Flush and Pending, AuditedEventStore.Flush (which now also publishes held-back trails) and the default of no interval leave existing behaviour unchanged. A failed publish by the timer is retried with a doubling wait and reported to OnError once per streak, with the new OnRecovered hook ending it, and bide audit verify-decision-coverage and verify-receipts now say which of a journal's last records are under no signed head, and verify-decision-coverage takes -max-unanchored to fail on a tail whose newest head is older than a bound.
  • The -params file of bide identity fetch-crl and bide identity check takes optional members for the values the gate's policy digest covers and a declaration could not state before: w, min_w, routine_grace, clock_tolerance, allow_holds, consecutive_numbers, retained and effective_from (named as in the policy record), beside the existing coverage_tolerance. A file that states all of them builds an approver whose policy digest equals the gate's for the same declaration (audit.StatusDecl.MissingForDigest names what a file lacks), so the digest fetch-crl prints in its start-up events is comparable, and bide identity check -expect-digest is a true equality; with a file that lacks some, fetch-crl says which and that the digest cannot be compared, and check fails naming them. Existing files parse and behave as before, and unknown members are still refused.
  • Added the redaction trail and its check: audit.RedactJournal erases the records of a plan accountably (it requires a reason, a ticket, an executor, a time and a signer, and signs every trail record with it, bound to its position, the hash of the record before it and a required deployment name (a replayed, copied or reordered record is REORDERED), so a record planted by someone who can append to the event store is BAD_SIGNATURE (or MALFORMED) under any head and accounts for nothing; audit.RedactJournal also refuses (ErrRedactTrailUntrusted) before it appends or erases when the trail does not match RedactionOptions.TrailHeads, but a record planted in the trail never blocks an erasure: it is reported and accounts for nothing; audit.SignRedactionTrail verifies the earlier heads before it signs a head over exactly the leaves it checked; refuses a run no verified signed journal head covers unless AllowUncovered, which is recorded; appends a begin record before it erases and an end record after, to a trail named redact:@log in an event store that audit.AuditedEventStore or audit.SignNotifyTrail can sign and anchor), audit.VerifyRedactions and the new bide audit redactions verb. The check finds a deleted or changed trail record, records after the newest head, an unfinished pass, a tombstone no trail record names (an erasure made by hand), a tombstone whose name or leaf hash differs from the trail's (a tombstone's name is outside the journal's hashes, so the signed trail is what attests it), a record the trail lists that still holds content, a tombstone stamped at a time no pass that listed it carries, a run the trail names that has no journal in the input (a trail checked against no journal checked nothing), and an erasure that ran without a covering head; a tombstone is accounted for only by the pass that erased it (a later plan that lists it as already redacted does not launder an erasure made by hand), and a failed pass that the same plan later finished is a note. -trail-db and -trail-postgres-env read the trail from a store kept apart from the journal. agent.RedactUsing lets a different store than the journal's do the replacing. audit.SignRedactionTrail and bide audit redactions take the deployment name too (-deployment is required). There is no command to erase yet.
  • Releases now carry SLSA v1 Build Level 3 build provenance: the release workflow calls a reusable workflow of a separate repository (bide-ai/release-builder, pinned by commit) that builds with goreleaser and attests every archive, every archive SBOM, checksums.txt, approve-page.SHA256SUMS and the module set SBOM with GitHub's artifact attestations, and release.yml verifies that provenance with a pinned gh (scripts/verify-provenance.sh) before it signs or publishes anything, failing the release if one file does not verify. The cosign signature identity is unchanged. docs/trust/verify-releases.md has the gh attestation verify commands and states what the provenance proves and what it does not.
  • docs/guides/sso-certificates.md and the examples/sso-certs module: a worked, tested recipe for short-lived approver certificates issued after a single sign-on login, with step-ca 0.30.2 as the reference CA (an OIDC provisioner and a certificate template that issue exactly what an IdentityPolicy requires, the lifetime and backdate rule, an operator JWK provisioner for revocation) and scripts/renew.sh for the approver. The module's test runs the recipe against pinned step-ca, step CLI and mock OIDC identity provider containers: the real login, the certificate's shape, a login without MFA or with a malformed person id refused by the template, bide identity fetch-crl and bide identity check over step-ca's CRL, a gated call approved with bide approve -cert and counted by a real audit.CertApprover, a revocation and the refused decision made after it. It runs in the Integration job with BIDE_REQUIRE_STEPCA=1 and elsewhere only with BIDE_TEST_STEPCA=1; the guide states what the test does not cover (an HSM or KMS key, another identity provider, other CAs).
  • bide audit notifications -db (and -postgres-env) checks the kill switch's notifications from the control run: every stop in force must have been told (stop_set), whatever its recorded time says (a record's time is its writer's own, so a backdated or future-dated stop is still owed; -stops-within, default 7 days and the notifier's window, limits only stops that are over, and NotifyPending now notifies every stop in force the same way), a lifted stop owes its all-clear and its stop_lifted, and a stop set and lifted before any notifier looked owes only the lift; a stop or lift no notifier saw fails with never_notified, and a control run the audit cannot judge (signed records and no -stop-policy) is refused with exit 4 instead of passing what it did not check. -stop-policy and -stop-root read the control run as the deployment pins its policy. audit.VerifyNotifications takes the control run's state as NotifyVerifyInput.Stops (judged with agent.StopNotifyEvents, which shares its window rule with the notifier) and reports a control run record dated in the future, or well before an earlier record, as a problem (StopAnomalies, agent.StopClockAnomalies); with -run the command prints an INFO line that stops were not checked and now reads the stop_set and stop_lifted kinds, the all-clear reason lifted and the stop key shapes, which it refused as unknown before (agent.ParseStopKey). Guide: docs/guides/notifications.md.
  • bide stop, the kill switch's command line (and bide-hsm stop for a key in an HSM or a KMS): -all, -tool, -flow and -agent set a stop (there is no default scope, and a bare bide stop lists the active stops and exits 2), -list (with -json), -show, -lift, -reaudit, -apply-pending, -upgrade and -downgrade work on it. Basic mode needs no keys; audited mode (-stop-policy, -as, -key) signs each record with an enrolled approver's key, checks the key and role before writing, and lifts by the policy's quorum. A stop is written without a prompt when -yes is given or stdin is not a terminal; a lift and the configuration operations ask on a terminal and refuse without one unless -yes. Exit statuses are 0, 1, 2, 3 and 5, where 5 means an audited record landed in the control run or on the trail but not both (-reaudit and -apply-pending complete it). No secret goes on the command line: a key is a file or a key reference, a Postgres journal is named by its DSN variable. bide audit stops gains -sign-head -log-key -head-out, a schedulable job that verifies the stop trail against the control run, signs a head over exactly the verified records (audit.SignStopTrailExport) and appends it to a head file that -sth reads; a deployment must run it, or the audit fails on the unattested tail. Guide: docs/guides/kill-switch.md.
  • The control run of the kill switch (agent.StopControl, StopPolicy, StopRecord): stop, lift, policy-transition and mode records under the reserved run ID @stop, which a recovery pass does not drive and no user run may use. The mode is each process's configuration: basic (no policy, the default) trusts the store, so anyone with store access sets and lifts and the records are plain; audited (a policy) counts only records signed by approvers of the policy in force at their position, lifts by a quorum of distinct lifters (one not the setter, configurable) and ignores plain and unsigned records. No store record can switch a process's mode or make it fail: mode records are evidence, and StopState lists what it rejected. The deployment's root policy, which carries a deployment ID that every signed record repeats (so records do not replay across deployments), is the trust anchor, and signed policy transitions approved by a quorum of the policy in force carry later ones; a process pins the root policy (or a later one, naming the root it trusts with WithStopRoot) and walks forward from that root only, so a self-signed root a store writer appends never governs a record, so a rotation or an offboarding never drops a stop, and a chain it cannot walk (a pin no stored root reaches, a fork) makes the stops unknowable instead of silently dropping them, while a forged record in an audited deployment is only rejected; a basic process on an audited deployment does not lift a signed stop on a plain lift; ChangeMode to audited adopts the stops that are active in the basic view. every process declares its mode (WithStopMode), the chain is checked for forks and rollbacks (ErrConfig), and a control that cannot judge which stops are in force (a basic process on an audited deployment, an audited process whose pin the chain does not reach) reports ErrStopsUnknowable for the engine to fail closed on; StopControl.State folds the log into the effective stops; nothing in the engine reads it yet, so no run is stopped by this change. Model 16 (spec/tla/stop) checks the fold and a call's read of it, with eight counterexample configurations.
  • The kill switch notifies: a stop that is set (stop_set, key stop:<id>) and a stop that is lifted (stop_lifted, key stop:<id>:lifted) are notification kinds, observed from the control run so delivery has the notify trail's claim, acknowledgement, retry, overdue and escalation and survives the death of the process that set the stop. NotifyPending given WithNotifyStops(ctl) reads the control run on each sweep (stops set or lifted within WithNotifyStopsWithin, default 7 days), and NewStopNotifier with WithStopObserver on a StopSwitch notifies within the switch's poll interval; both name an event by its key, so any number of processes and both paths send one notification. The observer is handed each change through a single latest-state slot on a goroutine of its own, so a blocked or panicking observer or notifier never delays or fails a check point. A stop_set ends with the usual all-clear (reason lifted), an audited stop's stop_lifted is raised once when the quorum lands, a rejected record raises nothing, and routing and escalation apply. The webhook payload gains stop (id, scope, name, reason, setter, host, mode, signed, compensation, lifted_by; no key, signature or secret), the Slack relay escapes the operator text, PagerDuty sends stop_set as critical and stop_lifted as info, and bide notify test -kind stop_set and stop_lifted send samples. Guide: docs/guides/kill-switch.md.
  • The kill switch's engine side (agent.StopSwitch, agent.WithStopSwitch, *agent.Stopped, agent.WithRecoverStop): an agent given a switch holds a covered run, as a pause, at a drive's start, at a turn's start, before a call's claim, after the claim and immediately before the call begins, so no side effect starts under a stop that was committed before the check; a won claim that is held is recorded as not started, a call that has begun finishes and is journaled, a written attempt marker is never fired again by a stop or its lift, and a saga's rollback continues unless the stop blocks compensation. A side-effect call reads the control run itself and is held (fail closed) when it cannot be read past a staleness bound, or when the stops cannot be judged; Recover and RecoverLoop list nothing during a global stop. An agent without a switch on a store whose control run holds a record fails its drives with ErrConfig, which costs one extra Load per store every few seconds on a drive (the budget tests count it). Model 16 maps the check points. A plan flow takes a switch with Builder.WithStopSwitch (or plan.WithLoadedStopSwitch): a flow-scope stop holds a run at its start and each node before its claim and after it, with the same not-started record, and a flow without a switch on such a store is refused. A multi-handle Postgres test shows a stop set by one process holds another's next side-effect call. Guide: docs/guides/kill-switch.md.
  • The kill switch's audit trail: an audited agent.StopControl given WithStopTrail(audit.NewStopTrail(events)) writes every signed record (a stop, a lift, a policy transition, the root, a mode change) to a stop trail of salted event leaves that an AuditedEventStore signs and anchors, in an order that keeps the evidence at least as strong as the effect (a stop is in force first and evidenced second; every other record is evidenced first), reports a failed trail write as *agent.StopTrailError, and StopControl.Reaudit appends what the trail lacks. bide audit stops verifies a trail offline (-trail, or -db and -postgres-env) against the pinned policy (-stop-policy) and the chain of signed transitions from its root, against signed heads (-sth, -pubkey) so a deleted or reordered record is found, and, with a store, against the control run record for record. audit.VerifyStops, audit.ExportStopTrail, audit.SignStopTrail and agent.VerifyStopRecords are the library side. A trail record that never reached the control run (a crash between the two writes) is listed as unapplied, and StopControl.PendingRecords lists it with its signer and age and StopControl.ApplyPending applies it, as a signed apply record naming what was applied and by whom; an unattested tail fails by default and -max-unattested relaxes it. Guide: docs/guides/kill-switch.md.
  • bide view shows the kill switch: while a stop is in force every page of a store opens with a banner (scope, reason, setter, age, lifts held and needed, the mode), and the banner also appears when the stops cannot be judged, signed records cannot be checked, records were rejected, or the control run cannot be read, so a page never says "no stop" about a control run it could not read. -stop-policy and -stop-root check the signatures as an audited deployment does; without them the banner says signatures are not verified. The run list and a run's page say which runs a stop holds (a global stop, a flow stop, a tool stop with a call the journal shows no result for; an agent stop only "may be held", since the agent identity is not journaled), /stops.json serves the banner (with read_at; a viewer given the policy on a deployment that has not upgraded says its plain stops are ignored by audited processes), and bide stop -lift shows how many runs the stop holds before it asks. The control run @stop is no longer listed as a run. Guide: docs/guides/kill-switch.md.
  • bide-hsm audit stops -sign-head -log-key <key ref> -head-out <file> signs the kill switch's stop-trail head with a log key held in an HSM or a cloud KMS (a pkcs11: URI, awskms:, gcpkms: or azurekv: reference), closing the gap that bide audit stops -sign-head took a key file only. It is the same verb as bide audit stops (one implementation in internal/auditcli): it signs only the records it verified against the pinned policy and the control run, signs nothing when the audit is not clean, adds nothing when the newest head already commits to every record, opens the key only when there is something to sign and only after checking it is the key -pubkey names, and has the same exit statuses; the heads it writes verify with the existing verifier. The reference holds no secret (a PKCS#11 PIN comes from pin-source), and the key flags of bide-hsm approve apply. bide-hsm audit runs the stops verb only. Guide: docs/guides/kill-switch.md.

Changed ​

  • New package audit/anchorobj (experimental): the SDK-free half of an object-store audit anchor, extracted from anchor/awss3 so that the Google Cloud Storage anchor and any later one name, encode and check anchored heads the same way: the object layout (partition hash, inverted size, head digest), the canonical object body and the checks a Reader makes on it, the equivocation check and the tripwire for run IDs that look like personal data. A backend supplies its own object format and partition tag, so an object of one anchor never validates as another's, and its own error values, so errors.Is and the text of its messages are unchanged. anchor/awss3 now uses it with no change in behaviour: the existing tests pass unchanged and new tests pin the object keys, bodies and partition names byte for byte.
  • The bide check warning for a quoted assert name that contains a backslash sequence now reads as guidance: it says the name is read as written, names the node the line refers to now (the name with its backslash) and says to write the character itself if that was meant, instead of describing how the old reading would have unescaped it. The condition that triggers it is unchanged.
  • The bide-anchor command moves out of the anchor/awss3 module into its own module, github.com/bide-ai/bide/cmd/bide-anchor (install it with go install github.com/bide-ai/bide/cmd/bide-anchor@latest), and gains -backend, which names the object store the anchor wrote to; s3, the default, is the only backend built in, and others are added with their packages. It has not been in a release, so no published install path changes; the module is tagged with the others from the next release.
  • Added docs/ARCHITECTURE.md, a "Reading the code" map of the source: for each main package (agent, audit, plan, approvals, notify, the stores, govern, flowedit and cmd/bide) the files to open first, in reading order, starting with the journal, step, claims and leases, the loop, approvals and the exec gate, the notifier and the audit log. The agent, audit and plan package docs now carry a "Where to start" paragraph, and the README, the docs index and the docs site link the page. Docs only; no code changed.
  • A CRL whose critical issuing distribution point holds only a full name made of URIs (the shape step-ca stamps on every CRL it signs) is now read instead of refused. Because such a point narrows the CRL's scope (RFC 5280 section 5.2.5), it is evidence of absence only for a certificate whose own CRL distribution points name one of its URIs byte for byte, in a point with no reasons and no cRLIssuer; a certificate that does not name it gets no status from it and the gate waits, as before. A listing in any CRL the issuer signed still revokes, whatever its point. The CRL refresher refuses (an unsupported-crl event naming both URLs) a CRL whose point does not name the URL it was fetched from, and audit.CRL gains DistributionPoints. Every other issuing distribution point (a scope flag, a reasons field, a relative name, a name that is not a URI, a non-critical one) and any delta CRL with one are refused as before.
  • The kill switch, redaction and legal holds are labelled experimental in the API reference and the stability page: every symbol of agent and audit declared for them (StopControl, StopSwitch, the stop records, policy and trail, Redactor, Compactor, PlanRedaction, Redact, the redaction trail, Holder, PlaceLegalHold, LiftLegalHold and the rest) now carries (experimental) through the label table's symbol rules (internal/tools/apiref/labels.go), and the kill switch and retention guides and docs/trust/stability.md say what it means: the Go API and the command flags may change in a minor release with a changelog entry, their records follow the pre-1.0 format policy of the stability page, the tombstone format and leaf hash stay core, and the stated guarantees (a stop in force holds the calls it covers, an erasure is accounted for in a signed trail) hold. No code behavior changes.
  • A redaction can now erase an end marker (run:complete, run:aborted, run:cancelled), by naming it (bide journal redact -name run:complete), so the run's final answer, or its cancellation or failure text, can be erased. -payloads does not select an end marker, and its dry run says so (end marker not selected by the Payloads preset: name run:complete to erase its content), so nothing is left behind silently. The tombstone keeps the marker's position, and every reader finds the run over by it, but none reads how the run ended from it, because a tombstone's name is outside the leaf hash and a rename would flip a completed run to cancelled: agent.Status reports the new state agent.RunEnded with agent.RunStatus.EndRedacted set and no Terminal text, IsComplete is false, Cancel reports ErrRunEnded, Recover, RecoverLoop and a drive treat the run as over and refuse to drive it, the notifier does not raise an abort from an erased run:aborted, bide view shows ENDED (ERASED), and a flow's Conform does not compare an erased completion. Only the signed redaction trail records what the marker was (bide audit redactions, NAME_MISMATCH for a rename). agent.RedactionProtected no longer lists the end markers; a tombstone at any other run: name is still corruption. On Postgres the redaction function moves to bide_redact_v3, which allows the end markers; the migration creates it and revokes EXECUTE on every older bide_redact_vN from PUBLIC and every grantee, so only the current function is callable, and you grant the erasing role EXECUTE on v3 (the store calls only v3). The lifecycle model gained the erasure (RedEnd, model 10): life-redact passes, regress/redacted-not-end and regress/redacted-kind-from-name show the two bugs (reading an end by content, reading its kind from the name).
  • The release workflow handles pre-release tags (vX.Y.Z-rc.N): the module set SBOM accepts a semantic version with a pre-release suffix (no leading zeros, no empty identifiers, checked the same way by scripts/module-sbom.sh and the release builder), the release is marked a pre-release as before, and no Homebrew formula is generated or pushed for a tag with a hyphen, so brew never offers a pre-release as the current version.
  • scripts/release.sh --push now waits for main's CI instead of failing at once when the release commit has no completed push run yet (right after an admin merge the run has often not started): it polls every 30 seconds (BIDE_CI_PREFLIGHT_POLL_SECS) for up to 45 minutes (BIDE_CI_PREFLIGHT_WAIT_SECS) with a progress line, stops at once on a failure, and still accepts a passed merge queue run of the same tree. A dry run asks once. The self-test covers waiting, failure, the time limit and the dry run.
  • A writer with store write access cannot stop a kill switch stop from landing, but can slow it: every full read of the control run folds every entry, so SetStop, State() and a StopSwitch's first read grow linearly (a switch's later reads are incremental and stay cheap until new entries arrive) with the junk entries a writer adds under @stop/set/ (measured, one global SetStop with 100,000 junk entries: 0.84 s on SQLite, 2.0 s on Postgres; with 10,000: 0.1 s and 0.15 s). This is now stated in the kill-switch guide and in the known limitations, and a guard test on SQLite (and on Postgres with PG_DSN) fails if 10,000 junk entries push any of these calls past 2 seconds or make one grow faster than linearly from 2,500 entries. Keep the control run's store writable only by the processes that operate the kill switch.
  • A kill switch stop is now named by its scope, its compensation and a generation (@stop/set/<scope key>/<generation>, the generation in the signed record as gen) instead of by its content, and the insert is once-only, so two operators who set the same scope at the same instant can no longer leave it in force twice: the loser of the insert reads the control run again, finds the winner's stop in force, and writes nothing. StopControl.SetStop returns the stop in force with an *AlreadyStoppedError (errors.Is(err, ErrAlreadyStopped)) when its scope and compensation are already stopped, and bide stop reports "already stopped" and exits 0 as before. A writer with store access and no key cannot block a stop: only a set that decodes, validates and is named by its own content moves the generation (a junk entry under a generation name is stepped over and never counted, a number past 2^31-1 or not canonical is not a generation), and a writer that loses the insert eight times, or finds no generation free, writes the stop under its content-derived name, as every stop was before generations, which cannot be taken (such a stop can duplicate one written at the same moment, the safe direction). An upgrade that meets plain duplicate stops of one scope adopts the scope once. Records written before generations keep their old names and are read as before; the fold is unchanged. Model 16 gains the generation rule (SetInsertable, the invariant OneActivePerScope, the configs stop-same-scope and stop-same-scope-reach and the regress no-generation). Guide: docs/guides/kill-switch.md.
  • The fallback for a run or call id that cannot be shown or pasted safely (a control, bidirectional or invisible character) now says what to do instead of "no command (unsafe id)" or "decide from the application": take the ids from bide approve -list -json (the run and call members) and pass them to -run and -call, which a test shows records a decision on such a call. In bide view's Needs attention list, a gate with both bare-key and certificate-bound approvers also names which approvers the missing command affects and how each kind decides (-key, or -cert and -identity-policy). The bide approve -list help and the guides say the same.

Fixed ​

  • scripts/release.sh --assemble-changelog (the changelog tool's assemble) now accepts a pre-release version such as v0.21.0-rc.1, read as scripts/release.sh reads versions (no leading zeros, a pre-release of non-empty dot-separated identifiers), and refuses a malformed one. The candidate's section sits above the last release, the [Unreleased] link moves to its tag, and a later assembly (the next candidate or the final release) finds the candidate's section and link as the release before it. Before, assembling a candidate failed with "version is not like 0.16.0" and its section had to be retitled by hand.
  • The CRL refresher's "no valid CRL obtained" error and Health().LastError now say why a CRL that was fetched fine was not accepted (a rollback, a conflict between two CRLs of one number, a future-dated, unverifiable or set-aside CRL) instead of listing the URL as "ok"; the per-URL outcome kind is refused with the reason in its detail. This also fixes an intermittent failure of the identity reset test, which republished a CRL under the same number with a thisUpdate one second later when it straddled a second boundary and so, correctly, hit the equivocation rule; the test now keeps one base time.
  • The status lines of three design notes no longer say nothing is built: docs/design/approver-identity.md now says certificate-bound approvers work in gates (v0.19.0) with the CRL refresher (v0.20.0) and lists what is not built yet (RFC 3161 time in gates and SSO issuance; bide-hsm csr and bide identity check are in progress), docs/design/visual-editor.md says phase 1 (bide edit) is built, and docs/design/tooling-and-onboarding.md says it shipped in v0.14.0.
  • The certificate approvers guide and the bide identity fetch-crl start-up events told operators to compare the policy digest the command prints with the digest the gate records, but the two can never be equal: the digest covers effective_from, which the command's stand-in approver sets to its start time, and values the -params file cannot hold (w, min_w, routine_grace, clock_tolerance, holds, retention), which the command fills with defaults. The guide and the start-up event now say so, and a new declared values start-up event prints the stand-in approver's policy record without effective_from, so the timings and pinned CAs can be compared field by field with the policy record the gate journals.
  • awss3.LoadDir, and so bide-anchor verify and export -dir, passed on an empty directory and loaded two validly signed heads of one size with different roots as two heads, without an error; an empty directory is now an error wrapping ErrNotFound (nothing to verify never passes), and such a pair in one partition is an error wrapping ErrEquivocation, as the online Reader already reported. The directory walk, the per-partition equivocation check and the empty-directory check now live in audit/anchorobj (Layout.LoadDir, with MaxObjectBytes) so that every object-store anchor gets them, and a directory copy still cannot show that it is complete: compare its newest head with the live bucket.
  • The relay's state file write copes with another process holding the file open on Windows: replacing relay.state fails with a sharing violation or access denied while a reader (an operator's tail, a virus scan) has it open, and the save is now retried on a timer within milliseconds (about 300 ms in all, not logged, no request waits for it). A save that fails for any other reason is no longer forgotten until the next event: the state stays pending and is written again after the flush delay (at least a second, doubling to 30 seconds while it keeps failing, logged once per streak and again when it recovers), or at Close. The test that polled the file for the flush no longer fails on the same transient open error.
  • Corrects the roadmap and docs/KNOWN-LIMITATIONS.md, which still said gates do not use the certificate-bound approver checks: they have since v0.19.0 (v0.20.0 added the CRL refresher), and the roadmap now lists what is left (the RFC 3161 verifier is not called by any gate yet, bide identity check, bide-hsm csr, keys issued through SSO).
  • The stop trail's append now retries after losing a race for its position until its caller's deadline (30 seconds when the caller has none), waiting a jittered, growing time between tries, instead of giving up after eight tries. With ten operators writing at once the eight tries ran out (under the race detector, in a test), and a trail write that gives up turns a stop that is in force into exit 5 of bide stop; thirty-two concurrent writers now all land. A stop's own trail write keeps trying for 5 seconds (the stop is already in force, and a write that gives up is exit 5, which bide stop -reaudit repairs); a lift and the catch-up records before it share one 30-second budget; a caller that cancels gets an error that satisfies errors.Is(err, context.Canceled) as well as ErrTrailConflict; and bide stop prints "in force" the moment the stop is in the control run, before the trail write (agent.WithStopInForce).
  • The release's go mod tidy made github.com/jackc/pgx/v5 a direct requirement of cmd/bide and failed TestDirectRequires, because a journalcmd test imported its stdlib package directly while go.mod listed it as indirect; the test now relies on the driver store/postgres registers, and the stale indirect requirements in four example modules are tidied. CI now runs go mod tidy in every module and fails if it changes a go.mod or go.sum, so a direct import of a module marked indirect fails on the pull request and not at release time.
  • bide edit says so when git did not answer within its 15 second deadline ("git did not answer within 15s and was stopped"), instead of the "signal: killed" the kill leaves, still falls back to the file as it was opened, and no longer waits on a helper process that a git left holding its pipes (the wait is bounded to 2 seconds; a git that answered and exited 0 still counts as an answer). Test only: the stand-in git of the baseline tests is written and run once before the test uses it, because the first run of a newly written executable took 18 seconds on a loaded machine and the release run killed every case at the deadline.

0.20.0 - 2026-10-16 ​

Added ​

  • bide edit accessibility pass, the phase gate of the editor design: the outline is one Tab stop moved by the arrow keys, Home and End, the nodes in the drawing are buttons named by their drawn details, the save dialog returns the focus however it closes, and the controls meet the 24-pixel target size and name-contains-label rules. A Chrome test drives the whole path with the keyboard alone (select a node, set its safety, edit its gate, add an assertion, undo, save with the confirmation a weakening needs; the script never uses the pointer and bounds the Tab presses) and another runs axe-core (pinned by the lockfile) over the page in light and dark in five states and fails on any violation. The flow editor guide gains an accessibility section and a policy owner's workflow, docs/KNOWN-LIMITATIONS.md says no manual screen-reader pass has been done and lists what to check by hand, and the README and its four translations list the guide.
  • bide edit's assertions panel lists the config's assert lines with their verdicts and counterexamples and adds, edits and removes them from the six forms of the grammar as templates (every path to a node passes an approval gate of at least K [of N] [excluding the requester], every path to a node passes another node, every path to a terminal passes a node, no side effect after a node, a node reachable, a node unreachable). The page sends the form's parameters and the server writes the line the check reads (flowedit.Assertion, Assertion.Text, ParseAssertion), quoting a node name with a space and refusing one the grammar cannot hold; only declared nodes can be chosen and a line the config already has is refused. Each change to the form asks the server what the check says of the line and shows its verdict, with the counterexample path of a violation, before anything is added. Add, set and remove are splices (add_assertion, set_assertion and remove_assertion of flowedit.ApplyOperation; removing the last line takes the list), so a comment above a removed line goes with it. The panel says assertions are checked in CI and not at run time; POST /api/apply answers a refused operation with a 200 and {"refused": reason} instead of an error status, so asking what an operation would do does not fill the browser console with failed requests.
  • bide edit compares the file with a baseline, the committed policy (the file at git HEAD, or at the revision -base <rev> names; for a file that is not in git, the file as it was when the editor opened it), with the classifier bide check -diff -check -fail-on-weaken runs. A text that is weaker than the baseline shows a banner (APPROVAL GATE WEAKENED or SAFETY CHECK WEAKENED, each item in the classifier's words) that has no close control, stays until the text no longer weakens and is announced as an alert; a text that cannot be read says it cannot be compared. The flowedit module gains flowedit.ApplyOperation, the editor's operations on a config's text (a node's safety and block, and its approval gate: need, approvers, exclude_principal, timeout) as verified splices so the diff of an edit is the edit and a gate read back through the check is the gate asked for, an /api/apply endpoint for it, flowedit.Compare and flowedit.WithBase. The page does not offer the operations yet.
  • bide edit's inspector has forms for the selected node's safety, block and approval gate. A form change is an operation the server applies to the file's text as a splice (flowedit.ApplyOperation), verified before it is returned, so the diff of an edit is the edit and comments, blank lines and the style of the lines around it stay; an operation the engine cannot splice safely is refused with the reason. The gate form edits a draft of the decisions needed, the approvers in policy order, separation of duties (exclude_principal) and the deadline (timeout), and each change to the draft asks the server what bide check says of the node with that gate and shows the answer under the form in the check's words (an out-of-range need, a repeated approver, an assert line the draft would break), so there is no second validator in the page. Apply writes the draft, Remove gate removes the gate, Undo and Redo restore the exact earlier text, a change returns the focus to the control, and the weakened banner follows each change against the baseline. The node's gate as the config declares it is in the view (Node.Approval).
  • bide edit lets you edit the config's source in the page and save it. Typing asks the server for the bide check verdict of the new text, so the graph, outline, assertions, problems and the weakened banner follow the text; nothing is written until Save, which opens a dialog with the plain unified diff of the bytes against the file on disk, every comment the diff removes, the number of errors (a file with errors can be saved, and the dialog says it will fail bide check), and, for a text weaker than the baseline or one that could not be compared, the items to confirm: the server refuses a save without exactly that confirmation, and one made for an older text does not cover a newer one (HTTP 422, nothing written). The write is atomic (a temporary file in the same directory renamed over the file, keeping its permission bits, leaving the old file and no debris on a failure); the page carries the hash of the file as it read it, and a file that changed on disk since is a conflict (HTTP 409) that shows the file against the author's text and is never overwritten; the path is fixed at startup and checked again at write time (a symbolic link or a directory in its place is refused). The editor never runs git. New in the flowedit module: (*Server).Preview and (*Server).Save, UnifiedDiff and RemovedComments; the guide and docs/KNOWN-LIMITATIONS.md say what a rename-over save does not keep (hard links, extended attributes, ACLs) and that the check is compare-and-swap, not a lock.
  • A CRL refresher for certificate-bound approvers, so a bank's platform team does not write its own CRL fetching loop. crlrefresh.New(approver, sources, opts) keeps the approver's StatusSnapshot supplied with the newest CRLs of the issuers the policy pins (Run, or RefreshOnce from cron): it fetches only from the URLs the policy file's crl member (or audit.CRLSources) names, over HTTP or HTTPS (LDAP is refused), with a size limit, timeouts, no compression and redirects only to the same host; verifies each CRL against its own issuer's certificate (the policy pins intermediates by key, so intermediate_certs supplies their certificates) before adding it; refuses a CRL with a lower number than the highest accepted (rollback) and a same-number CRL with another TBSCertList (equivocation); asks every configured URL and keeps the highest valid one; pairs delta CRLs with their base; archives every accepted CRL in a dated, atomically written crlrefresh.DirArchive and rebuilds its rollback memory and the snapshot from it at start; and never makes status look fresher, because freshness is read only from each CRL's own dates. Events and alarms go to hooks, Health() reports the age and the next expected CRL, and the alarm is min(max(limit/2, CAPeriod + overlap + tolerance), limit - interval) with a Critical state that is exactly the status rule's own freshness test: a literal 50 percent of validity would alarm every cycle on a healthy weekly root, so the guide now advises a two-period validity for the root CRL with its ExecStatusAgeFor set to it. bide identity fetch-crl runs the same code for cron (-once) or as a daemon, bide identity reset-high-water and ack-reset are the audited way out of a CA's mistaken huge CRL number, and bide approve -cert still fetches nothing. The CRL URLs are not part of the policy digest because they cannot change a verdict.

Changed ​

  • A node name in double quotes in an assert line is now read exactly as written: the assertion grammar has no escapes. Before, plan read a quoted name with strconv.Unquote, so a name such as "caf\u00e9" or "a\tb" was unescaped to the character, and a name with a backslash and a space (my\ node, x\n y) in quotes was read as an undeclared node or as a name with a newline in it; RenameAssertion and CompareAssertions read it the same way. A quoted name is now read raw by the check, by RenameAssertion and CompareAssertions, and by the flow editor, which writes the same lines; a bare name was already raw. Upgrade note: an assertion that relied on an escape inside the quotes now names a different node; write the character itself ("café"). bide check warns on every quoted name that contains a backslash sequence the old reading would have changed, so no assertion silently starts naming another node (a warning, not an error, unless -strict). A name that contains a double quote still cannot be written in an assertion.

Fixed ​

  • TestNotifier_AnAnchorOutageNeverFailsADelivery failed on Windows because it read the store's OnError reports without waiting for the background publisher, and because a failed catch-up from FlushNotifications can open the anchor breaker first, in which case the outage is reported to the notifier's error handler and the publisher is skipped. The test now flushes the store and accepts the first report on either channel, a new test pins the breaker ordering, and the AuditedEventStore.Flush godoc says that Agent.FlushNotifications does not wait for the publisher. No production behavior changed.
  • Counts in the bide edit page and the bide view pages now agree with their nouns: the config verdict reads "1 assertion holds" (not "1 assertion hold"), and the key numbers, the graph label, the audit proof summary, the gate status and the diff error note use the singular for a count of one ("1 node", "1 approval gate", "1 approver", "1 error"). A test pins both forms of each string.

0.19.0 - 2026-10-16 ​

Added ​

  • bide edit flow.yaml, the first release of the flow editor (docs/design/visual-editor.md), is read-only: a local page, served by the binary on a loopback address, shows a flow config's declared graph, an outline of its nodes and wiring in config order, the selected node's block, safety, crash behavior and approval gate, the assertions with their verdicts and counterexamples, the problems bide check finds and the source, all computed by the code bide check and bide view -config run and labeled as the structural check. The page is hand-written script and the viewer's styles, served from the binary under a Content-Security-Policy that allows only same-origin resources; every request is a POST of JSON from its own origin with a per-run session token (printed in the address's fragment), and the command reads only the file it is given (a .yaml, .yml or .json regular file of at most 1 MiB). It is in the full bide binary and not in a bide_audit_only build. A Go program can embed the page: flowedit.New(path).Handler() is an http.Handler, and flowedit.BuildView is the page's data for a text. A new Chrome job (Editor (Chrome)) drives the page and fails on a console error, a Content-Security-Policy violation or a request off the page's origin. Documented in the new flow editor guide.
  • New module github.com/bide-ai/bide/flowedit, the edit engine of the planned flow editor (docs/design/visual-editor.md): flowedit.Apply changes one value, entry or item of a flow config's YAML or JSON text by splicing, so every byte outside the edit is the original byte, comments, key order, flow-style mappings and blank lines survive, and the diff of an edit is the edit. It returns text only after Verify re-parses it and checks that its data, key order, untouched lines and comment ownership are the old text with the operation applied; anything it cannot splice safely (an anchor or alias anywhere in the document, merge keys, a repeated key or a key that is not a string, NaN and infinity, a string that is not UTF-8, tags, more than one document or text after the document, mixed line ends, non-UTF-8 text, a document that is not a mapping) is a *Refusal and the text is untouched. A file with CRLF line ends or a byte-order mark is edited exactly as the same file with LF ends. All text leaves through one function that a test pins. Measured over 367 configs and 65,951 operations, 99.2 percent of operations applied and touched only the intended lines, against 18.4 percent for a re-emit through yaml.Node, with no unverified output in 4.5 million fuzz executions. There is no command yet; bide edit follows. It is not published yet: it joins the published modules when bide edit requires it.
  • Signing certificate-bound decisions from the command line, in the approver identity feature. bide approve -cert chain.pem -identity-policy policy.json (and bide-hsm approve with a key in a PKCS#11 token or a KMS) signs a decision over the bide.approval.v4 bytes with the approver's own key and records it with the certificate chain, to a journal or through the approvals intake (-to). Before anything is signed it compares the key with the leaf certificate's key (the keys, not a signature), checks the certificate is valid now with at least -cert-min-left left, and checks the chain against the policy for -as; it reads the chain file before the HSM or KMS is opened, accepts only CERTIFICATE blocks (a private key block is refused unread, at most 8 certificates of 16 KiB), and never falls back to a bare-key decision. It refuses a bare-key decision by an approver the journal says is certificate-bound, and -cert by one it says is not; through the intake it checks the gate's identity rule from GET /pending, answers a 503 (revocation status not available yet) with a retry instruction and checks the returned receipt carries the chain and verifies under the leaf's key. New audit.CertDecisionKey. The browser approve page tells a certificate-bound approver to use bide approve -to ... -cert. bide keygen -csr request.pem also writes a PKCS#10 certificate signing request for the new Ed25519 or ECDSA P-256 key (proof of possession, no names, never overwrites). bide approve -list and the Needs attention list of bide view offer the bide approve -cert command, with placeholders, to a certificate-bound pending approver (they offered none). The certificate-approvers guide gains a walkthrough from the CA's certificate to an approved call.
  • The counting rule for certificate-bound approvers in the planned approver identity feature (build step 1; nothing wires it into a gate yet, so no existing policy changes). agent.CertDecisionVerifier is an optional extension of ApproverVerifier: TallyApprovals checks a decision by the kind of the approver's verifier, never by what the record carries, and gives the verifier the whole journal and the record's position in it. audit.CertApprover implements it: a decision counts when it carries a chain and is signed over the bide.approval.v4 bytes, a signed head of the run covers it (the smallest covering head fixes the time it became provable, and heads that contradict each other refuse it), the chain is accepted for the approver at that time, and revocation status allows it. The seat is the verified identity (ident: and the canonical identifier), one leaf key fills one seat, and separation of duties excludes a requester by identifier. A DecisionCheck of such a decision carries the finding: identity, tier, basis, status time and when it became provable. New agent.ReasonNoCoveringHead and ReasonHeadTimes. A gate with a certificate-bound approver needs the identity map to name every approver of the policy, bare-key ones included, and until the gate change is complete a gate refuses a certificate-bound approver at configuration (ErrConfig), so the counting rule is not reachable from a gate yet. Separation of duties also excludes a requester mapped to the decision's identifier through the roster (CertApprover.RequesterIdentity), with a warning on the finding for a requester it cannot map.
  • Conformance captures of two-tier approver PKIs for the planned certificate-bound approver identity status rule, with true delta CRLs: EJBCA Community 9.6.3 (an RSA-3072 root and an ECDSA P-256 issuing CA) and Microsoft AD CS on Windows Server 2025 (an RSA-3072 standalone root and standalone subordinate on two machines), captured by the manually dispatched workflow crl-fixtures.yml, checked in under audit/testdata/ejbca and audit/testdata/adcs, and exercised offline by tests that run VerifyChain and the status rule on the real certificates and CRLs, including the base and delta pairing, cumulative deltas, AD CS's ten minute back-dating of thisUpdate and notBefore, key compromise, supersession and hold release. New IdentityPolicy.NotBeforeBackdate declares a CA's notBefore back-dating so a 24 hour certificate that spans 24 hours and ten minutes is not refused by MaxLeafLifetime, and StatusParams.MaxStatusAgeFor gives an offline root's weekly CRL its own age limit; a CRL with an entry dated more than 30 minutes after its own nextUpdate is now refused, and a declared ThisUpdateSkew or MaxStatusAgeFor that is negative or over its cap makes the status unknown.
  • Delta CRL merging for the planned certificate-bound approver identity status rule (build step 1, not yet used by the approval gate, so no behaviour changes). StatusSnapshot.AddCRL accepts a delta CRL with a critical DER INTEGER delta indicator; evaluating a chain pairs each delta with the highest qualifying base (RFC 5280 sections 5.2.4 and 6.3.3), reads the merged view as of the delta with the earlier of the two nextUpdate values, treats numbers as one sequence across bases and deltas, reads the listings of every delta that verifies (an unpaired delta gives no evidence of absence), and treats holds as unaccepted by default (a certificate that was ever on hold is refused unless StatusParams.AllowHolds, which then refuses a decision only inside the hold). OpenSSL-written certificates and CRLs, including overlapping issuance and refusals on real output, are checked in as conformance fixtures (audit/testdata/openssl, gen.sh regenerates them). StatusParams.ThisUpdateSkew (and ThisUpdateSkewFor, per issuing CA) declares how much earlier than its real issue a CA stamps thisUpdate (Microsoft AD CS back-dates it by about ten minutes): the release of a hold by absence ends at the next CRL's thisUpdate plus the skew, and a CRL's age is measured from the same moment; zero is never assumed.
  • Approver identity in the run viewer and the approval commands (build step E3 of the planned approver identity feature; the gate that writes the identity records is a separate step, so no existing gate changes). bide view shows, for a gate with a certificate-bound approver, the verified identifier, the certificate's display name, the tier (final as recorded with an independent or log-signer time, or PROVISIONAL), the basis, the status time S, when the decision became provable and a dispute (a keyCompromise voiding back to notBefore) on the run page, in the Needs attention list and in the JSON view; a gate paused for status appears as "paused: identity status unknown", and a call held before execution is listed. Nothing is drawn green or called verified without an audit result the viewer is given: the journal alone gives final as recorded, in a neutral style, and provisional, recorded-but-not-counted, held, incomplete (an identity tally with no record naming it) or policy-mismatched identity are each visibly non-final, so a finished run is never VERIFIED on the gate's word (COMPLETED, or IDENTITY NOT FINAL). A dispute is shown only from an audit result. bide approve -list prints the same and never shows an identity-bound gate as verified or settled. bide approve -verify-receipt (new -identity-policy and -log-key) and bide audit verify-receipts (new -identity-policy) now check a certificate-bound receipt against a certificate policy file at the time the decision became provable, and say that revocation status was not checked. New audit.ParseIdentityPolicy (the policy file) and audit.DecisionReceipt.VerifyIdentity.
  • The check of certificate-bound approvers' decisions immediately before a gated call runs, and the operator guide, in the approver identity feature (this change turns the feature on for gates: a policy whose resolver returns an audit.CertApprover is now accepted). One function, preExecute, re-verifies every counted certificate-bound decision of the gate's outcome with the execution ages and sits on every path to the tool: the base tool handler before the call is begun (so the first execution, a resume, crash recovery, RecoverLoop and a middleware retry all pass it) and a plan flow node before its body runs. A decision that is revoked (E <= A(d)) or no longer verifies for good writes an insert-once exec hold (ApprovalExecHoldStep, with the certificate serial, E, reason code and CRL hash) and the next generation is counted, so replacement decisions run the call; status that is missing or stale, or a decision no head covers right now, only pauses (agent.PendingIdentityStatus, no record, no approval notification). audit.CertApprover.VerifyCertExec applies two tiers by position in the accepted chain: the leaf's issuing CA is judged by ExecStatusAge, every CA above it by its own ExecStatusAgeFor, which ValidateConfig requires with CAPeriodFor, MaxStatusAgeFor and the new CAOverlapFor (CAPeriodFor + CAOverlapFor <= ExecStatusAgeFor <= MaxStatusAgeFor); the new values, MaxStatusAgeFor and NotBeforeBackdate are in the recorded policy and its digest. New CertApprover.ExecNow (the execution check's clock), agent.CertExecVerifier, agent.CheckExec, agent.CertRevocation and audit.ExecLatencyBound. The guide docs/guides/certificate-approvers.md covers declaring the CA's facts from a capture of your own CA, publishing the CRL right after revoking, provisional and final counts, and both revocation latency bounds.
  • The gate-side records of the planned approver identity feature (build step 1; certificate-bound approvers stay refused at gate configuration, ErrConfig, until the last change of the feature, so nothing reaches a bare-key policy). A gate with a certificate-bound approver anchors first: a decision that verifies but has no covering signed head makes the gate ask the store to publish one (Reanchorer, at most once per 10 s per run), and "no covering head" is reported only for a decision whose chain, identifier, scheme and signature already verify, so a junk decision never makes the gate sign. It writes phase notes (awaiting-anchor, awaiting-status) and journals, before the tally, the CRLs the count rests on by hash (approval-status:<sha256>, a CRL above 256 KiB goes to CertApprover.StatusArchive) and an approval-identity:<id>:<generation> record: the policy in force with every verdict-affecting parameter, the roster digest, and for each counted decision its chain hashes, anchor, covering head, time source, tier, basis and status hashes, bound to the tally by a digest of its stored bytes. StatusParams.Validate and CertApprover.ValidateConfig (including CAPeriod <= ExecStatusAge/2 for the leaf's issuer and a bounded status snapshot or an archive) run when the gate is configured.
  • A certificate-bound approver's decision can be taken over HTTP and checked before it is written. agent.WithDecisionCheck and SubmitDecision now verify a decision that carries a certificate chain through the approver's verifier (agent.CertIntakeVerifier, implemented by audit.CertApprover.VerifyCertIntake: the chain accepted for the approver at the time of the write, the bide.approval.v4 signature under the leaf's key, status usable now) instead of refusing it, and write nothing on any failure; status that is missing or stale is the new agent.ErrStatusUnavailable. The approvals intake takes the chain in the request (cert, a base64 DER array, leaf first, at most 8 certificates of 16 KiB, bounded before any parsing), answers 503 status_unavailable with Retry-After and writes nothing when status cannot be judged, 422 for an invalid or revoked chain or a downgrade (a certificate-bound approver without a chain, a bare-key approver with one), answers a replay of a held decision from the record even during an outage, and anchors after the write. counted: true on a certificate-bound decision is not final: each decision carries tier, provisional and basis, the response carries anchored, GET /pending lists the identifier each certificate-bound approver's certificate must carry (gate.identity), and receipts carry the chain. agent.Journal.Reanchor asks the store to publish a head.
  • Model 15 (spec/tla/identity) gains a CA tier: the leaf's issuing CA is certified by a root that publishes its own, slower CRL series, may withhold a CRL and may revoke the CA with a past effective time, and the count and the pre-execution check read each tier at its own status age (MaxAge and ExecAge for the leaf's issuer, MaxAgeCA and ExecAgeCA for the CA, as the two-tier ExecStatusAgeFor design has it). NoExecAfterKnownRevocation is checked per tier (NoExecAfterLeafTierRevocation, NoExecAfterCATierRevocation) by id-ca-tier, and three counterexample configurations fail with the property they guard: a check that reads only the leaf tier, a count that ignores the root, and the leaf aged by the CA tier's longer age. A final verdict also reads the CA tier (a root CRL a window past the decision and none that lists the CA; id-final-ca, final-no-ca-tier), and the tally recheck covers the root archive. The nightly identity state counts in the model 15 README are re-measured.
  • A Go refinement test for formal model 15 (approver identity), audit.TestModel15Refinement: each counterexample configuration of the model (spec/tla/identity/regress and limits) has a scenario that runs the same situation through the real counting rule (agent.TallyApprovals with audit.CertApprover, a stdlib CA, signed heads and CRLs) and compares the counted set with what the model's rule gives, so a rule switched off in the model fails with the property it guards and the code keeps the rule on. Each scenario also runs a positive control (the same setup with the rule satisfied) that must count or be final, and the six pre-execution configurations run through the gate's one pre-execution path and the verifier's check, which must agree. A drift guard fails when a model configuration has no scenario (the alias limit is documented, not checked) or a scenario names none. CertApprover.VerifyCertDecision is marked as model 15's Count.
  • Formal model 15 (spec/tla/identity) checks the approver-identity design's counting rule before its Go code lands: certificates with a holder, an identifier, a validity interval and a revocation effective time, a CRL series with numbers, signed journal heads, and decisions that carry a certificate, under a CA that may mis-issue, a CRL that may be withheld or rolled back, a head stamped out of order, and a decision with an earlier decided_at. It checks IdentityBound, RevocationSound, FailClosed, NoBackdate, SeatPerPerson, SeatPerIdentifier, TerminalStable, StaleNeverUncounts, NoExecAfterKnownRevocation, FinalNeedsCompleteSeries, AbsenceOnlyInWindow, TallyClean, DeadStaysOut and EventuallyCovered (coverage by a head only, not that the gate then counts the decision), with a pruning CA, a gate crash, two seats under revocation and validity intervals that start late, and each rule has a counterexample configuration that switches it off and fails with the property it guards (no freshness rule, no non-decreasing head times, no name constraints, no series coverage, no gate Anchor step, no pre-execution status check, no L(C) rule on the live count or the check, no tally recheck, no dead set). Model 1b gains a certificate-bound approver (a leaf whose validity can turn false at any step), the pre-execution status check on every path to the tool (NoExecAfterKnownRevocation, with crashes, redeploys and recovery, also for a path that skips the check), the identity re-ask that lets a replacement decision under another leaf execute after a revocation held the call (ReplacementSupersedes), and the decision relation (approver, verdict, decision time, leaf: two leaves are two decisions, two chains for one leaf are one; NoSquat, OneRecordPerDecision, each of the four fields in the name required by a configuration); its existing configurations are unchanged apart from three constants that default to nothing. modelsync now holds audit VerifyChain, EvaluateStatus and AuditedStore.Reanchor and agent.TallyApprovals to model 15's map. The models run in their own CI shards.
  • How a gate with a certificate-bound approver names its tally and asks again, in the planned approver identity feature (no run writes an exec hold yet). Such a gate records its terminal tally under approval-tally:<id>:ident (agent.ApprovalIdentTallyStep) and treats a plain-name tally that passed as superseded: the call does not run on it, Run returns *ApprovalPending with the new agent.PendingIdentReapproval, and the new count supersedes it. A valid exec hold of generation g (agent.ExecHold) supersedes the passed generation-g tally, so the gate has no outcome until it counts generation g+1 under approval-tally:<id>:ident-reask:<g+1> (agent.PendingExecHoldReapproval); a hold over a denial, with no tally under it, or of another call, generation or format is ignored. agent.RecordedTally, the gate, agent.EvaluateGate, the notifier (new event key ApprovalIdentReaskKey, decided names, journal events), agent.LatestPauseNote and ValidReaskNote (re-ask notes agent.ApprovalIdentReaskStep), the deadline check, plan Conform, and audit.ApprovalEvidence and VerifyApprovals (which now carry the superseded tallies, the holds and the notes) read the chain by one rule. A gate of bare-key approvers is unchanged. A certificate-bound gate whose count passed without excluding the requester refuses with ErrConfig if the policy then excludes it. A certificate-bound gate is also never counted with bare keys: whether a gate is bound is read from its journal (an identity tally, an exec hold, or a note with identity_bound) as well as from the policy, and a policy that lost the certificate-bound approvers or changed their kinds is refused with ErrConfig. The dead end of separation of duties turned on after a bound count wraps the new agent.ErrGateNeedsNewRun. A plan flow gate no longer takes a pass from a plain-name tally, and SupersededTallies lists the whole chain.
  • The certificate-bound decision format of the planned approver identity feature (build step 1; the gate does not use it yet, so no behaviour changes for bare-key approvers). agent.ApprovalDecisionBytesCert (bide.approval.v4) is the v3 layout plus the SHA-256 of the signer's leaf certificate (agent.CertLeafHash); agent.Decision.Cert and the record member approver_cert carry the leaf-first chain (at most 8 certificates of 16 KiB), SubmitDecision journals it and adds the leaf hash to the decision's step name, and WithDecisionCheck refuses a decision that carries one until its verifier exists. A bare-key verifier never counts a v4 signature. audit.DecisionReceipt gains cert; Verify refuses a receipt that carries a chain (audit.ErrCertificateBound), and the new VerifyCertificate(ci, logKey) checks the chain and identifier at the time of the head the receipt's own anchoring proof carries (AnchorTime), then the signature under the leaf's key. A decision's identity includes its leaf in WithDecisionCheck and HeldDecisionStep.

Changed ​

  • docs/KNOWN-LIMITATIONS.md no longer says that nothing in the approval gate uses certificate-bound approvers (it does, since the gate change), and the certificate-approvers guide links the "A person with two identifiers fills two seats" entry through its section, Approval and quorum.
  • The run viewer guide's approver identity screenshots now come from records the real certificate-bound gate writes (a real audit.CertApprover on the agent runtime, in a test that runs only on request: cmd/bide/internal/identitydemo), not hand-written ones, and show only states the gate produces: a log-signer-clock final count, a provisional live count, a gate paused for revocation status, one waiting for a covering signed head, and a call paused before execution for current status. The viewer reads the identity records' RFC 3339 times with trimmed nanoseconds (they showed as "not a canonical time") and shows a counted gate whose newest phase note says exec-hold, with no hold record and no result, as paused for current status rather than final. The Needs attention list shows the bare-key approve command only for bare-key approvers and says so (and shows none when every pending approver is certificate-bound), and the demo test reads each run back and fails unless it is the state its caption says.
  • docs/ROADMAP.md now lists only work that is not done: shipped items (approval deadlines, HSM and KMS key custody, signed releases and SBOMs, the notifier, the checked formal models, the mechanized gsm theorems) are removed, approver identity is marked in progress, and the visual builder lists bide edit as in progress.
  • The certificate verification core in audit (IdentityPolicy, CertIdentity, ApproverCert, CertError, SPKIHash, the canonicalizer types) and the agent reasons ReasonNoCert, ReasonCertChain, ReasonCertIdentity, ReasonCertUsage and ReasonCertWindow are no longer labelled "building block, not yet used by approval gates" in the SDK API reference and the stability page: since the gate change for certificate-bound approvers, approval gates use them, so they carry their packages' label (core). audit/rfc3161 keeps the building block label, since no gate or command calls it.

Fixed ​

  • scripts/release.sh no longer asks proxy.golang.org about a new module tag until the tag can be fetched directly (GOPROXY=direct, with GOSUMDB=off, so a miss caches nothing) and 300 seconds have passed since the push, then waits with growing intervals (5, 10, 15, 15 minutes) for at most 90 minutes (PW_SETTLE, PW_STEP, PW_MAX; scripts/proxy-wait.sh, also used by scripts/module-sbom.sh). In the v0.18.0 release every stage failed with "does not resolve": the proxy caches a miss for 30 to 60 minutes and polling every 30 seconds kept it fresh, so the module-sbom job gave up three minutes before the last module resolved. release.yml now gives that job a 270-minute timeout and --wait 240.
  • The store/sqlite write-fairness tests no longer fail on a heavily loaded machine: they start every writer queued on the file's gate and read the commit order from the file, instead of timing goroutines. Test change only; the internal write gate gains a Waiting count that the tests use, and its behavior is unchanged.
  • v0.18.0 did not publish the module set SBOM (bide_0.18.0_modules.sbom.json) that its release notes described: scripts/module-sbom.sh wrote the file relative to the temporary module it changes into, so the release workflow's signing step did not find it. The script is fixed in #343; the v0.18.0 release notes and docs/trust/verify-releases.md now say that v0.18.0 has no module set SBOM, and the next release carries it.

0.18.0 - 2026-10-16 ​

Added ​

  • Generated SDK API reference: docs/reference/api/ lists every exported constant, variable, function and type of every package in the published modules (the core module one page per package, every other module one page), each with its declaration and the first sentence of its doc comment, a pkg.go.dev link and a stability label (core, experimental, or building block, not yet used by approval gates, the last for audit/rfc3161 and the certificate verification core in audit). It is generated from the Go sources with the standard library only by internal/tools/apiref; TestAPIReference fails when a page is stale (go test ./internal/tools/apiref -run TestAPIReference -update rewrites them), when an exported symbol has no doc comment, or when a package has no label, and TestStabilityPage fails when the new package table in docs/trust/stability.md differs from the labels the generator uses. The docs site lists the reference in its Reference sidebar.
  • Approval deadlines: agent.ApprovalPolicy.Timeout (and timeout in a plan config's approval block) gives a gate a deadline, measured from the gate's recorded request and recorded once as approval-deadline:<call> (agent.ApprovalDeadline, agent.RecordedDeadline), so a redeploy does not move it. A gate past its deadline with no terminal count records its expiry as its outcome, insert-once under the name a passing tally or a single decision would take (ApprovalTally.Expired, ExpiresAt), so an expiry and a passing tally cannot both be recorded: the call never runs (the model reads agent.ExpiredResult; a plan flow returns plan.ErrApprovalExpired, which wraps plan.ErrApprovalDenied), a decision recorded after the deadline never counts (agent.ReasonLate), and SubmitDecision, Approve, the approvals endpoint (state expired, expires_at) and bide approve refuse a decision past it (agent.ErrApprovalExpired). agent.EvaluateGate reports Expired and Deadline. The notifier sends approval_expired and closes the pending approval with the reason expired. A decision written before a plan flow gate's request no longer blocks a single-approval gate: Approve records the real decision under the gate's second name, which the gate honours. Model 1b gains the expiry (ExpiredNeverRuns, LateNeverCounts, ExpiryAfterDeadline, OutcomeOnce, configurations ap-deadline-m-cross and ap-deadline-one-cross, regression ap-late-counts). Journal format: one new record name, and the tally and policy encodings gain optional fields, with no format version change before 1.0.
  • Two run viewer guide screenshots show approval deadlines: the Needs attention list with an overdue gate, one due soon and one due tomorrow, and a run whose gate expired. assets/demo/shots-deadline.sh regenerates them from a small journal that assets/demo/setup/deadline.go writes with the real agent runtime and a controllable clock.
  • Two runnable examples and the guide detail the v0.17.0 docs audit found missing. examples/intake mounts the approval intake (WithGatePolicy, WithAuth binding a bearer token to its approver, WithPage, OnRecorded) over an audited journal, takes a 2-of-3 refund gate with separation of duties through it, and checks the returned receipt against the signed heads; examples/notify-routing runs the notifier with routing by kind and approver, an escalation to a lead when on-call's endpoint is down, an all-clear, and a trail signed as it is written, and verifies it with audit.VerifyNotifications, which passes, fails on a trail with a record removed and reports the late acknowledgement. Both are in the root module, run offline and are tested. The approval guide now names WithRateLimit, WithGlobalRateLimit, PageFiles, PageSHA256, Handler.Wait, EvaluateGate and GateReask; the key custody guide awskms.Config.GrantTokens and azurekv.Config.HostSuffixes; the notifications guide the open trail and WithNotifyUpgradeWindow; the recovery guide that RecoverLoop re-signs runs waiting on a decision; known limitations what postgres.WithoutMigration does not check; Concepts the decision receipt; the README bide migrate; and the examples index the Azure Key Vault path of hsm-signing.
  • The viewer and the read-only builder tools show approval deadlines and separation of duties. bide view shows a waiting gate's deadline and the time left, an expired gate as expired with its deadline, and a decision written after the deadline as not counted (Gate.ExpiresAt, Timeout, Expired, Overdue, Due; runview.MarkDeadlines); the Needs attention list puts gates with a deadline first, nearest first, flags one due within the hour, and marks a gate past its deadline OVERDUE with no approve command, since it refuses decisions; bide approve -list shows the deadline too. bide view -config, plan's RenderMermaid (which now labels a gated node with its gate) and bide check -diff show each gate's timeout and exclude_principal next to its need and approvers (plan.TopologyGate.TimeoutText), and -diff classifies a timeout change: adding or shortening one is strengthened (the gate fails closed sooner), removing or lengthening it is weakened (a run can wait longer, and a late decision counts), and -fail-on-weaken exits 1 on the latter.
  • audit.IdentityPolicy and CertIdentity.VerifyChain: the certificate half of the planned certificate-bound approver identity (build step 1, not yet used by the approval gate, so no behaviour changes). Given a decision's leaf-first chain, the time the approver signed and the time the decision became provable, it accepts exactly one chain from the policy's trust anchors through pinned intermediates, with the extended key usage nested along the chain, an algorithm and key profile (RSA 3072 or better, ECDSA P-256 or P-384, Ed25519, ML-DSA-65; never SHA-1), per-key Distrust dates, one subject alternative name of the configured kind (an opaque person URI, or an email only by explicit choice) in a strict canonical form, a required certificate policy, and a leaf key whose scheme is derived from the certificate. Certificate policies nest along the chain (a CA that maps policies is refused, and RequirePolicyOnCAs optionally refuses an issuing CA with no policies), the leaf's key and extended key usages are exclusive, leaf lifetime and the proof-window tolerances have ceilings, and chains that differ only in certificates for the same keys (a renewed root) are one chain. Failures are *audit.CertError carrying one of the new agent.ReasonNoCert, ReasonCertChain, ReasonCertIdentity, ReasonCertUsage or ReasonCertWindow and the precise cause. Revocation status, the v4 decision bytes and the gate wiring follow in later changes.
  • audit.StatusSnapshot and CertIdentity.EvaluateStatus: the revocation half of the planned certificate-bound approver identity (build step 1, not yet used by the approval gate, so no behaviour changes). A snapshot reads CRLs and refuses what bide cannot read without guessing (issuing distribution points, indirect CRLs, critical extensions it does not process, SHA-1 signatures, a missing CRL number or nextUpdate, duplicate extensions, delta CRLs for now); a snapshot can be bound to its issuers (the signature is checked before the entries are built), is size-limited and evicts its oldest CRLs; evaluating an accepted chain checks every non-anchor certificate against CRLs that verify under its own issuing CA, computes the effective revocation time (the earlier of the invalidity date and the revocation time, retroactive to notBefore for a compromise with no invalidity date, with an optional grace for routine reasons), treats a listing in any CRL of the series as a revocation from its time on, reads absence only from CRLs issued after the decision and no later than the first CRL beyond notAfter, ignores status signed by a distrusted key, and reports a tier (no information, provisional, final: status reaching A plus the window over time coverage from the CRL in force at A, with L(C) needed only once the status falls after notAfter, and coverage shown by the CA's declared CAPeriod rather than by nextUpdate) with the window, the CRLs relied on and the caveat that later reports are not covered. New agent.ReasonRevoked, ReasonStatusUnknown and ReasonStatusStale. A finding is verified only when IsFinal(); its Basis says what it rests on, and a live count (CountLive, never implied by Now) is provisional at most. A snapshot can be unbounded for audits and counts its evictions.
  • Each release now signs every SBOM and publishes one more. Each archive's SPDX SBOM gets its own keyless cosign signature (<archive>.sbom.json.sigstore.json), and bide_X.Y.Z_modules.sbom.json (with its .sigstore.json) is the SBOM of the published Go module set: what an application gets with go get, built by the new scripts/module-sbom.sh from the release's consumer module (the core, every library, the commands as tools) resolved only through the public Go proxy, and checked to list every published bide module at the release's version. The release workflow's verify-signatures job verifies each per-archive SBOM's signature, and a new verify-module-sbom job verifies the module set SBOM's. docs/trust/verify-releases.md shows how to verify the SBOMs and use them (grype, a CycloneDX conversion for Dependency-Track). The actions in the release jobs that can sign (cosign-installer, the syft installer and goreleaser-action) are pinned by commit SHA.
  • A retention and archiving guide, docs/guides/retention.md, for the people who set a bank's retention policy and the operators who carry it out: the questions a policy has to answer, what each artifact is (journals, evidence packages, signed tree heads and anchor entries, decision receipts, notification trails including the open trail's segments, seals, checkpoints and yearly indexes, relay state, keys) and which of them to keep, how to archive them so bide audit still verifies them offline years later (a manifest, the pinned verifier and the formats it reads, what each verb needs), how to rotate and retire keys without breaking old verification, what deleting does against the position-based detection of deletion (checked against a real journal: whole runs can be removed consistently, records and open-trail segments cannot, and bide ships no redaction), and storage on write-once media. It names no regulation as satisfied, and points to the approver-identity design (#302) for certificate and revocation-list archiving, which is not implemented. Linked from the trust pages, the docs index and the docs-site sidebar.
  • New package audit/rfc3161: a strict, standard-library-only verifier for RFC 3161 time-stamp tokens, the independent time source that the approver identity design requires for gates above the top tier; it reads one narrow DER profile (one SignerInfo, SHA-256 or better, ECDSA P-256/P-384, RSA of 3072 bits or more, or Ed25519, the contentType, messageDigest and signingCertificateV2 signed attributes, a critical time-stamping-only TSA certificate chained to the auditor's anchors at genTime) and refuses everything else with a named Reason, checked against OpenSSL ts and DigiCert tokens, differentially against openssl ts -verify, with a negative vector per refusal, a fuzz target and a fixed mutation budget; it is not called by any command or gate yet, and tokens from DigiCert, GlobalSign, QuoVadis, SSL.com, Microsoft and SwissSign verify by default, tokens from Sectigo, Entrust and FreeTSA (SHA-1 signingCertificate only) verify only with the opt-in, off-by-default per-TSA Policy.AllowESSV1 (the result is labelled ESSV1), and Apple's (SHA-1 digest algorithm) never.

Changed ​

  • Documentation catch-up for the unreleased approval deadlines and gate diff work. docs/GUARANTEE.md now states the expiry rule (a gate with a Timeout reads its request time and the run's clock; the expiry is insert-once like a pass, so whichever outcome is recorded first stands; an expired gate never runs its call; a decision after the deadline does not count; a recorded deadline is not moved by a redeploy), docs/CONCEPTS.md gains an approval deadline entry, the tour and its four translations gain a deadlines paragraph and the weakened-policy list for bide check -diff, the translated READMEs match the English run viewer entry, the refund recipe and getting started mention deadlines, SECURITY.md mentions the signed SBOMs, and examples/approval/flow sets timeout: 48h on its gate (with a test that the deadline is recorded). The godoc of audit/rfc3161 and audit.IdentityPolicy now says no gate uses them yet.
  • The four translated READMEs now carry what the English README has: the Run viewer entry with its Needs attention list, the paragraph on deciding from a terminal and checking that people were told (with decision receipts and bide audit verify-receipts), and the CLI reference and module structure links; and the English tour and its four translations have a stop each for separation of duties (ExcludePrincipal), bide approve and notifier routing and escalation, scoped like the guides they link. Documentation only.
  • agent.Notifier is now documented to be called from several goroutines at once, and a custom Notifier must be safe for concurrent use. The engine has always run the rounds of different events concurrently (up to eight at a time, and an event alongside the steps of its escalation chain), so a Notifier that keeps an unguarded counter, map or buffer has a data race; check yours and guard its state with a mutex or atomics. One event still has at most one call in flight, except that a call abandoned at its time limit may still be running when the next is made. bide's own notifiers (notify.Webhook, the relay's Slack and PagerDuty sinks) hold no per-call state and are tested under the race detector with concurrent calls.
  • The run viewer guide's expired-gate screenshot now shows the approvers and the timeline of a gate that expired while a second approval, stamped before the deadline, was written after the expiry, which the page labels "not counted: written after the gate expired"; check -diff -check has a light screenshot beside the dark one, embedded in the run viewer and plan flows guides with <picture>. assets/demo/cli.sh takes THEME=light and ONLY=<shot> and writes optimized PNGs, and assets/demo/setup/deadline.go writes the late-written decision.

Fixed ​

  • The approve page's DOM tests (approvals/page/test) no longer sleep a fixed 200 ms for the page to load the call: they wait until the page shows the call or says why not. On a slow Windows runner the fixed sleep ended before the page had rendered, which failed the check that every argument is on display once in CI; the page itself was not at fault and ships unchanged.
  • bide check -diff closes four gaps in how it compares assert lines. An assert line that held and now holds only vacuously (no terminal, or no path to its node, as when a new edge makes the flow cyclic) is reported as weakened; plan.AssertionResult gains Vacuous (set for such a hold, with a message saying why), and bide view -config shows holds vacuously. A line written twice is one assertion, with one weakened entry and one change line. Respelling a node name in quotes (or spacing) is no change in any assertion form, where only the approval form was recognised before (plan.CompareAssertions; plan.RenameAssertion writes a line with its node names renamed and quoted). A node renamed together with its assert line is a rename, not a removed assertion: the line follows the node the diff pairs as renamed, is still decided under the new name, and a rename the check is not sure of (its edges changed too) still reads as removed.
  • bide check -diff (and planview.CheckDiff) now reports weakenings it missed, and -fail-on-weaken exits 1 on them. Behaviour change: a node that may have an effect (safety side_effect, or not stated) and is reachable without an approval gate, when it was not such a node before, is now a weakening, whether through a new arm around a gate, a gate removed upstream, a raised or dropped safety, or as a new node, so a config that leaves safety out will see -fail-on-weaken fail on new or changed unknown-safety nodes; state safety: readonly where it holds (the example refund flows now do). Also reported: an assert line removed or loosened (an approval assertion with a lower K, a larger N, or without excluding the requester; a tightened one is a strengthening); a Switch arm condition changed beside an arm that leads to an ungated effect (predicates are not readable, so it asks for a review); and, without a plan.Registry, a block changed on an ungated effect node. A node renamed with the same block, safety and edges is reported as renamed (with its gate change, if any), not as a removed node and a new one. DiffView and each Change gain a weakening field (gate, path, block, condition or assertion), the page's verdict reads SAFETY CHECK WEAKENED when no gate policy itself was weakened, and plan gains CompareAssertions and ConfigReport.UngatedPath.
  • bide check -diff (and planview.CheckDiff) now reports an assert line that the new config keeps as it was but that no longer holds as a weakening: a line that held in the old config and is now violated (with the counterexample path), cannot be decided, or no longer reads makes -fail-on-weaken exit 1 and the page read SAFETY CHECK WEAKENED. Before, only a removed or loosened line was reported, so a new arm around a gate left every path to charge passes approval >= 2 of 3 as written and false, and the diff said nothing. A line that did not hold before is not reported.
  • bide check -diff -fail-on-weaken (and planview.CheckDiff) now exits 1 when a change makes a node reachable around an approval gate whatever the node's safety: any node that every path reached through an approval gate before, and that some path now reaches without one, is reported as weakened, with the node, its safety and the shortest ungated path. Before, only nodes labeled side_effect or not stated counted, so an idempotent node that moves money, or the same edit relabeling the node readonly and adding the bypass, exited 0. A safety moved toward read-only (side effect or unknown to idempotent or read-only, idempotent to read-only) is itself reported as weakened (Change.Weakening gains safety), the old label counts as well as the new one in the effect checks (the new-effect rule and the Switch-arm rule), and a node renamed together with a safety change is still paired as the same node and judged on both; a new node that shares a removed node's block and kind is also judged against it, and a new node reachable without a gate that uses a block every node used only behind a gate before is reported whatever its name and label. A configuration that wires a read-only node in around a gate will now see -fail-on-weaken fail where it did not.
  • doccheck now checks that every relative link in README.md, examples/README.md and docs/ names a file that exists and, with a #fragment, a heading that exists (doccheck -links runs only this, on every pull request including documentation-only ones, because the docs site sets ignoreDeadLinks). It found two broken links, in the notifications and approval guides, now fixed. The trust page on stability now names evidence format bide.audit.evidence.v6 (it said v5), states that a v5 package still verifies, and lists the decision receipt and notification trail export tags; the v0.17.0 release notes no longer say the approval intake requires WithAuth (only WithPage and WithCORS do), approvals.New's godoc says that WithGatePolicy is required, and the docs index and README link the bide-hsm reference and list every bide command.
  • A notification call that had returned could still be counted as in flight for a moment, so a retry made at once in the same round was refused as "an earlier call was abandoned" although nothing was abandoned. The attempt was lost: the sink saw one call fewer than the round made, and a sink that fails a fixed number of calls then failed a later, unrelated notification instead (seen on Windows, where it made a test see an all-clear delivered twice, the first attempt having failed). The engine now records that a call is over before it hands the answer back, so the next call is never refused spuriously; a call that really is stuck is still not repeated until it returns.
  • TestStartFailureStopsTheCommand (the bide sample test helper) could fail on a loaded runner with "1 bide sample command(s) still running after the failed start": its running count was decremented by a deferred call that runs after the exit status is sent, so the test could read the count in between. The count now drops before the status is sent. Test code only.
  • The bide sample tests (TestServe, TestLive) waited 20 seconds for the viewer to come up, which a loaded Windows runner did not always meet, and on that failure left bide sample running over the test directory, so its cleanup failed with a sharing violation on sample.db. They now wait up to two minutes for the printed address, and every path stops the command and waits for it to return before the directory is removed; a test covers the failed start.
  • The SQLite store's and the shared store suite's timing assumptions no longer break on a slow disk: the lease-under-load test sizes its TTL from the commit time it measures and tells a disk stall from a starved renewal, the suite's "writes inside a Runs loop" deadline scales with the store's measured write cost (a shared Windows runner took 30ms and more per commit, which exceeded the fixed one minute), and docs/KNOWN-LIMITATIONS.md and the AcquireLease godoc now say that a lease TTL must exceed the disk's worst commit latency, since a renewal is a committed write that cannot finish faster than the disk.
  • Two places released a resource after handing the result to a caller that could act on it at once. audit.AuditedEventStore held a trail's slot until a deferred release ran after the head's answer was sent, so a caller that published the next head right away could find the slot taken; the slot is now released before the answer. agent.RecoverLoop called the WithRecoverErrors handler while the failing run still held its slot and in-flight mark, so a handler that waited on other work (with a small WithRecoverConcurrency) stalled it; the handler now runs after both are released. A new repository check, internal/tools/sendcheck, fails the Lint job when a goroutine sends or closes a result and only then runs a deferred decrement, release or unlock, with an allowlist for the orders that are safe, each with its reason. A flush of the notifier (FlushNotifications, RunNotifier.Flush) called from inside the WithNotifyErrors handler used to wait for the round that was calling the handler, a deadlock; it now returns an error wrapping ErrConfig at once, and the WithNotifyErrors godoc and the notifications guide say the handler must be short and must not flush.
  • bide check, bide view -config and the YAML flow of a bide init project now refuse a YAML flow config that holds more than one document (error more than one YAML document), where the converter read the first document and silently ignored the rest, so a second flow or policy in the same file was read by no check and no loader; the JSON path already refused data after the value. This is a behaviour change: a multi-document YAML flow file that was accepted is now an error, and a leading --- with a closing ... is still one document. Programs that convert YAML themselves (as the scaffold did) should decode with a yaml.Decoder and require the next decode to return io.EOF.

0.17.0 - 2026-10-15 ​

Added ​

  • agent.EvaluateGate says where an approval gate stands on a call (waiting, decided, single, ungated, or misconfigured, with the tally, the classification of each decision and why a gate asks again), reading the journal, the live policy and the approver verifiers exactly as the agent's own gate does: the gate's counting is now one function (countGate) used by both, and agent.GateReask is the rule for a recorded tally the gate supersedes. bide view uses GateReask. No behavior of the gate changes.
  • Separation of duties for m-of-n approval gates: agent.ApprovalPolicy.ExcludePrincipal (a flow config's approval: {..., exclude_principal: true}) makes the gate never count a decision by a requester of the run, its journaled principal (Identity.OnBehalfOf) or that of any run above it (a sub-agent's, a delegation's, a flow started from a tool), compared ignoring ASCII case, with agent.ReasonRequester; the tally records ExcludePrincipal, Requesters and the excluded approvers in Excluded, and the gate refuses with ErrConfig a run with no requester or an ancestor that records none, a requester that is not printable ASCII, a principal journaled after the call's request (a run an earlier version started), or a policy whose Need is out of reach without the requesters; a passing tally recorded without the exclusion does not decide a gate whose policy now excludes the requester (it asks again, agent.PendingSoDReapproval, and records agent.ApprovalSoDRetallyStep), and a recorded excluding tally must name the run's requesters. A run's first drive now records run:principal (agent.RunPrincipal: its principal and its ancestors', nothing of its input) before run:start, which also records the ancestors (RunStart.Ancestors); plan.Flow.Run now takes agent.WithIdentity (any other run option is ErrConfig), and a plan flow run journals the principal of that identity, or of the one its context carries, and a later flow drive under another principal is ErrConfig (a flow run recorded with none, as every earlier one was, keeps none). audit.ApprovalEvidence discloses the run's run:principal (not its run:start) for such a gate, audit.VerifyApprovals recounts with the same exclusion (ApprovalVerdict.Requesters), bide audit verify-approvals and bide view take -exclude-principal, bide approve refuses a requester's decision and counts under the exclusion, bide view marks a requester's card as excluded, the approval notification lists the excluded approvers (approval.excluded), and a config diff reports dropping the exclusion as a weakened gate, the flow assertion every path to X passes approval >= K of N excluding the requester checks it on the graph, model 1b checks SeparationOfDuties up a delegation chain, and examples/approval/makerchecker runs a maker-checker refund. New exported API: agent.RunPrincipal, agent.ApprovalSoDRetallyStep, agent.SupersededTallies, agent.PendingSoDReapproval, agent.SameApprover, agent.NotifyApproval.Excluded, agent.RecordedPrincipal, agent.IsRunPrincipal, agent.ReasonRequester, agent.ReasonNoRequester, plan.TopologyGate.ExcludePrincipal.
  • A gate that asks again over a recorded tally it does not act on (one that predates bide.approval.v3, or one that passed without excluding the requester under a policy that now excludes it) records a re-ask note, approval-pending:<id>:v3 or :sod (agent.ApprovalReaskStep): an agent.ApprovalWait with the policy it asks under, why (Reask) and the tally it asks over (Supersedes), written only if absent by every drive that pauses at the re-ask. bide view, bide approve, the approvals intake's note fallback, notifications and audit.ApprovalEvidence read the newest note (agent.LatestPauseNote), so after a redeploy adds ExcludePrincipal and a crash leaves a passing tally under the old policy, the CLI and the viewer show the gate waiting for the re-approval and take the approvals it needs. A re-ask notifies as an event of its own (agent.ApprovalReaskKey, NotifyApproval.Reask, reask in the webhook payload), audit.ApprovalVerdict gains Reask and ReaskedAt, and plan.Flow.Conform accepts re-ask notes. A re-ask note counts only where the journal proves it (agent.ValidReaskNote: a recorded tally the gate would ask again over, which the note names), so a note pre-inserted by a journal writer without approver keys is ignored by every reader, and the notifier's catch-up scan, escalations and agent.JournalNotifyEvents (so audit.VerifyNotifications) keep the re-ask's own key and question. The record is additive: earlier readers ignore it, except an earlier Conform, which reports it as unexpected.
  • The approval intake has a browser page: an approver opens a link from a notification, sees the call, and signs a decision with an Ed25519 key held non-extractable in the browser (WebCrypto, IndexedDB). The page computes the SHA-256 of the canonical arguments itself from what it displays and signs that, signs nothing if the call or its gate changes between the display and the signature, and checks the receipt the endpoint returns. approvals.PageFiles and go run github.com/bide-ai/bide/approvals/cmd/approvepage give a deterministic bundle with published hashes for an organization to host on an origin of its own; approvals.WithCORS lets that origin call the intake (the preflight is answered before authentication); approvals.WithPage serves it from the application for development and says so on its face. Both need WithAuth. The canonical-arguments encoding and the decision bytes have golden vectors generated by Go (agent/testdata/canonical_args_vectors.json) that the page's script is tested against. The page shows every argument (none is clipped), shows a re-asked gate's reason, and offers no decision on a gate the endpoint reports as error, single or decided; its requests carry the page origin's credentials, and config.json can ask for include with approvals.WithCORSCredentials for a cookie or a client certificate cross-origin; the CORS preflight is rate limited and answered without waiting for a body; the browser's CSP block of a changed config.json intake is reported. Passkeys (WebAuthn) are a separate, later design; gates for high-value actions should wait for them. A CI job (Page mTLS (Chrome)) drives the page in real Chrome on Linux with a TLS client certificate, same-origin and cross-origin with credentials include (approvals/page_mtls_test.go).
  • Package approvals is an http.Handler an application mounts to take approvers' signed decisions over HTTP: GET /pending shows a gated call from the journal (tool, arguments, the arguments' SHA-256, the gate), and POST /decisions verifies a signed decision against the recorded call and the approver's enrolled key, then records it through the application's own journal, so an audit.AuditedStore signs it as it is written, and answers the gate's standing (from the gate's recorded tally once it has settled, with separation of duties honored), whether the decision counts, and its receipt. WithGatePolicy is required and gives the handler each tool's live policy; the handler evaluates the gate with the new agent.EvaluateGate, the function the agent's own gate evaluates with (a gate the gate would refuse is state error and 409 gate_misconfigured, a one-decision gate is state single), so a policy changed after the first pause (ExcludePrincipal turned on) is honored and the new approvals are not refused as not_waiting. A gate that asks again (its recorded tally passed on decisions of an earlier format, or without excluding a requester the policy now excludes) is waiting, not decided. Every response sent without reading a request body (a refusal, a 404 or 405, a GET that carries one) closes the connection instead of waiting for the body, and every path, those that route to nothing included, is rate limited; IPv6 clients are limited by their /64; the authorization hook's two calls for a POST are told apart by Access.Phase. A POST is authorized from its headers before its body is read, the body is read in a bounded pool under a deadline, and only then does the request take a slot for work on the journal; requests are strict JSON, size-bounded, rate limited per client and overall, and capped in concurrent work; WithAuth takes a mutual-TLS or identity check; a replay is a no-op; OnRecorded runs once for the request that wrote the decision and whose record the gate counts (a randomized signature can journal one decision twice under a racing retry; the duplicate is superseded), to re-run the run. It adds agent.DecisionStep (the journal name of a decision), agent.RootRunID, and agent.ReportWritten (an option for SubmitDecision that says whether this call's insert stored the record, so of concurrent identical submissions exactly one acts). Single-approver gates and plan flow node gates are refused.
  • audit.DecisionReceipt (format bide.audit.decision-receipt.v1, audit.ReceiptFormat) is the signed decision an approver keeps, with the journal record's name and position and when it was recorded, and no key material: NewDecisionReceipt makes one, Verify checks it on its own, and audit.CheckReceipt decides whether the signed tree heads of the journal commit to the decision, as anchored, redacted (anchored), pending, receipt not matched by the journal, decision deleted after signing (only for a receipt with an anchoring proof, AnchorReceipt) or unchecked, by the receipt's journal position and never by time. bide audit verify-receipts runs it from files and, with -update, stores the anchoring proof in each receipt, and bide approve writes a receipt for each signed decision (-receipt) and checks one with -verify-receipt.
  • audit.ErrRootMismatch is a new sentinel wrapped by the error of a proof whose signed tree head's root is not the root of the run's journal (the message is unchanged); bide demo uses it to explain a failed verification in plain words.
  • bide-hsm takes an azurekv:https://<vault>.vault.azure.net/keys/<name>/<32-hex-version> key reference for an approver key in Azure Key Vault or Managed HSM: the version is pinned (a base identifier, a port, credentials, a query, a fragment, an upper-case host or a host outside the Azure public, China and US Government Key Vault suffixes is refused, and the error repeats no value from the reference), the key is ECDSA P-256 (-alg ed25519 is refused), only an HSM-protected key is used unless -allow-software-key, and credentials are the Azure SDK's default chain. Tested against the Azure SDK's fake Key Vault server in the test-only module cmd/bide/bide-hsm/azuretest, never against Azure.
  • bide-hsm takes a gcpkms:projects/<p>/locations/<l>/keyRings/<r>/cryptoKeys/<k>/cryptoKeyVersions/<n> key reference for an approver key in Google Cloud KMS: the numeric version is pinned (an alias, latest, a query or a malformed name is refused, and the error repeats no value from the reference), credentials are Google's application default credentials, only an HSM-backed version is used unless -allow-software-key (Cloud KMS has no HSM-backed Ed25519 key, and bide-hsm approve says beside the key when it is at protection level SOFTWARE), and -verify-attestation requires the version's Cloud HSM attestation. Tested against gcp-kms-emulator v0.10.0 in the test process (in the test-only module cmd/bide/bide-hsm/emulatortest, which keeps the emulator out of bide-hsm's module graph), never against Google Cloud.
  • bide-hsm, a companion to bide approve for approvers whose signing keys are in an HSM, on a smart card or token, or in AWS KMS: bide-hsm approve is the same command (one implementation of the display, confirmation, signature, record and receipt) with -key naming the key by an RFC 7512 pkcs11: URI or an awskms: key ARN, and bide-hsm pubkey prints the -approver-keys entry that enrols it. References are parsed strictly (a PIN in the URI, an unknown attribute or a repeated one is refused, and no error repeats a value from the reference), the PIN comes from a file, an environment variable or a prompt on the controlling terminal (never a pipe), the token's own PIN pad (pin-source=protected), and a PKCS#11 key the token does not mark non-extractable is refused unless -allow-extractable. It is its own module under cmd/bide and needs cgo for PKCS#11 keys, so the bide binary stays pure Go and reproducible; it is installed from source (go install github.com/bide-ai/bide/cmd/bide/bide-hsm@latest), not in the release archives, and is tested against SoftHSM2 and a fake KMS client only.
  • bide approve records your signed approval, or with -reject a rejection, of a call that waits at an approval gate: it reads the run, tool, arguments and gate from the journal (SQLite -db, or Postgres by -postgres-env), shows the SHA-256 of the arguments the signature binds, asks you to confirm (it will not sign arguments longer than its view unless -full shows them all), signs with your Ed25519 key and records the decision with agent.SubmitDecision (agent.Approve for a single-approver gate, unsigned). It refuses a call with no waiting gate, a gate already decided, an approver not in the policy, an approver who already decided, and on Unix a key file readable by group or others; an m-of-n decision requires -approver-keys (the enrolled public keys, the file bide view reads), refuses a key that is not the one enrolled and verifies the tally, and -unverified opts out with a warning and an unverified tally. bide approve -list lists the waiting calls with the command that decides each, and bide keygen creates an approver key pair (mode 0600, never overwritten; -alg picks ed25519, ml-dsa-65 or the ed25519+ml-dsa-65 hybrid) and prints the public key policies and verifiers read. Both commands hold the key as an audit.Signer.
  • bide approve -to <url> (and bide-hsm approve -to) decides through an application's approval intake (approvals.Handler) instead of writing a journal: it fetches the pending call from the endpoint, shows it, signs the digest of the arguments it computed from what it showed (and refuses an endpoint whose own digest differs, or whose tool, arguments or gate differ after the confirmation), and posts the decision, so the application records it through its own journal and its audit log signs it as it is written. A decision the endpoint says does not count is a failure, as in the local flow. The URL must be https (http only to loopback), a redirect is not followed, and -tls-ca, -client-cert with -client-key, and -token-env cover a private CA, mutual TLS and a bearer token. The endpoint returns the decision's receipt, which the command checks against what it signed, and refuses if it carries an anchoring proof, before writing it.
  • audit signs and verifies with ECDSA P-256 (ecdsa-p256, audit.ECDSAP256Signer) beside Ed25519, ML-DSA-65 and the hybrid, for the HSMs and cloud KMS (AWS KMS, Azure Key Vault, PKCS#11) that cannot sign Ed25519: SHA-256 over the message, a 64-byte low-S r || s signature (a high-S or non-canonical one is refused), and a 65-byte uncompressed SEC1 public key written ecdsa-p256:<hex>, with ECDSAP256SignatureFromDER, ECDSAP256SignatureFromRaw and ECDSAP256PublicKeyFromSPKI for adapters; it works for approval decisions, tree heads, evidence, run certificates and grants, in the standalone audit/verify package and in every -pubkey and -approver-keys flag of bide audit and bide view. P-256 is not a hybrid half, and hybrid post-quantum keys inside an HSM stay deferred. No format changes for this: the scheme is a string in each artifact, and an older verifier refuses an ecdsa-p256 artifact as malformed.
  • The records that resolve something a person was told about now note when they were written (recorded_at, Record.RecordedAt, canonical RFC 3339 UTC to the millisecond): a single approver's decision (agent.Approve, which now takes WithClock), an interrupt answer and a signal (AnswerInterrupt and Signal, which take WithClock too), the result agent.ResolveHalt injects (the resolver signs nothing, so the time is the writing process's unsigned claim), a run's run:complete, run:aborted and run:cancelled markers and a saga's run:cancel-requested (agent.Cancel now takes WithClock; agent.Status reports RunStatus.EndedAt). The clock is WithClock, else the run's, else the wall clock; the first write sets the time. It is informational like started_at: no gate, claim, replay or recovery pass reads it, the journal format tag is unchanged, a record from an earlier version has none and is reported as having none, and a clock with no canonical form records none. bide view places these records on the timeline and shows the end and resolution times in the verdict, the ended_at and event recorded_at in its JSON view; bide audit verify prints a proven record's time and bide audit verify-evidence adds it to a tool call's or step's line. bide audit notifications now judges an all-clear owed for a single-approver gate or a ResolveHalt-resolved halt against -grace from that record's time, so all_clear_untimed is reported only for a journal an earlier version wrote; agent.JournalNotifyEvents returns a ResolveHalt-resolved halt as an event that is no longer current. Behaviour change: a ResolveHalt-resolved halt that the trail never observed is now reported as the warning unobserved_resolved, so bide audit notifications -strict can fail on journals that passed before.
  • bide keygen -alg ecdsa-p256 creates an ECDSA P-256 approver key (the file holds ecdsa-p256: and the 32-byte private scalar as hex, mode 0600), and bide approve signs with it, so an approver can use the scheme their HSM or cloud KMS signs; a key file whose scalar is zero or not below the group order is refused without echoing it.
  • The notifier now sends an all-clear. When an outcome_unknown, approval_pending or recovery_failing event that a receiver was, or may have been, told of stops being current (the halt was resolved, the gate decided, the run ended, recovery recovered), a resolved notification (agent.NotificationResolved) is delivered with the same audited claim and acknowledgement trail, at-least-once delivery, stable ID and retry as any event, so a PagerDuty incident, ticket or Slack thread can be closed. It names the event it ends in Notification.Clears (Key, ID, Kind) and the reason in Notification.Reason; in the webhook payload that is a clears object (id, key, kind, null on every other kind) and the existing reason field, and deadline_at is null. The ID of the event is final: a receiver treats every delivery of that ID, before or after the all-clear, as superseded, which is how an all-clear that arrives first is matched. It is never overdue (no deadline, no overdue notice) and is retried like any delivery. An event never claimed, and run_aborted, get none. It is found by a scan of the run's trail after every drive of a root run, every recovery pass and every unfinished run NotifyPending lists (one trail read each, off the drive's path), and, for a run that completed while nobody scanned, through the new open trail (watch and unwatch records, written before an event is observed and when nothing more is owed) that every sweep, Recover pass and RecoverLoop pass reads; it is kept in daily sealed segments notify:@open:<date> with checkpoints and a yearly index, so a read does not grow with history, and the first sweep or recovery pass lists events observed before it existed. A plan flow's run is now its own root on both the hook path and the sweep, so a flow whose ID holds a > files its gate under one trail. The observed record of a halt or approval gains op_run, op_kind and op_id (additive), so an ID too long to encode in the key can still be checked. Receivers that treated every webhook POST as a new alert should filter on kind. TLA+ model 14 gains the all-clear (Clears, key r_<event>) with its safety and liveness properties, regression configurations and the ordering limit (limits/clear-before-event). The open trail is verified for its time: every record is dated in its segment's UTC day, a seal may not skip an indexed segment, an index names segments of its year, and each segment is indexed in the index of its own year even when a writer repairs a gap. An open-trail record written by a process whose clock is behind its segment (another process's clock ran ahead and sealed into a later day) has its time moved later, never earlier, and keeps its own clock reading in a new clock_at field, which the verifier checks. During a rolling upgrade, any scan lists an event an older process delivered without listing it, and a second backfill pass after WithNotifyUpgradeWindow (a day by default; set it to how long your staged rollout takes) after the first (the first pass records the window in backfill_window, the checkpoint carries it with backfills and backfill_at, and the verifier requires the second pass no earlier than the first plus that window) lists what no scan reached. A panic in a NotifyTrail or Notifier now fails the round or call instead of the process, and a flush stops waiting for the catch-up scans and the backfill after ten seconds, so a slow trail store cannot hold a Recover pass.
  • The notifier routes events and escalates the ones nobody handles. agent.WithNotifyReceiver names additional receivers (each its own Notifier, typically its own webhook and relay), WithNotifyRoute sends an event kind to one (approvals to the approvers' channel, halts and recovery failures to on-call), and WithNotifyApproverRoute routes an approval by approver ID; a gate whose approvers map to several receivers is delivered to each under its own key (to:<receiver>:<key>), so one receiver's acknowledgement never stands for another's. An approver with no route is reached through the route of the kind, which is delivered to as well when any approver of the gate is unrouted. WithNotifyEscalation gives outcome_unknown, approval_pending and recovery_failing a chain of up to four steps: when the event is not acknowledged by its deadline (an approval: not decided by it) the next receiver is told in an escalated notification (agent.NotificationEscalated, Notification.Escalates) with a deadline of its own, and the chain stops when the event stops being current or, for an event that is not an approval, is acknowledged; receivers already told get the all-clear. Routing lives in the engine and not in a fan-out Notifier, so every receiver has its own audited observed, claimed and acked records, retries and overdue in the run's one trail. The trail gains two additive observed fields, receiver (empty for the default receiver, so trails written without routing are unchanged) and level, the event kind escalated and the keys to:<receiver>:<key> and escalated:<level>:<key>; NotifyEvent.Receiver, NotifyEvent.Level and NotifyState.ByReceiver read them. The webhook payload gains receiver and escalates (null on every other kind). TLA+ model 14 gains routing (two receivers of one gate) and escalation (Levels, EscMode) with their safety and liveness properties, and regression configurations for a shared acknowledgement, an early step, a skipped step, a step after an acknowledgement, no escalation and a step that outlives its event.
  • bide notify sets up and tests the webhook notifier. bide notify test sends one signed sample notification to a receiver through the notifier's own code path (payload, signature, TLS 1.2+, private CA, key pin, mutual TLS) and reports the TLS handshake, the HTTP status, whether the receiver acknowledged and the timing, with a next step for each failure; bide notify listen is a local HTTPS receiver with a self-signed certificate (it prints the CA file and pin) that verifies each request with notify.Verify and prints the event; bide notify relay verifies bide's webhooks and forwards them to Slack (a Block Kit message with the run, kind, summary, deadline and a viewer link) and PagerDuty (Events API v2 trigger keyed by the event ID, and a resolve on the all-clear resolved kind using its clears.id). The relay answers 502 when a forward fails so the notifier retries, drops redeliveries by delivery ID in a bounded cache, retries only the destination that failed, drops a trigger whose event it already saw cleared, never forwards error text or tool arguments, and never logs a secret or a webhook URL. Secrets are read from an environment variable or a file, never a flag. The relay is also a library, package notify/relay (relay.Handler, relay.Sink, relay.NewSlack, relay.NewPagerDuty), and notify.Webhook.Probe reports a delivery's handshake, status and timing for tools that test a receiver.
  • The notifier can now sign and anchor its notification trail as it is written: wrap the trail's event store in audit.NewAuditedEventStore(store, signer, anchor) (new) and each growth of a run's trail publishes a signed tree head (kind events, run ID the trail's name, the head audit.SignNotifyTrail signs) with the same audit.Signer and audit.Anchor as a journal, so HSM, KMS and P-256 signers work unchanged. Publishing is a background, best-effort side channel: a publish failure or a hung anchor never fails or delays a delivery or an acknowledgement (one attempt is abandoned after WithTimeout, default 3s, and a failure pauses publishing for WithCooldown, default 30s), failures go to OnError, heads only grow per trail, and Flush, Reanchor and ReanchorPending publish what an outage left out. NotifyPending, RecoverLoop, Recover and FlushNotifications sign again any trail (the open trail's segments and index and the digest's trail included) that grew past its last head through the new optional agent.NotifyTrailAnchorer (implemented by audit.NotifyTrail). bide audit notifications now takes any number of -sth heads per trail (each must verify and match a prefix; the newest is used), reports how many records follow the newest head and how long the oldest has gone unattested, and fails a gap older than the new -max-unattested; audit.NotifyVerifyInput.MaxTailAge and the Heads, TailSince and TailAge report fields are new. Model 14 is unchanged: anchoring is outside the delivery protocol.
  • bide audit notifications and audit.VerifyNotifications check offline that every event that needed a person was notified and acknowledged, and when. The notification trail is read strictly (an unknown record kind or field is an error, not skipped) and must be a history a notifier writes (an event observed once and first, nothing after its acknowledgement or clearing, an acknowledgement after a claim, in-order times); with a signed tree head over the trail (audit.SignNotifyTrail, new, and audit.ExportNotifyTrail, format bide.audit.notify-trail-export.v1) a deleted, reordered or changed record is found, and a trail with no head is reported UNANCHORED (the notifier does not sign its trail; -unanchored accepts one). Each event gets a verdict: acked with its times, attempts and authentication, acked_late, pending, failing, overdue, cleared_before_notification, cleared_unacknowledged, never_notified; the run journals are cross-checked (agent.JournalNotifyEvents, new) so an approval gate, unknown-outcome halt or aborted run with no notify record is never_notified, and an overdue record without its notice, a long recovery failure episode without its event and a clearing without its all-clear are caught the same way. A gate decided by m-of-n decisions whose all-clear is missing past -grace of the newest decision's recorded_at is never_notified; one whose resolution the journal does not time is the warning all_clear_untimed, like unobserved_resolved (a decided gate no notifier observed), and -strict (library: Strict) fails the audit on either. The verb exits 1 on acked_late, overdue and never_notified and takes -max-ack as a bound; -db and -postgres-env (a variable holding the DSN) read every run, or -run, from a store in the full bide command, and the audit-only build reads exported files.
  • postgres.WithoutMigration opens the Postgres store (and New) without running the schema migration, so the application's database role needs no CREATE on the schema: it verifies the schema and refuses a missing one (postgres.ErrSchemaMissing) or one at another version (postgres.ErrSchemaVersion) without creating or altering anything. postgres.Migrate and MigrateDB run the migration on its own and report the schema version before and after, what they created and the SQL (postgres.WithDryRun rolls it back), and the new bide migrate -postgres-env VAR [-schema S] [-dry-run] command runs it as the owner role with the DSN read from the environment. OpenReadOnly now returns the same typed errors. Every way of opening the store, and Migrate after migrating, now also checks each table's columns (type, NOT NULL, a deterministic collation), the lease indexes' definitions, that no generated or identity column, extra unique index or CHECK, EXCLUDE or foreign-key constraint, trigger, rule, row-level security, partition or inheritance affects the tables (each must be an ordinary table), in both Postgres modules, and refuses a schema that differs (agent.ErrConfig); a database that was altered that way is now refused at open. bide migrate requires -schema and redacts a URL or keyword-form DSN from errors. The Postgres store guide (docs/guides/postgres.md) documents the owner, application and reader roles; the governed log has the same split (postgreslog.WithoutMigration, postgreslog.Migrate, postgreslog.ErrSchemaMissing), and the log now records a schema version in governed_events_schema_version (a log without the table is version 1, and Migrate or a migrating Open adds it) and refuses another with postgreslog.ErrSchemaVersion. bide migrate, bide approve and bide doctor now refuse a -postgres-env value that is not an environment variable name (a DSN given by mistake) as a usage error that does not echo it, via the new approveline.ValidEnvName.
  • agent.RecoverLoop and agent.Recover re-sign a run whose drive ended waiting on an approval or a halt resolution, including each of several joined pauses from parallel sub-agents (agent.Reanchorer, implemented by audit.AuditedStore, found through Unwrap; agent.WithReanchor names another function or turns it off; agent.WithReanchorTimeout, half the lease TTL by default, bounds each call so a hung anchor cannot hold a lease and a slot), so a decision another process wrote straight into the database is under a signed tree head within one pass instead of at the application's next write to the run. audit.CheckDecisionCoverage and bide audit verify-decision-coverage check a journal export against signed heads and flag a decision no head covers past a bound stated in journal positions (-max-records) or, as the weaker basis, age (-max-age, under which a decision with no recorded time is over the bound); a head the log key signed for the run that does not match the export is divergent and fails the check, so a deleted or truncated decision cannot pass.
  • Each release publishes the approve page bundle's SHA-256 sums, approve-page.SHA256SUMS (the SHA256SUMS that go run ./approvals/cmd/approvepage -out <dir> writes), signed keylessly with cosign like checksums.txt (approve-page.SHA256SUMS.sigstore.json), because Subresource Integrity pins the page's script and stylesheet but cannot pin its entry document. The release workflow builds the bundle from the tag and checks it, the verify-signatures job verifies the signature, and the repro job rebuilds the bundle on macOS and fails unless its sums equal the published ones. docs/trust/verify-releases.md shows how an organization that hosts the page checks the files it serves against them.
  • Audit-log and approver signing keys can live in Azure Key Vault or Managed HSM: the new module signer/azurekv signs ECDSA P-256 only (Key Vault has no Ed25519), sending the SHA-256 digest with ES256, folding the service's 64-byte r||s to the low-S form audit verifies and checking every signature against the key's public key, with one self-test signature at open. It pins a full key identifier with its version (a version-less identifier is refused) and refuses a key that is disabled, expired, not yet valid, without the sign operation, exportable or on another curve; an HSM-protected key (EC-HSM, or any Managed HSM key) is required unless Config.AllowSoftwareKey is set. Credentials come from azidentity only, and errors carry only the operation, HTTP status and Azure error code, never a response body or token. It is tested against a fake client and the Azure SDK's in-process fake server, never against Azure; examples/hsm-signing gains BIDE_AZURE_KEY_ID. See the key custody guide.
  • gcpkms.Config.VerifyAttestation makes the Google Cloud KMS signer verify the Cloud HSM attestation of its key version at Open, following Google's reference verifier: the manufacturer (Marvell) and owner (Google) certificate chains must build from pinned roots, both partition certificates must verify the attestation signature, and one attested EC object must carry the public key GetPublicKey returned, be non-extractable and generated on the HSM, and name the key version; otherwise Open fails with gcpkms.ErrAttestation. The roots are built in with pinned fingerprints and replaceable through Config.AttestationRoots; certificate validity periods are not enforced (Marvell's root has expired), the parser is bounds-checked and size-limited, and the check is off by default and needs an HSM key version. It is tested against the real attestation, chain and public key of a Cloud HSM P-256 key version, a real version 1 chain, and synthetic attestations and chains, and not against a live key service call.
  • The new module signer/gcpkms is an audit.Signer whose Ed25519 (EC_SIGN_ED25519) or ECDSA P-256 (EC_SIGN_P256_SHA256) key lives in Google Cloud KMS, selected by Config.Scheme (default P-256, the scheme Cloud KMS offers in an HSM) like the PKCS#11 and AWS KMS signers: it pins a full CryptoKeyVersion name (no "latest" alias), refuses a version of the other algorithm or one that is not ENABLED, is fail-closed about protection level (only HSM and HSM_SINGLE_TENANT open by default; Config.AllowSoftwareKey and Config.AllowExternalKey opt out, and because Google offers Ed25519 in software only the Ed25519 scheme needs AllowSoftwareKey, so a bank that needs an HSM key uses P-256), follows Google's data integrity guide (request and response CRC32C checks, a signature checksum mismatch retried up to three times), signs once at Open, verifies every signature against the public key (Config.Timeout bounds each Sign, retries included), and reduces a Cloud KMS client error to its gRPC status code (gcpkms.CodeError) so no credential text reaches an error. It is tested through the real Cloud KMS Go client against gcp-kms-emulator v0.10.0 running in the test process (no Docker, no credentials; the separate test-only module signer/gcpkms/emulatortest) and a fake client for the failures the emulator cannot produce, never against Google Cloud itself; examples/hsm-signing takes BIDE_GCPKMS_KEY_VERSION to use it, and the key custody guide gains a Google Cloud KMS section with the custom IAM role.
  • Signing keys can live in an HSM or a cloud key service behind audit.Signer: the new modules signer/pkcs11 (Ed25519 through PKCS#11 CKM_EDDSA, tested against SoftHSM2, PIN from an environment variable or a file, never an argument, with pkcs11test for SoftHSM2-backed tests) and signer/awskms (Ed25519 through AWS KMS ECC_NIST_EDWARDS25519, tested against a fake client) sign tree heads, evidence seals, grants and approver decisions without the private key entering the application (pkcs11.Config.RequireNonExtractable makes the token confirm the key is non-extractable), and each signer signs once at open and checks every signature against the key's public key. Both refuse a token or key that cannot do Ed25519 instead of substituting another algorithm. KMS signs at most 4096 bytes, so a large evidence package cannot be sealed with it. The core module gains no cgo and no cloud SDK; see the key custody guide and examples/hsm-signing.
  • The PKCS#11 and AWS KMS signers take Config.Scheme, audit.AlgEd25519 (the default) or audit.AlgECDSAP256, for HSMs and key services that cannot sign Ed25519: PKCS#11 signs the SHA-256 of the message with CKM_ECDSA on a P-256 key, and KMS signs the digest with ECDSA_SHA_256 on an ECC_NIST_P256 key; both return bide's canonical low-S r||s, and a key of the other scheme is refused (ErrNoP256, ErrNoEd25519) instead of used under the wrong one. Under P-256 KMS has no message-size limit. pkcs11.CKRError and the new P-256 tests are covered in the key custody guide.
  • Trust documentation for security and risk reviewers in docs/trust/: a threat model (assets, actors, trust boundaries, and for each threat what bide prevents, detects and does not address), stability and support (the 0.x versioning policy, format versions, what stays verifiable across versions, deprecation), a comparison with Temporal, LangGraph and retries with idempotency keys, operations guidance (key custody, journal retention and archiving, backups, clocks, least-privilege Postgres roles), and release verification. Release archives and checksums.txt are now signed keylessly with cosign (GitHub OIDC), each archive has an SPDX SBOM generated by syft, and the release workflow verifies the published signatures in a verify-signatures job; scripts/repro.sh now checks only the archives, since the release also holds SBOMs and signature bundles.
  • bide view has a Needs attention list at /attention (and /attention.json), linked from the run list's headline and its "need a person" count: every run that is waiting for approval (the call, the gate's k of n, who approved and who is pending, how long it has waited), halted with an unknown outcome (with the agent.ResolveHalt call), or aborted, newest first, and, from -db or -postgres, whether the notifier told someone and the sink acknowledged it, plus runs whose recovery keeps failing (read from the notification trail in the same database). The page reloads itself in live mode and works without JavaScript; internal/runview has the Options.Events, Options.ApproveCommand and Options.Now fields and Stores.Events. The run list is ALL CLEAR only when the notification trail was read for every run and none has a failing recovery; without the trail it says "nothing in the journals needs a person" and that recovery failures are not visible. bide sample now seeds a notification trail (sample.WriteNotifyTrail) with acknowledged, failing and overdue examples. A page that did not read everything is never clear: a store that cannot list its runs (CANNOT LIST), a failed listing or run, runs past the run list's 5,000 cap, or a filter give a headline that says what was not read, and the JSON of both lists carries status, unread, truncated and listable. The Needs attention list reads only runs without run:complete (no cap), matches a sub-run's notification in its root run's trail, and both lists are cached for two seconds. The list shows the bide approve command for each pending approval (quoted, with a fallback for an unsafe id), and bide view takes -postgres-env <VAR> to read the DSN from the environment. bide view's -postgres-env refuses a value that is not an environment variable's name without echoing it.

Changed ​

  • bide approve exits 0 with already recorded: your approve at <time> counts; nothing to do when the approver's verified, counted decision is the one they are making again (approve after approve, reject after reject), instead of refusing it as already decided; it signs and writes nothing, points to the existing receipt, and still refuses the opposite verdict, so a retry after a lost response is safe under every signature scheme, including the randomized ecdsa-p256.
  • awskms.Open now bounds its self-test signature by the context passed to Open as well as by Config.Timeout, so cancelling that context stops a slow or stalled self-test instead of waiting out the timeout (Sign is unchanged). The signer's tests now also run, through the AWS SDK, against the in-process aws-kms-emulator for both Ed25519 and ECDSA P-256, in the new test-only module signer/awskms/emulatortest (never tagged, so the emulator is not in the signer's module graph), in addition to the fake client.
  • bide demo now opens with the same crash without bide, where a naive retry charges the fake provider twice (provider charges: 2), and ends on the bide run's single charge. On the halt it tells ops with a signed webhook (the real agent.WithNotifier and notify webhook) delivered to an in-process HTTPS receiver that verifies the signature, and after the proofs it changes one amount in a copy of the journal and shows the real verifier failing on it. assets/crash-demo.gif is re-recorded with the bide view page live from the first frame.
  • The README and the approval, notifications and audit guides now show real recordings of bide approve (a refund at a 2-of-3 gate: the requester refused, then finance reviews the call and its SHA-256 and signs, then risk completes the gate) and of bide audit notifications (one run passing on a signed trail, one failing on an approval nobody was notified of), each in dark and light. assets/demo/approve.sh and assets/demo/notifications.sh regenerate them from assets/demo/setup/, which drives the real runtime and notifier, and assets/demo/optimize-png.py shrinks screenshots.
  • The evidence format is bide.audit.evidence.v6: its seal signs the tag and the SHA-256 of the package (60 bytes) instead of the whole JSON, so a KMS with a 4096-byte limit can seal a package of any size. A v5 package still verifies under its original seal (bide audit verify-evidence prints a NOTE), Seal refuses to re-seal one, and v4 and older are refused with ErrFormat as before.
  • bide now describes itself as a Go framework for AI agents that move money ("risky calls approved, every action recorded and verifiable"), with a fifth guarantee, people in control, beside the four it already had: the README, its four translations, the docs site home page and description, Concepts, Getting started, the agent package documentation and the bide help text lead with crash-safe execution, k-of-n signed approvals with separation of duties, a notifier that records its delivery (with routing, escalation, an all-clear and an optionally signed trail), an approval intake and browser page that the application or organization serves, and proof of everything, and say that bide is built toward what a bank asks of such software (keys in an HSM or a cloud KMS, a tamper-evident trail, explicit failure modes) without being certified against or claiming compliance with any standard. No behavior changes; the first line of bide with no command now reads "bide: build AI agents that move money, and account for every action."
  • agent.Approve and agent.Cancel take a trailing option (...ApproveOption, ...CancelOption; Journal.AnswerInterrupt and Journal.Signal take ...AnswerOption), so they no longer assign to a variable of the old function type without a wrapper; and Record.ApproverSignature is no longer non-nil only for a signed m-of-n decision: it also carries a lone recorded_at on single approvals, ResolveHalt results, end markers, interrupt answers and signals, so test for a signed decision with Record.Approver() != "" (or IsApprovalDecision), not with ApproverSignature != nil.
  • bide notify relay takes -state <file> (relay.Config.StatePath), which keeps the delivery IDs it forwarded and the event IDs it saw cleared across restarts, written atomically and bounded by -dedupe, so a trigger retried after a restart that comes after its clear no longer reopens the PagerDuty incident; the file is synced with its directory after each rename (Unix) and written at most once per -state-flush window (1 s by default, clears at once; a crash can lose the last window of forwarded-delivery entries), duplicate IDs in the file are merged on load, a second relay on the same file is refused by an exclusive operating-system lock (released if the holder crashes), and without -state the memory still resets on restart, and a state file that cannot be parsed is refused at start. A refusal from Slack or PagerDuty now logs only an allow-listed error token (relay.StatusError.Code, replacing Body) instead of the first 200 bytes of the reply.
  • signer/pkcs11: Config.RequireNonExtractable now also refuses a key whose token reports CKA_NEVER_EXTRACTABLE or CKA_ALWAYS_SENSITIVE as false (ErrExtractable), since a key that was extractable once, or not sensitive, may have been copied out before it was marked otherwise; a token that does not report these two attributes is taken at its word on CKA_EXTRACTABLE and CKA_SENSITIVE as before; Open also refuses a PIN shorter than MinPINLength (4 characters, SoftHSM2's minimum) with agent.ErrConfig, so the PIN scrubbing of error messages cannot garble them. Config.ProtectedAuthPath logs in with no PIN on a token with a PIN pad (CKF_PROTECTED_AUTHENTICATION_PATH), is refused with ErrNoProtectedAuthPath on a token without one, and is exclusive with Config.PIN. A key with CKA_ALWAYS_AUTHENTICATE is now signed with: the signer logs in as the context-specific user between C_SignInit and C_Sign with the same PIN source (it failed before), and Open skips its self-test signature for such a key.

Fixed ​

  • Corrected the docs' statement that an approver decision signs the tool call's arguments when stating AWS KMS's 4096-byte Ed25519 limit: it signs the SHA-256 of the arguments plus the run, call, tool and approver names, so a call with large arguments is decided under a KMS Ed25519 key. bide approve also no longer builds a default receipt file name over the 255-byte file name limit for very long run, call or approver ids (each part is cut at 56 characters, was 80), and refuses a key file that is a named pipe instead of blocking on it.
  • The browser approve page showed the "Note" label of a call with no note, which shifted every label after it one row away from its value (Gate beside "Decided", and so on); the label is now hidden with its value. Found in a real Chrome screenshot; a DOM test covers it.
  • audit.VerifyApprovals and audit.ApprovalEvidence honor a re-approval tally (approval-tally:<id>:v3) only over a tally that predates agent.DecisionFormat, as agent.RecordedTally does at runtime, so a re-tally injected beside a current-format denial no longer replaces it. audit.ApprovalEvidence now includes the superseded tally beside a re-approval tally, and VerifyApprovals refuses a re-approval tally without it.
  • signer/awskms: Open pinned whatever key ARN GetPublicKey returned, so a redirected endpoint or a wrong answer naming another key, or another account's, was accepted and signed with; it now requires a key ARN or key ID to come back as that key, and an alias ARN to resolve to a key in its own partition, region and account (an alias name to a key ARN), and refuses otherwise with agent.ErrConfig before signing. bide approve and bide-hsm also refuse a key file or PIN file that another user owns, and open it without blocking so a named pipe is refused rather than waited on.
  • agent.SubmitDecision names a decision's journal step by the decision (call, approver, verdict, scheme and decided_at), never by its signature bytes, so re-signing and resubmitting one decision concurrently with a randomized scheme (ECDSA P-256 from a KMS or HSM) journals one record instead of two, and agent.ReportWritten reports exactly one write; agent.DecisionStep returns the new name. Journals written under the old signature-derived names read, count and verify unchanged, a resubmission of such a decision writes nothing more, and a record that is not the approver's valid decision never takes the name the real decision needs (it is then journaled under the signature-derived name). An unchecked resubmission of a decision recorded under the old name is still a no-op that reports no write, and agent.HeldDecisionStep finds the record that holds a decision wherever it is (with a verifier it also reports whether the record verifies and can count) (DecisionStep is the name written first, not a lookup key). The approvals endpoint and bide approve -to find a decision's record by what it is rather than by its derived name, so a record under the fallback or an old name is returned as itself; the endpoint answers a request whose bytes equal a record that verifies under no current key and that the gate does not count as an invalid approval rather than a replay, and omits receipt from a replay answered from the recorded tally after a key rotation (Response.Receipt is now a pointer). agent.IsDecisionStepName checks the shape of a decision record name, and bide approve -to refuses a record name the endpoint returns that does not have it, and says when the receipt carries a different signature than the one sent.
  • Agent.FlushNotifications rechecks the events it deferred to a peer under one shared 2 s budget (or the caller's deadline if sooner), not 2 s per event, so a flush with no deadline and a hung trail no longer waits 2 s times the number of deferred events; the events it could not recheck are reported as they are.
  • The notifier's holder no longer sends the overdue notice from its own round while a peer's claim on the notice is live, so a slow holder and a peer no longer both send it; the holder sends it in a later round if the peer's send never lands.
  • bide audit notifications no longer lets a verdict rest on records nothing attests. An event whose observation, acknowledgement or clearing is only among the records after the newest signed tree head is now unattested (a problem) and fails the audit, because anyone who can append to the stored trail could have written it; the report gives the tail's size and time range, and a nonzero -max-unattested (library MaxTailAge) accepts it, without a signature, when its tail records are that recent; a tail-only failing_since or recovered record, which has no event key, is judged the same way as an unattested recovery-state verdict. New -routing (library Routing; write it with the new agent.RoutingOf from the notifier's own options, whose NotifyRouting.Receivers the notifier now routes by) requires each event a delivery to the receivers it routes to, and each due escalation step a delivery to its receiver, else no_delivery; without it per-receiver completeness is not checked, which is documented. The verifier also reads the notifier's own fan-out and escalation trails: a delivery to several receivers (to:<receiver>:<key>, the default receiver recorded as no name) and an escalation step (which carries its event's operation) no longer fail the operation and receiver checks, and an end-to-end test runs the real engine under every routing shape and verifies the trail, signed and unsigned.
  • WithOutputMode on an untyped run is now ErrConfig at the run's first drive, before anything is journaled or any model call is made, as the documentation says; only a later drive of the run refused it before.
  • The Release workflow used sigstore/cosign-installer@v4, a tag that does not exist (the action publishes only full versions such as v4.1.2), so the first tag pushed since release signing was added would have failed before building anything; it now pins v4.1.2. A workflow_dispatch dry run of the workflow showed it.
  • bide view and bide approve show a gate whose recorded tally passed without excluding the requester, under a policy that now excludes it, as waiting for approval again (agent.PendingSoDReapproval), with the requester's decision not counted, instead of as decided.
  • govern/sqlitelog and store/sqlite no longer fail with SQLITE_BUSY ("database is locked") when many writers in one process append to one file at once, which a slow disk (the Windows CI runner) made the shared conformance test hit after its 30 second wait: SQLite's busy handler is not a queue, so a writer that had just released the lock won it back and one unlucky writer waited out everyone else's whole run; the writers in a process now take turns on each file in the order they ask, and govern/sqlitelog sets its busy timeout in the connection string so that every connection the pool opens has it (it was set on the first connection only). Writers in different processes are still not ordered, which docs/KNOWN-LIMITATIONS.md states. Lease statements (store/sqlite acquire, renew and release) go ahead of the queued journal writes, so a renewal is not starved by a burst of writers; files are matched by identity (device and inode, volume and file index), so every spelling of a path shares one queue. store/sqlite and govern/sqlitelog now open the canonical path (symlinks resolved), and refuse a file with more than one hard link with an ErrConfig error, because two handles reaching one WAL-mode file by different names make SQLite derive different -wal and -shm names and corrupt it (seen on Windows as "database disk image is malformed" through a symlink, and as a disk I/O error through a hard link on macOS).

0.16.0 - 2026-10-13 ​

Added ​

  • A JSON Schema (Draft 2020-12) for flow configs, at plan/schema/flow.schema.json ($id https://raw.githubusercontent.com/bide-ai/bide/main/plan/schema/flow.schema.json), so editors complete and check a config as it is typed: keys with hover descriptions, the safety values, the edge/switch/join forms of a wiring element, the approval block, and a pattern for each form of the assert grammar. Point an editor at it with a # yaml-language-server: $schema=<url> first line (now on every config in examples/plan/flows), a VS Code yaml.schemas mapping or a JetBrains JSON Schema mapping (see the "Editor support" section of the plan flows guide). plan/schema_test.go keeps it the same as the code: every key plan.Load decodes is in the schema and no other, its enums and assertion patterns are the code's own, a table of good and bad configs is accepted and refused alike by the schema and by Load, and every sample config is valid under it. The schema checks the file's shape only; names, types and whether an assertion holds are still decided by Load and bide check.
  • A run made of Journal.Step calls alone has no run:start; bide view listed it as "not started" even when it had halted and been resolved. It is now labeled "steps only (no run:start)" in the run list and on the run page, with a state read from the journal: halted (a live attempt marker with no result), resolved (agent.ResolveHalt recorded an outcome) or steps done. A journal holding only its header is still not started. The run list's kind for such a run is steps in /runs.json and /run.json.
  • agent.NotifyPending(ctx, j, notifier, trail, opts...): one catch-up sweep for the notifier, for an application that drives runs with Run alone and so has no RecoverLoop to find an event whose process died before it was recorded. It reads every unfinished run and delivers, as WithNotifier would and under the same event keys (so an event a drive also saw is delivered once), each run waiting at an approval gate and each run halted on an effect whose outcome is unknown. A halt is a marker with no result and no voiding not-started record, older than WithNotifyHaltAge (default 5 minutes), because a sweep cannot see a process that is still running the call. It returns the deliveries that failed, which the next sweep retries (design).
  • bide doctor: checks what a first run depends on and prints a result with a fix hint for each: the Go version (1.27 or later), bide against the latest release (skipped offline), that SQLite works in a temporary directory, a Postgres DSN from BIDE_POSTGRES_DSN (or the variable -postgres-env names) if set, which model API key variables are set (names only, never values), that GOPATH and the module cache are writable, and in a bide init project that it builds. Colored on a terminal like the other commands (-color, NO_COLOR). Exit 1 only when a check failed.
  • bide sample writes a sample journal and opens bide view on it, with no code, no API key and no network: 14 runs produced by the real runtime on a scripted model and fake tools (refund agent runs completed, halted with an unknown outcome, halted and resolved, waiting at a 2-of-3 approval gate, approved with signatures, in progress, aborted and cancelled; plan flow runs completed, waiting, approved and halted; a run of durable steps only), two evidence packages with the log and approver keys that verify them (bide audit verify-evidence, bide view -evidence -approver-keys), three flow configs (a v1, a v2 that weakens the approval gate, and one with a violated assertion, for bide view -config, bide check and bide check -diff -fail-on-weaken), and a README.txt of what is inside and the commands to try. bide sample -out DIR -no-browser prints the viewer's address instead of opening a browser, and -live keeps one more run progressing while you watch. The runs are the same on every call (run IDs, states, start times and records), except for the random salt each record carries, so digests differ; the keys are fixed sample keys, not for anything real. The run viewer guide's run list, halted flow, risk map and violated-assertion screenshots are taken of it (assets/demo/shots.sh).
  • bide view shows the proof and the approvals, and gets its finishing touches. An approval gate's approvers are cards: initials, what they decided, whether their signature verified (and why not), the fingerprint of their key (with -approver-keys), and when they decided (signed) and when bide recorded it. With a signed head or an evidence package the run page draws a proof path: the last covered record's leaf hash, the sibling hash at each level of its RFC 6962 audit path and the signed root, built from the proof the audit package verified (the page re-climbs the path for the intermediate hashes and draws nothing if it does not end at the root). A light and dark toggle (remembered in local storage, guarded for blocked storage), keyboard shortcuts (j and k through the records or runs, / to filter, t, s, ? for help), a filter box on the timeline, a tab icon colored by the verdict and a title per page (VERIFIED · refund-42 · bide view), empty states for a list or filter with nothing, and a loading bar while a live page fetches. Share this run saves a 1200 by 630 PNG of the verdict, key numbers, graph or proof path, and proof line, drawn in the browser from the page with nothing sent anywhere. The pages still ask for no other host and carry no inline script or style.
  • A durable audit.EventStore in store/sqlite and store/postgres: (*Store).EventStore() keeps a run's event trail in the same database as its journal, in a bide_events table (created on Open/New; the table prefix and schema apply; the schema version is unchanged and an older database gains the table). Append is one insert-if-absent statement on primary key (run_id, seq), committed before it returns, so it is crash-safe and writers racing for a position across connections or nodes have exactly one winner. New audit.ErrSeqTaken, wrapped by EventStore.Append when a different leaf already holds the position, lets a caller tell a lost race or a fork from a real failure (MemEventStore returns it too); a negative seq is now refused. New audit/eventstoretest, a conformance suite for any EventStore (append and load, byte fidelity, the same-leaf no-op, ErrSeqTaken, gaps, racing writers), run against the in-memory store and both new ones (#239).
  • examples/stripe-refund: a refund agent against Stripe's TEST mode API, killed mid-refund. It looks up a payment intent (read-only), gates a refund over a threshold on 2-of-3 approval, sends POST /v1/refunds with an Idempotency-Key and metadata naming the run and call, and writes a receipt, on a SQLite journal. -crash-after-send exits the process right after the request is sent and before its result is journaled; the restart halts with OutcomeUnknown instead of refunding again, and a reconciler lists the payment intent's refunds, matches the step's key in their metadata, and resolves the halt with ResolveHalt (WithMinHaltAge, the refund as evidence), so exactly one refund exists. It resolves nothing when Stripe has no such refund. The example calls Stripe with net/http (no SDK, no new dependency), reads STRIPE_SECRET_KEY from the environment and refuses anything but an sk_test_ key. Its tests run the binary as separate processes against a fake Stripe that honors idempotency keys and need no key; demo.sh and the README do the kill and restart against the real test API by hand. A new example module (examples/stripe-refund), listed in CI, go.work and the release script's repo-only modules.
  • Hardening from an independent review: the overdue notice is derived from the trail and sent inside the round that holds the event's claim (so it survives a restart and a failed first delivery); every Notify call is bounded by a quarter of the claim and rounds of different events run concurrently, so one hung sink does not stall the rest, and RecoverLoop returns on cancel; another holder's claim counts as live for a skew margin past its until, and a new round is paced by the trail, so the claims of an undelivered event stay near four an hour whatever the number of sweeps; a decided gate (single decision, tally, tool or node result) is cleared, not reported; NotifyPending also finds aborted runs; any pause closes a recovery failure episode, a run no Resumer drives alerts, and a shutdown's cancellation does not; recovery_failing carries a class, never the Resumer's error text; an idle notifier holds no goroutine; FlushNotifications returns what it could not deliver; a plan flow keeps one notifier per store. A peer sends the overdue notice, under a short claim of its own, when the holder that was to send it may be gone, and a round's budget counts its backoff and acknowledgement retries so it ends inside its claim.
  • plan.Builder.WithNotifier(notifier, trail, opts...) and plan.WithLoadedNotifier tell an agent.Notifier, at least once and with a stable ID, when a run that Flow.Run drives halts on an unknown outcome, waits at an approval gate, or is aborted, as agent.WithNotifier does for an agent run. The binding is runtime only (the digest is unchanged), is validated by Build, and keeps one notifier per journal the flow runs against; Flow.FlushNotifications waits for deliveries in flight. agent.NewRunNotifier and RunNotifier.DriveEnd let code that drives its own runs do the same.
  • Recipe: get notified when a run needs a human. A complete program that posts one JSON message to a webhook (a Slack incoming webhook, say) the first time a run halts on an unknown outcome or waits for approval, from the three places bide reports it (the error Run returns, the Resumer that RecoverLoop calls, and a MemWaker wakeup), and not again on every recovery pass. It says plainly what its in-process dedupe cannot do (a restart may notify again, a crash before the POST may drop the message) and points to the built-in notifier, which closes those gaps. Linked from the recipes index, the docs site sidebar, the README and its translations, and getting started.
  • Recipes: five complete flows in docs/recipes, each runnable with no API key and with a real model, with what bide view shows and what a crash does. A refund with a 2-of-3 approval over a threshold (from bide init), invoice approval (a model extracts, a person approves, then the invoice is booked), support ticket triage (a read-only model call routes to side-effect nodes), updating a customer record safely (the attempt marker, the halt on an unknown outcome, agent.ResolveHalt, and an idempotent write), and an ambient agent (a durable agent.Sleep that survives a restart). Linked from the docs site nav and sidebar, the docs index, the README and its four translations, and getting started. CI compiles every Go block (docsnip).
  • The bide command colors its text output on a terminal, for a reader who scans it. bide check marks each error with a red ✗, splits a violated assertion over the assertion, its reason and its counterexample path (in red, with the node it reaches in bold), so each line fits the terminal, colors risk classes as the risk map does (side effect red, read-only and idempotent green, an approval gate amber) and the verdict counts, and marks a config whose assertions all hold with a green ✓; bide check -diff -check colors added lines green, removed red and changed amber, and calls out a weakened approval gate first, in bold red, with the summary's counts and digest on lines of their own. bide audit marks PASS/OK lines with a green ✓ and FAIL lines with a red ✗, and a verify verb ends with a VERIFIED (green, with the signed tree's size and Merkle root dimmed) or FAILED (red) banner; the note verify-evidence puts on every approver decision line is said once, before the banner. bide demo gives each step its color (the crash red, the halt amber, the resolution blue, the proofs green) and now names the halt and the resolution in words ("halted: outcome unknown", "resolved with ResolveHalt"); bide view and bide init print the address to open and the next commands in bold cyan. Status is never carried by color alone: the words stay, and a mark is added beside them. Written to a file or a pipe, and under bide audit -json, the output is the plain text it was (golden tests pin it byte for byte). init, demo, view, check and audit take -color=auto|always|never (default auto); auto colors a terminal only, not with NO_COLOR set to any value or TERM=dumb, and on Windows only a terminal known to read ANSI escapes (Windows Terminal, ConEmu, ANSICON, VS Code, or a TERM such as xterm-256color). The styles are package internal/term, standard library only, so bide audit and the bide_audit_only build stay core-only. Help (-h) is unchanged. Screenshots in the run viewer and audit guides, recorded by assets/demo/cli.sh; assets/crash-demo.gif is re-recorded in color.
  • The notification trail, the first building block of the built-in notifier (design): agent.NotifyRecord and its kinds, the key builders (HaltedKey, ApprovalKey, AbortedKey, RecoveryKey, NotifyID), agent.FoldNotify (a pure fold of a trail to the state of each event and of the run's recovery failure episode), the agent.NotifyTrail port with agent.MemNotifyTrail, and audit.NewNotifyTrail, which stores a trail as salted, Merkle-committed event leaves on any audit.EventStore and turns a lost append race into agent.ErrTrailConflict. agenttest.NotifyTrailContract is the contract test for a trail. Nothing sends a notification yet.
  • The notifier core: agent.WithNotifier(notifier, trail) tells a Notifier, at least once and with a stable Notification.ID, when a run halts on an unknown outcome, waits for approval, or is aborted (a saga whose rollback finished), and when recovery keeps failing for a run. It applies to an Agent (the event is raised where a drive ends), and to Recover and RecoverLoop (which also raise recovery_failing, counted in time from a failing_since record in the trail so a crash loop that restarts the process still alerts). Delivery state lives in a NotifyTrail, never in the run's journal: observed, claimed, acknowledged, failing, overdue and cleared records, so two processes cannot both deliver while a claim is live, a restart does not repeat an acknowledged event, a halt resolved or a gate decided before delivery is cleared instead of sent, and an event not acknowledged by its deadline (WithNotifyDeadline, default 5 minutes) raises an overdue notice to WithOverdueNotifier and keeps retrying. Retries never give up (capped backoff, WithNotifyRetry), and WithNotifyErrors hears when a delivery is failing. Agent.FlushNotifications waits for deliveries in flight. A Notifier reports how a delivery was authenticated with agent.ReportNotifyAck. The webhook notifier, the NotifyPending sweep and bide audit verification follow (design).
  • The notify package ships bide's webhook notifier, notify.NewWebhook, an agent.Notifier that delivers a notification as a signed HTTPS POST of a bide.notification.v1 JSON payload. The payload holds structured fields only (kind, run, step and tool name, the approval gate's approver IDs and k of n, the run's principal, times and a bide view pointer): no error text, tool arguments or approve link, unless the operator names fields in WithFields(notify.ErrorText, notify.Args("refund")). Each request carries Bide-Delivery (the stable notification ID), Bide-Timestamp and Bide-Signature: v1=<hex HMAC-SHA256(timestamp.body)>, one entry per secret so a secret can be rotated with WithSecrets(current, previous). notify.Verify(r, secrets, tolerance) checks a request in one call for a receiver (5 minute default timestamp tolerance, constant-time compare, one MAC per secret and at most 8 signature entries examined, the Bide-Delivery header required to equal the signed body's id, body left readable). Transport is HTTPS only (http only for localhost, 127.0.0.1 and [::1]), never follows redirects, times out per request, makes one request per Notify call (the notifier core runs the rounds; WithRequestsPerCall allows up to 3 with backoff), honors Retry-After on a 429 or 5xx within the call's deadline, and requires TLS 1.2 or newer. Optional mutual TLS (WithClientCert, reloaded when the files change without a restart, keeping the last good pair if a reload fails), WithServerCA (replaces the system roots) and WithServerPin (SPKI SHA-256, up to two) add to the signature and never replace it. Each accepted delivery reports how it was authenticated (signature scheme and secret slot, never a secret; the client certificate's SPKI hash; custom CA or pin; negotiated TLS version) for the auth field of the trail's acked record. See the new notifications guide for Slack and PagerDuty adapters.
  • TLA+ model 14 (spec/tla/notify) of the notifier's notify-once trail (observed, one claim per delivery round, acked, failing, overdue, cleared, failing_since, recovered) and its overdue notice, sent by the event's holder inside its round or by a peer under a short claim on the notice's key, over processes, crashes, lost replies, trail appends that error, claims that lapse mid-send and the lost append race. It checks no silent drop, a duplicate bound of 1 + crashes + lost replies + mid-round lapses (2 + the same for the notice), no concurrent double under a live claim, overdue by the deadline and its notice sent even when the holder is dead, recovery_failing under a crash loop, idempotent acked and cleared, and, composed with model 10, that the notifier never changes the run lifecycle. A regression configuration per property breaks its rule and must fail. It found N1, adopted by the core: a failure count kept in process memory is reset by a restart, so failing came late and, under a crash loop, never. spec/tla/check.sh gains SPEC, LIBRARY and EXPECT: action configuration lines, and a pull request that changes model 10 re-checks model 14.

Changed ​

  • A second color pass over the CLI, on a terminal only (piped output is byte for byte what it was). Every error bide prints to stderr opens with a bold red error: (a hint after a semicolon is dim, in bide init's messages), bide and bide help show bold headings and command names over dim summaries, and bide version is lightly styled. bide version takes -color like the other commands. The project bide init writes gets a color.go that colors its story (paused at the gate, approvals, done) with the same rules (a terminal, not NO_COLOR, not TERM=dumb), with a test of them; examples/approval and examples/stripe-refund color their narration the same way.
  • Breaking: every signed m-of-n approval decision now carries two times, kept apart. decided_at is when the approver decided, by their clock, and is inside the signature: ApprovalDecisionBytes takes it (ApprovalDecisionBytes(subject, approverID, approved, decidedAt)), Decision.DecidedAt is required (SubmitDecision refuses a zero one with ErrConfig), and the signed encoding is now bide.approval.v3 (agent.DecisionFormat), which appends len32(decided_at) decided_at after the decision byte (the m-of-n design note works one decision through to its exact bytes, pinned by TestApprovalDecisionBytes_Vector). It is signed in one form only, RFC 3339 in UTC to the millisecond with a Z, years 0001 to 9999 (agent.FormatTimestamp, 24 bytes, the form of started_at); a verifier parses it, formats it again and refuses the decision unless the two are byte for byte the same (agent.ParseTimestamp, agent.ReasonDecidedAt), so a decision whose time was changed after signing does not verify. Decisions signed under the previous encoding (bide.approval.v2) no longer verify: the gate and audit.VerifyApprovals ignore them with agent.ReasonNoDecidedAt, there is no fallback, and they must be signed again. A run whose gate passed on v2 decisions before the upgrade, and whose call has not run, does not run it on resume: the gate asks again (*ApprovalPending with Reason agent.PendingReapproval, its Quorum.Supersedes naming the old tally), and once approvers sign under v3 it records the new outcome under agent.ApprovalRetallyStep, which the gate, audit.ApprovalEvidence, audit.VerifyApprovals and bide view read in place of the old tally (agent.RecordedTally); a v2 denial stays final. Every journaled tally now names its format (ApprovalTally.DecisionFormat). recorded_at (Record.RecordedAt) is when SubmitDecision journaled the decision, by the submitting process's clock (WithClock, now also an ApproveOption, else the run clock on the context, else the wall clock; one with no canonical form is ErrConfig): that submitter's claim, not signed, anchored by the journal's Merkle trail once a signed head covers it. ApprovalWait (approval-pending) records when the run paused, and a plan flow gate's ApprovalRequest when it recorded the request: when approvers were asked. Both times are display only: TallyApprovals checks decided_at only as signed bytes and orders decisions by journal position, so the same decisions count the same whatever their times (TestTally_IgnoresTimes), and a decision signed a day ahead still counts (TestApprovalTimes_FlagsNeverUncount). A decision's journal name now hashes decided_at too, so a copy of a valid signature journaled first under another time cannot take the name the real decision needs, and an approver whose identical decision was recorded before a flow gate's request signs again at a new time and counts (the seat is no longer lost; Flows.tla's ADecide and the new flows/flow-gate-early configuration, which replaces the gate-early-stuck limit); WithDecisionCheck reads, as the gate does, only decisions after a flow gate's request. audit.ApprovalEvidence includes the gate's approval-pending record (a step item) when the journal holds one, and audit.VerifyApprovals reports each counted decision's two times (ApprovalVerdict.Times, AskedAt, HeadAt) with sanity flags that never change the verdict (audit.CheckDecisionTimes, tolerance DefaultDecisionTimeTolerance, 5 minutes): FlagDecidedAfterRecorded, FlagDecidedBeforeAsked, FlagAskedUnknown, FlagRecordedAtInvalid, FlagRecordedOutOfOrder and FlagRecordedAfterHead. bide audit verify-approvals prints both times, the gap and a note: per flag, with -decision-time-tolerance, and prints any time that is not canonical quoted, so an unsigned field cannot add lines to its report; bide view's approver cards show the times in place of the signed head's time, and only the counted decision's when an approver has several. SubmitDecision refuses an ApproverID that is not printable ASCII (no policy can name one), both bide audit verbs print any text from an input file that holds a control character quoted, and a plan flow run with a re-approval tally conforms (Flow.Conform). ApproveOption is now an interface (WithDecisionCheck and WithClock implement it). An RFC 3161 trusted timestamp per decision is possible future work.
  • bide audit errors a first verification meets say what to do next: a missing evidence file, a -pubkey that is not a key (it takes ed25519:<hex>, 64 hex digits or a file such as keys/log.pub), a file that is not the JSON a flow or bide audit writes (such as the journal database), and an evidence package that did not verify (check the key came from out of band and the file is unmodified). Exit statuses are unchanged.
  • Errors a newcomer is most likely to hit now say what to do next, with their sentinels (errors.Is) unchanged. A halted run (*OutcomeUnknown) names agent.ResolveHalt and re-running the run; a run waiting for approval (*ApprovalPending) names SubmitDecision; resuming a run with another input, flow, kind or saga mode suggests the original or a new run ID; agent.New with a nil model or journal names what to pass; a plan.Load config that names an unknown block says to register it and lists what is registered, and an unused block or duplicate node says how to fix it; a flow run recorded under another flow or topology digest says the flow changed and to resume with the original or start a new run ID; a provider's 401 or 403 says to check the API key and a 404 the model name and base URL; sqlite.Open, sqlite.OpenReadOnly and postgres.Open failures say what to check (a missing directory or file, a file that is not a journal, the DSN). Message text only: no behavior changes.
  • run:aborted records when a saga's finished rollback ended the run: its value is now an object with the reason (reason, as before) and aborted_at (UTC, RFC 3339 with milliseconds, by the drive's clock), where it was the reason as a JSON string. The time is informational, like started_at: no drive, resume or recovery pass reads it, agent.Status reads the reason from either form, and a run:aborted an earlier version wrote loads and behaves the same. The notifier's catch-up sweep uses it to bound which aborted runs it raises.
  • The bide view pages are redesigned. Every page opens with a verdict in large type, with a glyph and a line of why, and three or four key numbers: a run is VERIFIED, COMPLETED, HALTED, WAITING FOR APPROVAL, FAILED or IN PROGRESS; a config is N POLICY VIOLATIONS or ALL ASSERTIONS HOLD (or errors, undecided assertions, none); a diff opens with APPROVAL GATE WEAKENED when a gate was weakened; the run list opens with what needs a person. The cards under it are condensed to a label, a value and a line, with the detail in details. The flow graph (run path overlay, risk map, diff) is a hand-drawn layered SVG from an in-house layout, replacing the earlier grid: rounded nodes with a glyph per risk class or state, a 2/3 gate badge, edges routed around nodes, and the run path or counterexample as a flowing dash (still under prefers-reduced-motion). Hovering a node highlights the paths through it, clicking shows its details, and the graph pans and zooms; without JavaScript it stays a complete static SVG. The timeline has a glyph per record type, an anchor (#record-N) on every row, a collapsible payload with highlighted JSON and a copy button, and, for the records the journal timestamps (the start and attempt markers), an offset from the start with the UTC time on hover and a span bar. One set of design tokens (color, space, type scale) serves both themes, which keep following prefers-color-scheme. The JSON views (/runs.json, /run.json, /config.json, /diff.json) are unchanged, and the pages make no request to another host.

Fixed ​

  • A notification's view.command was bide view -run <id>, which fails because bide view needs a store. The webhook notifier now takes notify.WithViewDB(path) and the command is bide view -db <path> -run <id>; without it the command is the marked template bide view -db <journal.db> -run <id> rather than one that fails when pasted. The notifications guide and its Slack adapter say so.
  • An audit verb run without a required flag, such as bide audit verify-approvals without -call, -need or -approvers, printed about 95 lines of usage for every verb and no line saying what was missing. It now prints one line that names the missing flags and says to run bide audit <verb> -h, and exits 2 as before. Every audit verb does the same.
  • bide demo -fast, documented as for CI, served the viewer until Ctrl-C. It now exits 0 when the demo is done, without serving or opening a browser; with -keep it prints the bide view command that reopens the run.
  • bide doctor failed on a Go older than 1.27 even where GOTOOLCHAIN=auto (the default) lets go fetch 1.27 itself inside a bide project. It is now a warning there, and still a failure under GOTOOLCHAIN=local or a pinned older toolchain. The fix text names GOTOOLCHAIN=go1.27.0 as the getting-started guide does, long lines wrap so the output fits 120 columns, and in color the check names line up whether a row has a mark or not.
  • MemWaker.Start no longer runs a Fire after its context is cancelled. A select picks at random among ready cases, so a ready tick could win over the done context, and the loop would resume due runs with a cancelled context during shutdown (still before the stopped channel closed); it now checks the context again after each tick (TestMemWaker_StartNothingFiresAfterCancel).
  • RecoverLoop no longer starts a drive or a recovery pass after its context is cancelled. A select picks at random among ready cases, so a free drive slot or a pass tick could win over the done context, and the loop could lease a run and call the Resumer with a cancelled context during shutdown (still before RecoverLoop returned); it now checks the context again after each wait (TestRecoverLoop_NothingStartsAfterCancel).
  • The run viewer's proof-path diagram clipped the signed-time label ("UTC" read "UT"). The SVG is wider, and the label sits on the side of the root with no sibling hash.

0.15.0 - 2026-10-13 ​

Added ​

  • bide view with no -run opens on a run list: each run's ID (linking to its page), kind, state (completed, halted: outcome unknown, waiting for approval, in progress, aborted, cancelled; the state the run page shows), when it started (RunStart.StartedAt; "none" for a run journaled by an earlier version, which recorded no start time) and its record count, newest first. It filters by state (with counts), kind and run ID substring, shows 50 rows with a "show more" link, and serves the same list as JSON at /runs.json. It reads SQLite, Postgres and exported journals, read-only, on loopback only, with no JavaScript. One load classifies at most 5,000 runs and says when it stops short. The guide's screenshot is of a demo journal any checkout can write (BIDE_RUNLIST_DEMO=$PWD/runs.db go test ./cmd/bide -run TestRunListDemo).
  • A run's run:start records when its first drive started: RunStart.StartedAt (started_at), UTC, RFC 3339 with milliseconds, by the drive's clock (WithClock, else the wall clock), for agent runs, session turns and plan flow runs; RunStart.Started reads it as a time.Time. It is informational, for tools that list runs: no drive, resume, recovery pass or at-most-once check reads it, and a later drive neither rewrites it nor is held to it. A run whose run:start was written by an earlier version has none and loads and resumes as before (TestRunStart_StartedAtIsNotRead drives the same journal with the time as written, absent, different and not a time, and checks every drive does and journals the same; TestRunStart_EarlierJournalLoads). A replayed run (Replay) records its own start time, so its journal matches the original's but for that member. The recovery pass's fast decoding of the commonest run:start reads the new member too. Journal format: one new optional member, with no format version change before 1.0.
  • Risk map and policy assertions for flow configs. bide view -config colors each node by its crash behavior (side effect: the resume halts and asks; read-only or idempotent: it re-runs; unknown without the Registry), marks its approval gate, and sums up side effects behind a gate and not ("1 side-effect step, 1 gated, 0 ungated"). A config's new assert list, which plan.Load ignores, states policy about the graph: every path to <node> passes approval >= K [of N], every path to <node> passes <node>, every path to a terminal passes <node>, no side effect after <node>, <node> reachable and <node> unreachable, each decided by reachability over the declared graph (loops included). A violated assertion is an error with a shortest counterexample path, drawn in red on the page and printed by bide check, which exits 1; an ill-formed, unknown-node or undecided assertion is an error too. plan.InspectConfig reports them in ConfigReport.Safety, .Gated and .Assertions (plan.NodeSafety, plan.AssertionResult). examples/plan/flows/refund-policy.yaml and refund-policy-bypass.yaml show a holding and a violated policy.
  • bide view live mode: the page of a run in progress, read from a SQLite or Postgres journal, follows the run. Its timeline rows appear as records land, and END STATE, the approval gates and the flow graph update in place (scroll position kept), with a "live" mark, until the run journals its end marker. The page's one embedded script polls the new /run/live?id=<run>&after=<cursor> about once a second; the viewer answers from one Load of the entries after the cursor (the store sequence of the last record shown) and returns only the new records' rows. Read-only and loopback-only like the rest of the viewer; an exported journal stays static, and the page is complete without JavaScript. examples/approval run -turn-delay holds each model turn so it can be watched; assets/demo/live.sh records the guide's GIF.
  • bide check flow.yaml -diff <old> compares a flow config with an earlier version: a read-only page draws the new flow with added nodes and edges in green, removed ones as dashed red ghosts and changed nodes in amber (block, safety, approval gate: approval 1 of 3 -> 2 of 3), with a summary card (counts, the digest before and after) and a weakened approval policy called out first. <old> is a file or, when no file has that name, a git revision (<rev>:<path>, or a bare <rev> for the same path). -check prints one line per change and a summary, for CI, and exits 0 unless -fail-on-weaken finds a gate removed or weakened (a set of approvals the new gate accepts would not have passed the old one). bide view -config <file> -diff <old> is the same page, and package plan/planview serves it (DiffHandler, CheckDiff) with each version's plan.Registry, for the digests. bide check now accepts flags after the file names. Samples: examples/plan/flows/refund-v1.yaml and refund-v2.yaml.

0.14.1 - 2026-10-13 ​

Changed ​

  • A plan flow Model node (Builder.Model, Registry.RegisterModel) is ReadOnly by default, so a model call whose outcome is unknown (a crash lost its result, or the call failed: the provider errored or the reply did not decode) is made again on the next drive instead of halting with "unknown outcome and is not retry-safe". A model node calls no tool and changes nothing outside the run; a re-call costs tokens and may answer differently, and nothing saw the lost answer. A config safety: side_effect keeps the old halt. A node a v0.14 process already attempted keeps its attempt marker and still halts; resolve it with ResolveHalt or start a new run. Found by a fresh-eyes run of the bide init project on a real model.

Fixed ​

  • A plan flow Model node now sends its output type's JSON schema as the request's response format to a model that honours one (agent.ModelInfoOf reports ResponseFormat: model/openai, model/gemini), as Builder.Model documented, so the provider's structured output returns the type's JSON. It sent none, and a real model (gpt-4o-mini) wrapped its JSON in a code fence and put a number in a string field, failing the bide init project's model step. A model that does not honour a response format (model/anthropic, or one that does not describe itself) is still sent none.
  • The bide init project: its prompt names each field's type; its README has a "Start over" command that runs in zsh (it named globs that zsh refuses when nothing matches) and removes evidence.json too, and says to start over after switching to a real model (a finished run is read back, so the new model was never called); its test runs the story on model/openai against a fake provider that answers as a real model did (a fenced reply, a number in a string field) unless sent the schema, and runs the reset command in sh and zsh. The root README says bide view prints the address to open (it opens no browser and takes no -no-browser flag). Found by a fresh-eyes run on a real model.
  • Documentation: every guide, reference page, translation and example README was checked against the current code and corrected where it had drifted; docs-site/ no longer tracks its synced copies of tour.md and formal-verification.md (the site build copies them from docs/).

0.14.0 - 2026-10-13 ​

Fixed ​

  • eval.Run could start executions after its context was cancelled: the launcher's select between a free concurrency slot and the done context picked at random when both were ready. It now checks the context again after taking a slot. Found as a CI flake in TestRun_CancelledEvalIsAnError; TestRun_NoExecutionStartsAfterCancel reproduces it.

Added ​

  • The bide init project recovers from a crash: it starts with an agent.Recover pass whose Resumer drives the plan flow again from its journaled input, so a run an earlier process left unfinished completes, with its refund still made once. BIDE_CRASH=notify go run . kills the process mid-run to try it; the project's test does the same in a child process and checks one refund. model() has a marked block that swaps in a real model (model/openai, for OpenRouter or OpenAI) when OPENROUTER_API_KEY or OPENAI_API_KEY is set; the scripted model stays the default.
  • bide init <dir> scaffolds a project that runs with no API key: a plan flow (flow.yaml, checked by bide check) with a model node on a scripted model (and the lines that swap in a real one), a refund node behind a 2-of-3 approval gate, a SQLite journal, and a go run . that pauses at the gate, records two signed approvals with keys it generates, refunds once and writes the evidence bide view and bide audit verify-approvals read. The project requires bide at the command's own release version (-dev <checkout> for a build from source). Its own test runs in CI against the checkout, and scripts/release.sh runs the released bide init and builds and tests the project against the released modules.
  • Approval gates on plan flow nodes. A node gated with plan.Approval(policy), by the agent tool it wraps, or by a config approval: {need, approvers} block (on a node or a join) pauses before it runs with *agent.ApprovalPending, whose ToolUseID is the node's key (node:<name>, or node:iter:<n>:<name> in a loop body, where each iteration is approved on its own) and whose Args are the node's input; approvers decide with agent.SubmitDecision or agent.Approve, and the next Run counts them with the agent's own gate (the same records, TallyApprovals, the terminal tally before the node runs, approval-pending:). A denied gate stops the run with plan.ErrApprovalDenied. Builder.WithApproverVerifiers and plan.WithLoadedApproverVerifiers bind the approver keys; Build refuses an m-of-n gate without them and an option or config block that would replace a tool's own gate. The gate records its request under approval-request:<node key> (agent.ApprovalRequest, agent.ApprovalRequestStep), which agent.FindToolCall returns for a plan node key; approval-request: is a reserved step-name prefix. Only decisions recorded after that request count, and in a flow's run agent.Approve and agent.SubmitDecision refuse (ErrConfig) a decision on a node key with no request yet, since node keys can be known before a run reaches the gate; an identical decision whose name a record written before the request already holds is reported (ErrConfig) rather than silently dropped. Topology reports each node's gate (TopologyNode.Gate) and the digest commits to it (written only for gated nodes, so an ungated flow keeps its digest). audit.ApprovalEvidence, audit.VerifyApprovals and bide audit verify-approvals -call node:<name> verify a gated node's decisions, with the node's record as the result; bide view shows the gate on the node (waiting, approved, signatures verified). The flows TLA+ model checks that a gated node never runs before k approvals, across crashes (GateHeld, GatedResults, TallySound, regressions gate-missing, gate-unscoped and gate-request-order). Runnable: examples/approval/flow. Journal format: one new record name, with no format version change before 1.0.
  • bide view -config flow.yaml shows a flow definition without running it: the declared graph, approval gates ("2 of 3: ops, finance, risk") and every problem marked on its node, edge or arm; -check prints file:node: message lines and exits 1 on errors (-strict: on warnings too), for CI; examples/plan/flows holds a sample config and one with a marked problem. From the command line the check is structural; package plan/planview serves the same page (and Check) with a program's plan.Registry, for plan.Load's full checks and the digest the flow journals. Both use the new plan.InspectConfig. The command reads YAML configs too.
  • bide demo, a one-command crash demo (no API key): a payment agent with a 2-of-3 approval-gated charge runs in a child process over an audited SQLite journal; the demo kills the process after the charge reaches a fake provider and before its result is journaled, the restart halts with OutcomeUnknown instead of charging again, the demo resolves it from the provider's record (ResolveHalt), verifies the evidence, the anchored head and the approval signatures, and serves the run in the bide view page. CI runs it headless and fails unless the provider holds exactly one charge. The README opens with a recording of it (assets/crash-demo.gif, regenerated by assets/demo/record.sh).
  • A plan flow run's first drive journals its declared topology under flow:topology (plan.TopologyStep), as Topology JSON, one Insert just before flow:digest; a resume writes neither again, and a run started earlier is not given one. Topology gains the digest's inputs (each node's block, each arm's pred, and *_canonical types with package paths), and Flow.Digest is computed through the new plan.TopologyDigest, so the journaled digest recomputes from the journaled topology; plan.JournaledTopology reads the record and checks it. The record is informational: Run, resume, routing and recovery do not read it, and Conform checks its digest. bide view draws a flow run from it with no flags ("Topology from journal (digest verified)"); -topology stays as an override and for older runs, and its digest is computed from the file when -digest is not given. Journal format: one new record name, with no format version change before 1.0.

Changed ​

  • Breaking: approver ids are printable ASCII (bytes 0x21 to 0x7E: letters, digits and punctuation, so emails and URIs are valid ids). ApprovalPolicy.Validate refuses any other id (a space, a control character, anything outside ASCII) with ErrConfig naming it, and two ids that differ only by ASCII case, naming both. This replaces the NFKC case-folding comparison: it also refuses homoglyphs (a Cyrillic "о" for a Latin "o"), which NFKC case folding let through, and it drops the core module's last dependency, golang.org/x/text, so the core module requires only the standard library. A plan flow config's approval block and bide audit verify-approvals -approvers follow the same rule.
  • Homebrew: brew install bide-ai/tap/bide installs the bide command on macOS and Linux. The release workflow generates the formula from the release's checksums.txt (scripts/brew-formula.sh, self-tested in CI) and pushes it to bide-ai/homebrew-tap, replacing the hand-maintained bide-audit formula and recording the rename (formula_renames.json), so brew upgrade moves bide-audit users to bide.
  • Release binaries are reproducible: .goreleaser.yaml builds with -trimpath, -buildvcs=false and commit-time file stamps, the release workflow pins Go 1.27.2 (GOTOOLCHAIN=local), and a new repro job rebuilds every published binary from the tag on macOS and compares the bytes (scripts/repro.sh vX.Y.Z, which anyone can run). scripts/repro.sh --self-test runs in CI: two builds of cmd/bide from copies of the tree at different paths are identical, and .goreleaser.yaml uses the flags the script rebuilds with. The archives also carry LICENSE, NOTICE and README.md. The security model documents the audit-only build (go install -tags bide_audit_only ...) and the rebuild.
  • Docs follow the product's order (start, build, inspect, prove). The README is the pitch: the hero recording, the four guarantees, a four-step start (bide demo, bide init, bide view, bide audit verify-evidence) and a documentation map; its API sections (graphs through federated governance) moved, unchanged, to A tour of bide, and each translation's to docs/i18n/tour.<lang>.md. The flows guide is now Plan flows (the old path redirects), and the docs index and the site's navigation are grouped as Start here, Concepts, Guides (build, inspect, prove and govern), Reference (with the CLI reference) and Proofs.
  • Breaking: one command, bide, replaces bide-audit, bide-view and bide-demo (design note). bide demo, bide view (every bide-view flag), bide check [-strict] <file>... (the bide-view -config -check check, for several files), bide audit <verb> (every bide-audit verb and flag, with the same exit statuses), bide version [-json] and bide help [command]. Each command parses its flags with the standard library flag package, so command lines keep their single-dash flags; usage errors exit 2 and bide help <command> or bide <command> -h exit 0 (bide audit <verb> -h still exits 2, since audit reserves 0 for verified). Messages and the -json report name bide audit / bide view; bide audit -version and bide version print bide <version>. The module is github.com/bide-ai/bide/cmd/bide (go install github.com/bide-ai/bide/cmd/bide@latest; Homebrew bide-ai/tap/bide); its direct requirements are pinned by a test to bide's modules and the YAML library. Built with -tags bide_audit_only it holds only audit, version and help and links nothing outside the standard library and the core module, which a test checks. docs/reference/cli.md is generated from the commands' flag sets and a test fails when it is stale. cmd/bide-view is tagged once more at v0.14.0 as a deprecated module whose program only points to bide view, and is removed afterwards; cmd/bide-audit and the never-tagged cmd/bide-demo are removed. The release archives are bide_<version>_<os>_<arch>.
  • The bide-audit command's code moved from cmd/bide-audit to internal/auditcli (auditcli.Main); cmd/bide-audit is a three-line program over it, so the command, its flags, output and exit statuses are unchanged. A new allowlist test, TestDepsAreCore, fails if the audit command's import graph reaches past the standard library and the core module. This prepares the single bide command (design note).
  • The core module no longer requires golang.org/x/sync: the agent loop's parallel tool calls run on internal/errgroup, a standard-library equivalent of the errgroup subset it used (WithContext, SetLimit, Go, Wait, with the same semantics). Group.SetLimit panics when called while functions are running, as x/sync's does (without the panic, they would release their slots into the new semaphore and block). Nested modules that required x/sync only through the core no longer list it.

0.13.0 - 2026-10-12 ​

Changed ​

  • govern, its log adapters, integration and examples/govern require gsm v0.14.0 (was v0.13.0), and the gsm machine gate pins its release commit. gsm v0.14.0 adds the XU check for deployments that merge component projections; bide replays one shared event log (gsm's FedMachine model), so it does not rely on XU. Nothing that built on v0.13.0 fails to build, and every governance example runs unchanged.
  • The doccheck allowlist is empty (it held 44 entries): every exported identifier the check covers has a doc comment, and CI keeps the list empty (#178).
  • Runnable Example tests for the main API: an agent with a tool, resuming a run, ReadOnly and side-effect tools after a lost result, an approval gate, ResolveHalt, and audit.NewAuditedStore (#179).
  • Godoc describes current behavior only: P-numbers, "the 1.0 rewrite" and a migration note are removed, and the godoc of WithSafety no longer mentions a Safety argument of Func (#178).
  • The README shows the chaos results as the benchmark card: bide never repeated the charge, while LangGraph (SQLite and Postgres), adk-go, trpc-agent-go, langchaingo and eino each charged again (#175).
  • README section 4 and the governance guide frame gsm's theory as convergence by compensation, with the exact-regime-map line from normalization-confluence (#176).
  • README section 4 is shortened to the guarantee and its scope; the details are in the governance guide and known limitations (#183).
  • README: plainer wording; no claims changed. "The craft underneath" is now "Other details", and unverified comparisons with other projects are removed; the translations match.

Added ​

  • A run viewer guide (docs/guides/run-viewer.md, also on the docs site): installing and running bide-view, its flags, what each part of the page means, the crash, resolve and verify demo, and what it cannot show, with screenshots; a short section in the README and its translations. bide-view -h prints a synopsis and the exit statuses, and sqlite.OpenReadOnly's godoc covers reading beside a writer.
  • A run that pauses at an approval gate journals approval-pending:<call> (agent.ApprovalPendingStep, an agent.ApprovalWait with the call and the gate's k-of-n and approvers), once, in the drive whose model turn made the call. It is informational: no decision, resume or recovery reads it. bide-view shows such a run as "waiting for approval" and lists its gate before any decision. approval-pending: is a reserved step-name prefix, so a user Step named with it is ErrConfig.
  • bide-view (go install github.com/bide-ai/bide/cmd/bide-view@v0.13.0, its own module): a read-only local page for one run, served on a loopback address only: an agent run's timeline (model turns, tool calls with their Safety, attempts, approvals with k-of-n status, halts with their HaltRef, end state), a plan flow's declared topology with the run's path and conformance, and whether the journal verifies against a signed tree head or evidence package; with -approver-keys, whether each m-of-n approval gate's signatures verify (audit.VerifyApprovals, as bide-audit verify-approvals runs it), shown in the Approval gates table and the AUDIT PROOF card with the reason for any failure, against the recorded policy or, with -need and -approvers, against the policy you expect, flagging a recorded policy that differs. It reads a SQLite file (-db), a Postgres journal (-postgres), or exported journals (-journal). sqlite.OpenReadOnly and postgres.OpenReadOnly open a journal without writing to it. examples/approval gains run -crash and resolve, and examples/plan gains -topology-out, for the demo in the debugging guide.
  • A LangGraph crash-injection harness for the chaos benchmark, on SQLite and on Postgres (PostgresSaver) (#166, #167).
  • Design only, nothing implemented: a design note on probes for unknown outcomes and TLA+ model 13 (spec/tla/probes), which found that a provider's void must be monotonic: a void that sets rather than raises the watermark lets a stalled prober re-open an attempt a newer prober voided (#181, #182).

0.12.0 - 2026-10-05 ​

Fixed ​

  • Correction: the godoc of govern.FederatedGovernor and govern.FederatedEventTool said cross-registry conflicts resolve without coordination by the authority argument. That is false (normalization-confluence FederationGRS.v, fed_thm_fed_convergence_refuted). The authority argument makes the federated repair terminate in a unique valid normal form; event order across registries is safe because gsm v0.13.0's Federation.Build checks cross-registry CC (C1) and repaired CC (C2) and rejects a federation that fails either. Under gsm v0.12.0, which bide required, a federation could build whose agreed state depended on which event was appended first. The godoc, README, governance guide, concepts and known limitations now say so (#172).

  • Documentation: the governance guide called Federation.CoordinationPlan minimal. It is a correct plan of size at most the number of independent cycles, not necessarily the minimum, and each point names the registry its cycles are driven from (CoordinationPoint.Authority) (#172).

  • Documentation: the formal verification overview said the TLA+ models caught 29 bugs, all before release. They found 28 and confirmed one more found in review, and four (L1, S1, S2, S4) shipped in releases up to v0.9.0 and were fixed in v0.10.0. The overview, the README and the docs index now say so.

Changed ​

  • govern, its log adapters, integration and examples/govern require gsm v0.13.0 (was v0.12.0), which checks event order across federated registries (C1, C2) and reports delivery obligations; no federation in bide's examples fails the new checks. gsm behavior changes that reach bide's API: Machine.Apply normalizes an invalid input before applying the event, and Embed no longer copies AllowMonotoneCycles to the parent (gsm v0.13.0 release notes). The gsm machine gate is pinned to the v0.13.0 release commit (#172).
  • The README and governance guide state convergence under causal delivery and the exact scope of gsm's in-process oracle gate (a federation is oracle-gated per component only) (#172, folding in #170).

Added ​

  • govern.ConfluenceCertificate records gsm's delivery obligations: PairsUndeclared, CausalOrderRequired (undeclared pairs that do not commute, so need causal order), NotIdempotent (events a duplicate delivery would change) and Saturations, with the new types govern.EventPair and govern.Saturation; String() reports them. bide-audit verify-convergence and verify-run print them without changing the verdict. A certificate written by an earlier version still verifies, with a note that it records no obligations; a certificate this version writes has keys an earlier bide-audit rejects, so verify it with this release's bide-audit or later (#172).

0.11.1 - 2026-10-04 ​

Fixed ​

  • A failed model call's error said (model) (model): the run wrapped ErrModel around an adapter error that already wrapped it. It wraps it only when it is missing (#160).
  • model/openai with an empty API key: a server that needs a key refuses the request with 401 or 403, which read like a bad key or a provider fault. The *agent.APIError now says no API key was set (openai.New was given an empty key); a server that needs none, such as Ollama, works as before (#160).

Changed ​

  • Getting started works without an API key: an agenttest scripted model runs the first agent offline. The install step gets the agent package (go get github.com/bide-ai/bide/agent@latest), since getting the module root left go.sum incomplete; the core examples run with go run github.com/bide-ai/bide/examples/<name>@latest; and the guide says what a run prints and how a crashed run continues (#161).
  • The examples name a *agent.Journal journal, not store, so agent.New(model, journal, ...) does not read like the removed New(model, store, tools...) (#159).

0.11.0 - 2026-10-04 ​

Changed ​

  • Breaking: the API redesign's new names (P15, docs/design/api-v1.md section 10.2, #156). The transitional names and the old API they stood beside are gone. The list below is the upgrade path, name by name; a module that used github.com/bide-ai/bide/mcp requires github.com/bide-ai/bide/mcptools instead.

    • Construction: Build is New(model, journal, opts...) (*Agent, error); the old New(model, store, tools...) and the builder methods (Use, UseTool, WithMaxTurns, SetMaxConcurrency, ...) are removed: pass WithTools, WithMiddleware, WithToolMiddleware and the other options, or derive a copy with With. New makes every check Build made (two tools with one name, a non-object schema, an m-of-n policy's keys), so a configuration problem fails at construction rather than at a run.
    • Runs: RunMessage, StreamMessage, ResumeRun, RunTypedMessage and Session.SendMessage/SendMessageOnce are Run, Stream, Resume, RunTyped and Session.Send/SendOnce, each taking a Message (agent.UserText(s)) and run options and returning a *Result. The string entry points they replaced (Run and Stream on a string, RunSaga, RunResult, RunSagaResult, StreamSaga, the RunTyped and RunTypedNative functions, AgentStream.Final) are removed: a saga is Run(..., WithSaga()), native structured output is WithOutputMode(OutputNative). AgentStream and AgentEvent are RunStream and RunEvent; audit.Record is audit.RecordStream, which returns (*agent.Result, error).
    • Journal: the Durable interface and the stores' Do, History and Journal shims are removed. Every function that took a Durable takes a *Journal (agent.NewJournal(store)); a test fake that wrapped a Durable wraps the Store instead (and implements Unwrap() Store, which Capability and the run's identity follow). The journal verbs are generic methods: j.Step, j.Parallel, j.Signal, j.Enqueue (the channel Send) and j.AnswerInterrupt (the Resume[T] wrapper).
    • Pauses and halts: the aliases PendingApproval, Interrupted, Awaiting, Sleeping and ResumeHalt are ApprovalPending, InterruptPending, SignalPending, TimerPending and OutcomeUnknown; ResolveHaltRef is ResolveHalt(ctx, j, HaltRef, Outcome), and the wrappers ResolveStepHalt and ApproveAs are removed (SubmitDecision records one approver's decision).
    • Context decorators: ContextWithIdentity, ContextWithWaker and ContextWithClock are removed; pass WithIdentity, WithWaker or WithClock as a run option. WithIdentity refuses an empty identity (ErrConfig), which ContextWithIdentity bound.
    • Tools: the Tool interface is Spec() ToolSpec and Call; the old method set (Name, Description, ArgsSchema, Safety) and SpecOf are removed. Func takes its safety as an option (WithSafety) and, like CompensatedFunc, SubAgent and RetrievalTool, returns (Tool, error); MustFunc, MustCompensatedFunc, MustSubAgent and MustRetrievalTool panic instead. SubAgent(nil) is ErrConfig. A decorator that embeds a Tool inherits its Spec, and with it the gate and the timeout; it overrides in its own Spec (s := d.Tool.Spec(), then the fields it changes). New, and a plan flow registering a tool, refuse (ErrConfig) a tool whose Name, Description, ArgsSchema (compared as JSON) or Safety method disagrees with its Spec, including a pointer-receiver method on a tool registered by value, one of another signature, and one two embedded fields declare; a method of one of those names that means something else is refused too (rename it): written for the old interface, such a method no longer overrides anything (a decorator's Safety() declaring a side effect would be ignored, and a resume would run it again).
    • Packages: mcp is mcptools (github.com/bide-ai/bide/mcptools); the scripted model and its turns (ScriptedModel, NewScriptedModel, ToolTurn, TextTurn, ErrorTurn) moved to agent/agenttest, beside MemJournal, MustJournal, MustNew, Must, Answer and IdentityContext; plan's Register* functions are methods of *plan.Registry.
  • Breaking: Run without WithSaga on a run journaled as a saga drives it as the saga it is (its rollback included), where RunSaga's absence was ErrConfig; WithSaga on a run that is not a saga is still ErrConfig. A session turn and a sub-agent still refuse a drive that differs.

  • Breaking: audit.AuditedStore wraps a Store (not a Durable): it anchors after every Insert but the journal header's (also one that found its entry stored, or failed: an A3 write that committed while reporting an error is anchored), the header together with the run's first record, and never a head of the header alone; a publish that failed is covered by the run's next write (a replay no longer retries it), and AuditedStore.Reanchor(ctx, runID) anchors a run whose last write's publish failed (call it on OnError). cmd/bide-audit refuses an export whose first record is not a journal header.

Fixed ​

  • An audit.AttenuatingSubAgent delegation whose sub-run held only its journal header (its first record failed to write) was taken for a sub-run with records but no journaled authority, and every later call refused it; a sub-run holding only its header is now one that has not started.

Added ​

  • audit.AuditedStore.Reanchor(ctx, runID): anchors a run's journal now if no published head covers it, the recovery for a run whose last write's publish failed, or whose write landed under a context that was done, which Insert cannot anchor and reports to OnError with the context's error (OnError is the signal).
  • CI checks that no removed name appears in Go code, godoc or docs (internal/tools/oldnames).

0.10.0 - 2026-10-03 ​

Added ​

Run API, cancellation and recovery dispatch (P14) ​

  • The Run API, under transitional names (P14): Agent.RunMessage(ctx, runID, input Message, opts...), Agent.ResumeRun(ctx, runID, opts...), Agent.StreamMessage with AgentStream.Result(), Agent.RunTypedMessage[T] (a Go 1.27 generic method), Session.SendMessage and Session.SendMessageOnce, which the 1.0 rewrite renames Run, Resume, Stream, RunTyped, Send and SendOnce. Each returns a Result whenever the run ID is valid (agent.ValidateRunID), whatever the error; Result.Output holds a typed run's answer as journaled. The input is a Message, so a run can start from text and images (#138).
  • Run options (P14): the agent-and-run options (WithMaxTurns, WithTokenBudget, WithSystemPrompt, WithSampling, WithToolChoice, WithWaker, WithIdentity, WithMaxConcurrency, WithClock) now apply per run, and WithSaga(), WithToolFilter(names...) and WithOutputMode(OutputTool | OutputNative) are new. The journaling rule: a run's first drive journals its input and options in run:start (RunStart gains Session, Typed, Settings, Principal, Tools and Ext, and the kind session_turn), and every later drive, a recovery drive included, runs under them. A later drive's different turn limit or token budget is journaled as an amendment run:limits:<n>; any other different setting (input, saga, tool filter, system prompt, sampling, tool choice, output mode, typed schema, principal) is ErrConfig, before any model call. The tool filter is enforced at dispatch: a call outside it records an error result and never runs (model 10, finding L5). The principal (OnBehalfOf, AuthorityRef) is journaled and restored; the Actor stays live (#138).
  • agent.Cancel(ctx, j, runID, reason) and agent.Status(ctx, j, runID) (RunStatus, RunState) (P14, D1 and D8). Cancel writes run:cancelled, or on a saga the rollback request run:cancel-requested, which the saga's drive answers by rolling the run back and writing run:cancelled. A drive checks for the cancellation when it starts (and again once it has written run:start or a limit amendment, or lost the run:start insert to another drive: model 10's DStart and DAmend return to DOpen), at every turn boundary after its first, and after each won side-effect claim, before the call (model 10, L2); calls in flight finish, and a retry-safe call already dispatched in the current turn may still run (no Get per retry-safe call). A sub-run (a sub-agent's, a SubRunFor run, a delegation) reads its tree root's cancellation too, at each of those checks and from the root's own store (a sub-agent outside a saga may journal to another), so a Cancel of the root stops the whole tree (model 11, NoFireAfterRootCancel). A plan flow honours Cancel: its open reads its end markers, a node reads run:cancelled once it will run (after a side-effect node's claim is won), and its run:complete is read back. The first end marker in journal order is a run's end for every reader, and each writer of one reads the markers back (L3). Cancel of a run already cancelled returns nil, of a run otherwise over ErrRunEnded. Status reads one Load (L6). New errors: ErrRunCancelled, ErrRunEnded, ErrNotStarted and ErrNotResumable, none in a category (ErrNotStarted is often a race with a run's first drive) (#138).
  • Recovery dispatch (P14): agent.Resumer (func(ctx, runID, start RunStart) error), agent.ResumeAgent(a, opts...), agent.ResumeTyped[T](a, opts...) and agent.ResumeAny(rs...). A recovery pass reads each run's run:start under its lease; a run with none is skipped and reported once per process (ErrNotStarted), and read again on every pass (L7); a run no Resumer drives is reported once (ErrNotResumable); the process remembers its 65,536 most recent reports. A run a pass drove to its cancelled end (a saga's cancellation rollback included) is recovered, not a failure. ResumeAgent takes only the deployment's options (a Waker, a clock, a concurrency cap, an identity's Actor) (#138).

Sessions ​

  • Sessions (P14, model 12's S3): a Send turn whose run was cancelled is recorded closed, with no answer and outside the transcript, by the next message's Send; Send of the cancelled message (the same text) returns ErrRunCancelled. A saga turn's Cancel writes only its rollback request: the next message's Send drives the turn's rollback itself, under the turn lease and without holding the session handle's mutex (other callers on the handle are not blocked behind its compensators: while it is in progress, another worker or a second caller on the same handle gets ErrTurnContended), and then reads the journal again and records the turn closed. Over a store with no Leaser, the handle's mutex stays held across the rollback, so two callers on one handle never drive it at once (#138).
  • agent.ErrTurnContended: a Session.Send or SendOnce whose turn run another holder leases returns at once with an error wrapping it, having driven nothing (no category, like ErrLeaseLost); send the message again later. Agent.Session(ctx, id, opts...) takes LeaseOption values (WithLeaseHolder, WithLeaseTTL) for that lease (#137).

Tools (P12) ​

  • agent.ToolSpec (Name, Title, Description, Input, Output, Safety, Approval, Timeout), everything the agent knows about a tool, and agent.SpecOf(t), which reads a tool's Spec() ToolSpec method or, for a tool without one, its Name, Description, ArgsSchema and Safety (deprecated from the start: see Deprecated). The agent reads each tool's spec once, when it is registered, and decides every call from that copy (#117).
  • Tool options: agent.ToolOption with WithSafety, WithApproval, WithTimeout, WithTitle and WithOutputSchema, and agent.SingleApproval(), the one-decision gate. Func and CompensatedFunc take trailing options; SubAgent(name, description, sub, opts...) takes WithApproval, so a parent can require approval before it delegates, and refuses WithSafety and WithTimeout. An invalid option panics with an error wrapping ErrConfig, as Func does for an argument type it cannot describe, until the 1.0 rewrite returns errors (#117).
  • Tool timeouts (WithTimeout, ToolSpec.Timeout): the call, tool middleware included, runs under the deadline. A result returned after the deadline is recorded; an error returned after it has an unknown outcome: a side effect records nothing, fails the drive with ErrToolOutcomeUnknown and halts on resume, and a retry-safe tool records the error. It bounds only tools that honor their context (#117).
  • agent.ToolCall (Use, Spec, RunID) and ToolCall.ErrorText(err), what tool middleware receives (#117).
  • agent.ErrToolNotCalled, a condition (no category) for a tool call known never to have reached its tool. A tool middleware that ends a call without calling next returns an error wrapping it, and only then; middleware.ToolRateLimit and middleware.ToolRetry do. The agent tracks each call's state by compare-and-swap (reached, refused by the base handler, or closed when the chain returned without entering it): a call counts as not called only when refused, or closed with ErrToolNotCalled; any other closed call leaves a side effect's outcome unknown and the run halts. The base handler refuses an invocation that comes after the chain returned. The ToolMiddleware contract: reach the tool only through next (#117).
  • Tool-result, denial and saga-failure records journal the Safety and approval gate the call ran under (Record.Safety, Record.Approval); a saga rollback reads the recorded safety (#117).
  • A tool that wraps another says so with an Unwrap() Tool method; the agent follows it to find a wrapped SubAgent, so a saga rollback and the tree's token budget recurse into its sub-run (#117).
  • mcp.WithApproval(name, policy): Tools fails with ErrConfig when the policy is nil or invalid, or when the server lists no tool of that name, so a misspelt gate never leaves the real tool ungated. Each MCP tool's spec: Title (its title, else its annotations' title), Output (its outputSchema) and Timeout (WithCallTimeout) (#117).
  • govern.EventToolConfig and govern.FederatedEventToolConfig, whose Options pass agent.ToolOptions to the tool; audit.AttenuationConfig, and trailing agent.ToolOptions on audit.AttenuatingSubAgent, which go to its SubAgent (#117).

Construction under Build (P13) ​

  • agent.Build(model, journal, opts...) (*Agent, error), construction from options, and Agent.With(opts...), which returns a configured copy and leaves the agent unchanged. Build and With return every configuration problem as ErrConfig when the agent is built: a nil model, journal, option, tool, middleware or function; two tools with one name or one named final_answer; a tool name the agent's model refuses, when the model declares its rule (ToolRules); a non-object input schema; an invalid approval policy, an m-of-n policy with no WithApproverVerifiers or with two approvers on one signing key; a negative limit; a WithRetrieval k below 1; and a tool choice with an unknown mode or a tool the agent lacks. Build is the transitional name of the 1.0 New. Agent.Journal() returns the agent's journal (#127).
  • Agent options: WithTools, WithMiddleware, WithToolMiddleware, WithApproverVerifiers, WithToolErrorRedactor, WithSystemPromptFunc (its function gets the run's RunInfo and may fail), WithRetrieval, WithOptions, and WithMaxTurns, WithTokenBudget, WithSystemPrompt, WithSampling, WithToolChoice, WithWaker, WithIdentity, WithMaxConcurrency and WithClock. The last value given for a setting wins; WithSystemPrompt and WithSystemPromptFunc share one slot. The agent's WithIdentity, WithWaker and WithClock apply to a run whose context carries none (#127).
  • Option scopes are interfaces with unexported methods (Option, RunOption, ParallelOption, StepOption, ResolveOption, LeaseOption, RecoverOption, RecoverLoopOption, RetrievalOption, and ToolOption), and a setting for several scopes returns one of the combination types AgentRunOption, ConcurrencyOption, ClockOption, SafetyOption or LeaseControl, so an option passed where it does not apply does not compile. RunOption values are type-checked now and taken by the run API in the next redesign step (#127).
  • agent.RunInfo (RunID, RootRunID, ToolUseID, Saga) and RunInfoFrom(ctx), which describe the tool call a context belongs to, and RunInfo.SubRunFor(name), the run ID of a programmatic sub-run (<scope>>step:<name>), which Run accepts from that call's context (#127).
  • agent.WithRetrievalRetry(n, base, max), a RetrievalOption for WithRetrieval(r, k, opts...): a failed Retrieve is retried up to n more times within the retrieval step, with exponential backoff and full jitter, and only the attempt that succeeded is recorded. agent.RetrieverFunc adapts a function to a Retriever, which is how a policy wraps one (#127).
  • agent.WithSubRuns(agentFor), a tool option that declares the agent each of the tool's programmatic sub-runs (RunInfo.SubRunFor(name)) runs with. A saga's rollback walks every programmatic sub-run a call started, latest first and after the call's own compensation, as it walks a sub-agent's: a run in a saga's tree (a saga, or a plain run started from one's call) links each one in its journal (@subrun/<call>/<name>) before the sub-run records anything, and the rollback compensates the sub-run's writes with the declared agent's compensators, or, with none declared, reports them in SagaAborted.Uncompensated. A declared agent it cannot use (on another store, or a WithSubRuns function that panics) is listed there with the reason. A sub-run in a saga's tree must journal to the saga's store: Run refuses another with ErrConfig (#127).
  • agent.ToolRules, an optional interface a Model implements (itself or through Unwrap() Model) to declare the tool setups its provider refuses: ToolNameRule() *regexp.Regexp and RequiresToolsForRequired() bool. Build and With refuse a tool name the declared rule does not match, and check nothing for a model that declares no rule. model/openai and model/anthropic declare ^[a-zA-Z0-9_-]{1,64}$, and model/gemini its own ^[a-zA-Z_][a-zA-Z0-9_.:-]{0,63}$, so a dotted MCP tool name still builds for Gemini. Tool choice required on an agent with no tools of its own is left to the run, since RunTyped supplies an answer tool: a run with nothing to call, under a model that declares it needs one, fails with ErrConfig before it opens the journal or calls the model (#127).

Recovery and leases ​

  • agent.RunFilter.LeaseLapsed admits only the runs whose lease has lapsed, by the comparison AcquireLease makes; MemStore, SQLite and Postgres evaluate it over their leases table, and storetest checks it (Lister_LeaseLapsed) (#126).
  • agent.WithRecoverLapsedConcurrency caps how many lapsed runs RecoverLoop's lapsed loop drives at once (16 by default), apart from WithRecoverConcurrency (#126).
  • Leaser.ReapLeases(ctx, ended) deletes the lapsed leases no recovery pass takes over (a finished run's, or one on a run the store does not hold), checking the expiry in the same statement; RecoverLoop's lapsed loop calls it on each pass, so a holder that died between its run's last write and its release no longer leaves a lease every later pass reads. MemStore, SQLite and Postgres implement it, and storetest checks it (Leaser_ReapLeases) (#126).
  • Postgres: Open creates two indexes on the leases table when they are missing (<prefix>leases_expiry and <prefix>leases_run_c, on run_id under the "C" collation), so the lapsed listing reads only lapsed leases, or pages through many in order without sorting; on a store whose role does not own the tables, the owner opens it once to create them (#126).

Delegation ​

  • audit.WithRollbackGrants(ctx, signer, grants...) binds further grants a saga rollback verifies its delegations against, beside the acting grant (WithGrant): a saga whose delegations were minted under several grants (the root grant expired or was rotated between drives) rolls back with all of them bound. Each journaled child grant is verified against its own parent among the bound grants, under that grant's signer; a grant bound this way is never minted from (model 11, finding D1) (#133).

Governance (gsm) ​

  • The gsm machine gate, a required CI check: every gsm machine the examples/govern programs make is checked by the two checkers extracted from gsm's Coq/Rocq proof (checker on a machine's step tables, astchecker on its rules), built at a pinned gsm commit. gsm's gsmgate builds each program .github/gsm-gate/machines.txt lists and runs it twice with no arguments in a fixed environment; the job fails when a checker rejects a machine listed as accepted or verifies one Build rejects, a program makes a machine the list does not hold or misses one it holds, a run fails or the two runs make different machines, the scan finds a program or package that makes machines outside the list, or the pinned commit is not on gsm's main. It checks the examples' machines in CI, not the machines an application builds (.github/gsm-gate, #144).

Formal models ​

  • A TLA+ model of the tool-call state machine of P12 (model 9, spec/tla/toolcall): the call state and began word, the base handler entered by several invocations (retries, a next left running), the tool middleware, the loop's record decision, the errgroup, retry-safe steps that change state, and the saga rollback's re-run and compensation, under store faults, crashes, cancellations and deadlines. It found six bugs in #117 before it merged (T1 to T6: a known failure or a result recorded for a call whose tool began, did not itself fail, or was still running; "already ran" for a tool that never began; an earlier attempt of a retry-safe saga step listed nowhere; a retry-safe tool begun after its chain returned), and a rollback re-run with no end; each is a regression configuration (#123).
  • A TLA+ model of the run lifecycle and recovery (model 10: run:complete, run:aborted and the reserved run:cancelled; leased and plain runs, Recover and RecoverLoop passes with the end-marker re-check under the lease, halts, pauses and ResolveHalt, under lease expiry, stalled holders, ambiguous writes and crashes), checked in CI. It shows the pickup latency the v0.9.0 docs describe (a dead holder's run waits behind the halted runs listed before it), checks a proposed fix, and states the property P14's Cancel must satisfy (#124). Extended for P14 before any of P14's code was written: Cancel on plain runs and sagas, Status, the per-run tool filter, per-run options that survive recovery, and not-started runs in recovery, with findings L4 to L7, whose rules P14 adopted (#129).
  • A TLA+ model of delegation, sub-run authority and saga trees (model 11, spec/tla/delegation): audit.AttenuatingSubAgent grants (minting from the bound grant, reuse on resume, expiry at mint, at reuse and before every call, the subject check, a resume under the wrong authority), programmatic sub-runs (RunInfo.SubRunFor: the saga-tree link written before the child's first write, one store per saga tree, a sub-run started after its call returned refused), the rollback's recursion into sub-agents and linked sub-runs, BindRollback, and halts propagating from sub-runs, under ambiguous writes, crashes, transient read errors, lost outcomes and the clock. It found D1 to D3, fixed in #133, each now a regression configuration (#130).
  • A TLA+ model of sessions (model 12, spec/tla/sessions): Send and SendOnce turns as runs of their own seeded with the shared history, several callers per handle and handles per process, redeliveries, error replies on every session-journal write, crashes, pauses, the per-turn budget, and P14's Cancel of a turn's run. It found S1 to S4: S1, S2 and S4 are fixed in #137 and S3 by rule 16 of P14's contract (#138); each is a regression configuration (#135).
  • P14 implements model 10's adopted rules L2 to L7 and model 12's S3 (rule 16 of the P14 contract): findings/cancel-saga-marker, filter-request-only, status-gets, not-started-remembered (model 10) and s3-cancel-wedge (model 12) are regression configurations now, each still failing under its old rule; the drive, Cancel, Status and session code carries the protocol:lifecycle and protocol:sessions markers of the actions that were on the no-code lists (#138).
  • Code and models are kept in step (milestone M4 of the formal-models plan): the Go code models 1, 1b, 7, 8 and 10 describe is wrapped in // protocol:<model> begin <Action> ... / // protocol:<model> end region markers, and the Lint job runs internal/tools/modelsync, which fails a pull request that touches a marked region without changing spec/tla/<model>/ (unless the description or a commit message holds Protocol-Impact: none (<reason>), printed as a warning), and any disagreement between the markers, the model-to-code maps in spec/tla/README.md and the specs' action names. TestProtocolVocabulary checks that the claim code's key constructors and record kinds match the record kinds Claims.tla declares, and runs in the same job (#125).
  • Apalache (v0.62.2, pinned with its SHA-256 in spec/tla/tools.lock) checks the claim model nightly, beside TLC: spec/tla/check.sh apalache [model|file.cfg] downloads and verifies it, unpacks a fresh copy, and removes its work directories on exit, failure and interrupt. A typed wrapper (ClaimsApalache.tla) instantiates the model unchanged, and an inductive invariant (ClaimsInductive.tla) proves, for two drivers over two processes, AtMostOnce and NotStartedExclusive on one call (attempts 0..3, 8 claim ids) and all four of AtMostOnce, NotStartedExclusive, NoLiveOverride and AtMostOncePerIntent with halt resolution and the caller's second call (attempts 0..3, 6 claim ids), without the approval gate, and, under the lease check, assuming no plain run holds the live attempt at the check (PlainRunIdleAtCheck), at any depth and for any number and mix of faults within the run's 8 (6) claim ids and attempts 0..3 (claim ids are never reused, so this bounds the number of claims), with every placement of the drivers, kind of call and late-commit setting left to the solver; the drivers, processes, calls, attempts and claim ids stay bounded (Apalache results). A regression check must find #90's F2 (NoLiveOverride) symbolically, TLC checks the invariant as a plain invariant of every reachable state of three configurations, and Apalache type-checks model 9's wrapper. The new Apalache (nightly) job runs them; the required Models job is unchanged. Model 9 has a typed wrapper (ToolCallApalache.tla) and no Apalache check of its properties yet. To type model 1, Claims.tla changed three expressions without changing their meaning; TLC passes every configuration as before (#148).

Documentation, testing and tooling ​

  • Formal verification, an overview of bide's TLA+ models: why bide model-checks, what each model guarantees and which code it covers, the bugs the models caught before release (F1 to F5, P1, P2, T1 to T6, L1 to L3) and where each was fixed, what runs on a pull request and nightly, how the models and the code stay in step, the models planned next, and what the models do not cover. The formal-models plan's status markers and the roadmap are brought up to date (models 9 and 10, M4 done) (#128); a section explains TLA+, PlusCal, TLC and model checking for readers new to them (#131).
  • The gsm convergence-proof claims (README section 4, the governance guide and its translations) state what the mechanization proves: CI-verified on Coq 8.18, 8.20 and Rocq 9.3; the federated result machine-checked for the acyclic structural core and the monotone-cycle case; the cohomological layer through the cycle basis, with the full H¹ classification paper-proven (#139).
  • The gsm convergence wording states the final state once. gsm v0.11.0, which bide required until this release, had a Build gap: its commute shortcut did not check what event guards and effects read, so a machine where one event's guard or effect reads a variable another event writes (pay/ship) could be certified convergent when it is not. #142 scoped the docs to that while it held (no "Build proves every interleaving converges", no proof-derived re-check claimed). With gsm v0.12.0, which fixes the gap (#154), the README section 4 and its comparison-table footnote, the four i18n READMEs, the governance guide, CONCEPTS.md and the docs-site front page say what backs convergence now: Build returns a machine only after the table oracle generated from gsm's Rocq proof re-checks it in-process (and, for combinator rules inside its fragment and within a cost cap, the rules oracle), a federation's own conditions are checked by gsm's Go code, and the required gsm machine gate runs the proof's checkers on every machine the governance examples build. KNOWN-LIMITATIONS.md ("Governed state (gsm)") gives the exact scope, including which pairs CC covers and that a verdict recorded under v0.11.0 is not covered by the fix (#155).
  • The roadmap is brought up to date: P12 to P14 done, models 11 and 12, and gsm convergence (#153).
  • Tests: the tool-timeout tests that need their tool to run use a testing/synctest bubble, so a short deadline can no longer pass while the call is being dispatched (#134).
  • Tests: modelsync's fixture git repositories are isolated from auto-gc, maintenance, fsmonitor and the global and system git config, so no background git process races a test's cleanup (#136).

Changed ​

Run API, cancellation and recovery dispatch (P14) ​

  • Breaking: agent.Recover and agent.RecoverLoop take an agent.Resumer (func(ctx, runID, start RunStart) error) instead of func(ctx, runID) error. Migration: pass agent.ResumeAgent(a), or add the start agent.RunStart parameter to your own callback; a run an earlier version started is not driven by ResumeAgent (see the kind entry below) (P14, #138).
  • Breaking: RunStart.Input is a Message (a user message of one text part is still journaled as a JSON string, so existing records read back unchanged); read its text with start.Input.Text() (P14, #138).
  • Breaking: agent.Sampling and agent.ToolChoice marshal with snake_case JSON names (temperature, top_p, max_tokens, stop, seed; mode, name), as run:start journals them (P14, #138).
  • Breaking: RunTyped and RunTypedNative journal the typed start (output mode and the answer type's schema), so resuming a typed run started under this version through Run, or with another type, is ErrConfig (P14, #138).
  • Breaking: a run's first end marker in journal order is its end for every reader (P14, L3): a run whose run:cancelled precedes its run:complete returns ErrRunCancelled, not its answer, and IsComplete reports it not complete (#138).
  • Breaking: ErrNotStarted wraps no category (it wrapped ErrConfig earlier in this release cycle) (#138).
  • P14 writes the kind of every run it starts in run:start (RecordedStart(...).Kind is agent for an agent run). A run:start an earlier version wrote, with no kind and no typed start, is driven by any agent entry point, as before: a session turn, a SendOnce turn or a typed run in flight across the upgrade still resumes through its session or RunTyped (its input is still held). Upgrading: recovery does not drive such a run through ResumeAgent or ResumeTyped: the record does not say whether a plain run or a typed one started it, so both return ErrNotResumable for it (Recover reports it once per process). Finish the runs in flight before upgrading, or recover them with a Resumer of your own, after ResumeAgent in ResumeAny, that knows which entry point started each (RunTypedMessage for a typed run, ResumeRun for a plain one) (#138).
  • WithToolChoice(ToolChoice{Mode: "none"}) is enforced at dispatch: a tool call the model makes anyway is refused with an error result, as a call outside the tool filter is (a typed run's answer tool excepted) (#138).
  • A saga's rollback request is read before a recorded failure, and a failure's rollback of a saga whose rollback request exists ends run:cancelled (one more Get, on that rollback only), and so does a saga sub-run's failure rollback once its tree root was cancelled (up to two Gets more, from the root's store). A drive without WithSaga of an aborted saga (RunMessage, ResumeRun) reports *SagaAborted, not ErrConfig; a cancellation's rollback that finds run:aborted first reports the abort (#138).
  • Breaking: a finished agent run returns its recorded answer only to a drive with the input its run:start recorded; Run, RunSaga, Stream and the rest with another input are ErrConfig, as for an unfinished run (#70) and a finished flow's run. Before, a finished run answered any input with its own answer, so a SendOnce key reused for another message, whose run had finished and was not yet recorded, was answered with the first message's reply and recorded as that message's turn (#137, review R137-2).

Sessions ​

  • A session's turn run is driven under its lease when the store implements Leaser (MemStore, SQLite, Postgres), as agent.Lease drives a run: the run loads its journal only once it holds the lease. A worker that finds another holder leasing the run returns its recorded answer if the run has finished, and ErrTurnContended otherwise (model 12, finding S4, TurnLease). Cost: a first Send turn over MemStore takes about 14 µs, 25 allocations and 1.7 KiB more (BenchmarkSession_Send, the lease's renewer goroutine and timer), and over SQLite or Postgres two more single-row statements (the lease's acquisition and release) (#137).
  • Leaser.ReapLeases also deletes the lapsed leases of runs whose ID contains > (a session's or a sub-agent's run), which no recovery pass takes over, so a worker that died mid-turn does not leave a lease every later lapsed pass reads. MemStore, SQLite and Postgres implement it, and storetest's Leaser_ReapLeases checks it. A custom Leaser must do the same (#137).

Tools (P12) ​

  • Breaking: agent.Safety is plain data, {ReadOnly, Idempotent}: comparable, and journaled. The approval gate is ToolSpec.Approval, set with agent.WithApproval(agent.SingleApproval()) (for Safety{RequiresApproval: true}) or agent.WithApproval(&agent.ApprovalPolicy{...}) (for Safety{Approval: ...}). ApprovalPolicy encodes as need and approvers (#117).
  • Breaking: agent.ToolHandler is func(ctx, ToolCall) (json.RawMessage, error): tool middleware reads call.Use and call.Spec, and passes next a copy with other Use.Args to rewrite arguments (#117).
  • Breaking: agent.Request.Tools is []agent.ToolSpec, sorted by name, and ToolsDigest takes []ToolSpec (the digest is unchanged) (#117).
  • Breaking: a tool result's read_only field is replaced by safety and approval (Record.ReadOnly is replaced by Record.Safety, and Record.Approval is new); a result journaled by an earlier pre-release carries no safety, so a rollback over it treats every completed call as a write (the safe reading); resuming across pre-releases is not guaranteed (the journal format stays bide.journal.v1-dev) (#117).
  • Breaking: govern.EventTool(gov, EventToolConfig{...}) and govern.FederatedEventTool(gov, FederatedEventToolConfig{...}) replace their positional forms; audit.AttenuatingSubAgent(name, description, sub, AttenuationConfig{Store, Narrow, Rules}, opts...) replaces its positional form (#117).
  • Breaking: mcp's Tools fails with ErrProtocol when a server lists a tool whose outputSchema is not an object schema (a null one is no output schema) (#117).
  • Breaking: new construction panics, each with an error wrapping ErrConfig: audit.AttenuatingSubAgent on a nil AttenuationConfig.Store or Narrow, or an option agent.SubAgent refuses; govern.EventTool and govern.FederatedEventTool on an invalid agent.ToolOption in their Options (and EventTool on Attested with an empty PolicyDigest) (#117).
  • Breaking: mcp.WithSafety sets only ReadOnly and Idempotent; gate an MCP tool with mcp.WithApproval. WithCallTimeout also sets the tool's ToolSpec.Timeout, which the agent applies (#117).
  • Breaking: only agent.SingleApproval() asks for the one-decision gate; it is a distinct value, never inferred from a policy's shape, so an ApprovalPolicy literal with no approvers ({Need: 1} included) is ErrConfig, in agent.WithApproval and mcp.WithApproval. ApprovalPolicy.Clone copies a policy, a SingleApproval included. ApprovalPolicy has an unexported field, so an unkeyed literal (ApprovalPolicy{2, approvers}) no longer compiles: name the fields (#117).
  • Breaking: tool middleware passes next the ToolCall it was given (or a copy with other Use.Args); a call whose Use.Name or Use.ID it changed, or a ToolCall it built itself, fails with ErrConfig and the tool is not called (#117).
  • Breaking: SagaAborted.UnknownOutcome lists saga steps that failed with an unknown outcome (a retry-safe step that returned ErrToolOutcomeUnknown, or an error after its deadline), which may have committed; their failure records carry outcome_unknown. The rollback reports them rather than take them for steps that changed nothing, and does not run their compensators on a result they never returned (#117).
  • Breaking: New refuses (as ErrConfig, before any model call) a tool that unwraps (Unwrap() Tool) and is a Compensator, and one that wraps a sub-agent and has a Timeout or gives it another Safety (#117).
  • New validates every tool's ToolSpec.Approval: a policy a custom Spec() returns that no option would build (a SingleApproval whose fields were changed, an m-of-n policy with no approvers) fails every run with ErrConfig before any model call, where it used to be approved, fire, and then fail to encode its result (#117).
  • Breaking: a decorator that embeds a tool (struct{ agent.Tool }, overriding Call) has no Spec method, so its spec, read from the old method set, would have no approval gate and no timeout, and the gated tool inside would run ungated. New (and plan's tool check) now fails closed: a tool that embeds, at any depth, a tool with an Approval or a Timeout its own spec lacks is ErrConfig ("decorator hides the approval gate; implement Spec or Unwrap"). A decorator keeps them by implementing Spec, or Unwrap() Tool: SpecOf of a tool with no Spec method takes Title, Output, Approval and Timeout from the first tool on its Unwrap chain that has one. The check walks the whole Unwrap chain, in New and in plan's Builder.Tool (at Build) and RegisterTool (#117).
  • Behaviour change for mcp.WithCallTimeout users: an error the server reports after the call's deadline (a late JSON-RPC error, a known failure) now has an unknown outcome under the agent's timeout rule, so a side effect records nothing and halts on resume instead of recording the failure. The agent cannot tell a late failure from a late answer to a call that took effect, and takes the safe side (#117).
  • The journal encodes SingleApproval as {"single":true}, the bide protocol's form (ApprovalPolicy has MarshalJSON and UnmarshalJSON); m-of-n policies encode as before (#117).
  • The approval policy decodes strictly: {"single":true} alone is SingleApproval; single with any other value or beside need or approvers, a policy with no need, and duplicate, unknown or mistyped members are ErrProtocol. That is ApprovalPolicy.UnmarshalJSON, for a policy being configured or received; the approval inside a stored Record (DecodeStoredRecord, DecodeRecord, and so a proof bundle's Record()) is read leniently, ignoring members this version does not know, so a journal a newer version wrote stays readable (#117).
  • A call that reached the base handler but returned before its tool's Call began (a saga-arguments write cut off by the saga's cancellation) counts as not called: a per-call word, set by compare-and-swap immediately before the tool and sealed by the loop when the chain returns, proves no call began and none can (#117).
  • A tool call's state is terminal once the middleware chain returns (a refused call too), so a next left running cannot reach the tool after the loop recorded the call; its saga arguments are journaled only once it reaches the tool, and "already ran" (ErrToolReinvoked) is decided by the compare-and-swap that begins the tool, so it is said only of a tool that began. Once the chain has returned, no invocation of next begins the tool, even a retry-safe one an earlier invocation reached: it used to begin again after the call's result was recorded, and after a saga's compensation (found by the TLA+ tool-call model, T5) (#117).
  • Breaking (behaviour): a side effect whose tool began and did not itself fail is never recorded as a known failure. When the chain returns an error for it (a middleware turned its success into an error, or returned a retry's refusal, or left the call running) and the context is live, the error wraps ErrToolOutcomeUnknown, nothing is recorded, and the run halts. The ToolMiddleware contract says so. Found by the TLA+ tool-call model. In a saga the same holds for a retry-safe step that changes state (Idempotent, not ReadOnly): its failure is recorded with an unknown outcome and listed in SagaAborted.UnknownOutcome, never skipped by the rollback as a step that made no change; outside a saga a retry-safe tool's error stays an ordinary failure (#117).
  • In a saga, a compensable retry-safe step that changes state (Idempotent, not ReadOnly, a Compensator) journals its accepted arguments before each call whether or not a middleware changed them: the record is the step's "may have begun" marker, since such a step writes no attempt marker. When an earlier drive's attempt journaled it and left no outcome, a later known failure of the step (the tool's own error, a middleware's refusal, ErrToolNotCalled) is recorded with an unknown outcome and listed in SagaAborted.UnknownOutcome, and a rollback reports such a step that was later denied; within one drive the same holds for any retry-safe write a middleware ran again after an invocation that did not itself fail. A store fault writing that record (or a rewritten call's arguments) fails the run and records nothing, so a re-drive calls the tool; it used to be recorded as a known failure. Found by the TLA+ tool-call model (T3) (#117).
  • Breaking (behaviour): a result needs positive proof: a tool middleware chain that returns a result while any invocation of the call's tool is still running in the process (a middleware that left next running and answered itself, from a cache say; a sibling invocation; one a cancelled drive left behind, counted per run and call) has an unknown outcome (ErrToolOutcomeUnknown), so a side effect halts and a retry-safe saga step is listed in SagaAborted.UnknownOutcome and never compensated, where it used to be recorded as succeeded and could be compensated before its effect landed. A saga rollback that re-runs a retry-safe step to learn the result to compensate, and gets an unknown outcome (a result check that rejects every success, say), reports the step in SagaAborted.UnknownOutcome and finishes, instead of stopping on every drive. A rollback re-run that a middleware answered without reaching the tool is not taken for the step's result either. The count is read whatever state the chain ends in, so a re-drive's cache answer while the earlier drive's invocation still runs is unknown too (T6). Found by the TLA+ tool-call model (T4) (#117).
  • Tool timeouts are judged by the deadline itself (a context's error lags its timer), for the tool's timeout and the run's own deadline; only a call whose tool was actually called can be late or unknown: a call a tool middleware ended first is a known failure, and a tool whose deadline passed in the middleware is not started. Plan flows' Tool nodes apply the wrapped tool's ToolSpec.Timeout with the same rule (#117).
  • NextOnceKey and Safety.Idempotent document that once keys are scoped to one tool call: a retry the model makes is a new call with new keys, so dedup across the model's retries needs a business key from the arguments (#117).

Construction under Build (P13) ​

  • Breaking: agent.WithRetrieval(r, k) is an agent Option, not a model middleware: the agent retrieves for the run's user message as a journaled engine step, at a drive's first model call, and every model middleware sees the request with the documents in it. Migration: a.Use(agent.WithRetrieval(r, k)) becomes agent.Build(model, j, agent.WithRetrieval(r, k)) or a.With(agent.WithRetrieval(r, k)). A retrieval outside an agent run no longer exists. The retrieval runs before the model middleware chain, so model middleware neither retries it nor prevents it: middleware.Retry no longer retries a failed retrieval (use agent.WithRetrievalRetry), and a model middleware that refuses the call (a policy gate, a spend cap) runs after the query has reached the Retriever and the documents are journaled. A policy that must keep a query from the store wraps the Retriever (see agent.RetrieverFunc and the RAG guide) (#127).
  • Breaking: agent.RetrievalTool(name, description, r, k, opts...) takes the tool's name and description and the tool options, as Func does; RetrievalOption, RetrievalName and RetrievalDescription are removed (#127).
  • Breaking: trace.Instrument(tracer, opts...) returns an agent.Option. Migration: trace.Instrument(a, tracer) becomes agent.Build(model, j, trace.Instrument(tracer)) or a.With(trace.Instrument(tracer)) (#127).
  • Breaking: the context decorators agent.WithIdentity(ctx, id), agent.WithWaker(ctx, w) and agent.WithClock(ctx, now) are renamed ContextWithIdentity, ContextWithWaker and ContextWithClock (transitional), and the With names are the options. A value bound to the run's context takes precedence over the agent's option (#127).
  • Breaking: agent.WithNow (a ResolveOption) is replaced by agent.WithClock, and agent.StepSafety by agent.WithSafety, which a tool and a Step both take. WithClock(nil) is ErrConfig (WithNow(nil) was ignored) (#127).
  • Breaking: agent.Parallel(ctx, d, runID, tasks, opts...) takes the tasks as a slice and the concurrency cap as WithMaxConcurrency(n) (a negative n is ErrConfig); the positional maxConcurrency is removed (#127).
  • Breaking: Lease takes LeaseOptions, Recover RecoverOptions and RecoverLoop RecoverLoopOptions. WithLeaseHolder and WithLeaseTTL fit all three; WithRecoverInterval, WithRecoverConcurrency and WithRecoverErrors fit only RecoverLoop, so passing one to Recover or Lease, which ignored it, no longer compiles (#127).
  • Breaking: agent.RunScope and agent.InSaga are replaced by RunInfoFrom: SubRunID(info.RunID, info.ToolUseID) is a call's sub-agent run ID, and info.Saga whether its run is a saga. A saga rollback's re-run of a retry-safe call now carries that call's RunInfo (it carried whatever scope the rollback's context held) (#127).
  • Breaking (behaviour): whether a tool call is in a saga is its own run's flag (RunInfo.Saga). A plain run started from a saga's tool call (child.Run with a SubRunFor ID) is not a saga, and neither are its calls: they no longer inherit the saga mode of the call that started the run, so such a run's compensable calls do not journal their accepted arguments, and its sub-agents run as plain runs. Start the sub-run with RunSaga to keep it a saga. A sub-agent (SubAgent) called from a saga runs as one, as before (#127).
  • A programmatic sub-run is refused (ErrConfig) once the tool call whose context names it (SubRunFor) has returned, so a goroutine that outlives its call cannot start a sub-run no call owns, which no rollback and no Recover would reach. In a saga, a programmatic sub-run's name must be at most 96 bytes once escaped, so its link can name it (#127).
  • Agent.WithSystemPrompt and Agent.WithSystemPromptFunc share one slot: the later call wins (the function used to win whatever the order) (#127).
  • The system prompt function (WithSystemPromptFunc) is called once per drive just before the drive's first model request, and not at all by a drive that sends none: reading back a finished run, or a resume whose pending tool calls pause or halt, no longer fails when the function does. A resumed turn's pending tool calls now run before the prompt function is called (it was called first, before them) (#127).

Recovery and leases ​

  • Breaking: agent.RunFilter.Admits takes a third argument, lapsed func() bool, which reports whether the run's lease has lapsed; it is called only when the filter sets LeaseLapsed (#126).
  • Breaking: agent.Leaser has a fourth method, ReapLeases (#126).

Delegation ​

  • audit.AttenuatingSubAgent reuses the grant a resumed delegation journaled instead of minting another, journals a delegation that ran without a grant, and refuses a delegation resumed under other authority, from an expired bound grant, or onto a sub-run that has records but no journaled authority, with an ErrConfig that records nothing (the run stops once siblings in flight finish; a sibling's pause is joined to it), so a re-drive under the right grant continues it. A delegation cannot run past its grant's NotAfterUnix: every tool call in its sub-run is refused, recorded, once the child grant has expired, and a delegation resumed after its journaled grant expired fails, recorded (a saga rolls back). A child grant's subject must be the sub-agent's name. Its rollback binding verifies the journaled grant (signature under the bound signer's key, attenuation of the bound parent, its subject) and stops with ErrConfig when no grant and signer are bound. A failure to read or write the delegation's authority in the store records nothing, so a resume retries the delegation, as for a plain SubAgent; only value records count as journaled authority (#117).
  • Breaking (journals): a saga journaled by an earlier pre-release that holds an ungranted audit.AttenuatingSubAgent delegation cannot be rolled back after the upgrade: its sub-run records no authority, and the rollback stops (ErrProtocol) rather than guess. Finish or roll back such sagas before upgrading; journals are not promised across pre-releases (#117).

Performance ​

  • The counting-store budget (docs/design/api-v1.md, 10.3) is raised by P14's reads, a maintainer decision: every model turn after a drive's first costs one more Get (run:cancelled), a side-effect call one more (run:cancelled once its claim is won), a completion one more (two on a saga: the end markers read back), and a recovery pass four Gets per driven run (its run:start). The #138 review added one Load after a first drive writes run:start (and after a limit amendment), reading the entries' names only; a sub-run's checks read its tree root's cancellation (up to two Gets each); a flow node that runs reads run:cancelled (one Get), and a flow's completion and its resumed open read the end markers. Over a transitional Durable with no Journal, each of these reads is a History (P14, #138).
  • A recovery pass costs less than it did before P14 although it reads each driven run's run:start (rule 14): the commonest start (a plain text agent start, with or without its kind) is read without the JSON decoder, exactly, its salt checked as the full decoding reads it (anything else takes the JSON decoding, into a pooled record whose name, kind and salt are matched without decoding strings; a record with any member but those and its result, or one of them twice, takes the full decoding, so a start either path reads is the start the full decoding reads, which a fuzz target checks), and a leased drive starts its renewal goroutine at the first renewal (half the TTL) rather than with the drive, so a short visit (a halted run, a run over since the listing) starts none. BenchmarkRecoverPass10k against main in the bench workflow's A/B on the final code: -33.6% and -30.8% time, -6.6% B/op, -5.9% allocs (runs 36957790848 and 36957793253; +95% with the first P14 draft). Every leased drive (Lease, a session turn) gains the renewer change.
  • P14's per-run reads (the Load after run:start, the turn boundary's run:cancelled, the end marker's read-back) cost the closed-loop fanout scenario its tail on MemStore, whose one mutex every read and write takes: a drive's own cancellation checks and a writer's read-back no longer look the run up in the journal's known-runs set on a miss (the drive opened, or the writer just wrote to, the run), MemStore copies entry data outside its mutex (entries are never modified once appended), run:start is encoded in one pass, the input in place (the bytes unchanged), and a drive grows its goroutine's stack once, before it starts (probeDriveStack, sized against the drive's stack need, which TestDriveStackHighWater pins), rather than twice deep inside it. The bench workflow's A/B against main on the final code (runs 36957790848, AMD EPYC 9V45, and 36957793253, AMD EPYC 7763; 21 interleaved runs per binary, medians): cmd/bench overhead (mean, p90, p99) -2.5%, -30.4%, -37.5% and -1.9%, -16.7%, -14.3%; fanout -1.1%, -9.5%, -5.2% and -5.6%, -9.4%, -13.7%; benchstat (10 runs per ref) BenchmarkRunTurns +4.0% and +2.1% time, neither significant (p=0.165, p=0.280), +0.3% B/op, +0.9% allocs (8 per run); BenchmarkToolCallSideEffect -1.7% (not significant, p=0.796) and +3.3% (p=0.035) time, +0.5% B/op, +2.6% allocs (8 per call). Before these changes fanout was +3.4% to +10.6% at p99.
  • Breaking: agent.Record shrinks from 368 to 256 bytes, from the 384-byte Go size class to the 256-byte one, so each heap copy of a record (a decode, an encode, a store's put) is smaller. Two groups of rarely set fields move behind embedded pointers: *agent.ModelTurn holds Finish, RawFinish, Model, PromptDigest and ToolsDigest (set on StepModel records only), and *agent.ApproverSignature holds Approver, ApproverAlg and Signature (set on decisions SubmitDecision records only). Direct access to those fields no longer compiles. Migration: read them with the nil-safe methods of the same names (rec.Finish(), rec.Approver(), ...), which return the zero value for a record that carries none, and build a record with ModelTurn: &agent.ModelTurn{...} or ApproverSignature: &agent.ApproverSignature{...}. The journal encoding is byte for byte the same: the members keep their names, order and omitempty behaviour, and existing journals decode as before. Measured A/B against main on two 4-vCPU runners (bench.yml, 21 interleaved runs per binary, AMD EPYC 7763 and 9V74): the overhead scenario ran +0.7% and +1.6% runs/s, mean latency -0.4% and -1.6%, p90 -1.0% and -9.1%, p99 -4.4% and -7.8%; the fanout scenario ran -1.4% and +1.2% runs/s, within the runners' noise, with mean, p90 and p99 within 2% either way. In the Go benchmarks (benchstat, 10 runs per ref), RunTurns allocates 4.4% fewer bytes (73.2 to 70.0 KiB/op) and ToolCallSideEffect 6.0% fewer (26.1 to 24.5 KiB/op), with 1.3% more allocations (a model record's ModelTurn is its own allocation); RecoverPass10k is unchanged, and no time per op changed significantly (#140).

Governance (gsm) ​

  • Upgrade: bide requires gsm v0.12.0 (govern, govern/postgreslog, govern/redislog, govern/sqlitelog, examples/govern and integration; was v0.11.0), so an application that uses govern builds with gsm v0.12.0. Its Build checks every pair it checks for CC (every event pair, or only the pairs declared with Independent) exactly, with no footprint shortcut, which fixes v0.11.0's gap for guards and effects that read another event's writes, and returns a machine only after the table oracle (and, within its fragment and cap, the rules oracle), generated from gsm's proof, re-checks it in-process (scope in known limitations). Upgrade impact, from gsm's upgrade notes: rebuild every machine, since Build may now reject one v0.11.0 accepted; event names, variable names and enum labels must be unique; closures (effects, repairs, morphism maps) must return states of their machine; Machine.MergeProjection returns an error for out-of-domain values; BuildOrSynthesize falls back to synthesis only when the compensation failed; re-issue gsm certificates with Certify; Report.String text changed; Build costs more (no measurable slowdown for the governance examples). PolicyDigest is unchanged, so anchored policy digests stay valid. A convergence verdict or ConfluenceCertificate recorded under v0.11.0 is not covered by the fix: rebuild and record a new one. The gsm machine gate pins ecaf453, the v0.12.0 release commit (#154).
  • Behaviour change: govern.CertifyConvergence reports Converges only for a machine Build returned (Report.Assurance set). Under gsm v0.12.0 a machine can pass gsm's WFC and CC checks and still be refused by the in-process oracle gate (Report.OracleDisagreement); its certificate now says Converges: false (#154).
  • Three governance examples declare the gsm rules of six registries with combinators instead of closures (examples/govern/compose's inventory, coordination's two registries, mesh's three lines), so both of gsm's extracted checkers, not only the table checker, certify them in the gsm machine gate. Their behaviour and output are unchanged (#146).
  • The gsm machine gate's pinned gsm commit followed gsm's main: 219dcaa, whose rules checker carries normalization-confluence#11's fixes (#147); 150133b, whose table checker carries normalization-confluence#12's speed-up (#149); c2eecd6, which runs the proof's table oracle in-process on every successful Build (gsm#12), so the examples also Build under it (#150); fcf884a, which records only the synthesized machines a program receives, not the candidate synthesis certifies (gsm#16), so the gate reads 23 machine records again (#151); and 031db4e, whose Build also runs the proof's rules oracle in-process (gsm#17), so every registry the governance examples build with Build is certified by both oracles (the synthesized machine in coordination by the table oracle), with no measurable change in run time (#152).

Formal models, CI and dependencies ​

  • The required Models job checks four configurations at a time (one TLC worker each) and, on a pull request, only the models whose spec/tla/<model>/ directory the pull request changes; the merge queue and main still check every model. The largest passing pull-request configurations of models 1, 2, 7 and 8 (1.4 to 2.9 million states) and two of model 1's liveness checks run nightly, each safety one with a smaller pull-request counterpart of the same invariants, so every path keeps a passing configuration and its vacuity run on pull requests. The job takes about 6 minutes, down from 9 to 15.5 (#132).
  • CI runs its two slowest jobs in parallel shards, with no check dropped: the Models configurations in six shard jobs by configuration directory (check.sh's new TLC_DIRS), and the Linux Go tests in four jobs (the core's agent package, the rest of the core, the other modules, and the nojsonv2 run), each with the same flags as before. The required check names are unchanged: a final Models and Test (ubuntu-latest) job needs every shard and fails unless each succeeded (or nothing needed checking). .github/scripts/shards.sh fails CI unless every module, every package of the split core and every pull-request configuration is in exactly one shard, naming the line to change, and its self-test proves it catches a missing, doubled or unknown entry. With every model and every module checked, the Models workflow took 3.5 to 4.1 minutes on this pull request's runs, against 7.6 to 7.8 on pushes to main and 9.8 to 10.7 in the merge queue before, and the CI workflow 5.2 to 6.0 minutes, against 7.5 to 8.4 on main (each from the run's creation to its last update) (#143).

Deprecated ​

  • The string entry points are transitional (P14): Agent.Run(ctx, runID, input string), RunSaga, RunResult, RunSagaResult, Stream, StreamSaga, AgentStream.Final, Session.Send and Session.SendOnce (strings), and the functions RunTyped and RunTypedNative. The 1.0 rewrite removes them for Run, Stream, RunTyped and Session.Send/SendOnce with a Message and run options (#138).
  • agent.SpecOf is transitional: the 1.0 rewrite gives Tool a Spec method, and t.Spec() replaces SpecOf(t) (#117).
  • agent.New and the builder methods (Use, UseTool, WithSampling, WithToolChoice, WithSystemPrompt, WithSystemPromptFunc, WithMaxTurns, WithTokenBudget, SetMaxConcurrency, WithApproverVerifiers, WithToolErrorRedactor) are transitional: the 1.0 rewrite removes them and renames Build to New. They still change the agent they are called on. New keeps its lenient checks; only Build and With refuse a reserved tool name and a non-object input schema (#127).
  • agent.ContextWithIdentity, ContextWithWaker and ContextWithClock are transitional: the run API takes the identity, Waker and clock as run options (#127).

Removed ​

  • Breaking: Safety.IdempotencyKey (the SDK never called it; Idempotent says the same, and the tool derives its own downstream key or uses NextOnceKey), Safety.RequiresApproval and Safety.Approval (see WithApproval) (#117).
  • Breaking: agent.ToolSafety, agent.WithToolSafety and agent.ToolErrorText: tool middleware reads ToolCall.Spec and ToolCall.ErrorText, and no tool data travels in the context (#117).
  • Breaking: govern.AttestedEventTool; an EventToolConfig with a PolicyDigest is the attested form. Migration: AttestedEventTool(gov, name, desc, event, digest, safety) becomes EventTool(gov, EventToolConfig{Name: name, Description: desc, Event: event, PolicyDigest: digest, Attested: true, Safety: safety}). The old form accepted an empty digest and still recorded the state digest and acting identity; EventToolConfig{PolicyDigest: ""} is the plain tool, which records neither, so a config that sets Attested with an empty PolicyDigest is refused (EventTool panics with ErrConfig) rather than silently dropping the attestation (#117).

Fixed ​

Run API (P14) ​

  • plan: a Tool node called a tool whose context's deadline had already passed (its timer not yet run), which the agent's base handler refuses; it now fails with ErrToolNotCalled without calling the tool (P14, #138).

Sessions ​

  • ResolveHaltRef's live-driver check leased everything before the first > of the halted run's ID. It did not see a live session turn's driver, which leases the turn's run (<id>>@turn/<n>), so it could resolve a call the turn was running, and it took a root run named like the session for a live driver (*HaltInFlight). It now leases the halted run's tree root: the turn's run for a session turn and every sub-run inside it, the root run otherwise, the run RunInfo.RootRunID names (#137, review R137-1).
  • A stale Session handle refused every new message for a turn another handle had finished: a handle whose Send of that turn's message failed or paused kept the turn open in its own view, and Send of another message returned ErrConfig without reading the journal. It now reads the journal once before it refuses (model 12, finding S1) (#137).
  • Two callers on one Session handle sending one message (a redelivery, or a retry while the first still ran) recorded its turn twice, for Send and for one SendOnce key: the second caller's append started past the slot the first had recorded and reloaded. A handle now skips the append of any run among the turns it has loaded (model 12, finding S2) (#137).
  • Two workers given one session message both drove its turn's run, and each counted only the spend it had seen, so a turn under WithTokenBudget spent up to its budget once per worker (twice its budget in the test). Over a store with leases one worker drives a turn at a time (model 12, finding S4) (#137).

Tools (P12) ​

  • agent.New read a tool's spec twice, once for its name and once for the rest, so a tool whose answers differed had its calls decided by the second (#117).

Delegation ​

  • A saga rollback did not recurse through a tool that wraps a sub-agent (audit.AttenuatingSubAgent): the sub-run's compensable writes were left in place and the delegation reported uncompensated. A resumed tree's token budget missed such a sub-run's spend the same way (#117).
  • A saga rollback into an audit.AttenuatingSubAgent's sub-run now compensates under the child grant and identity the sub-run journaled (none, if the delegation ran without a grant), never the parent's broader authority (#117).
  • A saga rollback into a resumed audit.AttenuatingSubAgent delegation whose AttenuateFunc gave each grant its own ID stopped: the sub-run held two grants. The delegation now keeps its first grant (#117).
  • A saga whose audit.AttenuatingSubAgent delegations were minted under two grants (the root grant expired or was rotated between drives) could never finish its rollback: each journaled grant was verified against the one grant bound, and the walk stopped at the first minted from the other, whichever was bound. Bind every such grant (WithGrant and WithRollbackGrants); a journaled grant whose parent is none of them is still refused (ErrNotVerified). Minting from an expired bound grant now says to keep it bound for the rollback beside the live one (model 11, finding D1) (#133).
  • A saga rollback into an audit.AttenuatingSubAgent's sub-run ran a retry-safe write of the sub-run again after the delegation's grant had expired: the rollback rebound the child grant without the mark the expiry guard checks. The mark is kept, and a re-run the guard refuses is listed in SagaAborted.UnknownOutcome and the rollback goes on (model 11, finding D2) (#133).
  • An audit.AttenuatingSubAgent delegation under a grant bound with a nil or typed-nil signer (a nil pointer in the Signer interface) panicked: a typed nil when it minted or resumed, a nil one when it resumed, and a nil one was recorded as a failure when it minted. WithGrant now binds the grant with no signer, and the delegation is refused with ErrConfig and records nothing; WithRollbackGrants binds nothing without a signer (#133).
  • A saga rollback skipped a sub-agent call with an error result (in a plain run inside the saga's tree, a sub-agent whose run failed after a compensable write), so the sub-run's writes were neither compensated nor listed. The rollback now walks a sub-agent call's sub-run whatever its result (model 11, finding D3) (#133).

Governance (gsm) ​

  • examples/govern/mesh was not convergent (each signal event set the level, so order mattered); gsm v0.11.0 wrongly certified it; signals now only raise the level (max), which commutes. TestSignalsCommute checks every pair of signals in both orders, and the example no longer shows a line standing down, which no order-independent event can do (#145).

Recovery and leases ​

  • RecoverLoop took over a dead holder's run late when halted runs were listed before it: each pass visited every unfinished run in order, halted ones included, so the takeover waited about one visit per halted run, and a lease that lapsed just after the pass tried the run waited for the whole next pass (finding L1 of the run-lifecycle model, #124). It now runs a second loop on the same interval, with slots of its own, that drives only the runs whose lease lapsed, so a dead holder's run is taken over within about one interval of its lease lapsing however many halted runs the store holds. The full pass is unchanged and still re-drives halted runs and runs that held no lease (#126).

0.9.0 - 2026-10-01 ​

Added ​

Formal models ​

  • A TLA+ model of the claim protocol (attempt claims, not-started records, numbered retries, remembered claims, the resume gate, the Step flight and halt resolution), checked with TLC in CI by the new Models workflow, a required check on every pull request; see spec/tla (#100).
  • The claim model also covers ClaimAttempt on a single key (plan flows), the pendingClaims eviction, and a halt resolution running in a driver's process (#106); it follows the Store/Journal core as merged, including the claim on the lease path (#107).
  • The claim model covers the approval gate (1-of-1 Approve and m-of-n SubmitDecision tallies) together with halt resolution (#108).
  • A TLA+ model of flow semantics (switch and loop replay, per-iteration keys, run:complete, Flow.ResolveHalt), checked in CI (#110).
  • A TLA+ model of spend accounting (@llm, @spend, @spend-late, hedged losers, two drivers), checked in CI (#111).
  • A TLA+ model of the bide protocol's claim rules for remote tool calls (claim at assignment, begin records, abandons), checked in CI (#112).
  • The approval model covers approvers' key sets (refused on any overlap) and a verifier resolver that changes between the gate's check and its count (#115).
  • The design and plan for formal models of the coordination protocols, docs/design/formal-models.md (#99).

Store and Journal ​

  • agent.Store, the storage port (Insert, Get, Load of an Entry with an opaque, commit-ordered Seq), with its requirements A1 to A8 documented on the type, and agent.Journal over it (NewJournal, Get, History, Records, Format): the journal owns memoization, the record encoding and salt, the journal format header, attempt claims, not-started records and recording an outcome after the caller's context is cancelled (#92).
  • The journal format header: every run's journal starts with an @journal record (agent.StepHeader) naming agent.JournalFormat (bide.journal.v1-dev, the one tag every pre-release writes until 1.0, which switches to bide.journal.v1 and refuses every pre-release journal); a run in another format, or with no header, is refused with *agent.JournalVersionError (wrapping agent.ErrJournalVersion) before anything is read or written (#92).
  • agent.RunFilter (After, Prefix, ExcludeHolding), which SQL stores evaluate in their query (#92).
  • agent/storetest: every store requirement (64 goroutines racing one name through three handles, prefix-closed reads, byte fidelity, context, iterator hygiene), the header checks, shared in-flight steps, claim reuse, record fidelity, and CheckWrapper, which checks, given at least two contexts that differ in what the wrapper reads from a context, that a store wrapper's mapping of run IDs and names does not depend on the context (A1), and its use of Unwrap (#92).
  • agent/agenttest.CountingStore, and a test that holds the engine to an exact budget of store round trips per operation (#92).
  • Record.Raw (the stored bytes), Record.Salt(), Record.ClaimID(), Record.Format, Record.Redacted (the reserved redaction tombstone), and Record.MarshalJSON, which writes the journal encoding (#92).
  • store/sqlite implements agent.Leaser, on a lease connection of its own with a short busy timeout and expiry from the database's clock; Open opens a writer, readers and a lease pool (#92).
  • store/sqlite.New and store/postgres.New over a *sql.DB, WithTablePrefix, and a schema version row: a database with a newer schema is refused (#92).
  • Journals in one process over one store share in-flight steps. A claim whose insert failed (it may have committed) records that its attempt did not start, keyed by its claim (attempt:not-started:<claim>:<marker>), so a re-drive in any process re-attempts the effect instead of halting over one that never ran. If that record cannot be written either (or is written and reported failed), the process remembers the claim, and the next claim of the marker in the process, or a resume that meets it, writes the record again; every claim takes a fresh id, so an effect never runs under a marker that is, or can become, recorded as not started. plan's conformance check ignores not-started records (#92).
  • Benchmarks BenchmarkRunTurns, BenchmarkToolCallSideEffect, BenchmarkStep, BenchmarkRecoverPass10k, BenchmarkAnchoredInsert, BenchmarkSQLiteInsert and BenchmarkPostgresInsert (#92).

Pauses and halt resolution ​

  • agent.Pause, the sealed interface every pause satisfies, with agent.RunRef, IsPause and AsPause. Its five kinds are ApprovalPending, InterruptPending, SignalPending, TimerPending and OutcomeUnknown; code outside the package cannot add one (#90).
  • agent.ResolveHaltRef(ctx, store, HaltRef, Outcome, ...), one resolution for tool and Step halts, with OutcomeUnknown.Ref, HaltRef, OpRef, OpKind (OpTool, OpStep), HaltCause (HaltCrashed, HaltContended) and Outcome (whose Evidence marks the resolution reconciled). The 1.0 rewrite renames it ResolveHalt (#90).
  • Verbs named for the pause they answer: SubmitDecision with Decision, AnswerInterrupt and Enqueue; agent.Wake (#90).
  • agent.HaltInFlight, agent.HaltAlreadyResolved, agent.ErrAlreadyResolved (wraps ErrConfig) and agent.WithoutLiveDriverCheck (#90).

Flows ​

  • agent.RunStart.Kind (agent.RunKind: RunKindAgent, RunKindFlow) and agent.RunStart.Flow (agent.FlowRef): a plan flow's run records run:start with kind flow, its flow's name and its input as JSON, and RecordedStart reads them back. An agent run's run:start records no kind, which reads as RunKindAgent (#103).
  • plan.Flow.ResolveHalt: agent.ResolveHaltRef for a node of the flow, which first checks that the halt names a node of this flow, that the run is a run of this flow (its recorded start names the flow and its recorded topology digest is the flow's), and that a successful outcome decodes as the node's output type, since a resolution is final and one the flow could not read would leave the run unable to continue (#103).
  • agent.ErrNoLiveAttempt (wraps ErrConfig) (#103).
  • plan's fault-schedule exploration of flow lowering (crashes, store errors that did or did not commit, and cancellations at every write, across processes) as a permanent test, bounded by default (BIDE_EXPLORE=1 explores every process plan) (#103).

Model calls and spend ​

  • agent.ModelCall (Request, Model, RunID, Turn), ModelCall.AddHook and ModelCall.Attempt, agent.ModelResponse (Message, Usage, Finish, RawFinish) and agent.ModelAttempt (what a hook's After sees, including Discarded, the discarded spend a replayed turn reports) (#104).
  • agent.CallModel(ctx, model, req, mw...) sends one model call outside an agent through the same model handler an agent uses: hooks, clipped request slices and the response checks (#104).
  • Model records journal Record.Finish, Record.RawFinish, Record.Model (the ModelInfo of the model that answered) and per-turn Record.PromptDigest and Record.ToolsDigest (agent.PromptDigest, agent.ToolsDigest: SHA-256 of the system prompt and of the tool set the turn was sent, after middleware). ModelInfo has JSON tags (#104).
  • middleware.CostMeter.Snapshot() returns a CostSnapshot (Answer, Spend, AnswerUSD, SpendUSD) read under one lock (#104).
  • trace.Model records gen_ai.response.finish_reasons; an empty reason is recorded as stop, as the journal records it (#104).
  • agent.ModelCall.OnAnswer(key, fn): fn runs once per recorded turn with the turn's answer, after the journal holds it, however many targets or attempts a middleware sees; it reports whether the call belongs to a turn (#104).
  • A run that ends (completes, pauses or fails) waits, for at most two seconds in all and not past its context, for model requests still in flight (a hedge loser, a request a middleware left running) and journals their usage in a late spend record, @spend-late/<id>, which Result.Spend, the budget and Replay count. A driver whose model record another driver of the run recorded first journals its request's spend there too (#104).

Proofs and signatures ​

  • audit.Signer and audit.Verifier name their scheme with a typed audit.Alg (an alias of the new agent.Alg) and expose PublicKey(), and a Verifier reports its KeyIDs(), so every audit.Verifier is an agent.ApproverVerifier; audit.NewVerifier and ParsePublicKey (and verify.NewVerifier) refuse a weak Ed25519 key (audit.ErrWeakKey); audit.NewVerifier(alg, pub), audit.VerifierOf(signer), and the <alg>:<hex> key text form (audit.FormatPublicKey, audit.ParsePublicKey). The standalone audit/verify package gains verify.Head, verify.Verifier and verify.NewVerifier, and checks tree heads under ed25519, ML-DSA-65 and the hybrid (#105, #109).
  • audit.ErrNotVerified and audit.ErrMalformed (wraps agent.ErrProtocol; audit.ErrFormat now wraps it), the sentinels every verifier's error wraps (#105).
  • audit.JournalExport (format bide.audit.journal-export.v1) and audit.ExportJournal: a run's journal as each record's stored bytes, the input of bide-audit prove and prove-absent. audit.JournalLeafHash, the leaf hash a redaction tombstone records; a redacted record keeps its place in every tree (#105).
  • Format constants audit.STHFormat, audit.AnchorEntryFormat, audit.GrantFormat, audit.JournalExportFormat; audit.EvidenceKind (a typed string) with KindRunCertificate and KindConsistency; agent.ReasonAlg (#105).
  • agent.Decision.Alg and agent.Record.ApproverAlg: an m-of-n decision is journaled with the scheme it was signed under (#105).

Approval key identity ​

  • agent.ApprovalPolicy.ValidateKeys, agent.ApprovalTally.Excluded, agent.ReasonSharedKey, agent.ReasonNoKeyID, audit.KeyID, audit.CheckEd25519PublicKey and audit.ErrWeakKey; KeyIDs on audit.Ed25519Verifier, MLDSAVerifier and HybridVerifier (#109).

Documentation, testing and tooling ​

  • The RecoverLoop documentation (godoc, the recovery guide, known limitations) states that a dead holder's run is picked up within about one interval of its lease expiring only while a pass is short: a pass costs about five store round trips per unfinished run it lists, halted runs included, so a long pass delays pickup. Bounding a pass's cost follows v0.9.0.
  • The bide protocol (bide.protocol.v1), an accepted design for SDKs in other languages, with its claim rules checked by model 2; not implemented yet (docs/design/protocol.md, #95).
  • The pre-1.0 API redesign proposal, docs/design/api-v1.md (#64); the roadmap adds bide underneath other agent frameworks (#102).
  • scripts/release.sh pushes at most three tags per push, release-modules.yml checks a module tag on manual dispatch, and bench.yml has an A/B mode that runs two refs interleaved in one job (#101).
  • Tooling: a nightly Explore workflow (.github/workflows/explore.yml, also on demand) runs the claim and flow-lowering fault-schedule explorations at their full bound (BIDE_EXPLORE=1) and keeps the schedule signatures (BIDE_EXPLORE_SIGS) as an artifact kept 30 days; it is not a required check (#119, #121).
  • The concurrent claim exploration is deterministic: its scheduler finds quiescence with testing/synctest instead of timers, runs one driver at a time, and branches on the races between drivers that share a step call in flight, so every run explores the same schedules (more than before, with each one the timing-based scheduler reached) and no longer slows or times out under CPU load (#118).
  • bench.yml and cmd/bench/README.md report latency as the mean (concurrency / throughput), p90 and p99; the p50 stays in the raw output only, since the closed-loop harness's p50 is bimodal (#116).

Changed ​

Store and Journal ​

  • Breaking: every journal starts with the @journal header, so History returns it first and record indices (audit leaves, ProveRecord) shift by one; journals written by v0.8.0 and earlier have no header and are refused, not resumed (#92).
  • Breaking: agent.Lister.Runs takes a RunFilter and returns an iterator of run IDs in ascending order; Recover and RecoverLoop ask the store for the runs holding no terminal marker and read none of the finished ones (#92).
  • Breaking: agent.Capability takes a Store and follows Unwrap() Store; the engine still finds capabilities behind a Durable (#92).
  • Breaking: Record.Salt and Record.Claim are read-only: use Salt() and ClaimID(); the journal sets them (#92).
  • Breaking: a Step that is not retry-safe and returns a pause (Interrupt, Sleep, Await, a pending approval) is ErrConfig; its marker stays, so its next attempt halts. Inside a tool call the error is not recorded as a tool failure, so the call halts on resume rather than being retried under a new id. Put the pause in a retry-safe step of its own (#92).
  • Breaking: store/sqlite names its tables bide_steps, bide_leases and bide_schema_version, and store/postgres its leases table bide_leases. sqlite.Open refuses a file whose v0.8.0-or-earlier journal table (steps) holds rows, with ErrJournalVersion, rather than open it as empty; Postgres refuses each such run on its first read, without writing to it. Stop every v0.8.0 (or earlier) node before starting this version: the two do not share leases, and v0.8.0 cannot read the new journals (#92).
  • Breaking: a store wrapper whose Do and History come from MemStore, a SQL store or an embedded agent.Durable (directly or through another wrapper) while its Insert, Get or Load comes from elsewhere is ErrConfig where a Durable goes, since those Do and History would write past its methods; pass agent.NewJournal(wrapper) instead (#92).
  • agent.Durable and the Do and History methods of MemStore and the SQL stores are transitional: they go through a Journal over the store, so existing code keeps working. *Journal implements Durable. agent/durabletest is agent/storetest under its former name (#92).
  • MemStore honors its context, and lists runs in order (#92).
  • A live tool result, a claim and a completion are written with one Insert, without a read first (#92).
  • A Step that loses its claim to a call of the step in flight in this process, and finds that call failed, halts with HaltContended (its claimant was live); a Step that loses its claim with no call in flight still halts with HaltCrashed. ResolveHaltRef finds a Leaser through a Journal and through store wrappers, so its live-driver check uses the lease on store/sqlite as on MemStore and store/postgres (#92).
  • ResolveHaltRef (and its wrappers) claims the attempt after the live one before it records the outcome, on a store that leases runs as on one that does not, and returns *HaltInFlight (whose new Attempt field names that attempt) if a driver holds it already, so a resolution cannot override a driver that revived a remembered claim and ran the effect: after WithMinHaltAge, or under the lease, which a plain Run does not hold. If recording the outcome then fails, the resolution's claim stays live, and the operation halts until it is resolved again (#92).
  • A SagaAborted error lists its uncompensated writes without saying each lacked a compensator: the list also holds a call whose outcome is unknown and a call whose tool is gone (#92).
  • The DST and reference-model crash suites inject their crashes at the storage port, under a Journal, so they cover the journal header, claims and not-started records; agent also carries an exhaustive fault-schedule exploration of the claim protocol, bounded by default (BIDE_EXPLORE=1 runs the full exploration) (#92).

Pauses and halt resolution ​

  • Breaking: the pause types are renamed: PendingApproval to ApprovalPending, Interrupted to InterruptPending, Awaiting to SignalPending, Sleeping to TimerPending and ResumeHalt to OutcomeUnknown. The old names stay as deprecated aliases until the 1.0 rewrite, so code that names the types or matches them with errors.As keeps compiling, but composite literals and the removed fields break: each type embeds RunRef (RunID, RootRunID), so a composite literal names RunRef; Interrupted.Key is InterruptPending.Name, ResumeHalt.ToolUseID and ToolName are OutcomeUnknown.Op.ID and Op.ToolName, and the never-set Awaiting.Prompt is gone (#90).
  • Breaking: Waker.Schedule(ctx, Wake) error. A failed schedule fails the run with an error wrapping ErrStorage and records nothing for the sleeping call (it used to pause with no wake registered), and RecoverLoop schedules it again on its next pass. MemWaker keys a wake by its RunID and Name and resumes its RootRunID (#90).
  • OutcomeUnknown.Cause says why a run halted: HaltContended when another driver won the claim during this drive, otherwise HaltCrashed (no live claimant known to the halting driver, which is not proof). Breaking: ResolveHaltRef, and the ResolveHalt and ResolveStepHalt wrappers, refuse to resolve an effect a driver may still be running: on a store that leases runs they hold the root run's lease while resolving and return *HaltInFlight while a driver holds it; on a store that cannot (a custom store with no Leaser) they require WithMinHaltAge (measured from the live attempt), unless WithoutLiveDriverCheck is given; a HaltContended halt always requires WithMinHaltAge. A resolution that conflicts with an outcome already recorded returns *HaltAlreadyResolved instead of nil (#90).
  • ResolveHalt, ResolveStepHalt, Resume and the channel Send are deprecated wrappers of ResolveHaltRef, AnswerInterrupt and Enqueue (ApproveAs, the wrapper of SubmitDecision, is removed below); ResolveHalt and ResolveStepHalt take the cause as HaltCrashed (#90).
  • The loop, Recover, RecoverLoop and MemWaker detect pauses with IsPause (#90).

Flows ​

  • Breaking: plan lowers every node onto agent.Step through the engine's step hook: a node runs as the Step named by its node key, node:<name> (node:iter:<n>:<name> in a loop body), so it has the Step's claim protocol (a fresh claim id, the not-started record, numbered re-attempts) and pause guard. A node that halts returns *agent.OutcomeUnknown with Op: agent.OpRef{Kind: agent.OpStep, ID: "node:<name>"}, a pause that RecoverLoop does not report as a failure, and agent.ResolveHaltRef clears it with the node's output. A node cancelled after its claim and before its body is re-attempted on the next drive instead of halting. A node's body that returns a pause from a node that is not retry-safe is ErrConfig. A node reads the journal by point reads, never by loading the run. plan.HaltAmbiguous is removed (#103).
  • Breaking: the keys a flow writes change: a node's result is node:<name> (was <name>), its attempt marker the Step's attempt:step:node:<name> (was attempt:<name>, a StepValue recording {"retry_safe":...}, which is no longer written or read: the Step marker is itself the attempt's recorded safety), and a loop iteration's keys are node:iter:<n>:<name> (was iter:<n>:<name>). A retry-safe node writes no marker, so a node attempted as retry-safe and relabelled a side effect since runs again under a claim, as a Step does; a node attempted as a side effect still halts if it is relabelled retry-safe (#103).
  • Breaking: a flow's Run records run:start before flow:digest; resuming a flow run with an input whose JSON differs, under another flow's name, or driving it with an Agent (or a flow over an agent's run) is ErrConfig, and records nothing. Conform requires run:start to name the flow and recognizes the Step markers; it ignores the journal header and not-started records (#103).
  • Breaking: a flow's run records run:complete with the flow's name and its output when its terminal node finishes, so Recover and RecoverLoop skip it (they re-drove every finished flow run on every pass) and agent.IsComplete reports it; a later drive with the run's input returns the recorded output with one point read, whatever the flow's topology is now. An Agent refuses a finished flow run, and a flow a finished agent run (#103).
  • Breaking: a flow's input is compared with the recorded one as canonical JSON (keys sorted, each number as the exact decimal value it denotes, with no rounding through a float, so 1, 1.0 and 1e0 match and 2^53 and 2^53+1 do not), so decoding RecordedStart's Input without loss and passing it to Run resumes the run (#103).
  • Breaking: a flow input whose JSON has a repeated object key, an escaped lone surrogate or invalid UTF-8 is refused with ErrConfig, since two different texts would compare as one input; numbers compare exactly whatever the size of their exponent (#103).
  • Breaking: a Step's value, and every other value the engine journals (an interrupt answer, a signal, a channel message, a timer's wake time, an AwaitFor deadline and outcome, a session's turn records, a saga's failure text, a resolution's evidence), is journaled without HTML escapes (<, not \u003c), as the journal encoding and ResolveHaltRef write values, and ResolveHaltRef compares an outcome with the recorded one as JSON values (whitespace, key order, number spelling and string escaping aside), so resolving the recorded outcome again is not a conflict whichever way it was escaped (#103).
  • Breaking: agent.Step, a Parallel task and a Step's resolution refuse an empty step name with ErrConfig, inside a flow node or not (#103).
  • Breaking: ResolveHaltRef (and ResolveHalt, ResolveStepHalt) refuse an operation with no live attempt marker, one that never halted, with ErrNoLiveAttempt, so a resolution cannot record an outcome for an effect that never ran (#103).
  • Breaking: an agent.Step or agent.Parallel task a flow node's body runs for the flow's run is recorded under the node's key (node:<node>:step:<name>, and per iteration in a loop body): a loop body's Step used to replay its first iteration's result in every later iteration, so its effect ran once (#103).
  • Breaking: Conform replays the run's routing from its recorded choices: a record of a node on an untaken arm, of a loop iteration the run did not reach, or of a node under the wrong kind of key (an iteration outside a loop, or a loop body node outside one) is a divergence, and so is a journal that records nodes without run:start and flow:digest, a completed journal that lacks a node, choice or loop iteration its routing reaches, and a run:complete whose output is not the recorded output of the terminal node the run reached (compared as JSON values, so HTML escaping does not matter); a Step a node's body ran is recognized as the node's (#103).
  • Breaking: Flow.Run refuses (ErrConfig) the run IDs agent.Run refuses: an empty one, or one in the form reserved for sub-agents and session turns (#103).
  • A loop whose body is one node (the head is the switched node) feeds the head its forward predecessor's value; it used to get a nil input (#103).
  • Breaking: node:, switch: and flow: are reserved step-name prefixes, so a Step inside a flow body cannot collide with a flow's records. ResolveHaltRef (and ResolveStepHalt) accept a flow node's key as a step name (#103).

Model calls and spend ​

  • Breaking: agent.ModelHandler is func(ctx, ModelCall) (ModelResponse, error), and Middleware wraps it. A middleware passes on the call it received or a copy with fields changed; the model handler refuses a ModelCall built from scratch with ErrConfig, since it would drop the hooks outer middleware added. Request.Messages and Request.Tools arrive clipped at every handler, so an append in one hedged branch never writes into another's backing array (#104).
  • Breaking: hooks are added with ModelCall.AddHook (append-only) and have the signatures Before(ctx, ModelCall) error and After(ctx, ModelCall, ModelAttempt); a hook whose Before returned nil gets exactly one After, also when a later hook's Before refuses the request. The run's spend meter is not a hook, so no middleware can hide a request from WithTokenBudget or Result.Spend. Requests are numbered per turn across every retried attempt and hedged target (ModelCall.Attempt); a request is numbered when it reaches the model handler, before its Before hooks, so a request a Before hook refused keeps its number (#104).
  • Breaking: the stream sink is claimed by one request per turn at a time. A failed claimer releases it and the next claimer emits TurnRestarted; when the turn's response is not the one that streamed (a hedge target that was not the claimer, a fallback, a cache), the agent emits TurnRestarted and replays the response; nothing a request sends after its turn returned reaches the caller. With Hedge, the first target to start streams live, where before a hedged turn was delivered only once the winner was chosen (#104).
  • Breaking: an empty finish reason from a custom Model, or in a response a middleware built, is recorded as FinishStop; a response a middleware built with FinishLength, FinishFiltered, an unknown reason, or FinishToolUse without a call is the error the model's own would be. The loop still decides whether to run tools from the message's calls, never from the reason (#104).
  • agent.Replay ends each turn with the finish reason and raw reason its record journaled, and reports the turn's discarded spend in Finish.Discarded, where it used to reach the run through the context; middleware.Cost on a replaying agent counts it too (#104).
  • middleware.Hedge is c := call; c.Model = backup and has no streaming code; Retry loops next(ctx, call); RateLimit and Cost add hooks, and count requests outside an agent only through agent.CallModel; trace.Model names the provider and model from agent.ModelInfoOf(call.Model); WithRetrieval journals through the call's run, not the context (#104).
  • middleware.Cost counts each call's answer once, the response the agent records, wherever it sits: inside a Hedge a losing target's response is no longer counted as an answer (#104).
  • agent.Replay journals the replayed turn with the model its original record named (Record.Model), not the replaying Model, also through a Model that wraps the replay model and forwards its events; late spend journaled before any turn is reported with the first (#104).
  • A model turn whose record write reports an error is settled from the journal: a record that landed is the turn's (its answer functions run, and the rest of the spend is late), one that did not is a failed call's @spend/<id>, and when the journal cannot be read the spend and the answer functions are kept by the process for the run's next drive in it, which decides from the journal; a spend record whose write failed is kept and written by that drive too. Nothing is counted twice (#104).
  • The engine tells its own model record from another driver's by the salt the journal stamps (it draws that salt itself; JournalEntry keeps it), not by comparing content, so a tool call whose arguments are not compact JSON, text with invalid UTF-8, or two drivers' records equal in every field no longer make it take its own record for another's (#104).
  • Spend kept for a run's next drive is keyed by the store's identity, so any Journal over the store in the process sees it, and bounded at 4096 entries, oldest runs dropped first. It follows a Durable wrapper's Unwrap() Durable (as audit.AuditedStore offers) to the store beneath it, so the run's next drive through another wrapper or Journal over the same store sees it; the list of runs holding kept spend never outgrows the entries (#104).
  • A claim through a Durable the engine drives by its Do (a wrapper such as audit.AuditedStore) now behaves as through a Journal: a claim whose marker write fails records that its attempt did not start, and if that record cannot be written either the process remembers it, under the identity of the store beneath the wrapper, so the next claim or resume in the process writes it and re-attempts the effect instead of halting over one that never ran (#104).
  • A Step driven through a Durable wrapper (such as audit.AuditedStore) over a Journal follows the Journal's loser rule: a driver that lost the step's claim only joins a call of the step in flight and otherwise reads the result, and never starts a call, so the claim's winner in the same process cannot take the loser's halt as its own and halt (the claim model's WinnerNeverHalts); a joined call that fails halts with HaltContended. (#104).
  • Unwrap() Durable is a contract, as Unwrap() Store is: only a Durable wrapper that passes run IDs and step names through unchanged may implement it, since the engine follows it for capabilities and for the per-run state the process keeps; a key-rewriting wrapper must not. storetest.CheckDurableWrapper checks a Durable wrapper against it (#104).
  • The Durable and Store contracts state what the engine's accounting relies on: a record is written at most once under a name, fn is called at most once per record, and every record's bytes, its salt among them, are kept exactly (#104).
  • Breaking: agent.Finish has an unexported field (the replayed turn's marker), so an unkeyed composite literal of it outside the package no longer compiles; use field names (#104).
  • Breaking: spend records are keyed by a fresh id, @spend/<id> (a replayed run keeps the original's), so two drivers of one run never write their spend under one key (#104).
  • Breaking: a request of a model turn that is over (its call already returned, so nothing would record it) is refused with ErrConfig (#104).

Proofs and signatures ​

  • Breaking: proofs commit to raw stored bytes. A journal leaf is its tag followed by the bytes the journal stores for the record (Record.Raw), never a re-encoding, so a record written by a later release with fields this one does not know verifies. ProofBundle.Record is replaced by RecordBytes (record_bytes, base64) and a Record() method that decodes them leniently for display and role checks only; EvidencePackage and CurrentGrantProof.Leaf carry record bytes through their bundles. VerifyInclusion takes the record bytes. A record built in memory has no leaf (#105).
  • Breaking: new artifact formats, and before 1.0 a verifier reads only the current one (an older artifact is ErrFormat; re-create it from the journal): bide.audit.proof.v3, bide.audit.absence.v3, bide.audit.runcert.v3, bide.audit.current-grant.v3, bide.audit.event-inclusion.v3, bide.audit.evidence.v5, bide.audit.sth.v5, bide.audit.anchor-entry.v1. Grant canonical bytes are bide.audit.grant.v2 (tag included in the signed and digested bytes), and event leaves bide.audit.event-leaf.v3. audit.UnmarshalStrict checks the format of every artifact it meets, including one carried inside another, and wraps any other decoding error in ErrMalformed (#105).
  • Breaking: STH v5: a SignedTreeHead carries format (bide.audit.sth.v5) and always its alg, and the scheme is part of the signed bytes. TreeHead.Timestamp is TimestampNanos (timestamp_nanos). Each component of a hybrid signature signs its own label (bide.hybrid.ed25519.v1, bide.hybrid.mldsa65.v1) before the message, so a stripped ed25519 half verifies neither as hybrid nor as plain ed25519 (#105).
  • Breaking: every ed25519-only entry point takes a Signer or Verifier: SignTreeHead(th, Signer) (SignedTreeHead, error) (SignTreeHeadWith and every VerifyWith are gone), Sign(head, Signer) ([]byte, error), VerifySignature(head, sig, Verifier) error, SignAbsenceRoot(..., Signer, ts), Evidence(ctx, store, runID, Signer, ts, ...), EvidencePackage.Seal(Signer) and Verify(Verifier, ...), CertifyRun(ctx, store, runID, sth, RunCertSpec) with RunCertSpec.Signer and TimestampNanos (the signer must hold the key that signed sth), VerifyRun(cert, approved, Verifier), VerifyApprovals(..., Verifier), VerifyCurrentGrant(..., Verifier), and NewAuditedStore(inner, Signer, anchor) (*AuditedStore, error) (it no longer panics on a bad key). An EvidencePackage names its key as {alg, public_key} instead of public_key_hex, and Verify refuses a verifier of another scheme or key (#105).
  • Breaking: verifiers return error (nil means verified): SignedTreeHead.Verify, ProofBundle.Verify, AbsenceBundle.Verify, VerifyInclusion, VerifyConsistency, VerifyAbsence, VerifyEventInclusion, VerifyAnchorInclusion, SignedGrant.Verify, VerifyDelegationChain, VerifyCurrentGrant. The report verifiers (EvidencePackage.Verify, VerifyRun, VerifyApprovals) return their report and an error wrapping ErrNotVerified when it is not OK. CheckTimestamp and CheckTimestampOrder errors wrap ErrNotVerified (#105).
  • Breaking: agent.ApproverVerifier has Alg(), SubmitDecision requires Decision.Alg, and the m-of-n gate (and TallyApprovals, so VerifyApprovals) counts a decision only when its journaled scheme is its approver key's. The deprecated ApproveAs is removed; use SubmitDecision (#105).
  • Breaking: Grant.NotAfter is NotAfterUnix (not_after_unix), and Grant.Expired takes Unix seconds (#105).
  • Breaking: the stream event types (TurnStarted, ModelEvent, AssistantTurn, ToolStarted, ToolCompleted, ApprovalRequired, Finished, TurnRestarted) and the model events (TextDelta, ReasoningDelta, ToolCallDelta, Finish) have snake_case JSON tags, and event leaves name their kind in snake_case (turn_started, model_event/text_delta); an event of an unknown type is refused (#105).
  • Breaking: audit.PoliciesUsed(records) ([]string, error) and audit.AbsenceRoot(records, set) (root []byte, size int, err error) return an error (audit.ErrRedacted, audit.ErrMalformed) for a journal they cannot project, instead of a set that silently omits a redacted record, so an auditor's recomputation cannot confirm a head that omits what the journal commits. audit.KeyFunc returns the record's keys ([]string, nil for none), so one model turn adds a key per call it requested; ToolUseKey and PolicyUsedKey follow (#105).
  • Producers and verifiers of proofs read every record by its stored bytes (#105): producers that project a journal (the absence key sets, CertifyRun's used-policy set, EventLogFromJournal and PersistJournal) refuse one holding a redacted record with the new audit.ErrRedacted, instead of omitting it (an absence proof of a redacted call, a certificate missing a redacted action's policy); a proof's record_bytes must read one way to every JSON reader (no duplicate or case-variant names, invalid UTF-8 or escaped lone surrogates; unknown fields tolerated) or they are audit.ErrMalformed; the tool-use key set also holds every call a model turn requested, attempt markers and saga failures, so a call that was started cannot be proven absent, a retry-safe call whose result was lost included; every producer and recomputation of a key set (NewAbsenceTreeHead, SignAbsenceRoot, ProveAbsent, ProveAbsentBundle, AbsenceRoot, PoliciesUsed, CertifyRun) checks each record's stored bytes as a proof does, and so do EventLogFromJournal and PersistJournal, so a record that reads two ways is audit.ErrMalformed rather than projected one way; each projects what a record's stored bytes (Record.Raw, which the journal tree binds) decode to, and refuses a record whose fields do not say what its stored bytes say (audit.ErrMalformed) (event leaves PersistJournal wrote before a redaction keep the redacted content: redact the event trail too); VerifyAnchorInclusion, VerifyRun and EvidencePackage.Verify check the format of every artifact they carry, at any depth, on a Go value as UnmarshalStrict does on JSON (a run certificate's heads included, when the certificate is for another run and VerifyRun is never reached); VerifyApprovals and ApprovalEvidence read the journaled tally with UnmarshalStrict, so a tally that reads two ways is audit.ErrMalformed, and the gate reads a recorded tally by the same rule (a tally it cannot read strictly is ErrStorage, and the tool does not run); bide-audit verify-approvals refuses an approver-key file that gives two ids one key, compared by key identity (KeyIDs), whether or not both ids are in the policy (exit 4).
  • bide-audit verify-approvals takes -approved / -approved-file, the allowlist verify-evidence takes, so a package that carries a run certificate can pass (#105).
  • Breaking: bide-audit reads keys as <alg>:<hex> (or bare ed25519 hex) for -pubkey and the approver keys, reads a JournalExport for -journal, and maps the audit sentinels to its exit codes: ErrNotVerified is 1, ErrFormat and ErrMalformed are 4 (#105).

Approval key identity ​

  • Breaking: agent.ApproverVerifier has a second method, KeyIDs() []string: the identities of the signing keys behind Verify, derived from the public key's bytes (one per key; a hybrid reports each component). A custom verifier must implement it. An approver whose verifier reports no key identity, including an audit.Ed25519Verifier over a wrong-length key, used to count as unable to sign and is now ErrConfig at the gate (#109).

Removed ​

  • Breaking: agent.DetachModelSink, agent.EmitMessage, agent.WithModel(ctx, m) and agent.WithModelCallHook(ctx, h): the model call path carries no engine data in the context. Use ModelCall.Model to retarget a call and ModelCall.AddHook to add a hook (#104).
  • Breaking: middleware.CostMeter.Total, Usage, Spent and SpentTotal; use Snapshot (#104).
  • Breaking: trace.WithSystem and trace.WithModel; the chat span reads the provider and model from the call's Model (agent.Describer) (#104).

Fixed ​

  • store/postgres sends each lease call (AcquireLease, RenewLease, ReleaseLease) and each Insert as one statement that Postgres commits before it replies, instead of a transaction of BEGIN, the statement and COMMIT in separate round trips. A holder stalled between its statement and its COMMIT (a SIGSTOP, a suspended VM, a long GC pause) kept the lease row, or the run's insert lock, locked, so another node's AcquireLease of the expired lease, or its next insert into the run, blocked for as long as the stall lasted instead of taking the run over one TTL after the last committed renewal. An insert now takes its position from <prefix>next_seq_v1(run_id), a VOLATILE plpgsql function that Open creates when it is missing: called inside the insert's one statement, it takes the run's transaction-level advisory lock (the key earlier versions used, so both queue on one lock during an upgrade) and then reads MAX(seq)+1 with a snapshot taken after the lock, so inserts into one run queue instead of racing for a position. Open never replaces the function and refuses one with another definition. A statement that a repeatable read or serializable deployment fails with a serialization failure (40001) is run again, reads included, so the default isolation still does not change the outcome. Retries wait a capped, jittered exponential backoff (1ms up to 100ms) and continue until the context ends, so a caller that needs a bound on a call sets a deadline. Open refuses, with ErrConfig, existing tables that lack a uniqueness the statements depend on ((run_id, seq) and (run_id, name) on the journal, run_id on the leases), since it never alters an existing table. The schema migration, the one remaining multi-statement transaction, sets idle_in_transaction_session_timeout so a node stalled inside it cannot hold the migration lock (#113).
  • govern/postgreslog.Append is one statement for the same reason: a process stalled inside an append held the entity's advisory lock, and every other append to the entity waited for as long as the stall lasted. It takes its position from governed_events_next_seq_v1(entity) the same way, its retries back off the same way, and Open refuses a governed_events table without unique (entity, seq) and (entity, append_id) indexes, or a next_seq function with another definition (#113).
  • store/postgres and govern/postgreslog open in a schema whose name has an upper-case letter: the next_seq lookup cast current_schema() to regnamespace, which folded the name to lower case. The lookups now read pg_catalog's tables by name with the statement's snapshot, never through to_regclass or to_regprocedure (#120).
  • Open in both packages uses one schema for every statement: the one WithSchema (new in store/postgres and, as an option of govern/postgreslog.Open, in the log) pins, or else the first schema on the search path holding the store's steps table (or governed_events), else the first schema on the path, with a warning logged through log/slog, since discovery runs again at every Open and a role that can create a schema earlier on the path can redirect a restarting node. WithSchema refuses information_schema and every pg_ name, and a pinned schema that does not exist fails Open with ErrConfig; Open never creates a schema. Every table reference, the next_seq call and the migration's DDL name that schema. A governed_events table in a later schema than an empty one is now migrated in place: the migration's unqualified CREATE TABLE IF NOT EXISTS used to create a second, empty table in the first schema and move the log to it. Open refuses, with ErrConfig, a first relation of that name that is not an ordinary or partitioned table: a view named governed_events before the table had appends go through it to another table (#120).
  • Open in both packages refuses a next_seq function owned by another role than the table's owner, or one without SET search_path = pg_catalog, pg_temp, with ErrConfig. The statement check now tokenizes every statement and holds it to allowlists: calls only to listed pg_catalog built-ins (a function named like an unreserved keyword, conflict, counts as a call) or to next_seq under its exact schema-qualified name, once, in a one-row INSERT into its own table; operators only as OPERATOR(pg_catalog.<op>) from a list, and no keyword operator or ARRAY constructor; relations only the store's own tables or pg_catalog's; casts only to listed pg_catalog types (a domain's CHECK can call anything); ASCII only outside literals; no comments, dollar quotes, backslashes, typed literals or semicolons (#120).
  • Recover and RecoverLoop call resume only for a run that is still unfinished: holding the run's lease, the pass checks the terminal markers (run:complete, run:aborted, run:cancelled) again before it calls resume, so a run another driver finished after the pass listed it is left alone and not counted as re-driven (nor is a run whose check failed, which is reported). The check covers every driver that holds the run's lease; a finish by a driver with no lease, or during a stall past the lease TTL between the check and resume, can still reach resume, which replays the finished run. Budget: a recovery pass makes three point reads (Store.Get) for each run it drives; the finished runs the listing excludes still cost nothing (#114).
  • Tests: the multi-process HA harness in store/postgres gives each cluster a schema of its own. Its workers' recovery passes walked every incomplete run the package's other tests left in the shared schema, so taking over a stalled worker's run slowed with that count rather than the lease TTL, and TestHA_MultiProcessStallPastTTL timed out in the Integration job's second pass. Its wait for the take-over is now derived from the lease TTL, the recover interval and one drive (#122).

Security ​

  • An m-of-n approval gate counts one seat per signing key. Two approvers whose verifiers resolve to one key let that key's holder meet the quorum alone; the gate now refuses such a policy with ErrConfig on every evaluation, TallyApprovals never counts either approver, audit.VerifyApprovals returns an error, and bide-audit verify-approvals exits 4. Found by the TLA+ approvals model (finding F5) (#109). Upgrading: the check covers tallies this version counts. A terminal tally already in a journal is reused, not recounted, so a passed tally recorded by an earlier version stands even if two of its approvers shared a key, and its tool runs when the run resumes. Journals are not promised to resume across pre-releases; before upgrading, finish the runs paused on an m-of-n gate, or audit each one that holds a recorded tally (audit.VerifyApprovals under the new rules refuses a shared key) and resolve it by hand if two approvers shared a key.
  • Weak Ed25519 public keys are refused. crypto/ed25519 accepts keys that are not canonically encoded, small order, or mixed order: under a small-order key (such as any of the identity point's four accepted encodings) anyone can forge a signature for any message, and a mixed-order key A + T is a second public key for A's secret, which gave one secret two approval seats. audit.Ed25519Verifier (and so HybridVerifier), audit.VerifySignature and audit/verify.TreeHead now verify nothing under such a key, Ed25519Verifier.KeyIDs reports no identity for it (so the approval gate refuses it with ErrConfig), and bide-audit refuses it as -pubkey or in -approver-keys (exit 4). The check costs 1 to 4 ms of CPU per new key; results are cached (a 1,024-key LRU, single-flight), so an application that resolves Ed25519 keys from untrusted input should bound or rate-limit those lookups. Found in the adversarial review of #109.
  • store/postgres and govern/postgreslog, in v0.8.0 and earlier as well: three kinds of role could run their code with the store's privileges, and some could choose the run's lock key. A role with CREATE on the database could create a schema named like the store's role, which the default search path ("$user", public) puts first, at any time after Open, with a next_seq function (or, for v0.8.0, tables) that the store's unqualified names then resolved to. A role that can create functions in any schema on the search path, even one after the store's own (public on Postgres 14 and earlier lets every role create there), could define hashtextextended(text, integer), which matched the lock call hashtextextended(r, 0) better than pg_catalog's. And a role that can create operators in any schema on the path could define = for text[] or for oid and regtype, which Open's catalog checks compared and which pg_catalog has no exact match for, so the operator ran at every Open, pg_catalog searched first or not. Now every name in every statement is qualified: the tables and next_seq with the store's schema, and every function, type, collation and operator with pg_catalog (operators as OPERATOR(pg_catalog.<op>)); the statement check refuses anything else, keyword operators (LIKE, IS DISTINCT FROM and the like) and ARRAY constructors included; the next_seq functions qualify every name and operator in their body and also run with SET search_path = pg_catalog, pg_temp; and Open checks the function's owner and definition. With WithSchema, the search path plays no part in which schema the store uses; without it, discovery still trusts every schema on the path, so pin the schema. The lock key's value is unchanged, so v0.8.0 nodes still queue on it during an upgrade. The stores trust the owner of their schema and every role that can create objects in it, as they trust the tables' owner; any role that can connect can still stall a run's inserts by holding its advisory key, as before (#120).

0.8.0 - 2026-09-30 ​

Added ​

  • agent.RecoverLoop with WithRecoverInterval, WithRecoverConcurrency and WithRecoverErrors: runs recovery passes until its context ends, so a dead holder's runs are taken over without another call (#58).
  • agent.ErrLeaseLost: a lost lease cancels the drive with a cause that wraps it; failed renewals retry every ttl/20 and give up at 3/4 of the TTL (#58).
  • agent.ErrToolOutcomeUnknown: a call lost mid-flight on a tool that is not retry-safe records no result and halts on resume (#57).
  • mcp.WithSafety, mcp.WithCallTimeout, mcp.WithMaxResultBytes, mcp.WithMaxDescriptionBytes, with defaults DefaultMaxResultBytes (1 MiB) and DefaultMaxDescriptionBytes (8 KiB) and the error mcp.ErrResultTooLarge (#57).
  • modeltest.ToolNames conformance check for provider tool-name rules (#57).
  • agent.StepNotStarted: a tool call or Step cancelled after winning its claim but before its effect ran is recorded as not started and re-attempted, instead of halting (#65).
  • agent.Result.Spend, agent.Record.DiscardedUsage, middleware.CostMeter.Spent and SpentTotal: usage of retried, hedged and failed requests is journaled and reported (#55).
  • agent.TurnRestarted stream event, sent before a retried attempt's output when the previous attempt streamed any (#55).
  • agent.ModelCallHook, agent.WithModelCallHook and agent.WithModel for hooks around every request and per-call model routing (#55).
  • agent.ErrNegativeUsage and agent.Usage.Validate (#55).
  • agent.ToolErrorText and agent.RedactURLs, so middleware can record exactly the error text the journal holds (#54).
  • agent.Capability[T] finds an optional store capability through wrappers; audit.AuditedStore implements Unwrap (#66).
  • agent.ResolveStepHalt, agent.IsReservedStepName, agent.SubRunID and agent.ToolResultStep (#60).
  • agent.FinishStop, FinishToolUse, FinishLength, FinishFiltered, ErrOutputTruncated and ErrOutputFiltered (#68).
  • provider.DefaultMaxResponseBytes (32 MiB), provider.LimitResponse and WithMaxResponseBytes on each model adapter (#68, #76).
  • agent.Describer, agent.ModelInfo and agent.ModelInfoOf, implemented by the Anthropic, OpenAI and Gemini adapters (#76).
  • Finish.Raw carries the provider's own finish reason, and Finish.Discarded the usage of discarded responses (#76).
  • modeltest.CheckFinish (#76).
  • agent.DecodeStoredRecord for Durable implementations to read rows back (#68).
  • audit.CheckTimestamp, CheckTimestampOrder, DefaultClockSkew, WithVerifyTime, WithClockSkew, and bide-audit -max-clock-skew and -max-input-bytes (#68).
  • audit.PolicyLeafName, ConvergenceLeafName, GovernedPolicyDigest and audit.ErrFormat (#66, #68).
  • plan.BlockName, Arm.Named, Flow.DigestV1 and the config safety value side_effect (#68).
  • RetrievalTool options RetrievalName and RetrievalDescription, so one agent can search several stores (#62).
  • eval.ReportFormat, eval.ErrFormat, eval.MetricDirection and RunOutput.TraceErr (#74).
  • A multi-process HA test harness on Postgres that kills, stalls and restarts workers (#58).
  • bide-audit -json and -version (#79).
  • eval.Compare options WithUnscoredTolerance and WithCaseSetMismatchAllowed, Comparison.Gate, ErrRegression, ErrInconclusive and DirectionInconclusive (#78).
  • CI enforces doc comments on every exported identifier with internal/tools/doccheck (#73).
  • agent.RunStart and agent.RecordedStart: a run's input and entry point are journaled at its first drive and can be read back, for example by a Recover callback (#70).
  • agent.Record.ReadOnly (read_only): a tool result records whether its call ran ReadOnly (#70).
  • The library modules (govern, store/sqlite, store/postgres, mcp, trace, codec/gcf, govern/sqlitelog, govern/redislog, govern/postgreslog) are tagged <dir>/vX.Y.Z with each release by scripts/release.sh, so they install with go get (#85).
  • CI checks that every Go block in the README and docs/ compiles against the current code, and that API listings match the packages, with internal/tools/docsnip (#88).

Changed ​

  • Breaking: journal keys for tool results, attempt markers, approvals, compensations and sub-agent runs encode the tool-use id (tool:<id>, sub-run <parent>><id>); runs journaled by v0.7.0 do not resume (#60).
  • Breaking: ResolveHalt resolves only tool calls; use ResolveStepHalt for a Step (#60).
  • Breaking: step names with a reserved engine prefix are ErrConfig, run and session ids may not contain >, plan step names may not contain :, and Recover skips sub-runs (#60).
  • Breaking: Finish.Reason uses the neutral values stop, tool_use, length and filtered; a cut-off or filtered turn fails with ErrOutputTruncated or ErrOutputFiltered, and any other reason with ErrStreamProtocol (#68).
  • Breaking: a reply over the response cap fails with ErrResponseTooLarge, and a tool_use turn with no call fails (#68).
  • Breaking: tool arguments for Func, SubAgent and final_answer decode strictly: a missing required field, an unknown or case-variant name, a duplicate or trailing data is ErrToolArgs (#61).
  • Breaking: schema.For describes what encoding/json decodes (Unmarshaler, TextUnmarshaler, integer bounds) and returns ErrUnsupportedType for chan, func, complex and similar kinds (#61).
  • Breaking: RunTyped[T] returns ErrConfig when T is not an object, and RunTypedNative on Anthropic returns ErrConfig (#61).
  • Breaking: WithRetrieval sends context as a user message just before the latest user turn, one JSON object per document, journaled once per run as @retrieval/<layer>; RetrievalTool and WithRetrieval panic for k < 1 (#62).
  • Breaking: WithTokenBudget on a parent covers its sub-agents, and Result.Usage and Result.Spend report the whole run, including earlier invocations and sub-agents (#69).
  • Breaking: agent.EmitMessage takes the turn's Usage (#52).
  • Breaking: plan step and join functions (Builder.Step, Join2, Join3, RegisterStep, RegisterJoin2, RegisterJoin3) take a context.Context (#66).
  • Breaking: audit proof JSON uses snake_case names and a format field (bide.audit.proof.v2 and siblings, bide.audit.evidence.v4); verifiers reject other formats with audit.ErrFormat (#66).
  • Breaking: plan digests move to bide.plan.topology.v2, so flows started under v1 do not resume; config JSON decodes strictly, and a config safety can lower retry safety but not raise it or clear approval (#68).
  • Breaking: plan configs must state "version": 1 (plan.ConfigVersion) and use snake_case keys (loop_max); Topology JSON keys are snake_case and TopologyNode.Kind is TopologyNodeKind; config parse errors wrap ErrConfig (#75).
  • Breaking: signed tree heads need a positive nanosecond timestamp within the clock skew, empty evidence packages fail, and bide-audit input is capped at 256 MiB (#68).
  • Breaking: ApprovalPolicy.Validate refuses approver ids that are equal under Unicode normalization and case folding, and invalid UTF-8 (#68).
  • Breaking: middleware.Retry and ToolRetry with n < 0 return ErrConfig; Quorum with k above the voter count is ErrConfig; EventLog.Events returns ErrProtocol on a gap in positions (#68).
  • Breaking: eval.Judge passes only on an exact PASS, and a failed run never passes (#68).
  • Breaking: eval.RequiredRuns returns (int, error), and eval.Run returns an error for duplicate metric names (#53).
  • Breaking: eval.Matches takes a *regexp.Regexp, eval.AgentRunner returns (RunFunc, error), eval.Compare returns (Comparison, error), and GovernanceHeld predicates take a context (#74).
  • Breaking: the provider HTTP kit moves from agent to the new package model/provider (ClassifyHTTPError, ClassifyStreamError, NewSSEScanner, ParseRetryAfter, ToolResultCodec, JSONToolResultCodec, EncodeToolResultOr and others); WithToolResultCodec takes a provider.ToolResultCodec (#76).
  • Breaking: Finish.Reason is the typed agent.FinishReason (#76).
  • Breaking: eval Metric.Fn returns (bool, error); a metric that cannot score a run leaves it unscored, MetricStat reports Scored and Unscored, and reports are bide.eval.report.v2 (#78).
  • Breaking: bide-audit exit statuses follow one scheme: 0 verified, 1 not verified, 2 usage, 3 no verdict, 4 input unreadable or unusable (#79).
  • Breaking: a session's journal and turn runs move to "<id>>@session", "<id>>@turn/<n>" and "<id>>@event/<encoded key>" (from "<id>", "<id>/t<n>" and "<id>/e/<key>"), so no run ID passed to Run can name one: Run("chat/t0") and session "chat"'s first turn shared a journal, and whichever finished first handed the other its answer. A session journaled before this change opens empty. Session ids may contain / (#56 had refused it) and any SendOnce key is allowed; agent.IsSessionRun reports a session's run IDs, and Recover skips them, since the session resumes a turn when its message is sent again (#86).
  • Breaking: every run journals run:start (its input and whether it is a saga); resuming an unfinished run with another input, or through Run for a saga (or RunSaga for a run), is ErrConfig, and so is SendOnce with a different input on a key whose turn is still open (#70).
  • Breaking: plan attempt markers record whether the node was retry-safe; a node re-runs on resume only if it was retry-safe when attempted and is now, and a marker written before this halts (#70).
  • Breaking: a recorded approval denial is final even if the tool's gate is later removed, loosened or made m-of-n (#70).
  • Breaking: saga rollback treats a completed call as a write unless its result records that it ran ReadOnly, and reports calls whose tool is no longer registered as uncompensated (or halts on one attempted with no result) (#70).
  • WithTokenBudget counts discarded and failed requests; RateLimit and Cost count every request sent; Hedge runs each backup through the inner middleware chain; Retryable no longer retries ErrTruncatedToolArgs (#55).
  • A resume halts on any attempt marker without a result, whatever the tool's current safety; a tool no longer registered halts instead of failing with ErrUnknownTool (#57).
  • mcp.Tools returns ErrProtocol for malformed or duplicate tool names, non-object schemas and oversized descriptions; an agent with two tools of the same name returns ErrConfig (#57).
  • Lease claims, renews and releases under a per-call token (<holder>#<token>), so drivers sharing a holder name do not share a lease (#58).
  • ToolStarted fires immediately before the tool is called (#65).
  • The OpenAI adapter merges consecutive user messages into one turn (#62).
  • bide-audit exits 2 for stray arguments, unknown flags, -h, or both -tool and -index, and 3 when a -checker gives no verdict (#54).
  • middleware.LogErrorText logs the journaled, redacted error text (#54).
  • docs/KNOWN-LIMITATIONS.md is rewritten for users, grouped by area with impact and workaround (#49).
  • The approval guide is now Human approval (human-in-the-loop) (docs/guides/hitl-approval.md); the old docs/guides/approval.md and its site URL point to it.

Removed ​

  • Breaking: plan.Retryable and the config safety spelling "retryable"; use plan.Idempotent and "idempotent" (#75).

Fixed ​

  • store/postgres and govern/postgreslog run every write transaction at read committed, whatever the deployment's default_transaction_isolation. At repeatable read or serializable, concurrent steps of one run failed with a duplicate (run_id, seq) (23505) because each insert computed its position from a snapshot taken before it held the run's lock, so a tool result could go unrecorded and the run halt on resume; racing nodes and lease calls failed with serialization errors (40001), and concurrent governed appends failed with 23505 or 40001 (#93).
  • A timer (Sleep, WaitUntil, AwaitFor) inside a sub-agent registers its wake under a name qualified by the sub-run, so two sub-agents of one root waiting on timers of the same name no longer share one wake that the later replaced, which left the first sleeping past its wake time (#91).
  • examples/signals: the Await scene's resumed run no longer fails with a reused tool-use id; the example's scripted model now decides from the conversation (#91).
  • Recording a step costs about half what it did: MemStore.Do decodes a record it writes once, and a message part is tagged with its type without a decode and re-encode. The journal bytes do not change. This restores the cmd/bench throughput lost since v0.7.0 (#89).
  • Resuming a run that crashed after its final answer returns the recorded answer without another model call (#59).
  • Replay keeps redacted reasoning, empty thinking blocks and Gemini thought signatures (#51).
  • Replay carries each turn's recorded usage, and a finish reason derived from the turn, so a replayed run stops at the same token budget (#52).
  • A hedged stream's Finish carries the winner's usage (#52).
  • A response substituted by middleware or a hedge backup is checked for missing or reused tool-use ids (#55).
  • NewRateLimiter with a non-positive interval does not block, and a cancelled call keeps its token (#55).
  • One *Session shared by concurrent callers is safe, and a resumed session turn keeps the transcript it started with (#56).
  • An MCP result carrying only structuredContent reaches the model (#57).
  • A retry-safe Step halts when an earlier side-effect attempt left a marker (#57).
  • SQLite and Postgres record a step's outcome even when the driver's context is cancelled while the step runs (#58).
  • Lease and Recover return ErrConfig for a non-positive TTL instead of panicking (#58).
  • The lease renewer stops before the lease is released (#58).
  • A tool-use id containing /, : or an engine key name no longer collides with other journal records, and a Step cannot mark a run complete by its name (#60).
  • Recover no longer hands sub-runs to the resume callback (#60).
  • Lease, Recover and RecoverLoop find the Leaser and Lister of a store wrapped in AuditedStore (#66).
  • Saga compensation undoes the arguments the tool accepted after middleware, including in rollback re-runs (#67).
  • RunTyped returns the arguments final_answer accepted, and its text fallback decodes the final turn (#61).
  • schema.For terminates on recursive named maps and slices and on self-referential pointer types (#61).
  • Retrieved context stays in every model call of a run, including after resume, and a retrieved document cannot forge another entry (#62).
  • A non-finite retrieval score is reported as 0 (#62).
  • A panicking model or tool call marks its span failed without exporting the panic value (#54).
  • A turn cut off at its token limit or stopped by a filter is an error, not the run's answer (#68).
  • Stream parsers reject a second call at the same index, Anthropic deltas for unknown or stopped blocks, and OpenAI choices other than index 0 (#68).
  • A negative or overflowing Retry-After is clamped (#68).
  • Model text quoted in errors is bounded (#68).
  • In-process step keys are length-prefixed in MemStore, MemWaker and the SQL stores, so run ids and step names cannot collide (#68).
  • Event-log reads detect a missing position, and a negative Append position is ErrProtocol (#68).
  • Quorum checks that each recorded vote names its slot's voter and recomputes the tally (#68).
  • plan refuses empty node and join names, and edges into a join other than its declared inputs (#68).
  • Mermaid labels are entity-encoded (#68).
  • WithMinHaltAge treats a non-positive attempt timestamp as missing (#68).
  • Signing with an ed25519 key of the wrong length fails before anything is written (#68).
  • eval: a repeated tag no longer double-counts, Wilson bounds are exact at 0/n and n/n, and HashCases reports encoding errors (#53).
  • eval.AgentRunner reports a failed journal read, and trajectory metrics fail such a run (#74).
  • chaos.Verify also requires a completed run to fire exactly once (Report.Missed), and Bide().Writes() counts the completion marker (#53).
  • cmd/bench rejects non-positive -runs and -concurrency (#53).
  • The example store in the extension-points reference records through agent.JournalEntry, so it salts every record and passes agent/durabletest (#87).

Security ​

  • bide-audit checks that each bundle is a record of the role it is read as (#68).
  • bide-audit -pubkey always reads a 32-byte hex value as the key, never as a file name (#68).
  • audit.VerifyAnchorInclusion binds an entry's sequence and run to its proof, and verify.TreeHead refuses the head shapes the audit package refuses (#68).
  • EventLog.Add and VerifyEventInclusion refuse invalid UTF-8 (#68).
  • One strict reader (audit.GovernedPolicyDigest) decodes the governed-action digest for both the agent and bide-audit (#68).
  • bide-audit verify-quorum rejects a tally that lists one voter twice (#54).
  • With content capture on, trace spans and ToolLog record the redacted error text the journal holds (#54).

0.7.0 - 2026-09-29 ​

Added ​

  • agent/durabletest conformance suite for Durable stores, and one journal encoding (agent.EncodeRecord, DecodeRecord) used by every store (#36).
  • Salted journal records (Record.Salt, agent.JournalEntry) and salted event-log leaves (bide.audit.event-leaf.v2, agent.ProjectEvents), so a proof discloses nothing about neighbouring records (#42, #46).
  • Agent.WithToolErrorRedactor; URL credentials are redacted from tool error text before it is journaled (#42).
  • middleware.ErrorSummary and the ToolLog option LogErrorText (#42).
  • audit.VerifyCurrentGrant and ProveCurrentGrant for a current-grant ledger (#35, #40).
  • govern ApplyOnce on every governor, and agent.NextOnceKey for exactly-once operations inside a call (#34, #40).
  • ErrQuotaExhausted, ErrResponseTooLarge, ErrStreamProtocol, ErrToolUseIDReused and agent.ClassifyStreamError (#41, #44).
  • schema.Gemini, schema.ErrStrictUnsupported, openai.WithMaxCompletionTokens and modeltest.ToolConfig (#36, #41).
  • Fuzz targets for the SSE scanner, adapter stream parsing, journal encoding, strict JSON, every audit verifier, the plan config loader and the GCF codec (#44).
  • govulncheck in CI (#38) and a manual Benchmark workflow on a standard runner (#45, #47).
  • How bide is verified (#32).

Changed ​

  • Breaking: audit heads sign bide.audit.sth.v4 with versioned, salted leaves and commit to their tree kind and run; re-anchor heads made with earlier versions (#35, #40, #42).
  • Breaking: new signatures for VerifyRun, VerifyDelegationChain (with ScopeRules), SignAbsenceRoot and the absence proofs, EvidencePackage (Seal, WithConsistencyFrom), ProveCurrentGrant and VerifyCurrentGrant (#35, #40).
  • Breaking: EventLog.Prove returns EventInclusion, and VerifyEventInclusion takes it (#46).
  • Breaking: govern.EventLog.Append takes an append id, Governor.Apply can return an error, Quorum takes a name, and bide-audit verify-quorum requires -name (#34).
  • Breaking: Redis event-log keys are govern:{<len>:<entity>}, and channel and quorum step names change; drain in-flight runs before upgrading (#34, #40).
  • Breaking: Postgres keeps its journal in a bide_steps table stored as bytea, with one position per step (#25, #36, #40).
  • Breaking: agent.MemWaker.Start returns a channel that closes when the loop has stopped (#24).
  • Breaking: a live model turn with a missing or reused tool-call id is an error, and Gemini tool-call ids are the provider's own or random (#41).
  • Breaking: schema.For and OpenAIStrict can return errors, strict schemas make optional fields nullable, and agent.Func panics on an argument type For cannot describe (#36, #40).
  • Breaking: RunTyped ends at the first accepted final_answer (#36).
  • Breaking: plan.Build rejects shapes Run cannot execute as declared, and approval-gated nodes (#30).
  • Breaking: Stream.Events fails on any event after a Finish, and an Anthropic stream without message_stop is incomplete (#44).
  • Quota and billing exhaustion is ErrQuotaExhausted and not retried, and Retryable no longer retries ErrConfig (#41).
  • OpenAI sends max_completion_tokens on api.openai.com and for o-series and gpt-5 models (#41).
  • With content capture off, trace spans and ToolLog record an error's category, not its text (#42).
  • Signers, AuditedStore and the model adapters print a redacted string for every format verb (#42).
  • audit.UnmarshalStrict uses only encoding/json, so bide builds with GOEXPERIMENT=nojsonv2 (#37).
  • The SQLite store and event log wait up to 30s for another writer's lock (#29).
  • golang.org/x/text is v0.39.0 in store/postgres and govern/postgreslog (#38).
  • Published benchmark numbers come from the Benchmark workflow and a labelled Mac run (#47).

Fixed ​

  • A losing driver is never told it won a step when its reload fails (#25).
  • Postgres keeps records byte for byte, accepts NUL and invalid UTF-8, and gives each step its own position (#25, #36).
  • Lease releases on shutdown instead of holding until the TTL (#25).
  • A resumed run sends the model the same bytes the live run did, on every store (#36).
  • A cancelled Step does not start (#24).
  • A pause in one parallel tool call lets its siblings finish and record their outcomes (#26).
  • Saga rollback covers calls its abort cut off, including sub-agents, and reports idempotent writes without a compensator (#27).
  • A pause or halt inside a sub-agent carries RootRunID, and a Sleep or AwaitFor in a sub-agent wakes the root (#28, #34).
  • Recover skips a saga whose rollback finished (#31).
  • plan resumes only under the flow a run started with (#30).
  • A tie for the most votes is never quorum agreement (#33).
  • An unknown governed event name is rejected before it is appended (#34).
  • Governed appends and EventTool calls land once when retried (#34).
  • AwaitFor records its outcome once per call (#34).
  • Channel names containing : no longer read each other's messages (#34).
  • Each Quorum in a run keeps its own tally (#34).
  • Two applies inside one tool call are both recorded (#40).
  • SQLite and Postgres event-log migrations are safe under concurrent opens, and Postgres opens take no table lock when the schema is current (#40).
  • The Redis event-log script works on Redis Cluster (#40).
  • A negative Merkle leaf index is rejected (#35).
  • Wrong-length keys verify nothing instead of panicking (#35).
  • codec/gcf carries integers above 2^53 exactly and rejects trailing data (#36, #44).
  • schema.For agrees with encoding/json on promoted fields, ,string, arrays and embedded pointers (#36).
  • RunTyped ends at final_answer and does not fall back to unrelated prose (#36).
  • Gemini requests group parallel tool results, skip empty parts and carry thought signatures (#41).
  • Anthropic requests keep redacted_thinking blocks and tools under tool_choice "none" (#41).
  • Empty OpenAI tool arguments are sent as {} (#41).
  • An OpenAI or Gemini turn ends only on the provider's finish signal, not on a chunk carrying usage (#44).
  • bide-audit decodes committed leaf content strictly (#44).

Security ​

  • Journal heads and absence heads are signed under distinct domains, so a head for one tree cannot prove absence from another (#35).
  • VerifyRun requires the used-policy head to belong to the certificate's run, with an auditor-supplied allowlist (#35).
  • EvidencePackage.Verify checks every field and authenticates the run id (#35).
  • Delegation chains enforce issuer continuity, expiry and full scope attenuation; demoted earned-authority grants stop verifying (#35, #40).
  • Records and grants with invalid UTF-8 are refused, and audit bundles are decoded strictly (#35, #40).
  • golang.org/x/text v0.39.0 fixes GO-2026-5970, reachable from store/postgres and govern/postgreslog (#38).

0.6.0 - 2026-09-28 ​

Added ​

  • agent.StepSafety and Task.Safety to declare a durable step retry-safe (#18).
  • Session.SendOnce answers each inbound message once per key (#20).
  • Agent.WithTokenBudget, rebuilt from the journal so it holds across resume; each model call's usage is recorded with its turn (Record.Usage) (#15).
  • Usage.TotalInputTokens and Usage.TotalTokens (#14).
  • agent.ToolSafety, agent.WithToolSafety, Safety.RetrySafe and ErrToolReinvoked (#16).
  • agent.NewStreamFunc and Stream.Close (#12).
  • agent.ErrIncompleteResponse (#13).
  • model/modeltest conformance checks for adapter streaming (#12, #13).
  • mcp.TrustAnnotations (#21).

Changed ​

  • Breaking: middleware.TokenBudget is removed; use Agent.WithTokenBudget (#15).
  • Breaking: agent.Step is a side effect unless StepSafety says otherwise: it claims an attempt marker and halts after a crash (#18).
  • Breaking: Parallel requires unique task names (#18).
  • Breaking: Usage.InputTokens is the uncached input on every provider (#14).
  • Breaking: eval.Run returns (Report, error) (#19).
  • Breaking: mcp.Tools applies server annotations only with TrustAnnotations() (#21).
  • ToolRetry retries only retry-safe tools, ToolCache caches only read-only tools, and a tool that is not retry-safe runs once per call whatever the middleware does (#16).
  • Breaking out of Stream.Events closes the stream (#12).
  • Session.Send records which message started each turn; a different message while a turn is open is ErrConfig (#22).

Fixed ​

  • MemWaker retries a wake whose resume failed (#10).
  • A cancelled tool call records no outcome, and a cancelled run stops before its next turn (#11).
  • A stream the consumer abandons releases its HTTP response (#12).
  • A response that ends without a Finish is an error, not the answer (#13).
  • Cached tokens are counted once on OpenAI and Gemini, so cost matches across providers (#14).
  • trace.Model reports total input tokens, including cached input (#14).
  • A token budget applies per run and has no data race (#15).
  • A cancelled parent waits for its sub-agent to finish (#17).
  • A crash after a Step's effect does not repeat it (#18).
  • Each eval samples the model afresh, and a cancelled eval returns an error (#19).
  • A session turn answers its own message, and concurrent handles lose no turn (#22).
  • A run's anchored tree heads only grow, and a failed anchor publish is retried (01a9afd).

0.5.0 - 2026-09-28 ​

Added ​

  • agent.ClaimAttempt and Record.Claim: an exclusive attempt claim keeps side effects at most once when two drivers overlap (f71efd6).
  • govern/eventlogtest conformance suite for EventLog implementations (f3fd665).
  • Log-backed governors gain Sync(ctx) (f3fd665).
  • agent.DetachModelSink and agent.EmitMessage for middleware that delivers a chosen response to a streaming caller (317c98b).
  • CI runs the Postgres and Redis integration suites (afc0fe6).

Changed ​

  • Breaking: EventLog.Append returns the event's position, and Events takes a starting position (f3fd665).
  • Breaking: Applier.Apply returns Applied{State, Position}, and FederatedApplier.Apply returns FedApplied (f3fd665).
  • Breaking: the Postgres event log uses a governed_events table; write Redis event-log streams only through the adapter (f3fd665).
  • MemStore stores records as JSON and returns independent copies, like the SQL stores (4912fbf).
  • With backup models, Hedge streams only the winning response (317c98b).

Fixed ​

  • Governors sharing an event log fold in each other's events as they act, and each governed action records its log position (f3fd665).
  • The Postgres event log keeps each entity's events in a fixed order under concurrent writers (7efece5).
  • A hedged stream cannot panic the process after the run ends (317c98b).

0.4.0 - 2026-09-28 ​

Added ​

  • m-of-n signed approval: Safety.Approval with ApprovalPolicy, ApproveAs, ApprovalDecisionBytes, Agent.WithApproverVerifiers and PendingApproval.Quorum (78f8db6, 3262cd1).
  • WithDecisionCheck on ApproveAs, with ErrInvalidApproval and ErrAlreadyDecided (3262cd1).
  • audit.ProveApproval, audit.ApprovalEvidence and audit.VerifyApprovals, and bide-audit verify-approvals (78f8db6, 994721b, 3262cd1).
  • A plan config approval block (78f8db6).
  • examples/approval, a cross-process walk-through (994721b).
  • SECURITY.md with a private reporting contact.

Changed ​

  • Breaking: calling Run on a finished run id returns its recorded answer; use Session to continue a conversation (c6deb76).

Fixed ​

  • Re-invoking a finished run returns its recorded answer without calling the model, so a repeated tool request cannot run again (c6deb76).

0.3.0 - 2026-09-28 ​

Added ​

  • ResolveHalt options WithMinHaltAge and WithNow, the error *HaltTooYoung, and ResumeHalt.AttemptedAt (#2).
  • ResolveHalt option WithEvidence, recorded as Record.Reconciled and Record.Evidence (#2).
  • README translations in Simplified Chinese, Russian, Hindi and Arabic under docs/i18n.

Changed ​

  • The bide-audit Homebrew formula in bide-ai/homebrew-tap is maintained by hand instead of by the release pipeline.

0.2.0 - 2026-09-28 ​

Added ​

  • agent.ToolResultCodec, JSONToolResultCodec and EncodeToolResultOr, and WithToolResultCodec on the OpenAI, Anthropic and Gemini adapters (#1).
  • codec/gcf module: opt-in GCF encoding of model-facing tool results (#1).
  • bide-audit Homebrew formula (brew install bide-ai/tap/bide-audit).

0.1.0 - 2026-09-28 ​

First public release.

Added ​

  • agent: durable agent loop on an append-only journal, with at-most-once side effects keyed by tool-use id (Agent.Run, RunResult, Stream, RunSaga, StreamSaga, Session).
  • agent: Safety classification, ResumeHalt and ResolveHalt for unknown outcomes.
  • agent: durable Step, Parallel, SubAgent, and sagas with CompensatedFunc.
  • agent: typed output with RunTyped[T] and RunTypedNative.
  • agent: human-in-the-loop (Interrupt, Resume, Approve), durable timers (Sleep, WaitUntil, MemWaker), and durable signals (Signal, Await, AwaitFor, ordered channels with Send, Receive, Ack).
  • agent: crash recovery and leasing (Recover, Lease, WithLeaseTTL, WithLeaseHolder).
  • agent: WithSystemPrompt, WithSystemPromptFunc, WithMaxTurns, WithSampling, WithToolChoice, prompt caching, and multimodal image input.
  • agent: retrieval seams (WithRetrieval, RetrievalTool), Replay, RenderMermaid, and sentinel error classification.
  • model/anthropic, model/openai (any OpenAI-compatible endpoint) and model/gemini adapters.
  • store/sqlite and store/postgres durable stores, with Lister and Leaser on Postgres.
  • middleware: Retry, Hedge, RateLimit, Cost, TokenBudget, per-attempt timeouts, and tool middleware (UseTool, ToolLog, ToolCache, ToolRetry, ToolRateLimit).
  • trace: OpenTelemetry gen_ai spans and trace.Instrument.
  • mcp: Model Context Protocol tools, with pagination, elicitation and tool-list changes.
  • schema: reflection-based JSON Schema and OpenAIStrict.
  • plan: typed flow builder (Step, Tool, Model, Edge, Switch, Join2, Join3, LoopBack), declarative config (Load), conformance checks and a topology digest.
  • govern: convergent governed state on gsm, durable event logs (govern/sqlitelog, govern/redislog, govern/postgreslog), federation, identity binding and Quorum.
  • audit: tamper-evident journal, RFC 6962 inclusion and consistency proofs, signed tree heads, proof bundles, absence proofs, ML-DSA signatures, anchoring (AuditedStore), run certificates (VerifyRun), EvidencePackage, signed grants and delegation (AttenuatingSubAgent, earned authority).
  • bide-audit standalone verifier, prebuilt for Linux, macOS and Windows on amd64 and arm64.
  • eval statistical evaluation harness, chaos crash-injection harness, and cmd/bench.

Apache-2.0 licensed.