/** * Adversarial case → GoldenTrace conversion (RuleHost MVP Activation, ADR-0014 * Amendment 2026-06-17, PRD Decision 11d). * * Adversarial cases are generated by the Evaluator LLM to attack the Artificer's * generated code. Every adversarial case is conceptually a NEGATIVE expectation * (the attack should reveal a gap), so the converted GoldenTrace marks all * cases kind='negative'. * * IMPORTANT design contract: the converted trace intentionally does NOT pass * `validateGoldenTrace()` on its own, because it has no positive case. The * caller (Evaluator.succeedTask, Phase 5) must append a positive case (or * merge with the Artificer's golden trace) before the combined trace can be * replayed. This is pinned by adversarial-case.test.ts. */ import type { GoldenTrace } from '../golden-trace.js'; export type AdversarialConversionResult = { readonly ok: true; readonly trace: GoldenTrace; } | { readonly ok: false; readonly reason: string; }; /** * Convert AdversarialCase[] (all attacks, all negative) into a GoldenTrace. * * Does NOT synthesize a positive case — see file header. The caller is * responsible for ensuring the replayed trace has ≥1 positive case, either * by merging with the Artificer's golden trace or appending one. */ export declare function adversarialCasesToGoldenTrace(cases: unknown): AdversarialConversionResult; //# sourceMappingURL=adversarial-case.d.ts.map