Skip to content

fix(validation): reject ambiguous paired result JSON - #468

Merged
mikamikasuki merged 1 commit into
mikamikasuki:mainfrom
Ehsan-hash:fix/paired-json-keys
Oct 29, 2026
Merged

mikamikasuki merged 1 commit into
mikamikasuki:mainfrom
Ehsan-hash:fix/paired-json-keys

Conversation

@Ehsan-hash

Copy link
Copy Markdown
Contributor

Paired recomputation currently accepts a results file containing conflicting duplicate metric names when the last value matches the observations. Parse the expected JSON with the existing duplicate-key hook and return a scoped rejection before granting numerical acceptance.

This also rejects nested keys and names that collide after JSON escape decoding. Arithmetic, sampling, malformed-JSON handling and neighboring check results stay unchanged. The numeric_compare change in #466 remains separate.

Fixes #467

Validation: 95 affected handoff and numeric-precision checks passed, including paired sampling and source-byte preservation. Against the exact original parser, six duplicate-key regressions fail while four ordinary paired controls pass. The baseline used actual files and real NumPy, without an arithmetic shim.

@mikamikasuki
mikamikasuki merged commit a8be1bc into mikamikasuki:main Oct 29, 2026
2 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.

paired_recompute accepts conflicting duplicate JSON result keys

2 participants