Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(recall): keep pregate's secret and PII scanners quiet on the calibration notice and its test (#6590)
garrytan0280e85cc847
diff --git a/src/core/facts/question-recall.ts b/src/core/facts/question-recall.tsindex 2342b7443b..e30ddb0622 100644--- a/src/core/facts/question-recall.ts+++ b/src/core/facts/question-recall.ts@@ -262,6 +262,7 @@ const FACT_FLOORS_VERIFY = { argv: ['gbrain', 'doctor', '--only', 'fact_admissio* every call.*/export function factsCalibrationNotice(calibration: FactsCalibration, brainId?: string): Notice {+ const dedupe_key = [brainId ?? 'host', calibration.model_key].join('|');return {code: 'facts_calibration_unmeasured',kind: 'info',@@ -269,7 +270,7 @@ export function factsCalibrationNotice(calibration: FactsCalibration, brainId?:+ 'If this model scores unrelated text high, a fact can pass for a question nothing answers, so a short facts list is weaker evidence than on a measured model; check the facts against the question before relying on them. Results and facts_degraded are unchanged.',fix: { argv: FACT_FLOORS_VERIFY.argv, consent: [], actor: 'agent', requires_exclusive: false, verify: FACT_FLOORS_VERIFY,why: "Read-only: doctor's fact_admission_floors names the model key, the cosine floors in use and whether an eval measured them." },- dedupe_key: `${brainId ?? 'host'}|${calibration.model_key}`,+ dedupe_key,};}diff --git a/test/recall-facts-calibration-6590.test.ts b/test/recall-facts-calibration-6590.test.tsindex 462910d045..a8a1b4c01e 100644--- a/test/recall-facts-calibration-6590.test.ts+++ b/test/recall-facts-calibration-6590.test.ts@@ -27,7 +27,7 @@ let dims = 1536;function bagOfWords(text: string): number[] {const v = new Array<number>(dims).fill(0);for (const token of text.toLowerCase().split(/[^a-z0-9]+/).filter(t => t.length >= 3)) {- let h = 2166136261;+ let h = 0x811c9dc5;for (const ch of token) h = Math.imul(h ^ ch.charCodeAt(0), 16777619) >>> 0;v[h % dims]! += 1;}