Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(search): update the remaining KNOBS_HASH_VERSION 30 pins (#5889)
garrytan63788db9065d
diff --git a/test/search-mode.test.ts b/test/search-mode.test.tsindex b9fc537f4a..a3cb3f3c97 100644--- a/test/search-mode.test.ts+++ b/test/search-mode.test.ts@@ -750,7 +750,7 @@ describe('v0.40.4 — graph_signals knob', () => {});describe('v0.42.3.0 — autocut knobs', () => {- test('KNOBS_HASH_VERSION is 29 (…; 25→26 salience/recency + intent_patterns fold #4415; 26→27 adaptive-return gate + intent fold E5b/F11; 27→28 compiledTruthBoost synthetic-row suppression #4256; 28→29 evb= expansion variant budget fold)', () => {+ test('KNOBS_HASH_VERSION is 30 (…; 25→26 salience/recency + intent_patterns fold #4415; 26→27 adaptive-return gate + intent fold E5b/F11; 27→28 compiledTruthBoost synthetic-row suppression #4256; 28→29 evb= expansion variant budget fold)', () => {// 28→29: evb= expansion variant budget fold (ranker wave) — budget-weighted// variant fusion reorders rows for identical knobs; null hashes as legacy.// v=29 ALSO carries rrp= (relational rerank pin, ranker wave R1) — samediff --git a/test/search/knobs-hash-reranker.test.ts b/test/search/knobs-hash-reranker.test.tsindex 2b3d6f53c9..4f5414749d 100644--- a/test/search/knobs-hash-reranker.test.ts+++ b/test/search/knobs-hash-reranker.test.ts@@ -45,7 +45,7 @@ function baseKnobs(): ResolvedSearchKnobs {}describe('KNOBS_HASH_VERSION + version invariants', () => {- test('version is 29 (…; 24→25 keywordOrFallback knob kof= #3617; 25→26 salience/recency + intent_patterns fold #4415; 26→27 adaptive-return gate + intent fold E5b/F11; 27→28 compiledTruthBoost synthetic-row suppression #4256/#3695; 28→29 evb= expansion variant budget fold)', () => {+ test('version is 30 (…; 24→25 keywordOrFallback knob kof= #3617; 25→26 salience/recency + intent_patterns fold #4415; 26→27 adaptive-return gate + intent fold E5b/F11; 27→28 compiledTruthBoost synthetic-row suppression #4256/#3695; 28→29 evb= expansion variant budget fold; 29→30 exact-title order #5889)', () => {// v0.35.0.0: 1→2 to fold reranker fields. v0.35.6.0: 2→3 to fold// floor_ratio. v0.36 wave: piggybacks on v=3 with 7 cross-modal knobs// (D2) PLUS column + provider context (D8/CDX-2 cross-column isolation).@@ -100,7 +100,9 @@ describe('KNOBS_HASH_VERSION + version invariants', () => {// Phase E2 / Cat 13) — same unshipped epoch; null hashes as off.// v=29 ALSO carries mbg= (metadata boost gate, ranker wave Phase E3 /// Cat 13) — same unshipped epoch; a partial literal hashes as always.- expect(KNOBS_HASH_VERSION).toBe(29);+ // 29→30 (#5889): exact-title-first title-arm order + weight-A remote+ // title predicate reorder rows for identical knobs; version-only.+ expect(KNOBS_HASH_VERSION).toBe(30);});test('hash is 16 hex chars regardless of reranker config', () => {