hackquest logo

Siggy Treasury

Siggy is an Autonomous AI spending council governed by three specialized consensus seeking AI agents (The Skeptic, The Strategist, and The Ethicist) deployed directly on GenLayer Studionet.

Videos

Project image 1
Project image 2
Project image 3
Project image 4

Tech Stack

Node
Web3
Next
React
Solidity
Python

Description

Siggy is composed of three core technical layers:

  1. The GenLayer Intelligent Governance Contract (treasury_council.py): Deployed on GenLayer Studionet, this contract enables non-deterministic evaluations using GenVM's native gl.nondet.exec_prompt() to query the three AI agent personas. It manages proposals, tracks verdicts, enforces a weekly cap of 500 USDC, and maintains the registered administrative delegation signature.

  2. MetaMask Hybrid Smart Account (Base Sepolia): Derived counterfactually using the admin EOA. The admin delegates periodic spending rights to a secure browser-session burner key (Council Executor) using MetaMask’s ERC-7715 requestExecutionPermissions API.

  3. 1Shot Gasless Relayer Integrator (ERC-7710): Once a proposal is approved by the AI council, a client calls the 1Shot Relayer to sponsor the transaction. The relayer submits the execution payload on Base Sepolia, drawing fees directly in USDC from the Treasury Smart Account itself, achieving a gasless, sign-less execution flow for the executor.

Progress During Hackathon

Over the course of the hackathon, i built the entire project from scratch and resolved critical technical roadblocks:

  • Intelligent Contract Implementation: Developed contracts/genlayer/treasury_council.py, defining the agent prompts, verdict schema parsing, and combination logic.

  • Consensus & Equivalence Principle Resolution: Fixed initial validator consensus errors (MAJORITY_DISAGREE) by redesigning the validator strategy. We replaced duplicate non-deterministic LLM queries with deterministic validation checks (structure, types, bounds, and requested amount checks) in validator_fn. This allows transaction proposals to consistently settle on-chain.

  • Pickling Storage Resolution: Resolved python VM warning messages by extracting state dataclass fields into primitive variables prior to entering the VM's non-deterministic closures (leader_fn).

  • Retro-Console Web App Built & Compiled: Built the responsive retro-matrix theme dashboard in React, TypeScript, and Vite. Resolved strict build compilation issues (unused imports, flex-alignment typos, EOA types), achieving a successful production build pipeline.

  • Git Syncing & Vercel deployment: Synced and pushed the complete codebase to GitHub and successfully deployed the frontend application to Vercel.

Team Leader
MMfon Ante
Project Link
Deploy Ecosystem
Base Sepolia TestnetBase Sepolia Testnet
Sector
DAOAIInfra