/** * Context handoff and synthesis. * * A typed context packet for subagents and model-role transitions. Contains * only the objective, relevant criteria, selected evidence, selected file * references, structured state, bounded recent failures, explicit constraints, * and the required output schema — never full hidden reasoning, unrelated * transcript, unbounded logs, secrets, or stale cached conclusions as * authority. Subagent results are claims that the parent must validate. */ import type { AcceptanceCriterion } from "./types.js"; export interface ContextPacket { objective: string; criteria: readonly AcceptanceCriterion[]; selectedEvidence: readonly { evidenceId: string; summary: string; }[]; selectedFileRefs: readonly string[]; structuredState: Record; boundedRecentFailures: readonly { fingerprint: string; count: number; }[]; explicitConstraints: readonly string[]; requiredOutputSchema?: string; forbiddenContent: readonly ("secrets" | "reasoning" | "transcript" | "logs")[]; } export interface PacketValidation { valid: boolean; reasons: string[]; } /** Deterministically validate that a packet is bounded and contains no forbidden sensitive content. */ export declare function validateContextPacket(packet: ContextPacket): PacketValidation; /** * Reconcile contradictory child results: a deterministic claim validator. * The parent is authoritative — contradictory or unverifiable results become * explicit unresolved findings, never silently merged truth. */ export declare function reconcileChildResults(claims: readonly { childId: string; claim: unknown; supported?: boolean; }[]): { accepted: string[]; contradictions: string[]; }; //# sourceMappingURL=context-handoff.d.ts.map