about summary refs log tree commit diff
path: root/test/data/parity-fixtures
AgeCommit message (Collapse)Author
2026-10-07tests/search_parity.rs (search parity): re-shape 13 weak shapes toAlexander_Kabui
discriminating values; re-record Q02 (insulin) through a verified pagination walk (50000 + 7632 = 57632 hits, truncation closed). 12 formerly zero-hit shapes now carry real matches so clause (b) bites on 36/36 recorded shapes; Q26 re-shaped from chr:2 (>1.1M matches, unrecordable) to the bounded chr:m (9374 hits), same chr:->XC boolean filter grammar; Q04/Q11/Q12/Q21 retained as documented empty (the deployed index has no positional data and XD is unpopulated). * test/data/parity-fixtures (Q01-Q54, reduced-v1): re-baseline the corpus with the 14 re-recorded fixtures (production snapshot 2026-10-07); parity floor PASS 54/54, clause-(b) 36/36, min Jaccard 1.000. * test/data/parity-fixtures/reduce_fixtures.py (SHAPE_RE): tolerate rustfmt-expanded shape! tuples; the strict regex parsed only 4/54 of the current harness file and would fatal the generator. * test/data/parity-fixtures/README.md: document the re-recording, the truncation closure and the retained-empty shapes.
2026-10-07* tests/search_parity.rs (search parity): add the 54-shape harness.Alexander_Kabui
* test/data/parity-fixtures (Q01-Q54, reduced-v1): commit the corpus. * test/data/parity-fixtures/reduce_fixtures.py: regenerate it from a full recording corpus. Grades any implementation behind /search against 54 recorded production shapes per parity-metric.md: status, full match-set equality, a Jaccard >= 0.8 top-10 floor for sets of 10 or more, error-class mapping (recorded gn3 4xx -> 422 invalid_query, recorded 500 -> 502 backend_error, surface -> 400 invalid_parameter with no upstream call), and exactly-once upstream-call assertions. Hermetic: axum stubs stand in for gn3 and gn-auth, tokens are minted with the committed test key, no network. The committed corpus is reduced-v1: 109 MB of recorded payloads reduced to 6.6 MB of graded essentials (sorted identifier set, the recorded first-ten order, status); the raw corpus stays out of git. The loader sniffs full and reduced files in one directory, and the stub serves reduced bodies reconstructed top-ten-first so grading is identical either way; reduced files also self-verify against the shape table at load time. The generator parses the shape table from this test so the two cannot drift, and fails loudly on any hit lacking (dataset, name). Calibrated 54/54 against the forwarding route on both the full and the reduced corpus; negative controls prove it fails loudly. Runs by default from the committed corpus; GN4_PARITY_FIXTURES overrides for external corpora, GN4_PARITY_REPORTS relocates the report (default target/parity-reports).