Skip to content

Preserve typed native wavefunction precision failures - #23

Draft
huashengshao wants to merge 1 commit into
codex/native-tree-color-correlationsfrom
codex/native-wavefunction-precision
Draft

huashengshao wants to merge 1 commit into
codex/native-tree-color-correlationsfrom
codex/native-wavefunction-precision

Conversation

@huashengshao

Copy link
Copy Markdown

Preserve FeynKit's typed external-state precision failures through strict native wavefunction evaluation. RusticolErrorKind::InsufficientPrecision { bits } carries the batch's requested working precision and lane context, so a caller can rebuild from exact inputs at a wider precision. A component's lower tracked precision does not replace that working-precision metadata. Nonfinite computed results and malformed input retain their separate classifications.

Advance the coherent native family to FeynKit ee18b8e6386cb36ca88b1917e00ab2ebae93e68e and Ninja a069504e3dc884d6e2682aadc75fb12a7f4e7c07. This PR is stacked on codex/native-tree-color-correlations (PR22), so its diff contains only the new error contract, native conversion, four regressions and dependency/lock updates. The existing partial-state API still returns textual statuses; its documented regression checks sparse failure without inserting a successful zero.

Validation: all 100 native tests pass on the combined source, including the existing model preparation, numerical reduction, QCD Ward/boost/precision, scalar loop and color-correlation checks. The four new tests cover fresh wider reconstruction, requested-versus-tracked bits, partial-row behavior and precision-versus-range/input classification. The same complete prebuilt suite also passes with PATH=/nonexistent. The FeynKit owner passes 45 tests with a failing old-source regression control; Ninja's vector parity and transactional precision-error tests pass and its source change was independently reviewed. Root consumers still need to map this new typed variant into their own retry error before adopting these pins.

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.

2 participants