Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
v0.59.8.0 ci: run a 2,500-write persistence soak on PRs, keep the 10,000-write gate on master (#5667)
Garry Tan0556eee4140c
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 00ec458d1a..72857acdec 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.59.5.0",+ "version": "0.59.8.0","description": "Personal knowledge brain for your coding agent — hybrid search, synthesis, graph traversal, and durable cross-session memory over Postgres/PGLite with pgvector, plus a curated brain-first skill set.","author": {"name": "Garry Tan",diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.jsonindex 8b2712fd68..bf5e220e51 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.59.5.0",+ "version": "0.59.8.0","description": "Personal knowledge brain for your coding agent — hybrid search, synthesis, graph traversal, and durable cross-session memory over Postgres/PGLite with pgvector, plus a curated brain-first skill set.","author": {"name": "Garry Tan",diff --git a/.github/workflows/persistence-validation.yml b/.github/workflows/persistence-validation.ymlindex 21557c41f0..982cda3ef4 100644--- a/.github/workflows/persistence-validation.yml+++ b/.github/workflows/persistence-validation.yml@@ -178,11 +178,15 @@ jobs:with:bun-version: ${{ matrix.bun }}- run: bun install --frozen-lockfile --ignore-scripts- - name: Execute 1000 schedules, eight SIGKILL boundaries and 10000 process-separated writes+ # Pull requests run a 2,500-write soak; pushes to master and manual runs keep+ # the full 10,000-write gate, whose PGLite run alone takes 15-28 minutes.+ - name: Execute 1000 schedules, eight SIGKILL boundaries and the process-separated write soakenv:DATABASE_URL: postgres://gbrain_test:[email protected]:5432/gbrain_test+ SOAK_OPERATIONS: ${{ github.event_name == 'pull_request' && '2500' || '10000' }}run: >-bun --no-env-file scripts/persistence/validate.ts --engine=${{ matrix.engine }}+ --operations="$SOAK_OPERATIONS"--manifest=.context/persistence-manifest.json- name: Require all reconciliation crash boundaries before and after activationtimeout-minutes: 12diff --git a/BOOTSTRAP_FOR_AGENTS.md b/BOOTSTRAP_FOR_AGENTS.mdindex cf86bc350e..1afb1dfd37 100644--- a/BOOTSTRAP_FOR_AGENTS.md+++ b/BOOTSTRAP_FOR_AGENTS.md@@ -1,4 +1,4 @@-<!-- gbrain-runbook-stamp: 0.59.5.0 -->+<!-- gbrain-runbook-stamp: 0.59.8.0 --><!-- This stamp must equal the VERSION file at every release; CI enforces it(scripts/check-bootstrap-tag.sh). `gbrain bootstrap status` compares it tothe installed binary and warns on skew. -->diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fdbd4243fb..beec4015d3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,21 @@ credits are retained; no result has been reassigned to another provider. Originaidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).+## [0.59.8.0] - 2026-09-28++**Pull request CI now finishes in about 10-12 minutes instead of 20-34.**++Nearly all of the extra time came from one check: 10,000 writes pushed through a+single PGLite brain, at about 11 writes per second. Pull requests now run the+same crash-recovery and schedule checks with a 2,500-write soak. Pushes to+master and manual runs still run the full 10,000-write gate before release.++### Itemized changes++- The persistence invariant jobs pass `--operations=2500` on pull requests and+ keep the full 10,000-write soak on master pushes and manual dispatches; a+ workflow test pins the split.+## [0.59.5.0] - 2026-09-28**The full test gate now runs in about five minutes on Ubicloud instead of about 25 on one Docker host.**diff --git a/VERSION b/VERSIONindex 25d1578110..1792efab27 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-0.59.5.0+0.59.8.0diff --git a/docs/TESTING.md b/docs/TESTING.mdindex 08c18f15e3..ec2c4a4bd0 100644--- a/docs/TESTING.md+++ b/docs/TESTING.md@@ -433,6 +433,12 @@ chunk, retained failure receipt, committed completion and released leases.unchanged. The E2E wrapper files ensure these optional PostgreSQL arms executein the database lane rather than only passing their PGLite controls.+The persistence invariant jobs run the complete `scripts/persistence/validate.ts`+gate (10,000-write soak) on pushes to master and manual dispatches. Pull requests+run the same schedules and crash boundaries with a 2,500-write soak; the full+PGLite soak alone takes 15-28 minutes and would otherwise set every PR's wall+time. `test/scripts/data-safety-native-workflow.test.ts` pins the split.+For platform-only feedback, dispatch`gh workflow run test.yml --ref <branch> -f native_only=true`. This explicit manual option uses a separate concurrencygroup so it does not cancel an ongoing full persistence soak. Itsdiff --git a/openclaw.plugin.json b/openclaw.plugin.jsonindex 50d19c6046..34e406ff09 100644--- a/openclaw.plugin.json+++ b/openclaw.plugin.json@@ -1,7 +1,7 @@{"id": "gbrain-context-engine","name": "gbrain",- "version": "0.59.5.0",+ "version": "0.59.8.0","description": "Personal knowledge brain with Postgres + pgvector hybrid search","family": "bundle-plugin","kind": "context-engine",diff --git a/package.json b/package.jsonindex 99c94c3a54..25301ea141 100644--- a/package.json+++ b/package.json@@ -190,7 +190,7 @@"bun": ">=1.3.11"},"license": "MIT",- "version": "0.59.5.0",+ "version": "0.59.8.0","overrides": {"@ai-sdk/provider-utils": "4.0.33","@hono/node-server": "^2.0.5",diff --git a/plugin-variants/gbrain-coding/.claude-plugin/plugin.json b/plugin-variants/gbrain-coding/.claude-plugin/plugin.jsonindex dbb00e157c..3fc16d49be 100644--- a/plugin-variants/gbrain-coding/.claude-plugin/plugin.json+++ b/plugin-variants/gbrain-coding/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-coding",- "version": "0.59.5.0",+ "version": "0.59.8.0","description": "Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant. (persona variant of the gbrain plugin — 21 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-coding/.codex-plugin/plugin.json b/plugin-variants/gbrain-coding/.codex-plugin/plugin.jsonindex 6cff0e071b..d002da5446 100644--- a/plugin-variants/gbrain-coding/.codex-plugin/plugin.json+++ b/plugin-variants/gbrain-coding/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-coding",- "version": "0.59.5.0",+ "version": "0.59.8.0","description": "Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant. (persona variant of the gbrain plugin — 21 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-coding/README.md b/plugin-variants/gbrain-coding/README.mdindex 5f2f8f4c96..31241c92a7 100644--- a/plugin-variants/gbrain-coding/README.md+++ b/plugin-variants/gbrain-coding/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.59.5.0 -->+<!-- gbrain-plugin-tree-stamp: 0.59.8.0 --># gbrain-coding (generated persona variant — do not hand-edit)Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant.diff --git a/plugin-variants/gbrain-daily/.claude-plugin/plugin.json b/plugin-variants/gbrain-daily/.claude-plugin/plugin.jsonindex e983aa7d7f..512961c8fe 100644--- a/plugin-variants/gbrain-daily/.claude-plugin/plugin.json+++ b/plugin-variants/gbrain-daily/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-daily",- "version": "0.59.5.0",+ "version": "0.59.8.0","description": "Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant. (persona variant of the gbrain plugin — 20 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-daily/.codex-plugin/plugin.json b/plugin-variants/gbrain-daily/.codex-plugin/plugin.jsonindex f41ac57604..7990534760 100644--- a/plugin-variants/gbrain-daily/.codex-plugin/plugin.json+++ b/plugin-variants/gbrain-daily/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain-daily",- "version": "0.59.5.0",+ "version": "0.59.8.0","description": "Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant. (persona variant of the gbrain plugin — 20 skills)","author": {"name": "Garry Tan",diff --git a/plugin-variants/gbrain-daily/README.md b/plugin-variants/gbrain-daily/README.mdindex 16c0860be0..57c8da6b84 100644--- a/plugin-variants/gbrain-daily/README.md+++ b/plugin-variants/gbrain-daily/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.59.5.0 -->+<!-- gbrain-plugin-tree-stamp: 0.59.8.0 --># gbrain-daily (generated persona variant — do not hand-edit)Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant.diff --git a/plugin/README.md b/plugin/README.mdindex 452a57b0c7..56749efaf5 100644--- a/plugin/README.md+++ b/plugin/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.59.5.0 -->+<!-- gbrain-plugin-tree-stamp: 0.59.8.0 --># gbrain plugin skill tree (generated — do not hand-edit)This tree is the curated skill set for the gbrain Codex and Claude Codediff --git a/scripts/persistence/README.md b/scripts/persistence/README.mdindex f582ab79e3..a205238d3e 100644--- a/scripts/persistence/README.md+++ b/scripts/persistence/README.md@@ -24,6 +24,11 @@ The default gate executes, per engine:| Eight actual SIGKILL boundaries | Acknowledged requests survive reopening; unfinished file effects recover; committed DB/file/receipt state stays committed; original request replay returns the same outcome || 10,000 logical writes | Four independent producer processes, four principals and four source roots; every request commits once; every canonical snapshot and file matches the receipt; zero pending requests or unresolved recovery records |+CI runs this full gate on pushes to master and manual dispatches. Pull requests+run the same schedules and crash boundaries with a 2,500-write soak+(`--operations=2500`), so their manifests report `full_gate: false`; a soak+regression that needs more volume is caught on master.+The eight executed crash boundaries are `admitted`, `prepared`,`before_publication`, `staging_flushed`, `after_publication`, `before_commit`,`after_commit`, and `after_response`. The flushed boundary writes its eventdiff --git a/scripts/structural-suites.tsv b/scripts/structural-suites.tsvindex 9afcb1e0ec..da4a37b4d7 100644--- a/scripts/structural-suites.tsv+++ b/scripts/structural-suites.tsv@@ -263,6 +263,7 @@ test/scripts/ci-local-rendering.test.ts required PgBouncer execution through runtest/scripts/ci-runner-routing.test.ts CI runner routing 5 readFileSynctest/scripts/classify-tests.test.ts classify-tests detectors 18 bun-file,doctor-source-helper,exec-scan,readFileSynctest/scripts/coverage-diff-gate.test.ts exemptions 3 readFileSync+test/scripts/data-safety-native-workflow.test.ts data-safety native CI coverage 12 readFileSynctest/scripts/e2e-runner.test.ts second 5 readFileSynctest/scripts/e2e-runner.test.ts sequential E2E runner (GITHUB_ACTIONS=${githubActions}) 7 readFileSynctest/scripts/e2e-wiring.test.ts e2e file claim ratchet 5 readFileSyncdiff --git a/templates/bootstrap/template-repo/README.md b/templates/bootstrap/template-repo/README.mdindex de68c03b87..d8e1d9b119 100644--- a/templates/bootstrap/template-repo/README.md+++ b/templates/bootstrap/template-repo/README.md@@ -1,6 +1,6 @@# gbrain agent workspace — template-<!-- gbrain-template-stamp: 0.59.5.0 -->+<!-- gbrain-template-stamp: 0.59.8.0 -->This repository is the **"Use this template"** distribution artifact for a[gbrain](https://github.com/garrytan/gbrain) personal-agent workspace — the samediff --git a/test/scripts/data-safety-native-workflow.test.ts b/test/scripts/data-safety-native-workflow.test.tsindex a617ca1d5c..8774e13d31 100644--- a/test/scripts/data-safety-native-workflow.test.ts+++ b/test/scripts/data-safety-native-workflow.test.ts@@ -208,4 +208,24 @@ describe('data-safety native CI coverage', () => {'bun --no-env-file test --timeout=180000 test/persistence-sync-company.serial.test.ts',]);});++ test('pull requests run a 2,500-write persistence soak while master keeps the full 10,000-write gate', () => {+ const persistence = safeLoad(readFileSync(join(import.meta.dir, '../../.github/workflows/persistence-validation.yml'), 'utf8')) as {+ jobs: { invariants: { steps: Step[] } };+ };+ const step = persistence.jobs.invariants.steps.find(entry => entry.run?.includes('scripts/persistence/validate.ts'));+ expect(step).toBeDefined();+ expect(step!.env?.SOAK_OPERATIONS).toBe("${{ github.event_name == 'pull_request' && '2500' || '10000' }}");+ for (const operations of ['2500', '10000']) {+ const result = Bun.spawnSync(['bash', '-e', '-o', 'pipefail', '-c', `+ bun() { printf '%s\\n' "$@"; }+ ${step!.run!.replaceAll('${{ matrix.engine }}', 'pglite')}+ `], { env: { PATH: process.env.PATH ?? '', SOAK_OPERATIONS: operations } });+ expect(result.exitCode).toBe(0);+ expect(result.stdout.toString().trim().split('\n')).toEqual([+ '--no-env-file', 'scripts/persistence/validate.ts', '--engine=pglite',+ `--operations=${operations}`, '--manifest=.context/persistence-manifest.json',+ ]);+ }+ });});