Get Available Resources Build a conservative picture of resources available to the current process . Keep host inventory, process affinity, cgroup/container limits, scheduler allocation, and accelerator runtime usability separate. Safety contract Follow these rules: - Run detection when the user requests it or a specific workload needs resource planning. Do not persist a fingerprint for every scientific task. - Use stdout by default. Persist only when the user chooses an explicit generic local filename. - Do not run stress tests, benchmarks, large allocations, write probes, device resets, dri…