Agora is a GenLayer governance and treasury review protocol for proposals, milestones, charter alignment and disputes.
This repository is a public proof package: it includes the product UI, the deployed GenLayer Studionet contract source, deployment metadata, finalized smoke transactions, and test evidence. Local wallet secrets are not included.
A GenLayer AI-moderated grants treasury. A charter defines what the community funds, builders submit proposals with milestones and evidence, validator-agreed web/LLM review scores charter alignment, and the treasury pays or rejects with challenge, appeal, archive, reputation and audit trails.
The frontend keeps the original product experience, while the contract adds a reviewable on-chain lifecycle: source records, GenLayer reasoning, challenge and appeal paths, indexed reads, and an audit trail that can be inspected after deployment.
| Area | Detail |
|---|---|
| Contract | contracts/agora_v2.py |
| Size | 41458 bytes |
| Network | GenLayer Studionet, chain id 61999 |
| Write methods | 26 |
| Read methods | 22 |
| GenLayer features | live web rendering, LLM execution, validator-comparative consensus |
| Deployment wallet | 0x8FAFc873ff8c29a18f90f1dCb7fE6E587aDA5F76 |
| Contract address | 0xF89767Ea6e2c880CB78d268D4d4881EE4e3b536E |
Architecture note:
Agora V2 (# v0.2.16), 41458 bytes, 26 write + 22 view. Objects: Proposal, Milestone, Evidence, Review, Challenge, Appeal, Reputation/Profile + AuditEntry. Lifecycle OPEN->REVIEWING->REVIEWED->CHALLENGE_WINDOW->APPEALED->SETTLED/VOIDED->ARCHIVED, with charter and treasury compatibility. GenLayer nondet (web.render + exec_prompt inside eq_principle.prompt_comparative) for charter-alignment review, challenge rulings and appeal rulings; strict JSON normalization, confidence/alignment bps, URL validation and prompt-injection guardrails. Backward-compatible payable set_charter, donate, propose, review, get_charter/get_treasury/get_proposal/get_proposal_count keep the static Agora app intact.
Core smoke flow:
set_charter
-> donate
-> draft_proposal
-> add_milestone
-> add_evidence_docs
-> add_evidence_github
-> open_review
-> review
-> open_challenge_window
-> submit_challenge
-> resolve_challenge
-> submit_appeal
-> resolve_appeal
Test result:
Schema valid
18 smoke writes finalized
40/40
Static frontend bundled for standalone Vercel deployment
Agora ships as a standalone static app:
- wallet connection through the bundled browser client
- GenLayer reads through
genlayer-js - writes routed through the connected EVM wallet
- bundled
shared/client files keep the Vercel deployment self-contained - deployed contract address pinned in
app.jsanddeployment.json
From this repository folder:
python -m http.server 8080Open:
http://localhost:8080/
npx --yes vercel@latest --prod --yesThis public repository intentionally excludes local secrets:
- no private keys
- no vault files
- no
.envfiles - no
.vercelproject state - no local dashboard data
Public files include frontend code, contract source, deployment metadata, tests, and non-sensitive proof links.