{"id":"gate-modules-auto-records-then-reads","text":"Using `gate_modules=\"auto\"` records module usage on the first run to `.ftl2-modules.txt` and reads from that file on subsequent runs.","truth_value":"IN","source":"entries/2026/05/11/api-automation-init.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"# From ftl2-servercraft/__init__.py — first run records, subsequent runs read\nasync with automation(\n    gate_modules=\"auto\",          # records to .ftl2-modules.txt on first run\n    gate_dependencies=[\"httpx\"],  # extra deps bundled into gate zipapp\n) as ftl:\n    await script.provision(ftl, config, log)"},"explanation":{"steps":[{"node":"gate-modules-auto-records-then-reads","truth_value":"IN","reason":"premise"}]}}