Three loops. Discover snapshots the page, extracts elements, deduplicates. Compose builds a Gauge spec from the step catalog ("Click X", "Enter Y into Z", "Dump page snapshot"). Verify runs the spec, checks the result, iterates. Locator strategy is data-testid and id only; no fragile XPaths. The locator JSON is the single source of truth, and the same JSON yields more than a dozen derived test cases without manual scripting.