# Resource-Aware Scheduling

`cain_workforce/resource.py` estimates task cost, caps concurrent execution to CPU/RAM capacity, refuses work whose
estimate exceeds its lease, and sizes leases from the estimate. It never grants authority.

Measured (`artifacts/e72/resource-scheduling.json`):

| Metric | Value |
|---|---|
| Workers present | 64 |
| Admission cap | 16 |
| Max observed busy | 16 |
| Admitted / rejected | 1,008 / 1,917 |
| Lease-expiry events | 0 |
| Verified tasks | 1,000 |
| Mission | COMPLETED |
| Evidence | VERIFIED |

This directly addresses the E71 500-worker failure (lease expiry under CPU oversubscription).
