Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(#7632): doctor content goldens list the function_search_path check

garrytanf237f0c23183
diff --git a/test/fixtures/goldens/doctor/content-pglite-human.json b/test/fixtures/goldens/doctor/content-pglite-human.json
index dfdde2465c..a57553477b 100644
--- a/test/fixtures/goldens/doctor/content-pglite-human.json
+++ b/test/fixtures/goldens/doctor/content-pglite-human.json
@@ -79,6 +79,7 @@
" [OK] pglite_scale: PGLite at 5 pages — comfortable below the 1000-page threshold",
" [OK] derived_visibility: Every derived page and fact carries a visibility no looser than its source, and no page relies on a privacy alias alone.",
" [OK] rls: Skipped (PGLite — no PostgREST exposure, RLS not applicable)",
+ " [OK] function_search_path: Every gbrain function that pins a search_path ends it with pg_temp",
" [OK] schema_version: Version <latest> (latest: <latest>)",
" [OK] schema_columns: 1388 column(s) verified against live schema",
" [OK] schema_missing_tables: All 162 table(s) the applied migrations create exist.",
diff --git a/test/fixtures/goldens/doctor/content-pglite-json.json b/test/fixtures/goldens/doctor/content-pglite-json.json
index 4122135ad0..ac39399495 100644
--- a/test/fixtures/goldens/doctor/content-pglite-json.json
+++ b/test/fixtures/goldens/doctor/content-pglite-json.json
@@ -1049,6 +1049,13 @@
"name": "rls",
"status": "ok"
},
+ {
+ "category": "ops",
+ "elapsed_ms": "<volatile>",
+ "message": "Every gbrain function that pins a search_path ends it with pg_temp",
+ "name": "function_search_path",
+ "status": "ok"
+ },
{
"category": "meta",
"elapsed_ms": "<volatile>",