Download week18.py, save it in an exercise folder, and run python week18.py --lesson 2. This single practice is a deterministic policy fixture, not the container runtime probe. It uses a small processor and Python's standard library, finishes within seconds, and performs no real export or model call.
The request names project p1, actor worker1, operation export7, destination local-report, a digest, and size 16. The approval copies those scoped fields and adds expires=100 and max_size=20. dict(request, destination='other') creates a new dictionary with one changed value while leaving the original unchanged.
authorized compares five exact fields, checks now is before expiry, and checks size is within the maximum. all requires every field comparison to match. Assertions allow the original at time 90 and deny changed destination, cross-project p2, time 100, and operation export8. Expected PASS lists these rejection classes. This establishes the represented policy decisions. The fixture does not consume single-use approvals durably, contact an export service, or establish process isolation; those claims require their respective integrations.