Skip to content

v0.2.9

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 02:20
· 2 commits to main since this release

What your agent reads can't decide what it does. cleimesh guard closes a gap a reader found: a tainted session could write a Makefile and then run make.

curl -fsSL https://github.com/cleitonaugusto/cleimesh/releases/latest/download/install.sh | sh
cleimesh guard install

Fixed

  • A tainted session may edit code or run it, not both. Before, once a coding agent had read outside content, it could still write any file in the project and still run make, cargo test, npm run or pytest from the allowed list. An injected issue could ask for a build target that sends .env out, then for the build, and each step passed on its own. Now, once a tainted session has written a file, list entries that run project code (builds, tests, make, and any you added) are refused until a person clears the session. git diff, git status, git add and the readers still run; a person commits after review. cleimesh guard status shows which sessions wrote since they were tainted. Thanks to reidmarlow on dev.to.
  • git flags that escape the list are refused once tainted: --output (writes a file anywhere), --ext-diff, --no-index (reads outside the repository), --exec-path.
  • More ways around the list, found reviewing the guard against itself, closed:
    • flag values are checked as paths: grep --file=~/.ssh/id_rsa, less --log-file=~/.bashrc;
    • symlinks are followed: a link in a cloned repository to ~/.ssh/id_rsa can't be read, and one to ~/.bashrc can't be written;
    • unquoted globs are refused: cat .e* is .env once the shell expands it;
    • a recursive search (grep -r, rg, the Grep tool) is refused over a directory with a secret under it;
    • a listed command given a file outside the project is refused: make -f /tmp/x.mk, cargo test --manifest-path ...;
    • after a write, git commit (hooks can live in the project through core.hooksPath) and cargo fmt (a project's .cargo/config.toml can alias it) are refused too.

New

  • A receipt names the rule that allowed a call. An allowed guard decision carries rule ("allowed when tainted: cargo test", "reader inside the project: cat"), so a surprising pass can be inspected like a refusal. A refusal after a write names that write's receipt (authority.edited_by).
  • Withholding a changed tool is a receipt. When a wrapped MCP server lists a tool whose definition no longer matches the one pinned at mcp add, the tool is not offered and a signed cleimesh.tool_withheld receipt records the approved and the current definition digests. It used to be only a line on stderr. audit view and the OCSF export show it as blocked.
  • draft-sahu -01 conformance. The receipt verifier checks step_id repetition, the signed seq profile and the draft's head assertion, and agrees with all 18 vectors of the external suite (governex/agent-action-receipts-vectors): 16 log, 2 head. CleiMesh verifies seq and the head assertion but does not emit them yet.
  • Guard: Codex sessions, and AgentHook PreToolUse events answered on stdout.

Dependencies

  • curve25519-dalek 5.1.0 (RUSTSEC-2026-0620, AVX-512 backend). The 4.1.3 copy under ed25519-dalek selects that backend only on nightly; releases are built on stable.

Verify a download

Each binary has a .sha256 and signed build provenance:

gh attestation verify cleimesh-x86_64-unknown-linux-musl --repo cleitonaugusto/cleimesh