Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(e2e): pin salience routing eval to temperature 0 so it reads the modal tool choice
garrytan4907289371f4
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d8ec4962c8..dc4c9207e8 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,18 @@ credits are retained; no result has been reassigned to another provider. Originaidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).+## [0.60.90.0] - 2026-10-06++**The keyed tool-routing E2E stops failing at random: it now reads the model's most likely tool choice instead of one random sample.**++No user-facing behavior changes; tool descriptions are unchanged. For contributors and agents working on gbrain:++- **`test/e2e/salience-llm-routing.test.ts`** calls the pinned Haiku snapshot (`claude-haiku-4-5-20251001`) at `temperature: 0`. At the API default of 1.0, each concept phrasing routed to `search` instead of `query` in 1 to 6 of 100 calls ("which portfolio companies have shipped AI features": 14 of 300), so about one run in eight failed with no description change. At 0, every phrasing routed correctly in 100 of 100 calls (that phrasing: 300 of 300), and the personal phrasings still route to the salience, anomaly or transcript tools. Every assertion is unchanged.++## To take advantage of v0.60.90.0++Nothing to do: this release changes a test only.+## [0.60.88.0] - 2026-10-06**`think` now reads with the current date and each page's date, so "last month" and "yesterday" resolve correctly. On held-out conversations it answered 88.2% of questions right instead of 74.2%.**diff --git a/test/e2e/salience-llm-routing.test.ts b/test/e2e/salience-llm-routing.test.tsindex 87b8ed7d36..030fe9684d 100644--- a/test/e2e/salience-llm-routing.test.ts+++ b/test/e2e/salience-llm-routing.test.ts@@ -11,6 +11,13 @@* Claude with a series of personal-query phrasings, asserts the chosen* tool is in the v0.29 set. Cost ~$0.10/CI run on Haiku.*+ * Each phrasing is one call at temperature 0 against a dated model snapshot,+ * so the assertion pins the model's most likely tool choice for the+ * descriptions. At the API default (1.0) a single call samples that choice:+ * concept phrasings routed to `search` in 1-6 of 100 calls each, a ~12%+ * chance per run that one of them fails with no description change. At 0+ * every phrasing routed correctly in 100 of 100 calls.+ ** Skips gracefully when ANTHROPIC_API_KEY is missing.** Replaces the discarded `skills/{salience,anomalies,transcripts}/routing-eval.jsonl`@@ -132,6 +139,7 @@ async function callClaudeWithTools(prompt: string): Promise<{ tool: string | nulbody: JSON.stringify({model: 'claude-haiku-4-5-20251001',max_tokens: 256,+ temperature: 0,tools: TOOLS,messages: [{