import type { AgentMessage } from "@ch1nyzzz/pi-agent-core"; import { type EvoPaths } from "../paths.ts"; import type { DraftProposal } from "../proposal.ts"; import type { EvidenceReference, ReplayScenario } from "../types.ts"; export declare const MATERIALIZED_CORPUS_BYTES: number; declare const SOURCE_WEIGHTS: { readonly bundle: 30; readonly history: 15; readonly inbox: 20; readonly sessions: 35; }; export type EvidenceSource = keyof typeof SOURCE_WEIGHTS; export interface EvidenceSourceSummary { bytes: number; maxBytes: number; truncated: boolean; } /** One corpus section with its structured value, used to materialize the corpus on disk. */ export interface EvidenceFragment { source: EvidenceSource; heading: string; value: unknown; sessionId?: string; } export interface EvidenceReviewCursor { schemaVersion: 1; updatedAt: string; inboxFiles: string[]; sessionSequences: Record; } export interface CollectEvidenceCorpusOptions { maxBytes?: number; mode?: "full" | "incremental"; reviewCursor?: EvidenceReviewCursor; completedSessionsOnly?: boolean; now?: () => Date; } export interface EvidenceCorpus { text: string; bytes: number; maxBytes: number; truncated: boolean; mode: "full" | "incremental"; evidenceDigest: string; sources: Record; fragments: EvidenceFragment[]; sessionIds: string[]; inboxFiles: string[]; nextReviewCursor: EvidenceReviewCursor; bundleDigest?: string; } export interface LoadedReplayScenario { history: AgentMessage[]; targetPrompt: string; oldSystemPrompt: string; systemPromptOptions: unknown; sessionIdentity: string; cwd: string; } export declare function readEvidenceReviewCursor(paths: EvoPaths): Promise; export declare function advanceEvidenceReviewCursor(paths: EvoPaths, candidate: EvidenceReviewCursor): Promise; export declare function collectEvidenceCorpus(paths: EvoPaths, options?: CollectEvidenceCorpusOptions): Promise; export declare function validateEvidenceReferences(paths: EvoPaths, references: readonly EvidenceReference[]): Promise; export declare function validateDraftGrounding(paths: EvoPaths, draft: DraftProposal): Promise; export declare function loadReplayScenario(paths: EvoPaths, scenario: ReplayScenario): Promise; export {}; //# sourceMappingURL=evidence.d.ts.map