/** * Deterministic claim splitting + claim↔evidence matching for * `investigate --verify` (investigate-verify lane, Ticket T1; DESIGN * D2, PRD AC-2/AC-4/AC-5). * * splitClaims: the extract grammar's terminator rules — the SHARED * splitWindows seam (lib/investigate-extract.ts, issue #276): `[.!?]` * followed by a space (or end of input), the unconditional * ideographic set 。!?, or a newline; the terminator char belongs * to the window, the separator run (spaces/tabs) to neither. The * splitter is PURE: the ≤ 8 claim cap is the CALLER's fail-loud * validation (commands/investigate.ts, T3) — a 9-sentence statement * returns 9 claims here, never a throw, never a truncation. * * matchClaimsToEvidence: zero-model, deterministic. Per claim — * terms = normalizeTerms over the claim's stopword-filtered tokens * (reused from lib/investigate-extract.ts, imports only); a passage * matches when any term appears whole-word case-folded in * passage.quote; the negation-cue scan runs over MATCHING passages * only; evidence pointers land in first-encounter order (source * order, then passage order); negationCues counts cue-bearing * matching passages. * * Byte-stable: no clocks, no randomness, no locale-dependent casing * beyond toLowerCase. */ import type { EvidenceSource } from "../capabilities/investigation.js"; /** * The verify-mode claim cap (PRD AC-1: > 8 sentence-claims is a * fail-loud VALIDATION_ERROR, the R1 pipe-cap precedent — fail, never * truncate). Exported so the command's error message names the cap * from the single source of truth. */ export declare const MAX_VERIFY_CLAIMS = 8; /** * Split a statement into sentence-claims: extract-grammar windows, * whitespace-only sentences dropped, quotes trimmed. Deterministic — * the same statement yields the identical claim array byte-stably. * `|` needs no handling: claims split on sentences, never pipes. */ export declare function splitClaims(statement: string): string[]; /** * The negation-cue list behind `contradicted`. FROZEN and versioned: * additions change verdicts and are release-visible (the parent-owned * CHANGELOG bullet names them). Every cue is a LITERAL whole-word * string (fix-round m1: the parenthesized inflection grammar is gone — * variants spell out; a missing-absence family covers "without", * "lacks", "untrue", "false", "absent", "rarely", "seldom"). * * DISCLOSED as hint-grade: `contradicted` means "a term-matching * passage carries a negation cue", NOT semantic contradiction — * semantic judgment stays with the calling agent (agent-synthesis * contract); the per-claim cue count exists for exactly that * re-judgment. */ export declare const NEGATION_CUES: readonly string[]; /** The deterministic verdict vocabulary (PRD AC-5). */ export type ClaimVerdict = "corroborated" | "contradicted" | "unresolved"; /** One evidence pointer into the pack's own sources array. */ export interface ClaimEvidencePointer { readonly sourceIndex: number; readonly passageIndex: number; } /** One claim row: text, verdict, cue count, evidence pointers. */ export interface ClaimRow { readonly text: string; readonly verdict: ClaimVerdict; /** Number of cue-bearing MATCHING passages (agent re-judgment input). */ readonly negationCues: number; readonly evidence: readonly ClaimEvidencePointer[]; } /** The additive verify block (PRD AC-6): statement + per-claim rows. */ export interface VerifyBlock { readonly statement: string; readonly claims: readonly ClaimRow[]; } export interface MatchClaimsArgs { readonly statement: string; readonly claims: readonly string[]; readonly sources: readonly EvidenceSource[]; } /** * Claim terms: lowercase tokens via the shared Unicode tokenizer * (issue #271, apostrophe grammar — ASCII behavior byte-identical), * stopword-filtered, normalizeTerms-dedupe. */ /** Exported for the #271 term-derivation pin (pure; test-observable). */ export declare function claimTerms(claim: string): string[]; /** * Match claims to evidence: per claim, every (source, passage) whose * quote contains ≥ 1 claim term whole-word case-folded becomes an * evidence pointer in first-encounter order; the cue scan runs over * matching passages only; the verdict follows PRD-5 (corroborated = * matches + 0 cues; contradicted = ≥ 1 cue-bearing match; unresolved * = no matches). */ export declare function matchClaimsToEvidence({ statement, claims, sources }: MatchClaimsArgs): VerifyBlock; //# sourceMappingURL=investigate-claims.d.ts.map