import { runVerificationDag } from '../verification/verification-worker-pool.js';
export async function runNarutoVerificationPool(dag, governor, opts = {}) {
    const safeConcurrency = Math.max(1, governor.verification_parallel);
    const result = await runVerificationDag(dag, {
        ...(opts.cwd ? { cwd: opts.cwd } : {}),
        ...(opts.logDir ? { logDir: opts.logDir } : {}),
        concurrency: safeConcurrency
    });
    return {
        ...result,
        naruto_schema: 'sks.naruto-verification-pool.v1',
        safe_concurrency: safeConcurrency,
        cpu_heavy_cap_respected: safeConcurrency <= Math.max(1, governor.hardware.cpu_core_count * 2),
        io_heavy_cap_respected: governor.backpressure !== 'saturated',
        api_rate_cap_respected: safeConcurrency <= Math.max(1, governor.remote_codex_parallel)
    };
}
//# sourceMappingURL=naruto-verification-pool.js.map