Repository navigation
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.