Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

chore(search): KNOBS_HASH_VERSION 29 -> 30 for the #5889 title-arm order change

garrytan0df6bcdfe0f6
diff --git a/src/core/search/mode.ts b/src/core/search/mode.ts
index f62b0fac58..7c8f2542ca 100644
--- a/src/core/search/mode.ts
+++ b/src/core/search/mode.ts
@@ -865,7 +865,7 @@ export function attributeKnob<K extends keyof ModeBundle>(
* reorder or add a knob without bumping a constant — a hash collision would
* mean stale cache rows silently reading the wrong shape.
*/
-export const KNOBS_HASH_VERSION = 29;
+export const KNOBS_HASH_VERSION = 30;
/**
* v0.36 (D8 / CDX-2) — second-arg context for the cache key. The
diff --git a/test/cross-modal-phase1.test.ts b/test/cross-modal-phase1.test.ts
index 256c317d6e..7ae5cda0dd 100644
--- a/test/cross-modal-phase1.test.ts
+++ b/test/cross-modal-phase1.test.ts
@@ -179,7 +179,7 @@ describe('D2 — knobsHash differs across cross-modal knob values', () => {
return resolveSearchMode({ mode: 'balanced' });
}
- test('KNOBS_HASH_VERSION is 29 (cross-modal still appended; …; 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 (cross-modal still appended; …; 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; 29→30 exact-title order #5889)', () => {
// v0.35 ladder: 1→2 reranker, 2→3 floor_ratio. v0.36 piggybacks on v=3
// with 7 cross-modal knobs + column/provider context. v0.40.4 (salem) +
// v0.39 T21 (master) bump to v=4 for graph_signals + schema-pack fields.
@@ -215,7 +215,9 @@ describe('D2 — knobsHash differs across cross-modal knob values', () => {
// variant fusion reorders rows for identical knobs; null hashes as legacy.
// v=29 ALSO carries rrp= (relational rerank pin, R1) and kacf= (keyword-arm
// confidence floor, Phase E2 / Cat 13) — same unshipped epoch, no extra bump.
- 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('flipping unified_multimodal changes the hash', () => {
diff --git a/test/eval-longmemeval-mixedcase.slow.test.ts b/test/eval-longmemeval-mixedcase.slow.test.ts
index be5ae8cd24..e61d207b7d 100644
--- a/test/eval-longmemeval-mixedcase.slow.test.ts
+++ b/test/eval-longmemeval-mixedcase.slow.test.ts
@@ -196,7 +196,7 @@ describe('mixed-case fixture — raw-id join + strict/lenient recall', () => {
expect(rc.retrieval_config_hash).toBe(rows[0].retrieval_config_hash);
expect(rc.knobs_hash).toMatch(/^[0-9a-f]{16}$/);
baseKnobsHash = rc.knobs_hash;
- expect(rc.knobs_hash_version).toBe(29);
+ expect(rc.knobs_hash_version).toBe(30);
expect(rc.cache).toBeNull();
expect(rc.cache_skipped).toBe('keyword_only');
expect(rc.reranker_skipped_rows).toBe(0);
diff --git a/test/search-alias-resolved-boost.test.ts b/test/search-alias-resolved-boost.test.ts
index 5afac124ff..ec5e5e4244 100644
--- a/test/search-alias-resolved-boost.test.ts
+++ b/test/search-alias-resolved-boost.test.ts
@@ -81,7 +81,7 @@ describe('alias_resolved boost stage', () => {
});
describe('KNOBS_HASH_VERSION', () => {
- it('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)', () => {
+ it('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; 29→30 exact-title order #5889)', () => {
// mw2: 21→22 result-stamp/injection epoch (#1663 #3995 #3783 #4220).
// #4352 follow-up: 22→23 private-visibility posture fold (xp=).
// #4358 residual: 23→24 negative-offset cache-skip gap.
@@ -94,6 +94,8 @@ describe('KNOBS_HASH_VERSION', () => {
// version-only invalidation.
// 28→29: evb= expansion variant budget fold (ranker wave) — budget-weighted
// variant fusion reorders rows for identical knobs; null hashes as legacy.
- 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);
});
});
diff --git a/test/search-mode.test.ts b/test/search-mode.test.ts
index 81b9f8e259..b9fc537f4a 100644
--- a/test/search-mode.test.ts
+++ b/test/search-mode.test.ts
@@ -494,7 +494,9 @@ describe('knobsHash determinism + cross-mode separation (CDX-4)', () => {
// 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('#3515: detail set vs unset produces DIFFERENT hashes (cache contamination prevention)', () => {
@@ -532,7 +534,7 @@ describe('knobsHash determinism + cross-mode separation (CDX-4)', () => {
// 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);
+ expect(KNOBS_HASH_VERSION).toBe(30);
});
test('#4352 follow-up: excludePrivate true vs false produces DIFFERENT hashes (cache contamination prevention)', () => {
@@ -757,7 +759,7 @@ describe('v0.42.3.0 — autocut knobs', () => {
// 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);
+ expect(KNOBS_HASH_VERSION).toBe(30);
});
test('bundle defaults: autocut off in every bundle (ranker wave rule R2), jump 0.20 kept for operators who re-enable it', () => {
@@ -1091,6 +1093,6 @@ describe('ranker wave (R1) — relational_rerank_pin knob (relational rows bypas
expect(one).not.toBe(dflt);
expect(one).not.toBe(off);
// The pin rides KNOBS_HASH_VERSION 29 together with evb= — no separate bump.
- expect(KNOBS_HASH_VERSION).toBe(29);
+ expect(KNOBS_HASH_VERSION).toBe(30);
});
});