import type { Session, SessionEntry } from './session-types.mts'; /** * Session shape taxonomy and distillation eligibility. * * This code is the source of truth for both. The retrospective-distill skill is the canonical * human-facing description; when an inspector's hand classification and this output disagree on * the same session, fix the skill to match this code, not the other way around. * * `zero-entry-child` / `zero-entry-root` name a session-topology fact (whether `parentSessionId` * is set), not a completion signal: a delegated child that dies mid-task is a zero-entry-child * session too, indistinguishable here from one that finished its bounded assignment cleanly. * Docs referencing this split must not imply "child" means "completed normally". */ export type SessionShape = 'retrospective' | 'entry-type-unresolved' | 'checkpoint-only' | 'journal-only' | 'zero-entry-child' | 'zero-entry-root'; export type SessionClassification = { sessionId: string; shape: SessionShape; eligible: boolean; quarantine?: { entryCount: number; reasons: string[]; }; duplicateEntryCount?: number; }; export type DistillCutoffs = { retroCutoff: string; sessionCutoff: string; }; export declare function classifySession(session: Session, entries: SessionEntry[], cutoffs: DistillCutoffs): SessionClassification;