/**
 * Research protocol — thin wrapper delegating to the canonical pure validator.
 *
 * @task T4804
 * @task T260
 */
import { validateResearchProtocol, } from '../../orchestration/protocol-validators.js';
import { loadManifestEntryByTaskId, loadManifestEntryFromFile, throwIfStrictFailed, } from './_shared.js';
/** Validate research protocol for a task. */
export async function validateResearchTask(taskId, opts) {
    const entry = loadManifestEntryByTaskId(taskId);
    const result = validateResearchProtocol(entry, opts);
    throwIfStrictFailed(result, opts, 'research', taskId);
    return result;
}
/** Validate research protocol from a manifest file. */
export async function checkResearchManifest(manifestFile, opts) {
    const entry = loadManifestEntryFromFile(manifestFile);
    const taskId = entry.linked_tasks?.[0] ?? 'UNKNOWN';
    const result = validateResearchProtocol(entry, opts);
    throwIfStrictFailed(result, opts, 'research', taskId);
    return result;
}
//# sourceMappingURL=research.js.map