about summary refs log tree commit diff
path: root/test/python/server_test_case.py
diff options
context:
space:
mode:
authorAlexander_Kabui <alexanderkabua@gmail.com>2026-10-07 21:01:40 +0300
committerAlexander_Kabui <alexanderkabua@gmail.com>2026-10-07 21:01:40 +0300
commit85b63abcfdbae235d292a6de4bd47ffe6ba6dafd (patch)
tree8b39f26fad90eaa27751fd061ab1cbc91ae95b08 /test/python/server_test_case.py
parentb68531c40d91cadfd868e4b65ff92989ffd4fb27 (diff)
parente912c87deaf220fd5fce1299d669e8fa992b5338 (diff)
downloadgenenetwork4-85b63abcfdbae235d292a6de4bd47ffe6ba6dafd.tar.gz
Merge origin/main (e912c87: /search gains lod, locus, sort/order) into
native-search-engine.

Resolution: his route-level additions compose above the engine seam —
the handler now validates sort/order, asks the engine for
SORT_FETCH_LIMIT (1000) when ranking, maps SearchError via the seam's
engine_error, then computes lod, sorts, truncates to limit and fills
loci; lod/locus join SearchHit in src/search/mod.rs. His tests pass
through the seam.

KNOWN at this commit: the parity floor is BLOCKED (36 shapes) — the
route's new truncate(limit) exposes that route-level full-set grading
was a calibration-stub artifact (real gn3 caps at per_page; the stub
ignored it). Harness fix queued: set-equality moves to engine level,
status + top-10 stay route level. Landed together with that fix.
Diffstat (limited to 'test/python/server_test_case.py')
-rw-r--r--test/python/server_test_case.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/python/server_test_case.py b/test/python/server_test_case.py
index d4bb330..be2dcf9 100644
--- a/test/python/server_test_case.py
+++ b/test/python/server_test_case.py
@@ -73,7 +73,7 @@ def _read_exact(sock, count):
 
 def _read_scramble(handshake):
     """Extract the 20-byte auth plugin data from the server handshake."""
-    pos = 1  # protocol version
+    pos = 5  # 4-byte packet header, then protocol version
     pos = handshake.index(b"\0", pos) + 1  # server version string
     pos += 4  # connection id
     scramble = handshake[pos : pos + 8]