Download week18.py, save it in an exercise folder, and run python week18.py --lesson 1. The default processor-only fixture finishes in seconds and explicitly reports that runtime isolation is NOT completed. This is the single practice workflow; its second stage requires Docker Desktop configured for Linux containers, a working engine, and the Python image download. No model or account is needed for the script. Do not treat unavailable runtime setup as a passed probe.
From PowerShell in that exercise folder, prepare only a disposable probe directory, then run:
New-Item -ItemType Directory -Force restricted-worker
Copy-Item -LiteralPath ./week18.py -Destination ./restricted-worker/week18.py
Set-Content -LiteralPath ./restricted-worker/allowed.txt -Value 'synthetic allowed' -Encoding ascii
$probePath = (Resolve-Path ./restricted-worker).Path
docker pull python:3.11-slim
docker run --rm --network none --read-only --user 65534:65534 --cap-drop ALL --security-opt no-new-privileges --pids-limit 8 --memory 128m --memory-swap 128m --cpus 1 --tmpfs /tmp:rw,noexec,nosuid,size=16m --mount "type=bind,source=$probePath,target=/work,readonly" python:3.11-slim python -c "import resource, runpy, sys; resource.setrlimit(resource.RLIMIT_AS, (100000000,100000000)); resource.setrlimit(resource.RLIMIT_NPROC, (1,1)); sys.argv=['/work/week18.py','--lesson','1','--runtime-probe']; runpy.run_path('/work/week18.py', run_name='__main__')"
The image download needs network and disk space; the worker itself has no external network. Record the image digest for reproducibility. The trusted bootstrap uses Python's standard-library resource module to lower both soft and hard address-space limits to 100,000,000 bytes and process limits to one before running the fixed worker through runpy.run_path. sys.argv supplies its command arguments. Setting the process limit after the initial Python process starts avoids startup failures caused by shared user-identity accounting. The kernel enforces the lowered hard limits; this non-root worker with dropped capabilities cannot raise them again. Docker separately enforces an outer eight-process bound and 128-mebibyte memory ceiling through control groups. The probe expects control groups version 2, a kernel resource-accounting interface, and verifies memory.max plus actual bounded allocation denial. A failed assertion remains an incomplete check requiring diagnosis, never permission to remove a limit and report success.