Repository navigation
Releases
rust/v0.17.0
CallPact 0.17.0
Release 0.16.0
Added
- First-class Antigravity host integration across
apexe hook antigravity,
apexe agent antigravity,apexe sh --check,apexe setupand
apexe env --disable.apexe hook antigravity(including--persistent) translates
Antigravity's camelCasePreToolUseevents forrun_command: simple
external commands are rewritten toapexe sh -cvia
overwrite.CommandLinewithdecision: "allow", builtins/pipelines/
compound/already-routed commands exit0with empty stdout to pass
through, and a missing shim manifest fails closed withdecision: "deny".apexe agent antigravity --writeatomically merges and repairs the
apexehook in.agents/hooks.json(project scope) or
~/.gemini/config/hooks.json(--scope user), re-enabling a disabled
apexehook while preserving unrelated named hooks.apexe agent antigravity --mcp-only [--write --scope user]prints or
mergesmcpServers.apexeinto~/.gemini/config/mcp_config.json.apexe setupandapexe agent --check antigravitydetect Antigravity via
agy/antigravityonPATHor~/.gemini/antigravity*(covering
Antigravity Desktop and IDE installations without a CLI binary onPATH).scripts/install_agent_skill.pysupports--agent antigravity
(.agents/skills/apexein project scope,~/.gemini/config/skills/apexe
in user scope).- Verified end to end on Antigravity Desktop (macOS arm64):
run_command
rewrotels, hit~/.apexe/bin/lsand 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.mdwith a table of contents, an Integrations section,
and clearer capability, coverage-limit,env, OpenAPI andexecguidance.
Fixed
scripts/install.shnow rebinds the terminal on theapexe setuphandoff
rather than the outer shell so pipedcurl | shinstalls do not stall
reading the script from the TTY.
Release 0.15.2
Changed
- Raise the Rust SDK minimums to
apcore-toolkit0.15.0,apcore-cli
0.14.1 andapcore-mcp0.23.4. The lockfile now shares oneapcore
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
legacymessage/sendflow remains available.
Release 0.15.1
Changed
- Refresh
Cargo.lock(tokio1.54.1,openssl0.10.82,
rustls-webpki0.103.17,mio1.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
Release 0.14.1
Fixed
apexe list --verbose | headno longer panics withfailed printing to stdout: Broken pipe. Rust ignoresSIGPIPE, so a reader that closed early
turned the next stdout write intoEPIPE, whichprintln!panics on. The
CLI now restores the defaultSIGPIPEdisposition 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 largelist --verbose
output completes.
rust/v0.14.0
Release 0.13.0
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-aclrefreshes the readonly allow rule again. The compatibility
path was wired toacl 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: denyand the upgrade looked like it changed nothing. Applying
a scan is the explicit write and merges the full default;acl syncstays
deny-only.- A refusal for a path that contains a protected location no longer reports the
protected path as the protector.rm -r /tmpwhere~/.awslives 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'spath_guardsummary uses the same access mode as the call
it describes. It derived the mode fromannotations.readonlyalone, so a call
whoseargvcheck refused a path still reportedallowed: truebeside it — a
summary disagreeing with the verdict it summarises.- A
readonlymodule that declaresx-apexe-writes-withis now checked at the
strength its arguments call for.access_modeconsultedreadonlyfirst and
returned before reading the list, which made the list unreachable for exactly
the tools it exists for: areadonlyfindgiven-deletewas 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.yamltemplate now means exactly what the compiled
defaults mean. It disagreed in three lists —readonlywas missing nine words
the baseline has (find,ps,whoami, …),requires_approvalomitted
--recursive, andruns_other_commandsomittedsuandfind— so running
apexe config initsilently changed decisions relative to having no file at
all. A test now compares the template againstAnnotationDefaults::default(),
which is how the divergence was found and what keeps it from coming back. schema_versionanddefaults_revisionare real config fields. They were in
the shipped template while nothing read them, becauseApexeConfigtolerates
unknown keys: a file stating its schema version was stating something the
binary never checked.
Documentation
docs/sandbox.mdanddocs/sandbox-testing.mdadd 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_digestin
audit.jsonl) — plus the selection rule (opt-in per module id, never a blanket
wrapper) and the measured reason macOS isadvisory: on macOS 26.3 (arm64)
sandbox-execaccepted 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 policyis nowapexe paths, matching thepaths:section it reports
on.policywas 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 readspolicywhile printingpathsvocabulary would
preserve the confusion it was renamed to remove.
Added
list --diagnosticsnames the granted modules that are notreadonly, 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: denyingrmwhile grantingpython3constrains 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 syncreports readonly modules that match no allow rule. A corpus update
that turnsdestructiveintoreadonlyremoves the module from the deny rule
and, because sync never generates an allow, leaves it matching nothing — it
falls todefault_effect: denyand 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.AnnotationOverridesgainsapproval_flags(properties whose
presence puts the call to a human) andwrites_with(properties whose presence
means the call may write), both written intoannotations.extrawhere the
approval gate and the path guard already read them.writes_withdefaults 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
findexpressible at all: it reads the
filesystem unless-delete/-execis given, so a blanketrequires_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.AnnotationOverridesalso 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-withnarrows the path guard's access mode per call: when
none of the named properties is set, a non-readonlymodule's path arguments
are checked at read strength. Module-level annotation was the wrong
granularity for tools that only write when asked —find -deleteexists, so
every read-onlyfindwas checked as a writer. The key can only narrow, never
widen: a module that can write without the named properties must not carry it,
andsedis the standing example (sed -n 'w /etc/x' filewrites with no flag
at all). Absent the key, nothing changes. -
config.yamlgains anannotations: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 removesrmfromdestructiveexpectsrmto stop being labelled — an
additive merge would silently ignore that. Root executables and subcommand
words stay separate: merging them marked/usr/bin/syncas network-reaching,
a regression the existing test for it caught. -
config.yamlgains apaths:section that states the path policy in the
vocabulary the idea came from:read_only(systemdReadOnlyPaths=),
read_write(ReadWritePaths=),no_access(InaccessiblePaths=) and
write_only(AppArmor'swright). 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 initwrites the commented template from
docs/config.example.yamlinstead of a bareserde_yamldump 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-timeinclude_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-censusreports the three states a command on this machine
can be in:granted(bound and allowed for--caller),denied(bound and
refused by the policy), andunscanned(onPATHwith no binding at all —
the only oneapexe 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 explainsplit policy
authorship out ofscan.initwrites a starter policy once and refuses to
overwrite one,syncrefreshes only the destructive and open-world den...
rust/v0.12.0
Release 0.11.0
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'senv --reloadruns in every new terminal and
would otherwise drop the route again.apexe env --checknow 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 shimPATH: an editor opened
withcode .probesgit --versionandgit 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-afterlets an overlay declare where a tool stops interpreting
its own argv: everything from that token onwards is forwarded verbatim. An
interpreter's grammar isinterpreter <script> <argv for the script>, so
validating the tail against the interpreter refusesnode 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-valuelets an overlay declare that a bare-<digits>token is
one flag's value, sohead -20andtail -20execute under a reviewed
grammar instead of being refused as a-2/-0bundle (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 inprovenance. apexe ships the support first: an overlay
using the keyword against an older apexe fails to load, because
OverlayFlagdenies unknown fields.
Changed
apexe-deactivate.shremoves only the shim directory fromPATH. It used to
restore the environment saved at the first activation, and on macOS that
snapshot is taken in.zprofile— before.zshrcadds pyenv, pnpm and similar
directories. Leaving the governed shell therefore dropped every later entry:
apdev(a pyenv shim),python3and anything else installed after activation
resolved differently or disappeared. Activation still records the snapshot so
APEXE_SHIM_DIRand whetherPATHwas unset can be restored, but entries
added while the shell is governed now survive deactivation.
scripts/deactivate.shfollows 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. Anannotations-onlyrm@bsddid exactly that and took
the path-typed operand with it, sorm /etc/hostsreached the binary. Both
cases are now a scan warning naming the two files, and the second one counts
what was dropped. deactivateleaves the governed shell instead of uninstalling apexe. The
installeddeactivate/apexe-deactivate.shandscripts/deactivate.sh
used to runapexe env --disable, so sourcing a per-shell helper removed
every shim, theapexe-shentry 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 andAPEXE_SHIM_DIRfor the
current shell and touch nothing on disk, matching whatdeactivatemeans in a
Python virtualenv. Uninstalling isapexe env --disable, which stays the one
command that removes an installation and records ashim_disableaudit event.scripts/deactivate.shno longer guesses which installation to remove. With
neither_APEXE_ACTIVE_SHIM_DIRnorAPEXE_SHIM_DIRset it used to run
apexe env --disableagainst 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.shis unaffected: it names its own directory.- A binding with no
metadata.grammarstamp is no longer promoted to
reviewedby the legacy tool-levelshim_contract.authoritative(issue #47).
It is reported aslegacy: admitted like a scanned route, labelled in
env --enableandenv --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 withapexe env --reload --scanned readonly(orall), or rescan the tool (apexe scan <tool>, then
apexe env --reload) to earn the stamp back.