跳到正文
TakoAPI
返回技能列表

valiron-trust-layer

由 vatsashah45 提供

Browser & Automation
278下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Intercept and authorize outgoing machine-to-machine payments (x402 or similar) using @valiron/sdk trust decisions.

描述

该技能的功能

Adds a trust gate in front of outgoing machine-to-machine payments. Before payment execution, it checks the counterparty agent's identity via @valiron/sdk, applies a configurable policy (allow, throttle, sandbox, or deny), and records the decision for audit.

Applies deterministic policy checks and spend controls before any payment commitment rather than relying on free-form model output, reducing the risk of unauthorized or runaway agent spending.

何时使用

  • Blocking payments to untrusted agents automatically
  • Throttling spend when counterparty trust score is low
  • Sandboxing test payments to unverified agents
  • Auditing every outgoing payment decision with structured logs
  • Enforcing per-route spend limits on autonomous agent wallets

示例工作流

输入

User asks: Process a payment to agent 0xABC for API access

智能体
  1. 1

    Extract counterpartyAgentId from the incoming payment request

  2. 2

    Call checkAgent(agentId) to retrieve a trust decision from Valiron

  3. 3

    Map the trust result to a route using the decision policy (prod, sandbox_only, etc.)

  4. 4

    Evaluate spend controls and per-route caps against the payment amount

  5. 5

    Allow payment and log the authorization, or return an explicit denial reason

输出

Payment is authorized under the prod policy and proceeds to x402 execution, or is denied with a structured rejection reason returned to the caller

前置要求

  • VALIRON_API_KEY environment variable (required for authenticated deployments)

安装

clawhub install vatsashah45/valiron-trust-layer

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接