# Strict offline, verified against a real child process (checklist U08) # repo: f48650a020394c59b640dc2cdd5b3ff9f42b93b9 # The claim: under --offline, nothing in the process tree reaches the network. The test spawns an # actual Python child with the environment child_env() builds and asks the child what it sees. offline=False: HF_HUB_OFFLINE None TRANSFORMERS_OFFLINE None PIP_NO_INDEX None NO_PROXY None STRATA_OFFLINE None offline=True: HF_HUB_OFFLINE '1' TRANSFORMERS_OFFLINE '1' PIP_NO_INDEX '1' NO_PROXY '*' STRATA_OFFLINE '1' A profile cannot remove the policy by naming the same variable: profile asked HF_HUB_OFFLINE=0 -> '1' (the policy is applied last)