caelum0x 2d2b15c7fe feat: full guardrail-alpha system + CLI modularization + Vercel deploy config
- Rust engine: real bootstrap/wiring preflight (guardrail-agent), execution layer (retry/router/pre-trade/post-trade/reconciliation), guardrail-doctor diagnostics with allowlist-drift guard.

- guardrail-cli: extracted pure helpers into util.rs (split in progress).

- 6 Track-2 skills + ensemble; python-lab analytics (regime/drawdown/montecarlo/dossier/ensemble/journal/seed); clients (ts/py/go/mcp/langchain/web-lite/proof-verifier); alert relay; scenarios; helm/k8s/compose; docs.

- dashboard/vercel.json + docs/VERCEL_DEPLOY.md for Vercel deployment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 11:02:22 +03:00

29 lines
854 B
Python

"""Errors raised by X402Signer."""
from __future__ import annotations
class X402SignerError(Exception):
"""Base class for X402Signer-layer refusals."""
class X402RecipientMismatchError(X402SignerError):
"""``message['to']`` did not byte-equal the caller-supplied ``expected_to``.
Forces the caller to commit to a destination address before invoking
the signer; defends against an upstream LLM tool quietly altering the
payee in a 402 challenge.
"""
class X402AmountExceededError(X402SignerError):
"""``message['value']`` exceeded the per-call ``max_value`` for this token."""
class X402BudgetExhaustedError(X402SignerError):
"""The session budget for this token would be exceeded by this call."""
class X402PolicyError(X402SignerError):
"""A SigningPolicy violation surfaced from the underlying wallet."""