Skip to content

feat(web): DAO governance intelligence - outcome analytics, executed timeline, governor drift#71

Merged
marinom2 merged 1 commit into
mainfrom
feat/dao-governance-intelligence
Jun 10, 2026
Merged

feat(web): DAO governance intelligence - outcome analytics, executed timeline, governor drift#71
marinom2 merged 1 commit into
mainfrom
feat/dao-governance-intelligence

Conversation

@marinom2

Copy link
Copy Markdown
Owner

Expands the governance-intelligence panel with three registry-derived views the official tools don't surface. All read-only - voting stays on dao.lightchain.ai.

1. Outcome analytics

Scans every proposal and reports pass rate, quorum-hit rate, and the state breakdown. Live Ethereum result: 30 proposals, 83% pass rate (25/30), 83% quorum hit, {executed: 25, defeated: 4, canceled: 1}.

2. Executed timeline ("what governance actually did")

The executed proposals, with their calldata decoded into plain English and privileged actions flagged. Real examples it surfaces: "Approve BitMart Listing Agreement", "Authorize Migration of the DAO Treasury from Ethereum" (which itself explains the near-empty Ethereum treasury), "Authorize Exchange Liquidity Provisioning".

3. Governor drift (Ethereum vs LightChain)

Side-by-side comparison that highlights the parameters that differ - 7d vs 14d voting, 3% vs 30% quorum, 30 vs 0 proposals, treasury balances - making the in-progress migration legible at a glance.

Internals

  • Extracted the chunked multi-RPC ProposalCreated scan into lib/dao-governor-scan, now shared by the proposals + analytics routes (removes ~100 lines of duplication).
  • New /api/dao-analytics route batches per-proposal reads (groups of 6) to stay within free-RPC limits.
  • Pure outcome aggregation in lib/dao-analytics, unit-tested (+7 tests).

Verification

tsc clean, next build clean, ESLint clean, 485/485 tests pass. Verified live: analytics returns real stats + decoded executed actions for Ethereum, and degrades cleanly to "nothing to analyze" for LightChain (0 proposals).

…timeline, governor drift

Expand the governance-intelligence panel with three registry-derived views the
official tools don't surface. All read-only; voting still happens on the
official DAO.

- Outcome analytics: scans every proposal and reports pass rate, quorum-hit
  rate, and the state breakdown (e.g. Ethereum: 30 proposals, 83% pass, 83%
  quorum hit, 25 executed / 4 defeated / 1 canceled).
- Executed timeline: what governance has actually enacted, decoded into plain
  English (e.g. "Authorize Migration of the DAO Treasury from Ethereum" - which
  itself explains the near-empty Ethereum treasury).
- Governor drift: side-by-side Ethereum vs LightChain comparison highlighting
  the parameters that differ (7d vs 14d voting, 3% vs 30% quorum, 30 vs 0
  proposals), making the in-progress migration legible at a glance.

Internals: extract the chunked multi-RPC ProposalCreated scan into a shared
lib (lib/dao-governor-scan) used by both the proposals and analytics routes;
the new dao-analytics route batches per-proposal reads to stay within free-RPC
limits. Pure outcome aggregation lives in lib/dao-analytics and is unit-tested
(+7 tests).
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightnode Ready Ready Preview, Comment Jun 10, 2026 12:51pm

Request Review

@marinom2 marinom2 merged commit e87491d into main Jun 10, 2026
5 checks passed
@marinom2 marinom2 deleted the feat/dao-governance-intelligence branch June 10, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant