Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

v0.60.25.0 ci: run CI on Bun 1.4.2 (fixes the Bun 1.3.x lost child-exit hangs) (#5798)

Garry Tana4c5ea3c99d4
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index ea1ba30db9..f346f0ec17 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "gbrain",
- "version": "0.60.23.0",
+ "version": "0.60.25.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.json
index 694f85811d..972d8f49e3 100644
--- a/.codex-plugin/plugin.json
+++ b/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "gbrain",
- "version": "0.60.23.0",
+ "version": "0.60.25.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/e2e.yml b/.github/workflows/e2e.yml
index 0b06384129..3611209802 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -54,7 +54,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -118,7 +118,7 @@ jobs:
fetch-depth: 0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- name: Select and freeze E2E files
id: select
shell: bash
@@ -169,7 +169,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -242,7 +242,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -389,7 +389,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -481,7 +481,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile
- name: Coverage shard ${{ matrix.shard }}/10
run: scripts/test-shard.sh ${{ matrix.shard }} 10
@@ -505,7 +505,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile
- run: bun run test:serial
env:
@@ -528,7 +528,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile
# Separate coverage dirs per bun process (a reused dir is overwritten).
- run: bun test test/eval-longmemeval-e2e.slow.test.ts --timeout=60000 --coverage --coverage-reporter=lcov --coverage-dir=${{ runner.temp }}/coverage/slow-a
@@ -581,7 +581,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
# PGLite snapshot (restore-only; test.yml's serial-tests job saves).
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
@@ -652,7 +652,7 @@ jobs:
fetch-depth: 0 # baseline gate reads git show origin/master:
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile
- name: Download per-lane coverage artifacts
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
@@ -736,7 +736,7 @@ jobs:
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.full_corpus)
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- name: Download nightly execution receipts
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.full_corpus)
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
diff --git a/.github/workflows/heavy-tests.yml b/.github/workflows/heavy-tests.yml
index 97aa77f542..6c66be9503 100644
--- a/.github/workflows/heavy-tests.yml
+++ b/.github/workflows/heavy-tests.yml
@@ -67,7 +67,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -158,7 +158,7 @@ jobs:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -224,7 +224,7 @@ jobs:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -458,7 +458,7 @@ jobs:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -682,7 +682,7 @@ jobs:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile
- name: Build gbrain (compile once for the doors)
@@ -772,7 +772,7 @@ jobs:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile
- name: Prepare evidence dir
@@ -982,7 +982,7 @@ jobs:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile
- name: Build gbrain
run: |
diff --git a/.github/workflows/macos-validation.yml b/.github/workflows/macos-validation.yml
index d815edcb3f..76215303ca 100644
--- a/.github/workflows/macos-validation.yml
+++ b/.github/workflows/macos-validation.yml
@@ -42,7 +42,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile --ignore-scripts
- name: Runner identity
run: |
diff --git a/.github/workflows/native-locks.yml b/.github/workflows/native-locks.yml
index 6bb06e9ef9..51b82c1229 100644
--- a/.github/workflows/native-locks.yml
+++ b/.github/workflows/native-locks.yml
@@ -63,7 +63,7 @@ jobs:
target: [linux-x64-glibc, linux-arm64-glibc, darwin-arm64, darwin-x64, win32-x64, win32-arm64]
# Pull requests: primary Bun on every target (native paths changed) or
# the Linux x64 glibc smoke cell. Runners map from the target above.
- exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || inputs.scope == 'primary' && '[{"bun":"1.3.11"},{"bun":"1.4.2"}]' || '[{"bun":"1.3.11"},{"bun":"1.4.2"},{"target":"linux-arm64-glibc"},{"target":"darwin-arm64"},{"target":"darwin-x64"},{"target":"win32-x64"},{"target":"win32-arm64"}]') }}
+ exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || inputs.scope == 'primary' && '[{"bun":"1.3.11"},{"bun":"1.3.13"}]' || '[{"bun":"1.3.11"},{"bun":"1.3.13"},{"target":"linux-arm64-glibc"},{"target":"darwin-arm64"},{"target":"darwin-x64"},{"target":"win32-x64"},{"target":"win32-arm64"}]') }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
@@ -120,7 +120,7 @@ jobs:
matrix:
runner: [windows-2022, windows-11-arm]
bun: ['1.3.11', '1.3.13', '1.4.2']
- exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || '[{"bun":"1.3.11"},{"bun":"1.4.2"}]') }}
+ exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || '[{"bun":"1.3.11"},{"bun":"1.3.13"}]') }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
@@ -147,7 +147,7 @@ jobs:
matrix:
runner: [windows-2022, windows-11-arm]
bun: ['1.3.11', '1.3.13', '1.4.2']
- exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || '[{"bun":"1.3.11"},{"bun":"1.4.2"}]') }}
+ exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || '[{"bun":"1.3.11"},{"bun":"1.3.13"}]') }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
@@ -175,7 +175,7 @@ jobs:
matrix:
bun: ['1.3.11', '1.3.13', '1.4.2']
target: [linux-x64-musl, linux-arm64-musl]
- exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || '[{"bun":"1.3.11"},{"bun":"1.4.2"}]') }}
+ exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || '[{"bun":"1.3.11"},{"bun":"1.3.13"}]') }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
diff --git a/.github/workflows/persistence-validation.yml b/.github/workflows/persistence-validation.yml
index a44a1f7d03..d426e79d28 100644
--- a/.github/workflows/persistence-validation.yml
+++ b/.github/workflows/persistence-validation.yml
@@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
engine: [pglite, postgres]
- bun: ['1.3.11', '1.3.13']
+ bun: ['1.3.11', '1.4.2']
# Pull requests run the primary Bun version; pushes, schedules and
# manual runs keep every supported version.
exclude: ${{ fromJSON(github.event_name == 'pull_request' && '[{"bun":"1.3.11"}]' || '[]') }}
@@ -57,7 +57,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- bun: ['1.3.11', '1.3.13']
+ bun: ['1.3.11', '1.4.2']
# Pull requests run the primary Bun version; pushes, schedules and
# manual runs keep every supported version.
exclude: ${{ fromJSON(github.event_name == 'pull_request' && '[{"bun":"1.3.11"}]' || '[]') }}
@@ -168,7 +168,7 @@ jobs:
fail-fast: false
matrix:
engine: [pglite, postgres]
- bun: ['1.3.11', '1.3.13']
+ bun: ['1.3.11', '1.4.2']
# Pull requests run the primary Bun version; pushes, schedules and
# manual runs keep every supported version.
exclude: ${{ fromJSON(github.event_name == 'pull_request' && '[{"bun":"1.3.11"}]' || '[]') }}
@@ -217,7 +217,7 @@ jobs:
fail-fast: false
matrix:
engine: [pglite, postgres]
- bun: ['1.3.11', '1.3.13']
+ bun: ['1.3.11', '1.4.2']
# Pull requests run the primary Bun version; pushes, schedules and
# manual runs keep every supported version.
exclude: ${{ fromJSON(github.event_name == 'pull_request' && '[{"bun":"1.3.11"}]' || '[]') }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 69fdde8df7..6ad6595316 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -233,7 +233,7 @@ jobs:
- if: steps.gate.outputs.publish == 'true'
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- if: steps.gate.outputs.publish == 'true'
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
@@ -306,7 +306,7 @@ jobs:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile
- name: Drift gate — committed plugin tree matches the generator
run: bash scripts/check-plugin-tree.sh
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 27d76cb118..9bc3d3dd38 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -127,7 +127,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-26, windows-latest]
- bun: ['1.3.11', '1.3.13']
+ bun: ['1.3.11', '1.4.2']
# Pull requests run the primary Bun version on every OS; pushes,
# schedules and manual runs add the oldest supported version.
exclude: ${{ fromJSON(github.event_name == 'pull_request' && '[{"bun":"1.3.11"}]' || '[]') }}
@@ -150,7 +150,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun audit
- run: bun install --frozen-lockfile --ignore-scripts
@@ -173,7 +173,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
# This job is the ONE designated saver of the bun cache (the others
# restore-only, so 5 redundant post-job save attempts disappear).
# admin/bun.lock is in the key because verify's check:admin-build
@@ -224,7 +224,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -297,7 +297,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -342,7 +342,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -412,7 +412,7 @@ jobs:
run: git fetch --no-tags --depth=1 origin +refs/heads/master:refs/remotes/origin/master
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -449,7 +449,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -529,7 +529,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -589,7 +589,7 @@ jobs:
fetch-depth: 0 # diff gate needs origin/master; baseline gate reads git show origin/master:
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.bun/install/cache
@@ -652,7 +652,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun install --frozen-lockfile --ignore-scripts
working-directory: admin
@@ -679,7 +679,7 @@ jobs:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: 1.3.13
+ bun-version: 1.4.2
- run: bun install --frozen-lockfile --ignore-scripts
- name: Build the pinned pre-feature executable
run: bash scripts/build-shared-skills-baseline.sh "$RUNNER_TEMP/gbrain-before-shared-skills"
diff --git a/BOOTSTRAP_FOR_AGENTS.md b/BOOTSTRAP_FOR_AGENTS.md
index c64c314082..1ef8ea4501 100644
--- a/BOOTSTRAP_FOR_AGENTS.md
+++ b/BOOTSTRAP_FOR_AGENTS.md
@@ -1,4 +1,4 @@
-<!-- gbrain-runbook-stamp: 0.60.23.0 -->
+<!-- gbrain-runbook-stamp: 0.60.25.0 -->
<!-- This stamp must equal the VERSION file at every release; CI enforces it
(scripts/check-bootstrap-tag.sh). `gbrain bootstrap status` compares it to
the installed binary and warns on skew. -->
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 14eea5f797..70db3e7583 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,40 @@ credits are retained; no result has been reassigned to another provider. Origina
identifiers and attribution are available in the pre-removal Git revision
`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).
+## [0.60.25.0] - 2026-10-01
+
+**CI now runs on Bun 1.4.2, so contributors stop seeing random test hangs.**
+
+Bun 1.3 had a bug where a finished child process could go unnoticed. The process exited, but the "it exited" signal got lost, so whatever was waiting for it waited forever. In GBrain's test suites that showed up as hangs that ended in "killed 1 dangling process" and a red run nobody could reproduce. Bun 1.4 fixes the bug at the source. Every CI job that pinned Bun 1.3.13 now pins 1.4.2, the same version that already compiles the release binaries.
+
+Two things behaved differently on 1.4 and are fixed. The out-of-band watchdog that kills a stuck `gbrain sync` or a wedged PGLite close kept killing on time, but its log lines (`parent alive ...`, `SIGTERM`, `SIGKILL`) stopped appearing while the process was stuck, because Bun 1.4 routes a worker thread's stderr through the main thread. They now go straight to the terminal, so cron logs show why a process died again. One test's fake database server also closed a socket twice, which Bun 1.4 reports as an error.
+
+If you run GBrain from source on Bun 1.3.x, nothing changes. Bun 1.3.11 is still the minimum and CI still tests it on pushes to master and nightly. The worst case of the old bug, a background `git` call that never returns, has been bounded in code since v0.60.16.0.
+
+| CI lane | Before | After |
+| --- | --- | --- |
+| Unit, serial, slow, E2E, verify, release publishing | Bun 1.3.13 | Bun 1.4.2 |
+| Security and persistence matrices | 1.3.11 and 1.3.13 | 1.3.11 and 1.4.2 |
+| Native lock matrix on pull requests | 1.3.13 | 1.4.2 (pushes still run 1.3.11, 1.3.13 and 1.4.2) |
+| Local gates (`ci:local`, `ci:ubicloud`) | Bun 1.3.13 | Bun 1.4.2 |
+
+### To take advantage of v0.60.25.0
+
+Nothing to do. `gbrain upgrade` as usual; there is no migration and no Bun upgrade is required.
+
+### Itemized changes
+
+- The sync hard-deadline watchdog and the stall watchdog (`src/core/process-watchdog.ts`) write log lines with a direct fd 2 write from their worker thread, so heartbeat, SIGTERM and SIGKILL lines stay visible while the main thread is starved on Bun 1.4.
+- New in-agent installs (`scripts/setup-in-agent.sh`) download the checksummed Bun 1.4.2 runtime. A repair keeps the runtime version recorded in its receipt.
+
+### For contributors
+
+- Pins moved from 1.3.13 to 1.4.2: every `bun-version:` in `test.yml`, `e2e.yml`, `heavy-tests.yml`, `macos-validation.yml`, `persistence-validation.yml` and `release.yml`; the `GBRAIN_CI_BUN_TAG` default in `docker-compose.ci.yml`; the `BUN_VERSION` default in `scripts/ubicloud/setup-ci-vm.sh` and the fallback in `scripts/ci-ubicloud.ts`; the `oven/bun` image in `tests/docker/`.
+- `test.yml`'s security matrix and every `persistence-validation.yml` matrix run 1.3.11 and 1.4.2; pull requests still skip 1.3.11. `native-locks.yml` keeps all three versions on full scope and narrows pull requests to 1.4.2.
+- `test/scripts/ci-pr-scope.test.ts` fails when any single-version pin drifts from the primary, or when a matrix stops running the minimum supported Bun.
+- `test/postgres-engine-singleton-lifecycle.test.ts`'s fake endpoint ends each refused socket once.
+- Bun 1.4.2 accepts the committed `bun.lock` unchanged. `package.json` engines stay at `>=1.3.11`.
+
## [0.60.23.0] - 2026-09-30
**Search now returns whole conversations by default. A hit on a session, transcript, meeting or chat log comes back as the full page, and every other hit stays exactly the chunk it was. On development data this answered far more conversation questions than chunks, at about four times the reading cost for those hits. A held-out check could not confirm the gain because its chats were too short to show one. Also fixed: two evidence-delivery bugs where a page whose best hit was fenced code got that code chunk instead of the page, and the code chunker's synthesized header line leaked into delivered text.**
diff --git a/VERSION b/VERSION
index 3d8e958e4c..b7d1629b04 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.60.23.0
+0.60.25.0
diff --git a/docker-compose.ci.yml b/docker-compose.ci.yml
index cb1f257a84..654f87e7da 100644
--- a/docker-compose.ci.yml
+++ b/docker-compose.ci.yml
@@ -5,7 +5,7 @@
# `bun run ci:local:diff` (see scripts/ci-local.sh).
#
# All services are pulled as `image:` (no build) so `docker compose pull`
-# refreshes everything. #4479: the bun tag is PINNED (default 1.3.13, matching
+# refreshes everything. #4479: the bun tag is PINNED (default 1.4.2, matching
# the CI/build bun) instead of floating with `oven/bun:1` — a floating tag
# resolved to a newer bun than the host and produced container-only behavior
# skew during release gates. Override per-run with GBRAIN_CI_BUN_TAG (e.g.
@@ -125,7 +125,7 @@ services:
runner:
# #4479: pinned to the host bun version by default (see header comment).
- image: oven/bun:${GBRAIN_CI_BUN_TAG:-1.3.13}
+ image: oven/bun:${GBRAIN_CI_BUN_TAG:-1.4.2}
working_dir: /app
environment:
# The bind-mounted checkout may contain private developer test keys.
diff --git a/docs/RELEASING.md b/docs/RELEASING.md
index d01579b377..90c10ef28e 100644
--- a/docs/RELEASING.md
+++ b/docs/RELEASING.md
@@ -386,8 +386,8 @@ missing), and attaches the compiled binaries.
The executable build job pins Bun 1.4.2 and verifies the Darwin artifact with
strict native `codesign` before publishing it. A source merge does not repair
already-published bad binaries; an affected release needs its own explicitly
-approved recovery and asset verification. The unrelated publishing jobs retain
-their own Bun pins.
+approved recovery and asset verification. The template and plugin publishing
+jobs pin the same Bun version.
### The `latest-stable` tag
diff --git a/docs/TESTING.md b/docs/TESTING.md
index db3671a86e..3d66a1ac28 100644
--- a/docs/TESTING.md
+++ b/docs/TESTING.md
@@ -54,11 +54,11 @@ manual dispatch. Pull requests run a narrower matrix of the same files:
| Lane | Pull request | Push to master, nightly, manual |
| --- | --- | --- |
-| Security regressions | Linux, macOS and Windows on Bun 1.3.13 | Also Bun 1.3.11 |
-| Persistence read latency, deployment matrix, soak, reconciliation crashes | Bun 1.3.13 | Bun 1.3.11 and 1.3.13 |
+| Security regressions | Linux, macOS and Windows on Bun 1.4.2 | Also Bun 1.3.11 |
+| Persistence read latency, deployment matrix, soak, reconciliation crashes | Bun 1.4.2 | Bun 1.3.11 and 1.4.2 |
| Persistence soak size | 2,500 writes | 10,000 writes |
-| Native writer locks, native paths changed | Every target on Bun 1.3.13, musl, both Windows probes, OpenClaw | Every target, musl and Windows probe on Bun 1.3.11, 1.3.13 and 1.4.2, OpenClaw |
-| Native writer locks, other changes | `linux-x64-glibc / Bun 1.3.13` smoke cell (full native step list) | Same as above |
+| Native writer locks, native paths changed | Every target on Bun 1.4.2, musl, both Windows probes, OpenClaw | Every target, musl and Windows probe on Bun 1.3.11, 1.3.13 and 1.4.2, OpenClaw |
+| Native writer locks, other changes | `linux-x64-glibc / Bun 1.4.2` smoke cell (full native step list) | Same as above |
| `test/export-scale.slow.test.ts` | 10,001 pages | 100,001 pages |
The `changes` job classifies a pull request's changed files with
@@ -703,7 +703,7 @@ boundaries, followed by a small multi-process soak. The Postgres test creates
and drops fresh test databases, requiring CREATEDB on the explicit test URL.
It never truncates the shared E2E database. The reusable
`persistence-validation.yml` gate runs 1,000 schedules and 10,000 writes per
-engine under Bun 1.3.11 and 1.3.13 and uploads actual executed-case manifests.
+engine under Bun 1.3.11 and 1.4.2 and uploads actual executed-case manifests.
See [`scripts/persistence/README.md`](../scripts/persistence/README.md) for
workloads, reruns, performance measurements and the process-crash scope.
@@ -2168,7 +2168,7 @@ existing fence and timeline suites.
`test/guarded-http.test.ts` and `test/guarded-http-tls.serial.test.ts` cover DNS,
TLS identity and ports, redirects, deadlines, body limits, and cleanup. CI runs
-these boundaries on Bun 1.3.11 and 1.3.13, audits root and admin dependencies, and
+these boundaries on Bun 1.3.11 and 1.4.2, audits root and admin dependencies, and
executes `scripts/test-gitleaks-config.sh` to prove fixture exceptions still
report an unrelated secret in the same file. `scripts/scan-worktree-secrets.sh`
scans tracked files plus new files eligible for commit; tracked ignored files
diff --git a/docs/architecture/key-files/entrypoints-and-docs.md b/docs/architecture/key-files/entrypoints-and-docs.md
index 72f45319c5..c96ef799ee 100644
--- a/docs/architecture/key-files/entrypoints-and-docs.md
+++ b/docs/architecture/key-files/entrypoints-and-docs.md
@@ -13,7 +13,7 @@ Current behavior and load-bearing invariants; history belongs in Git and CHANGEL
- `admin/` — React 19 + Vite + TypeScript admin SPA embedded in the binary via `admin/dist/` served by `serve-http.ts`. Views: Login (bootstrap token or single-use link → session cookie, preserving pending OAuth consent), Dashboard (metrics + SSE feed + token health), Agents (client table + registration), Register (machine/public PKCE/confidential PKCE with permission preview), Client Setup (method-aware instructions + explicit recoverable private download), Request Log (filterable paginated), Agent Detail drawer (setup, permission review, request activity, and token invalidation/revocation/deletion). Design tokens: `#0a0a0f` bg, Inter for UI, JetBrains Mono for data, 4-32px spacing scale, rounded pill badges. HTTP-only SameSite=Strict cookie auth. About 79KiB gzip for JS/CSS assets. Build: `cd admin && bun install && bun run build`; output at `admin/dist/` is committed for self-contained binaries.
-- `docker-compose.ci.yml` + `scripts/ci-local.sh` — Local CI gate. `bun run ci:local` spins up four `pgvector/pgvector:pg16` services (postgres-1..4) + `oven/bun:${GBRAIN_CI_BUN_TAG:-1.3.13}` with named volumes (`gbrain-ci-pg-data-{1..4}`, `gbrain-ci-node-modules`, `gbrain-ci-admin-node-modules`, `gbrain-ci-admin-dist`, `gbrain-ci-bun-cache`), runs gitleaks on host, smoke-tests `scripts/run-e2e.sh` argv handling, runs the authoritative `bun run verify` once plus the explicit Bun test-timeout guard, then the complete serial and slow lanes before 4-shard parallel unit + E2E (`xargs -P4`, one Postgres per shard; unit phase keeps `DATABASE_URL` unset). `--no-shard` runs unit/E2E sequentially (debug aid); `--diff` narrows E2E selection without changing the chosen shard mode. The doc-only `--diff` fast path runs only the host secrets scans. Also runs a `pgbouncer` service (`edoburu/pgbouncer`, `POOL_MODE: transaction`, `AUTH_TYPE: plain` — pg16 stores SCRAM verifiers, so the userlist must hold the plaintext password; `IGNORE_STARTUP_PARAMETERS` whitelists gbrain's `statement_timeout`/`idle_in_transaction_session_timeout` startup params the way the Supabase pooler does) fronting postgres-1 on host port `GBRAIN_CI_PGBOUNCER_PORT` (default 6543); every E2E invocation exports `GBRAIN_PGBOUNCER_URL` (pooled; dedicated `gbrain_pgbouncer_test` database so it never races the `gbrain_test` TRUNCATE fixtures) + `GBRAIN_PGBOUNCER_DIRECT_URL`, consumed by `test/e2e/pgbouncer-teardown.test.ts` — which reproduces the transaction-mode teardown failure in the local gate. `--no-pull` skips upstream pulls; `--clean` nukes named volumes. Postgres host port defaults to 5434; override with `GBRAIN_CI_PG_PORT=NNNN`. Full persistence and native runtime matrices run separately; see `docs/TESTING.md`.
+- `docker-compose.ci.yml` + `scripts/ci-local.sh` — Local CI gate. `bun run ci:local` spins up four `pgvector/pgvector:pg16` services (postgres-1..4) + `oven/bun:${GBRAIN_CI_BUN_TAG:-1.4.2}` with named volumes (`gbrain-ci-pg-data-{1..4}`, `gbrain-ci-node-modules`, `gbrain-ci-admin-node-modules`, `gbrain-ci-admin-dist`, `gbrain-ci-bun-cache`), runs gitleaks on host, smoke-tests `scripts/run-e2e.sh` argv handling, runs the authoritative `bun run verify` once plus the explicit Bun test-timeout guard, then the complete serial and slow lanes before 4-shard parallel unit + E2E (`xargs -P4`, one Postgres per shard; unit phase keeps `DATABASE_URL` unset). `--no-shard` runs unit/E2E sequentially (debug aid); `--diff` narrows E2E selection without changing the chosen shard mode. The doc-only `--diff` fast path runs only the host secrets scans. Also runs a `pgbouncer` service (`edoburu/pgbouncer`, `POOL_MODE: transaction`, `AUTH_TYPE: plain` — pg16 stores SCRAM verifiers, so the userlist must hold the plaintext password; `IGNORE_STARTUP_PARAMETERS` whitelists gbrain's `statement_timeout`/`idle_in_transaction_session_timeout` startup params the way the Supabase pooler does) fronting postgres-1 on host port `GBRAIN_CI_PGBOUNCER_PORT` (default 6543); every E2E invocation exports `GBRAIN_PGBOUNCER_URL` (pooled; dedicated `gbrain_pgbouncer_test` database so it never races the `gbrain_test` TRUNCATE fixtures) + `GBRAIN_PGBOUNCER_DIRECT_URL`, consumed by `test/e2e/pgbouncer-teardown.test.ts` — which reproduces the transaction-mode teardown failure in the local gate. `--no-pull` skips upstream pulls; `--clean` nukes named volumes. Postgres host port defaults to 5434; override with `GBRAIN_CI_PG_PORT=NNNN`. Full persistence and native runtime matrices run separately; see `docs/TESTING.md`.
- `docs/UPGRADING_DOWNSTREAM_AGENTS.md` — Patches for downstream agent skill forks to apply when upgrading. Each release appends a new section; includes diffs for brain-ops, meeting-ingestion, signal-detector, enrich.
diff --git a/docs/architecture/key-files/security.md b/docs/architecture/key-files/security.md
index 358dbd96a7..0f20144975 100644
--- a/docs/architecture/key-files/security.md
+++ b/docs/architecture/key-files/security.md
@@ -11,7 +11,7 @@ Current behavior and load-bearing invariants; history belongs in Git and CHANGEL
- `src/core/grants/lifecycle.ts` + `src/commands/serve-http-clients.ts` — owner-authenticated client inspection, setup, export and lifecycle endpoints. Token invalidation/revoke/delete lock the OAuth client row, require reviewed revisions and explicit application, and commit an audit record atomically. Deletion records a tombstone while preserving request history and spending reservations/settlement; missing clients become terminal delegated denials while transient lookup failures remain retryable.
-- `src/core/guarded-http.ts` + `src/core/ssrf-validate.ts` — DNS answer classification, validated-address connections with original TLS/HTTP hostname and port, shared deadline/redirect policy, header-only probes, and bounded gzip/deflate/Brotli decoding. Ambient proxies fail closed with restart guidance. Consumers: URL reachability, remote images, and HTTP integration checks. Real TLS fixtures run on Bun 1.3.11 and 1.3.13.
+- `src/core/guarded-http.ts` + `src/core/ssrf-validate.ts` — DNS answer classification, validated-address connections with original TLS/HTTP hostname and port, shared deadline/redirect policy, header-only probes, and bounded gzip/deflate/Brotli decoding. Ambient proxies fail closed with restart guidance. Consumers: URL reachability, remote images, and HTTP integration checks. Real TLS fixtures run on Bun 1.3.11 and 1.4.2.
- `src/core/guardrails.ts` — vendor-neutral content guardrail seams (`registerGuardrailProvider`, `classify`). `loadGuardrailProvidersFromEnv(env = process.env, opts?: { cwd, skipCwdCheck })` accepts ONLY an absolute path or a `~/` path for `GBRAIN_GUARDRAILS_MODULE`; cwd-relative specs (`./`, `../`, bare `.`) and bare package specifiers (`pkg`, `@scope/pkg`, `pkg/sub` — in the compiled binary Bun's module walk-up starts at the cwd, so a hostile checkout's `node_modules/<name>/` would load) throw `GuardrailLoadError` before any import, and when `env` is `process.env` (or `opts.cwd` is given) a spec that a cwd .env file assigns is refused via `cwdDotenvAssignsKey` (message composed from env-trust's `CWD_DOTENV_REMEDIATION`) unless `opts.skipCwdCheck` (preflight's cwd == config-dir case). node:path/url/os are static imports. Registration is counted by EVENTS against a pre-import baseline so import-time side-effect registration and same-id replacement are accepted (#3688 residual). Pinned by `test/guardrails.test.ts` + `test/guardrails-env-load.test.ts`.
diff --git a/docs/guides/authorization-upgrade.md b/docs/guides/authorization-upgrade.md
index e8f723906a..4cbea5961d 100644
--- a/docs/guides/authorization-upgrade.md
+++ b/docs/guides/authorization-upgrade.md
@@ -10,7 +10,7 @@ uses `gbrain jobs authorize-legacy` to preview selected work for review.
## Runtime and outbound requests
-Use Bun **1.3.11 or newer**. CI covers 1.3.11 and the build runtime, 1.3.13.
+Use Bun **1.3.11 or newer**. CI covers 1.3.11 and the build runtime, 1.4.2.
Compiled distributions include their Bun runtime.
URL reachability checks, HTTP integration checks, and remote image loading use
diff --git a/openclaw.plugin.json b/openclaw.plugin.json
index 22a8280eba..94eac940cb 100644
--- a/openclaw.plugin.json
+++ b/openclaw.plugin.json
@@ -1,7 +1,7 @@
{
"id": "gbrain-context-engine",
"name": "gbrain",
- "version": "0.60.23.0",
+ "version": "0.60.25.0",
"description": "Personal knowledge brain with Postgres + pgvector hybrid search",
"family": "bundle-plugin",
"kind": "context-engine",
diff --git a/package.json b/package.json
index ec7afc209a..4006d60001 100644
--- a/package.json
+++ b/package.json
@@ -204,7 +204,7 @@
"bun": ">=1.3.11"
},
"license": "MIT",
- "version": "0.60.23.0",
+ "version": "0.60.25.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.json
index 00b8b8fa70..eba23bb3f7 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.60.23.0",
+ "version": "0.60.25.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.json
index 52b8b9561e..1eb1b39f8c 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.60.23.0",
+ "version": "0.60.25.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.md
index 21c283504e..8d189d1b73 100644
--- a/plugin-variants/gbrain-coding/README.md
+++ b/plugin-variants/gbrain-coding/README.md
@@ -1,4 +1,4 @@
-<!-- gbrain-plugin-tree-stamp: 0.60.23.0 -->
+<!-- gbrain-plugin-tree-stamp: 0.60.25.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.json
index dfc1a39128..13447fa0a9 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.60.23.0",
+ "version": "0.60.25.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.json
index 1ab582b091..1dc0336d83 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.60.23.0",
+ "version": "0.60.25.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.md
index 2b71d69c51..5eb57af160 100644
--- a/plugin-variants/gbrain-daily/README.md
+++ b/plugin-variants/gbrain-daily/README.md
@@ -1,4 +1,4 @@
-<!-- gbrain-plugin-tree-stamp: 0.60.23.0 -->
+<!-- gbrain-plugin-tree-stamp: 0.60.25.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.md
index b0c7730bcb..6d7d7ed60b 100644
--- a/plugin/README.md
+++ b/plugin/README.md
@@ -1,4 +1,4 @@
-<!-- gbrain-plugin-tree-stamp: 0.60.23.0 -->
+<!-- gbrain-plugin-tree-stamp: 0.60.25.0 -->
# gbrain plugin skill tree (generated — do not hand-edit)
This tree is the curated skill set for the gbrain Codex and Claude Code
diff --git a/scripts/check-compile-autoload.sh b/scripts/check-compile-autoload.sh
index cb1f426f47..c4670d5b12 100755
--- a/scripts/check-compile-autoload.sh
+++ b/scripts/check-compile-autoload.sh
@@ -7,7 +7,7 @@
# binary's own code — before cli-preflight.ts, before the cwd-.env quarantine.
# gbrain is a globally installed CLI that runs from arbitrary checkouts, so a
# hostile repository carrying `bunfig.toml` + `preload = ["./x.ts"]` would get
-# code execution from a plain `gbrain --version` (verified on Bun 1.3.13). The
+# code execution from a plain `gbrain --version` (verified on Bun 1.3.13 and 1.4.2). The
# flag makes a cwd bunfig.toml inert for the compiled binary. The dev runtime
# (`bun src/cli.ts`) stays bun-native: a contributor's cwd is trusted.
#
diff --git a/scripts/ci-ubicloud.ts b/scripts/ci-ubicloud.ts
index 98e31bd25c..b5f8ab1679 100755
--- a/scripts/ci-ubicloud.ts
+++ b/scripts/ci-ubicloud.ts
@@ -236,7 +236,7 @@ async function main() {
const bunVersion = process.env.GBRAIN_CI_BUN_TAG
?? /oven\/bun:\$\{GBRAIN_CI_BUN_TAG:-([^}]+)\}/.exec(readFileSync(join(ROOT, "docker-compose.ci.yml"), "utf8"))?.[1]
- ?? "1.3.13";
+ ?? "1.4.2";
// ── Teardown on every exit path ──────────────────────────────────────────
const vms: Vm[] = Array.from({ length: opts.vms }, (_, i) => ({
diff --git a/scripts/e2e-matrix.ts b/scripts/e2e-matrix.ts
index 36573b58f6..176ba2d445 100644
--- a/scripts/e2e-matrix.ts
+++ b/scripts/e2e-matrix.ts
@@ -6,7 +6,7 @@ import { resolve, relative, isAbsolute } from "node:path";
import { loadWeights, partition, type WeightMap } from "./sharding.ts";
// PR owner of the reconciliation crash suites is persistence-validation.yml
-// (called from test.yml on every PR; postgres x Bun 1.3.11/1.3.13; crash
+// (called from test.yml on every PR; postgres x Bun 1.3.11/1.4.2; crash
// manifests uploaded). Nightly full-corpus E2E still runs them.
export const PERSISTENCE_VALIDATION_OWNED = new Set([
'test/e2e/reconcile-crash.test.ts',
diff --git a/scripts/persistence/README.md b/scripts/persistence/README.md
index a205238d3e..6cd28c0de9 100644
--- a/scripts/persistence/README.md
+++ b/scripts/persistence/README.md
@@ -99,7 +99,7 @@ never a connection URL. Keep the retained directory private: its original
the diagnostic manifest. Successful runs retain no fixtures.
`persistence-validation.yml` runs the full gate on Linux x64 for both engines
-under Bun 1.3.11 and 1.3.13 and uploads every manifest. Native OS/architecture
+under Bun 1.3.11 and 1.4.2 and uploads every manifest. Native OS/architecture
coverage is separately required by `native-locks.yml`; its configured matrix
must not be mistaken for locally executed runtime evidence.
diff --git a/scripts/setup-in-agent.sh b/scripts/setup-in-agent.sh
index 9dab5174f8..cd5806eadd 100644
--- a/scripts/setup-in-agent.sh
+++ b/scripts/setup-in-agent.sh
@@ -45,7 +45,7 @@ done
# The runtime pin follows the repository's supported CI release. Repair reads
# its prior version from the non-secret receipt; no mutable latest runtime URL.
-gbrain_bun_version=1.3.13
+gbrain_bun_version=1.4.2
gbrain_source_ref=''
if [[ -f "$gbrain_receipt" && "$gbrain_upgrade" == 0 ]]; then
gbrain_prior_bun=$(sed -n 's/.*"bun_version": *"\([0-9.]*\)".*/\1/p' "$gbrain_receipt" | head -1)
diff --git a/scripts/structural-suites.tsv b/scripts/structural-suites.tsv
index fe1db2a62c..871f745869 100644
--- a/scripts/structural-suites.tsv
+++ b/scripts/structural-suites.tsv
@@ -249,7 +249,7 @@ test/scripts/ci-local-rendering.test.ts ci-local command rendering 1 readFileSyn
test/scripts/ci-local-rendering.test.ts ci-local execution coverage 3 readFileSync
test/scripts/ci-local-rendering.test.ts local test configuration through run-e2e 2 readFileSync
test/scripts/ci-local-rendering.test.ts required PgBouncer execution through run-e2e 1 readFileSync
-test/scripts/ci-pr-scope.test.ts pull-request CI scope 7 readFileSync
+test/scripts/ci-pr-scope.test.ts pull-request CI scope 8 readFileSync
test/scripts/ci-runner-routing.test.ts CI runner routing 6 readFileSync
test/scripts/classify-tests.test.ts classify-tests detectors 23 bun-file,doctor-source-helper,exec-scan,readFileSync,source-surface-helper
test/scripts/coverage-diff-gate.test.ts exemptions 3 readFileSync
diff --git a/scripts/ubicloud/setup-ci-vm.sh b/scripts/ubicloud/setup-ci-vm.sh
index fc04a28e26..42c5dedc5c 100755
--- a/scripts/ubicloud/setup-ci-vm.sh
+++ b/scripts/ubicloud/setup-ci-vm.sh
@@ -14,11 +14,11 @@
# - frozen dependencies and both PGLite snapshot fixtures, built once
# - gitleaks (GITLEAKS=1; pinned + checksum-verified like test.yml)
#
-# Knobs: SLOTS (default nproc), BUN_VERSION (default 1.3.13), GITLEAKS=0|1.
+# Knobs: SLOTS (default nproc), BUN_VERSION (default 1.4.2), GITLEAKS=0|1.
set -euo pipefail
SLOTS="${SLOTS:-$(nproc)}"
-BUN_VERSION="${BUN_VERSION:-1.3.13}"
+BUN_VERSION="${BUN_VERSION:-1.4.2}"
GITLEAKS="${GITLEAKS:-0}"
GITLEAKS_VERSION=8.30.1
PG_IMAGE=pgvector/pgvector:pg16
diff --git a/src/core/process-watchdog.ts b/src/core/process-watchdog.ts
index 96544ac773..6f482abf36 100644
--- a/src/core/process-watchdog.ts
+++ b/src/core/process-watchdog.ts
@@ -113,15 +113,18 @@ const INERT: WatchdogHandle = { dispose() {}, get active() { return false; } };
/**
* Worker body (runs on its own OS thread). Inline string so `eval: true` bakes
* it into the compiled binary. Uses only built-ins available in a Bun worker.
+ * Log lines go straight to fd 2: since Bun 1.4 a worker's `process.stderr` is
+ * forwarded through the parent's event loop, which a starved parent never runs.
*
* `label` is validated by the caller to a safe charset before it reaches here,
* so it can't break the string literal or inject log lines.
*/
const WORKER_SRC = `
const { workerData } = require('node:worker_threads');
+const { writeSync } = require('node:fs');
const { deadlineMs, graceMs, label, heartbeatMs } = workerData;
const t0 = Date.now();
-function w(m) { try { process.stderr.write('[' + label + '] ' + m + '\\n'); } catch (e) {} }
+function w(m) { try { writeSync(2, '[' + label + '] ' + m + '\\n'); } catch (e) {} }
if (heartbeatMs > 0) {
const hb = setInterval(() => {
const elapsed = Math.round((Date.now() - t0) / 1000);
@@ -348,11 +351,12 @@ export interface LoopStallWatchdogOpts {
*/
const STALL_WORKER_SRC = `
const { parentPort, workerData } = require('node:worker_threads');
+const { writeSync } = require('node:fs');
const { stallMs, graceMs, label, checkIntervalMs } = workerData;
let lastPet = Date.now();
let lastCheck = Date.now();
let latched = false;
-function w(m) { try { process.stderr.write('[' + label + '] ' + m + '\\n'); } catch (e) {} }
+function w(m) { try { writeSync(2, '[' + label + '] ' + m + '\\n'); } catch (e) {} }
if (parentPort) parentPort.on('message', () => { lastPet = Date.now(); });
setInterval(() => {
const now = Date.now();
diff --git a/templates/bootstrap/template-repo/README.md b/templates/bootstrap/template-repo/README.md
index e16057ce0d..71aa3a3b22 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.60.23.0 -->
+<!-- gbrain-template-stamp: 0.60.25.0 -->
This repository is the **"Use this template"** distribution artifact for a
[gbrain](https://github.com/garrytan/gbrain) personal-agent workspace — the same
diff --git a/test/postgres-engine-singleton-lifecycle.test.ts b/test/postgres-engine-singleton-lifecycle.test.ts
index b528578bab..21750c1f5a 100644
--- a/test/postgres-engine-singleton-lifecycle.test.ts
+++ b/test/postgres-engine-singleton-lifecycle.test.ts
@@ -32,7 +32,7 @@ async function openEndpoint() {
const server = createServer(socket => {
dials++;
held.push(socket);
- socket.on('data', () => { if (refusing) socket.end(fatal()); });
+ socket.on('data', () => { if (refusing && !socket.writableEnded) socket.end(fatal()); });
});
await new Promise<void>(resolve => server.listen(0, '127.0.0.1', resolve));
return {
diff --git a/test/scripts/ci-pr-scope.test.ts b/test/scripts/ci-pr-scope.test.ts
index 7c79bc0afc..285468ecc8 100644
--- a/test/scripts/ci-pr-scope.test.ts
+++ b/test/scripts/ci-pr-scope.test.ts
@@ -5,6 +5,7 @@ import { join } from 'node:path';
import { spawnSync } from 'node:child_process';
import { runInNewContext } from 'node:vm';
import { safeLoad } from 'js-yaml';
+import { MINIMUM_BUN_VERSION } from '../../src/core/runtime-version.ts';
type Matrix = Record<string, unknown> & { exclude?: string };
type Job = { if?: string; 'runs-on'?: string; strategy?: { matrix: Matrix }; steps?: Array<{ id?: string; run?: string; env?: Record<string, string> }> };
@@ -50,16 +51,16 @@ describe('pull-request CI scope', () => {
test('a pull request touching native paths runs every target on the primary Bun version', () => {
const primary = nativeCells('primary');
- expect(primary.native.sort()).toEqual(['darwin-arm64', 'darwin-x64', 'linux-arm64-glibc', 'linux-x64-glibc', 'win32-arm64', 'win32-x64'].map(target => `1.3.13/${target}`));
- expect(primary.musl).toEqual(['1.3.13/linux-x64-musl', '1.3.13/linux-arm64-musl']);
- expect(primary.console).toEqual(['windows-2022/1.3.13', 'windows-11-arm/1.3.13']);
- expect(primary.dotnet).toEqual(['windows-2022/1.3.13', 'windows-11-arm/1.3.13']);
+ expect(primary.native.sort()).toEqual(['darwin-arm64', 'darwin-x64', 'linux-arm64-glibc', 'linux-x64-glibc', 'win32-arm64', 'win32-x64'].map(target => `1.4.2/${target}`));
+ expect(primary.musl).toEqual(['1.4.2/linux-x64-musl', '1.4.2/linux-arm64-musl']);
+ expect(primary.console).toEqual(['windows-2022/1.4.2', 'windows-11-arm/1.4.2']);
+ expect(primary.dotnet).toEqual(['windows-2022/1.4.2', 'windows-11-arm/1.4.2']);
expect(primary.openclaw).toBe(true);
});
test('other pull requests keep one Linux smoke cell that runs the whole native step list', () => {
const smoke = nativeCells('smoke');
- expect(smoke).toEqual({ native: ['1.3.13/linux-x64-glibc'], musl: [], console: [], dotnet: [], openclaw: false });
+ expect(smoke).toEqual({ native: ['1.4.2/linux-x64-glibc'], musl: [], console: [], dotnet: [], openclaw: false });
});
test('native path changes, an empty list and docs-only diffs classify as expected', () => {
@@ -100,13 +101,13 @@ describe('pull-request CI scope', () => {
const push = { github: { event_name: 'push' } };
const security = load('test.yml').jobs['security-regressions'];
expect(cells(security, push)).toHaveLength(6);
- expect(cells(security, pr)).toEqual(['ubuntu-latest/1.3.13', 'macos-26/1.3.13', 'windows-latest/1.3.13']);
+ expect(cells(security, pr)).toEqual(['ubuntu-latest/1.4.2', 'macos-26/1.4.2', 'windows-latest/1.4.2']);
const persistence = load('persistence-validation.yml').jobs;
for (const name of ['read-performance', 'deployment-matrix', 'invariants', 'reconciliation']) {
const full = cells(persistence[name], push);
const primary = cells(persistence[name], pr);
expect(full.filter(cell => cell.endsWith('1.3.11')).length, name).toBe(full.length / 2);
- expect(primary, name).toEqual(full.filter(cell => cell.endsWith('1.3.13')));
+ expect(primary, name).toEqual(full.filter(cell => cell.endsWith('1.4.2')));
}
});
@@ -116,4 +117,29 @@ describe('pull-request CI scope', () => {
expect(evaluate(expression, { github: { event_name: 'pull_request' } })).toBe('10001');
for (const event_name of ['push', 'schedule', 'workflow_dispatch']) expect(evaluate(expression, { github: { event_name } })).toBe('100001');
});
+
+ // #4479: a local gate or VM on a different Bun than CI produced
+ // runtime-only skew, so every single-version pin moves together.
+ test('every single-version Bun pin matches the primary, and matrices keep the oldest supported version', () => {
+ const primary = '1.4.2';
+ const read = (path: string) => readFileSync(join(root, path), 'utf8');
+ const workflows = ['test', 'e2e', 'heavy-tests', 'macos-validation', 'persistence-validation', 'release', 'native-locks']
+ .map(name => read(`.github/workflows/${name}.yml`)).join('\n');
+ const pinned = [...workflows.matchAll(/bun-version:\s*(\S+)/g)].map(match => match[1]).filter(value => !value.startsWith('$'));
+ expect(pinned.length).toBeGreaterThan(30);
+ expect([...new Set(pinned)]).toEqual([primary]);
+ expect(/oven\/bun:\$\{GBRAIN_CI_BUN_TAG:-([^}]+)\}/.exec(read('docker-compose.ci.yml'))?.[1]).toBe(primary);
+ expect(/BUN_VERSION="\$\{BUN_VERSION:-([^}]+)\}"/.exec(read('scripts/ubicloud/setup-ci-vm.sh'))?.[1]).toBe(primary);
+ expect(/\?\? "([\d.]+)";/.exec(read('scripts/ci-ubicloud.ts'))?.[1]).toBe(primary);
+ expect(/^gbrain_bun_version=(\S+)$/m.exec(read('scripts/setup-in-agent.sh'))?.[1]).toBe(primary);
+ expect(/ARG BUN_IMAGE=oven\/bun:(\S+)/.exec(read('tests/docker/Dockerfile'))?.[1]).toBe(primary);
+ expect(/GBRAIN_E2E_BUN_IMAGE:-oven\/bun:([^}]+)\}/.exec(read('tests/docker/bootstrap-e2e.sh'))?.[1]).toBe(primary);
+ const matrices = [load('test.yml').jobs['security-regressions'], ...Object.values(load('persistence-validation.yml').jobs)]
+ .map(job => job.strategy?.matrix.bun).filter(Boolean);
+ expect(matrices).toHaveLength(5);
+ for (const bun of matrices) expect(bun).toEqual([MINIMUM_BUN_VERSION, primary]);
+ for (const job of ['native', 'musl', 'windows-backup-console', 'windows-backup-dotnet']) {
+ expect(native[job].strategy!.matrix.bun as string[]).toEqual(expect.arrayContaining([MINIMUM_BUN_VERSION, primary]));
+ }
+ });
});
diff --git a/tests/docker/Dockerfile b/tests/docker/Dockerfile
index 12feb8af86..fd814abdfb 100644
--- a/tests/docker/Dockerfile
+++ b/tests/docker/Dockerfile
@@ -6,7 +6,7 @@
#
# BUN_IMAGE is overridable so the harness can track CI's pinned bun version
# (see .github/workflows/heavy-tests.yml setup-bun) without editing this file.
-ARG BUN_IMAGE=oven/bun:1.3.13
+ARG BUN_IMAGE=oven/bun:1.4.2
FROM ${BUN_IMAGE}
# git drives the interview/render/repo phases; ca-certificates is build-time
diff --git a/tests/docker/bootstrap-e2e.sh b/tests/docker/bootstrap-e2e.sh
index 4484fbc92a..7c1e167655 100644
--- a/tests/docker/bootstrap-e2e.sh
+++ b/tests/docker/bootstrap-e2e.sh
@@ -14,7 +14,7 @@
# keyless verify on a temp PGLite brain.
#
# Env knobs:
-# GBRAIN_E2E_BUN_IMAGE base image override (default oven/bun:1.3.13 —
+# GBRAIN_E2E_BUN_IMAGE base image override (default oven/bun:1.4.2 —
# keep in step with heavy-tests.yml's bun-version)
# GBRAIN_E2E_IMAGE_TAG image tag override (default gbrain-bootstrap-e2e:local)
set -euo pipefail
@@ -23,7 +23,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
INNER="$SCRIPT_DIR/bootstrap-e2e-inner.sh"
DOCKERFILE="$SCRIPT_DIR/Dockerfile"
-BUN_IMAGE="${GBRAIN_E2E_BUN_IMAGE:-oven/bun:1.3.13}"
+BUN_IMAGE="${GBRAIN_E2E_BUN_IMAGE:-oven/bun:1.4.2}"
IMAGE_TAG="${GBRAIN_E2E_IMAGE_TAG:-gbrain-bootstrap-e2e:local}"
DRY_RUN=0