--- status: accepted date: 2026-06-25 --- # Keep the workflow CLI in Python The deterministic workflow logic (introspection, value sampling, LSH and RRF search, schema linking, SQL validation and preview) lives in a Python CLI inside the harness, ported from ChironeWp3, and the gate calls it through `bash`. The Node backend does not reimplement it. Porting the existing SQLAlchemy, LSH and schema-linking code was less risky than a TypeScript rewrite, and it kept drivers such as Informix, which have no usable Node driver, available. ## Consequences The harness has two runtimes (Python and the JavaScript gate), and the CLI's `--json` output is a machine contract between them and the backend. The backend later gained its own database access for the Metadata Catalog (ADR-0028); the NL→SQL workflow logic remains in Python.