Repository navigation
0.3.0 — the security layer (shadow) and the x402 Gate hook
·
20 commits
to main
since this release
Mirrors the seven security-layer tools the server gained on 16 Oct 2026, all in shadow / log-only mode: agent_pattern, payee_facts, gate_check, agent_pass, blast_radius, canary_register, canary_status. Every answer is a measurement with its time and definition id; nothing is a verdict and nothing is blocked by us.
- CLI:
afg pattern <id>,afg facts <payee> [agent] [usd],afg gate <agent> <payee> <usd> [policy],afg pass <id>,afg blast <id|0xwallet>. bin/x402-gate-hook.mjs: anonBeforePaymentCreationhook for@x402/core2.x that asksgate_checkbefore signing and aborts on the decisions the operator chooses; fail mode is the operator's (warnby default,abort,allow).- Stranger-written fields (
declared_name,endpoint, feedbackuri/file_uri, tags, caller echoes) now arrive as{untrusted: true, source, text}; a client that readdeclared_nameas a string reads.text. - Ten new tests against a stand-in server (26 in all), no dependencies.
How it works, with live figures: https://agenticfinancegraph.com/security