gate-modules-auto-records-then-reads

Status: IN

Using `gate_modules="auto"` records module usage on the first run to `.ftl2-modules.txt` and reads from that file on subsequent runs.

Source: entries/2026/05/11/api-automation-init.md

Example

# From ftl2-servercraft/__init__.py — first run records, subsequent runs read
async with automation(
    gate_modules="auto",          # records to .ftl2-modules.txt on first run
    gate_dependencies=["httpx"],  # extra deps bundled into gate zipapp
) as ftl:
    await script.provision(ftl, config, log)

JSON