Skip to content

Regenerate R parity cache for NNS 13.2#135

Merged
OVVO-Financial merged 4 commits into
mainfrom
automation/r-cache-nns-13.2
Jul 18, 2026
Merged

Regenerate R parity cache for NNS 13.2#135
OVVO-Financial merged 4 commits into
mainfrom
automation/r-cache-nns-13.2

Conversation

@OVVO-Financial

Copy link
Copy Markdown
Owner

Automatic parity-cache refresh from the R source of truth.

  • R repository: OVVO-Financial/NNS
  • R commit: 8f236b97ba4612c93c09a949e7e14ec20dcb6c14
  • NNS version: 13.2
  • Source package: NNS_13.2.tar.gz
  • Windows binary verified: NNS_13.2.zip
  • Live regeneration result: failure
  • Cache-only verification result: failure

The exact R source package was installed and the committed parity cache was regenerated. Any remaining Python/R parity mismatches are retained in the workflow diagnostics and should be repaired against this R-authored baseline.

OVVO-Financial and others added 4 commits July 18, 2026 01:24
…rity cache)

R's dy.d_ was reconciled in NNS 13.2 (dy.dx-style locally-adaptive step +
NNS.stack on the equal-weight synthetic regressor), and the parity cache was
regenerated accordingly. The shipped Python dy_d still used the pre-13.2
finite-difference engine, so the 8 test_dy_d_* parity tests diverged from the
new cache (e.g. mean-wrt gave 7.56 vs R's 2.667).

Point the public dy_d at the reconciled engine that already backed dy_d_best,
which matches R 13.2 to machine precision across mean/median/last/obs/apd and
the mixed-derivative corners. dy_d and dy_d_best now share one _dy_d_reconciled
implementation (differing only in the default messages value), and the dead
pre-13.2 engine (_dy_d_scalar and its band/mixed/aggregation helpers) is
removed. _dy_d_stack_estimates is kept as it is exercised directly by a test.

The apd+mixed invalid-input test now expects R's own message
("Mixed Derivatives are only for 2 IV"); the invariant (apd+mixed rejected) is
unchanged.

sync/nns_source.json advances r_commit/r_version to the 13.2 behavioral-truth
commit (ff7f4f4); the vendored native snapshot is unchanged because the
reconciliation touched only R sources.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AxBV5HmXHY5nCUvW9SwDvb
PR #135's automation built NNS_13.2.tar.gz and the committed parity cache from
R commit 8f236b9 ("NNS 13.2 Beta"), a descendant of the dy.d_ reconciliation
merge. Record that commit as the behavioral-truth reference (was ff7f4f4) and
clarify that re-syncing the vendored native snapshot to it is a separate
NNS-core snapshot update.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AxBV5HmXHY5nCUvW9SwDvb
CI's mypy gate flagged the sole real error [no-any-return] at the shared
engine's single-wrt return: the per-regressor reducer was typed Any inside
spans, so returning its output leaked Any. Give it a concrete _DyDReducer
alias. Annotation-only; no runtime change. (The same latent Any predates this
branch in dy_d_best; the refactor moved it onto the mypy-checked path.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AxBV5HmXHY5nCUvW9SwDvb
@OVVO-Financial
OVVO-Financial merged commit 5c3733c into main Jul 18, 2026
9 checks passed
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