/** * pop org compare-time-window — re-audit a stored AUDIT_DB entry and * report drift against the stored snapshot. * * This command codifies the asymmetric-drift research finding from * brain lesson `dao-governance-gini-drifts-asymmetrically-...` (HB#296) * and the stored-data-stale rule from * `stored-audit-data-has-a-half-life-of-months-re-probe-every-20-30-hbs` * (HB#293) into an executable check. Codification rationale per * brain lesson `lessons-to-tools-knowledge-pipeline-codify-a-brain-lesson-...` * (HB#314): a brain lesson should be promoted to CLI when it reappears * 3+ times. Asymmetric drift has been observed in 11 of 12 refreshes * and the stored-stale rule in 5 of 5 cases — both well past the * promotion threshold. * * Usage: * pop org compare-time-window --space aavedao.eth * * Output: a single drift summary line + JSON shape with the new vs * stored numbers and a categorical drift label (worse / stable / * better-noise / better). Threshold for "stable" is ±0.01 absolute Gini * (slightly above the Aavegotchi noise floor of 0.003 from HB#298). * * Scope deliberately narrow: * - Looks up the entry in the same hardcoded AUDIT_DB used by * portfolio.ts. (TODO future: extract AUDIT_DB to its own module * so this command and portfolio share the source.) * - Shells out to `pop org audit-snapshot --space X --json` to get * fresh data, rather than re-implementing the snapshot query. * Avoids a partial duplicate of audit-snapshot's Gini math. * - Does NOT update the stored entry — that's a separate explicit * action by the operator (preserves git history vs silent overwrites). */ import type { Argv, ArgumentsCamelCase } from 'yargs'; interface CompareTimeWindowArgs { space?: string; threshold?: number; all?: boolean; } export declare const compareTimeWindowHandler: { builder: (yargs: Argv) => Argv<{ space: string | undefined; } & { threshold: number; } & { all: boolean; }>; handler: (argv: ArgumentsCamelCase) => Promise; }; export {};