/** * Archivist — scheduled maintenance daemon for iranti's knowledge store. * * Runs a full scan cycle on demand (typically via cron or `iranti archivist` CLI): * 1. Archive entries whose `validUntil` is in the past. * 2. Archive entries whose `confidence` has fallen below the low-confidence * threshold (currently 30). * 3. Apply memory decay — recalculate confidence for every live entry based on * time-since-last-access and stability; archive anything that decays below * `getDecayConfig().threshold`. * 4. Process escalation files — read `*.md` files from the active escalation * folder, consume any marked `**Status:** RESOLVED`, apply the * `### AUTHORITATIVE_JSON` payload, and move the file to resolved/. * 5. Bounded reasoning pass (B7 S5) — calls `planArchivistReasoningPass` * over a snapshot of live entries and emits proposals; never mutates. * 6. Council mode (B7 S6) — if reasoning proposals were emitted, proposes * cross-staff consultations via `planCouncilConsultation`. * * All mutations are emitted as staff events. The full cycle result is returned * as `ArchivistReport`. */ import { type ArchivistReasoningProposal } from '../staff/archivistReasoning'; import { type CouncilConsultation } from '../staff/council'; interface ArchivistReport { expiredArchived: number; lowConfidenceArchived: number; duplicatesMerged: number; escalationsProcessed: number; errors: string[]; reasoningProposals?: ArchivistReasoningProposal[]; reasoningOutcome?: string; councilConsultations?: CouncilConsultation[]; } export declare function runArchivist(): Promise; export {}; //# sourceMappingURL=index.d.ts.map