Skip to content

Releases

belay v0.1.0-alpha.11 (pre-alpha)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Nov 12:46

belay v0.1.0-alpha.11 is a pre-alpha. It records what changed in a directory and explains it. It
changes nothing, undoes nothing, and contains nothing. Use it to look, not to protect.

What changed since v0.1.0-alpha.10

belay watch and the Claude Code plugin: a file changed and put back says so.

  • A step that returns a file to the content it had when the session started, after a step that changed it, names it: belay: 🔴 tests/test_app.py put back (as before step 2). It is an item of its own, never part of a count. It is flagged when the file is a test file or on the watch's list, and noted otherwise.
  • The receipt opens with a put back section: tests/test_app.py: changed at step 2, as at the start again at step 3. The plugin's Stop line counts it: 4 changed this turn, 1 put back, in 4 tool calls.
  • The steps of a session are numbered, and the receipt's headings carry the number: session S step N call C. A step is a call that changed something.
  • What it proves: the file's content at the later step is byte for byte its content at the session's start, and a step between them differed. It says nothing of why. A restore that differs by a byte, a final newline among them, is a change, not a put back. git diff shows neither.

A test file or a listed path touched within one step says so.

  • A change and a restore inside one tool call leave the same content at both ends of the step. For a test file, or a path the watch's list flags, belay now names it when the file's ctime (or its inode) moved and its content, mode and owner did not: belay: 🔴 tests/test_app.py touched (content as before). The Stop line counts it: , 1 touched,.
  • It is built on ctime, which a program cannot set back without root, and not on mtime, which it can.
  • What it proves: the file was written, replaced, or had its metadata changed and restored during the step, and its content at the end is as at the start. It does not say what the content was in between. touch, a save with no change, a checkout away and back, and chmod and back all raise it. For every other file nothing changes: such a step still says metadata changed.

belay verify: tests_weakened on a test file emptied or deleted.

  • A test file that had content and is now deleted, or holds nothing but whitespace and comments, raises tests_weakened with a new field gone: test.py: emptied (was 41 lines), tests/test_api.py: deleted.
  • A Python file named exactly test.py or tests.py is a test file. Before, only test_*.py, *_test.py and files below a tests directory were.
  • Not looked for, because it needs judgement: a runner that no longer fails, a comparison rewritten, a test that no longer runs the code.
  • policy.v1's output gains an optional key. A tests_weakened record may carry gone. A reader that rejects unknown keys needs this release.

Unchanged: the manifest (version 5), diff.v1, the protect spec (version 2) and the baseline bundle. The watch's own state gains a table of sessions.

Known limits of belay watch and the plugin are as v0.1.0-alpha.8's notes list them, the macOS one aside. The plugin records a project directory; it does not record the home directory, and says so.

What it still can't see

A copy of the tests edited and run somewhere else leaves the test files untouched, and belay says nothing about them. A file restored within the same timestamp tick as its last change keeps its ctime, and nothing is said. Only test files and listed paths are named as touched.

A protect spec sees files, not intent: a hack that lives in code it does not protect passes, and it reports that a protected file changed, not why.

A file over 64 MiB is recorded without a hash. What a program did on the network or in memory is not recorded: belay reads files.

The limits on a concurrent writer are as v0.1.0-alpha.3's notes state them, in full:

  • Where it can't ask: on macOS, on filesystems without leases, and for files belay's user does not own without CAP_LEASE, belay can't ask. On overlayfs, a shared mapping whose descriptor was closed is invisible. A torn hash there still diffs as an ordinary change; each manifest says only how many files were hashed this way, as unguarded.
  • A fast writer: one that opens, writes and closes entirely between the two checks, within one timestamp tick, is seen by nothing.
  • A writer on another machine: on a filesystem that grants leases locally, it may go unseen. This is unverified.

As in earlier releases: no undo and no sandbox -- belay records and reports and is not a security boundary.

Files

file platform
belay-v0.1.0-alpha.11-linux-x86_64 Linux, x86_64; statically linked
belay-v0.1.0-alpha.11-linux-arm64 Linux, arm64; statically linked
belay-v0.1.0-alpha.11-macos-arm64 macOS 15, Apple silicon; links only the system library; not notarized
SHA256SUMS the sha256 of each binary
pybelay wheels, WHEELS-SHA256SUMS the Python bindings, version 0.1.0a11, with each wheel's sha256

Each binary was built from the tagged commit by the release workflow, and run end to end before it
was attached. To verify one:

sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify belay-v0.1.0-alpha.11-linux-x86_64 --repo Allexsen/belay

On macOS the binary is not notarized: remove the quarantine attribute
(xattr -d com.apple.quarantine belay-v0.1.0-alpha.11-macos-arm64) or build from source.

Status

Pre-alpha: interfaces, output and formats may change without notice. No stable API. The most useful contribution is real-world use: if belay missed a change, invented one, or buried the real one in noise, open a mismatch issue. Security reports: SECURITY.md. Apache-2.0.

belay v0.1.0-alpha.10 (pre-alpha)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Nov 15:18

belay v0.1.0-alpha.10 is a pre-alpha. It records what changed in a directory and explains it. It
changes nothing, undoes nothing, and contains nothing. Use it to look, not to protect.

What changed since v0.1.0-alpha.9

More kinds of change are explained, in every scope.

  • Seven new interpreters say what a change to a system file means, as written in the file: users and groups (etc/passwd, etc/group), sudo rules, cron jobs with their schedule in words where it can be told without guessing, systemd units, timers and init scripts, the key lines of authorized_keys, the certificates of the trust store, and the keys of nginx, sshd and ini-style configuration files.
  • They claim files by path, so they run wherever such a file is in the scope: a --docker container, a project that carries an etc/, or a system watch. A container's diff can now say user deploy added: uid 1002 or sudo rule added in etc/sudoers.d/deploy: deploy ALL=(ALL) NOPASSWD:ALL.
  • They state the file's text, never its effect. A file they cannot read as its grammar says is reported as could not interpret, not skipped.
  • Not established by a run: the configuration grammars have been run against belay's own fixtures, not yet against nginx -t, sshd -T or systemd-analyze.
  • dpkg's events gain auto: whether apt marks the package as installed automatically.
  • diff.v1 gains event kinds and one trailer key. The trailer ends with runtime, 0 outside a system watch. A reader that rejects unknown keys or kinds, pybelay before this release included, needs this release.

git: a pull is told from a rewrite.

  • Fixed: a merge made by git pull --no-rebase was flagged as rewritten history. The operation is now matched as git writes it, not as a substring. Also fixed: pull (finish) under pull.rebase and pull -r were counted as commits added, a rewrite missed; a commit whose subject held forced-update, and pull --rebase that fast-forwarded, were flagged as rewrites.

belay watch and the Claude Code plugin: what a first session says.

  • A pull or a merge leads the step's line: belay: git pull: main moved to 40b8714 (fast-forward) · 17 changes in the tree: 3 added, 2 removed, 12 modified, in place of a count that included everything under .git/. It appears for a repository at the top of the watched directory.
  • The watch receipt folds what git wrote under .git/ into one line, as belay diff does. An entry that a line flags or notes, a hook or .git/config among them, is always listed. belay watch receipt --all folds nothing.
  • The plugin says belay: recording ~/proj when a session starts in a directory it records.
  • Started from the home directory, it says why it does not record and what to do: not watching ~ (your home directory): too wide. Start Claude Code in a project directory to record it., and belay: not recording: ~ is too wide at each stop. Fixed: /belay:receipt there answered that nothing had changed.

belay watch --system: a whole machine, experimental.

  • Reads the roots of / that hold a machine's configuration (content for etc, usr/local, root, cron, dpkg's database and each home's keys, startup files and user units; metadata only for usr, var, opt), with a record of what is listening and which services run, and a receipt in sections: installed, services, listening, user, cron, sudo, ssh, setuid, secret, trust, config. With --docker C it reads a container's / from the host.
  • It is slow on a large machine. On a hosted Ubuntu 24.04 runner with 1.05 million entries the first capture took 20 minutes, a step 40 to 75 seconds, the receipt about 2 minutes and 300 MB. There is no kernel record in this version: every capture is a walk, and a change made and put back between two captures is not seen.
  • Its output and its state may change. verify, --protect and baseline export refuse a system watch.

Captures of large trees.

  • The record of the previous capture is kept on disk beside the state, not in memory, and a capture's delta is written as a stream. A tree of two million entries is captured within 64 MiB of memory.

Smaller changes.

  • A file that could not be read is reported on its own line with content not read, and such rows never fold into a count.
  • A protect rule of no_delete alone reads existence only: a protected file that is present but unreadable is not unverifiable under it.
  • belay prune --docker takes a container that is running or paused; it took only a paused one.

Changed formats. The manifest is version 5 (versions 1 to 4 are read). A checkpoint's record gains keys. State written by this release is not read by v0.1.0-alpha.9: an older binary on it fails and says so at every step, and its verify refuses a bundle this release exported. The protect spec (version 2) is unchanged. The baseline bundle's own format is unchanged; the manifest it carries is version 5.

Known limits of belay watch and the plugin are as v0.1.0-alpha.8's notes list them, the macOS one aside. The plugin records a project directory; it does not record the home directory, and says so.

What it still can't see

A protect spec sees files, not intent: a hack that lives in code it does not protect passes, and it reports that a protected file changed, not why.

A change made and put back between two captures is not seen, outside the one case v0.1.0-alpha.9 added for a container's image files. A file over 64 MiB is recorded without a hash. What a program did on the network or in memory is not recorded: belay reads files.

The limits on a concurrent writer are as v0.1.0-alpha.3's notes state them, in full:

  • Where it can't ask: on macOS, on filesystems without leases, and for files belay's user does not own without CAP_LEASE, belay can't ask. On overlayfs, a shared mapping whose descriptor was closed is invisible. A torn hash there still diffs as an ordinary change; each manifest says only how many files were hashed this way, as unguarded.
  • A fast writer: one that opens, writes and closes entirely between the two checks, within one timestamp tick, is seen by nothing.
  • A writer on another machine: on a filesystem that grants leases locally, it may go unseen. This is unverified.

As in earlier releases: no undo and no sandbox -- belay records and reports and is not a security boundary.

Files

file platform
belay-v0.1.0-alpha.10-linux-x86_64 Linux, x86_64; statically linked
belay-v0.1.0-alpha.10-linux-arm64 Linux, arm64; statically linked
belay-v0.1.0-alpha.10-macos-arm64 macOS 15, Apple silicon; links only the system library; not notarized
SHA256SUMS the sha256 of each binary
pybelay wheels, WHEELS-SHA256SUMS the Python bindings, version 0.1.0a10, with each wheel's sha256

Each binary was built from the tagged commit by the release workflow, and run end to end before it
was attached. To verify one:

sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify belay-v0.1.0-alpha.10-linux-x86_64 --repo Allexsen/belay

On macOS the binary is not notarized: remove the quarantine attribute
(xattr -d com.apple.quarantine belay-v0.1.0-alpha.10-macos-arm64) or build from source.

Status

Pre-alpha: interfaces, output and formats may change without notice. No stable API. The most useful contribution is real-world use: if belay missed a change, invented one, or buried the real one in noise, open a mismatch issue. Security reports: SECURITY.md. Apache-2.0.

belay v0.1.0-alpha.9 (pre-alpha)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Nov 14:35

belay v0.1.0-alpha.9 is a pre-alpha. It records what changed in a directory and explains it. It
changes nothing, undoes nothing, and contains nothing. Use it to look, not to protect.

What changed since v0.1.0-alpha.8

belay verify --docker: a protected file that was written and put back.

  • A new signal, protected_path_touched. In a container, writing to a file of the image copies it into the container's own layer, and the copy stays there when the bytes are put back. verify now names such a file when it is under a no_write rule and nothing else about it changed. It is a signal: it never changes the verdict or the exit code.
  • It is raised only when both captures were read from a container's layers (--docker). Elsewhere the policy's header lists it under not_emitted, with the reason.
  • It is silent for a file that was not in the image. A file made after the container started is already in the container's layer, so changing it in place and restoring it leaves no trace. In an Inspect eval that covers a sample's files= and anything a setup step writes.
  • Honest work raises it too. In 53 measured runs of ordinary repository work in real Docker it fired in 14: a checkout of an older commit and back, a no-op chmod -R or chown -R, discarded edits, a save with no change. Never for status, stash, commit, merge, rebase, pytest or npm.
  • policy.v1's output gains a key. The trailer has protected_path_touched, and the header's not_emitted has an entry for it when the captures were not read from layers. A reader that rejects unknown keys, pybelay 0.1.0a8 among them, rejects this binary's policy: use the wheel of this release with this binary.

pybelay's Inspect integration: belay outside the sandbox.

  • belay_record(spec, where="host"), and the belay_verify() that follows it, run belay on the machine the eval runs on and read the sample's Docker container from there, paused for each reading. Nothing of belay's enters the sandbox. The default is unchanged: belay runs inside the sandbox.
  • It needs root for belay, and that is a real cost. The eval runs as root, or its user may run timeout through sudo -n without a password, which is passwordless root for that account. It also needs Linux, a Docker daemon on the same machine (not Docker Desktop), a /tmp that allows execution, and GNU coreutils. python/README.md lists what it does on the host and what it can leave there.
  • Only the wheel's own binary runs on the host: binary= with where="host" is refused.
  • The container is set running again whatever became of the reading: an answer, a refusal, a timeout, a cancelled sample. If it cannot be, the error says so together with belay's answer.
  • Asked for and unable to run, it fails the sample and says why. It never runs belay in the sandbox instead.
  • Not established by a run: that the eval's user cannot signal a process sudo started, and Docker's wording for a container that is not paused, are both from those tools' sources. The eval-as-root path has run only with the user id mocked. No eval here changed and restored a file of an image, so protected_path_touched appearing in a score is from reading the code.

pybelay's Inspect integration: two changes to the default mode.

  • belay_verify judges against the record belay_record kept in the process, not against the copy in the sample's store. The copy is for the log, and changing it changes nothing. Before, whatever could write the store chose what belay_verify ran and read.
  • Fixed: when putting the binary into the sandbox did not finish, by a refusal or a cancelled sample, the binary stayed in the sandbox. It is taken out.

belay watch: a longer built-in list.

  • 94 rows, from 66. The 28 new ones are names that Anthropic's claude-code-action treats as configuration a pull request controls, and names Claude Code 2.1.322 itself will not edit without asking. They are included by name; the pin says for each what was run to check it, if anything. 50 of the 94 rows carry a "not verified" mark, in whole or in part.
  • Applied to the recorded steps the list was measured on, the new rows change no step's result.
  • .claude/.cc-writes is no longer flagged: Claude Code writes that directory itself. Anything written inside it is still counted and listed.

The Claude Code plugin

  • The README gives the full-URL form of the install, for a network that blocks SSH.
  • macOS: the plugin was run by hand on Apple silicon (install from GitHub, the per-call lines, the red circle, /belay:receipt). Intel Macs have no binary.

Unchanged: the manifest (version 4), diff.v1, the protect spec (version 2) and the baseline bundle. belay watch's lines and its hook are as before.

Known limits of belay watch and the plugin are as v0.1.0-alpha.8's notes list them, the macOS one aside.

What it still can't see

A protect spec sees files, not intent: a hack that lives in code it does not protect passes, and it reports that a protected file changed, not why.

The limits on a concurrent writer are as v0.1.0-alpha.3's notes state them, in full:

  • Where it can't ask: on macOS, on filesystems without leases, and for files belay's user does not own without CAP_LEASE, belay can't ask. On overlayfs, a shared mapping whose descriptor was closed is invisible. A torn hash there still diffs as an ordinary change; each manifest says only how many files were hashed this way, as unguarded.
  • A fast writer: one that opens, writes and closes entirely between the two checks, within one timestamp tick, is seen by nothing.
  • A writer on another machine: on a filesystem that grants leases locally, it may go unseen. This is unverified.

As in earlier releases: no undo and no sandbox -- belay records and reports and is not a security boundary.

Files

file platform
belay-v0.1.0-alpha.9-linux-x86_64 Linux, x86_64; statically linked
belay-v0.1.0-alpha.9-linux-arm64 Linux, arm64; statically linked
belay-v0.1.0-alpha.9-macos-arm64 macOS 15, Apple silicon; links only the system library; not notarized
SHA256SUMS the sha256 of each binary
pybelay wheels, WHEELS-SHA256SUMS the Python bindings, version 0.1.0a9, with each wheel's sha256

Each binary was built from the tagged commit by the release workflow, and run end to end before it
was attached. To verify one:

sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify belay-v0.1.0-alpha.9-linux-x86_64 --repo Allexsen/belay

On macOS the binary is not notarized: remove the quarantine attribute
(xattr -d com.apple.quarantine belay-v0.1.0-alpha.9-macos-arm64) or build from source.

Status

Pre-alpha: interfaces, output and formats may change without notice. No stable API. The most useful contribution is real-world use: if belay missed a change, invented one, or buried the real one in noise, open a mismatch issue. Security reports: SECURITY.md. Apache-2.0.

belay v0.1.0-alpha.8 (pre-alpha)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 11 Nov 08:08

belay v0.1.0-alpha.8 is a pre-alpha. It records what changed in a directory and explains it. It
changes nothing, undoes nothing, and contains nothing. Use it to look, not to protect.

What changed since v0.1.0-alpha.7

belay watch: a running record of a directory while an agent works in it.

  • belay watch step records what changed since the last step and prints one line: anything in a sensitive place, or matching your .belay-donttouch, first behind a red circle; the rest counted. mark and summary give a turn's totals; receipt prints every change of every step, nothing folded; patterns shows what each pattern matches now.

    belay: 🔴 .git/hooks/pre-push added (git hook) · 7 more: 7 added (5 under node_modules/)
    belay: .git/config modified (git config) · 2 more: 2 modified
    belay: 8 changed this turn in 1 tool call · full receipt: /belay:receipt
    
  • What it says and when is pinned in test/expect/watch-v1.md: the lines, a built-in list of 66 rows (each with what was run to check its tool honours it, or marked not verified), and the measurement behind the list. Over 27 install, scaffold, build and test steps, 2 lead with a red circle (a .pth file added to site-packages each time); over 14 git operations, 4 do and 3 more are noted without one.

  • It catches careless changes: what an agent, a tool it ran or an install did without saying. It does not hold against a process running as you that attacks belay's state, its lock or its commands.

  • Always a line, never silence. A step runs under a deadline of 45 s. When it cannot record, a line says so and why, the next step covers the same interval, and the summary repeats it. A step is never said to be lost after it was recorded.

A Claude Code plugin, a thin wrapper around belay hook claude-code:

claude plugin marketplace add Allexsen/belay
claude plugin install belay@belay

One line after every tool call that changed something, the turn's totals when the agent stops, and /belay:receipt for everything. The wrapper fetches this release's binary once and runs it only if its sha256 is the pinned one. See claude-plugin/README.md.

belay prune

  • Where belay watch keeps a record, the checkpoint its next step reads is never removed, and a day of the record goes once no checkpoint its lines name is left (state-retention-watch.md).
  • --watch-only removes only checkpoints a watch step wrote. It is the form the plugin runs, once a day: the plugin never removes a checkpoint you made.
  • Fixed: a prune killed while it rewrote a checkpoint left a file that made every later prune stop with "holds what belay did not write" (exit 4).

Other fixes

  • A JSON number too large for 64 bits was converted in a way C leaves undefined (found by fuzzing). It is clamped.
  • belay diff in a git repository with nothing tracked, or nothing ignored, sorted an empty list in a way C leaves undefined.

Unchanged: the manifest (version 4), diff.v1, policy.v1, the protect spec (version 2) and the baseline bundle. The protect spec's pattern rules are as before; the matcher is now shared with belay watch, whose lists also match names that start with a dot. belay log shows , watch on a checkpoint a watch step wrote.

Known limits of belay watch and the plugin

  • A fetched binary found damaged at a session's start is removed and said so, and is fetched again only at the next session's start.
  • A subagent's tool call that never finishes stays open for as long as its parent session goes on, so later changes are counted under it.
  • When calls of a session that died are closed by an event that makes no step, the line that says so is not printed.
  • A binary that hangs is silent until Claude Code's hook timeout ends the hook.
  • A change made and undone between two steps is not seen; a file caught half written can be counted in two steps, as the two states it was in.
  • A modified .git/config is noted whatever key changed: core.hooksPath like user.name.
  • Rows for tools that could not be run here (26 of 66: CI systems, editors, direnv, cargo, yarn 2, Cursor, Copilot) are included by name and marked not verified.
  • macOS: built and tested in CI; the plugin has not been tried there by hand.

What it still can't see

A protect spec sees files, not intent: a hack that lives in code it does not protect passes, and it reports that a protected file changed, not why.

The limits on a concurrent writer are as v0.1.0-alpha.3's notes state them, in full:

  • Where it can't ask: on macOS, on filesystems without leases, and for files belay's user does not own without CAP_LEASE, belay can't ask. On overlayfs, a shared mapping whose descriptor was closed is invisible. A torn hash there still diffs as an ordinary change; each manifest says only how many files were hashed this way, as unguarded.
  • A fast writer: one that opens, writes and closes entirely between the two checks, within one timestamp tick, is seen by nothing.
  • A writer on another machine: on a filesystem that grants leases locally, it may go unseen. This is unverified.

As in earlier releases: no undo and no sandbox -- belay records and reports and is not a security boundary.

Files

file platform
belay-v0.1.0-alpha.8-linux-x86_64 Linux, x86_64; statically linked
belay-v0.1.0-alpha.8-linux-arm64 Linux, arm64; statically linked
belay-v0.1.0-alpha.8-macos-arm64 macOS 15, Apple silicon; links only the system library; not notarized
SHA256SUMS the sha256 of each binary
pybelay wheels, WHEELS-SHA256SUMS the Python bindings, version 0.1.0a8, with each wheel's sha256

Each binary was built from the tagged commit by the release workflow, and run end to end before it
was attached. To verify one:

sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify belay-v0.1.0-alpha.8-linux-x86_64 --repo Allexsen/belay

On macOS the binary is not notarized: remove the quarantine attribute
(xattr -d com.apple.quarantine belay-v0.1.0-alpha.8-macos-arm64) or build from source.

Status

Pre-alpha: interfaces, output and formats may change without notice. No stable API. The most useful contribution is real-world use: if belay missed a change, invented one, or buried the real one in noise, open a mismatch issue. Security reports: SECURITY.md. Apache-2.0.

belay v0.1.0-alpha.7 (pre-alpha)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 10 Nov 13:55

belay v0.1.0-alpha.7 is a pre-alpha. It records what changed in a directory and explains it. It
changes nothing, undoes nothing, and contains nothing. Use it to look, not to protect.

What changed since v0.1.0-alpha.6

Two fixes for things that were broken for a user of v0.1.0-alpha.6. No format changes.

belay verify no longer reports a protected directory as written because files were created in it.

  • ext4 sets a directory's hashed-index flag by itself when the directory outgrows one block. belay recorded that as an inode-flag change and called it a privilege change. With a no_write rule covering the directory, for example tests/**, creating a few hundred files in it made verify report protected_path_written on the directory and exit 1. pybelay's reward helper turns that into a reward of zero.
  • Now, on a directory, a change to inode flags is a privilege change only when immutable or append-only is set or cleared. The same rule holds in privilege_changed and in the receipt's privilege section. It is pinned in test/expect/inode-flags.md, with the measurement behind it: 10,990,360 entry comparisons over 2,789 checkpoints showed no such change on a regular file.
  • If you judged runs with an earlier release: a protected_path_written whose path is a directory and whose changed is exactly ["iflags"] was this defect.
  • privilege_changed no longer reports an entry whose flags could be read at one end only (iflags 0 -> none on a file made unreadable). A protected path in that state is still protected_path_unverifiable.
  • The receipt now names an entry that is added or removed holding immutable or append-only. A flag change that is no privilege change is still shown, among the other changes.
  • Nothing is hidden: the manifest records inode flags as before, and diff.v1 lists iflags in changed as before.

The Inspect install line works again on a clean machine.

  • Since 9 November 2026 a fresh install of pybelay[inspect] could not run an eval: agent-client-protocol 1.0.0 removed a module that inspect-ai imports, and inspect-ai does not bound that package. The failure is No module named 'acp.helpers', with or without pybelay.

  • The documented line now holds that package below 1.0:

    pip install "pybelay[inspect] @ https://github.com/Allexsen/belay/releases/download/v0.1.0-alpha.7/pybelay-0.1.0a7-py3-none-manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl" "agent-client-protocol<1"
    

    To repair an environment already installed: pip install "agent-client-protocol<1". Drop the bound once an Inspect release fixes its requirement.

  • pybelay's own code is unchanged; its wheels carry this release's binary.

Unchanged: the manifest (version 4), diff.v1, policy.v1, the protect spec (version 2) and the baseline bundle. A state directory and a bundle from v0.1.0-alpha.6 are read as they are.

Limits of the inode-flag rule:

  • On a directory, every flag other than immutable and append-only is now silent as a privilege change, not only ext4's hashed index: no-dump, no-atime and the like, which a directory's owner can set. The change is still in the diff and the receipt.
  • A manifest is judged by the locking flags of the platform that judges it. A bundle written on macOS and verified on Linux, or the reverse, would not see the other platform's immutable flag on a directory. Verify where you exported.
  • A file replaced by a symlink is still reported as iflags N -> none, as before: a symlink has no inode flags.

What it still can't see

A protect spec sees files, not intent: a hack that lives in code it does not protect passes, and it reports that a protected file changed, not why.

The limits on a concurrent writer are as v0.1.0-alpha.3's notes state them, in full:

  • Where it can't ask: on macOS, on filesystems without leases, and for files belay's user does not own without CAP_LEASE, belay can't ask. On overlayfs, a shared mapping whose descriptor was closed is invisible. A torn hash there still diffs as an ordinary change; each manifest says only how many files were hashed this way, as unguarded.
  • A fast writer: one that opens, writes and closes entirely between the two checks, within one timestamp tick, is seen by nothing.
  • A writer on another machine: on a filesystem that grants leases locally, it may go unseen. This is unverified.

As in earlier releases: no undo and no sandbox -- belay records and reports and is not a security boundary.

Files

file platform
belay-v0.1.0-alpha.7-linux-x86_64 Linux, x86_64; statically linked
belay-v0.1.0-alpha.7-linux-arm64 Linux, arm64; statically linked
belay-v0.1.0-alpha.7-macos-arm64 macOS 15, Apple silicon; links only the system library; not notarized
SHA256SUMS the sha256 of each binary
pybelay wheels, WHEELS-SHA256SUMS the Python bindings, version 0.1.0a7, with each wheel's sha256

Each binary was built from the tagged commit by the release workflow, and run end to end before it
was attached. To verify one:

sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify belay-v0.1.0-alpha.7-linux-x86_64 --repo Allexsen/belay

On macOS the binary is not notarized: remove the quarantine attribute
(xattr -d com.apple.quarantine belay-v0.1.0-alpha.7-macos-arm64) or build from source.

Status

Pre-alpha: interfaces, output and formats may change without notice. No stable API. The most useful contribution is real-world use: if belay missed a change, invented one, or buried the real one in noise, open a mismatch issue. Security reports: SECURITY.md. Apache-2.0.

belay v0.1.0-alpha.6 (pre-alpha)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 06 Nov 15:09

belay v0.1.0-alpha.6 is a pre-alpha. It records what changed in a directory and explains it. It
changes nothing, undoes nothing, and contains nothing. Use it to look, not to protect.

Note, 10 November 2026: fresh installs of the Inspect integration fail. Since 9 November, an
environment installed with pybelay[inspect] stops every Inspect eval with
No module named 'acp.helpers'. The cause is in Inspect's dependencies, not in this release:
agent-client-protocol 1.0.0 removed a module that inspect-ai imports, and inspect-ai does not
bound that package. Install with the bound added (the Linux x86_64 wheel; the same goes for the others):

pip install "pybelay[inspect] @ https://github.com/Allexsen/belay/releases/download/v0.1.0-alpha.6/pybelay-0.1.0a6-py3-none-manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl" "agent-client-protocol<1"

To repair an environment already installed: pip install "agent-client-protocol<1". pybelay
without the inspect extra is not affected, and the wheels are unchanged.

What changed since v0.1.0-alpha.5

belay's state no longer grows without bound. One week of dogfood hooks should stay under 1 GB.

  • Checkpoints are stored as deltas against their predecessor, with a full copy every 256. Every rebuild is checked byte for byte.
  • belay prune removes old checkpoints by age and count, the stored copies nothing refers to, and what a killed capture left behind. --dry-run says what would go.
  • belay mark --keep marks a checkpoint that is never pruned.
  • belay manifest prints any checkpoint's manifest.
  • checkpoint.v2 replaces v1: manifest is null for a delta, and stored and kept are new. Use belay manifest rather than reading the path.
  • The dogfood hooks prune once a day, keeping 7 days.
  • Receipts explain a branch switch in one line instead of listing edits and removals.
  • A call gets one number in a receipt, however many sections name it.
  • Every pybelay wheel carries both Linux binaries, so a Linux wheel serves a container of either architecture.
  • The Inspect integration removes each sample's bundle once it is scored.

A state directory from an earlier release is read as it is: nothing is migrated, and new checkpoints become deltas. An earlier binary can't read a state with deltas.

Limits: a pruned checkpoint is gone, and a command naming it is refused. A bare manifest read of a delta takes up to about 8 times as long as a whole file, though diff and log stay under 1.5 times.

What it still can't see

A protect spec sees files, not intent: a hack that lives in code it does not protect passes, and it reports that a protected file changed, not why.

The limits on a concurrent writer are as v0.1.0-alpha.3's notes state them, in full:

  • Where it can't ask: on macOS, on filesystems without leases, and for files belay's user does not own without CAP_LEASE, belay can't ask. On overlayfs, a shared mapping whose descriptor was closed is invisible. A torn hash there still diffs as an ordinary change; each manifest says only how many files were hashed this way, as unguarded.
  • A fast writer: one that opens, writes and closes entirely between the two checks, within one timestamp tick, is seen by nothing.
  • A writer on another machine: on a filesystem that grants leases locally, it may go unseen. This is unverified.

As in earlier releases: no undo and no sandbox -- belay records and reports and is not a security boundary.

Files

file platform
belay-v0.1.0-alpha.6-linux-x86_64 Linux, x86_64; statically linked
belay-v0.1.0-alpha.6-linux-arm64 Linux, arm64; statically linked
belay-v0.1.0-alpha.6-macos-arm64 macOS 15, Apple silicon; links only the system library; not notarized
SHA256SUMS the sha256 of each binary
pybelay wheels, WHEELS-SHA256SUMS the Python bindings, version 0.1.0a6, with each wheel's sha256

Each binary was built from the tagged commit by the release workflow, and run end to end before it
was attached. To verify one:

sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify belay-v0.1.0-alpha.6-linux-x86_64 --repo Allexsen/belay

On macOS the binary is not notarized: remove the quarantine attribute
(xattr -d com.apple.quarantine belay-v0.1.0-alpha.6-macos-arm64) or build from source.

Status

Pre-alpha: interfaces, output and formats may change without notice. No stable API. The most useful contribution is real-world use: if belay missed a change, invented one, or buried the real one in noise, open a mismatch issue. Security reports: SECURITY.md. Apache-2.0.

belay v0.1.0-alpha.5 (pre-alpha)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 06 Nov 11:01

belay v0.1.0-alpha.5 is a pre-alpha. It records what changed in a directory and explains it. It
changes nothing, undoes nothing, and contains nothing. Use it to look, not to protect.

What changed since v0.1.0-alpha.4

pybelay now works with Inspect. An eval records each sample's sandbox before the agent acts, and judges it afterwards, beside its own scorers. See Using belay with Inspect.

  • pip install "pybelay[inspect] @ <wheel URL>" adds pybelay.inspect: belay_record for a Task's setup, and belay_verify for its scorers.
  • The score is C with the answer pass, or I with violation, or I with error when belay could not judge the run. The flags are in its metadata.
  • The metrics are pass_rate, violations and errors.
  • belay's static binary is copied into the sandbox for each step and removed after. --docker isn't used: it needs root on the host, and refuses Docker Desktop.
  • belay_verify refuses to run after another scorer, since one that runs tests can change the sandbox.
  • macOS wheels now also carry the Linux x86_64 and arm64 static binaries, so Docker on a Mac works: the one matching the sandbox is picked. The wheel grows by about 1.1 MB.
  • bench/replay/ is new: a harness that replays EvilGenie's 2,115 published agent runs against belay, and RESULTS.md, the report.

belay itself is unchanged: the manifest is version 4, as in v0.1.0-alpha.4, and the formats are the same.

Limits of the Inspect integration

  • belay runs inside the sandbox, beside anything the agent left running. A leftover process can still write while belay reads, or interfere with it if it runs as the same user. Inspect can't stop such a process first, as belay verify asks.
  • It sees the end state, within the scope: a file changed and restored is invisible.
  • belay_verify() must come first in the Task's scorers.
  • inspect score on a finished log can't judge: the sandbox is gone.
  • The sandbox needs a writable, executable /tmp, and uname, chmod and rm.
  • A Linux wheel carries only its own binary: for a sandbox of another architecture, belay refuses and says so, and binary= takes the right one.
  • Inspect reads at most 100 MiB from a sandbox by default. A larger bundle is refused, and bundles stay in a temporary directory on the host until the eval's process ends.
  • With several epochs and a reducer, a sample with both judged and unjudged epochs counts as a violation, not an error.
  • Tested with Docker on Linux x86_64 and arm64, Inspect's local sandbox on Linux, and Inspect 0.3.213 and 0.3.287. Not tested on a real Mac, or with Kubernetes.

What it still can't see

A protect spec sees files, not intent: a hack that lives in code it does not protect passes, and it reports that a protected file changed, not why.

The limits on a concurrent writer are as v0.1.0-alpha.3's notes state them, in full:

  • Where it can't ask: on macOS, on filesystems without leases, and for files belay's user does not own without CAP_LEASE, belay can't ask. On overlayfs, a shared mapping whose descriptor was closed is invisible. A torn hash there still diffs as an ordinary change; each manifest says only how many files were hashed this way, as unguarded.
  • A fast writer: one that opens, writes and closes entirely between the two checks, within one timestamp tick, is seen by nothing.
  • A writer on another machine: on a filesystem that grants leases locally, it may go unseen. This is unverified.

As in earlier releases: no undo and no sandbox -- belay records and reports and is not a security boundary.

Files

file platform
belay-v0.1.0-alpha.5-linux-x86_64 Linux, x86_64; statically linked
belay-v0.1.0-alpha.5-linux-arm64 Linux, arm64; statically linked
belay-v0.1.0-alpha.5-macos-arm64 macOS 15, Apple silicon; links only the system library; not notarized
SHA256SUMS the sha256 of each binary
pybelay wheels, WHEELS-SHA256SUMS the Python bindings, version 0.1.0a5, with each wheel's sha256

Each binary was built from the tagged commit by the release workflow, and run end to end before it
was attached. To verify one:

sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify belay-v0.1.0-alpha.5-linux-x86_64 --repo Allexsen/belay

On macOS the binary is not notarized: remove the quarantine attribute
(xattr -d com.apple.quarantine belay-v0.1.0-alpha.5-macos-arm64) or build from source.

Status

Pre-alpha: interfaces, output and formats may change without notice. No stable API. The most useful contribution is real-world use: if belay missed a change, invented one, or buried the real one in noise, open a mismatch issue. Security reports: SECURITY.md. Apache-2.0.

belay v0.1.0-alpha.4 (pre-alpha)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 05 Nov 13:16

belay v0.1.0-alpha.4 is a pre-alpha. It records what changed in a directory and explains it. It
changes nothing, undoes nothing, and contains nothing. Use it to look, not to protect.

What changed since v0.1.0-alpha.3

Version 1 protect specs are now refused. If yours says "belay_protect": 1, change it to "belay_protect": 2, and export any baseline made with it again.

  • no_write now also forbids deleting a path: deleting is a write to the file's existence. Replaying 2,115 published agent runs found two that deleted a file they were told not to write, and belay said nothing.
  • no_delete alone still forbids deleting and allows writing.
  • protected_path_deleted's text is now {path}: protected by {rule}, removed.
  • A bundle exported with a version 1 spec must be exported again; a bundle with no spec is unaffected.
  • An entry marked writer_open is never folded under a git-ignored directory: it is listed by name.

The manifest format is unchanged: version 4, as in v0.1.0-alpha.3.

What it still can't see

A protect spec sees files, not intent: a hack that lives in code it does not protect passes, and it reports that a protected file changed, not why.

The limits on a concurrent writer are as v0.1.0-alpha.3's notes state them, in full:

  • Where it can't ask: on macOS, on filesystems without leases, and for files belay's user does not own without CAP_LEASE, belay can't ask. On overlayfs, a shared mapping whose descriptor was closed is invisible. A torn hash there still diffs as an ordinary change; each manifest says only how many files were hashed this way, as unguarded.
  • A fast writer: one that opens, writes and closes entirely between the two checks, within one timestamp tick, is seen by nothing.
  • A writer on another machine: on a filesystem that grants leases locally, it may go unseen. This is unverified.

As in earlier releases: no undo and no sandbox -- belay records and reports and is not a security boundary.

Files

file platform
belay-v0.1.0-alpha.4-linux-x86_64 Linux, x86_64; statically linked
belay-v0.1.0-alpha.4-linux-arm64 Linux, arm64; statically linked
belay-v0.1.0-alpha.4-macos-arm64 macOS 15, Apple silicon; links only the system library; not notarized
SHA256SUMS the sha256 of each binary
pybelay wheels, WHEELS-SHA256SUMS the Python bindings, version 0.1.0a4, with each wheel's sha256

Each binary was built from the tagged commit by the release workflow, and run end to end before it
was attached. To verify one:

sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify belay-v0.1.0-alpha.4-linux-x86_64 --repo Allexsen/belay

On macOS the binary is not notarized: remove the quarantine attribute
(xattr -d com.apple.quarantine belay-v0.1.0-alpha.4-macos-arm64) or build from source.

Status

Pre-alpha: interfaces, output and formats may change without notice. No stable API. The most useful contribution is real-world use: if belay missed a change, invented one, or buried the real one in noise, open a mismatch issue. Security reports: SECURITY.md. Apache-2.0.

belay v0.1.0-alpha.3 (pre-alpha)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 05 Nov 08:32

belay v0.1.0-alpha.3 is a pre-alpha. It records what changed in a directory and explains it. It
changes nothing, undoes nothing, and contains nothing. Use it to look, not to protect.

What changed since v0.1.0-alpha.2

New

  • belay baseline export writes a checkpoint and its copies to a bundle; belay verify compares a directory with that bundle and judges it against a protect spec (policy.v1).
  • A protect spec names paths that must not be written, deleted or created, with optional expected hashes.
  • --docker CONTAINER, on every command that takes --scope, reads a container's layers from the host, without entering it.
  • pybelay, Python bindings around the binary, with a reward helper: a violation zeroes the reward, signals go to its metadata.
  • bench/spike_torn gains an mmap mode, so torn-read figures can be reproduced.

A hash a writer may have torn (manifest v4)

  • belay now asks the kernel, around every file it hashes, whether some process has that file open for writing or mapped shared-writable.
  • If so, the entry is marked writer_open, its hash is kept but never compared, no copy is kept, and the diff says unknown.
  • Policy and baselines treat a marked entry as having no hash. new_executable_on_path still fires, provisionally, because a mode is not a hash.
  • mark reads a marked file again.
  • Where the kernel cannot answer, each manifest counts the files as unguarded, and a receipt says so on one line.

Receipts

  • Tracked changes come first and are never cut; what git ignores folds to one line per top-level directory.
  • Edits to git-ignored text files are named: an ignored file an agent edits is often .env or local configuration.
  • Unknown rows under a git-ignored directory fold too, counted by reason.
  • .git folds to one git bookkeeping line. A reflog that only moved a ref where it was is counted: (1 reset in place).

Smaller changes

  • A development build reports git's description (0.1.0-alpha.2+95-ga2054b3), so it can't be taken for a release.
  • diff --to between kept checkpoints writes nothing when that diff is already stored.
  • git's refs and reflogs are read as git reads them: unterminated lines, skipped lines and blank lines included.

Format changes

  • Manifest v4 (writer_open, unguarded), by way of v3 (source, where a capture came from). belay reads every earlier version; earlier releases refuse v3 and v4 manifests.
  • diff.v1 gains a reason, writer_open, and four trailer keys. A consumer ignores what it does not know.
  • A hash of bytes under a writer used to diff as modified; it now diffs as unknown, so a file a process merely keeps open is unknown, and diff --exit-code exits 1, for as long as it stays open.

What it still can't see

On Linux, belay marks a file whose hash a concurrent writer may have torn, for files it owns on filesystems with leases. These are not marked:

  • Where it can't ask: on macOS, on filesystems without leases, and for files belay's user does not own without CAP_LEASE, belay can't ask. On overlayfs, a shared mapping whose descriptor was closed is invisible. A torn hash there still diffs as an ordinary change; each manifest says only how many files were hashed this way, as unguarded.
  • A fast writer: one that opens, writes and closes entirely between the two checks, within one timestamp tick, is seen by nothing. This is possible on kernels before 6.13 and on coarse-timestamp filesystems; it follows from the kernel's rules and hasn't been observed.
  • A writer on another machine: on a filesystem that grants leases locally, it may go unseen. This is unverified.
  • Files mark didn't re-read: they aren't counted, so unguarded can fall to 0 on later marks while the hashes still came from unguarded reads.

Asking the kernel takes a lease and releases it at once. A writer opening the file in that instant waits for microseconds, and one opening it with O_NONBLOCK gets EAGAIN and must retry.

mark --json does not report writer_open or unguarded; the manifest and the diff do.

A protect spec sees files, not intent: a hack that lives in code it does not protect passes.

As in earlier releases: no undo and no sandbox -- belay records and reports and is not a security boundary; nothing outside the directory given, below a mount point inside it, in belay's own state directory or in a path you exclude is seen, and each of those is named; git objects and packs are not read, and the reflog is the watched process's own account.

Files

file platform
belay-v0.1.0-alpha.3-linux-x86_64 Linux, x86_64; statically linked
belay-v0.1.0-alpha.3-linux-arm64 Linux, arm64; statically linked
belay-v0.1.0-alpha.3-macos-arm64 macOS 15, Apple silicon; links only the system library; not notarized
SHA256SUMS the sha256 of each binary
pybelay wheels, WHEELS-SHA256SUMS the Python bindings, version 0.1.0a3, with each wheel's sha256

Each binary was built from the tagged commit by the release workflow, and run end to end before it
was attached. To verify one:

sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify belay-v0.1.0-alpha.3-linux-x86_64 --repo Allexsen/belay

On macOS the binary is not notarized: remove the quarantine attribute
(xattr -d com.apple.quarantine belay-v0.1.0-alpha.3-macos-arm64) or build from source.

Status

Pre-alpha: interfaces, output and formats may change without notice. No stable API. The most useful contribution is real-world use: if belay missed a change, invented one, or buried the real one in noise, open a mismatch issue. Security reports: SECURITY.md. Apache-2.0.

belay v0.1.0-alpha.2 (pre-alpha)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Nov 20:35

belay v0.1.0-alpha.2 is a pre-alpha. It records what changed in a directory and explains it. It
changes nothing, undoes nothing, and contains nothing. Use it to look, not to protect.

What changed since v0.1.0-alpha

git, explained at the level of the repository. A diff now says what happened to a repository,
not only which of its files changed: a branch created, deleted, renamed or moved, commits added to
it, its history rewritten (a reset, an amend, a rebase, a forced update), HEAD switched or detached.
The values come from the refs themselves; the reflog only says how a branch moved, and only when it
agrees with the refs -- it is written by the process being watched, so what it says is evidence,
not proof. A ref that raced while it was read still gives its event, marked provisional; what
cannot be read narrows what is claimed (a branch "now at" a commit) rather than dropping it. Tags
and remote-tracking refs are reported file by file, as before.

Excluded paths, named in the diff itself. diff.v1's header now carries each side's excluded
paths (before_excluded, after_excluded), so a consumer of the JSON sees what was not compared
without reading standard error. A path that one side did not capture (excluded, below an unreadable
directory, below a mount) derives no package event: excluding a virtualenv no longer reads as
packages installed or removed.

Excludes, stricter and safer.

  • belay exclude --add refuses an exclude that would make a manifest's header line too long to
    read back, and a capture refuses to write such a header (exit 4) rather than leave an unreadable
    manifest.
  • An excludes file holding a NUL, a control character or a line twice is corrupt state (exit 4).
  • --remove of a path that is not excluded is an error (exit 2).
  • belay's own state directory takes one excluded slot however many bind mounts show it inside the
    scope; a second appearance is recorded as the mount it is.

Behaviour changes.

  • An option given twice (--scope, --since, --to, --add, --remove) is a usage error
    (exit 2); before, the last one won.
  • The receipt's first section is headed events (it was "packages and files explained"): it now
    holds git's events as well as packages'.
  • diff.v1 (still a draft) gains header keys and event kinds; a consumer ignores kinds it does not
    know (diff-events E8).

The manifest format is unchanged: version 2, as in v0.1.0-alpha.

Files

file platform
belay-v0.1.0-alpha.2-linux-x86_64 Linux, x86_64; statically linked
belay-v0.1.0-alpha.2-linux-arm64 Linux, arm64; statically linked
belay-v0.1.0-alpha.2-macos-arm64 macOS 15, Apple silicon; links only the system library; not notarized
SHA256SUMS the sha256 of each binary

Each binary was built from the tagged commit by the release workflow, and run end to end before it
was attached. To verify one:

sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify belay-v0.1.0-alpha.2-linux-x86_64 --repo Allexsen/belay

On macOS the binary is not notarized: remove the quarantine attribute
(xattr -d com.apple.quarantine belay-v0.1.0-alpha.2-macos-arm64) or build from source.

What it does not do, and what it does not see

As in v0.1.0-alpha (its notes list the limits in full): no undo and no sandbox -- belay records and
reports and is not a security boundary; a live tree is read as it changes, and what changed while
it was read is reported unknown, never unchanged; nothing outside the directory given, below a mount
point inside it, in belay's own state directory or in a path you exclude is seen, and each of those
is named; git objects and packs are not read, and the reflog is the watched process's own account.

Status

Pre-alpha: interfaces, output and formats other than the manifest may change without notice. No
packages, no Python bindings, no stable API. Bugs: the issue tracker. Security reports:
SECURITY.md. Apache-2.0.