Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: classify PostgresEngine.connectedDatabaseUrl (lifecycle, no SQL) and regenerate the SQL-text classification and RLS inventory goldens

garrytan1a22ed8374ab
diff --git a/test/fixtures/goldens/rls-scope-inventory.json b/test/fixtures/goldens/rls-scope-inventory.json
index c4452a8752..4e2763fa49 100644
--- a/test/fixtures/goldens/rls-scope-inventory.json
+++ b/test/fixtures/goldens/rls-scope-inventory.json
@@ -3605,6 +3605,7 @@
"batchRetry": "none",
"connRetry": "none",
"connect": "none",
+ "connectedDatabaseUrl": "none",
"consolidateFact": "none",
"countChunklessPagesWithContent": "direct",
"countKeywordPages": "direct",
diff --git a/test/fixtures/goldens/sql-text/_classification.json b/test/fixtures/goldens/sql-text/_classification.json
index a0cd35f1de..1870de2914 100644
--- a/test/fixtures/goldens/sql-text/_classification.json
+++ b/test/fixtures/goldens/sql-text/_classification.json
@@ -12,7 +12,7 @@
"out-of-scope:eval-capture": 5,
"out-of-scope:ingest-log": 2,
"out-of-scope:internal-helper (private; exercised through public callers)": 19,
- "out-of-scope:lifecycle (connection, pool, transaction, raw seams)": 16,
+ "out-of-scope:lifecycle (connection, pool, transaction, raw seams)": 17,
"out-of-scope:no-sql-stub": 1,
"out-of-scope:page-body (Wave B segmented storage, born in engine-sql/page-body.ts; pinned by test/engine-sql-page-body.test.ts)": 11,
"out-of-scope:raw-data": 2,
@@ -44,6 +44,7 @@
"batchRetry": "out-of-scope:internal-helper (private; exercised through public callers)",
"connRetry": "out-of-scope:internal-helper (private; exercised through public callers)",
"connect": "out-of-scope:lifecycle (connection, pool, transaction, raw seams)",
+ "connectedDatabaseUrl": "out-of-scope:lifecycle (connection, pool, transaction, raw seams)",
"consolidateFact": "facts",
"constructor": "out-of-scope:lifecycle (connection, pool, transaction, raw seams)",
"countChunklessPagesWithContent": "chunks",
diff --git a/test/helpers/postgres-engine-sql-cases.ts b/test/helpers/postgres-engine-sql-cases.ts
index faf4d6ffbc..e5a79b4e2f 100644
--- a/test/helpers/postgres-engine-sql-cases.ts
+++ b/test/helpers/postgres-engine-sql-cases.ts
@@ -55,6 +55,7 @@ export const DOMAIN_OF: Record<string, string> = {
'withScopedReadTransaction': OOS.helper,
'jitOffRead': OOS.helper,
'connect': OOS.lifecycle,
+ 'connectedDatabaseUrl': OOS.lifecycle,
'disconnect': OOS.lifecycle,
'disconnectInternal': OOS.helper,
'initSchema': OOS.lifecycle,