/** * Brain health dashboard — operator-facing status report for brain.db. * * Aggregates 8 named health flags for `cleo doctor brain`. Each flag includes * a count, status (ok/warn/fail), and a remediation hint pointing to the * relevant BBTT W-task. * * Read-only: MUST NOT write to brain.db or any persistent store. * * @module memory/brain-health-dashboard * @task T1908 (BBTT-W2-4) */ /** Health flag severity. */ export type HealthFlagStatus = 'ok' | 'warn' | 'fail'; /** A single named health flag in the dashboard. */ export interface HealthFlag { /** Short flag name (matches BBTT W-task reference). */ name: string; /** Status level. */ status: HealthFlagStatus; /** Numeric value (count, ratio %, etc.) for the underlying metric. */ value: number; /** Human-readable description of what the flag measures. */ description: string; /** Remediation hint — which BBTT W-task to consult. */ remediationHint: string; /** True when this flag is P0 (triggers exit code 1 in `cleo doctor brain`). */ isP0: boolean; } /** Full brain health dashboard result. */ export interface BrainHealthDashboard { /** All health flags. */ flags: HealthFlag[]; /** Total brain_observations row count. */ totalObservations: number; /** True if any P0 flag is in `fail` state. */ hasP0Failure: boolean; /** ISO timestamp of report generation. */ generatedAt: string; } /** * Compute the brain health dashboard by running read-only queries against brain.db. * * Returns a structured report with 8 named flags. Callers should check * `hasP0Failure` and exit with code 1 when true. * * @param projectRoot - Absolute path to the CLEO project root. * * @task T1908 */ export declare function computeBrainHealthDashboard(projectRoot: string): Promise; //# sourceMappingURL=brain-health-dashboard.d.ts.map