Repository navigation
Releases
Releases · Mattbusel/treeproof
treeproof v0.1.3
Positioning only; no behaviour change. The README now opens with the problem (an agent's "tests pass" is a claim, not a check) and a comparison with trusting the transcript, a stop hook that re-runs the whole suite, and CI after the push. New crates.io description and keywords. Install pins and the plugin, npm and Action versions move to 0.1.3.
treeproof v0.1.2
Fixes from the buildwithclaude plugin directory review. Upgrade the binary and the plugin together.
- MCP
receipt_runis no longer a general command runner. MCP tools run outside the host's Bash permissions, deny rules and sandbox, soreceipt_runnow runs only a command that matches the[gate] commandscommitted atHEAD, or, when none are committed, a recognised test runner with standard arguments (cargo test,cargo nextest run,pytest,python -m pytest,go test ./...,npm/pnpm/yarn/bun test,jest,vitest run,npx jest/npx vitest run, with a short list of flags each). Anything else is refused with an error that says why and what is allowed. Commands are split on whitespace and run without a shell; quotes and shell syntax are refused. The same check applies to MCPreceipt_verifyre-runs. - The MCP server no longer tells the client to run tests through
receipt_runinstead of directly. Its instructions now point atreceipt_querybefore claiming work is done and sayreceipt_runis not a general shell. The skill tells the agent to usetreeproof run -- <cmd>through its normal Bash tool, where the host's permissions apply. - Re-runs never trust keys from the checkout.
treeproof verify --rerun,treeproof otel --rerunand MCPreceipt_verifywithrerunignore.treeproof/trusted_keys/in the working copy, the same rule as the local gate, so a cloned repository cannot sign its own receipt and have its command executed. Trusted for re-runs: this machine's key,TREEPROOF_TRUSTED_KEYS,--key, and--keys-ref <rev>(what the GitHub Action uses). Newkeys::rerun_trusted_keys. - OTLP export from the hooks is opt-in. The generic
OTEL_EXPORTER_OTLP_ENDPOINT/OTEL_EXPORTER_OTLP_LOGS_ENDPOINTno longer turn on theStophook's export by themselves; they count only withTREEPROOF_OTEL=1.TREEPROOF_OTLP_ENDPOINTstill turns it on, andTREEPROOF_OTEL=0still turns everything off.treeproof otel, run by hand, still reads the generic variables. Newotlp::endpoint_from_env_withandotlp::generic_otel_opted_in. - Pinned binary. The plugin's
SessionStarthook warns when thetreeproofonPATHis a different version from the plugin. Install docs usecargo install treeproof --version 0.1.2 --lockedand show how to check release archives againstSHA256SUMS. - Docs: the gate is on in every git repository once the plugin is enabled, and how to turn it off (
[gate] mode = "off",TREEPROOF_GATE=off, or disabling the plugin); what the OTLP events contain and when they are sent;plugin/README.md; MCP, threat model and configuration docs describe the above.
treeproof v0.1.1
Security fixes for the gate, from an independent review of 0.1.0. Upgrade if you rely on the gate or the Action.
- Observed receipts no longer open the gate by default (
[gate] accept_observednow defaults tofalse). An agent could print a fake runner summary through the host's Bash tool and have it recorded as a pass. Observed recording also only reads a plain runner invocation now (cargo test,pytest,npm test, ... with nothing chained, piped, redirected or substituted). - The gate no longer reads its policy from the working copy. Hooks use the
treeproof.tomlcommitted atHEADwhen the session started;treeproof gate,status,exportand MCPreceipt_queryuse the one committed atHEAD(--policy-refto choose). ThePreToolUsehook refuses agent edits totreeproof.toml.run.allow_unrecognizedis read from the committed policy, and the gate refuses unrecognised-output passes unless that policy allows them. - A passing subset no longer satisfies the gate. Runs that select part of the suite (cargo "filtered out", pytest
-k/-m/node ids/single files/"deselected",go test -run, jest/vitest-tand file filters, nextest filters) need[gate] allow_subset = trueor an exact pinned command. A run that records failing tests blocks the gate for that tree until the same command passes again. A failing run withdraws any cached pass for the same run key. treeproof verifyand the GitHub Action apply a policy and stop trusting keys from the change itself. Newverifyoptions--keys-ref <rev>,--no-repo-keys,--policy-ref <rev>and--no-policy;--tree currentapplies the policy atHEADby default. The Action reads trusted keys andtreeproof.tomlfrom the pull request's base commit (newtrust-refinput).- Session baseline without
SessionStart. The firstPreToolUse/PostToolUseof a session records the baseline tree and policy snapshot; ifStopcomes first, the baseline is where the branch left its upstream (HEADwhen there is none). Committing changes no longer slips past a session that had noSessionStart. - Nested repositories. Receipts record the working-tree digest of each initialised submodule or embedded repository (SPEC 3.5, 4.1), the run key includes them, and the gate compares them, so edits inside a submodule invalidate a receipt.
- Environment values in receipts are keyed. Allowlisted variables are recorded as HMAC-SHA256 under a per-machine secret (
env.saltin the store) instead of a plain SHA-256, so a committed receipt does not allow offline guessing. Run keys change, so the first run after upgrading is a cache miss. - Receipts with more than one subject are rejected, as SPEC section 2 requires.
- The local gate trusts only this machine's key and
TREEPROOF_TRUSTED_KEYS, not keys in the working copy's.treeproof/trusted_keys/. - Library:
treeproof::Context(store directory and key file) withrun::run_in,run::record_observed_inandgate::evaluate_in, so callers no longer needstd::env::set_var;RunOptions::new/shell_lineandwith_*builders;TestResultandRunStatusenums withRunOutcome::test_result(),run_status()andpassed();gate::policy_rejection;Config::load_committedandload_at_rev;keys::trusted_keys_at_rev;git::nested_trees. Existing signatures are unchanged.GateConfiggains theallow_subsetfield. - The Action's installer falls back to
cargo installwhen the release has no binary for the runner (v0.1.0 has no Intel macOS archive). - Docs: threat model, configuration, SPEC (2, 2.1, 3.2, 3.4, 3.5, 4.1, 5, 7) and Action docs describe the above.
treeproof v0.1.0
First release.
treeproof run: runs a test command, parses cargo test, cargo nextest, pytest (including xdist), jest, vitest and go test output, and signs an in-toto Statement v1 with the test-result v0.1 predicate in a DSSE envelope (Ed25519). The subject is the git tree id of the working tree including uncommitted and untracked files.- Strict results: 0 tests, everything filtered out,
--collect-onlyand similar, unrecognised output, or a non-zero exit is FAILED. - Cross-worktree store under the user cache directory: passing runs are cached by tree, argv, toolchain versions, lockfiles and allowlisted environment; identical concurrent runs execute once; failures are never cached.
treeproof verify(signature, schema,--tree current,--rerun),status,gate,export,tree,key.- Claude Code plugin: Stop and TaskCompleted gate, PostToolUse recording of the agent's own test runs, FileGuard stale-edit check, guard against agents calling the hooks or touching the key.
- Codex hooks (
treeproof hooks-config codex). - MCP server with
receipt_run,receipt_query,receipt_verify. - GitHub Action
Mattbusel/treeproof/verify: re-runs the committed receipt's command on the checked-out tree and fails on mismatch. - OpenTelemetry
gen_ai.evaluation.resultevents (verification.exit_code,verification.fs_diff,verification.test_rerun) over OTLP/HTTP JSON. SPEC.mdreceipt specification; CI checks receipts with securesystemslib and the in-toto-attestation validators, and OTLP events with a real OpenTelemetry Collector.
macOS Intel (x86_64-apple-darwin) binaries are not attached yet: GitHub had no macOS runner capacity for that build. Use cargo install treeproof on Intel Macs.