Skip to content

Releases

GuardFil v0.1.0-alpha.6

Pre-release

Choose a tag to compare

@reviaro reviaro released this 23 Nov 02:50

GuardFil v0.1.0-alpha.6

GuardFil runs on Linux with Docker and FUSE for single-user evaluation. This release fixes an intermittent startup error when two agents first open the same provider ledger. It includes the migration, broker and Go 1.27.4 updates prepared for alpha.5.

Install or upgrade

Follow the tagged quickstart. Existing installations should rebuild the image and extract the new host helpers by running deployments/local/guardfil-local.sh up from the new checkout.

If you have provider ledgers from alpha.3 or earlier, stop active agents and inspect the planned migration before applying it.

"${GF_HOME:-$HOME/.guardfil-local}/bin/guardfil-broker" migrate-ledger --provider all --dry-run
"${GF_HOME:-$HOME/.guardfil-local}/bin/guardfil-broker" migrate-ledger --provider all

Existing schema-v2 ledgers keep their balances, reservation counts, and halt status. An interrupted alpha.4 installation that lacks matching recovery records still requires a known matching backup.

Changes

  • Concurrent first opens now share one ledger. A read-only migration inspection during startup can report the provider as new or validate the initialized ledger. An existing target with a missing retirement record continues to fail closed.

  • Healthy legacy ledgers must have settlement records that match their journal before migration. The dry run performs the same settlement checks.

  • Interrupted first-time initialization and migration of an empty or evidence-only legacy directory can resume without giving an existing ledger a second spending allowance.

  • The Claude Messages broker streams signed thinking blocks in the order the client needs for follow-up tool turns.

  • One-shot Codex runs exit with an error when the native agent reports a failed or interrupted turn.

  • The source build, hosted CI, and default executor use the digest-pinned Go 1.27.4 image.

Verification

The ledger regression starts eight initializers together with a read-only migration inspection, records one settlement, then reopens the ledger to verify the charge and reservation count. Other tests cover interrupted publication, repeated recovery, mismatched settlement evidence and missing target directories. The public workflow also exercises the executor and the README quickstart.

See the budget guide, evaluation limits, and private reporting policy.

GuardFil v0.1.0-alpha.4

Pre-release

Choose a tag to compare

@reviaro reviaro released this 22 Nov 15:31

GuardFil v0.1.0-alpha.4

Fourth alpha release · 2026-11-22 · GNU AGPL v3

GuardFil runs supported AI coding agents in a constrained executor and applies
owner policy to their shell, file and tool requests. This source release builds
on v0.1.0-alpha.3 with graceful broker listener shutdown on
SIGTERM, secret-free upstream SSE error diagnostics in the OpenAI broker,
schema-v2 provider ledger naming with crash-safe CLI migration, and an
up --no-build startup option with bridge-DNS build troubleshooting. It is for
a single user on a Linux machine with Docker; the quickstart builds the local
container image, and no prebuilt binaries or registry images are attached.

Install

You need Linux (kernel 5.6+) with FUSE 3 (user_allow_other enabled in
/etc/fuse.conf), Docker with Compose, Python 3.11+, and the native agent you
want to run installed on the host. CI tested Codex 0.166.0 and Claude Code
2.1.318. Other versions are not covered by this release's native-agent
evidence.

echo user_allow_other | sudo tee -a /etc/fuse.conf
git clone --branch v0.1.0-alpha.4 --single-branch https://github.com/reviaro/GuardFil.git
cd GuardFil
deployments/local/guardfil-local.sh check
deployments/local/guardfil-local.sh init --ui active

Continue with the README quickstart to add a
host-only provider key, start GuardFil and run an agent. Provider requests
cost money and are subject to the spending ledger; each provider starts with
its own $2.00 ceiling.

Upgrading from alpha.3

  • Run deployments/local/guardfil-local.sh up to rebuild the service container
    image and extract updated guardfil-broker, guardfil-mcp-proxy and
    guardfil-workspace helpers. (If docker compose build hits a bridge DNS
    timeout on your host network, build on --network=host from the repository
    root and pass up --no-build.)
  • If your ~/.local/state/guardfil/ directory contains ledgers from earlier
    alpha releases (t2a-experiment, anthropic-experiment, or
    gemini-experiment-6), inspect and migrate them before starting an agent:
~/.guardfil-local/bin/guardfil-broker migrate-ledger --provider all --dry-run
~/.guardfil-local/bin/guardfil-broker migrate-ledger --provider all

Brokers fail closed if an unmigrated legacy ledger is present so existing spend
accounting and halt states are never bypassed by opening a fresh $2.00
ledger.

New since alpha.3

  • Prompt broker shutdown on SIGTERM. MessagesBrokerServer.RequestStop
    and NeutralBrokerServer.RequestStop now track and close the Unix socket
    listener under a dedicated stopMu (separate from the in-flight request
    lock), waking Accept immediately instead of timing out teardown waits.
  • OpenAI responses SSE error diagnostics. ParseAndValidateSSEDetailed
    extracts response identifiers (response_id, model, service_tier),
    fixed parse-failure reason categories, and finite allowlisted upstream error
    metadata (upstream_error_type, upstream_error_code, mapping unrecognized
    tokens to other and never reading raw error message text or prompts),
    scrubbing any broker credential or key-shaped token across outputs. Fail-closed
    INVALID_RECEIPT_EVIDENCE retention and ledger halts remain unchanged while
    recording response_id, model, service_tier, parse_error,
    upstream_error_type, and upstream_error_code into broker evidence JSONL;
    parse_error, upstream_error_type, upstream_error_code, and response_id
    to stderr; and error, detail, plus optional upstream_error_type /
    upstream_error_code in the HTTP 502 JSON reply.
  • Provider ledger naming & schema-v2 migration. Provider ledgers now use
    provider-named directories (~/.local/state/guardfil/{openai,anthropic,gemini}/)
    and identifiers (guardfil-{openai,anthropic,gemini}-v1), backed by schema v2
    (MIGRATED journal record, legacy_experiment_id, preserved historical
    witness/replay checks, incremented inspection generation floor, RENAME_NOREPLACE
    publishing, target-to-backup provenance verification, read-only --dry-run
    inspection, and a migrated_to.json + retired ledger/ scaffold keeping both
    migrated and fresh v2 installations non-reinitializable by older binaries). Adds
    guardfil-broker migrate-ledger (--provider, --dry-run, --state-root)
    and updates broker open behavior, --experiment-root provider-root guards,
    demo, and red-team ledger paths.
  • Local startup --no-build & bridge-DNS docs. guardfil-local.sh up [--no-build]
    lets users start a pre-built guardfil-local:dev image cleanly without
    rebuilding; the updated troubleshooting guide
    documents --network=host pre-building and legacy ledger migration resolution.

Everything in alpha.3 is still included.

Verification

This release runs all three hosted CI jobs (verify, escape-suite,
quickstart) visible on the repository's Actions page:

  • Full Go format check, go mod verify, go vet, unit tests and race tests
    (including schema-v2 migration, crash-recovery, double-spend prevention,
    SSE diagnostic redaction, and prompt broker listener-shutdown tests),
    fail-closed verification, API gateway end-to-end, headless CLI/owner-approval/Python-client
    checks, and the isolated reproducibility build gate.
  • 145 Python unit tests covering executor isolation, raw-mount admission,
    executable snapshotting, session cleanup, workspace configuration, CLI
    options (up --no-build), agent identity and red-team helpers.
  • 5 real Docker bind-mount admission checks
    (deployments/local/test_mount_alias_binds.py --docker).
  • 32 filesystem tests in internal/workspacefs under GUARDFIL_FUSE_TEST=1
    plus the root-only nested storage and bind-mount test
    (TestMountedStorageMountsAndBindAliases) under GUARDFIL_MOUNT_TEST=1 on
    CI.
  • 27 executor escape cases, 11 headless Python-runtime checks in the real
    executor, scripted Codex and Claude Code red-team and command-rule suites,
    and the clean-runner README quickstart check.

In addition, live Ubuntu 24.04 alpha testing verified 7/7 boundary controls on a
live service/executor and a live Claude Code task inside the workspace
(6/6 fixture tests passing); other Linux distributions remain untested.

Known limits

  • Local, single-user deployment. The quickstart UI uses loopback HTTP.
    Remote hosting and SSO are outside this alpha's scope.
  • Host setup & OS coverage. user_allow_other is a host-wide FUSE option
    that needs an administrator. Only Linux (Ubuntu 24.04) has been exercised;
    other Linux distributions remain untested.
  • Commands. An allowed program can still run its own code. Command rules
    match what GuardFil can resolve from the command line.
  • Model provider. Data the agent may read can be sent to the model
    provider unless its path is local-only. Local-only access stops cloud turns;
    it does not switch to a local model or recall data already sent. Directory
    listings and lookups count as access.
  • Filesystem and raw mounts. Escaping links, cycle-bearing directory
    symlinks, relative link targets with .. after a normal component, device
    nodes, kernel API mounts, other FUSE sources, extended attributes and shared
    mmap are refused or unsupported. Alias expansion and raw-mount hard-link
    inspection are bounded at 1,024 entries; shared storage not visible in
    /proc/self/mountinfo (such as an overlay lower directory or the same
    network export mounted twice) is not detected. Mount topology must stay
    stable during a run, and large-workspace performance has not been
    characterized. See
    filesystem alias limits.
  • Host-run rules and policy migration. The starter policy's host-run blocks
    do not cover build files you run yourself (Makefile, package.json
    scripts, .npmrc), arbitrary .code-workspace filenames or every
    application-specific config name. Existing installations must merge new
    starter rules explicitly.
  • Result filtering. Native shell and file-tool results cannot be filtered.
    Response-content rules on those calls fail with TRANSFORM_UNAVAILABLE;
    scope them to MCP, the gateway or the Python guard client.
  • Website scope. Rules cover supported HTTPS URLs at the gateway and the
    initial managed WebFetch URL. Redirects, URL-shaped MCP arguments and
    allowed shell commands are not covered.
  • Accounting. Ambiguous billing or malformed upstream SSE streams retain the
    reservation and halt the ledger fail-closed. Deterministic Go-ledger write,
    sync, close, rename, and migration crash-recovery tests pass, but real
    power-loss and storage-hardware durability are untested.
  • Audit coverage. Subsequent bounded AI reviews covered the executor,
    host-file policy, mediated filesystem, runtime mounts, broker shutdown,
    SSE error diagnostics, and ledger migration, with their reported findings
    resolved before release. A follow-up independent filesystem re-review was not
    completed across the final diff, and no comprehensive or third-party security
    audit has been performed. Use disposable, non-sensitive workspaces for
    evaluation. Claude Code refused the model-driven adversarial prompt; its
    adversarial coverage is scripted.

Report vulnerabilities privately; see SECURITY.md.

GuardFil v0.1.0-alpha.3

Pre-release

Choose a tag to compare

@reviaro reviaro released this 21 Nov 21:00

Third alpha release · 2026-11-21 · GNU AGPL v3

GuardFil runs supported AI coding agents in a constrained executor and applies
owner policy to their shell, file and tool requests. This source release builds
on v0.1.0-alpha.2 with hardening for the mediated
workspace filesystem, executor raw-mount admission and runtime snapshotting,
session cleanup, starter-policy coverage and Go spending-ledger durability
error handling. It is for a single user on a Linux machine with Docker; the
quickstart builds the local container image, and no prebuilt binaries or
registry images are attached.

Install

You need Linux (kernel 5.6+) with FUSE 3 (user_allow_other enabled in
/etc/fuse.conf), Docker with Compose, Python 3.11+, and the native agent you
want to run installed on the host. CI tested Codex 0.166.0 and Claude Code
2.1.318. Other versions are not covered by this release's native-agent
evidence.

echo user_allow_other | sudo tee -a /etc/fuse.conf
git clone --branch v0.1.0-alpha.3 --single-branch https://github.com/reviaro/GuardFil.git
cd GuardFil
deployments/local/guardfil-local.sh check
deployments/local/guardfil-local.sh init --ui active

Continue with the README quickstart to add a
host-only provider key, start GuardFil and run an agent. Provider requests
cost money and are subject to the spending ledger; each provider starts with
its own $2.00 ceiling.

Upgrading from alpha.2

  • Run deployments/local/guardfil-local.sh up to rebuild the service container
    image and extract updated guardfil-broker, guardfil-mcp-proxy and
    guardfil-workspace helpers.
  • Existing installations keep their customized $GF_HOME/config/policy.yaml.
    Explicitly merge the five new starter host-run deny rules
    (block-host-run-devcontainer-file, block-host-run-mise-local,
    block-host-run-mise-dot-local, block-host-run-mise-config,
    block-host-run-mise-config-plain) and update block-workspace-dotfiles
    (/workspace/**/.codex/**) and block-workspace-claude-settings
    (/workspace/**/.claude/**) for codex-agent and any named --agent
    principals. See the
    starter policy walkthrough
    and host setup and existing policies.
  • Keep extra raw mounts free of hard-linked files and separate from workspace
    storage (including storage mounted beneath the workspace); the executor now
    refuses such mounts before launch.

New since alpha.2

  • Mediated workspace hardening. Cycle-bearing directory symlinks (such as
    self -> . or multi-link cycles) are refused on traversal (ELOOP), symlink
    caching is disabled, and non-cyclic symlink alias expansion is bounded
    (1,024 names) and fails closed. Relative symlink targets containing ..
    after a normal component are refused on creation and move. New entries, links
    and rename destinations are enforced across every visible bind alias of the
    parent directory. Symlink scans prune excluded non-storage mounts (such as
    /proc) so an excluded sibling mount does not block ordinary workspace
    storage.
  • Executor raw-mount admission and runtime snapshotting. Codex, Claude Code
    and Python launchers copy only the required executables into a private
    per-session runtime_bin directory (checked on the opened descriptor, fresh
    single-link inodes) instead of mounting the host binary directory; snapshots
    are removed on stop, and stale snapshots from killed launchers are swept on
    the next Codex or Claude Code launch once no container of that session
    remains. Executor.start validates additional raw mounts before starting
    the workspace view or any container, refusing mounts with hard-linked
    regular files (up to 1,024 inspected entries) or direct/nested
    /proc/self/mountinfo bind aliases of workspace storage (including storage
    mounted beneath the workspace).
  • Session cleanup reliability. Cleanup runs each teardown step
    independently, keeps failed owner-session revocations retryable, awaits
    broker shutdown, confirms container exit before removing the workspace view,
    and reports every failure.
  • Starter-policy coverage. Added deny rules for .devcontainer.json,
    mise.local.toml, .mise.local.toml, .mise/** and mise/**, and
    broadened .codex/** and .claude/** blocks to match nested directories.
  • Ledger durability error handling. The Go spending ledger propagates
    directory-sync, short-write and completion-witness unlink errors and disables
    handles after failure, backed by deterministic fault-injection and
    reopening tests.

Everything in alpha.2 is still included.

Verification

This release runs all three hosted CI jobs (verify, escape-suite,
quickstart) visible on the repository's Actions page:

  • Full Go format check, go mod verify, go vet, unit tests and race tests
    (including deterministic Go ledger write, sync, close and rename failure and
    reopening tests), fail-closed verification, API gateway end-to-end, headless
    CLI/owner-approval/Python-client checks, and the isolated reproducibility
    build gate.
  • 141 Python unit tests covering executor isolation, raw-mount admission,
    executable snapshotting, session cleanup, workspace configuration, agent
    identity and red-team helpers.
  • 5 real Docker bind-mount admission checks
    (deployments/local/test_mount_alias_binds.py --docker).
  • 32 filesystem tests in internal/workspacefs under GUARDFIL_FUSE_TEST=1
    (including 9 security regression tests for symlink cycles, semantic ..
    targets, bind-alias destinations and local-only privacy propagation), plus the
    root-only nested storage and bind-mount test
    (TestMountedStorageMountsAndBindAliases) under GUARDFIL_MOUNT_TEST=1 on
    CI.
  • 27 executor escape cases, 11 headless Python-runtime checks in the real
    executor, scripted Codex and Claude Code red-team and command-rule suites,
    and the clean-runner README quickstart check.

These checks use scripted provider stand-ins or mocks on Ubuntu 24.04 CI
runners. They are bounded evidence, not a new live-model run or a complete
security audit; the last live-model runs predate the alpha releases, and no
paid provider calls were needed ($0 spend).

Known limits

  • Local, single-user deployment. The quickstart UI uses loopback HTTP.
    Remote hosting and SSO are outside this alpha's scope.
  • Host setup. user_allow_other is a host-wide FUSE option that needs an
    administrator. Only Linux is supported.
  • Commands. An allowed program can still run its own code. Command rules
    match what GuardFil can resolve from the command line.
  • Model provider. Data the agent may read can be sent to the model
    provider unless its path is local-only. Local-only access stops cloud turns;
    it does not switch to a local model or recall data already sent. Directory
    listings and lookups count as access.
  • Filesystem and raw mounts. Escaping links, cycle-bearing directory
    symlinks, relative link targets with .. after a normal component, device
    nodes, kernel API mounts, other FUSE sources, extended attributes and shared
    mmap are refused or unsupported. Alias expansion and raw-mount hard-link
    inspection are bounded at 1,024 entries; shared storage not visible in
    /proc/self/mountinfo (such as an overlay lower directory or the same
    network export mounted twice) is not detected. Mount topology must stay
    stable during a run, and large-workspace performance has not been
    characterized. See
    filesystem alias limits.
  • Host-run rules and policy migration. The starter policy's host-run blocks
    do not cover build files you run yourself (Makefile, package.json
    scripts, .npmrc), arbitrary .code-workspace filenames or every
    application-specific config name. Existing installations must merge new
    starter rules explicitly.
  • Result filtering. Native shell and file-tool results cannot be filtered.
    Response-content rules on those calls fail with TRANSFORM_UNAVAILABLE;
    scope them to MCP, the gateway or the Python guard client.
  • Website scope. Rules cover supported HTTPS URLs at the gateway and the
    initial managed WebFetch URL. Redirects, URL-shaped MCP arguments and
    allowed shell commands are not covered.
  • Accounting. Ambiguous billing retains the reservation and halts spend.
    Deterministic Go-ledger write/sync/close/rename failure and reopening tests
    pass, but real power-loss and storage-hardware durability are untested.
  • Audit coverage. Subsequent bounded AI reviews covered the executor,
    host-file policy, mediated filesystem and runtime mounts, with fixes applied
    within the limits above. A follow-up independent re-review was not completed
    across the final diff, and no comprehensive or third-party security audit has
    been performed. Use disposable, non-sensitive workspaces for evaluation.
    Claude Code refused the model-driven adversarial prompt; its adversarial
    coverage is scripted.

Report vulnerabilities privately; see SECURITY.md.

GuardFil v0.1.0-alpha.2

Pre-release

Choose a tag to compare

@reviaro reviaro released this 11 Nov 19:12

Second alpha release · 2026-11-11 · GNU AGPL v3

GuardFil runs supported AI coding agents in a constrained executor and applies
owner policy to their shell, file and tool requests. This release puts the
agent's workspace behind a policy-controlled filesystem, so file rules now
apply to everything the agent runs, not only to its file tools. It is for a
single user on a Linux machine with Docker. It is a source release: the
quickstart builds the local container image; no prebuilt binaries or registry
images are attached.

Install

You need Linux (kernel 5.6+) with FUSE 3, Docker with Compose, Python 3.11+,
and the native agent you want to run installed on the host. CI tested Codex
0.166.0 and Claude Code 2.1.318. Other versions are not covered by this
release's native-agent evidence.

New in this release: an administrator must enable FUSE's user_allow_other
option once, so Docker can mount the workspace view.

echo user_allow_other | sudo tee -a /etc/fuse.conf
git clone --branch v0.1.0-alpha.2 --single-branch https://github.com/reviaro/GuardFil.git
cd GuardFil
deployments/local/guardfil-local.sh check
deployments/local/guardfil-local.sh init --ui active

Continue with the README quickstart
to add a host-only provider key, start GuardFil and run an agent. Provider
requests cost money and are subject to the spending ledger; each provider
starts with its own $2.00 ceiling.

Upgrading from alpha.1

  • Run guardfil-local.sh up to rebuild and extract the new
    guardfil-workspace helper.
  • Existing policies need an explicit filesystem.read grant for
    /workspace/**; allowing a read tool no longer grants file access by
    itself. New installations get it from the starter policy. See
    host setup and existing policies.

New since alpha.1

  • Mediated workspace. Reads and writes go through a FUSE filesystem that
    asks policy, including IO from shell commands and from Python code that
    skips the client. File rules apply to resolved objects: hard links and
    links inside the workspace are checked, links leaving it are refused. If the
    view cannot be mounted the agent does not start.
  • Command rules. Shell rules can allow, block or ask for exact commands
    and prefixes, edited in the web UI. Shell syntax GuardFil cannot resolve is
    blocked when command rules apply.
  • Allow for session. File approval prompts can grant one exact path and
    operation for the rest of the session. Grants never override a block, are
    listed and revocable in the UI, and end with the session or a rule change.
  • Local-only files. Paths marked local-only may be used by the agent, but
    after it touches one, that session's cloud model requests, external tool
    calls and gateway calls stop, and what it writes must stay in local-only
    paths.
  • Linux compatibility. Concurrent sessions on the same or overlapping
    workspaces, ordinary nested storage mounts and bind aliases, files that stay
    open after deletion, and FIFOs and Unix sockets isolated to one view.
  • Setup check. guardfil-local.sh check verifies the host's FUSE setup;
    init and up warn early instead of failing at the first agent run.

Everything in alpha.1 is still included.

Verification

The application code is development commit b088e2e, which passed all three
hosted CI jobs. Development history from before the public repository is not
published. The public repository starts from a snapshot of this release with
internal development records removed and the developer and operator guides
rewritten; a new installation also starts with no prior provider spend.
On top of that code this release adds the setup check (launcher script and
one Python helper, with a unit test), documentation and a security policy.
The tagged commit's own CI run is on the repository's Actions page.

  • 155 browser and headless-restart checks; 32 headless service, CLI,
    Python-client and gateway checks.
  • 23 filesystem tests on real FUSE mounts, plus nested tmpfs and bind mounts
    on the CI runner.
  • 27 executor escape cases held; the Python runtime passed 11 checks in the
    real executor, including raw IO and shell aliases; the scripted Codex and
    Claude Code red-team suites and command-rule fixtures held.
  • Full Go tests, race tests and vet; 111 Python unit tests; clean-runner
    quickstart and reproducibility checks.

These checks use scripted provider stand-ins or mocks. They are bounded
evidence, not a new live-model run or a complete security audit; the last
live-model runs predate the alpha releases. The full Docker workspace flow has run on
CI runners (Ubuntu 24.04) and, after the release was tagged, on one
development host with the same OS and newer agents (Claude Code 2.1.322,
Codex 0.167.0); other distributions are untested. No paid
provider calls were needed.

Known limits

  • Local, single-user deployment. The quickstart UI uses loopback HTTP.
    Remote hosting and SSO are outside this alpha's scope.
  • Host setup. user_allow_other is a host-wide FUSE option that needs an
    administrator. Only Linux is supported.
  • Commands. An allowed program can still run its own code. Command rules
    match what GuardFil can resolve from the command line.
  • Model provider. Data the agent may read can be sent to the model
    provider unless its path is local-only. Local-only access stops cloud turns;
    it does not switch to a local model or recall data already sent. Directory
    listings and lookups count as access.
  • Filesystem. Links leaving the workspace, device nodes, kernel API
    mounts, other FUSE sources, extended attributes and shared mmap are not
    supported. Mount topology must stay stable during a run. Alias scans and
    large directory moves can be slow; no performance claim is made.
  • Result filtering. Native shell and file-tool results cannot be filtered.
    Response-content rules on those calls fail with TRANSFORM_UNAVAILABLE;
    scope them to MCP, the gateway or the Python guard client.
  • Website scope. Rules cover supported HTTPS URLs at the gateway and the
    initial managed WebFetch URL. Redirects, URL-shaped MCP arguments and
    allowed shell commands are not covered.
  • Accounting. Ambiguous billing retains the reservation and halts spend.
    Go-ledger write/fsync failure cases have not yet been tested.
  • Audit coverage. Confirmed findings are fixed, but two executor/host-file
    audit units remain unreviewed, and the new filesystem code has not had an
    independent audit. Claude Code refused the model-driven adversarial prompt;
    its adversarial coverage is scripted.

Report vulnerabilities privately; see
SECURITY.md.