Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: run the GBRA-133 provenance and database-stop arms in the Postgres unit lane; regenerate llms-full.txt

garrytandba8be9841ae
diff --git a/llms-full.txt b/llms-full.txt
index f568860bf9..f93dbecf15 100644
--- a/llms-full.txt
+++ b/llms-full.txt
@@ -6082,11 +6082,21 @@ Size the pooler for every process at once:
```
long-running processes x GBRAIN_POOL_SIZE
- + processes with GBRAIN_DIRECT_DATABASE_URL x GBRAIN_DIRECT_POOL_SIZE (default 3)
- + one-shot commands running at the same time x their pool
+ + processes whose direct route lands on this pooler x GBRAIN_DIRECT_POOL_SIZE (default 3)
+ + one-shot commands running at the same time x their pool (a full `gbrain sync` is one too)
+ + parallel import workers x 2 (an unmanaged sync of more than 100 files, `--workers N`, or the sync a serve runs)
<= the pooler's client limit (Supabase Supavisor: the project's pool_size)
```
+The direct route lands on the pooler when `GBRAIN_DIRECT_DATABASE_URL` names it,
+and also when gbrain derives it from a Supabase pooler URL whose user does not
+name the project (`postgres.<ref>`): the derived route keeps the pooler host on
+port 5432, its session port, even when the main URL uses transaction mode
+(6543). Two long-running processes at the
+defaults (10 + 3 each) already pass a client limit of 25, so a scheduled
+`gbrain sync` next to a `gbrain serve` on the same session port can exhaust it.
+`GBRAIN_MAX_CONNECTIONS` caps a sync's worker fan-out to fit a budget.
+
When the sum does not fit, run fewer long-running processes (for example one
shared `gbrain serve --http` instead of one stdio `serve` per agent session),
or raise the pooler's limit. Do not lower a long-running process below 6.
diff --git a/test/postgres-unit-arms.txt b/test/postgres-unit-arms.txt
index 450c8cbb8c..f0ce9f1ed0 100644
--- a/test/postgres-unit-arms.txt
+++ b/test/postgres-unit-arms.txt
@@ -374,6 +374,7 @@ test/recall-page-fill.test.ts
test/receipt-compaction-newest-sync-gbra130.test.ts
test/remediation-manual-only.test.ts
test/repair-apply-pending-6543.test.ts
+test/repair-database-stop-gbra133.test.ts
test/repair-embedding-effects.test.ts
test/repair-failed-writes-conflict-6429.test.ts
test/repair-failed-writes-drift-w411.test.ts
@@ -381,6 +382,7 @@ test/repair-fences.test.ts
test/repair-file-drift-deleted-6712.test.ts
test/repair-file-drift-held-6712.test.ts
test/repair-file-drift-held-window-gbra133.test.ts
+test/repair-file-drift-provenance-gbra133.test.ts
test/repair-frontmatter-keys-sweep-6454.test.ts
test/repair-frontmatter.test.ts
test/repair-receipt-compaction.test.ts