Skip to content

python-math #8: feat(math): replay harness H-B — Clojure Mode A driver (dev/replay.clj) + cross-language comparer shim - #2621

Draft
jucor wants to merge 1 commit into
spr/edge/d4dbbfa9from
spr/edge/2b7f93f6
Draft

python-math #8: feat(math): replay harness H-B — Clojure Mode A driver (dev/replay.clj) + cross-language comparer shim#2621
jucor wants to merge 1 commit into
spr/edge/d4dbbfa9from
spr/edge/2b7f93f6

Conversation

@jucor

@jucor jucor commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

commit-id:2b7f93f6


Stack:


⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

@jucor
jucor marked this pull request as draft July 18, 2026 02:29
@jucor
jucor force-pushed the spr/edge/d4dbbfa9 branch from 9128aa8 to d22ebc2 Compare July 18, 2026 13:28
@jucor
jucor force-pushed the spr/edge/2b7f93f6 branch from ec7b7a2 to b44a080 Compare July 18, 2026 13:28
@jucor
jucor force-pushed the spr/edge/d4dbbfa9 branch from d22ebc2 to c49fbb9 Compare July 18, 2026 13:32
@jucor
jucor force-pushed the spr/edge/2b7f93f6 branch from b44a080 to 98736b7 Compare July 18, 2026 13:32
@jucor
jucor force-pushed the spr/edge/d4dbbfa9 branch from c49fbb9 to 6455f85 Compare July 18, 2026 13:35
@jucor
jucor force-pushed the spr/edge/2b7f93f6 branch from 98736b7 to 0eea394 Compare July 18, 2026 13:35
@jucor
jucor requested a review from Copilot July 21, 2026 08:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the Phase H‑B replay harness pieces needed to produce Clojure “Mode A” step blobs and to reuse the existing Python step comparer to diff Clojure vs Python outputs without production-code changes. This supports the broader cross-language parity effort by creating a deterministic(ish) recording surface (prep-main / math_main blob shape) and a bridge for automated comparison.

Changes:

  • Introduce a Clojure replay driver (math/dev/replay.clj) and :replay deps alias to generate per-step prep-main blobs (and optional full-state EDN) from schedule JSON + votes CSV.
  • Add a smoke script (math/dev/replay_smoke.sh) to run the Clojure driver on the vw dataset and optionally run a cross-language compare against a Python recording.
  • Add Delphi-side shim + tests (delphi/tests/replay_harness/clj_crosslang.py, test_clj_crosslang.py) to wrap Clojure blobs into the py-store shape and project both sides onto the prep-main key whitelist before diffing.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
math/dev/replay.clj Clojure Mode A replay driver that slices votes per schedule, runs conv-update, and writes prep-main blobs + provenance.
math/dev/replay_smoke.sh Developer smoke test to validate blob shape and optionally run cross-language compare.
math/deps.edn Adds a :replay alias to run the driver without loading other dev namespaces.
delphi/tests/replay_harness/clj_crosslang.py Test-only shim to treat Clojure step-*.blob.json as a py-store recording and to project blobs onto the prep-main whitelist for meaningful numeric diffs.
delphi/tests/replay_harness/test_clj_crosslang.py Unit tests covering shim behavior and ensuring projected keys land on the numeric-compare path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread delphi/tests/replay_harness/clj_crosslang.py Outdated
Comment thread delphi/tests/replay_harness/clj_crosslang.py
@jucor
jucor force-pushed the spr/edge/2b7f93f6 branch from 0eea394 to fd4aa0d Compare July 21, 2026 11:11
@jucor
jucor force-pushed the spr/edge/d4dbbfa9 branch from 6455f85 to 276763d Compare July 21, 2026 11:11
@jucor
jucor force-pushed the spr/edge/2b7f93f6 branch from fd4aa0d to 4f39d5e Compare July 21, 2026 19:49
This was referenced Jul 25, 2026
@jucor
jucor force-pushed the spr/edge/2b7f93f6 branch from 40f4d62 to 8fda604 Compare July 28, 2026 00:11
@jucor jucor changed the title feat(math): replay harness H-B — Clojure Mode A driver (dev/replay.clj) + cross-language comparer shim python-math #8: feat(math): replay harness H-B — Clojure Mode A driver (dev/replay.clj) + cross-language comparer shim Jul 28, 2026
…r (dev/replay.clj) + cross-language comparer shim

commit-id:2b7f93f6
@jucor
jucor force-pushed the spr/edge/d4dbbfa9 branch from 35c4edb to ba62851 Compare July 28, 2026 01:10
@jucor
jucor force-pushed the spr/edge/2b7f93f6 branch from 8fda604 to 187a470 Compare July 28, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants