A reproducible run names the interpreter, dependency versions, input cases, configuration, commands, expected invariants, and cleanup behavior. The starter uses only the Python standard library, so a clean environment needs no model download or account. Save the script in a local folder and run it from that folder.
http.server provides the listener, urllib.request sends actual client calls, threading runs the listener temporarily, and sqlite3 persists state. contextlib.closing closes database connections in addition to transaction handling. This matters on Windows because an open connection can prevent temporary database deletion. tempfile creates an isolated directory; the script cleans it after verification.
The server binds to loopback and an operating-system-selected port, then shuts down and joins its worker thread. No permanent daemon remains. Printed results are the retained evidence because the temporary database is removed. If you add an optional persistent output path, document its contents and protect sensitive records. A clean reproduction should fail clearly on a missing dependency or unsupported integration instead of silently substituting a fake success.