diff options
| author | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-07 23:33:33 +0300 |
|---|---|---|
| committer | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-07 23:33:33 +0300 |
| commit | 775ad48f0c2db905b692ce7fc481f1101424ab63 (patch) | |
| tree | 8dd850a85ee501f970080ac4a99e93af21f60481 /test/python/test_groups.py | |
| parent | b98314be7f17ae15477f9a20ad15b6e842446e74 (diff) | |
| download | genenetwork4-775ad48f0c2db905b692ce7fc481f1101424ab63.tar.gz | |
tests/search_native_dev_corpus.rs: the dev-floor corpus recorder (dev-oracle)
Records all 54 shapes from the DEVELOPMENT index through the NATIVE
engine — the same parser configuration as src/search/native.rs by
construction, because it IS that engine — producing a full dev corpus in
the production recordings' format: JSON arrays of hit bodies for match
shapes, gn3-style {"error", "error_type"} diagnostic objects for the
error shapes (the typed payloads from C3.7), and [] for the surface
shapes (an empty query parses to an empty query and matches nothing,
which is what gn3 recorded for them too).
No-drift discipline: the shape table is parsed from the harness source
itself (include_str!("search_parity.rs"), a quote-aware scanner that
handles rustfmt's multi-line rows and the parenthesized Q46 query), and
the recorder FATALs on any class/outcome mismatch and on any hit
lacking the (dataset, name) strings the parity comparison — and the
committed reduce_fixtures.py — require. Env-gated on XAPIAN_DB_PATH +
GN4_DEV_CORPUS_DIR; skips loudly otherwise so hermetic runs stay green.
The corpus itself lives OUT of git at
~/spikes/port-execution-r2/dev-corpus/{full,reduced} + README.md (the
numbers are DEV-TRUTH on the 2025-02-18 public data, not production
counts — the README says so and every run's fixture_dir points at it),
like the 105 MB production full corpus.
Gate evidence (~/spikes/port-execution-r2/logs/): recording
RECORD_EXIT=0, 54/54 with per-shape dev counts printed
(devcorpus-record.log; e.g. Q01 alcohol=2330 dev vs 1197 production,
Q32 position=1, Q53 position:=1017, Q42 recorded as its typed
diagnostic); reduce via the committed reduce_fixtures.py 128,068,128 B
-> 5,237,910 B (4.1%); the DEV FLOOR as a separate report
(GN4_PARITY_FIXTURES at the reduced dev corpus, GN4_PARITY_REPORTS at
logs/dev-parity-reports; the production corpus untouched):
DEV_FLOOR_EXIT=0, 54/54 PASS, FLOOR: PASS, min J = 1.000 (clause-b over
the 26 dev shapes with >= 10 dev hits — dev-truth, not a production
count). FULL pinned cargo test --release EXIT=0 (31 suites, the
recorder skips hermetically). rustfmt --edition 2024 clean.
Diffstat (limited to 'test/python/test_groups.py')
0 files changed, 0 insertions, 0 deletions
