import { z } from "zod"; import type { Finding as SharedFinding } from "audit-tools/shared"; export type Lens = "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability"; /** Single authoritative record for one audit lens. `order_weight` governs task * priority ordering — lower values sort earlier (higher urgency). */ export interface LensDefinition { id: Lens; display_name: string; /** Lower = higher priority in task ordering. */ order_weight: number; default_enabled: boolean; } /** Single source of truth for all lens metadata. Adding or renaming a lens * requires a single edit here; `ALL_LENSES`, `ENABLED_LENSES`, and * `LENS_ORDER` (in auditTaskUtils) are all derived from this registry. */ export declare const LENS_REGISTRY: readonly LensDefinition[]; /** Canonical list of every valid {@link Lens}. Derived from {@link LENS_REGISTRY} * — import {@link isLens} / `ALL_LENSES` instead of hand-copying lens lists into * local guards, which drift (a copy omitting "observability" caused it to be * wrongly rejected in flow requeue). */ export declare const ALL_LENSES: readonly Lens[]; export declare function isLens(value: unknown): value is Lens; export declare const FileRecordSchema: z.ZodObject<{ path: z.ZodString; language: z.ZodString; size_bytes: z.ZodNumber; hash: z.ZodOptional; excluded: z.ZodOptional; exclusion_reason: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; language: string; size_bytes: number; excluded?: boolean | undefined; hash?: string | undefined; exclusion_reason?: string | undefined; }, { path: string; language: string; size_bytes: number; excluded?: boolean | undefined; hash?: string | undefined; exclusion_reason?: string | undefined; }>; export declare const RepoManifestSchema: z.ZodObject<{ repository: z.ZodObject<{ name: z.ZodString; root: z.ZodOptional; default_branch: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; root?: string | undefined; default_branch?: string | undefined; }, { name: string; root?: string | undefined; default_branch?: string | undefined; }>; generated_at: z.ZodString; files: z.ZodArray; excluded: z.ZodOptional; exclusion_reason: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; language: string; size_bytes: number; excluded?: boolean | undefined; hash?: string | undefined; exclusion_reason?: string | undefined; }, { path: string; language: string; size_bytes: number; excluded?: boolean | undefined; hash?: string | undefined; exclusion_reason?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { files: { path: string; language: string; size_bytes: number; excluded?: boolean | undefined; hash?: string | undefined; exclusion_reason?: string | undefined; }[]; generated_at: string; repository: { name: string; root?: string | undefined; default_branch?: string | undefined; }; }, { files: { path: string; language: string; size_bytes: number; excluded?: boolean | undefined; hash?: string | undefined; exclusion_reason?: string | undefined; }[]; generated_at: string; repository: { name: string; root?: string | undefined; default_branch?: string | undefined; }; }>; export type RepoManifest = z.infer; export declare const AuditUnitSchema: z.ZodObject<{ unit_id: z.ZodString; name: z.ZodString; kind: z.ZodOptional; files: z.ZodArray; risk_score: z.ZodOptional; required_lenses: z.ZodArray; critical_flows: z.ZodOptional>; }, "strict", z.ZodTypeAny, { files: string[]; unit_id: string; name: string; required_lenses: string[]; risk_score?: number | undefined; kind?: string | undefined; critical_flows?: string[] | undefined; }, { files: string[]; unit_id: string; name: string; required_lenses: string[]; risk_score?: number | undefined; kind?: string | undefined; critical_flows?: string[] | undefined; }>; export type AuditUnit = z.infer; export declare const UnitManifestSchema: z.ZodObject<{ units: z.ZodArray; files: z.ZodArray; risk_score: z.ZodOptional; required_lenses: z.ZodArray; critical_flows: z.ZodOptional>; }, "strict", z.ZodTypeAny, { files: string[]; unit_id: string; name: string; required_lenses: string[]; risk_score?: number | undefined; kind?: string | undefined; critical_flows?: string[] | undefined; }, { files: string[]; unit_id: string; name: string; required_lenses: string[]; risk_score?: number | undefined; kind?: string | undefined; critical_flows?: string[] | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { units: { files: string[]; unit_id: string; name: string; required_lenses: string[]; risk_score?: number | undefined; kind?: string | undefined; critical_flows?: string[] | undefined; }[]; }, { units: { files: string[]; unit_id: string; name: string; required_lenses: string[]; risk_score?: number | undefined; kind?: string | undefined; critical_flows?: string[] | undefined; }[]; }>; export type UnitManifest = z.infer; export interface FileCoverageRecord { path: string; total_lines: number; pass_id: string; lens?: string; agent_role?: string; } /** Single source of truth for coverage-matrix classification statuses (mirrors * the LENS_REGISTRY-derives-Lens pattern above). The value set is * {unclassified, classified} plus the audit-excluded subset of * FileDispositionStatus (excluded | generated | vendor | binary | doc_only) * plus the scope/trivial-audit statuses written by scope.ts * (out_of_scope_delta, out_of_scope_intent) and trivialAudit.ts * (excluded_trivial). The coverage_matrix JSON schema is GENERATED from * {@link CoverageMatrixSchema}, so it can never drift from this enum. */ export declare const ClassificationStatusSchema: z.ZodEnum<["unclassified", "classified", "excluded", "generated", "vendor", "binary", "doc_only", "out_of_scope_delta", "excluded_trivial", "out_of_scope_intent"]>; export type ClassificationStatus = z.infer; export declare const CoverageFileRecordSchema: z.ZodObject<{ path: z.ZodString; unit_ids: z.ZodArray; classification_status: z.ZodEnum<["unclassified", "classified", "excluded", "generated", "vendor", "binary", "doc_only", "out_of_scope_delta", "excluded_trivial", "out_of_scope_intent"]>; audit_status: z.ZodString; required_lenses: z.ZodArray; completed_lenses: z.ZodArray; }, "strip", z.ZodTypeAny, { path: string; unit_ids: string[]; required_lenses: string[]; classification_status: "excluded" | "generated" | "vendor" | "binary" | "doc_only" | "unclassified" | "classified" | "out_of_scope_delta" | "excluded_trivial" | "out_of_scope_intent"; audit_status: string; completed_lenses: string[]; }, { path: string; unit_ids: string[]; required_lenses: string[]; classification_status: "excluded" | "generated" | "vendor" | "binary" | "doc_only" | "unclassified" | "classified" | "out_of_scope_delta" | "excluded_trivial" | "out_of_scope_intent"; audit_status: string; completed_lenses: string[]; }>; export type CoverageFileRecord = z.infer; export declare const CoverageMatrixSchema: z.ZodObject<{ files: z.ZodArray; classification_status: z.ZodEnum<["unclassified", "classified", "excluded", "generated", "vendor", "binary", "doc_only", "out_of_scope_delta", "excluded_trivial", "out_of_scope_intent"]>; audit_status: z.ZodString; required_lenses: z.ZodArray; completed_lenses: z.ZodArray; }, "strip", z.ZodTypeAny, { path: string; unit_ids: string[]; required_lenses: string[]; classification_status: "excluded" | "generated" | "vendor" | "binary" | "doc_only" | "unclassified" | "classified" | "out_of_scope_delta" | "excluded_trivial" | "out_of_scope_intent"; audit_status: string; completed_lenses: string[]; }, { path: string; unit_ids: string[]; required_lenses: string[]; classification_status: "excluded" | "generated" | "vendor" | "binary" | "doc_only" | "unclassified" | "classified" | "out_of_scope_delta" | "excluded_trivial" | "out_of_scope_intent"; audit_status: string; completed_lenses: string[]; }>, "many">; }, "strip", z.ZodTypeAny, { files: { path: string; unit_ids: string[]; required_lenses: string[]; classification_status: "excluded" | "generated" | "vendor" | "binary" | "doc_only" | "unclassified" | "classified" | "out_of_scope_delta" | "excluded_trivial" | "out_of_scope_intent"; audit_status: string; completed_lenses: string[]; }[]; }, { files: { path: string; unit_ids: string[]; required_lenses: string[]; classification_status: "excluded" | "generated" | "vendor" | "binary" | "doc_only" | "unclassified" | "classified" | "out_of_scope_delta" | "excluded_trivial" | "out_of_scope_intent"; audit_status: string; completed_lenses: string[]; }[]; }>; export type CoverageMatrix = z.infer; export declare const AuditTaskSchema: z.ZodObject<{ task_id: z.ZodString; unit_id: z.ZodString; pass_id: z.ZodString; lens: z.ZodString; file_paths: z.ZodArray; file_line_counts: z.ZodOptional>; line_ranges: z.ZodOptional, "many">>; inputs: z.ZodOptional>; rationale: z.ZodString; priority: z.ZodOptional>; /** * Frozen, provider-neutral estimate of the content tokens this task's files * contribute to a review prompt. Seeded deterministically at planning * (byte-based) and refined/frozen by the estimate-review step. Authoritative * input to just-in-time dispatch packetization — see * spec/audit-workflow-design.md. */ token_estimate: z.ZodOptional; /** * Frozen, provider-neutral audit-risk score in [0,1] (likelihood × stakes of * latent defects). Seeded deterministically from priority/lens/tags and * refined/frozen by the estimate-review step. Drives task prioritization and * coherent review grouping; never an execution-selection decision. */ risk_estimate: z.ZodOptional; tags: z.ZodOptional>; status: z.ZodOptional>; completed_at: z.ZodOptional; completion_reason: z.ZodOptional; }, "strip", z.ZodTypeAny, { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }, { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }>; export type AuditTask = z.infer; export type Finding = SharedFinding; export declare const AuditVerificationSchema: z.ZodObject<{ verified: z.ZodBoolean; needs_followup: z.ZodBoolean; concerns: z.ZodOptional>; coverage_concerns: z.ZodOptional>; confidence_concerns: z.ZodOptional>; followup_tasks: z.ZodOptional; file_line_counts: z.ZodOptional>; line_ranges: z.ZodOptional, "many">>; inputs: z.ZodOptional>; rationale: z.ZodString; priority: z.ZodOptional>; /** * Frozen, provider-neutral estimate of the content tokens this task's files * contribute to a review prompt. Seeded deterministically at planning * (byte-based) and refined/frozen by the estimate-review step. Authoritative * input to just-in-time dispatch packetization — see * spec/audit-workflow-design.md. */ token_estimate: z.ZodOptional; /** * Frozen, provider-neutral audit-risk score in [0,1] (likelihood × stakes of * latent defects). Seeded deterministically from priority/lens/tags and * refined/frozen by the estimate-review step. Drives task prioritization and * coherent review grouping; never an execution-selection decision. */ risk_estimate: z.ZodOptional; tags: z.ZodOptional>; status: z.ZodOptional>; completed_at: z.ZodOptional; completion_reason: z.ZodOptional; }, "strip", z.ZodTypeAny, { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }, { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { verified: boolean; needs_followup: boolean; concerns?: string[] | undefined; coverage_concerns?: string[] | undefined; confidence_concerns?: string[] | undefined; followup_tasks?: { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }[] | undefined; }, { verified: boolean; needs_followup: boolean; concerns?: string[] | undefined; coverage_concerns?: string[] | undefined; confidence_concerns?: string[] | undefined; followup_tasks?: { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }[] | undefined; }>; export declare const AuditResultSchema: z.ZodObject<{ task_id: z.ZodString; unit_id: z.ZodString; pass_id: z.ZodString; lens: z.ZodString; agent_role: z.ZodOptional; file_coverage: z.ZodArray, "many">; findings: z.ZodArray; confidence: z.ZodEnum<["high", "medium", "low"]>; lens: z.ZodString; summary: z.ZodString; affected_files: z.ZodArray; line_end: z.ZodOptional; symbol: z.ZodOptional; quoted_text: z.ZodOptional; hash_at_plan_time: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; symbol?: string | undefined; line_start?: number | undefined; line_end?: number | undefined; quoted_text?: string | undefined; hash_at_plan_time?: string | undefined; }, { path: string; symbol?: string | undefined; line_start?: number | undefined; line_end?: number | undefined; quoted_text?: string | undefined; hash_at_plan_time?: string | undefined; }>, { path: string; symbol?: string | undefined; line_start?: number | undefined; line_end?: number | undefined; quoted_text?: string | undefined; hash_at_plan_time?: string | undefined; }, { path: string; symbol?: string | undefined; line_start?: number | undefined; line_end?: number | undefined; quoted_text?: string | undefined; hash_at_plan_time?: string | undefined; }>, "many">; impact: z.ZodOptional; likelihood: z.ZodOptional; evidence: z.ZodOptional>; reproduction: z.ZodOptional>; systemic: z.ZodOptional; related_findings: z.ZodOptional>; theme_id: z.ZodOptional; blast_radius: z.ZodOptional; evidence_grounded: z.ZodOptional; grounding: z.ZodOptional; reason: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "grounded" | "ungrounded" | "refuted"; reason?: string | undefined; }, { status: "grounded" | "ungrounded" | "refuted"; reason?: string | undefined; }>>; executable_anchor: z.ZodOptional; confirm_if: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"exit_zero">; }, "strip", z.ZodTypeAny, { kind: "exit_zero"; }, { kind: "exit_zero"; }>, z.ZodObject<{ kind: z.ZodLiteral<"exit_nonzero">; }, "strip", z.ZodTypeAny, { kind: "exit_nonzero"; }, { kind: "exit_nonzero"; }>, z.ZodObject<{ kind: z.ZodLiteral<"output_includes">; text: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "output_includes"; text: string; }, { kind: "output_includes"; text: string; }>, z.ZodObject<{ kind: z.ZodLiteral<"output_excludes">; text: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "output_excludes"; text: string; }, { kind: "output_excludes"; text: string; }>]>; claim: z.ZodOptional; }, "strip", z.ZodTypeAny, { command: string[]; confirm_if: { kind: "exit_zero"; } | { kind: "exit_nonzero"; } | { kind: "output_includes"; text: string; } | { kind: "output_excludes"; text: string; }; claim?: string | undefined; }, { command: string[]; confirm_if: { kind: "exit_zero"; } | { kind: "exit_nonzero"; } | { kind: "output_includes"; text: string; } | { kind: "output_excludes"; text: string; }; claim?: string | undefined; }>>; contract_goal_id: z.ZodOptional; contract_obligation_ids: z.ZodOptional>; verification_obligation_ids: z.ZodOptional>; targeted_commands: z.ZodOptional>; analyzer_provenance: z.ZodOptional; path: z.ZodString; snippet_hash: z.ZodString; }, "strict", z.ZodTypeAny, { path: string; analyzer_id: string; snippet_hash: string; rule?: string | undefined; }, { path: string; analyzer_id: string; snippet_hash: string; rule?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; confidence: "high" | "low" | "medium"; title: string; category: string; severity: "high" | "low" | "critical" | "medium" | "info"; lens: string; summary: string; affected_files: { path: string; symbol?: string | undefined; line_start?: number | undefined; line_end?: number | undefined; quoted_text?: string | undefined; hash_at_plan_time?: string | undefined; }[]; impact?: string | undefined; likelihood?: string | undefined; evidence?: string[] | undefined; reproduction?: string[] | undefined; systemic?: boolean | undefined; related_findings?: string[] | undefined; theme_id?: string | undefined; blast_radius?: number | undefined; evidence_grounded?: boolean | undefined; grounding?: { status: "grounded" | "ungrounded" | "refuted"; reason?: string | undefined; } | undefined; executable_anchor?: { command: string[]; confirm_if: { kind: "exit_zero"; } | { kind: "exit_nonzero"; } | { kind: "output_includes"; text: string; } | { kind: "output_excludes"; text: string; }; claim?: string | undefined; } | undefined; contract_goal_id?: string | undefined; contract_obligation_ids?: string[] | undefined; verification_obligation_ids?: string[] | undefined; targeted_commands?: string[] | undefined; analyzer_provenance?: { path: string; analyzer_id: string; snippet_hash: string; rule?: string | undefined; } | undefined; }, { id: string; confidence: "high" | "low" | "medium"; title: string; category: string; severity: "high" | "low" | "critical" | "medium" | "info"; lens: string; summary: string; affected_files: { path: string; symbol?: string | undefined; line_start?: number | undefined; line_end?: number | undefined; quoted_text?: string | undefined; hash_at_plan_time?: string | undefined; }[]; impact?: string | undefined; likelihood?: string | undefined; evidence?: string[] | undefined; reproduction?: string[] | undefined; systemic?: boolean | undefined; related_findings?: string[] | undefined; theme_id?: string | undefined; blast_radius?: number | undefined; evidence_grounded?: boolean | undefined; grounding?: { status: "grounded" | "ungrounded" | "refuted"; reason?: string | undefined; } | undefined; executable_anchor?: { command: string[]; confirm_if: { kind: "exit_zero"; } | { kind: "exit_nonzero"; } | { kind: "output_includes"; text: string; } | { kind: "output_excludes"; text: string; }; claim?: string | undefined; } | undefined; contract_goal_id?: string | undefined; contract_obligation_ids?: string[] | undefined; verification_obligation_ids?: string[] | undefined; targeted_commands?: string[] | undefined; analyzer_provenance?: { path: string; analyzer_id: string; snippet_hash: string; rule?: string | undefined; } | undefined; }>, "many">; /** * Worker-authored affirmation that an EMPTY `findings` array is a reviewed * result, not a silent failure. REQUIRED when `findings` is empty and refused * otherwise (enforced at ingest by `validateResultFindings`, which is the gate * workers actually hit — the zod contract only advertises the field). * * Exists because a lane that errors, truncates, or returns an empty completion * produces output shaped exactly like a genuine clean review, and nothing * downstream could tell the two apart: a broken lane read as a weak one. An * affirmation cannot be produced by accident, so a zero-finding result now * carries positive evidence that a review happened. */ reviewed_clean: z.ZodOptional; notes: z.ZodOptional>; requires_followup: z.ZodOptional; followup_tasks: z.ZodOptional>; verification: z.ZodOptional>; coverage_concerns: z.ZodOptional>; confidence_concerns: z.ZodOptional>; followup_tasks: z.ZodOptional; file_line_counts: z.ZodOptional>; line_ranges: z.ZodOptional, "many">>; inputs: z.ZodOptional>; rationale: z.ZodString; priority: z.ZodOptional>; /** * Frozen, provider-neutral estimate of the content tokens this task's files * contribute to a review prompt. Seeded deterministically at planning * (byte-based) and refined/frozen by the estimate-review step. Authoritative * input to just-in-time dispatch packetization — see * spec/audit-workflow-design.md. */ token_estimate: z.ZodOptional; /** * Frozen, provider-neutral audit-risk score in [0,1] (likelihood × stakes of * latent defects). Seeded deterministically from priority/lens/tags and * refined/frozen by the estimate-review step. Drives task prioritization and * coherent review grouping; never an execution-selection decision. */ risk_estimate: z.ZodOptional; tags: z.ZodOptional>; status: z.ZodOptional>; completed_at: z.ZodOptional; completion_reason: z.ZodOptional; }, "strip", z.ZodTypeAny, { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }, { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { verified: boolean; needs_followup: boolean; concerns?: string[] | undefined; coverage_concerns?: string[] | undefined; confidence_concerns?: string[] | undefined; followup_tasks?: { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }[] | undefined; }, { verified: boolean; needs_followup: boolean; concerns?: string[] | undefined; coverage_concerns?: string[] | undefined; confidence_concerns?: string[] | undefined; followup_tasks?: { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }[] | undefined; }>>; run_id: z.ZodOptional; submitted_at: z.ZodOptional; instance_id: z.ZodOptional; identity_key: z.ZodOptional; idempotency_key: z.ZodOptional; emit_source: z.ZodOptional>; attempt: z.ZodOptional; }, "strip", z.ZodTypeAny, { unit_id: string; lens: string; findings: { id: string; confidence: "high" | "low" | "medium"; title: string; category: string; severity: "high" | "low" | "critical" | "medium" | "info"; lens: string; summary: string; affected_files: { path: string; symbol?: string | undefined; line_start?: number | undefined; line_end?: number | undefined; quoted_text?: string | undefined; hash_at_plan_time?: string | undefined; }[]; impact?: string | undefined; likelihood?: string | undefined; evidence?: string[] | undefined; reproduction?: string[] | undefined; systemic?: boolean | undefined; related_findings?: string[] | undefined; theme_id?: string | undefined; blast_radius?: number | undefined; evidence_grounded?: boolean | undefined; grounding?: { status: "grounded" | "ungrounded" | "refuted"; reason?: string | undefined; } | undefined; executable_anchor?: { command: string[]; confirm_if: { kind: "exit_zero"; } | { kind: "exit_nonzero"; } | { kind: "output_includes"; text: string; } | { kind: "output_excludes"; text: string; }; claim?: string | undefined; } | undefined; contract_goal_id?: string | undefined; contract_obligation_ids?: string[] | undefined; verification_obligation_ids?: string[] | undefined; targeted_commands?: string[] | undefined; analyzer_provenance?: { path: string; analyzer_id: string; snippet_hash: string; rule?: string | undefined; } | undefined; }[]; task_id: string; pass_id: string; file_coverage: { path: string; total_lines: number; }[]; notes?: string[] | undefined; run_id?: string | undefined; attempt?: number | undefined; verification?: { verified: boolean; needs_followup: boolean; concerns?: string[] | undefined; coverage_concerns?: string[] | undefined; confidence_concerns?: string[] | undefined; followup_tasks?: { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }[] | undefined; } | undefined; followup_tasks?: string[] | undefined; agent_role?: string | undefined; reviewed_clean?: boolean | undefined; requires_followup?: boolean | undefined; submitted_at?: string | undefined; instance_id?: string | undefined; identity_key?: string | undefined; idempotency_key?: string | undefined; emit_source?: "base" | "deepening" | "steward" | "redispatch" | undefined; }, { unit_id: string; lens: string; findings: { id: string; confidence: "high" | "low" | "medium"; title: string; category: string; severity: "high" | "low" | "critical" | "medium" | "info"; lens: string; summary: string; affected_files: { path: string; symbol?: string | undefined; line_start?: number | undefined; line_end?: number | undefined; quoted_text?: string | undefined; hash_at_plan_time?: string | undefined; }[]; impact?: string | undefined; likelihood?: string | undefined; evidence?: string[] | undefined; reproduction?: string[] | undefined; systemic?: boolean | undefined; related_findings?: string[] | undefined; theme_id?: string | undefined; blast_radius?: number | undefined; evidence_grounded?: boolean | undefined; grounding?: { status: "grounded" | "ungrounded" | "refuted"; reason?: string | undefined; } | undefined; executable_anchor?: { command: string[]; confirm_if: { kind: "exit_zero"; } | { kind: "exit_nonzero"; } | { kind: "output_includes"; text: string; } | { kind: "output_excludes"; text: string; }; claim?: string | undefined; } | undefined; contract_goal_id?: string | undefined; contract_obligation_ids?: string[] | undefined; verification_obligation_ids?: string[] | undefined; targeted_commands?: string[] | undefined; analyzer_provenance?: { path: string; analyzer_id: string; snippet_hash: string; rule?: string | undefined; } | undefined; }[]; task_id: string; pass_id: string; file_coverage: { path: string; total_lines: number; }[]; notes?: string[] | undefined; run_id?: string | undefined; attempt?: number | undefined; verification?: { verified: boolean; needs_followup: boolean; concerns?: string[] | undefined; coverage_concerns?: string[] | undefined; confidence_concerns?: string[] | undefined; followup_tasks?: { unit_id: string; file_paths: string[]; lens: string; rationale: string; task_id: string; pass_id: string; status?: "complete" | "pending" | undefined; tags?: string[] | undefined; token_estimate?: number | undefined; completed_at?: string | undefined; file_line_counts?: Record | undefined; inputs?: Record | undefined; line_ranges?: { path: string; end: number; start: number; }[] | undefined; priority?: "high" | "low" | "medium" | undefined; risk_estimate?: number | undefined; completion_reason?: string | undefined; }[] | undefined; } | undefined; followup_tasks?: string[] | undefined; agent_role?: string | undefined; reviewed_clean?: boolean | undefined; requires_followup?: boolean | undefined; submitted_at?: string | undefined; instance_id?: string | undefined; identity_key?: string | undefined; idempotency_key?: string | undefined; emit_source?: "base" | "deepening" | "steward" | "redispatch" | undefined; }>; export type AuditResult = z.infer; //# sourceMappingURL=types.d.ts.map