feat(starknet): session-key spending policies for AI agents
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- blockchain
Hướng nghiên cứu
Start by reading issue #2 and the agent configuration and funding paths named here: ai_agent_service._execute_funding and agent/cost_guard.py. Verify the current session-key standard, maintained Python client API, and testnet paymaster availability before choosing an account implementation. Done means policy limits are enforced on-chain, session keys can be revoked and expire, and policy parameters map to existing agent config fields, with tests and documentation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Enforce AI agent spending limits in a Starknet smart account via session keys, so caps hold even if the backend is compromised, and offer gasless onboarding through a paymaster.
Motivation
Agent budgets (max_per_proposal, daily_budget) are enforced only in application code. On-chain policy is a stronger guarantee and a good showcase of account abstraction.
Current state in this repo
- Limits live in agent config documents and
ai_agent_service._execute_funding;agent/cost_guard.pyenforces a separate set of budgets for the workspace agent.
Proposal
- Register Starknet testnet in the registry (#2) with a minimal adapter.
- Select an account implementation supporting session keys and define a policy (allowed targets/tokens, per-call and per-day limits, expiry).
- Create the session key for an agent and use it for agent-initiated funding calls; revoke on demand from the UI.
- Optionally sponsor fees with a paymaster for new users.
- Document the toolchain (Cairo, Python client) and its cost for contributors.
Acceptance criteria
- An agent can transact within policy and is rejected on-chain beyond it.
- Session keys can be revoked and expire automatically.
- Policy parameters map to the existing agent config fields.
Out of scope
- Proving the quantum simulation with STARKs (research-grade).
- Mainnet.
Technical notes and risks
- Session-key standards are still a draft and wallet implementations are not mutually compatible. Pick one implementation and document the lock-in.
Dependencies
- #2
Verify before implementing
- Current session-key standard status and the maintained Python client API.
- Paymaster availability on testnet.
Part of ##1. Ground rules for all issues in this roadmap are listed there (testnet-first, no secrets in the repo, chain logic behind the registry, tests and docs with every PR).
- Ngôn ngữ chính
- Python
- Star
- 2
- Fork
- 4
- Merge trung bình
- 5 giờ 19 phút
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của QMeshPy/distributed-quantum
-
enhancement good first issue helia storage tier-1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
QMeshPy/distributed-quantum#53 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chain-integration enhancement payments research-spike tier-2
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
QMeshPy/distributed-quantum#78 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chain-integration enhancement payments research-spike tier-2
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
QMeshPy/distributed-quantum#77 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chain-integration enhancement payments tier-2
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
QMeshPy/distributed-quantum#76 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue kubo storage tier-1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 42/100
QMeshPy/distributed-quantum#75 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của QMeshPy/distributed-quantum
Issue tương tự
-
[oblt-aw][autodoc] Update workflow docs for gh-aw v0.92.5 and detector permission scopeCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feat(ide): VS Code access through the shipped MCP server (config doc and tool-list smoke test)Đang mởroadmap-100
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
comp/tools P2 tool/browser tool/file type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NousResearch/hermes-agent#143418 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
python-hyper/uritemplate#164 ·