import type { OrgxAgentDomain } from "../contracts/types.js"; export type RetroQualityRubricInput = { success: boolean; hadError: boolean; errorMessage?: string | null; tokens?: number | null; costUsd?: number | null; decisionsCount?: number; followUpsCount?: number; whatWentWrongCount?: number; /** Agent domain for domain-specific scoring modifiers */ domain?: OrgxAgentDomain | null; /** Artifact metadata from the registered atomic unit */ artifactMetadata?: Record | null; }; export type RetroQualityRubricResult = { score: number; reasons: string[]; }; /** * Compute domain-specific quality modifier based on artifact metadata. * Returns delta (positive = bonus, negative = penalty) and reasons. */ export declare function computeDomainQualityModifier(domain: OrgxAgentDomain | null | undefined, artifactMetadata: Record | null | undefined): { delta: number; reasons: string[]; }; export declare function computeRetroQualityRubricScore(input: RetroQualityRubricInput): RetroQualityRubricResult; export declare function computeRetroQualityWithLlm(input: RetroQualityRubricInput & { executionContext?: string | null; }): Promise;