/** * AUDIT_DB — canonical store of governance audit data accumulated across * sentinel_01's audit-snapshot runs. 51 entries as of HB#328. * * This module exists because portfolio.ts and compare-time-window.ts both * need read access to this data, and pulling it from a shared lib avoids * either (a) inline duplication or (b) heavy-import side effects from * importing portfolio.ts (which has its own spinner/output coupling). * * Schema: * grade — A/B/C/D ranking on a composite governance score * score — 0-100 health score using the rubric established in v1 * of the Four Architectures research piece * gini — voting-power Gini coefficient (0 = perfect equality, * 1 = perfect concentration). Authoritative single number * that drives most architectural classification. * category — semantic category (DeFi, NFT Governance, Bridge, etc). * Used for the temporal-stability category-split finding * from HB#317 (DeFi divisible drifts worse, non-DeFi * divisible mixed/stable). * voters — unique voters across the last 100 proposals on Snapshot, * or equivalent for Governor/Safe DAOs. Optional because * some entries pre-date voter-count tracking. * platform — Snapshot / Governor / Safe / POP / hybrid. NOTE: the * discrete-vs-divisible classifier is about SUBSTRATE not * PLATFORM (per HB#300 Loopring reclassification — Loopring * is on Snapshot but classified discrete because its LRC * distribution reflects participation in the zkRollup * ecosystem rather than open-market accumulation). * * Future schema expansion: add `space?: string` per row so the * compare-time-window SPACE_TO_NAME mapping can be derived from the * AUDIT_DB rather than maintained as a separate manual table. Out of * scope for the HB#328 minimal extraction. */ export interface AuditEntry { grade: string; score: number; gini: number; category: string; voters?: number; platform: string; } export type ArchitectureClass = 'discrete' | 'divisible'; export declare const AUDIT_DB: Record; /** * Classify governance architecture per the "Four Architectures of * Whale-Resistant Governance" research and the HB#317 category-split * refinement. Currently 5 entries are classified `discrete`: * 1. POP-platform DAOs (participation-token issuance) * 2. Nouns (NFT-per-vote auction) * 3. Sismo (identity badge) * 4. Aavegotchi (gameplay-tied tokens) * 5. Loopring (early-distribution LRC; reclassified HB#300 after * falsification test showed it has discrete-cluster temporal * stability despite Snapshot platform tag) * Everything else is divisible token-weighted. * * The discrete/divisible classifier is about SUBSTRATE not PLATFORM. * A DAO can be on Snapshot but discrete (Loopring) or on POP-equivalent * voting infrastructure but divisible if its tokens are tradeable. */ export declare function architectureClass(name: string, platform: string): ArchitectureClass;