/** * ollama_change_brief — FLAGSHIP compound job. * * Produces a STRUCTURED IMPACT BRIEF for a change: what changed, why * it matters, what it could break, what should be checked, and what * release-note / handoff language is worth drafting. Not a git chat * bot and not prose paragraphs. * * Accepts diff_text and/or source_paths (changed files), with an * optional corpus for doctrine/architecture background. No VCS * integration — the caller hands in the evidence; the tool * synthesizes. * * Tier: Deep. Evidence-backed, thin-evidence-honest, no remediation * drift. likely_breakpoints is investigative ("this could break X"); * validation_checks are verifications, not fixes. release_note_draft * is a draft — operator still reviews. */ import { z } from "zod"; import type { Envelope } from "../envelope.js"; import type { RunContext } from "../runContext.js"; import type { EvidenceItem } from "./briefs/evidence.js"; import { type AssembledEvidence } from "./briefs/common.js"; export declare const changeBriefSchema: z.ZodObject<{ diff_text: z.ZodOptional; source_paths: z.ZodOptional>; corpus: z.ZodOptional; corpus_query: z.ZodOptional; per_file_max_chars: z.ZodOptional; max_breakpoints: z.ZodOptional; max_validation_checks: z.ZodOptional; corpus_min_evidence_score: z.ZodOptional; }, z.core.$strip>; export type ChangeBriefInput = z.infer; export interface AffectedSurface { surface: string; evidence_refs: string[]; } export interface LikelyBreakpoint { breakpoint: string; evidence_refs: string[]; } export interface ValidationCheck { check: string; why: string; } export interface ChangeBriefResult { change_summary: string; affected_surfaces: AffectedSurface[]; why_it_matters: string; likely_breakpoints: LikelyBreakpoint[]; validation_checks: ValidationCheck[]; release_note_draft: string; evidence: EvidenceItem[]; weak: boolean; coverage_notes: string[]; corpus_used: { name: string; chunks_used: number; } | null; } export declare function handleChangeBrief(input: ChangeBriefInput, ctx: RunContext): Promise>; /** * Internal synthesis step. Takes pre-assembled evidence and runs the * Deep-tier brief synthesis. Exported so the change_pack orchestrator * can share one evidence assembly across brief + targeted extract * without exposing a "preassembled_evidence" knob on the public tool. */ export declare function synthesizeChangeBrief(input: ChangeBriefInput, ctx: RunContext, assembled: AssembledEvidence): Promise>; //# sourceMappingURL=changeBrief.d.ts.map