data2dsl

Ticket 055: Query Template Generator and Tooling

Goal and scope

Implement Query Template Generator and CLI integration:

  1. Implement src/data2dsl_generator.py with generate_query_template() generating canonical autogrammar.data2dsl/query/v0 templates based on source adapter kind, metric ID, and comparison policy.
  2. Expose CLI subcommand data2dsl generate-query --source <kind> --metric <id> [--value-kind <kind>] [--equality <eq>] [--output <file>].
  3. Add comprehensive unit tests in tests/test_generator.py.
  4. Verify all tests pass cleanly and deterministic governance gate passes (GOV-PASS).

Acceptance criteria

Participants