pub fn effective_permits(requested: usize) -> usizeExpand description
G42/S3 BLOCO 2: effective permit count.
permits = clamp(requested, 1, 32) ∧ cpus ∧ ram_livre*0.5/RSS ∧ joint
The last term is the joint cap: --max-concurrency and --llm-parallelism
are each validated alone, so before
crate::constants::joint_parallelism_ceiling existed their PRODUCT could
authorise 2 × nCPUs × 32 workers on one host. The RSS term uses
crate::constants::llm_worker_rss_mb, whose default is an ESTIMATE and not
a measurement — see that constant’s docs.