Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(doctor): goldens list embedding_identity_unqualified on every doctor surface (#6113)

garrytan7b4fc35d434b
diff --git a/.wave18b/lane3-manifest.md b/.wave18b/lane3-manifest.md
index c59abccef5..bc06e80a08 100644
--- a/.wave18b/lane3-manifest.md
+++ b/.wave18b/lane3-manifest.md
@@ -12,7 +12,7 @@ Branch `capy/w18b-lane3`. These are the edits to files other lanes may also touc
- `docs/guides/error-codes.md`: regenerated (`bun run build:error-codes`) with the three codes above. The integrator regenerates again after merging.
- `src/commands/doctor/registry.ts`: `embeddingIdentityEntry` registered right after `embeddingEnvOverrideEntry`.
- `src/core/doctor-categories.ts`: category for `embedding_identity_unqualified`.
-- Doctor goldens: `test/fixtures/goldens/doctor/json-pglite-degraded.json`, `json-pglite-fresh.json`, `registry-build-checks.json` gain the new check (`GBRAIN_TEST_UPDATE_GOLDENS=1 bun test test/doctor-registry-golden.test.ts test/doctor-json-golden.test.ts`).
+- Doctor goldens: `test/fixtures/goldens/doctor/json-pglite-degraded.json`, `json-pglite-fresh.json`, `registry-build-checks.json`, `content-pglite-human.json`, `content-pglite-json.json`, `hot-checks-pglite-json.json`, and the Postgres E2E goldens `hot-checks-postgres-json.json`, `json-postgres-fresh.json` gain the new check (`GBRAIN_TEST_UPDATE_GOLDENS=1` on `test/doctor-registry-golden.test.ts`, `test/doctor-json-golden.test.ts`, `test/doctor-content-golden.test.ts`, `test/doctor-hot-checks-golden.test.ts`, `test/e2e/doctor-json-golden.test.ts`, `test/e2e/doctor-hot-checks-golden.test.ts`).
- `test/fixtures/goldens/trust/help.txt`: the `--repair-unknown-markers` usage block.
- `scripts/serial-files.tsv`: three R2 rows (mock.module): `test/cycle-patterns-timeline-appends.serial.test.ts`, `test/cycle-patterns-cadence.serial.test.ts`, `test/cycle-patterns-read-budget.serial.test.ts`.
- `src/core/config.ts`: known config keys gain `dream.patterns.min_interval_hours` and `dream.patterns.child_read_budget_kb` (one line).
diff --git a/test/fixtures/goldens/doctor/content-pglite-human.json b/test/fixtures/goldens/doctor/content-pglite-human.json
index 1e5eff64d2..fad199f2ab 100644
--- a/test/fixtures/goldens/doctor/content-pglite-human.json
+++ b/test/fixtures/goldens/doctor/content-pglite-human.json
@@ -79,6 +79,7 @@
" [OK] embedding_column_registry: Registry healthy: 1 columns (embedding_image); primary embeddings disabled",
" [OK] embedding_env_override: no embedding env overrides set",
" [OK] embedding_migration_state: no embedding migration in flight",
+ " [OK] embedding_identity_unqualified: The brain records its embedding model with its provider (voyage:voyage-4).",
" [INFO] supersession_calibration: Embeddings are off on this brain, so facts are only deduplicated by exact text; no supersession threshold applies.",
" [INFO] fact_admission_floors: Embeddings are off on this brain, so facts are admitted by keyword and named entity only; no cosine floor applies.",
" [OK] chat_fallback_chain: No chat_fallback_chain is set: every chat call uses only its own model.",
diff --git a/test/fixtures/goldens/doctor/content-pglite-json.json b/test/fixtures/goldens/doctor/content-pglite-json.json
index 73cb06db79..86aa8a1305 100644
--- a/test/fixtures/goldens/doctor/content-pglite-json.json
+++ b/test/fixtures/goldens/doctor/content-pglite-json.json
@@ -1046,6 +1046,13 @@
"name": "embedding_migration_state",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "The brain records its embedding model with its provider (voyage:voyage-4).",
+ "name": "embedding_identity_unqualified",
+ "status": "ok"
+ },
{
"category": "brain",
"elapsed_ms": "<volatile>",
diff --git a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
index 1a0c308aba..a4a576fd3c 100644
--- a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
@@ -1063,6 +1063,13 @@
"name": "embedding_migration_state",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "The brain records its embedding model with its provider (voyage:voyage-4).",
+ "name": "embedding_identity_unqualified",
+ "status": "ok"
+ },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -4770,6 +4777,13 @@
"name": "embedding_migration_state",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "The brain records its embedding model with its provider (voyage:voyage-4).",
+ "name": "embedding_identity_unqualified",
+ "status": "ok"
+ },
{
"category": "brain",
"elapsed_ms": "<volatile>",
diff --git a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
index cbe4e90c3d..43863b5d3a 100644
--- a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
@@ -1055,6 +1055,13 @@
"name": "embedding_migration_state",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "The brain records its embedding model with its provider (voyage:voyage-4).",
+ "name": "embedding_identity_unqualified",
+ "status": "ok"
+ },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -4757,6 +4764,13 @@
"name": "embedding_migration_state",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "The brain records its embedding model with its provider (voyage:voyage-4).",
+ "name": "embedding_identity_unqualified",
+ "status": "ok"
+ },
{
"category": "brain",
"elapsed_ms": "<volatile>",
diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.json
index 8020c6e0ba..9468df039d 100644
--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json
+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json
@@ -1009,6 +1009,13 @@
"name": "embedding_migration_state",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "The brain records its embedding model with its provider (voyage:voyage-4).",
+ "name": "embedding_identity_unqualified",
+ "status": "ok"
+ },
{
"category": "brain",
"elapsed_ms": "<volatile>",