Add recipe: signed, offline-verifiable receipts for tool calls#745
Open
tomjwxf wants to merge 2 commits into
Open
Add recipe: signed, offline-verifiable receipts for tool calls#745tomjwxf wants to merge 2 commits into
tomjwxf wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
third_party/ScopeBlind/recipe showing how to give a Claude tool-use loop a fail-closed policy gate and cryptographically signed, offline-verifiable receipts.What it demonstrates
Out of the box, an agent that calls tools leaves no audit trail a third party can independently verify. This recipe wraps each tool call in two steps inside a normal Anthropic SDK tool-use loop:
protect-mcp. The gate fails closed: on any policy error it denies rather than allows.@veritasacta/verify, no vendor in the loop.The notebook runs a real tool-use loop, shows Claude's safe call allowed and a dangerous one blocked, verifies the receipts offline, then tampers with a receipt to show verification fails.
Notes
third_party/ScopeBlind/with a README, matching the existing integration folders (Deepgram, ElevenLabs, etc.).ruff checkpasses under the repo config. Uses a current model (claude-sonnet-4-6). Requires Node.js 18+ andANTHROPIC_API_KEY.protect-mcpand@veritasacta/verifypackages used here (MIT and Apache-2.0). The receipt wire format is an IETF Internet-Draft, draft-farley-acta-signed-receipts.