Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#31 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
blockchain

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Python
Stelle
2
Fork
4
Merge medio
5h 19m
PR unite (30g)
11

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di QMeshPy/distributed-quantum

Tutte le issue di QMeshPy/distributed-quantum

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.