Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

feat(starknet): session-key spending policies for AI agents

Đang mở
#31 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

agents chain-integration enhancement tier-3

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.py enforces 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của QMeshPy/distributed-quantum

Tất cả issue của QMeshPy/distributed-quantum

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.