/** * Pivotal-decision evaluation — scores whether an autonomous agent made the * senior-correct call at a decision fork under the constraint active at decision time. * * Deterministic rubric is the default and fallback; optional LLM refinement reuses * the #143 bug-report judge core (pinned haiku, temp 0, delimitUntrusted). */ import type { LlmProvider } from '../../llm/provider.interface.js'; import { type DecisionFork, type DecisionScoreResult, type ScoredDecisionFork, type ScoreDecisionsInput } from '../../schemas/decision-score.schema.js'; export interface ScoreDecisionsOptions { llm?: Pick; forceDeterministic?: boolean; /** Override allowed root for forksPath validation (tests). */ allowedRoot?: string; } export declare function resolveAllowedForksRoot(): string; /** * Traversal-validated forksPath: absolute, regular file, size cap, within allowed root. */ export declare function validateForksPath(forksPath: string, allowedRoot?: string): Promise; export declare function loadDecisionForks(forksPath: string, allowedRoot?: string): Promise; export declare function scoreForkDeterministic(fork: DecisionFork): ScoredDecisionFork; /** * Split prompt: the fixed rubric/instructions go to `system`, the per-call data * (deterministic baseline + UNTRUSTED, neutralized+delimited fork record) to `user`. */ export declare function buildDecisionJudgePrompt(fork: DecisionFork, baseline: ScoredDecisionFork): { system: string; user: string; }; export declare function parseDecisionJudgeResponse(raw: string): Pick; /** * Score decision forks from a JSONL file. * Default path is deterministic; LLM refinement when enableLlmJudge and API key present. */ export declare function scoreDecisions(input: ScoreDecisionsInput, options?: ScoreDecisionsOptions): Promise; //# sourceMappingURL=score-decisions.d.ts.map