Skip to content

Fix short snapshot intervals and the Radau axis node on one-component transforms - #819

Open
jtravs wants to merge 2 commits into
mainfrom
fix/snapshot-axis-600
Open

jtravs wants to merge 2 commits into
mainfrom
fix/snapshot-axis-600

Conversation

@jtravs

@jtravs jtravs commented Nov 13, 2026

Copy link
Copy Markdown
Contributor
  • Snapshot interval below 60 s acts as 60 s #600: the 60 s snapshot retry back-off now follows only a failed or deferred attempt. Previously every successful publication also imposed it, so interval_seconds below 60 acted as 60. Regression test with a fake monotonic clock.
  • Radau axis node ignores an axis y row on a one-component transform #663: populations.axis_node declines a Radau rule's axis node when the axis has a nonzero row that the transform does not carry (for example, a rotated mode on components=("x",)). Before the fix, on-axis electron density came out as 2.6e13 against the row scan's 2.8e21. numpy_ref and native both take their node from this function; the regression test checks both backends against numpy_ref's row scan.

Closes #600
Closes #663

🤖 Generated with Claude Code

https://claude.ai/code/session_01XGENPwwkUUG9KSAwneHjgH

jtravs and others added 2 commits November 13, 2026 18:27
Every snapshot attempt set the 60 s retry time, and a successful
publication never cleared it, so `_due` held interval-driven snapshots
until 60 s had passed: an interval below 60 s acted as 60 s. A
successful publication now clears the back-off, which applies only
after a failed or deferred attempt.

Closes #600

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGENPwwkUUG9KSAwneHjgH
`axis_node` matched a Radau rule's node against only the first n_pol
rows of the on-axis synthesis. On a one-component transform whose modes
have a y field on the axis (a rotated mode on components=("x",)), the
x-only node scan stood in for the two-row axis row, losing the y field
(the hypot on a field grid, the polarisation ellipse on an envelope
grid). The node is now declined whenever the axis has a nonzero row the
transform does not carry, so both numpy_ref and native (whose plan takes
its node from the same function) scan the axis row.

Closes #663

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGENPwwkUUG9KSAwneHjgH
@jtravs
jtravs marked this pull request as ready for review November 13, 2026 19:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T19:31:07.979756Z 0ecce26 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-13T19:32:30.118277Z 0ecce26 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Nov 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch has not been deployed

No deployments
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.

Radau axis node ignores an axis y row on a one-component transform Snapshot interval below 60 s acts as 60 s

1 participant