// engine/teammate-router/roles/test-architect.ts — SPEC-750
// TestArchitect role definition for TDD strict mode.
import { RedTestsHandoffSchema } from '../../../engine/handoff-artifacts/schemas/red-tests-handoff.js';
import { buildTestArchitectPrompt } from '../prompts/test-architect.js';
export { buildTestArchitectPrompt };
/**
 * Validate a handoff JSON blob as a RedTestsHandoff.
 * Returns the typed handoff or an error string.
 */
export function validateRedTestsHandoff(raw) {
    const result = RedTestsHandoffSchema.safeParse(raw);
    if (result.success) {
        return { ok: true, handoff: result.data };
    }
    const errors = result.error.issues.map((i) => `${i.path.join('.')}: ${i.message}`).join('; ');
    return { ok: false, error: `Invalid RedTestsHandoff: ${errors}` };
}
//# sourceMappingURL=test-architect.js.map