Repository navigation
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.
Python tools using their own x402 client currently have no bundled pre-sign wash hook. Add
clawrouter_hermes.twzrd.create_before_sign_hook()and register the accompanyingtwzrd-before-signskill through the existing plugin context. Installing the skill alone does not intercept payments: the tool must register the callback on its actual async x402 client.The optional
[twzrd]extra supports Python 3.11+ without changing base plugin dependencies or Python requirements. It uses the official x402 before-payment lifecycle and refuses flagged, unknown, partial, stale, or unavailable merchant-card evidence. Full negative wash evidence permits continuation; it is not a general merchant safety judgment. The intel service receives the selected payee and normal connection metadata.Proxy environment forwarding already exists via
dict(os.environ)intoPopen; regression tests now cover explicit TWZRD_AUTO_GATE/TWZRD_FAIL_OPEN propagation and unchanged unset defaults. No redundant supervisor code or default-policy change. Reused/external proxies require their own configuration, and forwarding does not prove that the Node gate package resolved or activated. API-key billing and arbitrary Python tools remain outside this hook.Validation:
[twzrd], dependency compatibility check, packaged helper/skill smoke test passed.The extra pins solana==0.36.10: 0.40.3 removes the synchronous RPC module x402 imports, while 0.36.6 conflicts with x402's solders requirement. No payments broadcast, runtime deployment, or independent adoption claimed.