genlayer-erc7710-connector
它能做什么
这项技能适合希望把 GenLayer 审核决定与控制智能体权限的智能合约相连接的开发者。它涵盖消息格式、中继或桥接路径、故障处理,以及撤销在区块链上的实际效果。
适用场景
- ✓当你已经完成 GenLayer 审核,需要把结果转化为权限变更的时候。
- ✓当你需要决定如何把审核结果发送到区块链控制器时。
- ✓当你计划审核结果延迟或失败时该如何处理的时候。
技能链接
https://github.com/internet-court/internet-court-skill/blob/main/integrations/genlayer-erc7710-connector/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我有一份 GenLayer 审核对我的智能体进行评分,我希望评分不佳时阻止它的付款。”
每周 5 个新技能,1 分钟读完。
工作原理
GenLayer 会生成一项决定,再由中继或桥接传递到 EVM 区块链上的控制器合约。该控制器会限制或阻止此权限之后的使用。该技能强调,控制器必须执行这项决定,因为 GenLayer 本身不会自动执行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GenLayer ERC-7710 Connector
Use this skill after the mandate, ERC-7710 policy, and GenLayer Intelligent Contract review flow exist. This skill does not teach GenLayer contract deployment. For GenLayer build, deploy, test, and CLI operations, use the official GenLayer skills at https://skills.genlayer.com/ or the GenLayer documentation.
This skill specifies the connector:
GenLayer Intelligent Contract decision
-> decision proof / receipt / finalized result
-> relayer or bridge
-> EVM RevocationController
-> ERC-7710 Delegation Manager rejects or constrains future redemptions
Design Rule
Never say "GenLayer cancels ERC-7710" without defining the effect path. GenLayer produces a decision. An EVM-side controller, account module, caveat enforcer, or delegation manager integration must consume that decision.
Workflow
- Identify the permission:
mandateId,permissionHash, delegator, delegate, delegation manager, target EVM chain, and current policy.
- Identify the GenLayer decision source:
- supervisor contract address, method that stores/returns the decision, review window, decision enum, score, issued timestamp, and finalized transaction id.
- Choose the connector mode:
- Manual demo relay, trusted relayer, GenLayer Studio bridge relay, optimistic relay with challenge window, light-client/bridge verification, or direct EVM call if supported by the target GenLayer/EVM integration.
- Define the message:
- Include enough data for the EVM controller to revoke or constrain exactly one mandate/permission.
- Define the EVM effect:
- Revoke, constrain, pause, require human approval, or mark pending appeal.
- Define safety:
- Finality assumptions, replay protection, nonce, deadline, idempotency, emergency owner revoke, and absolute permission expiry.
- Define tests:
- Continue does nothing, revoke blocks future redemption, constrain tightens policy, stale decisions fail, duplicate messages are idempotent, forged decisions fail.
Connector Modes
Use the simplest mode that honestly matches the demo.
Manual Demo Relay
Best for hackathon/prototype demos. The UI or operator reads the GenLayer decision and calls the EVM revocation controller.
State the trust assumption: the operator is trusted to relay the decision correctly.
Trusted Relayer
Best for a realistic MVP. A service watches GenLayer review transactions, waits for finality, then submits a signed EVM transaction.
Require allowlisted relayer keys and onchain event logs. Keep the delegator emergency revoke path.
GenLayer Studio Bridge Boilerplate
Use this for Base Sepolia demos that should exercise a real cross-chain control loop without claiming mainnet-grade verification.
Flow:
1. Base reporter contract packages a spend or action snapshot.
2. Base BridgeSender.sol sends it to GenLayer through the bridge boilerplate.
3. BridgeReceiver.py dispatches process_bridge_message() on the supervisor IC.
4. Supervisor IC reviews the window and calls BridgeSender.py.
5. Base BridgeReceiver.sol dispatches processBridgeMessage() on an EVM decision receiver.
6. Decision receiver verifies bridge receiver, source chain id, and source IC.
7. Decision receiver calls RevocationController.applyGenLayerDecisionStruct().
Default Base Sepolia values from the bridge boilerplate:
- Base Sepolia chain id:
84532. - Base Sepolia LayerZero endpoint id:
40245. - GenLayer source chain id emitted by
BridgeSender.py:61998.
Required EVM contracts:
- a reporter such as
WalletSpendReporterthat sends snapshots to GenLayer; - a decision receiver such as
GenLayerDecisionReceiverthat is allowlisted as a relayer onRevocationController; - a redemption path that checks
RevocationController.isRevoked,isPaused, andgetConstraintsbefore spending.
Trust assumption: the bridge service and configured bridge contracts are trusted for the demo unless a verified proof path is added. Keep owner emergency revoke and absolute expiry.
Optimistic Relay
Best when anyone can submit a decision, but the decision can be challenged during a delay.
Use for higher-stakes demos where incorrect revocation is costly and latency is acceptable.
Verified Bridge
Best for production claims. The EVM controller verifies a GenLayer-origin proof or a trusted bridge message.
Do not choose this mode unless the proof/bridge implementation is actually available.
Message Schema
Use this as the default co
常见问题
GenLayer 会自动取消权限吗?
不会。GenLayer 只生成决定,区块链上另一个合约必须读取并执行相应的变更。
编写 GenLayer 合约时需要这个技能吗?
不需要。这个技能只涵盖连接部分,并指向 GenLayer 官方的编写与部署技能。
它能连接哪些区块链?
它支持 EVM 链,即包括以太坊在内的一类链。具体的链取决于你的项目。
详情
作者的原始描述
Connect GenLayer Intelligent Contract decisions to ERC-7710-style delegated authority. Use when an agent needs to design the interface, message schema, relayer/bridge path, EVM revocation controller, constraint updates, proof/finality assumptions, and failure handling that turn a GenLayer agent-performance review into ERC-7710 revocation or policy changes.
热度
- GitHub 星标
- 7.0k
- 排名
- #13598
- 许可证
- —
- 更新时间
- 2026/10/26
评论
- …
同一仓库的更多技能
internet-court
7.0k帮你的智能体安全地向其他 AI 智能体或付费服务付款、雇用或进行交易,并指引它找到合适的专业指南。
genlayer-intelligent-contracts
7.0k帮你的智能体定义 AI 裁判的规则、证据和输出,用于检查另一个智能体是否遵循了其授权范围。
x402-erc7710
7.0k帮你的智能体按次为网络服务付款,并设置在权限预算范围内的持续支出。
0g-compute
7.0k教你的智能体使用 0G 去中心化 GPU 网络,借助经过测试的代码模式构建聊天机器人、图像工具和语音功能。