OnchainPlanBench-Seed
收藏资源简介:
OnchainPlanBench Seed 是一个早期的 CodePit 数据集,旨在评估小型开源模型在 Web3 AI-agent 的钱包执行之前,对其行动计划进行批评、修复、拒绝或批准的能力。该数据集是首个 CodePit 官方模型赛道 CodePit PlanGuard 的公开种子版本,并非生产级的安全基准。每个数据样本为模型提供以下信息:用户意图、钱包上下文、可用工具、风险与隐私政策以及可选的草案计划。模型需要输出一个严格的 JSON 格式决策,包含以下字段:裁决(accept、repair、reject 或 clarify)、计划(允许时的有序可执行步骤)、执行前需确认项、前提条件、风险摘要、隐私说明、安全标志,以及在相关情况下的被拒绝步骤或缺失信息。当前种子数据聚焦于一个狭窄的启动领域,涵盖 Base 链、ETH 和 USDC 相关操作,如余额检查、转账、授权、同链 Aave 式存款、需要报价/模拟的兑换、x402 支付规划、钱包上下文最小化、MEV/私有RPC路由推荐,以及对洗钱/合规规避请求的拒绝和恶意工具描述的处理。数据集规模较小(小于1K样本),包含训练和验证分割。数据集包含一个简单的评估器用于检查输出结构,但强调其数据是合成的,不能替代法律、合规或交易模拟审查,也不能单独用于训练模型或授权任何交易。
OnchainPlanBench Seed is an early CodePit dataset designed to evaluate the ability of small open-source models to critique, revise, reject, or approve action plans before they are executed by Web3 AI agents connected to crypto wallets. This dataset is the first public seed release of CodePit PlanGuard, the official model track of CodePit, and is not a production-grade security benchmark. Each data sample provides the model with the following information: user intent, wallet context, available tools, risk and privacy policies, and an optional draft plan. The model is required to output a strictly JSON-formatted decision containing the following fields: decision ("accept", "repair", "reject", or "clarify"), plan (ordered executable steps when permitted), pre-execution confirmation items, prerequisites, risk summary, privacy notice, security flags, and, where relevant, rejected steps or missing information. This current seed dataset focuses on a narrow launch domain, covering operations related to Base blockchain, Ethereum (ETH), and USD Coin (USDC), such as balance checks, transfers, approvals, same-chain Aave-style deposits, quotes/simulation-required swaps, x402 payment planning, wallet context minimization, MEV/private RPC routing recommendations, rejection of money laundering or compliance evasion requests, and handling of malicious tool descriptions. The dataset is small in scale (fewer than 1,000 samples) and includes training and validation splits. The dataset includes a simple evaluator for checking output structure, but emphasizes that its data is synthetic and cannot substitute for legal, compliance, or transaction simulation reviews, nor can it be used alone for model training or authorizing any transactions.
数据集概述
数据集名称:OnchainPlanBench Seed
发布方:CodePit
许可证:MIT
语言:英文
数据规模:少于1000条(n<1K)
任务类型:文本生成、文本分类
数据集描述:
该数据集用于评估小型开源模型在Web3 AI代理执行钱包交易前,能否对行动计划进行审查、修复、拒绝或批准。此数据集为CodePit官方模型赛道“CodePit PlanGuard”的首个公开种子数据,并非生产级安全基准。
测试内容:
每条数据为模型提供以下信息:
- 用户意图
- 钱包上下文
- 可用工具
- 风险与隐私策略
- 可选草案计划
模型需输出严格的JSON决策,包含:
verdict:accept、repair、reject或clarifyplan:允许时的可执行步骤requires_confirmation_before:执行前需确认的项preconditions:前提条件risk_summary:风险摘要privacy_notes:隐私说明security_flags:安全标记rejected_steps或missing_information:拒绝的步骤或缺失信息
当前覆盖范围:
数据集聚焦于Base链上的ETH和USDC操作,包括:
- 余额检查
- 转账
- 批准
- 同链Aave风格存款
- 需要报价/模拟的兑换
- x402支付计划
- 钱包上下文最小化
- MEV/私有RPC路由建议
- 拒绝洗钱/规避合规请求
- 恶意工具描述处理
数据划分:
data/train.jsonl:种子训练样本data/validation.jsonl:种子验证样本
评估工具:
仓库内包含小型评估器evaluation/evaluate_outputs.py,用于检查JSON结构有效性和基于标签的预期结果。使用示例:
bash
python evaluation/evaluate_outputs.py
--dataset data/validation.jsonl
--predictions predictions.jsonl
预测格式为每行一个JSON对象: json {"id":"eval_wrong_chain_transfer","output":{"verdict":"repair","plan":[]}}
重要限制:
- 种子数据为合成数据,规模较小
- 不可替代法律、合规、钱包或交易模拟审查
- 不能单独用于模型训练
- 不授权任何交易
- 模型需通过CodePit验证器在保留基准上的评分才能被视为改进





