genlayer-erc7710-connector
What it does
This skill is for developers who want to link a GenLayer review decision to a smart contract that controls an agent's permissions. It covers the message format, the relay or bridge path, failure handling, and what revoking actually does on the blockchain.
When to use it
- ✓When you already have a GenLayer review in place and need to turn its result into a permission change.
- ✓When you need to decide how a review result is sent to a blockchain controller.
- ✓When you are planning what happens if a review result arrives late or fails.
Skill link
https://github.com/internet-court/internet-court-skill/blob/main/integrations/genlayer-erc7710-connector/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I have a GenLayer review that scores my agent, and I want a bad score to block its payments.”
5 new skills a week. 1 minute to read.
How it works
A GenLayer decision is produced, then passed by a relay or bridge to a controller contract on an EVM blockchain. That controller limits or blocks future uses of the permission. The skill stresses that the controller must act on the decision, because GenLayer does not do it on its own.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Does GenLayer automatically cancel the permission?
No. GenLayer produces a decision, and a separate contract on the blockchain must read it and apply the change.
Do I need this skill to write the GenLayer contract?
No. This skill covers only the connection, and it points to the official GenLayer skills for writing and deploying contracts.
Which blockchains does this connect to?
It works with EVM chains, the family that includes Ethereum. The exact chain depends on your project.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 7.0k
- Ranking position
- #13598
- License
- —
- Updated
- 10/26/2026
Comments
- …
More skills from this repository
internet-court
7.0kHelps your agent pay, hire, or deal safely with another AI agent or paid service, and points it to the right specialized guide.
genlayer-intelligent-contracts
7.0kHelps your agent define the rules, evidence and outputs of an AI judge that checks whether another agent followed its mandate.
x402-erc7710
7.0kHelps your agent pay for web services one request at a time, and set up ongoing spending that stays within a permission budget.
0g-compute
7.0kTeaches your agent to build chatbots, image tools and speech features on the 0G decentralized GPU network, using tested code patterns.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.