/** * wrfc-controller-test-support.ts * * Test-only construction seam for WrfcController. `skipClaimVerification` * disables the phantom-work guard (verifyEngineerClaims) and must NEVER be set * by production code, so it is not a public constructor option. This factory is * the sole sanctioned path that injects it, named `…ForTest` per the repo's * test-seam idiom (cf. `buildFromFilesForTest`, `resolveSpecifierForTest`). * Production code calls `new WrfcController(...)` directly and never reaches here. */ import type { AgentMessageBus } from './message-bus.js'; import type { RuntimeEventBus } from '../runtime/events/index.js'; import { WrfcController } from './wrfc-controller.js'; /** * Construct a WrfcController with test-only affordances. The `skipClaimVerification` * flag rides the internal seam the constructor reads via a narrow cast; every * other field is the ordinary public constructor deps. */ export declare function createWrfcControllerForTest(runtimeBus: RuntimeEventBus, messageBus: Pick, deps: ConstructorParameters[2] & { readonly skipClaimVerification?: boolean; }): WrfcController; /** One recorded planned-fix invocation the stub runner saw. */ export interface StubFixRunInput { readonly chainId: string; readonly originalTask: string; readonly review: import('./completion-report.js').ReviewerReport; readonly attempt: number; } /** * Install a scripted FixWorkstreamRunner on a controller under test (the * planned-fix path that replaced the single-fixer prompt). Behaviors: * - 'merged' (default): every cycle resolves merged, the controller proceeds * to the terminal contract re-review (a fresh reviewer spawn the harness * can complete); * - 'failed': every cycle resolves a structured tasks-failed outcome; * - 'pending': the promise never settles, the chain stays honestly 'fixing'. * Returns the recorded invocations for assertions. */ export declare function installStubFixRunner(controller: WrfcController, behavior?: 'merged' | 'failed' | 'pending'): StubFixRunInput[]; //# sourceMappingURL=wrfc-controller-test-support.d.ts.map