Skip to content

Releases

rust/v0.17.0

Choose a tag to compare

@github-actions github-actions released this 05 Dec 08:30
CallPact 0.17.0

Release 0.16.0

Choose a tag to compare

@tercel tercel released this 27 Nov 06:53

Added

  • First-class Antigravity host integration across apexe hook antigravity,
    apexe agent antigravity, apexe sh --check, apexe setup and
    apexe env --disable.
    • apexe hook antigravity (including --persistent) translates
      Antigravity's camelCase PreToolUse events for run_command: simple
      external commands are rewritten to apexe sh -c via
      overwrite.CommandLine with decision: "allow", builtins/pipelines/
      compound/already-routed commands exit 0 with empty stdout to pass
      through, and a missing shim manifest fails closed with decision: "deny".
    • apexe agent antigravity --write atomically merges and repairs the
      apexe hook in .agents/hooks.json (project scope) or
      ~/.gemini/config/hooks.json (--scope user), re-enabling a disabled
      apexe hook while preserving unrelated named hooks.
    • apexe agent antigravity --mcp-only [--write --scope user] prints or
      merges mcpServers.apexe into ~/.gemini/config/mcp_config.json.
    • apexe setup and apexe agent --check antigravity detect Antigravity via
      agy/antigravity on PATH or ~/.gemini/antigravity* (covering
      Antigravity Desktop and IDE installations without a CLI binary on PATH).
    • scripts/install_agent_skill.py supports --agent antigravity
      (.agents/skills/apexe in project scope, ~/.gemini/config/skills/apexe
      in user scope).
    • Verified end to end on Antigravity Desktop (macOS arm64): run_command
      rewrote ls, hit ~/.apexe/bin/ls and recorded ACL + execution entries
      in ~/.apexe/audit.jsonl; compound and already-routed commands passed
      through unchanged; a missing shim manifest blocked execution with the
      hook's remedy message.

Changed

  • Reorganized README.md with a table of contents, an Integrations section,
    and clearer capability, coverage-limit, env, OpenAPI and exec guidance.

Fixed

  • scripts/install.sh now rebinds the terminal on the apexe setup handoff
    rather than the outer shell so piped curl | sh installs do not stall
    reading the script from the TTY.

Release 0.15.2

Choose a tag to compare

@tercel tercel released this 20 Nov 11:51

Changed

  • Raise the Rust SDK minimums to apcore-toolkit 0.15.0, apcore-cli
    0.14.1 and apcore-mcp 0.23.4. The lockfile now shares one apcore
    0.33.0 across the SDKs.

Fixed

  • OpenAPI imports for MCP and A2A now resolve inherited parameters and
    same-document references. An operation can override its Path Item
    parameters. Fields that were previously omitted can now appear in the
    tool schema, including required fields that callers must supply.
  • Validate the selected OpenAPI operations before proxy registration.
    Startup errors identify operations with ambiguous inputs or encodings the
    proxy cannot forward. Excluded operations do not block startup.
  • Embedded native commands use the selected ACL. Child approval can prompt
    even when the parent needs no approval. Delegation grants are scoped to the
    spawned command and cleaned up on timeout.
  • Native resolution checks the complete candidate set when leading options
    make routing ambiguous. A denied child route does not fall back to the root
    command. Dry-run reports failed path checks and shows the sandbox argv used
    at execution.
  • Host configuration edits preserve existing MCP entries, refuse invalid or
    conflicting settings before publication, and report completed edits when a
    later file write fails.

Compatibility

  • A2A startup warns about incomplete 1.0 interoperability. The authenticated
    legacy message/send flow remains available.

Release 0.15.1

Choose a tag to compare

@tercel tercel released this 19 Nov 09:59

Changed

  • Refresh Cargo.lock (tokio 1.54.1, openssl 0.10.82,
    rustls-webpki 0.103.17, mio 1.2.5, and other patch updates). No crate API
    changes.
  • Allow APCore 0.33 and APCore CLI 0.14 in the dependency manifest alongside
    the currently locked versions.

Compatibility

  • Verified with local builds of APCore 0.33.0, APCore CLI 0.14.0, Toolkit
    0.14.2, MCP 0.23.4, and A2A 0.8.5. Refresh the registry lockfile after these
    SDK versions are published before producing a release with them.

rust/v0.15.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 11:07
apexe 0.15.0

Release 0.14.1

Choose a tag to compare

@tercel tercel released this 15 Nov 08:05

Fixed

  • apexe list --verbose | head no longer panics with failed printing to stdout: Broken pipe. Rust ignores SIGPIPE, so a reader that closed early
    turned the next stdout write into EPIPE, which println! panics on. The
    CLI now restores the default SIGPIPE disposition at startup, so a pipeline
    terminates quietly like any other Unix filter. The behavior is covered by a
    regression test that closes the reader before a large list --verbose
    output completes.

rust/v0.14.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 06:05
Release version 0.14.0

Release 0.13.0

Choose a tag to compare

@tercel tercel released this 14 Nov 12:47

Fixed

  • A flag list dropped for naming an undeclared property is now recorded on the
    module (metadata["x-apexe-overlay-undeclared"]), not only logged. Dropping is
    still the right call — a trigger that can never fire would check a writing call
    at read strength — but the drop is a claim that did not take effect, and a log
    line nobody reads is indistinguishable from silence. apexe list --format json
    now shows it, and one helper computes it for both the drop and the record so the
    two cannot disagree.
  • scan --write-acl refreshes the readonly allow rule again. The compatibility
    path was wired to acl sync's deny-only floor, so a scan that made a module
    readonly — which is what a corpus update does when a command stops being
    destructive — left it matching no rule at all: it fell to
    default_effect: deny and the upgrade looked like it changed nothing. Applying
    a scan is the explicit write and merges the full default; acl sync stays
    deny-only.
  • A refusal for a path that contains a protected location no longer reports the
    protected path as the protector. rm -r /tmp where ~/.aws lives under /tmp
    said "'/tmp' … which is protected by '/tmp/h/.aws'" — the relation runs the
    other way, and the sentence now says "which contains the protected location",
    so an operator is not sent to change the wrong entry.
  • exec --dry-run's path_guard summary uses the same access mode as the call
    it describes. It derived the mode from annotations.readonly alone, so a call
    whose argv check refused a path still reported allowed: true beside it — a
    summary disagreeing with the verdict it summarises.
  • A readonly module that declares x-apexe-writes-with is now checked at the
    strength its arguments call for. access_mode consulted readonly first and
    returned before reading the list, which made the list unreachable for exactly
    the tools it exists for: a readonly find given -delete was still checked
    at read strength, so a protected path stayed writable through it. Found by
    driving the real binary rather than by the unit tests, which had encoded the
    wrong order as an expectation.
  • The shipped config.yaml template now means exactly what the compiled
    defaults mean. It disagreed in three lists — readonly was missing nine words
    the baseline has (find, ps, whoami, …), requires_approval omitted
    --recursive, and runs_other_commands omitted su and find — so running
    apexe config init silently changed decisions relative to having no file at
    all. A test now compares the template against AnnotationDefaults::default(),
    which is how the divergence was found and what keeps it from coming back.
  • schema_version and defaults_revision are real config fields. They were in
    the shipped template while nothing read them, because ApexeConfig tolerates
    unknown keys: a file stating its schema version was stating something the
    binary never checked.

Documentation

  • docs/sandbox.md and docs/sandbox-testing.md add the specification for
    delegating confinement to an existing backend (systemd-run, bwrap, a
    container runtime) instead of implementing one. No behaviour changes: no
    backend is implemented.
    The contract answers two questions an operator asks
    first — what can the backend actually express (capabilities, including
    deny_within_grant), and what happened on this call (sandbox_backend,
    sandbox_enforcement, sandbox_outcome, sandbox_policy_digest in
    audit.jsonl) — plus the selection rule (opt-in per module id, never a blanket
    wrapper) and the measured reason macOS is advisory: on macOS 26.3 (arm64)
    sandbox-exec accepted a profile denying writes beneath a directory and did
    not block the write, with the commands and output recorded in the document so
    the finding can be re-run rather than believed.

Changed

  • apexe policy is now apexe paths, matching the paths: section it reports
    on. policy was the wrong word for it: the ACL is policy too, and the command
    only ever described locations. No alias is kept — the command is rarely used
    and an alias that reads policy while printing paths vocabulary would
    preserve the confusion it was renamed to remove.

Added

  • list --diagnostics names the granted modules that are not readonly, because
    their path checks cover only the arguments a call declares. A command that
    computes its own paths — an interpreter, a script, a pipeline — is outside that
    check: denying rm while granting python3 constrains which tool is spelled,
    not what can be done, and nothing said so. The list is deliberately labelled as
    every granted non-readonly module rather than a verdict on each, because apexe
    cannot tell which ones compute paths internally; a precise classification needs
    a corpus annotation.

Added

  • acl sync reports readonly modules that match no allow rule. A corpus update
    that turns destructive into readonly removes the module from the deny rule
    and, because sync never generates an allow, leaves it matching nothing — it
    falls to default_effect: deny and the upgrade looks like it did nothing. In
    the strict profile that was the whole effect of the change. Sync now names the
    modules and the command that rebuilds the allow rule; it does not grant them,
    because an allow the operator did not review is the thing this separation
    exists to prevent.

Added

  • An overlay can scope approval and write behaviour to flags instead of the
    whole module. AnnotationOverrides gains approval_flags (properties whose
    presence puts the call to a human) and writes_with (properties whose presence
    means the call may write), both written into annotations.extra where the
    approval gate and the path guard already read them. writes_with defaults to
    the approval list, because the two answer one question — which arguments are
    the dangerous ones — and a second hand-maintained list is a second thing to
    drift.

    This is what makes a tool like find expressible at all: it reads the
    filesystem unless -delete/-exec is given, so a blanket requires_approval
    makes it unusable and no marking leaves arbitrary programs ungated.

    A flag list naming a property the module does not declare is dropped, with an
    error that names the unknown property and the real ones. Applying it would be
    worse than dropping it: a trigger that can never fire checks a writing call at
    read strength, while dropping leaves the module at write strength — the same
    conservative state as a module with no lists.

    AnnotationOverrides also refuses unknown keys now. Before this, an author who
    misspelled one was silently ignored — an overlay that loads and does nothing is
    indistinguishable from one that works, which is the failure mode this project
    keeps having to fix.

  • x-apexe-writes-with narrows the path guard's access mode per call: when
    none of the named properties is set, a non-readonly module's path arguments
    are checked at read strength. Module-level annotation was the wrong
    granularity for tools that only write when asked — find -delete exists, so
    every read-only find was checked as a writer. The key can only narrow, never
    widen: a module that can write without the named properties must not carry it,
    and sed is the standing example (sed -n 'w /etc/x' file writes with no flag
    at all). Absent the key, nothing changes.

  • config.yaml gains an annotations: section: the lists that label a command
    when nothing has reviewed it are now the operator's. A configured list
    replaces the compiled default rather than adding to it, because a machine
    that removes rm from destructive expects rm to stop being labelled — an
    additive merge would silently ignore that. Root executables and subcommand
    words stay separate: merging them marked /usr/bin/sync as network-reaching,
    a regression the existing test for it caught.

  • config.yaml gains a paths: section that states the path policy in the
    vocabulary the idea came from: read_only (systemd ReadOnlyPaths=),
    read_write (ReadWritePaths=), no_access (InaccessiblePaths=) and
    write_only (AppArmor's w right). The four names are the four subsets of
    {read, write}, so there is no fifth state to explain and no allow/deny pair to
    misread — the deepest matching entry decides, and a path may appear in only one
    list. An absent section leaves the compiled-in baseline in force; an empty one
    is a policy that protects nothing, which is why the distinction is kept.

  • apexe config init writes the commented template from
    docs/config.example.yaml instead of a bare serde_yaml dump of the defaults.
    The template describes only what this release enforces.
    The file an operator receives and the file the manual points at are now the
    same text, and a build-time include_str! fails if one moves without the
    other.

  • The manual's "coverage and policy are two gates" model is now three: coverage
    (bindings), permission (acl.yaml) and access (paths:), with the command
    that inspects each and the migration table from the old path keys.

  • apexe list --path-census reports the three states a command on this machine
    can be in: granted (bound and allowed for --caller), denied (bound and
    refused by the policy), and unscanned (on PATH with no binding at all —
    the only one apexe scan <tool> fixes). It reads directory entries and the
    policy and never scans or executes anything, so "this command does not work
    here" becomes a one-line diagnosis instead of a refusal met one call at a
    time. On this machine it reports 2017 executables, 27 bound, 1990 unscanned.

  • apexe acl init / apexe acl sync / apexe acl explain split policy
    authorship out of scan. init writes a starter policy once and refuses to
    overwrite one, sync refreshes only the destructive and open-world den...

Read more

rust/v0.12.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 09:47
Release version 0.12.0

Release 0.11.0

Choose a tag to compare

@tercel tercel released this 12 Nov 09:22

Added

  • apexe env --enable --also <NAMES> / --exclude <NAMES> name individual shim
    commands and outrank the scanned policy in the direction they state, so an
    interpreter can be governed without --scanned all:
    --scanned readonly --also node,python3. The names persist in the manifest,
    because the activation script's env --reload runs in every new terminal and
    would otherwise drop the route again.
  • apexe env --check now reports [WARN] INHERIT <command> when a shimmed
    command installs only part of its bindings, with the installed and available
    route counts. A shim refuses every route it was not given, and an application
    started from an activated shell inherits that shim PATH: an editor opened
    with code . probes git --version and git rev-parse, is refused both
    times, and reports "no repository" instead of the refusal. The warning names
    the commands where that can happen and carries the remedies — relaunch from a
    deactivated shell, start the app through LaunchServices (open -a), or
    apexe env --reload --exclude <command>. The behavior is unchanged: no
    refusal is relaxed and nothing falls back to an ungoverned binary.
  • x-apexe-opaque-after lets an overlay declare where a tool stops interpreting
    its own argv: everything from that token onwards is forwarded verbatim. An
    interpreter's grammar is interpreter <script> <argv for the script>, so
    validating the tail against the interpreter refuses node tsc.js --noEmit.
    It sits on the last, variadic operand for that form, and on a flag for the
    ones whose tail starts at a flag's value: python3 -m <module> <args> and
    python3 -c <code> <argv>, which the operand form cannot express. Execution,
    the ACL and the audit are unchanged; the tail still lands in the declared
    operand, so a path-typed operand puts those tokens to the path guard.
  • x-apexe-digit-value lets an overlay declare that a bare -<digits> token is
    one flag's value, so head -20 and tail -20 execute under a reviewed
    grammar instead of being refused as a -2/-0 bundle (issue #46). At most
    one property per command may carry it; a second declaration is rejected as
    ambiguous. Only a probe can establish the spelling — usage: head [-n lines | -c bytes] does not mention -20 — so a corpus overlay declaring it must
    record the probe in provenance. apexe ships the support first: an overlay
    using the keyword against an older apexe fails to load, because
    OverlayFlag denies unknown fields.

Changed

  • apexe-deactivate.sh removes only the shim directory from PATH. It used to
    restore the environment saved at the first activation, and on macOS that
    snapshot is taken in .zprofile — before .zshrc adds pyenv, pnpm and similar
    directories. Leaving the governed shell therefore dropped every later entry:
    apdev (a pyenv shim), python3 and anything else installed after activation
    resolved differently or disappeared. Activation still records the snapshot so
    APEXE_SHIM_DIR and whether PATH was unset can be restored, but entries
    added while the shell is governed now survive deactivation.
    scripts/deactivate.sh follows the same rule in its after-disable fallback.
  • A scan now reports the overlays that matched but did not decide it. Selection
    keeps the single strongest match, so a local overlay that matches less
    strongly than the corpus file it means to amend is silently ignored, and one
    that matches equally replaces it wholesale — dropping every flag and operand
    it does not restate. An annotations-only rm@bsd did exactly that and took
    the path-typed operand with it, so rm /etc/hosts reached the binary. Both
    cases are now a scan warning naming the two files, and the second one counts
    what was dropped.
  • deactivate leaves the governed shell instead of uninstalling apexe. The
    installed deactivate / apexe-deactivate.sh and scripts/deactivate.sh
    used to run apexe env --disable, so sourcing a per-shell helper removed
    every shim, the apexe-sh entry point and the managed startup blocks for the
    whole machine — and a host configured to use the entry point loses its own
    command execution with it. They now restore PATH and APEXE_SHIM_DIR for the
    current shell and touch nothing on disk, matching what deactivate means in a
    Python virtualenv. Uninstalling is apexe env --disable, which stays the one
    command that removes an installation and records a shim_disable audit event.
  • scripts/deactivate.sh no longer guesses which installation to remove. With
    neither _APEXE_ACTIVE_SHIM_DIR nor APEXE_SHIM_DIR set it used to run
    apexe env --disable against the default directory, so sourcing the helper
    from a shell whose HOME held an installation disabled that installation
    without being pointed at it — twice, because the second source fell through
    again. It is now a no-op that says so. The installed
    apexe-deactivate.sh is unaffected: it names its own directory.
  • A binding with no metadata.grammar stamp is no longer promoted to
    reviewed by the legacy tool-level shim_contract.authoritative (issue #47).
    It is reported as legacy: admitted like a scanned route, labelled in
    env --enable and env --check, and never granted reviewed trust it did not
    earn. Reviewed routes are unaffected.

Migration

  • An installation whose shims were only ever justified by that legacy flag now
    runs them as scanned routes: install with apexe env --reload --scanned readonly (or all), or rescan the tool (apexe scan <tool>, then
    apexe env --reload) to earn the stamp back.