Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: connection-audit back in its own process (its audit dir freezes on the first connection event); serial row, expected-deltas note, stale weight entries

garrytan7f1b6a637f2f
diff --git a/docs/test-audit/2026-10-04/expected-deltas.tsv b/docs/test-audit/2026-10-04/expected-deltas.tsv
index 4882a5f04d..40156cdcb4 100644
--- a/docs/test-audit/2026-10-04/expected-deltas.tsv
+++ b/docs/test-audit/2026-10-04/expected-deltas.tsv
@@ -33,6 +33,7 @@ move serial test/apply-migrations-list-db-state.serial.test.ts * unit test/appl
move serial test/apply-migrations-orchestration-lock.serial.test.ts * unit test/apply-migrations-orchestration-lock.test.ts D6: lint-clean, no process-wide state, 615/615 in one bun process forward and reverse; rejoins the parallel unit lane
move serial test/apply-migrations-pglite-spawn.serial.test.ts * unit test/apply-migrations-pglite-spawn.test.ts D6: lint-clean, no process-wide state, 615/615 in one bun process forward and reverse; rejoins the parallel unit lane
move serial test/audit/connection-audit.serial.test.ts * unit test/audit/connection-audit.test.ts D6: lint-clean, no process-wide state, 615/615 in one bun process forward and reverse; rejoins the parallel unit lane
+move unit test/audit/connection-audit.test.ts * serial test/audit/connection-audit.serial.test.ts D6 reverted: the module-level audit dir is frozen by the first connection event in a process; an earlier Postgres-engine test in the same unit shard redirects every write (seen when the shard composition changed); back to its own process until connection-audit.ts gets a reset seam
move serial test/auth-rescope-unified.serial.test.ts * unit test/auth-rescope-unified.test.ts D6: lint-clean, no process-wide state, 615/615 in one bun process forward and reverse; rejoins the parallel unit lane
move serial test/autopilot-bun-floor.serial.test.ts * unit test/autopilot-bun-floor.test.ts D6: lint-clean, no process-wide state, 615/615 in one bun process forward and reverse; rejoins the parallel unit lane
move serial test/autopilot-install-wrapper.serial.test.ts * unit test/autopilot-install-wrapper.test.ts D6: lint-clean, no process-wide state, 615/615 in one bun process forward and reverse; rejoins the parallel unit lane
diff --git a/scripts/serial-files.tsv b/scripts/serial-files.tsv
index a99f1492f8..da55a02629 100644
--- a/scripts/serial-files.tsv
+++ b/scripts/serial-files.tsv
@@ -26,6 +26,7 @@ test/attendance-repair-cli.serial.test.ts global-state global-state: R3: constru
test/audit-parser-probe.serial.test.ts R1 R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/audit-slug-fallback.serial.test.ts R1 R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/audit-synopsis.serial.test.ts R1 R1: mutates process.env (GBRAIN_AUDIT_DIR)
+test/audit/connection-audit.serial.test.ts global-state global-state: connection-audit.ts freezes its audit dir on the first connection event in a process (no reset), so any earlier Postgres-engine test in the same bun process redirects its writes
test/auth-rescope-token.serial.test.ts global-state global-state: binds local servers/ports
test/autopilot-cycle-connector.serial.test.ts R2 R2: mock.module(../src/core/cycle.ts) replaces modules for every file in the process
test/autopilot-fanout-clamp.serial.test.ts R1 R1: mutates process.env (GBRAIN_AUDIT_DIR)
diff --git a/scripts/test-weights.json b/scripts/test-weights.json
index e4d7e714c5..0259ba8795 100644
--- a/scripts/test-weights.json
+++ b/scripts/test-weights.json
@@ -128,7 +128,6 @@
"test/audit/audit-writer.test.ts": 5,
"test/audit/batch-retry-audit.test.ts": 6,
"test/audit/batch-retry-redaction.test.ts": 2,
- "test/audit/connection-audit.test.ts": 13,
"test/audit/content-sanity-audit.test.ts": 3,
"test/audit/lock-renewal-audit.test.ts": 5,
"test/audit/pool-recovery-audit.test.ts": 17,
diff --git a/scripts/ubicloud/weights.json b/scripts/ubicloud/weights.json
index f2464bc1bd..ba0ee75c6a 100644
--- a/scripts/ubicloud/weights.json
+++ b/scripts/ubicloud/weights.json
@@ -897,7 +897,6 @@
"unit:test/audit/audit-writer.test.ts": 127,
"unit:test/audit/batch-retry-audit.test.ts": 130,
"unit:test/audit/batch-retry-redaction.test.ts": 128,
- "unit:test/audit/connection-audit.test.ts": 133,
"unit:test/audit/content-sanity-audit.test.ts": 118,
"unit:test/audit/lock-renewal-audit.test.ts": 202,
"unit:test/audit/pool-recovery-audit.test.ts": 138,
diff --git a/test/audit/connection-audit.test.ts b/test/audit/connection-audit.serial.test.ts
similarity index 99%
rename from test/audit/connection-audit.test.ts
rename to test/audit/connection-audit.serial.test.ts
index 4a77c48e9d..c701d369fd 100644
--- a/test/audit/connection-audit.test.ts
+++ b/test/audit/connection-audit.serial.test.ts
@@ -1,5 +1,5 @@
/**
- * test/audit/connection-audit.test.ts — src/core/connection-audit.ts
+ * test/audit/connection-audit.serial.test.ts — src/core/connection-audit.ts
* (the ddl/bulk pool acquire/release/error JSONL trail).
*
* SERIAL (own bun process), for two reasons: