Milestones
List view
Goal: Acceptance criteria: - Deferred, off the critical path (design.md §8 Future, §4.6). Subissues: the physical fused-contraction 'einsum' operator; more v2 architectures (conv, normalization variants); the C++/cxx.rs hybrid for bare grad() in DuckDB; ddx-pg (Postgres via pgrx); higher-order AD over an emitted backward plan.
No due date•1/8 issues closedGoal: Acceptance criteria: - Extend v1's rule set (§3.6), add cross-engine + convention-pinning tests, benchmark expression swell (§3.7), and finalize docs. Exit: the v1 surface is complete per §3.6, cross-engine equivalence holds vs JAX, conventions are pinned by tests, and the swell cliff is measured not guessed (design.md §8 M6, §5).
No due date•2/7 issues closedgrad, vjp and jvp on DuckDB-Python, the short-term target, which is how xarray-sql reaches DuckDB. DuckDB's own Substrait producer plans each query, on a connection that mirrors the caller's catalog with schemas only (it refuses an Arrow-registered scan otherwise). ddx-ad writes each step of the program as SQL, which runs on the caller's own connection, since DuckDB's Substrait consumer sees only committed persistent tables and rejects window functions. Exit: xarray-sql's ML demos (xqlsystems/xarray-sql#269) differentiate on their DuckDB host, checked against JAX (#150). A dedicated community extension is deferred (#151). (docs/design.md, Milestones)
No due date•9/11 issues closedGoal: Acceptance criteria: - vjp_query(plan: &Plan, wrt: &[RelRef]) -> BackwardProgram: walk a marker-tagged Substrait plan in reverse topological order, apply each node's transpose rule, accumulate cotangents (fan-in via elementwise add), and emit a sequence of named materializable plans (the tape). Runs first on DataFusion via its own from_substrait (design.md §4.4–§4.5). Exit criteria (design.md §8 M4): train the nn.py MLP with gradients EMITTED by ddx.vjp (not hand-written), matching the demo and JAX.
No due date•3/3 issues closedGoal: Acceptance criteria: - Lift differentiation from scalar expressions to whole queries: register the extension-function markers and implement the five transpose rules over substrait::proto (design.md §4.2–§4.3). ddx-ad depends on substrait only (symmetric with ddx-core's sqlparser-only). Exit criteria (design.md §8 M3): - The rules reproduce jax.grad on the MLP, attention, and Route fixtures (already machine-exact by hand in docs/spikes/). - Markers round-trip through both engines' Substrait implementations (already verified in substrait_ad_marker_spike.py).
No due date•6/6 issues closedGoal: Acceptance criteria: - Ship v1 on the first acceptance target (xarray-sql / DataFusion), both the Python text-rewrite path and the native in-engine bridge. Exit criteria (design.md §8 M2): - xarray-sql green on ddx-core (vs JAX, no regressions), with its vendored autograd.rs replaced by ddxdb. - Bare grad() runs end-to-end through the AnalyzerRule in a native DataFusion test. Subissues cover: the ddxdb wheel, the xarray-sql re-integration, the Path B AnalyzerRule bridge, the Path A ddx_sql helper, and the minimal JAX numeric-agreement harness (pulled forward from M6 because this milestone's exit gate depends on it).
No due date•4/5 issues closedQuestion: Context: Findings: Verify datafusion-python still exposes no way to inject an AnalyzerRule into its SessionContext (decision-log R2), which is why v1 stays on the SQL-rewrite path (Path A) for the xarray-sql target. Note any seam discovered as future-only. Exit: v1 path confirmed; any seam noted as future-only. (design.md §8 M1, §3.4)
No due date•1/1 issues closed