Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
v0.60.8.0 ci: cut PR CI demand from ~890 to ~186 vCPUs — right-sized runners, PR-scoped matrices, balanced shards, lighter slow tests (#5727)
Garry Tanf33328fabb07
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 0d5a349225..9713ab5623 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.6.0",+ "version": "0.60.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 83384a2a03..339863cdd2 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "gbrain",- "version": "0.60.6.0",+ "version": "0.60.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/actionlint.yaml b/.github/actionlint.yamlindex 380311f83d..6acdfe40b8 100644--- a/.github/actionlint.yaml+++ b/.github/actionlint.yaml@@ -2,6 +2,7 @@ self-hosted-runner:labels:- ubicloud-standard-2-ubuntu-2404- ubicloud-standard-4-ubuntu-2404+ - ubicloud-standard-8-ubuntu-2404- ubicloud-standard-16-ubuntu-2404- ubicloud-standard-30-ubuntu-2404- - ubicloud-standard-16-arm-ubuntu-2404+ - ubicloud-standard-4-arm-ubuntu-2404diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.ymlindex 99b1377844..22f8a96ab0 100644--- a/.github/workflows/e2e.yml+++ b/.github/workflows/e2e.yml@@ -34,7 +34,7 @@ jobs:# Postgres and HARD-FAILS if DATABASE_URL is missing, so the guard can never# silently skip.name: JSONB parity (#2339 regression guard)- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 15services:postgres:@@ -149,7 +149,7 @@ jobs:strategy:fail-fast: falsematrix: ${{ fromJSON(needs.prepare-e2e.outputs.matrix) }}- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 60services:postgres:@@ -203,6 +203,9 @@ jobs:tier1:name: Tier 1 (Mechanical)+ # Tier 1 stays on 16 vCPUs: on 4 its CLI `init --url` spawns in+ # mechanical.test.ts went from ~2s to past their 15-30s kill timeouts+ # (measured September 29, 2026), while every other E2E lane ran as fast.runs-on: ubicloud-standard-16-ubuntu-2404timeout-minutes: 30services:@@ -332,7 +335,7 @@ jobs:# OpenAI/Anthropic tokens and must not fire when the build# can't even pass the cheapest DB guard.needs: jsonb-parity- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 30services:postgres:@@ -434,7 +437,7 @@ jobs:# ──────────────────────────────────────────────────────────────────────coverage-full-unit:if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.full_corpus)- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 30strategy:fail-fast: false@@ -462,7 +465,7 @@ jobs:coverage-full-serial:if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.full_corpus)- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-8-ubuntu-2404timeout-minutes: 30steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4@@ -485,8 +488,8 @@ jobs:coverage-full-slow:if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.full_corpus)- runs-on: ubicloud-standard-16-ubuntu-2404- timeout-minutes: 25+ runs-on: ubicloud-standard-4-ubuntu-2404+ timeout-minutes: 35steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2@@ -498,6 +501,12 @@ jobs:- run: bun test test/entity-resolve-perf.slow.test.ts --timeout=300000 --coverage --coverage-reporter=lcov --coverage-dir=${{ runner.temp }}/coverage/slow-b- run: bun test test/entity-card-perf.slow.test.ts --timeout=300000 --coverage --coverage-reporter=lcov --coverage-dir=${{ runner.temp }}/coverage/slow-c- run: bun test test/eval-brainbench-e2e.slow.test.ts --timeout=300000 --coverage --coverage-reporter=lcov --coverage-dir=${{ runner.temp }}/coverage/slow-d+ # Coverage only: the 100,001-page scale and the PGLite crash gate run in+ # test.yml and persistence-validation.yml on every push.+ - run: bun test test/export-scale.slow.test.ts --timeout=900000 --coverage --coverage-reporter=lcov --coverage-dir=${{ runner.temp }}/coverage/slow-e+ env:+ GBRAIN_TEST_EXPORT_SCALE_PAGES: '10001'+ - run: bun test test/reconcile-crash.slow.test.ts --timeout=180000 --coverage --coverage-reporter=lcov --coverage-dir=${{ runner.temp }}/coverage/slow-f- name: Write coverage lane manifestrun: |printf '{"lane":"slow","sha":"%s","lcovCount":%s,"complete":true}\n' \@@ -515,7 +524,7 @@ jobs:coverage-full-e2e:if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.full_corpus)- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 60strategy:fail-fast: falsediff --git a/.github/workflows/native-locks.yml b/.github/workflows/native-locks.ymlindex 602d28571a..8dc0f5f9d5 100644--- a/.github/workflows/native-locks.yml+++ b/.github/workflows/native-locks.yml@@ -2,6 +2,15 @@ name: Native writer lockson:workflow_call:+ inputs:+ # full: every Bun version on every target (push, schedule, manual runs).+ # primary: every target on the primary Bun version (a PR that changes+ # native, lock, IPC, publication, backup, export or sync paths).+ # smoke: the Linux x64 glibc cell on the primary Bun version (other PRs).+ # scripts/ci-native-scope.sh classifies pull requests.+ scope:+ type: string+ default: fullpermissions:contents: read@@ -9,7 +18,8 @@ permissions:jobs:openclaw:name: OpenClaw 2026.9.4 native context-engine startup- runs-on: ubicloud-standard-16-ubuntu-2404+ if: ${{ inputs.scope != 'smoke' }}+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 10services:postgres:@@ -44,26 +54,16 @@ jobs:native:name: ${{ matrix.target }} / Bun ${{ matrix.bun }}- runs-on: ${{ matrix.runner }}+ runs-on: ${{ fromJSON('{"linux-x64-glibc":"ubicloud-standard-4-ubuntu-2404","linux-arm64-glibc":"ubicloud-standard-4-arm-ubuntu-2404","darwin-arm64":"macos-15","darwin-x64":"macos-15-intel","win32-x64":"windows-2022","win32-arm64":"windows-11-arm"}')[matrix.target] }}timeout-minutes: 15strategy:fail-fast: falsematrix:bun: ['1.3.11', '1.3.13', '1.4.2']target: [linux-x64-glibc, linux-arm64-glibc, darwin-arm64, darwin-x64, win32-x64, win32-arm64]- include:- - runner: ubicloud-standard-16-ubuntu-2404- target: linux-x64-glibc- - runner: ubicloud-standard-16-arm-ubuntu-2404- target: linux-arm64-glibc- - runner: macos-15- target: darwin-arm64- - runner: macos-15-intel- target: darwin-x64- - runner: windows-2022- target: win32-x64- - runner: windows-11-arm- target: 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"}]') }}steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6@@ -105,24 +105,15 @@ jobs:windows-backup-console:name: Windows PowerShell console probe / ${{ matrix.runner }} / Bun ${{ matrix.bun }}+ if: ${{ inputs.scope != 'smoke' }}runs-on: ${{ matrix.runner }}timeout-minutes: 5strategy:fail-fast: falsematrix:- include:- - runner: windows-2022- bun: '1.3.11'- - runner: windows-2022- bun: '1.3.13'- - runner: windows-2022- bun: '1.4.2'- - runner: windows-11-arm- bun: '1.3.11'- - runner: windows-11-arm- bun: '1.3.13'- - runner: windows-11-arm- bun: '1.4.2'+ 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"}]') }}steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6@@ -141,24 +132,15 @@ jobs:windows-backup-dotnet:name: Windows ACL API probe / ${{ matrix.runner }} / Bun ${{ matrix.bun }}+ if: ${{ inputs.scope != 'smoke' }}runs-on: ${{ matrix.runner }}timeout-minutes: 5strategy:fail-fast: falsematrix:- include:- - runner: windows-2022- bun: '1.3.11'- - runner: windows-2022- bun: '1.3.13'- - runner: windows-2022- bun: '1.4.2'- - runner: windows-11-arm- bun: '1.3.11'- - runner: windows-11-arm- bun: '1.3.13'- - runner: windows-11-arm- bun: '1.4.2'+ 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"}]') }}steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6@@ -178,18 +160,15 @@ jobs:musl:name: ${{ matrix.target }} / Bun ${{ matrix.bun }}- runs-on: ${{ matrix.runner }}+ if: ${{ inputs.scope != 'smoke' }}+ runs-on: ${{ fromJSON('{"linux-x64-musl":"ubicloud-standard-4-ubuntu-2404","linux-arm64-musl":"ubicloud-standard-4-arm-ubuntu-2404"}')[matrix.target] }}timeout-minutes: 15strategy:fail-fast: falsematrix:bun: ['1.3.11', '1.3.13', '1.4.2']target: [linux-x64-musl, linux-arm64-musl]- include:- - runner: ubicloud-standard-16-ubuntu-2404- target: linux-x64-musl- - runner: ubicloud-standard-16-arm-ubuntu-2404- target: linux-arm64-musl+ exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || '[{"bun":"1.3.11"},{"bun":"1.4.2"}]') }}steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6diff --git a/.github/workflows/persistence-validation.yml b/.github/workflows/persistence-validation.ymlindex 982cda3ef4..a44a1f7d03 100644--- a/.github/workflows/persistence-validation.yml+++ b/.github/workflows/persistence-validation.yml@@ -10,13 +10,16 @@ permissions:jobs:read-performance:name: Read latency / ${{ matrix.engine }} / Bun ${{ matrix.bun }}- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 55strategy:fail-fast: falsematrix:engine: [pglite, postgres]bun: ['1.3.11', '1.3.13']+ # 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"}]' || '[]') }}services:postgres:image: pgvector/pgvector:pg16@@ -49,12 +52,15 @@ jobs:deployment-matrix:name: PgBouncer, RLS and pool capacity / Bun ${{ matrix.bun }}- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-8-ubuntu-2404timeout-minutes: 15strategy:fail-fast: falsematrix:bun: ['1.3.11', '1.3.13']+ # 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"}]' || '[]') }}services:postgres:image: pgvector/pgvector:pg16@@ -154,13 +160,18 @@ jobs:invariants:name: ${{ matrix.engine }} / Bun ${{ matrix.bun }}- runs-on: ubicloud-standard-30-ubuntu-2404+ # The soak uses 1.3-1.8 busy cores: the 2,500-write PGLite soak took 523s on+ # 4 vCPUs, 539s on 8 and 500s on 16.+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 110strategy:fail-fast: falsematrix:engine: [pglite, postgres]bun: ['1.3.11', '1.3.13']+ # 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"}]' || '[]') }}services:postgres:image: pgvector/pgvector:pg16@@ -188,6 +199,45 @@ jobs:bun --no-env-file scripts/persistence/validate.ts --engine=${{ matrix.engine }}--operations="$SOAK_OPERATIONS"--manifest=.context/persistence-manifest.json+ - name: Upload executed-case and latency manifest+ if: always()+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02+ with:+ name: persistence-${{ matrix.engine }}-bun-${{ matrix.bun }}+ path: .context/persistence-manifest.json+ if-no-files-found: error++ # The reconciliation crash suites run beside the soak instead of after it, so+ # neither holds the other's runner: each is about four minutes on PGLite.+ reconciliation:+ name: Reconciliation crashes / ${{ matrix.engine }} / Bun ${{ matrix.bun }}+ runs-on: ubicloud-standard-4-ubuntu-2404+ timeout-minutes: 30+ strategy:+ fail-fast: false+ matrix:+ engine: [pglite, postgres]+ bun: ['1.3.11', '1.3.13']+ # 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"}]' || '[]') }}+ services:+ postgres:+ image: pgvector/pgvector:pg16+ env:+ POSTGRES_USER: gbrain_test+ POSTGRES_PASSWORD: gbrain_test+ POSTGRES_DB: gbrain_test+ ports: ['5432:5432']+ options: >-+ --health-cmd "pg_isready -U gbrain_test -d gbrain_test"+ --health-interval 5s --health-timeout 5s --health-retries 20+ steps:+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6+ with:+ bun-version: ${{ matrix.bun }}+ - run: bun install --frozen-lockfile --ignore-scripts- name: Require all reconciliation crash boundaries before and after activationtimeout-minutes: 12env:@@ -207,10 +257,3 @@ jobs:name: reconciliation-${{ matrix.engine }}-bun-${{ matrix.bun }}path: .context/reconcile-crashes/*.jsonif-no-files-found: error- - name: Upload executed-case and latency manifest- if: always()- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02- with:- name: persistence-${{ matrix.engine }}-bun-${{ matrix.bun }}- path: .context/persistence-manifest.json- if-no-files-found: errordiff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex c83eda955f..ba75c9ed5f 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -5,6 +5,9 @@ on:branches: [master]pull_request:branches: [master]+ # Nightly full matrix: every Bun version and native target, like a push to master.+ schedule:+ - cron: '23 7 * * *'# Manual dispatch lets a local dev/agent offload the suite to GitHub's# on-demand runners from ANY branch (see scripts/ship-remote-tests.sh).# Frees a load-saturated local machine (e.g. many Conductor agents running@@ -27,10 +30,45 @@ permissions:# and stops a stale-SHA run from reporting a flaky failure on an obsolete commit.# Explicit native-only retries use a separate group so full persistence soaks finish.concurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}${{ github.event_name == 'workflow_dispatch' && inputs.native_only == true && '-native-only' || '' }}+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}${{ github.event_name == 'workflow_dispatch' && inputs.native_only == true && '-native-only' || '' }}${{ github.event_name == 'schedule' && '-nightly' || '' }}cancel-in-progress: truejobs:+ # Planning gate for the native platform matrix. Pull requests that touch+ # native, lock, IPC, publication, backup, export or sync paths run every+ # native target on the primary Bun version; other pull requests run the Linux+ # x64 smoke cell. Pushes, schedules and manual runs always run the full matrix.+ changes:+ runs-on: ubicloud-standard-2-ubuntu-2404+ timeout-minutes: 5+ permissions:+ contents: read+ pull-requests: read+ outputs:+ native-scope: ${{ steps.scope.outputs.native }}+ steps:+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4+ with:+ sparse-checkout: scripts/ci-native-scope.sh+ sparse-checkout-cone-mode: false+ - id: scope+ env:+ GH_TOKEN: ${{ github.token }}+ EVENT: ${{ github.event_name }}+ PR: ${{ github.event.pull_request.number }}+ REPO: ${{ github.repository }}+ run: |+ set -euo pipefail+ if [ "$EVENT" != pull_request ]; then+ scope=full+ elif files=$(gh api --paginate "repos/$REPO/pulls/$PR/files?per_page=100" --jq '.[].filename'); then+ scope=$(printf '%s' "$files" | bash scripts/ci-native-scope.sh)+ else+ scope=primary+ fi+ echo "native scope: $scope"+ echo "native=$scope" >> "$GITHUB_OUTPUT"+# Re-run checks for every event. Only dependencies and PGLite snapshots are cached.gitleaks:if: ${{ github.event_name != 'workflow_dispatch' || inputs.native_only != true }}@@ -83,13 +121,16 @@ jobs:security-regressions:if: ${{ github.event_name != 'workflow_dispatch' || inputs.native_only != true }}- runs-on: ${{ matrix.os == 'ubuntu-latest' && 'ubicloud-standard-16-ubuntu-2404' || matrix.os }}+ runs-on: ${{ matrix.os == 'ubuntu-latest' && 'ubicloud-standard-2-ubuntu-2404' || matrix.os }}timeout-minutes: 10strategy:fail-fast: falsematrix:os: [ubuntu-latest, macos-latest, windows-latest]bun: ['1.3.11', '1.3.13']+ # 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"}]' || '[]') }}steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2@@ -125,7 +166,8 @@ jobs:# this into `test (1)` via `if: matrix.shard == 1`, which made shard 1# the slowest matrix worker). scripts/run-verify-parallel.sh fans out# the 20 checks via & + wait (~5s vs ~15-25s sequential).- runs-on: ubicloud-standard-16-ubuntu-2404+ # 8 vCPUs: measured 51s vs 48s on 16 and 58s on 4.+ runs-on: ubicloud-standard-8-ubuntu-2404timeout-minutes: 12steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4@@ -169,7 +211,9 @@ jobs:fail-fast: falsematrix:shard: [1, 2, 3, 4]- runs-on: ubicloud-standard-16-ubuntu-2404+ # The pool is min(cpus, 4) processes: 8 vCPUs measured 222s for shard 2,+ # the same as 16 (224s); 4 vCPUs took 277s.+ runs-on: ubicloud-standard-8-ubuntu-2404# Keep the existing timeout headroom for memory-constrained runners,# bounded rescue attempts, and the machine-exclusive tail on shard 1.timeout-minutes: 25@@ -244,7 +288,7 @@ jobs:# atom doesn't dominate a shard's wallclock. Companion file# test/eval-longmemeval.slow.test.ts (the pure-bucket half) stays in# the matrix because it's light (~42s).- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 12steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4@@ -289,7 +333,7 @@ jobs:# + deleting the CI-gate-duplicated full-corpus test) cut it to ~72s# local, still far past the ~40s keep-in-matrix bar. Same pattern as# slow-eval-longmemeval above.- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 12steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4@@ -355,7 +399,7 @@ jobs:# — a PR cannot rewrite the thing it's compared against. Exit 1 blocks the# merge until the regression is fixed or blessed (justification in the# updated baseline / fixture diff in corpus-bless mode).- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 10 # ~15s hermetic run; matches the per-job-timeout hardening (#2254)steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4@@ -396,8 +440,8 @@ jobs:# subdivisible without weakening the perf guarantee). Pulled out of the# matrix (see scripts/test-shard.sh) so a single 159s atom doesn't# dominate a shard's wallclock. Runs in parallel with the matrix.- runs-on: ubicloud-standard-16-ubuntu-2404- timeout-minutes: 12+ runs-on: ubicloud-standard-4-ubuntu-2404+ timeout-minutes: 25steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2@@ -424,6 +468,12 @@ jobs:# (20K-page corpus + ratio guard) shares this runner — same perf-job# shape, runs in parallel with the matrix.- run: bun test test/entity-card-perf.slow.test.ts --timeout=300000 --coverage --coverage-reporter=lcov --coverage-dir=${{ runner.temp }}/coverage/perf-b+ # Export at scale: pull requests prove bounded keyset enumeration, sidecars+ # and fence normalization on 10,001 pages (~30s); pushes, schedules and+ # manual runs keep the 100,001-page scale (~4-10 minutes, one core).+ - run: bun test test/export-scale.slow.test.ts --timeout=900000 --coverage --coverage-reporter=lcov --coverage-dir=${{ runner.temp }}/coverage/perf-c+ env:+ GBRAIN_TEST_EXPORT_SCALE_PAGES: ${{ github.event_name == 'pull_request' && '10001' || '100001' }}- name: Write coverage lane manifestrun: |printf '{"lane":"slowperf","sha":"%s","lcovCount":%s,"complete":true}\n' \@@ -453,23 +503,16 @@ jobs:# Pure matrix shard — no verify, no serial. Each shard runs its slice# of the unit test set under one `bun test` invocation.#- # 10 shards (was 6) drops per-shard total from 532s → 287s. With the two- # dedicated jobs (slow-eval-longmemeval, slow-entity-resolve-perf) also- # pulled out, the matrix is bounded by ~287s ≈ 4.8 min. Total CI ≈ max- # of matrix + slow-eval (~3.3 min after engine-sharing in TODO #1) +- # slow-entity-resolve-perf (~2.6 min) ≈ 4.8 min.- #- # Concurrency budget: 10 shards + verify + serial + slow-eval +- # slow-entity-resolve-perf + slow-brainbench-e2e + brainbench + gitleaks +- # test-status = ~18 jobs × 2 concurrent PRs = 36. GitHub free-tier- # caps at ~20 concurrent jobs, so multi-PR days will see some queue- # pressure. Single-PR runs are unaffected.+ # 8 shards: ~2,750s of mined file time (after export-scale and+ # reconcile-crash left the matrix) is ~344s per shard.## Partition policy is weight-aware LPT bin-packing via scripts/sharding.ts# (replaces FNV-1a path hash). Weights live in scripts/test-weights.json,# mined from real CI logs via scripts/mine-shard-weights.ts. Missing# weights fall back to corpus median — new test files work immediately.- runs-on: ubicloud-standard-16-ubuntu-2404+ # 4 vCPUs: a shard is one bun process (measured 1.1-1.5 busy cores on+ # average), and shards 2 and 9 took the same time on 4, 8 and 16 vCPUs.+ runs-on: ubicloud-standard-4-ubuntu-2404# 22, not 15: under parallel PR load the PGLite WASM cold-starts stretch a# shard past 15 min while every test is still passing — the timeout then# cancels the job and the test-status gate reads it as a failure. 13 runs@@ -478,7 +521,7 @@ jobs:strategy:fail-fast: falsematrix:- shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]+ shard: [1, 2, 3, 4, 5, 6, 7, 8]steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2@@ -498,9 +541,9 @@ jobs:test/fixtures/pglite-snapshot.versionkey: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/migrate.ts', 'src/core/pglite-schema.ts', 'src/core/pglite-engine.ts', 'src/core/fts-language.ts', 'src/core/vector-index.ts', 'src/core/search/projection-statistics.ts', 'src/core/ai/defaults.ts', 'src/core/timeline-dedup-repair.ts', 'src/core/pages-upsert-arbiter.ts', 'src/core/link-extraction.ts', 'src/core/grants/*.ts', 'src/core/scope.ts', 'src/core/sql-query.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/page-state/schema.ts', 'src/core/lease-schema.ts', 'src/core/page-state/projection-schema.ts', 'src/core/persistence/schema.ts', 'src/core/persistence/effect-schema.ts', 'src/core/persistence/writer-guard-schema.ts', 'src/core/persistence/topology-schema.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/company-brain/receipt-schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts') }}- run: bun install --frozen-lockfile- - name: Run test shard ${{ matrix.shard }}/10+ - name: Run test shard ${{ matrix.shard }}/8shell: bash- run: bun scripts/capture-test-log.ts --job 'test (${{ matrix.shard }})' --out "$RUNNER_TEMP/unit.log" -- bash scripts/test-shard.sh ${{ matrix.shard }} 10+ run: bun scripts/capture-test-log.ts --job 'test (${{ matrix.shard }})' --out "$RUNNER_TEMP/unit.log" -- bash scripts/test-shard.sh ${{ matrix.shard }} 8env:COVERAGE_DIR: ${{ runner.temp }}/coverage- name: Upload coverage (shard lane)@@ -523,7 +566,7 @@ jobs:# ──────────────────────────────────────────────────────────────────────- # coverage-report: merges the PR corpus (10 unit + 4 serial + 3 slow+ # coverage-report: merges the PR corpus (8 unit + 4 serial + 3 slow# lanes) into one honest number, renders it to the step summary, and runs# the diff + baseline gates in report-only mode (COVERAGE_GATE_ENFORCE=0).# ADVISORY during the report-only window: deliberately NOT in test-status's@@ -561,7 +604,7 @@ jobs:bun scripts/merge-lcov.ts \--out-lcov "$RUNNER_TEMP/coverage-merged/lcov.info" \--out-json "$RUNNER_TEMP/coverage-merged/summary.json" \- --manifest-expect shard-1,shard-2,shard-3,shard-4,shard-5,shard-6,shard-7,shard-8,shard-9,shard-10,serial-1,serial-2,serial-3,serial-4,sloweval,slowperf,slowbrainbench \+ --manifest-expect shard-1,shard-2,shard-3,shard-4,shard-5,shard-6,shard-7,shard-8,serial-1,serial-2,serial-3,serial-4,sloweval,slowperf,slowbrainbench \"$RUNNER_TEMP/coverage-artifacts"- name: Coverage summary → step summaryrun: bun scripts/render-coverage-summary.ts --summary "$RUNNER_TEMP/coverage-merged/summary.json" --structural scripts/structural-suites.tsv >> "$GITHUB_STEP_SUMMARY"@@ -589,7 +632,10 @@ jobs:overwrite: truenative-locks:+ needs: [changes]uses: ./.github/workflows/native-locks.yml+ with:+ scope: ${{ needs.changes.outputs.native-scope }}persistence-validation:if: ${{ github.event_name != 'workflow_dispatch' || inputs.native_only != true }}@@ -597,7 +643,7 @@ jobs:admin-browser:if: ${{ github.event_name != 'workflow_dispatch' || inputs.native_only != true }}- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 12steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4@@ -624,7 +670,7 @@ jobs:shared-skills-compatibility:if: ${{ github.event_name != 'workflow_dispatch' || inputs.native_only != true }}- runs-on: ubicloud-standard-16-ubuntu-2404+ runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 10steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4diff --git a/BOOTSTRAP_FOR_AGENTS.md b/BOOTSTRAP_FOR_AGENTS.mdindex 5fa04692b8..74bb601ba6 100644--- a/BOOTSTRAP_FOR_AGENTS.md+++ b/BOOTSTRAP_FOR_AGENTS.md@@ -1,4 +1,4 @@-<!-- gbrain-runbook-stamp: 0.60.6.0 -->+<!-- gbrain-runbook-stamp: 0.60.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 5384291f97..0113667f8e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,61 @@ 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.60.8.0] - 2026-09-29++**Pull-request CI asks for about a fifth of the machines it used to, so checks start right away instead of waiting half an hour in line.**++Every pull request's test run used to ask for about 890 virtual CPUs at once, on a shared pool of 256. Jobs waited up to 28 minutes just to start, and one run took 41 minutes end to end even though its longest job ran under 14. Most of those machines sat idle: a test shard is one process that keeps one or two cores busy, and it ran on a 16-core machine.++Now each job gets the smallest machine that runs it just as fast, pull requests test the main Bun version instead of all three, the native lock builds for Windows, macOS and ARM run on a pull request only when it touches that code, and the one test that took ten minutes on every PR runs a smaller copy of itself there. Master, the nightly schedule and manual runs still run everything, at full scale.++### The numbers that matter++| Per pull request | Before | After |+| --- | --- | --- |+| Peak machine demand (Test + E2E) | ~890 vCPUs | ~180 vCPUs |+| Unit shard machine | 16 vCPUs | 4 vCPUs (same time) |+| Longest unit shard | 13.6 min (one 571s test) | ~6 min (8 balanced shards) |+| Test workflow runner-minutes | 235 | ~115 (projected from job times) |+| Agent `ci:ubicloud` default fleet | 160 vCPUs | 64 vCPUs |++Machine sizes were measured on matched Ubicloud VMs, not guessed:++| Job | 2 vCPU | 4 vCPU | 8 vCPU | 16 vCPU |+| --- | --- | --- | --- | --- |+| Unit shard 9 | 488s | 361s | 366s | 361s |+| Serial shard 2 | | 277s | 222s | 224s |+| `bun run verify` | 137s | 58s | 51s | 48s |+| 2,500-write PGLite soak | | 523s | 539s | 500s |+| E2E full-corpus shard 1 | | 668s | 704s | 741s |++### What moved from pull requests to master, nightly and manual runs++Nothing stopped running. These cells now run on every push to master, every night and on manual dispatch, and skip on pull requests:++- Bun 1.3.11: security regressions (Linux, macOS, Windows), persistence read latency, deployment matrix, soak and reconciliation crashes.+- Bun 1.3.11 and 1.4.2 native lock cells on every target, musl and both Windows probes.+- When a pull request does not touch native, lock, IPC, persistence, publication, backup, export or sync paths: the non-Linux-x64 native targets, musl, the Windows probes and OpenClaw startup. The `linux-x64-glibc / Bun 1.3.13` cell always runs the whole native step list.+- `test/export-scale.slow.test.ts` at 100,001 pages. Pull requests run the same assertions at 10,001 pages.++### Things to watch++- The required `test-status` and `e2e-status` checks keep their names and still fail on any failed, cancelled or skipped required lane.+- The new nightly `Test` run (07:23 UTC) uses its own concurrency group, so it never cancels a master push.+- `bun run ci:ubicloud --vms 10` restores the old fleet when the quota is idle. A VM the quota refuses is skipped and the run continues on the rest.++### Itemized changes++**Runners.** `test.yml`: unit shards, slow and eval jobs, BrainBench, admin browser and shared-skills compatibility on `ubicloud-standard-4`; `verify` and `serial-tests` on `ubicloud-standard-8`; Linux security regressions on `ubicloud-standard-2`. `persistence-validation.yml`: read latency, soak and reconciliation on `standard-4`, deployment matrix on `standard-8` (soak was `standard-30`). `native-locks.yml`: Linux cells on `standard-4` and `standard-4-arm`. `e2e.yml`: JSONB parity, Tier 2, selected E2E and nightly coverage lanes on `standard-4` (nightly serial on `standard-8`); Tier 1 stays on `standard-16`. `.github/actionlint.yaml` and `test/scripts/ci-runner-routing.test.ts` pin the labels.++**Pull-request scope.** Bun matrices keep their full static lists and drop cells with an event-based `exclude`. A new `changes` job classifies the PR's files with `scripts/ci-native-scope.sh` and passes `scope: full | primary | smoke` to `native-locks.yml`, whose native runners now map from the target. `test.yml` gains a nightly `schedule`. `test/scripts/ci-pr-scope.test.ts` pins every scope.++**Shards.** Eight unit shards (was ten), rebalanced from the measured September 29 timings (`scripts/test-weights.json` now covers all 2,038 files; 1,714 before). `test/export-scale.slow.test.ts` moved to the `slow-entity-resolve-perf` job and reads `GBRAIN_TEST_EXPORT_SCALE_PAGES` (pull requests 10,001, elsewhere 100,001; every count assertion scales with it). `test/reconcile-crash.slow.test.ts` left the unit matrix, where it duplicated the persistence-validation PGLite run; the reconciliation step became its own job beside the soak. Nightly `coverage-full-slow` runs both files.++**Slow tests.** `test/worker-configuration-release.test.ts` checks the 30-second eviction deadline directly and exercises the drain against a 300 ms deadline, instead of sleeping 30 seconds.++**Agents.** `scripts/ci-ubicloud.ts` defaults to 4 VMs; `scripts/ubicloud/ci-item.sh` runs export-scale at the pull-request scale. `docs/TESTING.md` documents runner sizes, the measurements and the PR, master and nightly scope.+## [0.60.6.0] - 2026-09-29**Forgetting works on big brains again, renames and edits keep everything attached to the page, search understands reworded relationship questions, and the nightly dream cycle stops spending past a budget or rewriting pages it didn't write.**@@ -178,6 +233,8 @@ warns about a partial migration:- More new suites: `test/relational-intent-paraphrase.test.ts`, `test/search/general-title-mention-boost.test.ts`, `test/search/alias-token-hop.test.ts`, `test/search/source-boost-config.test.ts`, `test/traverse-walk-cap.test.ts`, `test/facts-backstop-unverified-resolution.test.ts`, `test/longmemeval-embed-cache.test.ts` and `test/eval-longmemeval-brain-recycle.test.ts`.- `docs/architecture/canonical-writers.tsv` classifies the new canonical write sites (`moveSlugBindings`, the v174 backfill, the managed rename).+**Credits (added later):** three fixes in this release independently repeat earlier community PRs: sub-day TTL (#5320, thanks @VXNCXNX), concept change detection (#5156, thanks @Natetgmaxwell) and managed `extract --stale` through the coordinator (#5513, thanks @openclaw-agent-man).+## [0.60.5.0] - 2026-09-29**Your brain stops deleting history it can't see, managed brains stop wedging themselves, and background loops stop spending money and connections on nothing.**diff --git a/VERSION b/VERSIONindex 11a7538d2b..510bfa781f 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-0.60.6.0+0.60.8.0diff --git a/docs/TESTING.md b/docs/TESTING.mdindex 87bb70f86f..08aa803b38 100644--- a/docs/TESTING.md+++ b/docs/TESTING.md@@ -21,24 +21,54 @@ not grant access. No Ubicloud API token is passed to workflow jobs.| Workload | Runner | Capacity || --- | --- | --- |-| Unit, serial, E2E, browser, compatibility, read-performance and deployment-matrix tests | `ubicloud-standard-16-ubuntu-2404` | 16 vCPU, 64 GB RAM |-| Heavy test suite and persistence invariant/soak matrix | `ubicloud-standard-30-ubuntu-2404` | 30 vCPU, 120 GB RAM |-| Native ARM64 glibc and musl tests | `ubicloud-standard-16-arm-ubuntu-2404` | 16 vCPU, 48 GB RAM |+| Unit shards, slow and eval jobs, BrainBench, admin browser, shared-skills compatibility, persistence soak, reconciliation crashes and read latency, native Linux cells, OpenClaw startup, JSONB parity, selected E2E and Tier 2 | `ubicloud-standard-4-ubuntu-2404` | 4 vCPU, 16 GB RAM |+| Serial pool (PR and nightly coverage), `verify`, PgBouncer/RLS deployment matrix | `ubicloud-standard-8-ubuntu-2404` | 8 vCPU, 32 GB RAM |+| E2E Tier 1 (its CLI `init` spawns exceed their timeouts on 4 vCPUs), label-gated and nightly heavy-tests jobs | `ubicloud-standard-16-ubuntu-2404` | 16 vCPU, 64 GB RAM |+| Label-gated heavy test suite | `ubicloud-standard-30-ubuntu-2404` | 30 vCPU, 120 GB RAM |+| Native ARM64 glibc and musl tests | `ubicloud-standard-4-arm-ubuntu-2404` | 4 vCPU || Coverage reports and Semgrep | `ubicloud-standard-4-ubuntu-2404` | 4 vCPU, 16 GB RAM |-| Planning, status aggregation, dependency audit, gitleaks and actionlint | `ubicloud-standard-2-ubuntu-2404` | 2 vCPU, 8 GB RAM |+| Planning, status aggregation, dependency audit, gitleaks, security regressions and actionlint | `ubicloud-standard-2-ubuntu-2404` | 2 vCPU, 8 GB RAM |macOS and Windows matrices stay on GitHub-hosted runners. Release building andpublishing also stay unchanged. The pinned upstream OSV reusable workflow doesnot expose a runner override, so its runner remains upstream-owned.-The migration does not change shards, test selection, commands, timeouts,-thresholds, artifact collection or required check identities. The security-matrix retains its existing OS labels and changes only the Linux execution-target. `test/scripts/ci-runner-routing.test.ts` pins capacity and platform-routing; `.github/actionlint.yaml` declares the exact custom runner labels.-Actual GitHub job records and completed checks establish runner availability;-local workflow tests do not. More CPU and memory do not guarantee proportional-speedups for serial tests or external-provider requests.+Sizes come from measured CPU use, not guesses. Each Ubicloud project shares one+vCPU quota between pull-request CI and agent `ci:ubicloud` VMs, so an oversized+runner makes every other job wait. On matched VMs (September 2026), a unit+shard is one Bun process that averaged 1.1-1.5 busy cores and took 361s on 4,+8 and 16 vCPUs (488s on 2); the serial pool and `verify` took the same time on+8 and 16 vCPUs (serial shard 2: 222s and 224s; 277s on 4); the 2,500-write+PGLite soak averaged 1.3-1.8 busy cores and took 523s on 4 vCPUs and 500s on+16. Re-measure with `scripts/ubicloud/ubi-runner.sh run -s standard-N` before+growing a runner: more CPU does not shorten a single-process job.+`test/scripts/ci-runner-routing.test.ts` pins capacity and platform routing;+`.github/actionlint.yaml` declares the exact custom runner labels. Actual+GitHub job records and completed checks establish runner availability; local+workflow tests do not.++### Pull request, master and nightly scope++Every test file runs on every push to master, on the nightly schedule and on+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 |+| 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 |+| `test/export-scale.slow.test.ts` | 10,001 pages | 100,001 pages |++The `changes` job classifies a pull request's changed files with+`scripts/ci-native-scope.sh`: native lock sources, the native toolchain, IPC,+persistence, publication, backup, export and sync sources, their native tests,+`package.json`, `bun.lock` and the workflow files select every target. An+unreadable file list selects every target too. Skipped cells never report a+failure: `test-status` needs the `native-locks` and `persistence-validation`+workflow calls, which succeed when their remaining cells do, so the required+check names are unchanged. `test/scripts/ci-pr-scope.test.ts` pins every scope.Shared-skill tests distinguish canonical publication, protocol delivery, installedfiles and native harness use. `test/shared-skills-transports.test.ts` and@@ -302,7 +332,7 @@ Test command tiers, each with a clear scope:| Command | What it runs | Wallclock | When to use ||---|---|---|---|-| `bun run test` | Parallel unit-test fast loop. Sharded fan-out via `scripts/run-unit-parallel.sh` (default 4 shards — CPU-detected, clamped to a max of 8; 4 limits local PGLite WASM-init contention; GitHub CI uses 10 unit shards), then a serial pass over `*.serial.test.ts`. Excludes `*.slow.test.ts` and `test/e2e/*`. No pre-checks, no typecheck. Builds/refreshes the PGLite schema snapshot BEFORE the shard fan-out and exports `GBRAIN_PGLITE_SNAPSHOT` so PGLite-booting files restore a baked schema instead of replaying every migration (~3.5x per booting file; see "PGLite schema snapshot" below). Opt out: `GBRAIN_NO_SNAPSHOT=1`. Memory-safe by default: total concurrency (shards × intra-shard width) is capped to available memory at `GBRAIN_TEST_MEM_PER_FILE_MB` (default 1536 — a PGLite WASM instance) per concurrent slot, shedding INTRA-SHARD width first and shards only after it (bun's `--max-concurrency` bounds only `test.concurrent` tests — 1 file in the corpus — so intra width is nearly free to shed, while every dropped shard removes a whole bun process of real fan-out; shedding shards first would collapse a 16GB box to a serial 1×4 run, measured 3.25× slower than 4×1 on the same machine). Two phantom-failure classes are automatically re-run serially (the rescue pass): failures carrying the WASM out-of-memory signature, and shards killed externally (SIGTERM/SIGKILL well before the shard timeout — sibling workspaces' process cleanup, memory jetsam). On machines without coreutils `timeout`, the fallback watchdog drops a `.watchdog` sentinel before TERMing a shard at the cap so the WEDGED/EXIT-HANG classifier stays reachable there (a bare rc=143 would otherwise read as a plain failure). Phantoms pass serially and the run goes green with an `oom_rescued` note; real failures fail again serially and stay red. Knobs: `GBRAIN_TEST_NO_MEM_ADAPT=1`, `GBRAIN_TEST_NO_OOM_FALLBACK=1`, `GBRAIN_TEST_MAX_CONCURRENCY` (intra-shard, default 4), `GBRAIN_TEST_SHARD_TIMEOUT` / `GBRAIN_TEST_SHARD_KILL_AFTER`, plus `--shards N` / `--max-concurrency N` / `--dry-run` script args. | a few minutes on a Mac dev box | Inner edit loop. Default. |+| `bun run test` | Parallel unit-test fast loop. Sharded fan-out via `scripts/run-unit-parallel.sh` (default 4 shards — CPU-detected, clamped to a max of 8; 4 limits local PGLite WASM-init contention; GitHub CI uses 8 unit shards), then a serial pass over `*.serial.test.ts`. Excludes `*.slow.test.ts` and `test/e2e/*`. No pre-checks, no typecheck. Builds/refreshes the PGLite schema snapshot BEFORE the shard fan-out and exports `GBRAIN_PGLITE_SNAPSHOT` so PGLite-booting files restore a baked schema instead of replaying every migration (~3.5x per booting file; see "PGLite schema snapshot" below). Opt out: `GBRAIN_NO_SNAPSHOT=1`. Memory-safe by default: total concurrency (shards × intra-shard width) is capped to available memory at `GBRAIN_TEST_MEM_PER_FILE_MB` (default 1536 — a PGLite WASM instance) per concurrent slot, shedding INTRA-SHARD width first and shards only after it (bun's `--max-concurrency` bounds only `test.concurrent` tests — 1 file in the corpus — so intra width is nearly free to shed, while every dropped shard removes a whole bun process of real fan-out; shedding shards first would collapse a 16GB box to a serial 1×4 run, measured 3.25× slower than 4×1 on the same machine). Two phantom-failure classes are automatically re-run serially (the rescue pass): failures carrying the WASM out-of-memory signature, and shards killed externally (SIGTERM/SIGKILL well before the shard timeout — sibling workspaces' process cleanup, memory jetsam). On machines without coreutils `timeout`, the fallback watchdog drops a `.watchdog` sentinel before TERMing a shard at the cap so the WEDGED/EXIT-HANG classifier stays reachable there (a bare rc=143 would otherwise read as a plain failure). Phantoms pass serially and the run goes green with an `oom_rescued` note; real failures fail again serially and stay red. Knobs: `GBRAIN_TEST_NO_MEM_ADAPT=1`, `GBRAIN_TEST_NO_OOM_FALLBACK=1`, `GBRAIN_TEST_MAX_CONCURRENCY` (intra-shard, default 4), `GBRAIN_TEST_SHARD_TIMEOUT` / `GBRAIN_TEST_SHARD_KILL_AFTER`, plus `--shards N` / `--max-concurrency N` / `--dry-run` script args. | a few minutes on a Mac dev box | Inner edit loop. Default. || `bun run verify` | CI's authoritative pre-test gate set, fanned out by `scripts/run-verify-parallel.sh` through a bounded worker pool (default `detect_cpus`; override `GBRAIN_VERIFY_MAX_PARALLEL`) with the heavy checks ordered first (typecheck, the two compile-embed checks, admin build, fuzz bundles, guard self-tests, the PGLite-booting chronicle eval check, whole-tree greps). The battery includes the deterministic `check:eval-chronicle` eval gate; `check:eval-canary` is deliberately NOT in the battery (its test-file twin `test/eval-canary.test.ts` spawns the identical runner in the unit matrix, and CI's verify job and matrix always run together — the package script stays for on-demand runs, so `verify`-only local callers should know the canary rides the unit lane instead). The `CHECKS` array in that script is the single source of truth — CI literally calls `bun run verify` in a dedicated job. | ~50s (pool-bounded; longest check dominates) | Before pushing; before `/ship`. || `bun run test:full` | `verify && bun run test && bun run test:slow && [smart e2e]`. Smart e2e runs only when `DATABASE_URL` is set and propagates its failure; otherwise it prints a skip notice to stderr. Use `ci:local` to provision the databases and require PgBouncer execution. | ~3-5min depending on slow + e2e | Pre-merge sanity, before opening a PR. || `bun run ci:local` | Independent host gitleaks scans, then frozen dependencies, guards/typecheck, the complete serial and slow lanes, and four unit/E2E shards inside Docker. Each E2E shard has its own pgvector database; selected PgBouncer tests must execute against the transaction-mode pooler. Unit, serial, and slow lanes have database URL overrides unset. Any failed stage fails the command. Complete shard logs survive container teardown under `.context/ci-local-shards/`. `ci:local:diff` narrows E2E selection; `--no-shard` runs unit/E2E sequentially. Doc-only diffs still require successful gitleaks scans. | Depends on the full corpus | Full local gate before shipping. |@@ -382,8 +412,15 @@ when any item fails, an item never produces a result, or no VM becomes ready.An item whose SSH batch dies without a result is retried once on any slot, and aVM with three such infrastructure errors is retired.-Defaults are ten `standard-16` VMs in `eu-central-h1` with 8 slots each, one-per two vCPUs (`--vms`, `--size`, `--slots`, `--location`). `--lanes` runs a+Defaults are four `standard-16` VMs (64 vCPUs) in `eu-central-h1` with 8 slots+each, one per two vCPUs (`--vms`, `--size`, `--slots`, `--location`). The+Ubicloud project's vCPU quota (256) is shared with pull-request CI, so the+default leaves room for about two concurrent PR runs; the former default of+ten VMs took 160 vCPUs and queued PR jobs for up to 28 minutes. A VM that the+quota refuses fails to provision and the run continues on the VMs that did+start, so a busy project shrinks the fleet instead of failing. Pass `--vms 10`+only when the quota is idle. Slow-lane items run `test/export-scale.slow.test.ts`+at the pull-request scale (`GBRAIN_TEST_EXPORT_SCALE_PAGES=10001`). `--lanes` runs asubset, `--keep` leaves the VMs up for debugging, and `--diff` follows`ci:local:diff` (a doc-only diff runs gitleaks alone). The corpus is roughly8,000 seconds of test compute at that density, so 80 slots finish everything@@ -705,7 +742,7 @@ bun scripts/pglite-checkpoint-harness/supervisor.ts --dir /tmp/h --fresh --pages### Keeping CI partitions balanced-Required CI runs ten weighted unit workers, four serial workers with bounded+Required CI runs eight weighted unit workers, four serial workers with boundedper-file pools, and up to four selected E2E workers. E2E selection and exclusionsrun once before setup; the resulting file lists are frozen and executed againstseparate Postgres services. An explicit empty selection launches no tests;@@ -904,7 +941,7 @@ there even though they pass on Linux and macOS.### CI vs local: intentionally divergent file sets-- **CI matrix** (`.github/workflows/test.yml`) runs `scripts/test-shard.sh` across 10 matrix shards partitioned by weight-aware LPT bin-packing (`scripts/sharding.ts`; files with no mined weight fall back to the p75 file weight so a new unweighted file can't silently unbalance a shard) and INCLUDES `*.slow.test.ts` (the four dedicated slow files — longmemeval, entity-resolve-perf, entity-card-perf, brainbench-e2e — run as dedicated jobs alongside the matrix) plus `evals/**/*.test.ts` (keyless-allowlist-gated — `test/scripts/evals-collection.test.ts`). Each shard's bun process is bounded by `--max-concurrency` (`GBRAIN_TEST_MAX_CONCURRENCY`, default 4). Every bun-test job — matrix shards, serial-tests, verify, the slow/eval jobs — activates the PGLite schema snapshot (built in-runner via `scripts/lib/test-env.sh`; the BrainBench gate uses the separate default-profile snapshot for its in-memory PGLite; the ~42MB tar is also cached across jobs via actions/cache, with the runner's own hash check staying authoritative). CI EXCLUDES `*.serial.test.ts` from the shards and runs them across four `serial-tests` workers via `bun run test:serial` — one bun process per file preserves the `mock.module` quarantine; the pool runs those processes concurrently. `bun run verify` gets its own job too, as does the BrainBench memory-conformance gate (`brainbench` job → `scripts/ci-brainbench-gate.sh`, hermetic in-memory PGLite, ~15s), which compares HEAD's fresh run against master's committed baseline (`evals/brainbench/baselines/main.json`) — the `test-status` aggregate checks its result explicitly. E2E (`.github/workflows/e2e.yml`) always runs its applicable execution lanes, with the jsonb-parity job in front of tier2 as the token-spend gate, and aggregates through `e2e-status`. Scheduled runs also require the full-corpus lanes, including each slow suite excluded from the coverage shards (longmemeval, entity-resolve-perf, and brainbench-e2e). Both aggregates reject failures, cancellations, and unexpected skips. Dependency caches and validated PGLite snapshots remain; successful test results are never reused. CI is the ground truth for "did everything pass."+- **CI matrix** (`.github/workflows/test.yml`) runs `scripts/test-shard.sh` across 8 matrix shards partitioned by weight-aware LPT bin-packing (`scripts/sharding.ts`; files with no mined weight fall back to the p75 file weight so a new unweighted file can't silently unbalance a shard) and INCLUDES `*.slow.test.ts` (the dedicated slow files — longmemeval, entity-resolve-perf, entity-card-perf, export-scale, brainbench-e2e — run as dedicated jobs alongside the matrix, and `reconcile-crash.slow.test.ts` runs only in the persistence-validation reconciliation job) plus `evals/**/*.test.ts` (keyless-allowlist-gated — `test/scripts/evals-collection.test.ts`). Each shard's bun process is bounded by `--max-concurrency` (`GBRAIN_TEST_MAX_CONCURRENCY`, default 4). Every bun-test job — matrix shards, serial-tests, verify, the slow/eval jobs — activates the PGLite schema snapshot (built in-runner via `scripts/lib/test-env.sh`; the BrainBench gate uses the separate default-profile snapshot for its in-memory PGLite; the ~42MB tar is also cached across jobs via actions/cache, with the runner's own hash check staying authoritative). CI EXCLUDES `*.serial.test.ts` from the shards and runs them across four `serial-tests` workers via `bun run test:serial` — one bun process per file preserves the `mock.module` quarantine; the pool runs those processes concurrently. `bun run verify` gets its own job too, as does the BrainBench memory-conformance gate (`brainbench` job → `scripts/ci-brainbench-gate.sh`, hermetic in-memory PGLite, ~15s), which compares HEAD's fresh run against master's committed baseline (`evals/brainbench/baselines/main.json`) — the `test-status` aggregate checks its result explicitly. E2E (`.github/workflows/e2e.yml`) always runs its applicable execution lanes, with the jsonb-parity job in front of tier2 as the token-spend gate, and aggregates through `e2e-status`. Scheduled runs also require the full-corpus lanes, including each slow suite excluded from the coverage shards (longmemeval, entity-resolve-perf, entity-card-perf, brainbench-e2e, export-scale and reconcile-crash). Both aggregates reject failures, cancellations, and unexpected skips. Dependency caches and validated PGLite snapshots remain; successful test results are never reused. CI is the ground truth for "did everything pass."- **Local fast loop** (`scripts/run-unit-shard.sh` via the parallel wrapper) uses the same weighted partitioner as CI and EXCLUDES `*.slow.test.ts` AND `*.serial.test.ts`. Each shard runs its complete ordered selection with a fresh Bun process per file, without adding workers. Later groups still run after failures; missing summaries or file-completion evidence fail the shard. Local trades coverage for inner-loop speed; CI catches what local skips.This divergence is intentional. Don't try to make them equal — the two scripts deliberately solve different problems. The regression test at `test/scripts/run-unit-shard.test.ts` pins what the local fast loop should and shouldn't include, and that no unit-lane file spawning the CLI through `test/helpers/cli-spawn.ts` hand-pins a per-test timeout below the bunfig default (an explicit `test(name, fn, N)` ceiling overrides bun's `--timeout`, so `GBRAIN_TEST_TIMEOUT_MULTIPLIER` never reaches it — inherit the default instead; cli-spawn's own kill timer still reaps a hung child); `test/scripts/run-unit-parallel.test.ts` pins the wrapper's memory-adaptive concurrency, and the OOM/external-kill serial rescue pass, and operator-interrupt teardown (a Ctrl-C / SIGTERM to the wrapper while shards are live TERMs then KILLs every shard descendant, so a cancelled run cannot leave gtimeout/bun alive until the shard cap).@@ -945,8 +982,8 @@ non-`GBRAIN_`-prefixed so the hermetic env scrub keeps them.**Two corpora.**-- **PR corpus** (`prCorpus`) — the 17 coverage-collecting lanes in- `.github/workflows/test.yml`: the 10 matrix shards, four `serial-tests` partitions, and the+- **PR corpus** (`prCorpus`) — the 15 coverage-collecting lanes in+ `.github/workflows/test.yml`: the 8 matrix shards, four `serial-tests` partitions, and thethree dedicated slow jobs (`slow-eval-longmemeval`,`slow-entity-resolve-perf`, `slow-brainbench-e2e`). Deterministic (runs identically on every PR); thisis the corpus the gates run against.diff --git a/docs/architecture/key-files/tooling-and-tests.md b/docs/architecture/key-files/tooling-and-tests.mdindex 2dbfcaf6e3..62f8a9d189 100644--- a/docs/architecture/key-files/tooling-and-tests.md+++ b/docs/architecture/key-files/tooling-and-tests.md@@ -53,7 +53,7 @@ Current behavior and load-bearing invariants; history belongs in Git and CHANGEL- `scripts/llms-config.ts` + `scripts/build-llms.ts` — Generator for `llms.txt` (llmstxt.org-spec web index) + `llms-full.txt` (inlined single-fetch bundle). Curated config drives both. Run `bun run build:llms` after adding a new doc. `LLMS_REPO_BASE` env lets forks regenerate with their own URL base. `FULL_SIZE_BUDGET` (600KB) caps the inline bundle; generator WARNs if exceeded. Committed output has no runtime consumer; committed for GitHub browsing and fork-safe fetching.-- `scripts/merge-lcov.ts` + `scripts/coverage-diff-gate.ts` + `scripts/coverage-baseline-gate.ts` + `scripts/update-coverage-baseline.ts` + `scripts/render-coverage-summary.ts` + `scripts/coverage-gate-exemptions.txt` + `scripts/coverage-baseline.json` — the coverage measurement + gating cluster; the operating guide is docs/TESTING.md "Coverage lanes and gates". `merge-lcov.ts` walks artifact dirs for `lcov.info` + `lane-manifest.json`, sums DA hits per file:line, normalizes paths repo-relative, and emits a merged lcov + summary JSON (src-only totals/per-dir/per-file, the `lineHits` extension the diff gate consumes, and never-loaded src files as count + sorted list — deliberately never a percentage, since physical lines ≠ executable lines); `--manifest-expect` pins the lane set; SHA, duplicate identities, and actual per-lane LCOV counts are validated (`--sha` supports offline artifacts), and a missing/incomplete lane or a `shard` lane with `lcovCount != 1` (the xargs-batching tripwire) marks the summary `degraded: true` — still exit 0 (degraded is data, and both gates go report-only on it). `coverage-diff-gate.ts` gates added/changed gate-scoped lines (non-test, non-generated `src/**.ts`) at ≥80% covered plus zero changed-but-never-loaded files; report-only unless `COVERAGE_GATE_ENFORCE=1`; a `[coverage-exempt: reason]` commit trailer passes with a loud warning; `coverage-gate-exemptions.txt` rows (exact path or trailing-`/` prefix; SHRINK-ONLY — additions need a graduation review) are excluded from the gate but still reported (`[e2e-exempt]` / `[subprocess-undercount]`); exit contract: 0 = pass or report-only, 1 = fail while enforcing, 2 = infrastructure error (never conflated with a coverage verdict). `coverage-baseline-gate.ts` reads the baseline via `git show origin/master:scripts/coverage-baseline.json` (never the working tree, so a PR can't weaken its own bar) and compares corpus-matched sections only (`--corpus prCorpus|fullCorpus`), failing on >0.5pp global or >1.0pp per-dir drops; `provisional: true` in the baseline (the current state — both corpus sections unseeded) keeps it report-only regardless of enforcement; `update-coverage-baseline.ts` writes the working-tree baseline (per-file detail limited to the committed `watchlist`) and `--promote` flips `provisional: false`. `render-coverage-summary.ts` renders the summary JSON as markdown on stdout for `$GITHUB_STEP_SUMMARY`, including the behavioral-vs-structural counts from `scripts/structural-suites.tsv`. Wiring: 17 PR-corpus lanes in test.yml (10 matrix shards + four serial partitions + the three dedicated slow jobs) upload `coverage-*` artifacts and the advisory `coverage-report` job merges + renders + runs both gates report-only (deliberately absent from `test-status`/`cache-write` until graduation); scheduled or explicitly dispatched `coverage-full-{unit,serial,slow,e2e}` + `coverage-full-report` in e2e.yml produce the self-contained fullCorpus number (full e2e glob included) and the `coverage-full-merged` trend artifact. Collection is `COVERAGE_DIR`-opt-in in `test-shard.sh`/`run-serial-tests.sh`/`run-e2e.sh` — unique coverage dir per bun process (a reused dir overwrites `lcov.info`), lane manifest written only on a green run, `run-e2e.sh` requires an ABSOLUTE `COVERAGE_DIR` and honors `E2E_FILE_TIMEOUT_SECS` (both deliberately non-`GBRAIN_`-prefixed to survive the hermetic env scrub). Bun/JSC emits line records only (function coverage is informational) and no subprocess coverage, so `src/cli.ts` undercounts. Pinned by `test/scripts/merge-lcov.test.ts`, `test/scripts/coverage-diff-gate.test.ts`, `test/scripts/render-coverage-summary.test.ts`.+- `scripts/merge-lcov.ts` + `scripts/coverage-diff-gate.ts` + `scripts/coverage-baseline-gate.ts` + `scripts/update-coverage-baseline.ts` + `scripts/render-coverage-summary.ts` + `scripts/coverage-gate-exemptions.txt` + `scripts/coverage-baseline.json` — the coverage measurement + gating cluster; the operating guide is docs/TESTING.md "Coverage lanes and gates". `merge-lcov.ts` walks artifact dirs for `lcov.info` + `lane-manifest.json`, sums DA hits per file:line, normalizes paths repo-relative, and emits a merged lcov + summary JSON (src-only totals/per-dir/per-file, the `lineHits` extension the diff gate consumes, and never-loaded src files as count + sorted list — deliberately never a percentage, since physical lines ≠ executable lines); `--manifest-expect` pins the lane set; SHA, duplicate identities, and actual per-lane LCOV counts are validated (`--sha` supports offline artifacts), and a missing/incomplete lane or a `shard` lane with `lcovCount != 1` (the xargs-batching tripwire) marks the summary `degraded: true` — still exit 0 (degraded is data, and both gates go report-only on it). `coverage-diff-gate.ts` gates added/changed gate-scoped lines (non-test, non-generated `src/**.ts`) at ≥80% covered plus zero changed-but-never-loaded files; report-only unless `COVERAGE_GATE_ENFORCE=1`; a `[coverage-exempt: reason]` commit trailer passes with a loud warning; `coverage-gate-exemptions.txt` rows (exact path or trailing-`/` prefix; SHRINK-ONLY — additions need a graduation review) are excluded from the gate but still reported (`[e2e-exempt]` / `[subprocess-undercount]`); exit contract: 0 = pass or report-only, 1 = fail while enforcing, 2 = infrastructure error (never conflated with a coverage verdict). `coverage-baseline-gate.ts` reads the baseline via `git show origin/master:scripts/coverage-baseline.json` (never the working tree, so a PR can't weaken its own bar) and compares corpus-matched sections only (`--corpus prCorpus|fullCorpus`), failing on >0.5pp global or >1.0pp per-dir drops; `provisional: true` in the baseline (the current state — both corpus sections unseeded) keeps it report-only regardless of enforcement; `update-coverage-baseline.ts` writes the working-tree baseline (per-file detail limited to the committed `watchlist`) and `--promote` flips `provisional: false`. `render-coverage-summary.ts` renders the summary JSON as markdown on stdout for `$GITHUB_STEP_SUMMARY`, including the behavioral-vs-structural counts from `scripts/structural-suites.tsv`. Wiring: 15 PR-corpus lanes in test.yml (8 matrix shards + four serial partitions + the three dedicated slow jobs) upload `coverage-*` artifacts and the advisory `coverage-report` job merges + renders + runs both gates report-only (deliberately absent from `test-status`/`cache-write` until graduation); scheduled or explicitly dispatched `coverage-full-{unit,serial,slow,e2e}` + `coverage-full-report` in e2e.yml produce the self-contained fullCorpus number (full e2e glob included) and the `coverage-full-merged` trend artifact. Collection is `COVERAGE_DIR`-opt-in in `test-shard.sh`/`run-serial-tests.sh`/`run-e2e.sh` — unique coverage dir per bun process (a reused dir overwrites `lcov.info`), lane manifest written only on a green run, `run-e2e.sh` requires an ABSOLUTE `COVERAGE_DIR` and honors `E2E_FILE_TIMEOUT_SECS` (both deliberately non-`GBRAIN_`-prefixed to survive the hermetic env scrub). Bun/JSC emits line records only (function coverage is informational) and no subprocess coverage, so `src/cli.ts` undercounts. Pinned by `test/scripts/merge-lcov.test.ts`, `test/scripts/coverage-diff-gate.test.ts`, `test/scripts/render-coverage-summary.test.ts`.- `scripts/persistence/{harness,schedules,worker,validate,failure-diagnostics}.ts` — executable concurrency gate using real journal/coordinator APIs: 1,000 seeded schedules per engine, eight actual process-kill publication boundaries, and 10,000 writes from four producer processes. Each phase owns a temporary disk PGLite datastore or a fresh test Postgres database. Independent accounting queries verify conservation; every soak receipt is compared to its canonical snapshot and file. JSON manifests separate actual counts and latency measurements from the configured Linux/Bun CI matrix. Failed runs preserve private fixtures and collect bounded, allowlisted request/queue/owner diagnostics without changing deadlines or hiding the original error. Cleanup commands read the existing test URL from the environment. The PGLite loopback endpoint is a fixture transport, not production authentication coverage. Contract and commands: `scripts/persistence/README.md`; smoke entries: `test/persistence-chaos.slow.test.ts`, `test/e2e/persistence-chaos.test.ts`; diagnostic/retention contracts: `test/persistence-failure-diagnostics.test.ts`.diff --git a/openclaw.plugin.json b/openclaw.plugin.jsonindex 1bf0cf0c76..fde6897598 100644--- a/openclaw.plugin.json+++ b/openclaw.plugin.json@@ -1,7 +1,7 @@{"id": "gbrain-context-engine","name": "gbrain",- "version": "0.60.6.0",+ "version": "0.60.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 5a0b1db72b..2080fea097 100644--- a/package.json+++ b/package.json@@ -191,7 +191,7 @@"bun": ">=1.3.11"},"license": "MIT",- "version": "0.60.6.0",+ "version": "0.60.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 6cc0c85806..adadace5ef 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.6.0",+ "version": "0.60.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 4d9e31b04d..6761dfc495 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.6.0",+ "version": "0.60.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 8f4d52ba7b..035bb72cf0 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.6.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.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 2d00452f9f..20fa5a13e3 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.6.0",+ "version": "0.60.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 957399ff42..ac2b6e989e 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.6.0",+ "version": "0.60.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 725feb64ec..77ad56727a 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.6.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.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 b071497915..3d80823fdf 100644--- a/plugin/README.md+++ b/plugin/README.md@@ -1,4 +1,4 @@-<!-- gbrain-plugin-tree-stamp: 0.60.6.0 -->+<!-- gbrain-plugin-tree-stamp: 0.60.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/ci-native-scope.sh b/scripts/ci-native-scope.shnew file mode 100755index 0000000000..1f16848e05--- /dev/null+++ b/scripts/ci-native-scope.sh@@ -0,0 +1,18 @@+#!/usr/bin/env bash+# Classify a pull request's changed files (one path per line on stdin) for the+# native writer-lock workflow. Prints `primary` when any path can change native+# lock, IPC, publication, backup, export or sync behavior (every native target+# runs on the primary Bun version), otherwise `smoke` (only the Linux x64 glibc+# cell runs). An empty or unreadable list prints `primary`: an unknown diff+# never narrows validation. Pushes, schedules and manual runs never call this;+# they always run the full matrix.+set -euo pipefail++NATIVE_PATHS='^(native/|scripts/native/|src/core/persistence/|src/core/context/|test/fixtures/native|\.github/workflows/(native-locks|test)\.yml$|package\.json$|bun\.lock$|openclaw\.plugin\.json$|docker-compose\.ci\.yml$)|^src/core/(pglite-[^/]*|engine|postgres-engine|sync[^/]*|export-[^/]*|import-file|markdown|write-through|page-lock)\.ts$|^src/commands/(backup|export|restore|sync)[^/]*\.ts$|openclaw|native|-lock|local-ipc-path|persistence-(publication|git-publication|sync-origin)|backup-portability|export-publication'++files=$(cat)+if [ -z "$files" ] || printf '%s\n' "$files" | grep -Eq "$NATIVE_PATHS"; then+ echo primary+else+ echo smoke+fidiff --git a/scripts/ci-ubicloud.ts b/scripts/ci-ubicloud.tsindex 85e5dfa290..98e31bd25c 100755--- a/scripts/ci-ubicloud.ts+++ b/scripts/ci-ubicloud.ts@@ -7,7 +7,8 @@* bun run ci:ubicloud:diff # same, E2E narrowed by select-e2e (doc-only: gitleaks only)** Options:- * --vms N VMs to provision in parallel (default 10)+ * --vms N VMs to provision in parallel (default 4: 64 vCPUs of the+ * project quota that pull-request CI shares)* --size SIZE Ubicloud size (default standard-16)* --slots N concurrent work slots per VM (default: half of --size's vCPUs)* --location LOC Ubicloud location (default eu-central-h1)@@ -76,7 +77,7 @@ interface Opts {function parseArgs(argv: string[]): Opts {const opts: Opts = {- vms: 10,+ vms: 4,size: "standard-16",slots: 0,location: "eu-central-h1",diff --git a/scripts/structural-suites.tsv b/scripts/structural-suites.tsvindex 623ac60b06..59ec53d361 100644--- a/scripts/structural-suites.tsv+++ b/scripts/structural-suites.tsv@@ -234,6 +234,7 @@ test/scripts/ci-local-rendering.test.ts ci-local command rendering 1 readFileSyntest/scripts/ci-local-rendering.test.ts ci-local execution coverage 3 readFileSynctest/scripts/ci-local-rendering.test.ts local test configuration through run-e2e 2 readFileSynctest/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 readFileSynctest/scripts/ci-runner-routing.test.ts CI runner routing 5 readFileSynctest/scripts/classify-tests.test.ts classify-tests detectors 20 bun-file,doctor-source-helper,exec-scan,readFileSynctest/scripts/coverage-diff-gate.test.ts exemptions 3 readFileSync@@ -247,7 +248,7 @@ test/scripts/native-lock-prebuilds.test.ts native lock distribution integrity 2test/scripts/nightly-e2e.test.ts nightly E2E scheduling 4 readFileSynctest/scripts/run-verify-parallel.test.ts guard registration ⇒ execution coverage 1 readFileSynctest/scripts/test-shard.slow.test.ts test-shard.sh — LPT balance contract 5 readFileSync-test/scripts/test-shard.slow.test.ts test-shard.sh — exclusion contract 6 readFileSync+test/scripts/test-shard.slow.test.ts test-shard.sh — exclusion contract 7 readFileSynctest/serve-http-admin-route-guard.test.ts (file-level) 4 readFileSynctest/serve-http-github-webhook.test.ts handler wiring (source pin) 1 readFileSynctest/serve-http-mcp-transport-cleanup.test.ts POST /mcp transport cleanup (#2844) 2 readFileSyncdiff --git a/scripts/test-shard.sh b/scripts/test-shard.shindex 43a2c6d401..21d29dbb94 100755--- a/scripts/test-shard.sh+++ b/scripts/test-shard.sh@@ -72,12 +72,17 @@ cd "$(dirname "$0")/.."# → job: slow-entity-resolve-perf## Removing both heavy atoms from matrix-eligible files keeps the per-shard-# total bounded. With 10 matrix shards the per-shard total drops to ~272s.+# total bounded. With 8 matrix shards the per-shard total is ~344s.# Dedicated jobs run in parallel so total CI wallclock = max(matrix ~4.5min,# slow-eval ~3.3min, slow-entity-resolve-perf ~2.6min, slow-brainbench ~1.5min)# ≈ 4.5min. eval-brainbench-e2e was the matrix's heaviest atom (98s mined —# 10% of the whole corpus weight) and capped shard-count scaling; it now rides# its own job like the other two outliers.+# export-scale.slow.test.ts (571s at its 100,001-page master scale) rides the+# slow-entity-resolve-perf job, which sets GBRAIN_TEST_EXPORT_SCALE_PAGES per+# event. reconcile-crash.slow.test.ts (244s) is not duplicated here: the+# persistence-validation invariants job already runs it on PGLite for every+# event, before and after activation.# evals/ is included: its *.test.ts files (eval-harness unit tests) were# previously collected by NO runner — 45+ real tests never executed anywhere.# Every collected evals file must be KEYLESS (no API keys, no network) —@@ -90,6 +95,8 @@ ALL_FILES=$(find test evals -name '*.test.ts' \-not -name 'entity-resolve-perf.slow.test.ts' \-not -name 'entity-card-perf.slow.test.ts' \-not -name 'eval-brainbench-e2e.slow.test.ts' \+ -not -name 'export-scale.slow.test.ts' \+ -not -name 'reconcile-crash.slow.test.ts' \-not -path 'test/e2e/*' | sort)if [ -z "$ALL_FILES" ]; thendiff --git a/scripts/test-weights.json b/scripts/test-weights.jsonindex 2fad5146ed..e56587d434 100644--- a/scripts/test-weights.json+++ b/scripts/test-weights.json@@ -1,1716 +1,2041 @@{- "evals/functional-area-resolver/harness-runner.test.ts": 28,- "test/abort-check.test.ts": 4,- "test/active-pack-wiring.test.ts": 1,- "test/admin-agents-spend.test.ts": 3344,- "test/admin-sse-eventsource.test.ts": 0,- "test/admin-sse-handshake.test.ts": 12,- "test/advisor-apply.test.ts": 15,- "test/advisor-cli.test.ts": 28,- "test/advisor-collectors-findings.test.ts": 15,- "test/advisor-core.test.ts": 20,- "test/advisor-mcp-client-fit.test.ts": 461,- "test/advisor-op-gate.test.ts": 15,- "test/advisor-ranking-eval.test.ts": 24,- "test/agent-cli.test.ts": 596,- "test/agent-install.test.ts": 84,- "test/agent-register.test.ts": 521,- "test/agent-runner.test.ts": 14,- "test/ai-probes-models.test.ts": 11,- "test/ai/adaptive-embed-batch.test.ts": 17,- "test/ai/anthropic-key.test.ts": 6,- "test/ai/build-gateway-config.test.ts": 957,- "test/ai/capabilities.test.ts": 13,- "test/ai/classify-global-llm-error.test.ts": 4,- "test/ai/claude-cli-expansion.test.ts": 9,+ "evals/functional-area-resolver/harness-runner.test.ts": 6,+ "test/abort-check.test.ts": 13,+ "test/active-pack-wiring.test.ts": 7,+ "test/admin-agents-spend.test.ts": 1868,+ "test/admin-auth-limits.test.ts": 115,+ "test/admin-sse-eventsource.test.ts": 15,+ "test/admin-sse-handshake.test.ts": 42,+ "test/advisor-apply.test.ts": 3,+ "test/advisor-cli.test.ts": 18,+ "test/advisor-collectors-findings.test.ts": 9,+ "test/advisor-core.test.ts": 16,+ "test/advisor-mcp-client-fit.test.ts": 1204,+ "test/advisor-op-gate.test.ts": 17,+ "test/advisor-ranking-eval.test.ts": 22,+ "test/agent-cli.test.ts": 357,+ "test/agent-install.test.ts": 137,+ "test/agent-register.test.ts": 347,+ "test/agent-runner.test.ts": 6,+ "test/ai-probes-models.test.ts": 16,+ "test/ai/adaptive-embed-batch.test.ts": 12,+ "test/ai/anthropic-key.test.ts": 18,+ "test/ai/anthropic-model-ids.test.ts": 1,+ "test/ai/build-gateway-config.test.ts": 608,+ "test/ai/capabilities.test.ts": 6,+ "test/ai/classify-global-llm-error.test.ts": 7,+ "test/ai/claude-cli-expansion.test.ts": 6,"test/ai/config-no-env-mutation.test.ts": 4,- "test/ai/deepseek-reasoning-content.test.ts": 2,- "test/ai/diagnose-embedding-dims.test.ts": 8,- "test/ai/dims-openai.test.ts": 4,- "test/ai/dims-qwen3-native.test.ts": 5,- "test/ai/embed-env-batch-cap.test.ts": 7,- "test/ai/embed-keyless-base-url.test.ts": 4,- "test/ai/embedQuery.test.ts": 7,- "test/ai/gateway-cache-breakpoint.test.ts": 10,- "test/ai/gateway-chat-temperature.test.ts": 1,- "test/ai/gateway-chat.test.ts": 17,- "test/ai/gateway-ocr-budget.test.ts": 12,- "test/ai/gateway-openai-prompt-cache-key.test.ts": 6,- "test/ai/gateway-probe-chat-model.test.ts": 1,+ "test/ai/deepseek-reasoning-content.test.ts": 7,+ "test/ai/diagnose-embedding-dims.test.ts": 7,+ "test/ai/dims-input-type.test.ts": 3,+ "test/ai/dims-openai.test.ts": 3,+ "test/ai/dims-qwen3-native.test.ts": 0,+ "test/ai/embed-env-batch-cap.test.ts": 6,+ "test/ai/embed-keyless-base-url.test.ts": 8,+ "test/ai/embedQuery.test.ts": 5,+ "test/ai/gateway-cache-breakpoint.test.ts": 20,+ "test/ai/gateway-chat-temperature.test.ts": 17,+ "test/ai/gateway-chat.test.ts": 23,+ "test/ai/gateway-ocr-budget.test.ts": 8,+ "test/ai/gateway-openai-prompt-cache-key.test.ts": 5,+ "test/ai/gateway-probe-chat-model.test.ts": 14,"test/ai/gateway-reset-baseline.test.ts": 4,- "test/ai/gateway-thinking-headroom.test.ts": 6,- "test/ai/gateway-thinking-model-re.test.ts": 4,- "test/ai/gateway-tool-loop.test.ts": 35,- "test/ai/gateway-toolcall-pairing.test.ts": 19,- "test/ai/gateway-tools-schema.test.ts": 22,- "test/ai/gateway.test.ts": 877,+ "test/ai/gateway-thinking-headroom.test.ts": 1,+ "test/ai/gateway-thinking-model-re.test.ts": 12,+ "test/ai/gateway-tool-loop.test.ts": 30,+ "test/ai/gateway-toolcall-pairing.test.ts": 4,+ "test/ai/gateway-tools-schema.test.ts": 36,+ "test/ai/gateway.test.ts": 897,+ "test/ai/google-embed-batch-items.test.ts": 6,+ "test/ai/invocation-preflight.test.ts": 4,"test/ai/model-resolver-slash.test.ts": 2,"test/ai/no-batch-cap-item-split.test.ts": 6,- "test/ai/normalize-ai-error.test.ts": 5,- "test/ai/ocr-model-routing.test.ts": 20,- "test/ai/ollama-library-tag-dims.test.ts": 9,- "test/ai/recipe-azure-openai.test.ts": 9,- "test/ai/recipe-claude-cli-prompt-cache.test.ts": 8,+ "test/ai/normalize-ai-error.test.ts": 2,+ "test/ai/ocr-model-routing.test.ts": 10,+ "test/ai/ollama-library-tag-dims.test.ts": 10,+ "test/ai/recipe-azure-openai.test.ts": 3,+ "test/ai/recipe-claude-cli-prompt-cache.test.ts": 4,"test/ai/recipe-dashscope-rerank.test.ts": 1,- "test/ai/recipe-dashscope.test.ts": 2,- "test/ai/recipe-google-embedding-2.test.ts": 0,- "test/ai/recipe-google-prompt-cache.test.ts": 5,- "test/ai/recipe-llama-server-reranker.test.ts": 3,- "test/ai/recipe-llama-server.test.ts": 4,- "test/ai/recipe-lmstudio.test.ts": 16,- "test/ai/recipe-minimax.test.ts": 1,+ "test/ai/recipe-dashscope.test.ts": 12,+ "test/ai/recipe-google-embedding-2.test.ts": 24,+ "test/ai/recipe-google-prompt-cache.test.ts": 8,+ "test/ai/recipe-llama-server-reranker.test.ts": 4,+ "test/ai/recipe-llama-server.test.ts": 5,+ "test/ai/recipe-lmstudio.test.ts": 15,+ "test/ai/recipe-minimax.test.ts": 14,"test/ai/recipe-mistral.test.ts": 4,- "test/ai/recipe-moonshot.test.ts": 4,- "test/ai/recipe-nan.test.ts": 7,+ "test/ai/recipe-moonshot.test.ts": 5,+ "test/ai/recipe-nan.test.ts": 2,"test/ai/recipe-nvidia.test.ts": 1,- "test/ai/recipe-ollama-dims.test.ts": 2,- "test/ai/recipe-ollama-thinking.test.ts": 5,- "test/ai/recipe-ollama.test.ts": 6,- "test/ai/recipe-openrouter.test.ts": 8,- "test/ai/recipe-perplexity.test.ts": 4,- "test/ai/recipe-zhipu.test.ts": 22,- "test/ai/recipes-existing-regression.test.ts": 5,- "test/ai/rerank.test.ts": 22,- "test/ai/reranker-readiness.test.ts": 2,- "test/ai/resolve-native-base-url.test.ts": 4,+ "test/ai/recipe-ollama-dims.test.ts": 7,+ "test/ai/recipe-ollama-thinking.test.ts": 7,+ "test/ai/recipe-ollama.test.ts": 1,+ "test/ai/recipe-openrouter.test.ts": 5,+ "test/ai/recipe-perplexity.test.ts": 13,+ "test/ai/recipe-zhipu.test.ts": 3,+ "test/ai/recipes-existing-regression.test.ts": 21,+ "test/ai/rerank.test.ts": 21,+ "test/ai/reranker-readiness.test.ts": 3,+ "test/ai/resolve-native-base-url.test.ts": 3,"test/ai/schema-templating.test.ts": 4,- "test/ai/silent-drop-regression.test.ts": 7,- "test/ai/voyage-code-3-recipe.test.ts": 5,- "test/ai/voyage-reranker-recipe.test.ts": 11,- "test/all-sources-sentinel.test.ts": 13,- "test/ambient-recall-cli.test.ts": 5805,- "test/ambient-recall-templates.test.ts": 2,- "test/ambient-recall.test.ts": 4286,- "test/ambient-writeback-wiring-pins.test.ts": 334,- "test/anomalies.test.ts": 6,- "test/anthropic-model-ids.test.ts": 7,- "test/anthropic-pricing.test.ts": 0,- "test/apply-migrations-list-db-state.test.ts": 1,- "test/apply-migrations.test.ts": 15,- "test/archive-crawler-config.test.ts": 12,- "test/archived-source-scoping.test.ts": 6,+ "test/ai/silent-drop-regression.test.ts": 18,+ "test/ai/voyage-code-3-recipe.test.ts": 3,+ "test/ai/voyage-reranker-recipe.test.ts": 2,+ "test/all-sources-sentinel.test.ts": 15,+ "test/ambient-recall-cli.test.ts": 4122,+ "test/ambient-recall-templates.test.ts": 7,+ "test/ambient-recall.test.ts": 27107,+ "test/ambient-writeback-wiring-pins.test.ts": 549,+ "test/anomalies.test.ts": 10,+ "test/anthropic-model-ids.test.ts": 3,+ "test/anthropic-pricing.test.ts": 12,+ "test/apply-migrations-list-db-state.test.ts": 4,+ "test/apply-migrations.test.ts": 8,+ "test/archive-crawler-config.test.ts": 24,+ "test/archived-source-scoping.test.ts": 18,"test/asymmetric-encoding-contract.test.ts": 4,- "test/atomic-write.test.ts": 10,- "test/atoms-scan-hash-rearm.test.ts": 2723,- "test/audit/audit-dir-preload.test.ts": 16,- "test/audit/audit-writer.test.ts": 14,- "test/audit/batch-retry-audit.test.ts": 20,- "test/audit/batch-retry-redaction.test.ts": 4,- "test/audit/content-sanity-audit.test.ts": 1,- "test/audit/lock-renewal-audit.test.ts": 26,- "test/audit/pool-recovery-audit.test.ts": 7,- "test/audit/redact-connection-info.test.ts": 7,- "test/auth-create-args.test.ts": 299,- "test/auth-register-client-args.test.ts": 6,- "test/auth-register-client-output-pin.test.ts": 4,- "test/authorization-boundaries.test.ts": 6,- "test/auto-link-targeted-probe-2544.test.ts": 2683,- "test/auto-think-phase.test.ts": 564,- "test/autopilot-auto-drain-wiring.test.ts": 4,- "test/autopilot-cycle-failure-classification.test.ts": 5,- "test/autopilot-cycle-handler.test.ts": 631,- "test/autopilot-cycle-source-checkout.test.ts": 916,- "test/autopilot-drain-deadlock-2050.test.ts": 3197,- "test/autopilot-failure-cooldown.test.ts": 1253,- "test/autopilot-fanout-wiring.test.ts": 6,- "test/autopilot-fanout.test.ts": 11,- "test/autopilot-global-maintenance.test.ts": 1440,- "test/autopilot-install.test.ts": 32,- "test/autopilot-lock-path.test.ts": 6,- "test/autopilot-lock.test.ts": 51,- "test/autopilot-nightly-probe-wiring.test.ts": 6,- "test/autopilot-parser-probe-wiring.test.ts": 4,- "test/autopilot-pause-marker.test.ts": 22,- "test/autopilot-positional-args.test.ts": 1762,- "test/autopilot-reconnect-classifier.test.ts": 12,- "test/autopilot-resolve-cli.test.ts": 22,- "test/autopilot-self-disable-and-status.test.ts": 20,- "test/autopilot-self-upgrade.test.ts": 3,- "test/autopilot-shutdown-engine-close.test.ts": 3,- "test/autopilot-supervisor-wiring.test.ts": 6,- "test/backfill-base.test.ts": 18,- "test/backfill-perf-pglite.test.ts": 10760,- "test/backlink-count-mention-filter.test.ts": 636,- "test/backlinks.test.ts": 10087,- "test/backoff.test.ts": 5,- "test/backpressure-audit-read.test.ts": 6,+ "test/atomic-write.test.ts": 65,+ "test/atoms-scan-hash-rearm.test.ts": 243,+ "test/attendance-extraction-bounds.test.ts": 1428,+ "test/attendance-repair-identity.test.ts": 6,+ "test/attendance-repair.test.ts": 13533,+ "test/attendance-retrieval.test.ts": 12973,+ "test/attribution-rules-opt-in.test.ts": 20,+ "test/audit/audit-dir-preload.test.ts": 9,+ "test/audit/audit-writer.test.ts": 19,+ "test/audit/batch-retry-audit.test.ts": 5,+ "test/audit/batch-retry-redaction.test.ts": 13,+ "test/audit/content-sanity-audit.test.ts": 31,+ "test/audit/lock-renewal-audit.test.ts": 23,+ "test/audit/pool-recovery-audit.test.ts": 3,+ "test/audit/redact-connection-info.test.ts": 2,+ "test/auth-create-args.test.ts": 260,+ "test/auth-register-client-args.test.ts": 10,+ "test/auth-register-client-output-pin.test.ts": 8,+ "test/authorization-boundaries.test.ts": 409,+ "test/auto-link-targeted-probe-2544.test.ts": 1652,+ "test/auto-think-phase.test.ts": 320,+ "test/autopilot-auto-drain-wiring.test.ts": 13,+ "test/autopilot-cycle-failure-classification.test.ts": 4,+ "test/autopilot-cycle-handler.test.ts": 338,+ "test/autopilot-cycle-source-checkout.test.ts": 1271,+ "test/autopilot-drain-deadlock-2050.test.ts": 3629,+ "test/autopilot-failure-cooldown.test.ts": 646,+ "test/autopilot-fanout-wiring.test.ts": 14,+ "test/autopilot-fanout.test.ts": 10,+ "test/autopilot-global-maintenance.test.ts": 986,+ "test/autopilot-install.test.ts": 75,+ "test/autopilot-lock-path.test.ts": 13,+ "test/autopilot-lock.test.ts": 81,+ "test/autopilot-nightly-probe-wiring.test.ts": 11,+ "test/autopilot-parser-probe-wiring.test.ts": 3,+ "test/autopilot-pause-marker.test.ts": 19,+ "test/autopilot-positional-args.test.ts": 1669,+ "test/autopilot-reconnect-classifier.test.ts": 16,+ "test/autopilot-resolve-cli.test.ts": 14,+ "test/autopilot-self-disable-and-status.test.ts": 19,+ "test/autopilot-self-upgrade.test.ts": 12,+ "test/autopilot-shutdown-engine-close.test.ts": 8,+ "test/autopilot-supervisor-wiring.test.ts": 39,+ "test/autopilot-transaction-fence.test.ts": 380,+ "test/backfill-base.test.ts": 240,+ "test/backfill-perf-pglite.test.ts": 5417,+ "test/backlink-count-mention-filter.test.ts": 649,+ "test/backlinks.test.ts": 10082,+ "test/backoff.test.ts": 2,+ "test/backpressure-audit-read.test.ts": 7,"test/balanced-reranker-default.test.ts": 4,- "test/bench-publish.test.ts": 32,- "test/bench/baseline-file.test.ts": 9,- "test/bench/correctness-gate.test.ts": 5,+ "test/bench-publish.test.ts": 8,+ "test/bench/baseline-file.test.ts": 3,+ "test/bench/correctness-gate.test.ts": 19,"test/bench/qrels-file.test.ts": 5,- "test/binary-self-update.test.ts": 40,- "test/book-mirror.test.ts": 665,- "test/bootstrap-atomic-write.test.ts": 7,- "test/bootstrap-codex-door.test.ts": 9,- "test/bootstrap-contract.test.ts": 12,- "test/bootstrap-doctor-checks.test.ts": 3287,- "test/bootstrap-harness-writers.test.ts": 20,- "test/bootstrap-hooks-writers.test.ts": 17,- "test/bootstrap-instructions-block.test.ts": 6,- "test/bootstrap-lock.test.ts": 14,- "test/bootstrap-render.test.ts": 114,- "test/bootstrap-repo.test.ts": 56,- "test/bootstrap-verify-embedding-plane.test.ts": 409,- "test/bootstrap-verify-hook-carrier-overlap.test.ts": 13,- "test/bootstrap.test.ts": 23282,- "test/brain-resolver.test.ts": 23,- "test/brain-score-breakdown.test.ts": 427,- "test/brain-score-recommendations.test.ts": 7,- "test/brain-writer-partial-scan.test.ts": 1797,- "test/brain-writer-walk-prune.test.ts": 155,- "test/brain-writer.test.ts": 1309,- "test/brainbench-adapters.test.ts": 627,- "test/brainbench-continuity.test.ts": 1745,- "test/brainbench-fixtures.test.ts": 23,- "test/brainbench-floors.test.ts": 4,- "test/brainbench-generator.test.ts": 27,- "test/brainbench-metrics.test.ts": 4,- "test/brainbench-scoreboard.test.ts": 9,- "test/brainbench-writeback.test.ts": 1809,- "test/brainstorm-timeout.test.ts": 6,- "test/brainstorm/cost-guardrails.test.ts": 12,- "test/brainstorm/distance.test.ts": 1,- "test/brainstorm/eval-brainstorm.test.ts": 9,- "test/brainstorm/judges-maxtokens.test.ts": 7,- "test/brainstorm/lsd-mode-skip.test.ts": 3,+ "test/binary-self-update.test.ts": 16,+ "test/book-mirror.test.ts": 618,+ "test/bootstrap-atomic-write.test.ts": 12,+ "test/bootstrap-codex-door.test.ts": 6,+ "test/bootstrap-contract.test.ts": 22,+ "test/bootstrap-doctor-checks.test.ts": 3385,+ "test/bootstrap-harness-writers.test.ts": 40,+ "test/bootstrap-hooks-writers.test.ts": 16,+ "test/bootstrap-instructions-block.test.ts": 3,+ "test/bootstrap-lock.test.ts": 15,+ "test/bootstrap-render.test.ts": 83,+ "test/bootstrap-repo.test.ts": 77,+ "test/bootstrap-shared-skills.test.ts": 1089,+ "test/bootstrap-verify-embedding-plane.test.ts": 1046,+ "test/bootstrap-verify-hook-carrier-overlap.test.ts": 30,+ "test/bootstrap.test.ts": 14456,+ "test/brain-resolver.test.ts": 12,+ "test/brain-score-breakdown.test.ts": 324,+ "test/brain-score-recommendations.test.ts": 14,+ "test/brain-writer-partial-scan.test.ts": 1327,+ "test/brain-writer-walk-prune.test.ts": 24,+ "test/brain-writer.test.ts": 772,+ "test/brainbench-adapters.test.ts": 480,+ "test/brainbench-continuity.test.ts": 2100,+ "test/brainbench-fixtures.test.ts": 59,+ "test/brainbench-floors.test.ts": 6,+ "test/brainbench-generator.test.ts": 36,+ "test/brainbench-metrics.test.ts": 15,+ "test/brainbench-scoreboard.test.ts": 11,+ "test/brainbench-writeback.test.ts": 1162,+ "test/brainstorm-timeout.test.ts": 2,+ "test/brainstorm/cost-guardrails.test.ts": 8,+ "test/brainstorm/distance.test.ts": 11,+ "test/brainstorm/eval-brainstorm.test.ts": 5,+ "test/brainstorm/judges-maxtokens.test.ts": 5,+ "test/brainstorm/lsd-mode-skip.test.ts": 4,"test/brainstorm/model-config.test.ts": 4,- "test/brainstorm/save.test.ts": 2025,- "test/budget-meter.test.ts": 5,- "test/budget/free-local-chat-pricing.test.ts": 5,- "test/budget/pricing-overrides.test.ts": 9,- "test/build-llms.test.ts": 16,- "test/by-mention.test.ts": 569,- "test/cache-cli.test.ts": 5123,- "test/cache-scope-key.test.ts": 4,- "test/calibration-cli.test.ts": 21,- "test/calibration-profile.test.ts": 11,- "test/call-federated-scope.test.ts": 3,- "test/candidate-audit.test.ts": 37,- "test/canonical-migration-command.test.ts": 129,- "test/capability.test.ts": 8,- "test/capture-build-content.test.ts": 154,- "test/capture-explicit-type.test.ts": 8,- "test/capture-op.test.ts": 595,- "test/capture-runcapture.test.ts": 7,- "test/cathedral-ii-brainbench.test.ts": 932,- "test/chat-key-plane.test.ts": 7,- "test/chat-usage.test.ts": 472,- "test/check-bootstrap-guards.test.ts": 1631,- "test/check-getpage-scoped-write.test.ts": 110,- "test/check-jsonb-params.test.ts": 62,- "test/check-resolvable-cli.test.ts": 4511,- "test/check-resolvable-openclaw-compact.test.ts": 26,- "test/check-resolvable.test.ts": 210,- "test/check-system-of-record.test.ts": 82,- "test/check-update.test.ts": 1090,- "test/checkpoint-manifest.test.ts": 309,- "test/child-job-runner.test.ts": 2074,- "test/child-worker-supervisor.test.ts": 1970,- "test/chronicle-advisor.test.ts": 496,- "test/chronicle-backfill.test.ts": 483,- "test/chronicle-capture.test.ts": 13,- "test/chronicle-context.test.ts": 420,- "test/chronicle-delight.test.ts": 1845,- "test/chronicle-doctor.test.ts": 2651,- "test/chronicle-extract.test.ts": 508,- "test/chronicle-ontology-ops.test.ts": 479,- "test/chronicle-ontology-private-visibility.test.ts": 3577,- "test/chronicle-ontology.test.ts": 2754,- "test/chronicle-ops-scope.test.ts": 2893,- "test/chronicle-search-boost.test.ts": 21,- "test/chronicle-timeline-reads.test.ts": 575,- "test/chunk-grain-fts.test.ts": 841,- "test/chunker-timeout.test.ts": 24,- "test/chunker-version-gate.test.ts": 33,- "test/chunker-version-insert-default.test.ts": 1991,- "test/chunkers/cap-oversized-cjk.test.ts": 127,- "test/chunkers/code-component-markup.test.ts": 342,- "test/chunkers/code-dart.test.ts": 23,- "test/chunkers/code-merge-defs.test.ts": 930,- "test/chunkers/code.test.ts": 95,- "test/chunkers/embed-estimate-home.test.ts": 634,- "test/chunkers/recursive-cjk-overlap.test.ts": 46,- "test/chunkers/recursive.test.ts": 409,- "test/ci-local-empty-mounts.test.ts": 3,- "test/cite-render-closure.test.ts": 498,+ "test/brainstorm/save.test.ts": 1598,+ "test/budget-meter-fail-closed.test.ts": 481,+ "test/budget-meter.test.ts": 10,+ "test/budget/free-local-chat-pricing.test.ts": 4,+ "test/budget/pricing-overrides.test.ts": 5,+ "test/build-llms.test.ts": 9,+ "test/by-mention.test.ts": 295,+ "test/cache-cli.test.ts": 3522,+ "test/cache-scope-key.test.ts": 1,+ "test/calibration-cli.test.ts": 16,+ "test/calibration-profile.test.ts": 9,+ "test/call-federated-scope.test.ts": 10,+ "test/candidate-audit.test.ts": 15,+ "test/canonical-migration-command.test.ts": 99,+ "test/canonical-writer-inventory.test.ts": 77,+ "test/capability.test.ts": 12,+ "test/capture-build-content.test.ts": 5,+ "test/capture-explicit-type.test.ts": 7,+ "test/capture-op.test.ts": 2573,+ "test/capture-runcapture.test.ts": 108,+ "test/cathedral-ii-brainbench.test.ts": 621,+ "test/chat-key-plane.test.ts": 4,+ "test/chat-usage.test.ts": 474,+ "test/check-bootstrap-guards.test.ts": 2896,+ "test/check-getpage-scoped-write.test.ts": 91,+ "test/check-jsonb-params.test.ts": 39,+ "test/check-resolvable-cli.test.ts": 3440,+ "test/check-resolvable-openclaw-compact.test.ts": 31,+ "test/check-resolvable.test.ts": 196,+ "test/check-system-of-record.test.ts": 69,+ "test/check-update.test.ts": 1035,+ "test/checkpoint-manifest.test.ts": 294,+ "test/child-handler-configuration.test.ts": 5480,+ "test/child-job-descendants.test.ts": 3442,+ "test/child-job-runner.test.ts": 2076,+ "test/child-readiness.test.ts": 1026,+ "test/child-worker-supervisor.test.ts": 1903,+ "test/chronicle-advisor.test.ts": 315,+ "test/chronicle-backfill.test.ts": 278,+ "test/chronicle-capture.test.ts": 3,+ "test/chronicle-context.test.ts": 374,+ "test/chronicle-delight.test.ts": 256,+ "test/chronicle-doctor.test.ts": 222,+ "test/chronicle-extract.test.ts": 316,+ "test/chronicle-ontology-ops.test.ts": 716,+ "test/chronicle-ontology-private-visibility.test.ts": 1297,+ "test/chronicle-ontology.test.ts": 436,+ "test/chronicle-ops-scope.test.ts": 2245,+ "test/chronicle-search-boost.test.ts": 6,+ "test/chronicle-timeline-reads.test.ts": 236,+ "test/chunk-grain-fts.test.ts": 1341,+ "test/chunker-timeout.test.ts": 22,+ "test/chunker-version-gate.test.ts": 2,+ "test/chunker-version-insert-default.test.ts": 793,+ "test/chunkers/cap-oversized-cjk.test.ts": 140,+ "test/chunkers/code-bash.test.ts": 34,+ "test/chunkers/code-component-markup.test.ts": 258,+ "test/chunkers/code-dart.test.ts": 64,+ "test/chunkers/code-merge-defs.test.ts": 889,+ "test/chunkers/code.test.ts": 65,+ "test/chunkers/embed-estimate-home.test.ts": 498,+ "test/chunkers/recursive-cjk-overlap.test.ts": 17,+ "test/chunkers/recursive.test.ts": 320,+ "test/ci-local-empty-mounts.test.ts": 6,+ "test/cite-render-closure.test.ts": 238,"test/cjk-keyword-sql.test.ts": 4,- "test/cjk.test.ts": 4,- "test/claude-cli-recipe.test.ts": 195,- "test/claude-code-jsonl.test.ts": 49,- "test/claw-test-cli.test.ts": 79,- "test/claw-test.slow.test.ts": 185940,- "test/cli-ambient-source-fail-closed.test.ts": 695,- "test/cli-args.test.ts": 14,+ "test/cjk.test.ts": 6,+ "test/claude-cli-recipe.test.ts": 109,+ "test/claude-code-jsonl.test.ts": 18,+ "test/claw-test-cli.test.ts": 101,+ "test/claw-test.slow.test.ts": 52652,+ "test/cli-ambient-source-fail-closed.test.ts": 410,+ "test/cli-args.test.ts": 18,"test/cli-bigint-normalize.test.ts": 11,- "test/cli-concept-nudge.test.ts": 4,- "test/cli-dispatch-thin-client.test.ts": 13334,- "test/cli-dream-engine-warn.test.ts": 4495,- "test/cli-empty-retrieval-render.test.ts": 14,- "test/cli-exit-verdict-pin.test.ts": 39,- "test/cli-explain-degraded-render.test.ts": 211,- "test/cli-finish-teardown.test.ts": 2567,- "test/cli-flag-validation.test.ts": 4236,- "test/cli-force-exit-teardown-arming.test.ts": 1,- "test/cli-format-get-page-json.test.ts": 1,- "test/cli-format-history-json.test.ts": 15,- "test/cli-format-search-json.test.ts": 24,- "test/cli-format-volunteer.test.ts": 3,- "test/cli-help-discoverability.test.ts": 9806,- "test/cli-help-eval-storage-reindex.test.ts": 3037,- "test/cli-import-no-signal-handlers.test.ts": 402,- "test/cli-input-plumbing-2822.test.ts": 1769,- "test/cli-multimodal-integration.test.ts": 262,- "test/cli-op-error-status-exit.test.ts": 7303,- "test/cli-options.test.ts": 4145,- "test/cli-pipe-truncation.test.ts": 0,- "test/cli-query-image.test.ts": 28,- "test/cli-search-dispatch.test.ts": 8877,- "test/cli-should-force-exit.test.ts": 0,- "test/cli-stdin-hang.test.ts": 4336,- "test/cli-stdout-delivery.test.ts": 17141,- "test/cli.test.ts": 6313,- "test/client-grants.test.ts": 772,- "test/client-slug-fence.test.ts": 15,- "test/code-def-refs-source-scope.test.ts": 488,- "test/code-def-refs.test.ts": 616,- "test/code-edges.test.ts": 1154,- "test/code-graph-readiness.test.ts": 595,- "test/code-intel-source-scope.test.ts": 1311,- "test/code-intel/edge-densification.test.ts": 24,- "test/code-intel/recursive-walk.test.ts": 2354,- "test/code-intel/scope-walker-resolution.test.ts": 60,- "test/code-intel/traversal-cache.test.ts": 2335,- "test/code-retrieval-harness.test.ts": 12,- "test/code-scoped-source-resolve.test.ts": 1570,- "test/codex-hook-lane-archived.test.ts": 9,- "test/codex-hook-lane.test.ts": 15,- "test/codex-hooks-writer.test.ts": 37,- "test/codex-plugin-manifest.test.ts": 2851,- "test/codex-toml.test.ts": 2,- "test/commands-search.test.ts": 2618,- "test/commands/capture.test.ts": 2639,- "test/commands/schema-packpath.test.ts": 10,- "test/compile-view.test.ts": 59,+ "test/cli-concept-nudge.test.ts": 2,+ "test/cli-cwd-dotenv-quarantine.test.ts": 13233,+ "test/cli-dispatch-thin-client.test.ts": 8509,+ "test/cli-dream-engine-warn.test.ts": 3960,+ "test/cli-empty-retrieval-render.test.ts": 4,+ "test/cli-exit-verdict-pin.test.ts": 22,+ "test/cli-explain-degraded-render.test.ts": 10,+ "test/cli-finish-teardown.test.ts": 2560,+ "test/cli-flag-validation.test.ts": 2471,+ "test/cli-force-exit-teardown-arming.test.ts": 0,+ "test/cli-format-get-page-json.test.ts": 12,+ "test/cli-format-history-json.test.ts": 84,+ "test/cli-format-search-json.test.ts": 12,+ "test/cli-format-volunteer.test.ts": 38,+ "test/cli-help-discoverability.test.ts": 9632,+ "test/cli-help-eval-storage-reindex.test.ts": 2595,+ "test/cli-import-no-signal-handlers.test.ts": 285,+ "test/cli-incomplete-retrieval-render.test.ts": 4,+ "test/cli-input-plumbing-2822.test.ts": 1178,+ "test/cli-multimodal-integration.test.ts": 291,+ "test/cli-op-error-status-exit.test.ts": 6871,+ "test/cli-options.test.ts": 4937,+ "test/cli-pipe-truncation.test.ts": 1339,+ "test/cli-query-image.test.ts": 18,+ "test/cli-recall-flag-ownership.test.ts": 1459,+ "test/cli-search-dispatch.test.ts": 9544,+ "test/cli-should-force-exit.test.ts": 8,+ "test/cli-stdin-hang.test.ts": 4386,+ "test/cli-stdout-delivery.test.ts": 17275,+ "test/cli.test.ts": 6725,+ "test/client-grants.test.ts": 614,+ "test/client-slug-fence.test.ts": 26,+ "test/code-def-refs-source-scope.test.ts": 299,+ "test/code-def-refs.test.ts": 811,+ "test/code-edges.test.ts": 682,+ "test/code-graph-readiness.test.ts": 810,+ "test/code-intel-source-scope.test.ts": 847,+ "test/code-intel/edge-densification.test.ts": 17,+ "test/code-intel/recursive-walk.test.ts": 1089,+ "test/code-intel/scope-walker-resolution.test.ts": 49,+ "test/code-intel/traversal-cache.test.ts": 775,+ "test/code-projection-edge-recovery.test.ts": 761,+ "test/code-read-currency.test.ts": 2006,+ "test/code-retrieval-harness.test.ts": 16,+ "test/code-scoped-source-resolve.test.ts": 1254,+ "test/codex-hook-lane-archived.test.ts": 8,+ "test/codex-hook-lane.test.ts": 27,+ "test/codex-hooks-writer.test.ts": 12,+ "test/codex-plugin-manifest.test.ts": 1697,+ "test/codex-toml.test.ts": 19,+ "test/commands-search.test.ts": 1077,+ "test/commands/capture.test.ts": 2805,+ "test/commands/schema-packpath.test.ts": 19,+ "test/company-brain-demo.test.ts": 7922,+ "test/company-brain-inspect-cli.test.ts": 5405,+ "test/company-brain-inspect.test.ts": 919,+ "test/company-brain-policy.test.ts": 5576,+ "test/company-brain-receipts.test.ts": 785,+ "test/company-brain-runtime.test.ts": 21086,+ "test/company-brain-schema.test.ts": 11,+ "test/company-brain-status.test.ts": 539,+ "test/compile-view.test.ts": 50,"test/config-adaptive-return-keys.test.ts": 5,- "test/config-db-merge.test.ts": 279,- "test/config-db-plane-round-trips.test.ts": 0,- "test/config-ensure-gitignore.test.ts": 5,- "test/config-env-hijack.test.ts": 8,- "test/config-env.test.ts": 5,+ "test/config-db-merge.test.ts": 326,+ "test/config-db-plane-round-trips.test.ts": 34,+ "test/config-ensure-gitignore.test.ts": 4,+ "test/config-env-hijack.test.ts": 16,+ "test/config-env.test.ts": 10,"test/config-file-plane-keys.test.ts": 32,- "test/config-gbrain-env-file.test.ts": 8,+ "test/config-gbrain-env-file.test.ts": 4,"test/config-get-plane.test.ts": 11,- "test/config-search-registry.test.ts": 119,- "test/config-set-mcp-instructions.test.ts": 25,- "test/config-set.test.ts": 25,- "test/config-show-object-values.test.ts": 7,- "test/config-unset.test.ts": 441,+ "test/config-search-registry.test.ts": 5,+ "test/config-set-mcp-instructions.test.ts": 7,+ "test/config-set.test.ts": 16,+ "test/config-show-object-values.test.ts": 20,+ "test/config-unset.test.ts": 234,"test/config.test.ts": 8,- "test/confirm-prompt.test.ts": 12,- "test/connect-bearer.test.ts": 10690,- "test/connect.test.ts": 66,- "test/connection-resilience.test.ts": 19,- "test/connectors-classify.test.ts": 5,- "test/connectors-config-keys.test.ts": 1,- "test/connectors-embed-kickoff.test.ts": 30,- "test/connectors-pkce.test.ts": 517,- "test/connectors-providers.test.ts": 6,- "test/console-prefix.test.ts": 21,- "test/consolidate-valid-until.test.ts": 883,- "test/content-hash-parity-3694.test.ts": 2607,- "test/content-sanity-literals.test.ts": 6,- "test/content-sanity.test.ts": 22,- "test/context-audit-skill.test.ts": 4,- "test/context-engine.test.ts": 53,- "test/context/entity-salience.test.ts": 10,- "test/context/resolve-ipc-sweep-kinds.test.ts": 18,- "test/context/resolve-ipc-sync-kinds.test.ts": 59,- "test/context/resolve-ipc.test.ts": 26,- "test/context/sync-ipc-validation.test.ts": 5,- "test/contextual-reindex-lease-release.test.ts": 9,- "test/contextual-retrieval-resolver.test.ts": 21,- "test/contextual-retrieval-service-pure.test.ts": 218,- "test/conversation-facts-pricing-wiring.test.ts": 3265,- "test/conversation-facts-type-allowlist-drift.test.ts": 1476,- "test/conversation-parser-body.test.ts": 18,- "test/conversation-parser-cli.test.ts": 12,- "test/conversation-parser-normalize-block.test.ts": 7,- "test/conversation-parser-transcript-signals.test.ts": 23,- "test/conversation-parser/body-path-containment.test.ts": 3,- "test/conversation-parser/llm-base.test.ts": 9,- "test/conversation-parser/llm-fallback.test.ts": 13,- "test/conversation-parser/nightly-probe.test.ts": 12,- "test/conversation-parser/parse.test.ts": 32,- "test/core/background-work.test.ts": 11,- "test/core/base-phase.test.ts": 7,- "test/core/budget/budget-tracker.test.ts": 671,- "test/core/budget/expand-records-budget.test.ts": 790,- "test/core/budget/gateway-budget-composition.test.ts": 12,- "test/core/git-head.test.ts": 8,- "test/core/retry-reconnect.test.ts": 93,- "test/core/retry-stress.slow.test.ts": 162,- "test/core/retry.test.ts": 657,- "test/corpus-segments.test.ts": 24,- "test/corrective-containment.test.ts": 10,- "test/cosine-rescore-chunkless-headstart.test.ts": 20,- "test/cosine-rescore-column.test.ts": 413,- "test/creds-export.test.ts": 617,- "test/creds-relay-client.test.ts": 32,- "test/cross-modal-default-slots.test.ts": 9,- "test/cross-modal-eval-aggregate.test.ts": 4,- "test/cross-modal-eval-cli.test.ts": 16,- "test/cross-modal-eval-json-repair.test.ts": 3,- "test/cross-modal-eval-prompt.test.ts": 17,- "test/cross-modal-phase1.test.ts": 28,- "test/cross-modal-phase2.test.ts": 134,- "test/cycle-abort.test.ts": 123,- "test/cycle-any-abort-signal.test.ts": 215,- "test/cycle-auto-think-config-zero.test.ts": 22,- "test/cycle-consolidate.test.ts": 466,- "test/cycle-conversation-facts-backfill.test.ts": 2577,- "test/cycle-date.test.ts": 9,- "test/cycle-drain-renewal.test.ts": 64,- "test/cycle-dream-output-root.test.ts": 1035,- "test/cycle-enabled-phase-completeness.test.ts": 1034,- "test/cycle-extract-source.test.ts": 776,- "test/cycle-last-full-cycle-at.test.ts": 3768,- "test/cycle-legacy-phases.test.ts": 1629,- "test/cycle-link-manifest.test.ts": 3119,- "test/cycle-lint-durability.test.ts": 153,- "test/cycle-lock-per-source.test.ts": 3,- "test/cycle-pack-gating.test.ts": 24,- "test/cycle-patterns-child-outcome.test.ts": 1306,- "test/cycle-patterns-deadline-budget.test.ts": 300,- "test/cycle-patterns-source-scope.test.ts": 1807,- "test/cycle-patterns.test.ts": 22,- "test/cycle-phase-deadline-drift.test.ts": 1,- "test/cycle-phase-deadline.test.ts": 74,- "test/cycle-stale-drain.test.ts": 2625,- "test/cycle-stamp-write-failure.test.ts": 4091,- "test/cycle-start-recovery.test.ts": 404,- "test/cycle-summary-file-write.test.ts": 1221,- "test/cycle-synthesize-braindir-resolve.test.ts": 328,- "test/cycle-synthesize-chunker.test.ts": 18,- "test/cycle-synthesize-config-zero.test.ts": 40,- "test/cycle-synthesize-daily-cap.test.ts": 3048,- "test/cycle-synthesize-inline-concurrency.test.ts": 8262,- "test/cycle-synthesize-md-discovery.test.ts": 8,- "test/cycle-synthesize-slug-collection.test.ts": 418,- "test/cycle-synthesize-subagent-timeout.test.ts": 1348,- "test/cycle-synthesize-summary-page.test.ts": 24,- "test/cycle-synthesize-triage-calibration.test.ts": 9,- "test/cycle-synthesize-triage.test.ts": 26,- "test/cycle-synthesize-verify.test.ts": 540,- "test/cycle-synthesize.test.ts": 32,- "test/cycle-triage-rescue.test.ts": 21,- "test/cycle-write-path-mini-eval.test.ts": 627,- "test/cycle/extract-atoms-batch.test.ts": 1081,- "test/cycle/extract-atoms-config-caps.test.ts": 2665,- "test/cycle/extract-atoms-model-config-fail-soft.test.ts": 393,- "test/cycle/extract-atoms-progress.test.ts": 3401,- "test/cycle/extract-atoms-quote-provenance.test.ts": 2920,- "test/cycle/extract-atoms-synthesize-concepts.test.ts": 9475,- "test/cycle/extract-atoms-work-interleave.test.ts": 796,- "test/cycle/nightly-probe-adapters.test.ts": 3,- "test/cycle/regression-pr-wave-r1-r2-r4.test.ts": 34,- "test/cycle/synthesize-concepts-progress.test.ts": 580,- "test/cycle/synthesize-concepts-source-scope.test.ts": 653,- "test/cycle/synthesize-concepts-task-model.test.ts": 1023,- "test/cycle/synthesize-concepts-token-cap.test.ts": 2942,- "test/cycle/synthesize-gateway-adapter.test.ts": 24,- "test/cycle/yield-during-phase-refresh.test.ts": 16,- "test/cycle/yield-during-phase-throttle.test.ts": 3450,- "test/dart-call-edges.test.ts": 27,- "test/data-frontmatter.test.ts": 12,- "test/database-url-guard-preload.test.ts": 493,- "test/db-disconnect-audit.test.ts": 19,- "test/db-guard-coverage.test.ts": 448,- "test/db-lock-auto-takeover.test.ts": 444,- "test/db-lock-cross-host-wait.test.ts": 2715,- "test/db-lock-election.test.ts": 363,- "test/db-lock-fencing.test.ts": 984,- "test/db-lock-heartbeat-takeover.test.ts": 2835,- "test/db-lock-inspect.test.ts": 5318,- "test/db-lock-per-source.test.ts": 2517,- "test/db-lock-reap.test.ts": 2692,- "test/db-lock-refresh.test.ts": 2,- "test/db-pacer.test.ts": 13,- "test/db-pool-max-lifetime.test.ts": 25,- "test/db-probe.test.ts": 124,- "test/dedup.test.ts": 9,- "test/deep-research-fetch.test.ts": 999,- "test/default-alias-liveness.test.ts": 3,- "test/default-model-panels.test.ts": 19,- "test/default-source-path-check.test.ts": 1277,- "test/degraded-engine.test.ts": 55,- "test/degraded-stages-recall.test.ts": 2,- "test/delta-cursor-microseconds.test.ts": 845,- "test/denied-after-list.test.ts": 2689,- "test/destructive-guard.test.ts": 5697,- "test/detached-stderr.test.ts": 4,- "test/disk-walk.test.ts": 27,- "test/dispatch-localonly.test.ts": 273,- "test/docker-postgres.test.ts": 4,- "test/docs-cli-commands.test.ts": 63,- "test/docs-mcp-deploy.test.ts": 15,- "test/doctor-abandoned-threads-month-precision.test.ts": 288,- "test/doctor-asset-paths.test.ts": 6,- "test/doctor-atom-provenance-drift.test.ts": 3397,- "test/doctor-batch-retry.test.ts": 14,- "test/doctor-behavioral.test.ts": 6504,- "test/doctor-brain-checks-score.test.ts": 26,- "test/doctor-brainstorm-health.test.ts": 1980,- "test/doctor-calibration-checks.test.ts": 16,- "test/doctor-categories.test.ts": 23,- "test/doctor-cause-rank.test.ts": 16,- "test/doctor-chat-fallback-chain.test.ts": 5,- "test/doctor-child-orphans.test.ts": 4,- "test/doctor-conversation-facts-backlog.test.ts": 743,- "test/doctor-conversation-format-coverage.test.ts": 850,- "test/doctor-cycle-freshness.test.ts": 1177,- "test/doctor-cycle-phase-scope.test.ts": 17,- "test/doctor-drift-advice.test.ts": 17,- "test/doctor-effective-date-health.test.ts": 2791,- "test/doctor-embedding-env-override.test.ts": 1796,- "test/doctor-extract-atoms-backlog.test.ts": 2992,- "test/doctor-extract-health.test.ts": 440,- "test/doctor-fast-supervisor.test.ts": 294,- "test/doctor-federation-health.test.ts": 1544,- "test/doctor-fix.test.ts": 3720,- "test/doctor-frontmatter-partial.test.ts": 8,- "test/doctor-fts-reindex-incomplete.test.ts": 3,- "test/doctor-graph-coverage-inbound.test.ts": 1921,- "test/doctor-graph-coverage-soft-deleted.test.ts": 4301,- "test/doctor-hidden-by-search-policy.test.ts": 1574,- "test/doctor-home-dir-in-worktree.test.ts": 472,- "test/doctor-image-assets-remote.test.ts": 3669,- "test/doctor-image-assets-wsl.test.ts": 4216,- "test/doctor-image-assets.test.ts": 1,- "test/doctor-links-extraction-lag.test.ts": 2013,- "test/doctor-memorable.test.ts": 18,- "test/doctor-memory-verbs-check.test.ts": 168,- "test/doctor-minions-check.test.ts": 2451,- "test/doctor-oauth-client-scope-health.test.ts": 303,- "test/doctor-orphan-ratio.test.ts": 6788,+ "test/confirm-prompt.test.ts": 3,+ "test/connect-bearer.test.ts": 10069,+ "test/connect.test.ts": 88,+ "test/connection-resilience.test.ts": 3,+ "test/connectors-classify.test.ts": 9,+ "test/connectors-config-keys.test.ts": 2,+ "test/connectors-embed-kickoff.test.ts": 7,+ "test/connectors-pkce.test.ts": 520,+ "test/connectors-provider-pagination.test.ts": 18,+ "test/connectors-providers.test.ts": 3,+ "test/console-prefix.test.ts": 12,+ "test/consolidate-valid-until.test.ts": 816,+ "test/content-hash-parity-3694.test.ts": 361,+ "test/content-sanity-literals.test.ts": 8,+ "test/content-sanity.test.ts": 20,+ "test/context-audit-skill.test.ts": 64,+ "test/context-engine.test.ts": 32,+ "test/context/entity-salience.test.ts": 6,+ "test/context/resolve-ipc-sweep-kinds.test.ts": 24,+ "test/context/resolve-ipc-sync-kinds.test.ts": 21,+ "test/context/resolve-ipc.test.ts": 22,+ "test/context/sync-ipc-validation.test.ts": 41,+ "test/contextual-reindex-lease-release.test.ts": 8,+ "test/contextual-retrieval-resolver.test.ts": 2,+ "test/contextual-retrieval-service-pure.test.ts": 247,+ "test/conversation-facts-pricing-wiring.test.ts": 870,+ "test/conversation-facts-type-allowlist-drift.test.ts": 2844,+ "test/conversation-parser-body.test.ts": 10,+ "test/conversation-parser-cli.test.ts": 20,+ "test/conversation-parser-normalize-block.test.ts": 14,+ "test/conversation-parser-transcript-signals.test.ts": 3,+ "test/conversation-parser/body-path-containment.test.ts": 4,+ "test/conversation-parser/llm-base.test.ts": 12,+ "test/conversation-parser/llm-fallback.test.ts": 9,+ "test/conversation-parser/nightly-probe.test.ts": 4,+ "test/conversation-parser/parse.test.ts": 43,+ "test/conversation-parser/speaker-object.test.ts": 19,+ "test/core/background-work.test.ts": 14,+ "test/core/base-phase.test.ts": 9,+ "test/core/budget/budget-tracker.test.ts": 587,+ "test/core/budget/expand-records-budget.test.ts": 586,+ "test/core/budget/gateway-budget-composition.test.ts": 7,+ "test/core/budget/model-ledger.test.ts": 652,+ "test/core/git-head.test.ts": 9,+ "test/core/retry-reconnect.test.ts": 89,+ "test/core/retry-stress.slow.test.ts": 143,+ "test/core/retry.test.ts": 656,+ "test/corpus-segments.test.ts": 10,+ "test/corrective-containment.test.ts": 6,+ "test/cosine-rescore-chunkless-headstart.test.ts": 4,+ "test/cosine-rescore-column.test.ts": 245,+ "test/creds-export.test.ts": 461,+ "test/creds-relay-client.test.ts": 22,+ "test/cross-modal-default-slots.test.ts": 12,+ "test/cross-modal-eval-aggregate.test.ts": 3,+ "test/cross-modal-eval-cli.test.ts": 15,+ "test/cross-modal-eval-json-repair.test.ts": 7,+ "test/cross-modal-eval-prompt.test.ts": 2,+ "test/cross-modal-phase1.test.ts": 12,+ "test/cross-modal-phase2.test.ts": 92,+ "test/cycle-abort.test.ts": 114,+ "test/cycle-any-abort-signal.test.ts": 218,+ "test/cycle-auto-think-config-zero.test.ts": 15,+ "test/cycle-consolidate.test.ts": 550,+ "test/cycle-conversation-facts-backfill.test.ts": 2256,+ "test/cycle-date-consistency.test.ts": 285,+ "test/cycle-date.test.ts": 11,+ "test/cycle-drain-renewal.test.ts": 65,+ "test/cycle-dream-output-root.test.ts": 1388,+ "test/cycle-enabled-phase-completeness.test.ts": 499,+ "test/cycle-extract-source.test.ts": 1259,+ "test/cycle-last-full-cycle-at.test.ts": 534,+ "test/cycle-legacy-phases.test.ts": 927,+ "test/cycle-link-manifest.test.ts": 2289,+ "test/cycle-lint-durability.test.ts": 72,+ "test/cycle-lock-per-source.test.ts": 2,+ "test/cycle-pack-gating.test.ts": 580,+ "test/cycle-patterns-child-outcome.test.ts": 1818,+ "test/cycle-patterns-deadline-budget.test.ts": 457,+ "test/cycle-patterns-source-scope.test.ts": 249,+ "test/cycle-patterns.test.ts": 1677,+ "test/cycle-phase-deadline-drift.test.ts": 5,+ "test/cycle-phase-deadline.test.ts": 59,+ "test/cycle-repeated-consolidation.test.ts": 1688,+ "test/cycle-stale-drain.test.ts": 1106,+ "test/cycle-stamp-write-failure.test.ts": 660,+ "test/cycle-start-recovery.test.ts": 271,+ "test/cycle-summary-file-write.test.ts": 964,+ "test/cycle-synthesize-braindir-resolve.test.ts": 266,+ "test/cycle-synthesize-chunker.test.ts": 4,+ "test/cycle-synthesize-config-zero.test.ts": 15,+ "test/cycle-synthesize-daily-cap.test.ts": 1944,+ "test/cycle-synthesize-dream-ownership.test.ts": 848,+ "test/cycle-synthesize-inline-concurrency.test.ts": 7229,+ "test/cycle-synthesize-md-discovery.test.ts": 9,+ "test/cycle-synthesize-slug-collection.test.ts": 286,+ "test/cycle-synthesize-subagent-timeout.test.ts": 752,+ "test/cycle-synthesize-summary-page.test.ts": 51,+ "test/cycle-synthesize-triage-calibration.test.ts": 5,+ "test/cycle-synthesize-triage.test.ts": 10,+ "test/cycle-synthesize-verify-decisions.test.ts": 9,+ "test/cycle-synthesize-verify.test.ts": 646,+ "test/cycle-synthesize.test.ts": 12,+ "test/cycle-triage-rescue.test.ts": 4,+ "test/cycle-write-path-mini-eval.test.ts": 1214,+ "test/cycle/extract-atoms-batch.test.ts": 646,+ "test/cycle/extract-atoms-config-caps.test.ts": 1264,+ "test/cycle/extract-atoms-model-config-fail-soft.test.ts": 762,+ "test/cycle/extract-atoms-progress.test.ts": 1238,+ "test/cycle/extract-atoms-quote-provenance.test.ts": 1835,+ "test/cycle/extract-atoms-reconcile.test.ts": 1414,+ "test/cycle/extract-atoms-synthesize-concepts.test.ts": 3899,+ "test/cycle/extract-atoms-work-interleave.test.ts": 909,+ "test/cycle/nightly-probe-adapters.test.ts": 13,+ "test/cycle/regression-pr-wave-r1-r2-r4.test.ts": 5,+ "test/cycle/synthesize-concepts-human-owned.test.ts": 454,+ "test/cycle/synthesize-concepts-identity.test.ts": 1381,+ "test/cycle/synthesize-concepts-progress.test.ts": 1238,+ "test/cycle/synthesize-concepts-source-scope.test.ts": 823,+ "test/cycle/synthesize-concepts-task-model.test.ts": 1254,+ "test/cycle/synthesize-concepts-token-cap.test.ts": 336,+ "test/cycle/synthesize-gateway-adapter.test.ts": 5,+ "test/cycle/yield-during-phase-refresh.test.ts": 31,+ "test/cycle/yield-during-phase-throttle.test.ts": 2892,+ "test/dart-call-edges.test.ts": 31,+ "test/data-frontmatter.test.ts": 14,+ "test/database-url-guard-preload.test.ts": 777,+ "test/db-disconnect-audit.test.ts": 5,+ "test/db-guard-coverage.test.ts": 521,+ "test/db-lock-auto-takeover.test.ts": 1049,+ "test/db-lock-concurrency.test.ts": 744,+ "test/db-lock-cross-host-wait.test.ts": 2885,+ "test/db-lock-election.test.ts": 255,+ "test/db-lock-fencing.test.ts": 1235,+ "test/db-lock-heartbeat-takeover.test.ts": 364,+ "test/db-lock-inspect.test.ts": 1735,+ "test/db-lock-per-source.test.ts": 1054,+ "test/db-lock-reap.test.ts": 241,+ "test/db-lock-refresh.test.ts": 8,+ "test/db-pacer.test.ts": 2,+ "test/db-pool-max-lifetime.test.ts": 36,+ "test/db-probe-configuration.test.ts": 135,+ "test/db-probe.test.ts": 113,+ "test/dedup.test.ts": 11,+ "test/deep-research-cli.test.ts": 3339,+ "test/deep-research-fetch.test.ts": 1079,+ "test/deep-research-source-id.test.ts": 3748,+ "test/default-alias-liveness.test.ts": 13,+ "test/default-model-panels.test.ts": 12,+ "test/default-source-path-check.test.ts": 697,+ "test/degraded-engine.test.ts": 65,+ "test/degraded-stages-recall.test.ts": 3,+ "test/delta-cursor-microseconds.test.ts": 963,+ "test/denied-after-list.test.ts": 211,+ "test/derived-link-reconciliation.test.ts": 941,+ "test/destructive-guard.test.ts": 3251,+ "test/detached-stderr.test.ts": 16,+ "test/disk-walk.test.ts": 59,+ "test/dispatch-localonly.test.ts": 342,+ "test/doc-claims.test.ts": 54,+ "test/docker-postgres.test.ts": 2,+ "test/docs-cli-commands.test.ts": 68,+ "test/docs-mcp-deploy.test.ts": 5,+ "test/docs-navigation.test.ts": 3264,+ "test/doctor-abandoned-threads-month-precision.test.ts": 558,+ "test/doctor-asset-paths.test.ts": 8,+ "test/doctor-atom-provenance-drift.test.ts": 1997,+ "test/doctor-batch-retry.test.ts": 5,+ "test/doctor-behavioral.test.ts": 4530,+ "test/doctor-brain-checks-score.test.ts": 5,+ "test/doctor-brainstorm-health.test.ts": 1400,+ "test/doctor-calibration-checks.test.ts": 34,+ "test/doctor-categories.test.ts": 6,+ "test/doctor-cause-rank.test.ts": 5,+ "test/doctor-chat-fallback-chain.test.ts": 20,+ "test/doctor-child-orphans.test.ts": 13,+ "test/doctor-conversation-facts-backlog.test.ts": 509,+ "test/doctor-conversation-format-coverage.test.ts": 1305,+ "test/doctor-cycle-freshness.test.ts": 1189,+ "test/doctor-cycle-phase-scope.test.ts": 6,+ "test/doctor-drift-advice.test.ts": 3,+ "test/doctor-effective-date-health.test.ts": 3521,+ "test/doctor-embedding-env-override.test.ts": 2599,+ "test/doctor-embedding-width.test.ts": 386,+ "test/doctor-extract-atoms-backlog.test.ts": 1060,+ "test/doctor-extract-health.test.ts": 491,+ "test/doctor-fast-supervisor.test.ts": 270,+ "test/doctor-federation-health.test.ts": 1876,+ "test/doctor-fix.test.ts": 2503,+ "test/doctor-frontmatter-partial.test.ts": 9,+ "test/doctor-fts-reindex-incomplete.test.ts": 9,+ "test/doctor-graph-coverage-inbound.test.ts": 1700,+ "test/doctor-graph-coverage-soft-deleted.test.ts": 2100,+ "test/doctor-hidden-by-search-policy.test.ts": 735,+ "test/doctor-home-dir-in-worktree.test.ts": 530,+ "test/doctor-image-assets-remote.test.ts": 1953,+ "test/doctor-image-assets-wsl.test.ts": 1972,+ "test/doctor-image-assets.test.ts": 6,+ "test/doctor-links-extraction-lag.test.ts": 1492,+ "test/doctor-memorable.test.ts": 13,+ "test/doctor-memory-verbs-check.test.ts": 6,+ "test/doctor-minions-check.test.ts": 1609,+ "test/doctor-oauth-client-scope-health.test.ts": 641,+ "test/doctor-orphan-ratio.test.ts": 10172,"test/doctor-parser-probe-check.test.ts": 5,- "test/doctor-pglite-datadir.test.ts": 15,- "test/doctor-pglite-scratch-probe.test.ts": 6993,- "test/doctor-pool-reap-health.test.ts": 11,- "test/doctor-queue-divergence.test.ts": 4886,- "test/doctor-raw-provenance.test.ts": 451,- "test/doctor-remediation-plan-render.test.ts": 8,- "test/doctor-reranker-health.test.ts": 22,- "test/doctor-retrieval-reflex.test.ts": 0,- "test/doctor-schema-column-diff.test.ts": 477,- "test/doctor-schema-pack-checks.test.ts": 1390,- "test/doctor-schema-pack-db-config.test.ts": 24,- "test/doctor-schema-version-forward-skew.test.ts": 1620,- "test/doctor-scope-filter.test.ts": 163,- "test/doctor-search-mode.test.ts": 328,- "test/doctor-self-upgrade.test.ts": 80,- "test/doctor-silent-death-checks.test.ts": 3231,- "test/doctor-skill-checks.test.ts": 500,- "test/doctor-skills-dir.test.ts": 227,+ "test/doctor-pglite-datadir.test.ts": 3,+ "test/doctor-pglite-scratch-probe.test.ts": 2947,+ "test/doctor-pool-reap-health.test.ts": 4,+ "test/doctor-postgres-cancellation-driver.test.ts": 20,+ "test/doctor-queue-divergence.test.ts": 1866,+ "test/doctor-raw-provenance.test.ts": 398,+ "test/doctor-remediation-plan-render.test.ts": 2,+ "test/doctor-reranker-health.test.ts": 10,+ "test/doctor-retrieval-reflex.test.ts": 34,+ "test/doctor-schema-column-diff.test.ts": 337,+ "test/doctor-schema-pack-checks.test.ts": 2261,+ "test/doctor-schema-pack-db-config.test.ts": 28,+ "test/doctor-schema-version-forward-skew.test.ts": 2334,+ "test/doctor-scope-filter.test.ts": 45,+ "test/doctor-search-mode.test.ts": 1138,+ "test/doctor-self-upgrade.test.ts": 104,+ "test/doctor-silent-death-checks.test.ts": 3514,+ "test/doctor-skill-checks.test.ts": 564,+ "test/doctor-skills-dir.test.ts": 111,+ "test/doctor-slug-collisions.test.ts": 517,"test/doctor-source-config-shape.test.ts": 2,- "test/doctor-stale-lock-hints.test.ts": 635,- "test/doctor-stale-mentions.test.ts": 1286,- "test/doctor-subagent-capability.test.ts": 17,- "test/doctor-subagent-health.test.ts": 493,- "test/doctor-supervisor-singleton-pidfile.test.ts": 1396,- "test/doctor-sync-consolidation.test.ts": 768,- "test/doctor-timeline-metric-labels-2298.test.ts": 2615,- "test/doctor-upgrade-errors-stale.test.ts": 9,- "test/doctor-upgrade-errors.test.ts": 21,- "test/doctor-v0_37_7_checks.test.ts": 313,- "test/doctor-v0_41_13_checks.test.ts": 3656,- "test/doctor-volunteer-channels.test.ts": 14,- "test/doctor-wedged-queue.test.ts": 3196,- "test/doctor-worker-oom-loop.test.ts": 69,- "test/doctor.test.ts": 3531,- "test/domain-aggregators.test.ts": 2725,- "test/dream-clean-status-skip-visibility.test.ts": 14,- "test/dream-dir-source-stamp.test.ts": 1199,- "test/dream-env-source-scope.test.ts": 1294,- "test/dream-keyless-exit.test.ts": 10376,- "test/dream-retriage.test.ts": 9441,- "test/dream-verdict-cache-ttl.test.ts": 476,- "test/dream.test.ts": 7603,- "test/drift-watch.test.ts": 421,- "test/dry-fix.test.ts": 207,- "test/durability-cron.test.ts": 17,- "test/edge-extractor.test.ts": 114,- "test/effective-date.test.ts": 2,- "test/embed-backfill-submit.test.ts": 368,- "test/embed-keyless-guard.test.ts": 9,- "test/embed-modality-preserved.test.ts": 496,- "test/embed-multimodal-batching.test.ts": 23,- "test/embed-oversize-heal.test.ts": 28,- "test/embed-preflight.test.ts": 6,- "test/embed-reuse.test.ts": 3,+ "test/doctor-stale-lock-hints.test.ts": 1240,+ "test/doctor-stale-mentions.test.ts": 1158,+ "test/doctor-subagent-capability.test.ts": 6,+ "test/doctor-subagent-health.test.ts": 275,+ "test/doctor-supervisor-singleton-pidfile.test.ts": 1707,+ "test/doctor-sync-consolidation.test.ts": 539,+ "test/doctor-timeline-metric-labels-2298.test.ts": 3376,+ "test/doctor-upgrade-errors-stale.test.ts": 18,+ "test/doctor-upgrade-errors.test.ts": 12,+ "test/doctor-v0_37_7_checks.test.ts": 375,+ "test/doctor-v0_41_13_checks.test.ts": 4083,+ "test/doctor-volunteer-channels.test.ts": 9,+ "test/doctor-wedged-queue.test.ts": 447,+ "test/doctor-worker-oom-loop.test.ts": 26,+ "test/doctor.test.ts": 2865,+ "test/domain-aggregators.test.ts": 1450,+ "test/dream-clean-status-skip-visibility.test.ts": 15,+ "test/dream-dir-source-stamp.test.ts": 1343,+ "test/dream-env-source-scope.test.ts": 1101,+ "test/dream-keyless-exit.test.ts": 10899,+ "test/dream-retriage.test.ts": 5013,+ "test/dream-verdict-cache-ttl.test.ts": 527,+ "test/dream.test.ts": 3080,+ "test/drift-watch.test.ts": 415,+ "test/dry-fix.test.ts": 201,+ "test/durability-cron.test.ts": 48,+ "test/edge-extractor.test.ts": 199,+ "test/effective-date-brain-timezone.test.ts": 355,+ "test/effective-date-calendar.test.ts": 1078,+ "test/effective-date-git-first-commit.test.ts": 1113,+ "test/effective-date.test.ts": 8,+ "test/embed-backfill-submit.test.ts": 311,+ "test/embed-default-concurrency.test.ts": 647,+ "test/embed-keyless-guard.test.ts": 3,+ "test/embed-modality-preserved.test.ts": 1124,+ "test/embed-multimodal-batching.test.ts": 12,+ "test/embed-oversize-heal.test.ts": 312,+ "test/embed-pool-abort.test.ts": 19,+ "test/embed-preflight.test.ts": 9,+ "test/embed-reuse.test.ts": 5,"test/embed-skip.test.ts": 3,- "test/embed-stall.test.ts": 401,- "test/embedding-context.test.ts": 4,- "test/embedding-dim-check-facts.test.ts": 11,- "test/embedding-dim-check.test.ts": 1743,- "test/embedding-input-limit.test.ts": 51,- "test/embedding-migration.test.ts": 6502,- "test/embedding-model-dims.test.ts": 4,- "test/embedding-pricing.test.ts": 31,- "test/embedding-signature-stale.test.ts": 1469,+ "test/embed-stale-images.test.ts": 708,+ "test/embed-stall.test.ts": 418,+ "test/embedding-context.test.ts": 6,+ "test/embedding-dim-check-facts.test.ts": 19,+ "test/embedding-dim-check.test.ts": 2030,+ "test/embedding-input-limit.test.ts": 23,+ "test/embedding-migration.test.ts": 2742,+ "test/embedding-model-dims.test.ts": 19,+ "test/embedding-pricing.test.ts": 4,+ "test/embedding-readiness.test.ts": 3,+ "test/embedding-signature-stale.test.ts": 1398,"test/emotional-weight.test.ts": 4,- "test/engine-factory.test.ts": 3,- "test/engine-find-trajectory.test.ts": 485,- "test/engine-keyset-microseconds.test.ts": 520,- "test/engine-parity-event-type.test.ts": 332,- "test/engine-resolve-slug-with-alias.test.ts": 2041,- "test/engine-status.test.ts": 5188,- "test/engine-surface-coverage.test.ts": 1063,- "test/engine-upsertFile.test.ts": 805,- "test/engine-weight-rounding-integration.test.ts": 2752,- "test/enrich-cycle-phase.test.ts": 1368,- "test/enrich/budget-message.test.ts": 5,- "test/enrich/evidence-order.test.ts": 1038,- "test/enrich/idempotency.test.ts": 2,+ "test/engine-control-routing.test.ts": 15,+ "test/engine-factory.test.ts": 13,+ "test/engine-find-trajectory.test.ts": 808,+ "test/engine-keyset-microseconds.test.ts": 757,+ "test/engine-parity-event-type.test.ts": 366,+ "test/engine-resolve-slug-with-alias.test.ts": 1247,+ "test/engine-status.test.ts": 4974,+ "test/engine-surface-coverage.test.ts": 693,+ "test/engine-upsertFile.test.ts": 476,+ "test/engine-weight-rounding-integration.test.ts": 236,+ "test/enrich-cycle-phase.test.ts": 1138,+ "test/enrich/budget-message.test.ts": 2,+ "test/enrich/evidence-order.test.ts": 872,+ "test/enrich/idempotency.test.ts": 5,"test/enrich/thin.test.ts": 5,- "test/enrichable-pack.test.ts": 11,- "test/enrichment-service.test.ts": 5,- "test/entity-card-loops.test.ts": 2172,+ "test/enrichable-pack.test.ts": 7,+ "test/enrichment-service.test.ts": 10,+ "test/entity-card-loops.test.ts": 815,"test/entity-card-perf.slow.test.ts": 44668,- "test/entity-hints-cap.test.ts": 383,- "test/entity-identity.test.ts": 473,- "test/entity-resolve-prefix-dirs.test.ts": 323,- "test/entity-resolve-slug-fallback.test.ts": 405,- "test/entity-resolve.test.ts": 389,- "test/env-number.test.ts": 4,- "test/envelope-to-gbrain.test.ts": 3227,- "test/error-classify.test.ts": 13,- "test/errors.test.ts": 19,- "test/eval-canary.test.ts": 7371,- "test/eval-candidates.test.ts": 2634,- "test/eval-capture-drain.test.ts": 155,- "test/eval-capture-scrub.test.ts": 6,- "test/eval-capture.test.ts": 6,- "test/eval-chronicle.test.ts": 352,- "test/eval-compare.test.ts": 14,- "test/eval-contradictions-auto-supersession.test.ts": 2,- "test/eval-contradictions-cache.test.ts": 2244,- "test/eval-contradictions-calibration.test.ts": 6,- "test/eval-contradictions-cost-prompt.test.ts": 4298,- "test/eval-contradictions-cost.test.ts": 21,- "test/eval-contradictions-cross-source.test.ts": 30,- "test/eval-contradictions-date-filter.test.ts": 8,- "test/eval-contradictions-engine.test.ts": 2963,- "test/eval-contradictions-fixture-redact.test.ts": 6,- "test/eval-contradictions-integrations.test.ts": 1356,- "test/eval-contradictions-judge-errors.test.ts": 0,- "test/eval-contradictions-judge.test.ts": 11,- "test/eval-contradictions-run-health.test.ts": 8,- "test/eval-contradictions-runner.test.ts": 2956,- "test/eval-contradictions-severity.test.ts": 3,- "test/eval-contradictions-trends.test.ts": 1535,- "test/eval-contradictions/cost-tracker-slash.test.ts": 3,- "test/eval-contradictions/no-valid-until-write.test.ts": 84,- "test/eval-conversation-parser-cli.test.ts": 11,- "test/eval-cross-modal-batch.test.ts": 125,- "test/eval-export.test.ts": 456,- "test/eval-gate.test.ts": 2404,- "test/eval-longmemeval-cli-smoke.test.ts": 5284,- "test/eval-longmemeval-gateway-routing.test.ts": 10006,- "test/eval-longmemeval-judge.slow.test.ts": 4241,- "test/eval-longmemeval-mixedcase.slow.test.ts": 9630,- "test/eval-longmemeval-parse-args.test.ts": 26,- "test/eval-longmemeval-search-config.test.ts": 1287,- "test/eval-longmemeval.slow.test.ts": 3765,- "test/eval-prune.test.ts": 400,- "test/eval-replay-gate.test.ts": 1899,- "test/eval-replay-metadata-skip.test.ts": 435,- "test/eval-replay.test.ts": 23,- "test/eval-retrieval-quality.test.ts": 658,- "test/eval-run-all.test.ts": 14,- "test/eval-shared-json-repair-shim.test.ts": 3,- "test/eval-spend-guard.test.ts": 4338,- "test/eval-suspected-contradictions-budget-default.test.ts": 22,- "test/eval-synthesize-concepts-routing.test.ts": 860,- "test/eval-takes-bootstrap.test.ts": 184,- "test/eval-takes-quality-aggregate.test.ts": 5,- "test/eval-takes-quality-boundaries.test.ts": 431,- "test/eval-takes-quality-cli.test.ts": 21,- "test/eval-takes-quality-pricing.test.ts": 1,- "test/eval-takes-quality-receipt-name.test.ts": 17,- "test/eval-takes-quality-receipt-write.test.ts": 411,- "test/eval-takes-quality-regress.test.ts": 27,- "test/eval-takes-quality-replay.test.ts": 414,- "test/eval-takes-quality-rubric.test.ts": 6,- "test/eval-takes-quality-trend.test.ts": 2789,- "test/eval-trajectory.test.ts": 453,- "test/eval-v041_2-scaffolds.test.ts": 9,+ "test/entity-hints-cap.test.ts": 460,+ "test/entity-identity.test.ts": 875,+ "test/entity-resolution-near-names.test.ts": 468,+ "test/entity-resolve-prefix-dirs.test.ts": 1068,+ "test/entity-resolve-slug-fallback.test.ts": 441,+ "test/entity-resolve.test.ts": 367,+ "test/env-number.test.ts": 11,+ "test/env-trust-protected-keys.test.ts": 215,+ "test/env-trust.test.ts": 25,+ "test/envelope-to-gbrain.test.ts": 3937,+ "test/error-classify.test.ts": 9,+ "test/errors.test.ts": 18,+ "test/eval-answer-packet.test.ts": 64,+ "test/eval-canary.test.ts": 8178,+ "test/eval-candidates.test.ts": 304,+ "test/eval-capture-drain.test.ts": 215,+ "test/eval-capture-scrub.test.ts": 3,+ "test/eval-capture.test.ts": 18,+ "test/eval-chronicle.test.ts": 253,+ "test/eval-compare.test.ts": 242,+ "test/eval-contradictions-auto-supersession.test.ts": 10,+ "test/eval-contradictions-cache.test.ts": 1612,+ "test/eval-contradictions-calibration.test.ts": 12,+ "test/eval-contradictions-cost-prompt.test.ts": 1309,+ "test/eval-contradictions-cost.test.ts": 12,+ "test/eval-contradictions-cross-source.test.ts": 8,+ "test/eval-contradictions-date-filter.test.ts": 3,+ "test/eval-contradictions-engine.test.ts": 1779,+ "test/eval-contradictions-fixture-redact.test.ts": 18,+ "test/eval-contradictions-integrations.test.ts": 774,+ "test/eval-contradictions-judge-errors.test.ts": 10,+ "test/eval-contradictions-judge.test.ts": 8,+ "test/eval-contradictions-run-health.test.ts": 7,+ "test/eval-contradictions-runner.test.ts": 2104,+ "test/eval-contradictions-severity.test.ts": 48,+ "test/eval-contradictions-trends.test.ts": 1358,+ "test/eval-contradictions/cost-tracker-slash.test.ts": 10,+ "test/eval-contradictions/no-valid-until-write.test.ts": 23,+ "test/eval-conversation-parser-cli.test.ts": 12,+ "test/eval-cross-modal-batch.test.ts": 132,+ "test/eval-export.test.ts": 283,+ "test/eval-gate.test.ts": 1565,+ "test/eval-longmemeval-brain-recycle.test.ts": 2986,+ "test/eval-longmemeval-cli-smoke.test.ts": 2595,+ "test/eval-longmemeval-gateway-routing.test.ts": 7680,+ "test/eval-longmemeval-judge.slow.test.ts": 3490,+ "test/eval-longmemeval-mixedcase.slow.test.ts": 10824,+ "test/eval-longmemeval-parse-args.test.ts": 6,+ "test/eval-longmemeval-reader-mode.slow.test.ts": 5848,+ "test/eval-longmemeval-search-config.test.ts": 1365,+ "test/eval-longmemeval.slow.test.ts": 3093,+ "test/eval-paired-bootstrap.test.ts": 24,+ "test/eval-prune.test.ts": 274,+ "test/eval-replay-gate.test.ts": 2796,+ "test/eval-replay-metadata-skip.test.ts": 530,+ "test/eval-replay.test.ts": 13,+ "test/eval-retrieval-quality.test.ts": 953,+ "test/eval-run-all.test.ts": 10,+ "test/eval-shared-json-repair-shim.test.ts": 7,+ "test/eval-spend-guard.test.ts": 4035,+ "test/eval-suspected-contradictions-budget-default.test.ts": 9,+ "test/eval-synthesize-concepts-routing.test.ts": 449,+ "test/eval-takes-bootstrap.test.ts": 277,+ "test/eval-takes-quality-aggregate.test.ts": 24,+ "test/eval-takes-quality-boundaries.test.ts": 1064,+ "test/eval-takes-quality-cli.test.ts": 12,+ "test/eval-takes-quality-pricing.test.ts": 2,+ "test/eval-takes-quality-receipt-name.test.ts": 11,+ "test/eval-takes-quality-receipt-write.test.ts": 303,+ "test/eval-takes-quality-regress.test.ts": 10,+ "test/eval-takes-quality-replay.test.ts": 301,+ "test/eval-takes-quality-rubric.test.ts": 2,+ "test/eval-takes-quality-trend.test.ts": 203,+ "test/eval-trajectory.test.ts": 240,+ "test/eval-v041_2-scaffolds.test.ts": 2,"test/eval-whoknows.test.ts": 20,- "test/eval.test.ts": 9,- "test/eval/cycle-default.test.ts": 2,- "test/execution-env.test.ts": 8,- "test/exit-classification.test.ts": 14,- "test/expert-types-pack.test.ts": 41,- "test/explicit-skills-dir-readonly.test.ts": 983,- "test/export-import-slug-roundtrip.test.ts": 861,- "test/extract-abort.test.ts": 408,- "test/extract-atoms-array-anchor-scan.test.ts": 24,- "test/extract-atoms-chunk-embed.test.ts": 306,- "test/extract-atoms-drain-errors.test.ts": 31,- "test/extract-atoms-drain-handler.test.ts": 395,- "test/extract-atoms-drain.test.ts": 6,- "test/extract-atoms-embed-cost-gate.test.ts": 2228,- "test/extract-atoms-empty-array-rule.test.ts": 657,- "test/extract-atoms-extractable-types.test.ts": 8,- "test/extract-atoms-failure-classes.test.ts": 2809,- "test/extract-atoms-page-discovery.test.ts": 4524,- "test/extract-atoms-provenance-links.test.ts": 1005,- "test/extract-atoms-transcript-failure-classes.test.ts": 2227,- "test/extract-atoms-transcript-state-errors.test.ts": 348,- "test/extract-atoms-unpriced-model.test.ts": 96,- "test/extract-by-mention-rebuild.test.ts": 2937,- "test/extract-by-mention-resume.test.ts": 611,- "test/extract-by-mention.test.ts": 493,- "test/extract-conversation-facts-entity-resolution.test.ts": 1802,- "test/extract-conversation-facts.test.ts": 2896,- "test/extract-cross-source-links.test.ts": 5,- "test/extract-cross-source-resolution-observability.test.ts": 25,- "test/extract-db.test.ts": 699,- "test/extract-explain.test.ts": 47,- "test/extract-facts-guard-rollup.test.ts": 7,- "test/extract-facts-phase.test.ts": 6846,- "test/extract-from-fence.test.ts": 3,- "test/extract-fs-source-id.test.ts": 1097,- "test/extract-fs.test.ts": 646,- "test/extract-incremental.test.ts": 3258,- "test/extract-rollup-expected-limit.test.ts": 2745,- "test/extract-source-aware.test.ts": 538,- "test/extract-stale.test.ts": 807,- "test/extract-stamp-source-3957.test.ts": 2792,- "test/extract-takes-from-pages-progression.test.ts": 498,- "test/extract-takes-holder-producer-seam.test.ts": 402,- "test/extract-takes-md-first.test.ts": 477,- "test/extract-takes-model-resolution.test.ts": 414,- "test/extract-takes.test.ts": 481,- "test/extract-timeline-from-meetings.test.ts": 2240,- "test/extract-workers.test.ts": 4,+ "test/eval.test.ts": 23,+ "test/eval/cycle-default.test.ts": 3,+ "test/execution-env.test.ts": 3,+ "test/exit-classification.test.ts": 8,+ "test/expert-types-pack.test.ts": 14,+ "test/explicit-skills-dir-readonly.test.ts": 720,+ "test/export-help.test.ts": 908,+ "test/export-import-slug-roundtrip.test.ts": 852,+ "test/export-publication.test.ts": 234,+ "test/export-raw-include-deleted.test.ts": 423,+ "test/export-safety.test.ts": 880,+ "test/export-scale.slow.test.ts": 570537,+ "test/export-snapshot.test.ts": 2769,+ "test/export-stage.test.ts": 25,+ "test/extract-abort.test.ts": 1062,+ "test/extract-atoms-array-anchor-scan.test.ts": 3,+ "test/extract-atoms-chunk-embed.test.ts": 267,+ "test/extract-atoms-drain-errors.test.ts": 14,+ "test/extract-atoms-drain-handler.test.ts": 435,+ "test/extract-atoms-drain.test.ts": 10,+ "test/extract-atoms-embed-cost-gate.test.ts": 2689,+ "test/extract-atoms-empty-array-rule.test.ts": 474,+ "test/extract-atoms-extractable-types.test.ts": 10,+ "test/extract-atoms-failure-classes.test.ts": 1804,+ "test/extract-atoms-page-discovery.test.ts": 2350,+ "test/extract-atoms-page-state.test.ts": 2184,+ "test/extract-atoms-provenance-links.test.ts": 851,+ "test/extract-atoms-transcript-failure-classes.test.ts": 1592,+ "test/extract-atoms-transcript-state-errors.test.ts": 269,+ "test/extract-atoms-unpriced-model.test.ts": 9,+ "test/extract-by-mention-rebuild.test.ts": 510,+ "test/extract-by-mention-resume.test.ts": 323,+ "test/extract-by-mention.test.ts": 485,+ "test/extract-conversation-facts-entity-resolution.test.ts": 769,+ "test/extract-conversation-facts.test.ts": 3681,+ "test/extract-cross-source-links.test.ts": 4,+ "test/extract-cross-source-resolution-observability.test.ts": 6,+ "test/extract-db.test.ts": 741,+ "test/extract-explain.test.ts": 15,+ "test/extract-facts-guard-rollup.test.ts": 2,+ "test/extract-facts-phase.test.ts": 6480,+ "test/extract-facts-poison-page.test.ts": 534,+ "test/extract-facts-stable-identity.test.ts": 357,+ "test/extract-from-fence.test.ts": 8,+ "test/extract-fs-source-id.test.ts": 792,+ "test/extract-fs.test.ts": 982,+ "test/extract-incremental.test.ts": 1421,+ "test/extract-rollup-expected-limit.test.ts": 238,+ "test/extract-source-aware.test.ts": 310,+ "test/extract-stale.test.ts": 1006,+ "test/extract-stamp-source-3957.test.ts": 941,+ "test/extract-takes-bootstrap-safety.test.ts": 763,+ "test/extract-takes-from-pages-progression.test.ts": 350,+ "test/extract-takes-holder-producer-seam.test.ts": 289,+ "test/extract-takes-md-first.test.ts": 269,+ "test/extract-takes-model-resolution.test.ts": 1101,+ "test/extract-takes-scoping.test.ts": 359,+ "test/extract-takes.test.ts": 247,+ "test/extract-timeline-attendance.test.ts": 827,+ "test/extract-timeline-from-meetings.test.ts": 1432,+ "test/extract-workers.test.ts": 1190,"test/extract.test.ts": 22,- "test/extract/benchmark.test.ts": 2,- "test/extract/receipt-writer.test.ts": 1150,- "test/extract/status.test.ts": 26,- "test/extractable-pack.test.ts": 11,- "test/extractable-spec-widening.test.ts": 10,- "test/extraction-review.test.ts": 6744,- "test/fact-backfill-resident.test.ts": 7820,- "test/facts-absorb-log.test.ts": 301,- "test/facts-anti-loop.test.ts": 490,- "test/facts-backstop-gating.test.ts": 459,- "test/facts-backstop-integration.test.ts": 606,- "test/facts-backstop-remedy-verb.test.ts": 6,- "test/facts-backstop.test.ts": 666,- "test/facts-canonicality.test.ts": 345,- "test/facts-classify.test.ts": 12,+ "test/extract/benchmark.test.ts": 10,+ "test/extract/receipt-writer.test.ts": 1279,+ "test/extract/status.test.ts": 15,+ "test/extractable-pack.test.ts": 22,+ "test/extractable-spec-widening.test.ts": 16,+ "test/extraction-review.test.ts": 5143,+ "test/fact-backfill-resident.test.ts": 3635,+ "test/fact-withdrawal-normalized.test.ts": 299,+ "test/fact-withdrawal-prepare-wiring.test.ts": 14,+ "test/facts-absorb-log.test.ts": 212,+ "test/facts-anti-loop.test.ts": 380,+ "test/facts-backstop-gating.test.ts": 839,+ "test/facts-backstop-integration.test.ts": 445,+ "test/facts-backstop-remedy-verb.test.ts": 7,+ "test/facts-backstop-unverified-resolution.test.ts": 398,+ "test/facts-backstop.test.ts": 641,+ "test/facts-canonicality.test.ts": 534,+ "test/facts-classify.test.ts": 25,"test/facts-decay.test.ts": 1,- "test/facts-doctor-shape.test.ts": 448,- "test/facts-eligibility.test.ts": 4,- "test/facts-engine.test.ts": 479,- "test/facts-extract-idea-kind.test.ts": 7,- "test/facts-extract-junk-filter.test.ts": 58,- "test/facts-extract-salvage.test.ts": 166,- "test/facts-extract-silent-no-op.test.ts": 3,- "test/facts-extract-smoke.test.ts": 9,- "test/facts-extract-structured-output.test.ts": 19,- "test/facts-extract-truncation.test.ts": 12,- "test/facts-extract.test.ts": 4,- "test/facts-fallback-stub-guard.test.ts": 2845,- "test/facts-fence-typed.test.ts": 17,- "test/facts-fence.test.ts": 5,- "test/facts-meta-cache.test.ts": 2970,- "test/facts-migration-dim.test.ts": 2635,- "test/facts-multi-tenant.test.ts": 422,- "test/facts-pipeline-budget-accounting.test.ts": 469,- "test/facts-queue-drain-pending.test.ts": 1609,- "test/facts-queue.test.ts": 612,- "test/facts-recall-audit-rows.test.ts": 2095,- "test/facts-recall-event-time-op.test.ts": 383,- "test/facts-recall-grep-sql.test.ts": 420,- "test/facts-recall-render.test.ts": 468,- "test/facts-recall-since-composition.test.ts": 337,- "test/facts-reconcile-protect-cli.test.ts": 386,- "test/facts-separation-pglite.test.ts": 466,- "test/facts-thin-client-provenance.test.ts": 470,- "test/facts-unknown-speaker-gate.test.ts": 8,- "test/facts-visibility.test.ts": 522,- "test/facts/ttl-validity.test.ts": 362,- "test/facts/writeback-gate.test.ts": 8,- "test/feature-flags.test.ts": 1156,- "test/features-no-sync.test.ts": 3,- "test/features-recipe-secrets.test.ts": 12,- "test/features.test.ts": 14,- "test/fence-extraction.test.ts": 1749,- "test/fence-write.test.ts": 3987,- "test/file-migration.test.ts": 26,- "test/file-resolver.test.ts": 27,- "test/file-upload-engine-context.test.ts": 449,- "test/file-upload-fail-closed.test.ts": 2775,- "test/file-upload-remote-default.test.ts": 388,- "test/file-upload-security.test.ts": 9,- "test/files.test.ts": 970,- "test/filing-audit.test.ts": 12,- "test/find-experts-op.test.ts": 454,- "test/fix-wave-structural.test.ts": 19,- "test/fixtures/preload-guard/guard-probe.test.ts": 29,- "test/fixtures/preload-guard/operator-env-probe.test.ts": 5,- "test/flush-then-exit-harness.test.ts": 2169,- "test/forget-reconcile-durability.test.ts": 5588,- "test/founder-scorecard.test.ts": 12,- "test/friction-cli.test.ts": 20,- "test/friction.test.ts": 26,- "test/frontmatter-cli.test.ts": 1347,- "test/frontmatter-inference.test.ts": 26,- "test/frontmatter-install-hook.test.ts": 516,+ "test/facts-doctor-shape.test.ts": 1069,+ "test/facts-eligibility.test.ts": 14,+ "test/facts-engine.test.ts": 263,+ "test/facts-extract-confidence.test.ts": 12,+ "test/facts-extract-idea-kind.test.ts": 4,+ "test/facts-extract-junk-filter.test.ts": 20,+ "test/facts-extract-salvage.test.ts": 185,+ "test/facts-extract-silent-no-op.test.ts": 13,+ "test/facts-extract-smoke.test.ts": 8,+ "test/facts-extract-structured-output.test.ts": 6,+ "test/facts-extract-truncation.test.ts": 9,+ "test/facts-extract.test.ts": 8,+ "test/facts-fallback-stub-guard.test.ts": 312,+ "test/facts-fence-dates.test.ts": 735,+ "test/facts-fence-strict-numbers.test.ts": 2,+ "test/facts-fence-typed.test.ts": 5,+ "test/facts-fence.test.ts": 12,+ "test/facts-meta-cache.test.ts": 694,+ "test/facts-migration-dim.test.ts": 1588,+ "test/facts-multi-tenant.test.ts": 529,+ "test/facts-pipeline-budget-accounting.test.ts": 861,+ "test/facts-queue-drain-pending.test.ts": 1619,+ "test/facts-queue.test.ts": 625,+ "test/facts-recall-audit-rows.test.ts": 1265,+ "test/facts-recall-event-time-op.test.ts": 219,+ "test/facts-recall-grep-sql.test.ts": 471,+ "test/facts-recall-render.test.ts": 320,+ "test/facts-recall-since-composition.test.ts": 266,+ "test/facts-reconcile-protect-cli.test.ts": 272,+ "test/facts-separation-pglite.test.ts": 447,+ "test/facts-supersede-not-withdrawal.test.ts": 1167,+ "test/facts-thin-client-provenance.test.ts": 1122,+ "test/facts-unknown-speaker-gate.test.ts": 15,+ "test/facts-visibility.test.ts": 561,+ "test/facts-withdrawal-subject.test.ts": 869,+ "test/facts-worker-config.test.ts": 505,+ "test/facts-write-path-failures.test.ts": 356,+ "test/facts/ttl-validity.test.ts": 407,+ "test/facts/writeback-gate.test.ts": 11,+ "test/feature-flags.test.ts": 670,+ "test/features-no-sync.test.ts": 15,+ "test/features-recipe-secrets.test.ts": 11,+ "test/features.test.ts": 820,+ "test/fence-extraction.test.ts": 1820,+ "test/fence-write.test.ts": 2617,+ "test/file-migration.test.ts": 5,+ "test/file-resolver.test.ts": 20,+ "test/file-upload-engine-context.test.ts": 306,+ "test/file-upload-fail-closed.test.ts": 302,+ "test/file-upload-remote-default.test.ts": 208,+ "test/file-upload-security.test.ts": 15,+ "test/files.test.ts": 710,+ "test/filing-audit.test.ts": 5,+ "test/find-experts-op.test.ts": 435,+ "test/fix-wave-structural.test.ts": 8,+ "test/fixtures/preload-guard/guard-probe.test.ts": 2,+ "test/fixtures/preload-guard/operator-env-probe.test.ts": 556,+ "test/flush-then-exit-harness.test.ts": 2231,+ "test/forget-reconcile-durability.test.ts": 6396,+ "test/founder-scorecard.test.ts": 26,+ "test/friction-cli.test.ts": 6,+ "test/friction.test.ts": 39,+ "test/frontmatter-cli.test.ts": 1214,+ "test/frontmatter-inference.test.ts": 11,+ "test/frontmatter-install-hook.test.ts": 428,"test/frontmatter-non-string-fields.test.ts": 7,- "test/frontmatter-security.test.ts": 7,- "test/frontmatter-validate-slug-565.test.ts": 1975,- "test/fuzz/filesystem-validators.test.ts": 93,- "test/fuzz/mixed-validators.test.ts": 37,- "test/fuzz/pure-validators.test.ts": 47,- "test/gateway-embed-model-override.test.ts": 12,- "test/gateway-model-messages.test.ts": 19,- "test/gbrain-home-isolation.test.ts": 4,- "test/gbrain-to-envelope.test.ts": 1299,- "test/generate-flag-registry.test.ts": 7623,- "test/get-agent-job.test.ts": 1708,- "test/get-brain-identity.test.ts": 2812,- "test/get-job-stats-op.test.ts": 450,- "test/get-page-alias-hop-errors.test.ts": 783,- "test/get-page-content-roundtrip-2225.test.ts": 570,- "test/get-page-federated-scope.test.ts": 7244,- "test/get-page-unknown-source-4620.test.ts": 450,- "test/get-status-snapshot-op.test.ts": 8,- "test/get-timeline-op.test.ts": 9,- "test/git-remote.test.ts": 370,- "test/git-visible-files.test.ts": 125,- "test/github-source-demo.test.ts": 10,- "test/github-source-materialize.test.ts": 6276,- "test/github-source-page.test.ts": 2434,- "test/google-access.test.ts": 11,- "test/google-auth.test.ts": 13,- "test/google-clients.test.ts": 1553,- "test/google-loop-detect.test.ts": 16,- "test/google-oauth-doctor.test.ts": 20,- "test/google-redirect.test.ts": 138,- "test/google-render.test.ts": 8,- "test/google-source-config.test.ts": 7,- "test/google-source-materialize.test.ts": 4724,- "test/google-source-reconcile.test.ts": 5037,- "test/grade-takes-ensemble.test.ts": 30,- "test/grade-takes-evidence.test.ts": 510,- "test/grade-takes.test.ts": 27,- "test/graph-query.test.ts": 2970,- "test/gstack-learnings-coupling.test.ts": 30,- "test/guarded-http.test.ts": 64,- "test/guardrails-env-load.test.ts": 32,+ "test/frontmatter-security.test.ts": 5,+ "test/frontmatter-validate-slug-565.test.ts": 1555,+ "test/fuzz/filesystem-validators.test.ts": 38,+ "test/fuzz/mixed-validators.test.ts": 117,+ "test/fuzz/pure-validators.test.ts": 54,+ "test/gateway-embed-model-override.test.ts": 10,+ "test/gateway-model-messages.test.ts": 8,+ "test/gbrain-home-isolation.test.ts": 11,+ "test/gbrain-to-envelope.test.ts": 1106,+ "test/generate-flag-registry.test.ts": 5513,+ "test/get-agent-job.test.ts": 861,+ "test/get-brain-identity.test.ts": 1127,+ "test/get-job-stats-op.test.ts": 244,+ "test/get-page-alias-hop-errors.test.ts": 886,+ "test/get-page-content-roundtrip-2225.test.ts": 1617,+ "test/get-page-federated-scope.test.ts": 11926,+ "test/get-page-unknown-source-4620.test.ts": 593,+ "test/get-status-snapshot-op.test.ts": 11,+ "test/get-tags-remote-privacy.test.ts": 512,+ "test/get-timeline-op.test.ts": 94,+ "test/git-fixture-maintenance.test.ts": 46,+ "test/git-remote.test.ts": 202,+ "test/git-visible-files.test.ts": 71,+ "test/github-source-demo.test.ts": 12,+ "test/github-source-materialize.test.ts": 9508,+ "test/github-source-page.test.ts": 2158,+ "test/google-access.test.ts": 28,+ "test/google-attachment-backfill.test.ts": 27828,+ "test/google-attachment-receipts.test.ts": 47,+ "test/google-attachment-recovery.test.ts": 11561,+ "test/google-attachment-sync.test.ts": 3965,+ "test/google-auth.test.ts": 6,+ "test/google-clients.test.ts": 1096,+ "test/google-loop-detect.test.ts": 7,+ "test/google-oauth-doctor.test.ts": 7,+ "test/google-redirect.test.ts": 164,+ "test/google-render.test.ts": 37,+ "test/google-source-config.test.ts": 4,+ "test/google-source-materialize.test.ts": 2307,+ "test/google-source-reconcile.test.ts": 3325,+ "test/grade-takes-ensemble.test.ts": 26,+ "test/grade-takes-evidence.test.ts": 517,+ "test/grade-takes.test.ts": 26,+ "test/grandfather-managed.test.ts": 8199,+ "test/graph-query.test.ts": 725,+ "test/gstack-learnings-coupling.test.ts": 18,+ "test/guarded-http.test.ts": 63,+ "test/guardrails-env-load.test.ts": 9,"test/guardrails.test.ts": 30,- "test/handlers-embed-backfill.test.ts": 1500,- "test/handlers.test.ts": 720,- "test/harness-capabilities.test.ts": 5,- "test/harness-install-ownership.test.ts": 122,- "test/harness-onboarding.test.ts": 51,- "test/harness-verification-uncertainty.test.ts": 60,- "test/health-islanded-liveness.test.ts": 546,- "test/health-soft-delete.test.ts": 357,- "test/helpers/agent-harness.unit.test.ts": 21,- "test/helpers/cli-spawn.test.ts": 786,- "test/helpers/git-fixture.test.ts": 120,- "test/helpers/reset-pglite-narrow.test.ts": 960,- "test/helpers/schema-diff-indexes.test.ts": 4,- "test/helpers/schema-diff.test.ts": 8,- "test/helpers/wait-for.test.ts": 139,- "test/helpers/with-env.test.ts": 8,- "test/helpers/with-snapshot.test.ts": 17,- "test/http-degraded-health.test.ts": 17,- "test/http-transport.test.ts": 157,- "test/hybrid-arm-rethrow.test.ts": 17,- "test/hybrid-recency-config.test.ts": 9,- "test/import-abort-error.test.ts": 7,- "test/import-checkpoint.test.ts": 3,- "test/import-clear-failures-on-success.test.ts": 492,- "test/import-code-edges-source-id.test.ts": 2950,- "test/import-dedup-frontmatter-id.test.ts": 1964,- "test/import-default-write-guard-once.test.ts": 1938,- "test/import-default-write-warn-destination.test.ts": 586,- "test/import-error-summary.test.ts": 24,- "test/import-file-content-sanity.test.ts": 4877,+ "test/handlers-embed-backfill.test.ts": 1406,+ "test/handlers.test.ts": 918,+ "test/harness-capabilities.test.ts": 26,+ "test/harness-credential-auth.test.ts": 2,+ "test/harness-install-ownership.test.ts": 65,+ "test/harness-onboarding.test.ts": 84,+ "test/harness-recovery-errors.test.ts": 1157,+ "test/harness-verification-uncertainty.test.ts": 49,+ "test/health-islanded-liveness.test.ts": 276,+ "test/health-soft-delete.test.ts": 1132,+ "test/helpers/agent-harness.unit.test.ts": 56,+ "test/helpers/cli-spawn.test.ts": 770,+ "test/helpers/git-fixture.test.ts": 266,+ "test/helpers/reset-pglite-narrow.test.ts": 1426,+ "test/helpers/reset-pglite.test.ts": 15131,+ "test/helpers/schema-diff-indexes.test.ts": 14,+ "test/helpers/schema-diff.test.ts": 5,+ "test/helpers/wait-for.test.ts": 132,+ "test/helpers/with-env.test.ts": 11,+ "test/helpers/with-snapshot.test.ts": 15,+ "test/hook-push-spawn-env.test.ts": 4,+ "test/http-degraded-health.test.ts": 9,+ "test/http-transport.test.ts": 139,+ "test/hybrid-arm-rethrow.test.ts": 12,+ "test/hybrid-recency-config.test.ts": 3,+ "test/hybrid-vector-incomplete.test.ts": 211,+ "test/import-abort-error.test.ts": 22,+ "test/import-checkpoint.test.ts": 8,+ "test/import-clear-failures-on-success.test.ts": 317,+ "test/import-code-edges-source-id.test.ts": 634,+ "test/import-dedup-frontmatter-id.test.ts": 1974,+ "test/import-default-write-guard-once.test.ts": 1749,+ "test/import-default-write-warn-destination.test.ts": 692,+ "test/import-embed-outage.test.ts": 494,+ "test/import-error-summary.test.ts": 8,+ "test/import-file-content-sanity.test.ts": 2293,"test/import-file.test.ts": 95,- "test/import-git-fastpath-prune.test.ts": 192,- "test/import-image-file.test.ts": 1521,- "test/import-metafile-skip.test.ts": 29,- "test/import-repo-path-guard.test.ts": 1688,- "test/import-resume.test.ts": 2041,- "test/import-source-id-bookkeeping.test.ts": 420,- "test/import-source-id-last-sync-at.test.ts": 2115,- "test/import-source-id.test.ts": 708,- "test/import-source-path-refresh.test.ts": 1722,- "test/import-walker.test.ts": 30,- "test/import-yaml-frontmatter.test.ts": 11,- "test/incremental-chunking.test.ts": 402,- "test/infer-type-pack.test.ts": 1,- "test/ingest-log-noop-gate.test.ts": 478,- "test/ingestion/daemon.test.ts": 72,- "test/ingestion/dedup.test.ts": 18,- "test/ingestion/gstack-learnings.test.ts": 28,- "test/ingestion/ingest-capture.test.ts": 6322,- "test/ingestion/markdown-greenfield.test.ts": 14,- "test/ingestion/migration-mode.test.ts": 2,- "test/ingestion/put-page-write-through.test.ts": 2483,- "test/ingestion/skillpack-load.test.ts": 14,- "test/ingestion/sources/file-watcher.test.ts": 1322,- "test/ingestion/sources/inbox-folder.test.ts": 985,- "test/ingestion/test-harness.test.ts": 63,- "test/ingestion/types.test.ts": 7,- "test/init-embed-check.test.ts": 10,- "test/init-env-detection.test.ts": 16,- "test/init-force-engine-preservation.test.ts": 4731,- "test/init-fresh-pglite.slow.test.ts": 44500,- "test/init-mcp-only.test.ts": 6453,- "test/init-migrate-only.test.ts": 6362,- "test/init-mode-picker.test.ts": 477,- "test/init-nudge.test.ts": 20,- "test/init-prefer-postgres.test.ts": 3331,- "test/init-provider-picker.test.ts": 20,- "test/init-reranker-default.test.ts": 22,- "test/init-schema-lock.test.ts": 25,- "test/inline-drain-keepalive.test.ts": 6345,- "test/insert-facts-batch.test.ts": 494,- "test/integrations-getstatus-anyof.test.ts": 16,- "test/integrations-heartbeat-max-age.test.ts": 32,- "test/integrations-install.test.ts": 181,- "test/integrations.test.ts": 171,- "test/integrity.test.ts": 2904,- "test/intent-weights.test.ts": 7,- "test/job-isolation-protocol.test.ts": 93,- "test/job-pull-policy.test.ts": 4,- "test/jobs-agent-scope.test.ts": 2775,- "test/jobs-format-detail.test.ts": 9,- "test/jobs-gateway-refresh-set.test.ts": 29,- "test/jobs-isolation-flag.test.ts": 11,- "test/jobs-lifecycle-ops.test.ts": 2546,- "test/jobs-nice-flag.test.ts": 0,- "test/jobs-ops-token-redaction.test.ts": 2006,- "test/jobs-sidechannel-fence.test.ts": 2656,- "test/jobs-submit-identity-stamp.test.ts": 428,- "test/jobs-thin-client-date-rehydration.test.ts": 11,- "test/jobs-unify-types-default-dryrun.test.ts": 412,- "test/jobs-watch-mode.test.ts": 3,- "test/jobs-watch-snapshot.test.ts": 5,- "test/jobs-worker-startup-recovery.test.ts": 484,- "test/junk-entity-guards.test.ts": 439,- "test/language-manifest.test.ts": 179,- "test/last-retrieved.test.ts": 304,- "test/latin-fold.test.ts": 4,- "test/legacy-token-federated-scope.test.ts": 17,- "test/lens-pack-manifests.test.ts": 13,- "test/levenshtein.test.ts": 3,- "test/link-extraction-code-refs.test.ts": 9,- "test/link-extraction-dir-whitelist-2576.test.ts": 5,- "test/link-extraction-pack-3190.test.ts": 518,+ "test/import-frontmatter-tag-removal.test.ts": 513,+ "test/import-git-fastpath-prune.test.ts": 143,+ "test/import-identity-move.test.ts": 2816,+ "test/import-image-file.test.ts": 1203,+ "test/import-image-retry.test.ts": 382,+ "test/import-markdown-embedding-reuse.test.ts": 524,+ "test/import-metafile-skip.test.ts": 16,+ "test/import-publication-guards.test.ts": 1389,+ "test/import-repo-path-guard.test.ts": 2436,+ "test/import-resume.test.ts": 1525,+ "test/import-revision-concurrency.test.ts": 499,+ "test/import-revision-revival.test.ts": 961,+ "test/import-slug-collision.test.ts": 532,+ "test/import-source-id-bookkeeping.test.ts": 299,+ "test/import-source-id-last-sync-at.test.ts": 2336,+ "test/import-source-id.test.ts": 1255,+ "test/import-source-path-refresh.test.ts": 1495,+ "test/import-walker.test.ts": 20,+ "test/import-yaml-frontmatter.test.ts": 22,+ "test/incremental-chunking.test.ts": 374,+ "test/infer-type-pack.test.ts": 21,+ "test/ingest-log-noop-gate.test.ts": 298,+ "test/ingestion/daemon.test.ts": 87,+ "test/ingestion/dedup.test.ts": 17,+ "test/ingestion/gstack-learnings.test.ts": 7,+ "test/ingestion/ingest-capture.test.ts": 2665,+ "test/ingestion/markdown-greenfield.test.ts": 33,+ "test/ingestion/migration-mode.test.ts": 30,+ "test/ingestion/put-page-write-through.test.ts": 4068,+ "test/ingestion/skillpack-load.test.ts": 9,+ "test/ingestion/sources/file-watcher.test.ts": 1101,+ "test/ingestion/sources/inbox-folder.test.ts": 1584,+ "test/ingestion/test-harness.test.ts": 69,+ "test/ingestion/types.test.ts": 13,+ "test/init-embed-check.test.ts": 6,+ "test/init-env-detection.test.ts": 9,+ "test/init-force-engine-preservation.test.ts": 4994,+ "test/init-fresh-pglite.slow.test.ts": 19255,+ "test/init-mcp-only.test.ts": 5995,+ "test/init-migrate-only.test.ts": 5981,+ "test/init-mode-picker.test.ts": 445,+ "test/init-nudge.test.ts": 2,+ "test/init-prefer-postgres.test.ts": 2392,+ "test/init-provider-picker.test.ts": 23,+ "test/init-reranker-default.test.ts": 8,+ "test/init-schema-lock.test.ts": 9,+ "test/inline-drain-keepalive.test.ts": 6632,+ "test/insert-facts-batch.test.ts": 308,+ "test/integrations-getstatus-anyof.test.ts": 13,+ "test/integrations-heartbeat-max-age.test.ts": 23,+ "test/integrations-install.test.ts": 154,+ "test/integrations.test.ts": 30,+ "test/integrity.test.ts": 2493,+ "test/intent-weights.test.ts": 14,+ "test/job-isolation-allow-shell-jobs.test.ts": 4,+ "test/job-isolation-protocol.test.ts": 100,+ "test/job-pull-policy.test.ts": 21,+ "test/jobs-agent-scope.test.ts": 505,+ "test/jobs-format-detail.test.ts": 7,+ "test/jobs-gateway-refresh-set.test.ts": 7,+ "test/jobs-isolation-flag.test.ts": 3,+ "test/jobs-lifecycle-ops.test.ts": 2447,+ "test/jobs-nice-flag.test.ts": 12,+ "test/jobs-ops-token-redaction.test.ts": 644,+ "test/jobs-sidechannel-fence.test.ts": 492,+ "test/jobs-submit-identity-stamp.test.ts": 270,+ "test/jobs-thin-client-date-rehydration.test.ts": 8,+ "test/jobs-unify-types-default-dryrun.test.ts": 642,+ "test/jobs-watch-mode.test.ts": 2,+ "test/jobs-watch-snapshot.test.ts": 4,+ "test/jobs-work-allow-shell-jobs-flag.test.ts": 11,+ "test/jobs-worker-startup-recovery.test.ts": 405,+ "test/junk-entity-guards.test.ts": 465,+ "test/language-manifest.test.ts": 39,+ "test/last-retrieved.test.ts": 286,+ "test/latin-fold.test.ts": 11,+ "test/legacy-fact-extraction-dedup.test.ts": 1569,+ "test/legacy-token-federated-scope.test.ts": 4,+ "test/legacy-vector-compatibility.test.ts": 3073,+ "test/lens-pack-manifests.test.ts": 6,+ "test/levenshtein.test.ts": 12,+ "test/link-extraction-code-refs.test.ts": 15,+ "test/link-extraction-dir-whitelist-2576.test.ts": 7,+ "test/link-extraction-pack-3190.test.ts": 327,"test/link-extraction-relative-path.test.ts": 3,- "test/link-extraction.test.ts": 43,- "test/link-inference-pack.test.ts": 29,- "test/link-source-check-repair.test.ts": 2156,- "test/link-source-namespaced-regex.test.ts": 988,- "test/links-timeline-jsonb-poison.test.ts": 3379,+ "test/link-extraction.test.ts": 29,+ "test/link-inference-constraints.test.ts": 10,+ "test/link-inference-pack.test.ts": 9,+ "test/link-source-check-repair.test.ts": 1266,+ "test/link-source-namespaced-regex.test.ts": 398,+ "test/links-timeline-jsonb-poison.test.ts": 1123,"test/lint-3958.test.ts": 18,- "test/lint-content-sanity.test.ts": 18,- "test/lint-fix-single-pass.test.ts": 10,- "test/lint-frontmatter.test.ts": 6,- "test/lint-shared-engine.test.ts": 22,- "test/lint.test.ts": 18,- "test/list-all-sources.test.ts": 1677,- "test/list-clamp-local-trust.test.ts": 605,- "test/list-pages-slug-total-order.test.ts": 287,- "test/list-pages-source-scope.test.ts": 9,- "test/list-pages-truncation.test.ts": 1873,- "test/list-pages-updated-asc-total-order.test.ts": 407,+ "test/lint-content-sanity.test.ts": 48,+ "test/lint-fix-single-pass.test.ts": 8,+ "test/lint-frontmatter.test.ts": 7,+ "test/lint-shared-engine.test.ts": 14,+ "test/lint.test.ts": 17,+ "test/list-all-sources.test.ts": 763,+ "test/list-clamp-local-trust.test.ts": 1038,+ "test/list-pages-slug-total-order.test.ts": 1060,+ "test/list-pages-source-scope.test.ts": 175,+ "test/list-pages-truncation.test.ts": 1427,+ "test/list-pages-updated-asc-total-order.test.ts": 241,"test/llm-halt-cooldown.test.ts": 6,"test/llm-intent-escalation.test.ts": 6,"test/llm-json-reasoning-ladder.test.ts": 5,- "test/loadConfig-merge.test.ts": 18,- "test/local-federated-search-scope.test.ts": 342,- "test/lock-keys.test.ts": 5,- "test/longmemeval-capture.test.ts": 8,- "test/longmemeval-diagnostics.test.ts": 1008,- "test/longmemeval-embed-cache.test.ts": 155,- "test/longmemeval-emit.test.ts": 52,- "test/longmemeval-extract.test.ts": 500,- "test/longmemeval-intent.test.ts": 4,- "test/longmemeval-judge.test.ts": 29,+ "test/loadConfig-merge.test.ts": 11,+ "test/local-federated-search-scope.test.ts": 1115,+ "test/local-ipc-path.test.ts": 148,+ "test/lock-keys.test.ts": 12,+ "test/longmemeval-capture.test.ts": 2,+ "test/longmemeval-diagnostics.test.ts": 946,+ "test/longmemeval-embed-cache.test.ts": 342,+ "test/longmemeval-emit.test.ts": 12,+ "test/longmemeval-evidence-packet.test.ts": 35,+ "test/longmemeval-extract.test.ts": 486,+ "test/longmemeval-gold-leak.slow.test.ts": 524,+ "test/longmemeval-intent.test.ts": 5,+ "test/longmemeval-judge.test.ts": 39,"test/longmemeval-metrics.test.ts": 9,- "test/longmemeval-reader.test.ts": 17,- "test/longmemeval-resume.test.ts": 6,- "test/longmemeval-run-config.test.ts": 17,- "test/longmemeval-sanitize.test.ts": 27,- "test/longmemeval-splits-fixture.test.ts": 9,- "test/longmemeval-trajectory-routing.test.ts": 5020,- "test/loop-apply.test.ts": 2550,- "test/loops-cli.test.ts": 4656,- "test/loops-extract-eligibility.test.ts": 8,- "test/loops-extract-parse.test.ts": 31,- "test/loops-extract-wiring.test.ts": 10,- "test/loops-store.test.ts": 4171,- "test/maintain.test.ts": 1440,- "test/markdown-leading-blank-frontmatter.test.ts": 4,- "test/markdown-serializer.test.ts": 5,- "test/markdown-validation.test.ts": 16,- "test/markdown.test.ts": 16,- "test/mcp-client-hardening.test.ts": 281,- "test/mcp-client.test.ts": 2182,- "test/mcp-default-write-advisory.test.ts": 6,- "test/mcp-dispatch-db-error.test.ts": 14,- "test/mcp-dispatch-optional-params.test.ts": 320,- "test/mcp-dispatch-summarize.test.ts": 11,- "test/mcp-eval-capture.test.ts": 674,- "test/mcp-instructions-writeback.test.ts": 17,- "test/mcp-registration-blocks.test.ts": 11,- "test/mcp-server-identity.test.ts": 3,- "test/mcp-stdio-gate-list.test.ts": 5,- "test/mcp-stdio-source-preflight.test.ts": 10,- "test/mcp-stdio-source-resolution.test.ts": 12,- "test/mcp-surface.test.ts": 424,- "test/mcp-tool-defs.test.ts": 28,- "test/mcp-usage.test.ts": 455,- "test/memory-verbs-conformance.test.ts": 7270,- "test/metric-glossary.test.ts": 22,- "test/migrate-engine-resume.test.ts": 27,- "test/migrate-extensions.test.ts": 8,- "test/migrate-retry.test.ts": 125,- "test/migrate-stdout-clean.test.ts": 1804,- "test/migrate-timeline-full-copy.test.ts": 653,- "test/migrate-timestamps-removelink-count.test.ts": 910,- "test/migrate.test.ts": 8096,- "test/migration-ledger.test.ts": 426,- "test/migration-orchestrator-v0_21_0.test.ts": 18,- "test/migration-orchestrator-v0_31_0.test.ts": 651,- "test/migration-resume.test.ts": 11,- "test/migration-v120.test.ts": 413,- "test/migrations-cjk-wave.test.ts": 465,- "test/migrations-registry.test.ts": 2,- "test/migrations-v0_11_0.test.ts": 9,- "test/migrations-v0_12_0.test.ts": 14,- "test/migrations-v0_12_2.test.ts": 4,- "test/migrations-v0_13_0.test.ts": 7,- "test/migrations-v0_13_1-grandfather.test.ts": 2363,+ "test/longmemeval-reader.test.ts": 8,+ "test/longmemeval-resume.test.ts": 5,+ "test/longmemeval-run-config.test.ts": 18,+ "test/longmemeval-sanitize.test.ts": 4,+ "test/longmemeval-splits-fixture.test.ts": 20,+ "test/longmemeval-trajectory-routing.test.ts": 3252,+ "test/loop-apply.test.ts": 1649,+ "test/loops-cli.test.ts": 2243,+ "test/loops-extract-eligibility.test.ts": 6,+ "test/loops-extract-parse.test.ts": 3,+ "test/loops-extract-wiring.test.ts": 11,+ "test/loops-store.test.ts": 1757,+ "test/maintain.test.ts": 1029,+ "test/managed-atom-compaction.test.ts": 6838,+ "test/managed-atom-regressions.test.ts": 10702,+ "test/managed-atoms-cli.slow.test.ts": 37657,+ "test/managed-extract-atoms.test.ts": 14202,+ "test/managed-facts-backstop.test.ts": 9324,+ "test/managed-facts-compaction.test.ts": 35723,+ "test/managed-facts-embedding.test.ts": 33738,+ "test/managed-maintenance-links.test.ts": 1715,+ "test/managed-maintenance.test.ts": 37184,+ "test/managed-synthesis-postprocess.test.ts": 7350,+ "test/markdown-leading-blank-frontmatter.test.ts": 3,+ "test/markdown-serializer.test.ts": 18,+ "test/markdown-validation.test.ts": 5,+ "test/markdown.test.ts": 11,+ "test/mcp-admin-http.test.ts": 118,+ "test/mcp-administration-guidance.test.ts": 2,+ "test/mcp-client-hardening.test.ts": 278,+ "test/mcp-client-lifecycle.test.ts": 1142,+ "test/mcp-client.test.ts": 2347,+ "test/mcp-default-write-advisory.test.ts": 3,+ "test/mcp-dispatch-db-error.test.ts": 9,+ "test/mcp-dispatch-optional-params.test.ts": 239,+ "test/mcp-dispatch-summarize.test.ts": 4,+ "test/mcp-eval-capture.test.ts": 679,+ "test/mcp-expose.test.ts": 307,+ "test/mcp-instructions-writeback.test.ts": 37,+ "test/mcp-registration-blocks.test.ts": 6,+ "test/mcp-server-identity.test.ts": 4,+ "test/mcp-stdio-gate-list.test.ts": 13,+ "test/mcp-stdio-source-preflight.test.ts": 6,+ "test/mcp-stdio-source-resolution.test.ts": 9,+ "test/mcp-surface.test.ts": 290,+ "test/mcp-tool-defs.test.ts": 14,+ "test/mcp-usage.test.ts": 306,+ "test/memory-verbs-conformance.test.ts": 8577,+ "test/metric-glossary.test.ts": 11,+ "test/migrate-engine-raw-include-deleted.test.ts": 4,+ "test/migrate-engine-resume.test.ts": 19,+ "test/migrate-extensions.test.ts": 2,+ "test/migrate-retry.test.ts": 133,+ "test/migrate-stdout-clean.test.ts": 652,+ "test/migrate-timeline-full-copy.test.ts": 546,+ "test/migrate-timestamps-removelink-count.test.ts": 567,+ "test/migrate.test.ts": 5444,+ "test/migration-ledger.test.ts": 469,+ "test/migration-orchestrator-v0_21_0.test.ts": 8,+ "test/migration-orchestrator-v0_31_0.test.ts": 282,+ "test/migration-resume.test.ts": 5,+ "test/migration-v120.test.ts": 209,+ "test/migration-vector-replay.test.ts": 3137,+ "test/migrations-cjk-wave.test.ts": 229,+ "test/migrations-registry.test.ts": 5,+ "test/migrations-v0_11_0.test.ts": 21,+ "test/migrations-v0_12_0.test.ts": 2,+ "test/migrations-v0_12_2.test.ts": 1,+ "test/migrations-v0_13_0.test.ts": 3,+ "test/migrations-v0_13_1-grandfather.test.ts": 3163,"test/migrations-v0_13_1.test.ts": 5,- "test/migrations-v0_14_0.test.ts": 16,- "test/migrations-v0_16_0.test.ts": 7,- "test/migrations-v0_19_0.test.ts": 4068,- "test/migrations-v0_21_0.test.ts": 8,- "test/migrations-v0_22_4.test.ts": 28,- "test/migrations-v0_27_1.test.ts": 478,- "test/migrations-v0_32_2.test.ts": 526,- "test/migrations-v126.test.ts": 783,- "test/migrations-v128.test.ts": 512,- "test/migrations-v130.test.ts": 302,- "test/migrations-v131.test.ts": 452,- "test/migrations-v136.test.ts": 410,- "test/migrations-v145.test.ts": 431,- "test/migrations-v48-takes-weight-backfill.test.ts": 371,- "test/migrations-v94.test.ts": 2117,- "test/migrations-v99.test.ts": 903,- "test/minion-queue-renewlock-signal.test.ts": 4,- "test/minions-admission.test.ts": 602,- "test/minions-cold-import.test.ts": 887,- "test/minions-field-report-repro.test.ts": 26470,- "test/minions-lease-full-retry.test.ts": 314,- "test/minions-quiet-hours.test.ts": 2584,- "test/minions-shell-inherit.test.ts": 6,- "test/minions-shell-redact.test.ts": 5,- "test/minions-shell-validate.test.ts": 129,- "test/minions-shell.test.ts": 572,- "test/minions-submission-authority.test.ts": 1352,- "test/minions.test.ts": 9005,- "test/minions/agent-audit.test.ts": 15,- "test/minions/budget-meter.test.ts": 4036,- "test/minions/dream-quota-degradation.test.ts": 1488,- "test/minions/generic-handler-spend-attribution.test.ts": 469,- "test/minions/subagent-oneshot.test.ts": 3849,- "test/mode-switch-ux.test.ts": 673,- "test/model-id.test.ts": 20,- "test/model-pricing.test.ts": 8,- "test/models-doctor-chat-probe-timeout.slow.test.ts": 10522,- "test/models-doctor-chat-probe-timeout.test.ts": 7,- "test/models-doctor-embed.test.ts": 4,- "test/models-doctor-reranker.test.ts": 13,- "test/models-doctor-v1-hint.test.ts": 11,- "test/modes-report-reranker.test.ts": 15,- "test/mounts-cache.test.ts": 23,- "test/mounts-cli.test.ts": 461,- "test/mounts-routing-pglite.slow.test.ts": 31030,- "test/multi-source-drift.test.ts": 1164,- "test/multi-source-integration.test.ts": 574,- "test/niceness.test.ts": 6,- "test/nightly-probe-config-plane.test.ts": 10,- "test/nightly-quality-probe.test.ts": 25,- "test/no-grant-federated-scope.test.ts": 388,- "test/no-tracked-symlinks-guard.test.ts": 35,- "test/notability-eval.test.ts": 25,- "test/npm-squat-check.test.ts": 2,- "test/oauth-authorize-scope-default.test.ts": 417,- "test/oauth-confidential-client.test.ts": 455,- "test/oauth-consent-security.test.ts": 3516,- "test/oauth-dcr-ttl.test.ts": 1908,- "test/oauth-owner-consent.test.ts": 314,- "test/oauth-refresh-invalid-grant.test.ts": 2761,- "test/oauth-scope-probe.test.ts": 9,- "test/oauth-surface-ladder.test.ts": 3450,- "test/oauth.test.ts": 4352,- "test/ocr-run-budget.test.ts": 1446,- "test/ollama-recipe.test.ts": 17,- "test/onboard-coverage-invariants.test.ts": 1065,- "test/onboard-pack-upgrade-checks.test.ts": 1957,- "test/onboard-phantom-rec-gates.test.ts": 2794,- "test/op-checkpoint-mentions-fingerprint.test.ts": 6,- "test/op-checkpoint.test.ts": 3550,- "test/openai-compat-multimodal.test.ts": 22,- "test/openclaw-plugin-manifest.test.ts": 9,- "test/opencode-json.test.ts": 39,- "test/openrouter-reranker-recipe.test.ts": 2,- "test/operation-context-sourceid-required.test.ts": 7,- "test/operations-allow-list.test.ts": 1,+ "test/migrations-v0_14_0.test.ts": 13,+ "test/migrations-v0_16_0.test.ts": 3,+ "test/migrations-v0_19_0.test.ts": 1514,+ "test/migrations-v0_21_0.test.ts": 3,+ "test/migrations-v0_22_4.test.ts": 4,+ "test/migrations-v0_27_1.test.ts": 1115,+ "test/migrations-v0_32_2.test.ts": 508,+ "test/migrations-v126.test.ts": 420,+ "test/migrations-v128.test.ts": 630,+ "test/migrations-v130.test.ts": 260,+ "test/migrations-v131.test.ts": 459,+ "test/migrations-v136.test.ts": 267,+ "test/migrations-v145.test.ts": 290,+ "test/migrations-v48-takes-weight-backfill.test.ts": 434,+ "test/migrations-v94.test.ts": 1366,+ "test/migrations-v99.test.ts": 885,+ "test/minion-queue-renewlock-signal.test.ts": 6,+ "test/minions-admission.test.ts": 1244,+ "test/minions-cold-import.test.ts": 541,+ "test/minions-field-report-repro.test.ts": 6070,+ "test/minions-lease-full-retry.test.ts": 262,+ "test/minions-quiet-hours.test.ts": 1112,+ "test/minions-shell-inherit.test.ts": 13,+ "test/minions-shell-redact.test.ts": 3,+ "test/minions-shell-validate.test.ts": 15,+ "test/minions-shell.test.ts": 701,+ "test/minions-submission-authority.test.ts": 999,+ "test/minions.test.ts": 8049,+ "test/minions/agent-audit.test.ts": 10,+ "test/minions/budget-meter.test.ts": 2097,+ "test/minions/dream-quota-degradation.test.ts": 1629,+ "test/minions/generic-handler-spend-attribution.test.ts": 261,+ "test/minions/subagent-oneshot.test.ts": 5871,+ "test/mode-switch-ux.test.ts": 380,+ "test/model-id.test.ts": 5,+ "test/model-pricing.test.ts": 4,+ "test/models-doctor-chat-probe-timeout.slow.test.ts": 10524,+ "test/models-doctor-chat-probe-timeout.test.ts": 4,+ "test/models-doctor-embed.test.ts": 36,+ "test/models-doctor-reranker.test.ts": 11,+ "test/models-doctor-v1-hint.test.ts": 12,+ "test/modes-report-reranker.test.ts": 12,+ "test/mounts-cache.test.ts": 39,+ "test/mounts-cli.test.ts": 80,+ "test/mounts-routing-pglite.slow.test.ts": 29472,+ "test/multi-source-drift.test.ts": 258,+ "test/multi-source-integration.test.ts": 616,+ "test/native-export-faults.test.ts": 474,+ "test/native-export-publication.test.ts": 159,+ "test/native-lock.test.ts": 187,+ "test/niceness.test.ts": 13,+ "test/nightly-probe-config-plane.test.ts": 1,+ "test/nightly-probe-exit-isolation.test.ts": 2700,+ "test/nightly-quality-probe.test.ts": 36,+ "test/no-grant-federated-scope.test.ts": 1068,+ "test/no-tracked-symlinks-guard.test.ts": 41,+ "test/notability-eval.test.ts": 32,+ "test/npm-squat-check.test.ts": 5,+ "test/oauth-authorize-scope-default.test.ts": 420,+ "test/oauth-confidential-client.test.ts": 511,+ "test/oauth-consent-security.test.ts": 3264,+ "test/oauth-dcr-scope-ceiling.test.ts": 2646,+ "test/oauth-dcr-ttl.test.ts": 2422,+ "test/oauth-owner-consent.test.ts": 310,+ "test/oauth-refresh-invalid-grant.test.ts": 1864,+ "test/oauth-scope-hint.test.ts": 76,+ "test/oauth-scope-probe.test.ts": 5,+ "test/oauth-surface-ladder.test.ts": 2601,+ "test/oauth.test.ts": 1662,+ "test/ocr-run-budget.test.ts": 978,+ "test/ollama-recipe.test.ts": 0,+ "test/onboard-coverage-invariants.test.ts": 581,+ "test/onboard-pack-upgrade-checks.test.ts": 966,+ "test/onboard-phantom-rec-gates.test.ts": 1302,+ "test/op-checkpoint-mentions-fingerprint.test.ts": 13,+ "test/op-checkpoint.test.ts": 1744,+ "test/openai-compat-multimodal.test.ts": 8,+ "test/openclaw-plugin-manifest.test.ts": 16,+ "test/opencode-json.test.ts": 34,+ "test/openrouter-reranker-recipe.test.ts": 3,+ "test/operation-context-sourceid-required.test.ts": 2,+ "test/operations-allow-list.test.ts": 510,"test/operations-coverage-ledger.test.ts": 13,- "test/operations-descriptions.test.ts": 17,- "test/operations-embedding-column.test.ts": 26,- "test/operations-find-trajectory.test.ts": 695,- "test/operations-fuzzy-source-scope.test.ts": 1332,- "test/operations-schema-pack.test.ts": 2964,- "test/operations-source-isolation-matrix.test.ts": 1152,- "test/operations-trust-boundary.test.ts": 3668,- "test/operator-env-preload.test.ts": 472,- "test/ops-loops.test.ts": 6595,- "test/ops-search-types.test.ts": 594,- "test/orphans-mode-islanded.test.ts": 489,- "test/orphans-private-aggregate.test.ts": 1222,- "test/orphans-pure-fn.test.ts": 454,- "test/orphans-source-scope.test.ts": 589,- "test/orphans.test.ts": 2670,- "test/owner-holder.test.ts": 2,- "test/pace-mode.test.ts": 5,- "test/page-generation-counter.test.ts": 2846,- "test/page-lock.test.ts": 265,- "test/page-search-vector-overflow.test.ts": 2314,- "test/page-type-exhaustive.test.ts": 19,- "test/pages-body-nul-sanitize.test.ts": 423,- "test/pages-soft-delete.test.ts": 1408,- "test/pages-source-scoping-4329.test.ts": 5071,- "test/pages-upsert-arbiter.test.ts": 2854,- "test/parallel.test.ts": 91,- "test/parent-scope.test.ts": 520,+ "test/operations-descriptions.test.ts": 3,+ "test/operations-embedding-column.test.ts": 5,+ "test/operations-find-trajectory.test.ts": 1064,+ "test/operations-fuzzy-source-scope.test.ts": 623,+ "test/operations-schema-pack.test.ts": 1587,+ "test/operations-source-isolation-matrix.test.ts": 1792,+ "test/operations-trust-boundary.test.ts": 2467,+ "test/operator-env-preload.test.ts": 439,+ "test/ops-loops.test.ts": 2368,+ "test/ops-search-types.test.ts": 581,+ "test/orphans-mode-islanded.test.ts": 319,+ "test/orphans-private-aggregate.test.ts": 676,+ "test/orphans-pure-fn.test.ts": 376,+ "test/orphans-source-scope.test.ts": 433,+ "test/orphans.test.ts": 2223,+ "test/owner-holder.test.ts": 4,+ "test/pace-mode.test.ts": 2,+ "test/page-generation-counter.test.ts": 943,+ "test/page-lock.test.ts": 262,+ "test/page-projection-code-recovery.test.ts": 5125,+ "test/page-projection-concurrency.test.ts": 970,+ "test/page-projection-origin.test.ts": 767,+ "test/page-projection-vector-preservation.test.ts": 3182,+ "test/page-search-vector-overflow.test.ts": 2002,+ "test/page-state-engine.test.ts": 435,+ "test/page-type-exhaustive.test.ts": 12,+ "test/pages-body-nul-sanitize.test.ts": 264,+ "test/pages-purge-artifact.test.ts": 2991,+ "test/pages-soft-delete.test.ts": 1374,+ "test/pages-source-scoping-4329.test.ts": 3683,+ "test/pages-upsert-arbiter.test.ts": 2114,+ "test/parallel.test.ts": 94,+ "test/parent-scope.test.ts": 267,"test/parity.test.ts": 7,- "test/path-confine.test.ts": 15,- "test/performfullsync-source-id.test.ts": 967,- "test/pg-access-classify.test.ts": 27,- "test/pglite-disconnect-checkpoint.test.ts": 310,- "test/pglite-embedded-assets.test.ts": 3,- "test/pglite-engine.test.ts": 4364,- "test/pglite-init-classifier.test.ts": 13,- "test/pglite-leftovers-check.test.ts": 12,- "test/pglite-lock.test.ts": 16185,- "test/pglite-repair.test.ts": 181,- "test/pglite-resetwal.test.ts": 35,- "test/pglite-workers-clamp.test.ts": 5,- "test/phantom-redirect-content-hash.test.ts": 784,- "test/phantom-redirect-engine-parity.test.ts": 1816,- "test/phantom-redirect.test.ts": 6977,- "test/phase-scope-coverage.test.ts": 14,+ "test/path-confine.test.ts": 19,+ "test/performfullsync-source-id.test.ts": 577,+ "test/persistence-activation.test.ts": 3321,+ "test/persistence-admin-intent.test.ts": 1390,+ "test/persistence-admin-recovery.test.ts": 8075,+ "test/persistence-administration.test.ts": 2558,+ "test/persistence-admission-observer.test.ts": 1221,+ "test/persistence-captured-file-target.test.ts": 526,+ "test/persistence-chaos.slow.test.ts": 27393,+ "test/persistence-cli-delegation.test.ts": 6367,+ "test/persistence-cold-import.test.ts": 169,+ "test/persistence-commit-durability.test.ts": 311,+ "test/persistence-connector-fencing.test.ts": 6250,+ "test/persistence-connector-recovery.test.ts": 29155,+ "test/persistence-connector-retry.test.ts": 48995,+ "test/persistence-connectors.test.ts": 47246,+ "test/persistence-consumer-scheduling.test.ts": 4556,+ "test/persistence-container-preflight.test.ts": 20,+ "test/persistence-contextual-embedding.test.ts": 1699,+ "test/persistence-diagnostics.test.ts": 1324,+ "test/persistence-effect-recovery-fairness.test.ts": 553,+ "test/persistence-effect-retry.test.ts": 17859,+ "test/persistence-effects.test.ts": 782,+ "test/persistence-embedding-effects.test.ts": 25987,+ "test/persistence-facts-backstop.test.ts": 1626,+ "test/persistence-failure-diagnostics.test.ts": 331,+ "test/persistence-file-import.test.ts": 21980,+ "test/persistence-git-publication.test.ts": 2488,+ "test/persistence-graph-publication.test.ts": 919,+ "test/persistence-import-admission.test.ts": 2,+ "test/persistence-internal-callers.test.ts": 911,+ "test/persistence-ipc-backpressure.test.ts": 15113,+ "test/persistence-ipc.test.ts": 244,+ "test/persistence-journal.test.ts": 898,+ "test/persistence-local-client.test.ts": 13,+ "test/persistence-managed-lifecycle.test.ts": 13682,+ "test/persistence-managed-sync.test.ts": 23813,+ "test/persistence-memory-mutations.test.ts": 2986,+ "test/persistence-migration-preservation.test.ts": 555,+ "test/persistence-onboarding.test.ts": 2352,+ "test/persistence-page-authority.test.ts": 767,+ "test/persistence-performance.test.ts": 28902,+ "test/persistence-physical-root.test.ts": 1324,+ "test/persistence-read-diagnostics.test.ts": 59,+ "test/persistence-receipt-operations.test.ts": 1590,+ "test/persistence-reconcile-merge.test.ts": 8,+ "test/persistence-reconcile.test.ts": 16621,+ "test/persistence-recovery-capacity.test.ts": 596,+ "test/persistence-recovery-fairness.test.ts": 713,+ "test/persistence-root-refresh.test.ts": 598,+ "test/persistence-semantic-pages.test.ts": 2891,+ "test/persistence-skill-crash.slow.test.ts": 17573,+ "test/persistence-skill-old-binary.slow.test.ts": 4,+ "test/persistence-source-cli.test.ts": 4606,+ "test/persistence-source-lifecycle.test.ts": 4392,+ "test/persistence-staging.test.ts": 1296,+ "test/persistence-sync-receipt-diagnostics.test.ts": 19,+ "test/persistence-take-receipt-authority.test.ts": 1203,+ "test/persistence-timeline-identity.test.ts": 1282,+ "test/persistence-tombstone-noop.test.ts": 6533,+ "test/persistence-topology-capacity.test.ts": 259,+ "test/persistence-topology-quotas.test.ts": 509,+ "test/persistence-topology-recovery-fairness.test.ts": 314,+ "test/persistence-topology-recovery.test.ts": 285,+ "test/persistence-version-deletion.test.ts": 5681,+ "test/persistence-withdrawal-retry.test.ts": 441,+ "test/persistence-write-contracts.test.ts": 11,+ "test/persistence-writer-fences.test.ts": 653,+ "test/pg-access-classify.test.ts": 5,+ "test/pglite-disconnect-checkpoint.test.ts": 458,+ "test/pglite-embedded-assets.test.ts": 2,+ "test/pglite-engine.test.ts": 2615,+ "test/pglite-init-classifier.test.ts": 32,+ "test/pglite-leftovers-check.test.ts": 5,+ "test/pglite-lock-process-probe.test.ts": 8,+ "test/pglite-lock.test.ts": 518,+ "test/pglite-maintenance-fence.test.ts": 4992,+ "test/pglite-repair.test.ts": 695,+ "test/pglite-resetwal.test.ts": 43,+ "test/pglite-workers-clamp.test.ts": 9,+ "test/phantom-redirect-content-hash.test.ts": 420,+ "test/phantom-redirect-engine-parity.test.ts": 627,+ "test/phantom-redirect-merge.test.ts": 599,+ "test/phantom-redirect.test.ts": 4199,+ "test/phase-scope-coverage.test.ts": 2,"test/pid1-reaper.test.ts": 127,- "test/plugin-loader.test.ts": 18,- "test/pool-gauge.test.ts": 13,- "test/post-install-advisory.test.ts": 14,- "test/post-write-lint.test.ts": 2373,- "test/postgres-disconnect-bounded.test.ts": 2506,- "test/postgres-engine-config-reconnect.test.ts": 19,- "test/postgres-engine-getter-selfheal.test.ts": 9,- "test/postgres-engine-reserved-routing.test.ts": 38,- "test/postgres-engine-rls-scope.test.ts": 19,- "test/postgres-engine.test.ts": 14,- "test/postgres-execute-raw-direct.test.ts": 5,- "test/preferences.test.ts": 17,- "test/privacy-script-wired.test.ts": 8,- "test/privacy-strip-and-forget.test.ts": 1998,- "test/private-queue-schema-parity.test.ts": 7,- "test/private-visibility.test.ts": 586,- "test/process-cleanup.test.ts": 3043,- "test/process-watchdog.test.ts": 4,- "test/progress-tail.test.ts": 2,- "test/progress.test.ts": 301,- "test/progressive-batch/orchestrator.test.ts": 67,- "test/progressive-batch/retrofit-wrap.test.ts": 10,- "test/propose-takes-config-max-tokens.test.ts": 17,- "test/propose-takes-per-claim.test.ts": 831,- "test/propose-takes-served-model.test.ts": 14,- "test/propose-takes-truncation.test.ts": 9,- "test/propose-takes.test.ts": 109,- "test/protocol-document.test.ts": 7,- "test/provider-env.test.ts": 4,- "test/provider-fixture-env.test.ts": 148,- "test/providers-test-model-base-url.test.ts": 27,- "test/providers.test.ts": 15,- "test/public-exports.test.ts": 37,- "test/publish-gates.test.ts": 6,- "test/publish.test.ts": 135,- "test/put-page-dedup-fence.test.ts": 1562,- "test/put-page-embedding-plane-split.test.ts": 2726,- "test/put-page-empty-guard.test.ts": 4664,- "test/put-page-empty-overwrite-guard.test.ts": 663,- "test/put-page-error-passthrough.test.ts": 842,+ "test/plugin-loader.test.ts": 23,+ "test/pool-gauge.test.ts": 4,+ "test/post-install-advisory.test.ts": 29,+ "test/post-write-lint.test.ts": 1770,+ "test/postgres-cancellation-capability.test.ts": 6,+ "test/postgres-disconnect-bounded.test.ts": 2510,+ "test/postgres-driver-vendor.test.ts": 11,+ "test/postgres-engine-config-reconnect.test.ts": 18,+ "test/postgres-engine-getter-selfheal.test.ts": 5,+ "test/postgres-engine-reserved-routing.test.ts": 19,+ "test/postgres-engine-rls-scope.test.ts": 5,+ "test/postgres-engine-singleton-lifecycle.test.ts": 532,+ "test/postgres-engine.test.ts": 31,+ "test/postgres-execute-raw-direct.test.ts": 9,+ "test/preferences.test.ts": 15,+ "test/privacy-script-wired.test.ts": 209,+ "test/privacy-strip-and-forget.test.ts": 3762,+ "test/private-queue-schema-parity.test.ts": 33,+ "test/private-visibility.test.ts": 676,+ "test/process-cleanup.test.ts": 3076,+ "test/process-watchdog.test.ts": 5,+ "test/progress-tail.test.ts": 15,+ "test/progress.test.ts": 329,+ "test/progressive-batch/orchestrator.test.ts": 70,+ "test/progressive-batch/retrofit-wrap.test.ts": 7,+ "test/projection-readiness.test.ts": 1855,+ "test/projection-statistics-import.test.ts": 467,+ "test/projection-statistics.test.ts": 4646,+ "test/propose-takes-config-max-tokens.test.ts": 6,+ "test/propose-takes-per-claim.test.ts": 1203,+ "test/propose-takes-served-model.test.ts": 8,+ "test/propose-takes-truncation.test.ts": 8,+ "test/propose-takes.test.ts": 130,+ "test/protocol-document.test.ts": 5,+ "test/provider-env.test.ts": 1,+ "test/provider-fixture-env.test.ts": 92,+ "test/providers-test-model-base-url.test.ts": 18,+ "test/providers.test.ts": 7,+ "test/public-exports.test.ts": 27,+ "test/publish-gates.test.ts": 3,+ "test/publish.test.ts": 102,+ "test/put-page-dedup-fence.test.ts": 2090,+ "test/put-page-embedding-plane-split.test.ts": 1082,+ "test/put-page-empty-guard.test.ts": 2765,+ "test/put-page-empty-overwrite-guard.test.ts": 1574,+ "test/put-page-error-passthrough.test.ts": 1336,"test/put-page-namespace.test.ts": 6,- "test/put-page-provenance.test.ts": 679,- "test/put-page-remote-autolink-hint.test.ts": 924,- "test/put-page-write-through-failure.test.ts": 999,- "test/put-page-writer-lint.test.ts": 2799,- "test/qm-provisioning.test.ts": 28260,- "test/qualified-names.test.ts": 143,- "test/quarantine-cache-ops.test.ts": 342,- "test/quarantine-cli.test.ts": 1425,- "test/quarantine.test.ts": 4,- "test/query-cache-gate.test.ts": 1055,- "test/query-cache.test.ts": 641,- "test/query-intent-concept.test.ts": 4,- "test/query-intent-config.test.ts": 20,- "test/query-intent-legacy.test.ts": 10,- "test/query-intent.test.ts": 5,- "test/query-sanitization.test.ts": 30,- "test/queue-child-done.test.ts": 691,- "test/queue-getstats-wedge.test.ts": 418,+ "test/put-page-persistence.test.ts": 11731,+ "test/put-page-provenance.test.ts": 4650,+ "test/put-page-remote-autolink-hint.test.ts": 597,+ "test/put-page-write-through-failure.test.ts": 1370,+ "test/put-page-writer-lint.test.ts": 2693,+ "test/qm-provisioning.test.ts": 16828,+ "test/qualified-names.test.ts": 10,+ "test/quarantine-cache-ops.test.ts": 505,+ "test/quarantine-cli.test.ts": 1931,+ "test/quarantine.test.ts": 2,+ "test/query-cache-gate.test.ts": 1260,+ "test/query-cache.test.ts": 375,+ "test/query-intent-concept.test.ts": 5,+ "test/query-intent-config.test.ts": 11,+ "test/query-intent-legacy.test.ts": 11,+ "test/query-intent.test.ts": 12,+ "test/query-sanitization.test.ts": 15,+ "test/queue-child-done.test.ts": 771,+ "test/queue-getstats-wedge.test.ts": 482,"test/queue-lock-retry.test.ts": 7,- "test/queue-probe-cancellation.test.ts": 60,- "test/queue-stall-parent-unblock.test.ts": 577,- "test/queue-started-at-retry.test.ts": 352,- "test/r1-namedthing-rerank-ab.test.ts": 7919,- "test/ranking-inversion-895.test.ts": 1964,- "test/rate-leases-uncapped.test.ts": 680,- "test/rate-leases.test.ts": 338,- "test/recall-extensions.test.ts": 2945,- "test/recall-federated-search-scope.test.ts": 397,- "test/recall-federated.test.ts": 408,- "test/recall-keyword-fallback.test.ts": 3894,- "test/recall-rollup.test.ts": 17,- "test/receipt-cr-state.test.ts": 928,- "test/recency-decay.test.ts": 24,- "test/recompute-emotional-weight.test.ts": 9,- "test/reconcile-links-cli-reachability.test.ts": 650,- "test/redos-hardening.test.ts": 24,- "test/reflex-volunteer.test.ts": 1514,- "test/register-client-source-normalize.test.ts": 18,- "test/regression-strict-source-id.test.ts": 8,- "test/regression-v0_16_4.test.ts": 23,- "test/regressions/gbrain-base-equivalence.test.ts": 50,- "test/regressions/v0_36_frontier_cap.test.ts": 2517,- "test/regressions/v0_40_2_0-trajectory-backcompat.test.ts": 280,- "test/reindex-code-empty-file.test.ts": 888,- "test/reindex-code-recovery.test.ts": 354,- "test/reindex-code.test.ts": 717,- "test/reindex-cost-refusal.test.ts": 28,- "test/reindex-frontmatter-connect.test.ts": 432,- "test/reindex-preserve-tags.test.ts": 1170,- "test/reindex.test.ts": 1700,- "test/relational-ab.test.ts": 2108,- "test/relational-fanout.test.ts": 524,- "test/relational-intent.test.ts": 2,- "test/relational-recall.test.ts": 824,- "test/release-workflow.test.ts": 20,- "test/remediation-command-resolution.test.ts": 208,- "test/remediation-step.test.ts": 20,- "test/remote-body.test.ts": 7,- "test/remote-cli.test.ts": 7111,- "test/remote-privacy-sweep.test.ts": 4457,- "test/repair-jsonb.test.ts": 2,- "test/replay-autocut-floor.test.ts": 445,- "test/repo-root.test.ts": 52,- "test/repo-visibility.test.ts": 118,- "test/report.test.ts": 10,- "test/repos-alias.test.ts": 403,- "test/request-tools.test.ts": 449,- "test/rerank-audit.test.ts": 2,- "test/rerank-doc-cap.test.ts": 120,- "test/reranker-default-seam.test.ts": 73,- "test/resolve-ipc-binding.test.ts": 49,- "test/resolve-ipc-engine-uniform.test.ts": 11,- "test/resolve-ipc-v2.test.ts": 1246,- "test/resolve-prepare.test.ts": 3,- "test/resolver-merge.test.ts": 9,- "test/resolver.test.ts": 174,- "test/resolvers.test.ts": 4026,- "test/restart-sweep.test.ts": 38,- "test/retrieval-quality-harness.test.ts": 3,- "test/retrieval-reflex-pre-v110.test.ts": 381,+ "test/queue-probe-cancellation.test.ts": 54,+ "test/queue-stall-parent-unblock.test.ts": 291,+ "test/queue-started-at-retry.test.ts": 594,+ "test/r1-namedthing-rerank-ab.test.ts": 7144,+ "test/ranking-inversion-895.test.ts": 331,+ "test/rate-leases-uncapped.test.ts": 586,+ "test/rate-leases.test.ts": 292,+ "test/real-home-guard-preload.test.ts": 516,+ "test/recall-budget-policy-thin-cli.test.ts": 15766,+ "test/recall-budget-policy-transports.test.ts": 36133,+ "test/recall-budget-policy.test.ts": 2657,+ "test/recall-extensions.test.ts": 1818,+ "test/recall-federated-search-scope.test.ts": 577,+ "test/recall-federated.test.ts": 1910,+ "test/recall-keyword-fallback.test.ts": 1386,+ "test/recall-rollup.test.ts": 5,+ "test/receipt-cr-state.test.ts": 395,+ "test/recency-decay.test.ts": 3,+ "test/recompute-emotional-weight.test.ts": 13,+ "test/reconcile-audit.test.ts": 5160,+ "test/reconcile-cli.test.ts": 22,+ "test/reconcile-crash.slow.test.ts": 243594,+ "test/reconcile-links-cli-reachability.test.ts": 558,+ "test/redos-hardening.test.ts": 5,+ "test/reflex-volunteer.test.ts": 1511,+ "test/register-client-source-normalize.test.ts": 10,+ "test/regression-strict-source-id.test.ts": 25,+ "test/regression-v0_16_4.test.ts": 14,+ "test/regressions/gbrain-base-equivalence.test.ts": 7,+ "test/regressions/v0_36_frontier_cap.test.ts": 934,+ "test/regressions/v0_40_2_0-trajectory-backcompat.test.ts": 306,+ "test/reindex-code-delegate.test.ts": 115,+ "test/reindex-code-empty-file.test.ts": 680,+ "test/reindex-code-recovery.test.ts": 230,+ "test/reindex-code.test.ts": 1060,+ "test/reindex-cost-refusal.test.ts": 6,+ "test/reindex-frontmatter-connect.test.ts": 233,+ "test/reindex-markdown-persistence.slow.test.ts": 144006,+ "test/reindex-preserve-tags.test.ts": 569,+ "test/reindex.test.ts": 3672,+ "test/relational-ab.test.ts": 1291,+ "test/relational-fanout.test.ts": 374,+ "test/relational-intent-paraphrase.test.ts": 10,+ "test/relational-intent.test.ts": 7,+ "test/relational-recall.test.ts": 764,+ "test/release-workflow.test.ts": 16,+ "test/remediation-command-resolution.test.ts": 128,+ "test/remediation-step.test.ts": 2,+ "test/remote-body.test.ts": 8,+ "test/remote-cli.test.ts": 7116,+ "test/remote-privacy-sweep.test.ts": 4718,+ "test/rename-slug-alias.test.ts": 577,+ "test/repair-jsonb.test.ts": 19,+ "test/replay-autocut-floor.test.ts": 218,+ "test/repo-root.test.ts": 4,+ "test/repo-visibility.test.ts": 108,+ "test/report.test.ts": 6,+ "test/repos-alias.test.ts": 351,+ "test/request-tools.test.ts": 575,+ "test/rerank-audit.test.ts": 18,+ "test/rerank-doc-cap.test.ts": 51,+ "test/reranker-default-seam.test.ts": 4,+ "test/resolve-ipc-binding.test.ts": 85,+ "test/resolve-ipc-engine-uniform.test.ts": 7,+ "test/resolve-ipc-v2.test.ts": 929,+ "test/resolve-prepare.test.ts": 2,+ "test/resolver-merge.test.ts": 33,+ "test/resolver.test.ts": 13,+ "test/resolvers.test.ts": 4019,+ "test/restart-sweep.test.ts": 112,+ "test/retrieval-quality-harness.test.ts": 4,+ "test/retrieval-reflex-pre-v110.test.ts": 228,"test/retrieval-reflex-recipe-routing.test.ts": 2,- "test/retrieval-reflex.test.ts": 571,- "test/retry-matcher.test.ts": 23,- "test/routing-eval-cli.test.ts": 1560,- "test/routing-eval.test.ts": 15,- "test/rrf-source-key.test.ts": 6,- "test/rss-default.test.ts": 18,- "test/run-child-entry.test.ts": 569,- "test/salience-source-scope.test.ts": 3145,- "test/salience.test.ts": 26,- "test/scenarios.test.ts": 34,- "test/schema-bootstrap-coverage.test.ts": 6263,- "test/schema-cli-contract.test.ts": 15,- "test/schema-cli-lint-extends.test.ts": 2418,- "test/schema-cli.test.ts": 6530,- "test/schema-lint-extends-resolution.test.ts": 23,- "test/schema-lint-extends.test.ts": 547,- "test/schema-lint-pack-confine.test.ts": 15,- "test/schema-migrate-link-source-mentions.test.ts": 419,- "test/schema-pack-best-effort.test.ts": 30,+ "test/retrieval-reflex.test.ts": 376,+ "test/retry-matcher.test.ts": 2,+ "test/routing-eval-cli.test.ts": 1643,+ "test/routing-eval.test.ts": 12,+ "test/rrf-source-key.test.ts": 10,+ "test/rss-default.test.ts": 5,+ "test/run-child-entry.test.ts": 387,+ "test/safety-wave-coverage-export-ledger.test.ts": 8,+ "test/safety-wave-coverage-invocation-inheritance.test.ts": 2,+ "test/salience-source-scope.test.ts": 1207,+ "test/salience.test.ts": 9,+ "test/scenarios.test.ts": 6,+ "test/schema-bootstrap-coverage.test.ts": 2740,+ "test/schema-cli-contract.test.ts": 2563,+ "test/schema-cli-lint-extends.test.ts": 2094,+ "test/schema-cli.test.ts": 6651,+ "test/schema-lint-extends-resolution.test.ts": 11,+ "test/schema-lint-extends.test.ts": 705,+ "test/schema-lint-pack-confine.test.ts": 14,+ "test/schema-migrate-link-source-mentions.test.ts": 1068,+ "test/schema-pack-best-effort.test.ts": 19,+ "test/schema-pack-config-key.test.ts": 3303,+ "test/schema-pack-hash-liveness.test.ts": 214,"test/schema-pack-infer-type-and-subtype.test.ts": 4,- "test/schema-pack-lint-rules.test.ts": 8,- "test/schema-pack-loader.test.ts": 16,- "test/schema-pack-manifest-v041_2.test.ts": 10,- "test/schema-pack-merge.test.ts": 13,- "test/schema-pack-mutate-audit.test.ts": 36,- "test/schema-pack-mutate-path-confine.test.ts": 239,- "test/schema-pack-mutate.test.ts": 67,- "test/schema-pack-pack-lock.test.ts": 67,- "test/schema-pack-page-to-alias.test.ts": 669,- "test/schema-pack-page-to-link.test.ts": 1162,- "test/schema-pack-query-cache-invalidator.test.ts": 1325,+ "test/schema-pack-lint-rules.test.ts": 13,+ "test/schema-pack-loader.test.ts": 20,+ "test/schema-pack-manifest-v041_2.test.ts": 15,+ "test/schema-pack-merge.test.ts": 8,+ "test/schema-pack-mutate-audit.test.ts": 19,+ "test/schema-pack-mutate-path-confine.test.ts": 507,+ "test/schema-pack-mutate.test.ts": 145,+ "test/schema-pack-pack-lock.test.ts": 66,+ "test/schema-pack-page-to-alias.test.ts": 536,+ "test/schema-pack-page-to-link.test.ts": 1055,+ "test/schema-pack-query-cache-invalidator.test.ts": 717,"test/schema-pack-registry-reload.test.ts": 51,- "test/schema-pack-registry.test.ts": 26,- "test/schema-pack-retype.test.ts": 5572,- "test/schema-pack-stats.test.ts": 6561,- "test/schema-pack-sync.test.ts": 6540,- "test/schema-pack-trust-boundary.test.ts": 86,- "test/schema-pack-unify-types-handler.test.ts": 2753,- "test/schema-pack/scaffold-extractable.test.ts": 5,- "test/schema-pack/suggest.test.ts": 8,- "test/schema-type-usage.test.ts": 950,- "test/schema-verify.test.ts": 17,+ "test/schema-pack-registry.test.ts": 6,+ "test/schema-pack-retype.test.ts": 1016,+ "test/schema-pack-stats.test.ts": 2506,+ "test/schema-pack-sync.test.ts": 2404,+ "test/schema-pack-trust-boundary.test.ts": 87,+ "test/schema-pack-unify-types-handler.test.ts": 1322,+ "test/schema-pack/scaffold-extractable.test.ts": 14,+ "test/schema-pack/suggest.test.ts": 3,+ "test/schema-type-usage.test.ts": 532,+ "test/schema-verify.test.ts": 30,"test/schema-version-health.test.ts": 4,- "test/scope-agent-isolation.test.ts": 5,- "test/scope-normalize.test.ts": 29,- "test/scope.test.ts": 6,- "test/scripts/check-engine-dynamic-import.test.ts": 5305,- "test/scripts/check-key-files-current-state.test.ts": 123,- "test/scripts/check-module-size.test.ts": 86,- "test/scripts/check-proposal-pii.test.ts": 484,- "test/scripts/check-skill-refs.test.ts": 1099,- "test/scripts/check-test-isolation.test.ts": 184,- "test/scripts/check-wasm-embedded-pipefail.test.ts": 8,- "test/scripts/check-worker-lock-renewal-shape.test.ts": 28,- "test/scripts/check-worker-pool-atomicity.test.ts": 104,- "test/scripts/ci-gates.test.ts": 122,- "test/scripts/ci-local-rendering.test.ts": 1460,- "test/scripts/classify-tests.test.ts": 6,- "test/scripts/coverage-baseline-gate.test.ts": 356,- "test/scripts/coverage-diff-gate.test.ts": 404,- "test/scripts/e2e-wiring.test.ts": 56,- "test/scripts/evals-collection.test.ts": 850,- "test/scripts/merge-lcov.test.ts": 480,- "test/scripts/mine-shard-weights.test.ts": 31,- "test/scripts/render-coverage-summary.test.ts": 186,- "test/scripts/run-serial-pool.test.ts": 3467,- "test/scripts/run-unit-parallel.test.ts": 8363,- "test/scripts/run-unit-shard.test.ts": 314,- "test/scripts/run-verify-parallel.test.ts": 3212,- "test/scripts/serial-files.test.ts": 112,- "test/scripts/sharding.test.ts": 9,- "test/scripts/test-shard.slow.test.ts": 942,- "test/search-alias-resolved-boost.test.ts": 1134,- "test/search-by-image-op.test.ts": 1574,- "test/search-compiled-truth-boost-scope.test.ts": 4,- "test/search-image-column.test.ts": 2404,- "test/search-introspection-ops.test.ts": 435,- "test/search-lang-symbol-kind.test.ts": 374,- "test/search-limit.test.ts": 407,- "test/search-mode-config-snapshot.test.ts": 5,- "test/search-mode.test.ts": 18,- "test/search-op-source-id.test.ts": 403,- "test/search-readiness-http.test.ts": 8650,- "test/search-safe-index-probe.test.ts": 411,- "test/search-snippet-cap.test.ts": 2628,- "test/search-telemetry.test.ts": 2058,- "test/search-types-filter.test.ts": 2762,- "test/search.test.ts": 8,- "test/search/alias-hop.test.ts": 3140,- "test/search/alias-normalize.test.ts": 17,- "test/search/arm-confidence-hybrid.test.ts": 655,- "test/search/arm-confidence.test.ts": 22,- "test/search/attribution-stamping.test.ts": 5,- "test/search/autocut-eval.test.ts": 5,- "test/search/autocut.test.ts": 12,- "test/search/compiled-truth-boost.test.ts": 0,- "test/search/concept-weights.test.ts": 494,- "test/search/crag-query-op.test.ts": 1686,- "test/search/crag.test.ts": 1,- "test/search/evidence.test.ts": 6,- "test/search/exact-lookup.test.ts": 6792,- "test/search/expansion-variant-budget.test.ts": 1701,- "test/search/explain-formatter.test.ts": 14,- "test/search/fusion-lists.test.ts": 11,- "test/search/graph-signals-wire-integration.test.ts": 497,- "test/search/graph-signals.test.ts": 4,- "test/search/knobs-hash-reranker.test.ts": 21,- "test/search/metadata-boost-gate-hybrid.test.ts": 653,- "test/search/metadata-boost-gate.test.ts": 6,- "test/search/modes-report-coverage.test.ts": 10,- "test/search/page-aliases-engine.test.ts": 1042,- "test/search/per-call-mode.test.ts": 13,- "test/search/pre-migration-failopen.test.ts": 575,- "test/search/query-embed-deadline.test.ts": 4052,- "test/search/query-op-adaptive-return.test.ts": 7,- "test/search/query-op-autocut.test.ts": 22,- "test/search/query-shape.test.ts": 34,- "test/search/reindex-aliases.test.ts": 1077,- "test/search/relational-intent-memo.test.ts": 22,- "test/search/relational-rerank-pin.test.ts": 7,- "test/search/rerank.test.ts": 18,- "test/search/return-policy.test.ts": 4,- "test/search/search-diagnose.test.ts": 483,- "test/search/search-stats-graph-signals.test.ts": 448,- "test/search/searchvector-escalation.test.ts": 11260,- "test/search/searchvector-maxpool.test.ts": 471,- "test/search/supersede-downrank.test.ts": 2474,- "test/search/telemetry-rank1.test.ts": 397,- "test/search/title-boost-stage.test.ts": 24,- "test/search/title-match.test.ts": 9,- "test/search/title-retrieval-arm.test.ts": 4775,- "test/search/walk-dedup-cap.test.ts": 3,- "test/secret-scan.test.ts": 17,- "test/select-e2e.test.ts": 12,+ "test/scope-agent-isolation.test.ts": 3,+ "test/scope-normalize.test.ts": 5,+ "test/scope.test.ts": 8,+ "test/scripts/build-pglite-snapshot.test.ts": 818,+ "test/scripts/capture-test-log.test.ts": 808,+ "test/scripts/check-engine-dynamic-import.test.ts": 3456,+ "test/scripts/check-key-files-current-state.test.ts": 756,+ "test/scripts/check-module-size.test.ts": 44,+ "test/scripts/check-orphan-modules.test.ts": 394,+ "test/scripts/check-proposal-pii.test.ts": 855,+ "test/scripts/check-skill-refs.test.ts": 928,+ "test/scripts/check-test-isolation.test.ts": 230,+ "test/scripts/check-test-placeholders.test.ts": 4971,+ "test/scripts/check-wasm-embedded-pipefail.test.ts": 4,+ "test/scripts/check-worker-lock-renewal-shape.test.ts": 71,+ "test/scripts/check-worker-pool-atomicity.test.ts": 63,+ "test/scripts/ci-gates.test.ts": 114,+ "test/scripts/ci-local-rendering.test.ts": 1383,+ "test/scripts/ci-runner-routing.test.ts": 61,+ "test/scripts/ci-ubicloud-schedule.test.ts": 124,+ "test/scripts/classify-tests.test.ts": 8,+ "test/scripts/coverage-baseline-gate.test.ts": 442,+ "test/scripts/coverage-diff-gate.test.ts": 219,+ "test/scripts/data-safety-native-workflow.test.ts": 139,+ "test/scripts/e2e-matrix.test.ts": 515,+ "test/scripts/e2e-runner.test.ts": 6724,+ "test/scripts/e2e-wiring.test.ts": 51,+ "test/scripts/evals-collection.test.ts": 1030,+ "test/scripts/heavy-door-workflow.test.ts": 10,+ "test/scripts/merge-lcov.test.ts": 897,+ "test/scripts/mine-shard-weights.test.ts": 521,+ "test/scripts/native-compiled-cleanup.test.ts": 3,+ "test/scripts/native-lock-prebuilds.test.ts": 147,+ "test/scripts/native-only-workflow.test.ts": 54,+ "test/scripts/nightly-e2e.test.ts": 319,+ "test/scripts/render-coverage-summary.test.ts": 86,+ "test/scripts/run-serial-pool.test.ts": 7973,+ "test/scripts/run-unit-parallel.test.ts": 8371,+ "test/scripts/run-unit-shard.test.ts": 1357,+ "test/scripts/run-verify-parallel.test.ts": 3164,+ "test/scripts/serial-files.test.ts": 257,+ "test/scripts/sharding.test.ts": 7,+ "test/scripts/test-shard.slow.test.ts": 1616,+ "test/scripts/typecheck-incremental.test.ts": 4485,+ "test/search-alias-resolved-boost.test.ts": 733,+ "test/search-by-image-op.test.ts": 871,+ "test/search-compiled-truth-boost-scope.test.ts": 9,+ "test/search-date-bounds.test.ts": 1,+ "test/search-image-column.test.ts": 838,+ "test/search-introspection-ops.test.ts": 483,+ "test/search-lang-symbol-kind.test.ts": 373,+ "test/search-limit.test.ts": 259,+ "test/search-mode-config-snapshot.test.ts": 35,+ "test/search-mode.test.ts": 14,+ "test/search-op-source-id.test.ts": 457,+ "test/search-projection-readiness.test.ts": 767,+ "test/search-readiness-http.test.ts": 4061,+ "test/search-safe-index-probe.test.ts": 474,+ "test/search-snippet-cap.test.ts": 308,+ "test/search-telemetry.test.ts": 1168,+ "test/search-types-filter.test.ts": 303,+ "test/search.test.ts": 6,+ "test/search/alias-hop.test.ts": 1495,+ "test/search/alias-normalize.test.ts": 9,+ "test/search/alias-token-hop.test.ts": 844,+ "test/search/arm-confidence-hybrid.test.ts": 432,+ "test/search/arm-confidence.test.ts": 27,+ "test/search/atom-session-diversification.test.ts": 16,+ "test/search/attribution-stamping.test.ts": 17,+ "test/search/auto-entity-detail-soft.test.ts": 1349,+ "test/search/autocut-eval.test.ts": 7,+ "test/search/autocut.test.ts": 7,+ "test/search/cached-wrapper-roundtrips.test.ts": 313,+ "test/search/compiled-truth-boost.test.ts": 12,+ "test/search/concept-weights.test.ts": 642,+ "test/search/cosine-rescore-image-space.test.ts": 13,+ "test/search/crag-query-op.test.ts": 1046,+ "test/search/crag.test.ts": 16,+ "test/search/eval-vector-query-embed.test.ts": 1939,+ "test/search/evidence.test.ts": 1,+ "test/search/exact-lookup.test.ts": 1960,+ "test/search/exclude-filters-hybrid.test.ts": 1401,+ "test/search/expansion-variant-budget.test.ts": 1451,+ "test/search/explain-formatter.test.ts": 4,+ "test/search/fusion-lists.test.ts": 6,+ "test/search/general-title-mention-boost.test.ts": 512,+ "test/search/graph-signals-wire-integration.test.ts": 322,+ "test/search/graph-signals.test.ts": 14,+ "test/search/identity-tiers-keep-rerank-order.test.ts": 4,+ "test/search/injection-excludes-keyword-boost.test.ts": 1242,+ "test/search/knobs-hash-reranker.test.ts": 11,+ "test/search/metadata-boost-gate-hybrid.test.ts": 413,+ "test/search/metadata-boost-gate.test.ts": 8,+ "test/search/modes-report-coverage.test.ts": 17,+ "test/search/output-redaction.test.ts": 29,+ "test/search/page-aliases-engine.test.ts": 1077,+ "test/search/per-call-mode.test.ts": 2,+ "test/search/pre-migration-failopen.test.ts": 403,+ "test/search/query-embed-deadline.test.ts": 4077,+ "test/search/query-op-adaptive-return.test.ts": 18,+ "test/search/query-op-autocut.test.ts": 6,+ "test/search/query-shape.test.ts": 3,+ "test/search/reindex-aliases.test.ts": 780,+ "test/search/relational-intent-memo.test.ts": 12,+ "test/search/relational-rerank-pin.test.ts": 12,+ "test/search/rerank.test.ts": 13,+ "test/search/return-policy.test.ts": 8,+ "test/search/rrf-page-grain.test.ts": 363,+ "test/search/search-diagnose.test.ts": 1138,+ "test/search/search-query-contract.test.ts": 1776,+ "test/search/search-stats-graph-signals.test.ts": 473,+ "test/search/searchvector-escalation.test.ts": 25843,+ "test/search/searchvector-maxpool.test.ts": 427,+ "test/search/source-boost-config.test.ts": 416,+ "test/search/supersede-downrank.test.ts": 558,+ "test/search/telemetry-rank1.test.ts": 1075,+ "test/search/title-boost-stage.test.ts": 12,+ "test/search/title-match.test.ts": 109,+ "test/search/title-mention-boost.test.ts": 609,+ "test/search/title-retrieval-arm.test.ts": 2329,+ "test/search/vector-candidate-safety.test.ts": 17117,+ "test/search/vector-pool.test.ts": 14,+ "test/search/walk-dedup-cap.test.ts": 11,+ "test/secret-scan-format-detectors-extra.test.ts": 12,+ "test/secret-scan-perf.test.ts": 620,+ "test/secret-scan.test.ts": 19,+ "test/select-e2e.test.ts": 135,"test/self-upgrade-pending.test.ts": 8,- "test/self-upgrade.test.ts": 12,+ "test/self-upgrade.test.ts": 17,"test/sensitivity-scan.test.ts": 25,- "test/serve-http-admin-route-guard.test.ts": 14,- "test/serve-http-bootstrap-token.test.ts": 25,- "test/serve-http-cors.test.ts": 84,- "test/serve-http-embedding-width.test.ts": 382,- "test/serve-http-github-webhook.test.ts": 131,- "test/serve-http-health.test.ts": 286,- "test/serve-http-lifecycle.test.ts": 143,- "test/serve-http-mcp-transport-cleanup.test.ts": 6,- "test/serve-http-metrics.test.ts": 89,- "test/serve-http-oauth-token-rate-limit.test.ts": 103,- "test/serve-http-socket-tracking.test.ts": 746,- "test/serve-http-stall-watchdog.test.ts": 49,- "test/serve-http-surface-ceiling.test.ts": 16810,- "test/serve-http-trust-proxy.test.ts": 89,- "test/serve-skills-publish-nudge.test.ts": 7,- "test/serve-stdin-eof-drain.test.ts": 414,- "test/serve-stdio-lifecycle.test.ts": 1406,- "test/serve-stdio-roundtrip.test.ts": 19790,- "test/serve-sweep-runner-677.test.ts": 543,- "test/server-degraded-scope.test.ts": 19,- "test/session-receipts.test.ts": 822,- "test/session-state-gc.test.ts": 454,- "test/setup-branching.test.ts": 10,- "test/skill-brain-first.test.ts": 35,- "test/skill-catalog-block-scalar.test.ts": 1,- "test/skill-catalog-security.test.ts": 20,- "test/skill-catalog-transports.test.ts": 2062,- "test/skill-catalog.test.ts": 2,- "test/skill-currency.test.ts": 9,- "test/skill-manifest.test.ts": 37,- "test/skill-preconditions.test.ts": 7,- "test/skill-trigger-index.test.ts": 11,- "test/skillify-check.test.ts": 1325,- "test/skillify-scaffold.test.ts": 20,- "test/skillopt/adversarial/malformed-markdown.test.ts": 928,- "test/skillopt/adversarial/noisy-judge.test.ts": 557,- "test/skillopt/adversarial/partial-write-crash.test.ts": 809,- "test/skillopt/adversarial/resume-after-crash.test.ts": 685,- "test/skillopt/adversarial/side-effecting-tool.test.ts": 828,- "test/skillopt/apply-edits.test.ts": 5,- "test/skillopt/audit.test.ts": 5,- "test/skillopt/batch.test.ts": 1,- "test/skillopt/benchmark.test.ts": 13,- "test/skillopt/bootstrap-from-skill.test.ts": 480,- "test/skillopt/deadline-and-hermetic.test.ts": 10,- "test/skillopt/held-out.test.ts": 10,- "test/skillopt/lock.test.ts": 1070,- "test/skillopt/lr-schedule.test.ts": 4,- "test/skillopt/reflect.test.ts": 8,- "test/skillopt/rejected-buffer.test.ts": 12,- "test/skillopt/rollout-schema.test.ts": 5,- "test/skillopt/rollout.test.ts": 11,- "test/skillopt/score.test.ts": 9,- "test/skillopt/silent-abort-3516.test.ts": 12,- "test/skillopt/validate-gate-abort.test.ts": 11,- "test/skillopt/version-store.test.ts": 30,- "test/skillopt/write-capture.test.ts": 4238,- "test/skillpack-apply-hunks.test.ts": 4,- "test/skillpack-bootstrap-display.test.ts": 17,- "test/skillpack-brain-resident-locate.test.ts": 38,- "test/skillpack-bridge-state.test.ts": 10,- "test/skillpack-changed-since-version.test.ts": 200,- "test/skillpack-check.test.ts": 3968,- "test/skillpack-copy.test.ts": 1,- "test/skillpack-endorse.test.ts": 122,- "test/skillpack-flow.test.ts": 13680,- "test/skillpack-frontmatter-sources.test.ts": 31,- "test/skillpack-harness-bridge.test.ts": 49,+ "test/serve-http-admin-route-guard.test.ts": 30,+ "test/serve-http-bootstrap-token.test.ts": 1,+ "test/serve-http-cors.test.ts": 26,+ "test/serve-http-embedding-width.test.ts": 283,+ "test/serve-http-github-webhook.test.ts": 152,+ "test/serve-http-health.test.ts": 205,+ "test/serve-http-lifecycle.test.ts": 226,+ "test/serve-http-mcp-transport-cleanup.test.ts": 4,+ "test/serve-http-metrics.test.ts": 69,+ "test/serve-http-oauth-token-rate-limit.test.ts": 81,+ "test/serve-http-socket-tracking.test.ts": 1186,+ "test/serve-http-stall-watchdog.test.ts": 32,+ "test/serve-http-surface-ceiling.test.ts": 16268,+ "test/serve-http-trust-proxy.test.ts": 16,+ "test/serve-service.test.ts": 66,+ "test/serve-skills-publish-nudge.test.ts": 42,+ "test/serve-stdin-eof-drain.test.ts": 304,+ "test/serve-stdio-lifecycle.test.ts": 1437,+ "test/serve-stdio-roundtrip.test.ts": 16933,+ "test/serve-sweep-runner-677.test.ts": 517,+ "test/server-degraded-scope.test.ts": 14,+ "test/session-receipts.test.ts": 739,+ "test/session-state-gc.test.ts": 227,+ "test/setup-branching.test.ts": 2,+ "test/shared-content-freshness.test.ts": 487,+ "test/shared-skills-adapter.test.ts": 14110,+ "test/shared-skills-authority.test.ts": 1101,+ "test/shared-skills-brain-assertion.test.ts": 666,+ "test/shared-skills-catalog-performance.test.ts": 5,+ "test/shared-skills-catalog.test.ts": 20718,+ "test/shared-skills-lifecycle-benchmark.test.ts": 23,+ "test/shared-skills-membership.test.ts": 4927,+ "test/shared-skills-migration-members.test.ts": 231,+ "test/shared-skills-native-router.test.ts": 1123,+ "test/shared-skills-operation-contract.test.ts": 16,+ "test/shared-skills-operator-operations.test.ts": 247,+ "test/shared-skills-profile-composition.test.ts": 3319,+ "test/shared-skills-proposal-cli.test.ts": 6519,+ "test/shared-skills-publication-sparse.test.ts": 5161,+ "test/shared-skills-retention-capacity.test.ts": 672,+ "test/shared-skills-transports.test.ts": 7576,+ "test/skill-brain-first.test.ts": 31,+ "test/skill-catalog-block-scalar.test.ts": 2,+ "test/skill-catalog-security.test.ts": 32,+ "test/skill-catalog-transports.test.ts": 1106,+ "test/skill-catalog.test.ts": 28,+ "test/skill-currency.test.ts": 27,+ "test/skill-manifest.test.ts": 6,+ "test/skill-preconditions.test.ts": 8,+ "test/skill-trigger-index.test.ts": 21,+ "test/skillify-check.test.ts": 2854,+ "test/skillify-scaffold.test.ts": 90,+ "test/skillopt/adversarial/malformed-markdown.test.ts": 10,+ "test/skillopt/adversarial/noisy-judge.test.ts": 561,+ "test/skillopt/adversarial/partial-write-crash.test.ts": 1365,+ "test/skillopt/adversarial/resume-after-crash.test.ts": 72,+ "test/skillopt/adversarial/side-effecting-tool.test.ts": 798,+ "test/skillopt/apply-edits.test.ts": 3,+ "test/skillopt/audit.test.ts": 3,+ "test/skillopt/batch.test.ts": 4,+ "test/skillopt/benchmark.test.ts": 23,+ "test/skillopt/bootstrap-from-skill.test.ts": 262,+ "test/skillopt/deadline-and-hermetic.test.ts": 4,+ "test/skillopt/error-code-docs.test.ts": 8,+ "test/skillopt/held-out.test.ts": 8,+ "test/skillopt/judge-bootstrap-caps.test.ts": 21,+ "test/skillopt/lock.test.ts": 1257,+ "test/skillopt/lr-schedule.test.ts": 5,+ "test/skillopt/preflight-reservation.test.ts": 130,+ "test/skillopt/reflect-fail-loud.test.ts": 10,+ "test/skillopt/reflect.test.ts": 5,+ "test/skillopt/rejected-buffer.test.ts": 25,+ "test/skillopt/rollout-schema.test.ts": 13,+ "test/skillopt/rollout.test.ts": 16,+ "test/skillopt/run-outcome.test.ts": 9,+ "test/skillopt/score.test.ts": 7,+ "test/skillopt/silent-abort-3516.test.ts": 5,+ "test/skillopt/validate-gate-abort.test.ts": 8,+ "test/skillopt/version-store.test.ts": 420,+ "test/skillopt/write-capture.test.ts": 946,+ "test/skillpack-apply-hunks.test.ts": 7,+ "test/skillpack-bootstrap-display.test.ts": 7,+ "test/skillpack-brain-resident-locate.test.ts": 20,+ "test/skillpack-bridge-state.test.ts": 15,+ "test/skillpack-changed-since-version.test.ts": 369,+ "test/skillpack-check-report-only.test.ts": 5,+ "test/skillpack-check.test.ts": 3250,+ "test/skillpack-copy.test.ts": 7,+ "test/skillpack-endorse.test.ts": 173,+ "test/skillpack-flow.test.ts": 7281,+ "test/skillpack-frontmatter-sources.test.ts": 6,+ "test/skillpack-harness-bridge.test.ts": 144,"test/skillpack-harvest-lint.test.ts": 4,- "test/skillpack-harvest.test.ts": 23,- "test/skillpack-init-brain-pack.test.ts": 6,- "test/skillpack-init-pack.test.ts": 48,- "test/skillpack-install.test.ts": 41,- "test/skillpack-manifest-v1.test.ts": 20,- "test/skillpack-migrate-fence.test.ts": 9,- "test/skillpack-nag-state.test.ts": 31,- "test/skillpack-personas.test.ts": 14,- "test/skillpack-reference-apply.test.ts": 17,- "test/skillpack-reference-harness.test.ts": 27,- "test/skillpack-reference-pack-is-ten.test.ts": 7,- "test/skillpack-reference.test.ts": 37,- "test/skillpack-registry-client.test.ts": 14,- "test/skillpack-registry-schema.test.ts": 5,- "test/skillpack-remote-source.test.ts": 82,- "test/skillpack-rubric-doctor.test.ts": 60,- "test/skillpack-scaffold-harness.test.ts": 19873,- "test/skillpack-scaffold-third-party.test.ts": 10,- "test/skillpack-scaffold.test.ts": 25,- "test/skillpack-scrub-legacy.test.ts": 9,- "test/skillpack-state.test.ts": 46,+ "test/skillpack-harvest.test.ts": 26,+ "test/skillpack-init-brain-pack.test.ts": 39,+ "test/skillpack-init-pack.test.ts": 736,+ "test/skillpack-install.test.ts": 77,+ "test/skillpack-manifest-v1.test.ts": 9,+ "test/skillpack-migrate-fence.test.ts": 12,+ "test/skillpack-nag-state.test.ts": 7,+ "test/skillpack-personas.test.ts": 69,+ "test/skillpack-reference-apply.test.ts": 49,+ "test/skillpack-reference-harness.test.ts": 291,+ "test/skillpack-reference-pack-is-ten.test.ts": 8,+ "test/skillpack-reference.test.ts": 18,+ "test/skillpack-registry-client.test.ts": 29,+ "test/skillpack-registry-schema.test.ts": 3,+ "test/skillpack-remote-source.test.ts": 68,+ "test/skillpack-rubric-doctor.test.ts": 24,+ "test/skillpack-scaffold-harness.test.ts": 21464,+ "test/skillpack-scaffold-third-party.test.ts": 31,+ "test/skillpack-scaffold.test.ts": 40,+ "test/skillpack-scrub-legacy.test.ts": 10,+ "test/skillpack-shared-brain-bridge.test.ts": 11,+ "test/skillpack-state.test.ts": 30,"test/skillpack-status.test.ts": 9,- "test/skillpack-tarball.test.ts": 164,- "test/skillpack-trust-prompt.test.ts": 10,- "test/skills-conformance.test.ts": 47,- "test/skills-integrity.test.ts": 8,- "test/slug-unicode-scripts.test.ts": 14,- "test/slug-validation.test.ts": 6,- "test/smoke-test-worker.test.ts": 139,- "test/snapshot-shape-guard.test.ts": 31,- "test/soft-delete-link-visibility.test.ts": 606,- "test/sort-newest-first.test.ts": 7,- "test/source-boundary-mutation-errors.test.ts": 1896,- "test/source-config-redact.test.ts": 2,- "test/source-health.test.ts": 703,- "test/source-id-routing.test.ts": 2035,- "test/source-id-tx-regression.test.ts": 481,- "test/source-id.test.ts": 19,- "test/source-resolver-default-write-guard.test.ts": 10,- "test/source-resolver-implicit-default.test.ts": 3,- "test/source-resolver-silent-fallback.test.ts": 1904,- "test/source-resolver-sole-non-default.test.ts": 11,- "test/source-resolver-tier4-parallel-realpath.test.ts": 10,- "test/source-resolver-with-tier.test.ts": 20,- "test/source-resolver.test.ts": 11,- "test/source-scope-resolver.test.ts": 10,- "test/sources-abs-path-3696.test.ts": 417,- "test/sources-archive-idempotent.test.ts": 3656,- "test/sources-google-access-flags.test.ts": 2671,- "test/sources-list-scalar-confinement.test.ts": 368,- "test/sources-list-scope.test.ts": 339,- "test/sources-load.test.ts": 3971,- "test/sources-mcp.test.ts": 2175,- "test/sources-ops.test.ts": 10293,- "test/sources-resync-recovery.test.ts": 2546,- "test/sources-set-cr-mode.test.ts": 1086,- "test/sources-set-path.test.ts": 2040,- "test/sources-webhook.test.ts": 3,- "test/sources.test.ts": 15,- "test/spawn-helpers.test.ts": 5,+ "test/skillpack-tarball.test.ts": 291,+ "test/skillpack-trust-prompt.test.ts": 5,+ "test/skillpack-writer-guard.test.ts": 165,+ "test/skills-conformance.test.ts": 18,+ "test/skills-integrity.test.ts": 9,+ "test/slug-unicode-scripts.test.ts": 5,+ "test/slug-validation.test.ts": 5,+ "test/smoke-test-worker.test.ts": 82,+ "test/snapshot-shape-guard.test.ts": 67,+ "test/soft-delete-link-visibility.test.ts": 374,+ "test/sort-newest-first.test.ts": 11,+ "test/source-boundary-mutation-errors.test.ts": 1122,+ "test/source-config-redact.test.ts": 10,+ "test/source-config-secret-surfaces.test.ts": 1415,+ "test/source-health.test.ts": 426,+ "test/source-id-routing.test.ts": 1024,+ "test/source-id-tx-regression.test.ts": 1441,+ "test/source-id.test.ts": 8,+ "test/source-local-reference-index.test.ts": 13,+ "test/source-resolver-default-write-guard.test.ts": 6,+ "test/source-resolver-implicit-default.test.ts": 8,+ "test/source-resolver-silent-fallback.test.ts": 977,+ "test/source-resolver-sole-non-default.test.ts": 12,+ "test/source-resolver-tier4-parallel-realpath.test.ts": 13,+ "test/source-resolver-with-tier.test.ts": 13,+ "test/source-resolver.test.ts": 4,+ "test/source-scope-resolver.test.ts": 52,+ "test/sources-abs-path-3696.test.ts": 530,+ "test/sources-archive-idempotent.test.ts": 2227,+ "test/sources-google-access-flags.test.ts": 1493,+ "test/sources-list-scalar-confinement.test.ts": 352,+ "test/sources-list-scope.test.ts": 454,+ "test/sources-load.test.ts": 1756,+ "test/sources-mcp.test.ts": 2176,+ "test/sources-ops.test.ts": 5465,+ "test/sources-resync-recovery.test.ts": 804,+ "test/sources-set-cr-mode.test.ts": 1226,+ "test/sources-set-path.test.ts": 1156,+ "test/sources-webhook.test.ts": 18,+ "test/sources.test.ts": 55,+ "test/spawn-helpers.test.ts": 14,"test/spend-off-switch.test.ts": 5,- "test/sql-query.test.ts": 269,- "test/sql-ranking.test.ts": 6,- "test/ssrf-validate.test.ts": 7,- "test/stale-takes-bigint.test.ts": 7,- "test/stats-health-source-scope.test.ts": 421,+ "test/sql-query.test.ts": 345,+ "test/sql-ranking.test.ts": 3,+ "test/ssrf-validate.test.ts": 9,+ "test/stale-extraction-recommendation.test.ts": 505,+ "test/stale-takes-bigint.test.ts": 5,+ "test/stats-health-source-scope.test.ts": 305,"test/status-autopilot-lock.test.ts": 11,- "test/status-sections.test.ts": 50,- "test/status-thin-client-skew.test.ts": 47,- "test/storage-backfill.test.ts": 13,- "test/storage-config.test.ts": 27,- "test/storage-export.test.ts": 489,- "test/storage-pglite.test.ts": 329,- "test/storage-s3.test.ts": 140,- "test/storage-status.test.ts": 26,- "test/storage-supabase.test.ts": 4024,- "test/storage-sync.test.ts": 18,- "test/storage.test.ts": 160,- "test/stub-guard-audit.test.ts": 11,- "test/subagent-aggregator.test.ts": 10,- "test/subagent-audit.test.ts": 17,- "test/subagent-handler.test.ts": 3642,- "test/subagent-prompt-too-long.test.ts": 2,- "test/subagent-tool-ledger.test.ts": 545,- "test/subagent-transcript.test.ts": 371,- "test/subagent-v1-v2-shim.test.ts": 3137,- "test/submit-agent.test.ts": 4195,- "test/submit-queue-state.test.ts": 1437,- "test/sum-stale-chunk-chars.test.ts": 1110,- "test/supabase-admin.test.ts": 6,- "test/supervisor-audit.test.ts": 10,- "test/supervisor-build-worker-args.test.ts": 12,- "test/supervisor-db-lock.test.ts": 395,- "test/supervisor-pid.test.ts": 20,- "test/supervisor-tini.test.ts": 9,- "test/supervisor-wedge.test.ts": 2489,- "test/supervisor.test.ts": 2070,- "test/surface-audit.test.ts": 4,- "test/svg-renderer.test.ts": 17,- "test/sweep-writeback-corpus.test.ts": 379,- "test/sweep.test.ts": 1170,- "test/sync-all-missing-path.test.ts": 1,- "test/sync-all-parallel.test.ts": 13,- "test/sync-baseline-guard.test.ts": 8,- "test/sync-brain-op-source-id.test.ts": 456,- "test/sync-break-lock-all.test.ts": 3092,- "test/sync-break-lock-source-resolution.test.ts": 618,- "test/sync-break-lock-source.test.ts": 670,- "test/sync-classifier-widening.test.ts": 6,- "test/sync-concurrency.test.ts": 13,- "test/sync-cost-estimate.test.ts": 198,- "test/sync-cost-preview.test.ts": 36,- "test/sync-default-write-guard-dry-run.test.ts": 481,- "test/sync-delegate-ladder.test.ts": 11,- "test/sync-delete-batch.slow.test.ts": 4928,- "test/sync-delete-batch.test.ts": 2180,- "test/sync-deleted-slug-embed.test.ts": 461,- "test/sync-delta.test.ts": 271,- "test/sync-discover-git-root-stderr.test.ts": 512,- "test/sync-embedding-infra-gate.test.ts": 3,- "test/sync-exclude-config.test.ts": 2066,- "test/sync-failures.test.ts": 27,- "test/sync-git-autoinit.test.ts": 2394,- "test/sync-hard-deadline.test.ts": 19,- "test/sync-include-hidden-config.test.ts": 1518,- "test/sync-include-hidden.test.ts": 42,- "test/sync-incremental-image-2683.test.ts": 4781,- "test/sync-isSyncable-shape.test.ts": 20,- "test/sync-json-stdout-clean.test.ts": 3343,- "test/sync-lock-busy-classification.test.ts": 1262,- "test/sync-monorepo.test.ts": 3390,- "test/sync-no-embed-sentinel.test.ts": 5,- "test/sync-nudge-status-gate.test.ts": 1,- "test/sync-parallel.test.ts": 4294,- "test/sync-path-containment.test.ts": 1,- "test/sync-policy.test.ts": 5,- "test/sync-reconcile-mass-delete.test.ts": 6,- "test/sync-rename-batch.test.ts": 1171,- "test/sync-repo-source-routing.test.ts": 693,- "test/sync-slug-root-mode-4342.test.ts": 2595,- "test/sync-sole-non-default-routing.test.ts": 1163,- "test/sync-strategy.test.ts": 4,- "test/sync-timeout-cli-dispatch.test.ts": 772,- "test/sync-timeout.test.ts": 18,- "test/sync-trigger-cli.test.ts": 415,- "test/sync-walker-submodule.test.ts": 10,- "test/sync-walker-symlink.test.ts": 50,- "test/sync-working-tree-cli.test.ts": 915,- "test/sync-working-tree.test.ts": 1095,- "test/sync.test.ts": 7569,- "test/synth-enabled-default.test.ts": 0,- "test/synthesize-chunk-budget.test.ts": 32,- "test/system-prompt.test.ts": 5,- "test/take-proposals.test.ts": 475,- "test/takes-command-source-scope.test.ts": 61,- "test/takes-engine.test.ts": 408,- "test/takes-extract-json.test.ts": 9,+ "test/status-sections.test.ts": 25,+ "test/status-thin-client-skew.test.ts": 8,+ "test/storage-backfill.test.ts": 3,+ "test/storage-config.test.ts": 12,+ "test/storage-export.test.ts": 643,+ "test/storage-pglite.test.ts": 649,+ "test/storage-s3.test.ts": 72,+ "test/storage-status.test.ts": 12,+ "test/storage-supabase.test.ts": 4009,+ "test/storage-sync.test.ts": 28,+ "test/storage.test.ts": 102,+ "test/stub-guard-audit.test.ts": 16,+ "test/subagent-aggregator.test.ts": 5,+ "test/subagent-audit.test.ts": 5,+ "test/subagent-handler.test.ts": 1110,+ "test/subagent-prompt-too-long.test.ts": 3,+ "test/subagent-required-writes.test.ts": 4,+ "test/subagent-tool-ledger.test.ts": 436,+ "test/subagent-transcript.test.ts": 561,+ "test/subagent-v1-v2-shim.test.ts": 1388,+ "test/submit-agent.test.ts": 2287,+ "test/submit-queue-state.test.ts": 698,+ "test/sum-stale-chunk-chars.test.ts": 476,+ "test/supabase-admin.test.ts": 2,+ "test/supervisor-audit.test.ts": 3,+ "test/supervisor-build-worker-args.test.ts": 2,+ "test/supervisor-configuration-blocked.test.ts": 8274,+ "test/supervisor-db-lock.test.ts": 278,+ "test/supervisor-health-reconnect.test.ts": 18,+ "test/supervisor-pid.test.ts": 3,+ "test/supervisor-tini.test.ts": 8,+ "test/supervisor-wedge.test.ts": 696,+ "test/supervisor.test.ts": 1815,+ "test/surface-audit.test.ts": 3,+ "test/svg-renderer.test.ts": 21,+ "test/sweep-writeback-corpus.test.ts": 705,+ "test/sweep.test.ts": 1702,+ "test/symbol-resolver-projection-race.test.ts": 453,+ "test/sync-all-missing-path.test.ts": 9,+ "test/sync-all-parallel.test.ts": 10,+ "test/sync-baseline-guard.test.ts": 5,+ "test/sync-brain-op-source-id.test.ts": 346,+ "test/sync-break-lock-all.test.ts": 1111,+ "test/sync-break-lock-source-resolution.test.ts": 391,+ "test/sync-break-lock-source.test.ts": 1144,+ "test/sync-classifier-widening.test.ts": 3,+ "test/sync-concurrency.test.ts": 4,+ "test/sync-cost-estimate.test.ts": 234,+ "test/sync-cost-preview.test.ts": 5,+ "test/sync-default-write-guard-dry-run.test.ts": 363,+ "test/sync-delegate-ladder.test.ts": 15,+ "test/sync-delete-batch.slow.test.ts": 17214,+ "test/sync-delete-batch.test.ts": 1870,+ "test/sync-deleted-slug-embed.test.ts": 780,+ "test/sync-delta.test.ts": 176,+ "test/sync-derived-reconcile.test.ts": 553,+ "test/sync-discover-git-root-stderr.test.ts": 278,+ "test/sync-embedding-infra-gate.test.ts": 5,+ "test/sync-exclude-config.test.ts": 1795,+ "test/sync-extract-scoped-metadata.test.ts": 1173,+ "test/sync-failures.test.ts": 23,+ "test/sync-git-autoinit.test.ts": 3139,+ "test/sync-git-paths.test.ts": 6,+ "test/sync-hard-deadline.test.ts": 5,+ "test/sync-include-hidden-config.test.ts": 879,+ "test/sync-include-hidden.test.ts": 58,+ "test/sync-incremental-image-2683.test.ts": 2123,+ "test/sync-isSyncable-shape.test.ts": 11,+ "test/sync-json-stdout-clean.test.ts": 1033,+ "test/sync-lock-busy-classification.test.ts": 1307,+ "test/sync-monorepo.test.ts": 1661,+ "test/sync-no-embed-sentinel.test.ts": 2,+ "test/sync-nudge-status-gate.test.ts": 2,+ "test/sync-parallel.test.ts": 3310,+ "test/sync-path-containment.test.ts": 13,+ "test/sync-policy.test.ts": 1,+ "test/sync-reconcile-mass-delete.test.ts": 4,+ "test/sync-rename-batch.test.ts": 1357,+ "test/sync-repo-source-routing.test.ts": 1267,+ "test/sync-slug-root-mode-4342.test.ts": 2456,+ "test/sync-sole-non-default-routing.test.ts": 816,+ "test/sync-strategy.test.ts": 10,+ "test/sync-timeout-cli-dispatch.test.ts": 557,+ "test/sync-timeout.test.ts": 5,+ "test/sync-trigger-cli.test.ts": 419,+ "test/sync-walker-submodule.test.ts": 2,+ "test/sync-walker-symlink.test.ts": 24,+ "test/sync-working-tree-cli.test.ts": 712,+ "test/sync-working-tree.test.ts": 1451,+ "test/sync.test.ts": 7676,+ "test/synth-enabled-default.test.ts": 15,+ "test/synthesize-chunk-budget.test.ts": 18,+ "test/system-prompt.test.ts": 13,+ "test/tailscale.test.ts": 8115,+ "test/take-proposals.test.ts": 415,+ "test/takes-command-source-scope.test.ts": 1377,+ "test/takes-engine.test.ts": 543,+ "test/takes-extract-json.test.ts": 10,"test/takes-fence.test.ts": 8,- "test/takes-holder-semantics.test.ts": 4,- "test/takes-holder-validation.test.ts": 16,- "test/takes-list-subcommand.test.ts": 415,- "test/takes-propose-drain.test.ts": 411,+ "test/takes-holder-semantics.test.ts": 5,+ "test/takes-holder-validation.test.ts": 5,+ "test/takes-list-subcommand.test.ts": 446,+ "test/takes-propose-drain.test.ts": 622,"test/takes-resolution.test.ts": 5,- "test/takes-source-scope.test.ts": 2613,- "test/takes-weight-rounding.test.ts": 18,- "test/takes-write-ops.test.ts": 1636,- "test/template-repo-generator.test.ts": 5,- "test/test-reads-source-smell.test.ts": 203,- "test/text-safe.test.ts": 35,- "test/thin-client-routing-audit.test.ts": 23,- "test/thin-client-routing.test.ts": 9,- "test/thin-client-source-scope.test.ts": 103,- "test/thin-client-upgrade-prompt.test.ts": 19,- "test/think-ab.test.ts": 9,- "test/think-cost.test.ts": 33,- "test/think-entity-extract.test.ts": 3,- "test/think-envelope-salvage.test.ts": 560,- "test/think-gaps.test.ts": 10,- "test/think-gateway-adapter.test.ts": 196,- "test/think-intent.test.ts": 19,- "test/think-max-output-tokens.test.ts": 487,- "test/think-pages-block.test.ts": 18,- "test/think-persist-take.test.ts": 315,- "test/think-sanitize-trajectory.test.ts": 12,- "test/think-trajectory-injection.test.ts": 666,- "test/think-with-calibration.test.ts": 3,- "test/timeline-date-batch.test.ts": 332,- "test/timeline-dedup-repair.test.ts": 560,- "test/timeline-dup-skipped-3827.test.ts": 2765,+ "test/takes-source-scope.test.ts": 544,+ "test/takes-weight-rounding.test.ts": 4,+ "test/takes-write-ops.test.ts": 8616,+ "test/template-repo-generator.test.ts": 7,+ "test/test-backends.test.ts": 1,+ "test/test-reads-source-smell.test.ts": 2296,+ "test/text-safe.test.ts": 7,+ "test/thin-client-launcher-routing.test.ts": 1455,+ "test/thin-client-routing-audit.test.ts": 46,+ "test/thin-client-routing.test.ts": 20,+ "test/thin-client-source-scope.test.ts": 40,+ "test/thin-client-upgrade-prompt.test.ts": 73,+ "test/think-ab.test.ts": 12,+ "test/think-cost.test.ts": 9,+ "test/think-entity-extract.test.ts": 2,+ "test/think-envelope-salvage.test.ts": 501,+ "test/think-gaps.test.ts": 7,+ "test/think-gateway-adapter.test.ts": 365,+ "test/think-intent.test.ts": 3,+ "test/think-max-output-tokens.test.ts": 366,+ "test/think-pages-block.test.ts": 11,+ "test/think-persist-take.test.ts": 513,+ "test/think-sanitize-trajectory.test.ts": 21,+ "test/think-trajectory-injection.test.ts": 405,+ "test/think-with-calibration.test.ts": 4,+ "test/timeline-date-batch.test.ts": 274,+ "test/timeline-dedup-repair.test.ts": 434,+ "test/timeline-dup-skipped-3827.test.ts": 869,"test/timeline-entry-subagent-fence.test.ts": 4,- "test/timeline-write-through.test.ts": 4723,- "test/timeout.test.ts": 78,- "test/timing-safe.test.ts": 8,- "test/title-fuzzy-index.test.ts": 485,- "test/token-budget.test.ts": 12,- "test/token-mint.test.ts": 395,- "test/tool-catalog.test.ts": 14,- "test/track1-save-time-entity-resolution.test.ts": 4,- "test/trajectory-format.test.ts": 5,- "test/trajectory.test.ts": 2,+ "test/timeline-parser-regression.test.ts": 216,+ "test/timeline-reconcile-all-paths.test.ts": 2409,+ "test/timeline-write-through.test.ts": 4222,+ "test/timeout.test.ts": 75,+ "test/timing-safe.test.ts": 4,+ "test/title-fuzzy-index.test.ts": 644,+ "test/token-budget.test.ts": 3,+ "test/token-mint-shared-skills.test.ts": 4,+ "test/token-mint.test.ts": 387,+ "test/tool-catalog.test.ts": 12,+ "test/track1-save-time-entity-resolution.test.ts": 10,+ "test/trajectory-format.test.ts": 8,+ "test/trajectory-timeout-timers.test.ts": 281,+ "test/trajectory.test.ts": 6,"test/transcript-adapters.test.ts": 228,- "test/transcript-capture.test.ts": 230,- "test/transcript-render.test.ts": 40,- "test/transcription-injection.test.ts": 27,- "test/transcription.test.ts": 28,+ "test/transcript-capture.test.ts": 213,+ "test/transcript-render.test.ts": 28,+ "test/transcription-injection.test.ts": 7,+ "test/transcription.test.ts": 7,"test/transcripts-claude-code-workflow-drift.test.ts": 9,- "test/transcripts-expand-paths.test.ts": 11,- "test/transcripts-ingest-pglite.test.ts": 8590,- "test/transcripts-max-bytes.test.ts": 5,- "test/transcripts-nul.test.ts": 716,- "test/transcripts-self-exclusion.test.ts": 1,- "test/transcripts-truncated-scan.test.ts": 28,- "test/transcripts.test.ts": 9,- "test/traverse-graph-dedup.test.ts": 471,- "test/traverse-graph-op-default.test.ts": 1992,- "test/traverse-paths-row-cap.test.ts": 56718,- "test/trust-boundary-contract.test.ts": 4,- "test/truthful-catalog.e2e-lite.test.ts": 922,- "test/tty-harness.test.ts": 1329,- "test/turn-context.test.ts": 1497,- "test/two-pass.test.ts": 528,- "test/undo-wave.test.ts": 21,- "test/unfederate-read-scope-2928.test.ts": 1792,- "test/upgrade-reembed-prompt.test.ts": 540,- "test/upgrade-reference-sweep.test.ts": 265,- "test/upgrade-skill-publish-prompt-race.test.ts": 7,- "test/url-redact.test.ts": 5,- "test/url-safety.test.ts": 28,- "test/utils.test.ts": 7,- "test/v0_29-tool-surfaces.test.ts": 5,- "test/v81-v82-smoke.test.ts": 284,- "test/validate-params.test.ts": 21,- "test/vector-ef-search.test.ts": 2810,- "test/vector-index-lifecycle.test.ts": 9,- "test/voice-gate.test.ts": 8,- "test/volunteer-context.test.ts": 563,- "test/volunteer-events-delivery.test.ts": 15,- "test/voyage-multimodal.test.ts": 23,- "test/wait-for-completion.test.ts": 8213,- "test/watch-command.test.ts": 573,- "test/wave-security-scan.test.ts": 356,- "test/whoami.test.ts": 43,- "test/whoknows-doctor.test.ts": 5,- "test/whoknows.test.ts": 5,- "test/worker-conn-resilience-1720.test.ts": 118,- "test/worker-job-isolation.test.ts": 2892,- "test/worker-lock-renewal-shape.test.ts": 21,- "test/worker-lock-renewal.test.ts": 17,- "test/worker-pool.test.ts": 256,- "test/worker-promote-reconnect.test.ts": 0,- "test/worker-rss.test.ts": 9,- "test/worker-shutdown-disconnect.test.ts": 448,- "test/worker-supervised-db-probe.test.ts": 780,- "test/worker-watchdog-trigger.test.ts": 513,- "test/write-through.test.ts": 5914,- "test/write-verify-guard.test.ts": 1137,- "test/write-vocabulary.test.ts": 5,- "test/writeback-config.test.ts": 12,- "test/writer.test.ts": 8002,- "test/yaml-lite.test.ts": 1,- "test/zombie-reap.test.ts": 17+ "test/transcripts-expand-paths.test.ts": 3,+ "test/transcripts-ingest-pglite.test.ts": 5483,+ "test/transcripts-max-bytes.test.ts": 78,+ "test/transcripts-nul.test.ts": 483,+ "test/transcripts-retitle.test.ts": 1295,+ "test/transcripts-self-exclusion.test.ts": 12,+ "test/transcripts-truncated-scan.test.ts": 7,+ "test/transcripts.test.ts": 5,+ "test/traverse-graph-dedup.test.ts": 262,+ "test/traverse-graph-op-default.test.ts": 348,+ "test/traverse-paths-row-cap.test.ts": 1220,+ "test/traverse-walk-cap.test.ts": 600,+ "test/trust-boundary-contract.test.ts": 3,+ "test/truthful-catalog.e2e-lite.test.ts": 513,+ "test/tty-harness.test.ts": 1242,+ "test/turn-context.test.ts": 3919,+ "test/two-pass.test.ts": 794,+ "test/undo-wave.test.ts": 4,+ "test/unfederate-read-scope-2928.test.ts": 1512,+ "test/upgrade-reembed-prompt.test.ts": 232,+ "test/upgrade-reference-sweep.test.ts": 100,+ "test/upgrade-skill-publish-prompt-race.test.ts": 8,+ "test/url-redact.test.ts": 2,+ "test/url-safety.test.ts": 7,+ "test/utils.test.ts": 8,+ "test/v0_29-tool-surfaces.test.ts": 15,+ "test/v81-v82-smoke.test.ts": 213,+ "test/validate-params.test.ts": 19,+ "test/vector-ef-search.test.ts": 3053,+ "test/vector-index-lifecycle.test.ts": 10,+ "test/version-history-privacy.test.ts": 508,+ "test/voice-gate.test.ts": 37,+ "test/volunteer-context.test.ts": 468,+ "test/volunteer-events-delivery.test.ts": 3,+ "test/voyage-multimodal.test.ts": 45,+ "test/wait-for-completion.test.ts": 7438,+ "test/watch-command.test.ts": 446,+ "test/wave-security-scan.test.ts": 235,+ "test/whoami.test.ts": 12,+ "test/whoknows-doctor.test.ts": 4,+ "test/whoknows.test.ts": 9,+ "test/withdrawal-bounded-safety.test.ts": 10741,+ "test/withdrawal-crash.slow.test.ts": 4629,+ "test/withdrawal-overlay-concurrency.test.ts": 501,+ "test/withdrawal-publication-file.test.ts": 330,+ "test/worker-configuration-release.test.ts": 31652,+ "test/worker-conn-resilience-1720.test.ts": 175,+ "test/worker-job-isolation.test.ts": 27900,+ "test/worker-lock-renewal-shape.test.ts": 6,+ "test/worker-lock-renewal.test.ts": 9,+ "test/worker-pool.test.ts": 239,+ "test/worker-promote-reconnect.test.ts": 12,+ "test/worker-renewal-configuration.test.ts": 1010,+ "test/worker-rss.test.ts": 6,+ "test/worker-shutdown-disconnect.test.ts": 459,+ "test/worker-supervised-db-probe.test.ts": 513,+ "test/worker-watchdog-trigger.test.ts": 1208,+ "test/write-through.test.ts": 3663,+ "test/write-verify-guard.test.ts": 615,+ "test/write-vocabulary.test.ts": 8,+ "test/writeback-config.test.ts": 20,+ "test/writer.test.ts": 7877,+ "test/yaml-lite.test.ts": 10,+ "test/zombie-reap.test.ts": 11}diff --git a/scripts/test-weights.metadata.json b/scripts/test-weights.metadata.jsonindex 0f50b340b1..5818b00cc3 100644--- a/scripts/test-weights.metadata.json+++ b/scripts/test-weights.metadata.json@@ -1,10 +1,10 @@{"lane": "unit","unit": "milliseconds",- "run": "34998157700",- "commit": "f1fbdfba193383785b555b507f5c817003944aea",- "source": "github",- "measuredFiles": 1745,- "totalFiles": 1745,- "mergeExisting": false+ "run": null,+ "commit": null,+ "source": "file",+ "measuredFiles": 2038,+ "totalFiles": 2039,+ "mergeExisting": true}diff --git a/scripts/ubicloud/ci-item.sh b/scripts/ubicloud/ci-item.shindex 8561ece092..3265756eda 100755--- a/scripts/ubicloud/ci-item.sh+++ b/scripts/ubicloud/ci-item.sh@@ -29,6 +29,8 @@ unset SLOTexport GBRAIN_CI_DISABLE_TEST_ENV_FILE=1export GBRAIN_PGLITE_SNAPSHOT=test/fixtures/pglite-snapshot.tarexport GBRAIN_TEST_TIMEOUT_MULTIPLIER="${GBRAIN_TEST_TIMEOUT_MULTIPLIER:-6}"+# Pull-request scale for export-scale.slow.test.ts; the 100,001-page run is master CI's.+export GBRAIN_TEST_EXPORT_SCALE_PAGES="${GBRAIN_TEST_EXPORT_SCALE_PAGES:-10001}"unset DATABASE_URL GBRAIN_DATABASE_URL# Throwaway password of the loopback-only slot servers setup-ci-vm.sh starts.diff --git a/templates/bootstrap/template-repo/README.md b/templates/bootstrap/template-repo/README.mdindex 1c7ac74e4d..0436ba3255 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.6.0 -->+<!-- gbrain-template-stamp: 0.60.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/export-scale.slow.test.ts b/test/export-scale.slow.test.tsindex 491ddcb868..de95e9124a 100644--- a/test/export-scale.slow.test.ts+++ b/test/export-scale.slow.test.ts@@ -10,6 +10,14 @@ import { parseFactsFence, renderFactsTable } from '../src/core/facts-fence.ts';import { ExportStage } from '../src/core/export-stage.ts';import { requirePostgresTestDatabase, testBackends } from './helpers/test-backends.ts';+const PAGES = Number(process.env.GBRAIN_TEST_EXPORT_SCALE_PAGES ?? 100001);+if (!Number.isInteger(PAGES) || PAGES < 1001 || PAGES % 100 !== 1 || PAGES > 999999) {+ throw new Error(`GBRAIN_TEST_EXPORT_SCALE_PAGES must be a multiple of 100 plus 1, between 1001 and 999901, got ${process.env.GBRAIN_TEST_EXPORT_SCALE_PAGES}`);+}+const FENCED = (PAGES - 1) / 100;+const NONEMPTY_BATCHES = Math.ceil(PAGES / 256);+const pageFile = (n: number) => `scale/p${String(n).padStart(6, '0')}.md`;+for (const backend of testBackends()) describe(`export scale: ${backend}`, () => {let engine: BrainEngine;beforeAll(async () => {@@ -18,7 +26,7 @@ for (const backend of testBackends()) describe(`export scale: ${backend}`, () =>await engine.initSchema();}, 60000);afterAll(async () => { await engine.disconnect(); });- test('exports all 100001 pages with bounded keyset enumeration', async () => {+ test(`exports all ${PAGES} pages with bounded keyset enumeration`, async () => {const dir = realpathSync(mkdtempSync(join(tmpdir(), 'export-scale-')));const started = performance.now();let batches = 0, largestBatch = 0, ledgerReads = 0, normalizations = 0;@@ -34,7 +42,7 @@ for (const backend of testBackends()) describe(`export scale: ${backend}`, () =>await engine.executeRaw(`INSERT INTO pages (source_id,slug,type,title,compiled_truth,timeline,frontmatter,generation)SELECT 'default', 'scale/p' || lpad(n::text,6,'0'), 'note', 'Synthetic ' || n,'Body ' || n || CASE WHEN n%100=0 THEN chr(10)||$1 ELSE '' END, '', '{}'::jsonb, n- FROM generate_series(1,100001) n`, [fenced]);+ FROM generate_series(1,$2::int) n`, [fenced, PAGES]);} finally { await engine.executeRaw('ALTER TABLE pages ENABLE TRIGGER bump_page_generation_trg'); }await engine.executeRaw(`INSERT INTO fact_withdrawals(source_id,visibility,fact_hash)SELECT 'default','world',gbrain_fact_fingerprint(CASE WHEN n=1 THEN 'Synthetic withdrawn claim'@@ -42,7 +50,7 @@ for (const backend of testBackends()) describe(`export scale: ${backend}`, () =>await engine.executeRaw("INSERT INTO tags(page_id,tag) SELECT id,'scale-tag' FROM pages WHERE right(slug,2)='00'");await engine.executeRaw("INSERT INTO raw_data(page_id,source,data) SELECT id,'feed',jsonb_build_object('slug',slug) FROM pages WHERE right(slug,2)='00'");const seededMs = performance.now() - started;- console.log(JSON.stringify({ backend, seeded: 100001, seededMs: Math.round(seededMs) }));+ console.log(JSON.stringify({ backend, seeded: PAGES, seededMs: Math.round(seededMs) }));engine.executeRaw = async function (query: string, params?: unknown[], options?: never) {executeRawQueries++;const rows = await real.call(this, query, params, options);@@ -59,21 +67,22 @@ for (const backend of testBackends()) describe(`export scale: ${backend}`, () =>return close.call(this);};await runExport(engine, ['--dir', dir]);- expect(readdirSync(join(dir, 'scale')).filter(name => name.endsWith('.md')).length).toBe(100001);- expect(readdirSync(join(dir, 'scale/.raw')).length).toBe(1000);- expect(readFileSync(join(dir, 'scale/p100001.md'), 'utf8')).toContain('Body 100001');- expect(readFileSync(join(dir, 'scale/p100000.md'), 'utf8')).toContain('scale-tag');- expect(parseFactsFence(readFileSync(join(dir, 'scale/p100000.md'), 'utf8')).facts[0].active).toBe(false);+ expect(readdirSync(join(dir, 'scale')).filter(name => name.endsWith('.md')).length).toBe(PAGES);+ expect(readdirSync(join(dir, 'scale/.raw')).length).toBe(FENCED);+ expect(readFileSync(join(dir, pageFile(PAGES)), 'utf8')).toContain(`Body ${PAGES}`);+ expect(readFileSync(join(dir, pageFile(PAGES - 1)), 'utf8')).toContain('scale-tag');+ expect(parseFactsFence(readFileSync(join(dir, pageFile(PAGES - 1)), 'utf8')).facts[0].active).toBe(false);expect(parseFactsFence(readFileSync(join(dir, 'scale/p000100.md'), 'utf8')).facts[0].active).toBe(false);- expect(JSON.parse(readFileSync(join(dir, 'scale/.raw/p100000.json'), 'utf8'))).toEqual({ feed: { slug: 'scale/p100000' } });- expect(batches).toBe(392); expect(largestBatch).toBe(256);- expect(ledgerReads).toBe(391); expect(normalizations).toBe(1000);- expect(transactions).toBe(1); expect(rawQueries).toBe(1000);- expect(executeRawQueries).toBe(100001 + 392 + 391 * 2 + 1000 + 2);- expect(stagingPayloadBytes).toBeGreaterThan(100001);+ expect(JSON.parse(readFileSync(join(dir, `scale/.raw/p${String(PAGES - 1).padStart(6, '0')}.json`), 'utf8')))+ .toEqual({ feed: { slug: `scale/p${String(PAGES - 1).padStart(6, '0')}` } });+ expect(batches).toBe(NONEMPTY_BATCHES + 1); expect(largestBatch).toBe(256);+ expect(ledgerReads).toBe(NONEMPTY_BATCHES); expect(normalizations).toBe(FENCED);+ expect(transactions).toBe(1); expect(rawQueries).toBe(FENCED);+ expect(executeRawQueries).toBe(PAGES + (NONEMPTY_BATCHES + 1) + NONEMPTY_BATCHES * 2 + FENCED + 2);+ expect(stagingPayloadBytes).toBeGreaterThan(PAGES);expect(stagingManifestBytes).toBeGreaterThan(stagingPayloadBytes);- console.log(JSON.stringify({ backend, selected: 100001, processed: 100001, rawSidecars: 1000, taggedPages: 1000,- withdrawals: 1000, fencedPages: 1000, ledgerReads, normalizations, blocked: 0, failed: 0, retries: 0,+ console.log(JSON.stringify({ backend, selected: PAGES, processed: PAGES, rawSidecars: FENCED, taggedPages: FENCED,+ withdrawals: 1000, fencedPages: FENCED, ledgerReads, normalizations, blocked: 0, failed: 0, retries: 0,stagingPayloadBytes, stagingManifestBytes, executeRawQueries, rawQueries, transactions,totalSqlStatements: executeRawQueries + rawQueries + transactions * 2,batches, largestBatch, durationMs: Math.round(performance.now() - started), exportMs: Math.round(performance.now() - started - seededMs), peakRssKb: process.resourceUsage().maxRSS }));diff --git a/test/last-retrieved.test.ts b/test/last-retrieved.test.tsindex fcd5bc8e69..83bb7dea05 100644--- a/test/last-retrieved.test.ts+++ b/test/last-retrieved.test.ts@@ -125,14 +125,16 @@ describe('awaitPendingLastRetrievedWrites', () => {await new Promise((r) => setTimeout(r, 10));expect(_peekPendingLastRetrievedWritesForTests()).toBe(1);- const t0 = Date.now();+ const t0 = performance.now();const result = await awaitPendingLastRetrievedWrites(100); // 100ms test timeout- const dt = Date.now() - t0;+ const dt = performance.now() - t0;expect(result.outcome).toBe('timeout');expect(result.pending).toBe(1);- // Should return within timeout + small buffer; not block forever- expect(dt).toBeGreaterThanOrEqual(100);+ // Should return within timeout + small buffer; not block forever. Timers+ // are scheduled at whole-millisecond granularity, so a 100ms timer can be+ // observed at 99.x ms (CI saw 99 with Date.now()).+ expect(dt).toBeGreaterThanOrEqual(99);expect(dt).toBeLessThan(300);// C1 fix: snapshot's tracked promises ARE dropped from the set on// timeout so the next drain doesn't see ghosts (daemon leak guard).diff --git a/test/release-workflow.test.ts b/test/release-workflow.test.tsindex 3b039d2200..e82bbce78a 100644--- a/test/release-workflow.test.ts+++ b/test/release-workflow.test.ts@@ -32,7 +32,7 @@ describe('release.yml ↔ binary-self-update asset contract', () => {expect(compiler).toBe('1.4.2');const native = readFileSync(join(ROOT, '.github/workflows/native-locks.yml'), 'utf8');const matrices = [...native.matchAll(/bun:\s*\[([^\]]+)\]/g)];- expect(matrices).toHaveLength(2);+ expect(matrices).toHaveLength(4);for (const matrix of matrices) {expect(matrix[1]).toContain(`'${compiler}'`);}diff --git a/test/schema-pack-unify-types-handler.test.ts b/test/schema-pack-unify-types-handler.test.tsindex 5dcd0babec..78485c23ab 100644--- a/test/schema-pack-unify-types-handler.test.ts+++ b/test/schema-pack-unify-types-handler.test.ts@@ -6,16 +6,28 @@// gbrain-unify lock held; verify-step thresholds.import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from 'bun:test';+import { withEnv } from './helpers/with-env.ts';import { PGLiteEngine } from '../src/core/pglite-engine.ts';import { resetPgliteState } from './helpers/reset-pglite.ts';-import { runUnifyTypes } from '../src/core/schema-pack/unify-types-handler.ts';+import { runUnifyTypes as runUnifyTypesRaw } from '../src/core/schema-pack/unify-types-handler.ts';import { _resetPackCacheForTests } from '../src/core/schema-pack/registry.ts';import { ALLOWED_TYPES } from '../src/core/facts/conversation-types.ts';import { parseSchemaPackManifest, parseYamlMini } from '../src/core/schema-pack/index.ts';let engine: PGLiteEngine;+let fileHome: string;++// apply:true flips the active pack with saveConfig() into $GBRAIN_HOME. The+// preload's GBRAIN_HOME is shared by every file in the bun process, so a+// leaked schema_pack there changes the active pack for later files+// (link-source-namespaced-regex saw gbrain-base-v2 instead of gbrain-base).+// Every call in this file therefore runs against a file-private home.+function runUnifyTypes(...args: Parameters<typeof runUnifyTypesRaw>) {+ return withEnv({ GBRAIN_HOME: fileHome }, () => runUnifyTypesRaw(...args));+}beforeAll(async () => {+ fileHome = mkdtempSync(join(tmpdir(), 'gbrain-unify-file-home-'));engine = new PGLiteEngine();await engine.connect({});await engine.initSchema();@@ -23,6 +35,8 @@ beforeAll(async () => {afterAll(async () => {await engine.disconnect();+ rmSync(fileHome, { recursive: true, force: true });+ _resetPackCacheForTests();});beforeEach(async () => {@@ -220,7 +234,6 @@ import { readFileSync } from 'fs';import { mkdtempSync, mkdirSync, writeFileSync, rmSync } from 'node:fs';import { tmpdir } from 'node:os';import { join } from 'node:path';-import { withEnv } from './helpers/with-env.ts';function filteredCatchAllPack(name: string, filterLines: string): string {return `api_version: gbrain-schema-pack-v1@@ -262,7 +275,7 @@ describe('#4651 catch-all retype carries slug_filter/path_filter into synthesizeit('dry-run: slug_filter scopes the synthesized rules — out-of-filter pages are not counted', async () => {await seed('inbox/legacy-a', 'widget-legacy');await seed('keep/legacy-b', 'widget-legacy');- const result = await withEnv({ GBRAIN_HOME: home }, () => runUnifyTypes(ctxOf(), {+ const result = await withEnv({ GBRAIN_HOME: home }, () => runUnifyTypesRaw(ctxOf(), {target_pack: 'unify-catchall-slugfilter',apply: false,}));@@ -274,7 +287,7 @@ describe('#4651 catch-all retype carries slug_filter/path_filter into synthesizeit('apply: path_filter parity — a same-type page outside the filter keeps its type', async () => {await seed('inbox/legacy-a', 'widget-legacy');await seed('keep/legacy-b', 'widget-legacy');- const result = await withEnv({ GBRAIN_HOME: home }, () => runUnifyTypes(ctxOf(), {+ const result = await withEnv({ GBRAIN_HOME: home }, () => runUnifyTypesRaw(ctxOf(), {target_pack: 'unify-catchall-pathfilter',apply: true,}));diff --git a/test/scripts/ci-pr-scope.test.ts b/test/scripts/ci-pr-scope.test.tsnew file mode 100644index 0000000000..adad707ac8--- /dev/null+++ b/test/scripts/ci-pr-scope.test.ts@@ -0,0 +1,119 @@+import { describe, expect, test } from 'bun:test';+import { chmodSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import { spawnSync } from 'node:child_process';+import { runInNewContext } from 'node:vm';+import { safeLoad } from 'js-yaml';++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> }> };+const root = join(import.meta.dir, '../..');+const load = (name: string) => safeLoad(readFileSync(join(root, '.github/workflows', name), 'utf8')) as { jobs: Record<string, Job> };+const evaluate = (expression: string, context: Record<string, unknown>) =>+ runInNewContext(expression.replace(/^\$\{\{\s*|\s*\}\}$/g, ''), { fromJSON: JSON.parse, ...context }, { timeout: 100 });++function cells(job: Job, context: Record<string, unknown>): string[] {+ if (job.if && !evaluate(job.if, context)) return [];+ const { exclude, ...axes } = job.strategy!.matrix;+ const excluded = (exclude ? evaluate(exclude, context) : []) as Array<Record<string, string>>;+ let combos: Array<Record<string, string>> = [{}];+ for (const [key, values] of Object.entries(axes)) combos = combos.flatMap(combo => (values as string[]).map(value => ({ ...combo, [key]: value })));+ return combos.filter(combo => !excluded.some(rule => Object.entries(rule).every(([key, value]) => combo[key] === value)))+ .map(combo => Object.values(combo).join('/'));+}++const native = load('native-locks.yml').jobs;+const nativeCells = (scope: string) => ({+ native: cells(native.native, { inputs: { scope } }),+ musl: cells(native.musl, { inputs: { scope } }),+ console: cells(native['windows-backup-console'], { inputs: { scope } }),+ dotnet: cells(native['windows-backup-dotnet'], { inputs: { scope } }),+ openclaw: evaluate(native.openclaw.if!, { inputs: { scope } }),+});++function classify(files: string): string {+ const result = spawnSync('bash', [join(root, 'scripts/ci-native-scope.sh')], { input: files, encoding: 'utf8' });+ expect(result.status, result.stderr).toBe(0);+ return result.stdout.trim();+}++describe('pull-request CI scope', () => {+ test('pushes, schedules and manual runs keep every Bun version on every native target', () => {+ const full = nativeCells('full');+ expect(full.native).toHaveLength(18);+ expect(full.musl).toHaveLength(6);+ expect(full.console).toHaveLength(6);+ expect(full.dotnet).toHaveLength(6);+ expect(full.openclaw).toBe(true);+ });++ 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.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 });+ });++ test('native path changes, an empty list and docs-only diffs classify as expected', () => {+ expect(classify('docs/guides/example.md\nsrc/commands/doctor.ts\n')).toBe('smoke');+ for (const path of ['native/locks/lock.c', 'scripts/native/build.ts', 'src/core/pglite-lock.ts', 'src/core/persistence/journal.ts',+ 'src/core/context/ipc-path.ts', 'src/commands/backup.ts', 'src/core/export-stage.ts', 'test/native-lock.test.ts',+ 'bun.lock', 'package.json', '.github/workflows/native-locks.yml', 'openclaw.plugin.json']) {+ expect(classify(`README.md\n${path}\n`), path).toBe('primary');+ }+ expect(classify('')).toBe('primary');+ });++ test('the planning job runs the full matrix off pull requests and never narrows on an unreadable diff', () => {+ const step = load('test.yml').jobs.changes.steps!.find(entry => entry.id === 'scope')!;+ const dir = mkdtempSync(join(tmpdir(), 'gbrain-ci-scope-'));+ try {+ const run = (event: string, gh: string) => {+ writeFileSync(join(dir, 'gh'), `#!/usr/bin/env bash\n${gh}\n`);+ chmodSync(join(dir, 'gh'), 0o755);+ const output = join(dir, 'out');+ writeFileSync(output, '');+ const result = spawnSync('bash', ['-c', step.run!], { cwd: root, encoding: 'utf8',+ env: { PATH: `${dir}:${process.env.PATH}`, EVENT: event, PR: '7', REPO: 'example/repo', GITHUB_OUTPUT: output } });+ expect(result.status, result.stderr).toBe(0);+ return readFileSync(output, 'utf8').trim();+ };+ expect(run('push', 'exit 1')).toBe('native=full');+ expect(run('schedule', 'exit 1')).toBe('native=full');+ expect(run('workflow_dispatch', 'exit 1')).toBe('native=full');+ expect(run('pull_request', 'exit 1')).toBe('native=primary');+ expect(run('pull_request', "printf 'docs/a.md\\n'")).toBe('native=smoke');+ expect(run('pull_request', "printf 'src/core/pglite-lock.ts\\n'")).toBe('native=primary');+ } finally { rmSync(dir, { recursive: true, force: true }); }+ });++ test('security and persistence matrices drop only the oldest Bun version on pull requests', () => {+ const pr = { github: { event_name: 'pull_request' } };+ 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-latest/1.3.13', 'windows-latest/1.3.13']);+ 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')));+ }+ });++ test('export scale runs 10,001 pages on pull requests and 100,001 everywhere else', () => {+ const step = load('test.yml').jobs['slow-entity-resolve-perf'].steps!.find(entry => entry.run?.includes('test/export-scale.slow.test.ts'))!;+ const expression = step.env!.GBRAIN_TEST_EXPORT_SCALE_PAGES!;+ 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');+ });+});diff --git a/test/scripts/ci-runner-routing.test.ts b/test/scripts/ci-runner-routing.test.tsindex 20a658a096..bba935c4c8 100644--- a/test/scripts/ci-runner-routing.test.ts+++ b/test/scripts/ci-runner-routing.test.ts@@ -6,7 +6,7 @@ import { safeLoad } from 'js-yaml';type Job = {'runs-on'?: string;- strategy?: { matrix: { os?: string[]; include?: Array<{ runner: string; target: string }> } };+ strategy?: { matrix: { os?: string[]; target?: string[] } };};const root = join(import.meta.dir, '../..');const load = (name: string) => safeLoad(readFileSync(join(root, '.github/workflows', name), 'utf8')) as { jobs: Record<string, Job> };@@ -14,6 +14,11 @@ const normal = 'ubicloud-standard-16-ubuntu-2404';const heavy = 'ubicloud-standard-30-ubuntu-2404';const small = 'ubicloud-standard-2-ubuntu-2404';const report = 'ubicloud-standard-4-ubuntu-2404';+const single = report;+const pooled = 'ubicloud-standard-8-ubuntu-2404';+const arm = 'ubicloud-standard-4-arm-ubuntu-2404';+const targetRunners = (job: Job) =>+ JSON.parse(/fromJSON\('([^']+)'\)\[matrix\.target\]/.exec(job['runs-on']!)![1]!) as Record<string, string>;describe('CI runner routing', () => {test('owned Linux validation jobs use Ubicloud without moving release publishing', () => {@@ -21,7 +26,7 @@ describe('CI runner routing', () => {for (const job of Object.values(load(file).jobs)) {const runner = job['runs-on'];if (!runner || runner.startsWith('${{')) continue;- expect(runner, file).toMatch(/^ubicloud-standard-(2|4|16|30)-ubuntu-2404$/);+ expect(runner, file).toMatch(/^ubicloud-standard-(2|4|8|16|30)-ubuntu-2404$/);}}const release = readFileSync(join(root, '.github/workflows/release.yml'), 'utf8');@@ -29,16 +34,25 @@ describe('CI runner routing', () => {expect(load('osv-scanner.yml').jobs['osv-scan']['runs-on']).toBeUndefined();});- test('test and database lanes receive larger machines, with extra capacity for soaks', () => {- for (const name of ['verify', 'serial-tests', 'test', 'slow-eval-longmemeval', 'slow-brainbench-e2e', 'brainbench', 'slow-entity-resolve-perf', 'admin-browser', 'shared-skills-compatibility']) {- expect(load('test.yml').jobs[name]['runs-on'], name).toBe(normal);+ test('single-process lanes and soaks use 4 vCPUs, pooled lanes 8, and the label-gated heavy suite keeps 30', () => {+ // Measured: a unit shard is one bun process (1.1-1.5 busy cores on average)+ // and took the same time on 4, 8 and 16 vCPUs; the serial pool and verify+ // match 16 vCPUs at 8.+ for (const name of ['test', 'slow-eval-longmemeval', 'slow-brainbench-e2e', 'brainbench', 'slow-entity-resolve-perf', 'admin-browser', 'shared-skills-compatibility']) {+ expect(load('test.yml').jobs[name]['runs-on'], name).toBe(single);}- for (const name of ['jsonb-parity', 'selected-e2e', 'tier1', 'tier2', 'coverage-full-unit', 'coverage-full-serial', 'coverage-full-slow', 'coverage-full-e2e']) {- expect(load('e2e.yml').jobs[name]['runs-on'], name).toBe(normal);+ for (const name of ['verify', 'serial-tests']) expect(load('test.yml').jobs[name]['runs-on'], name).toBe(pooled);+ // E2E files run one bun process at a time against the job's Postgres:+ // full-corpus shard 1 took 668s on 4 vCPUs, 704s on 8 and 741s on 16.+ for (const name of ['jsonb-parity', 'selected-e2e', 'tier2', 'coverage-full-unit', 'coverage-full-slow', 'coverage-full-e2e']) {+ expect(load('e2e.yml').jobs[name]['runs-on'], name).toBe(single);}- expect(load('persistence-validation.yml').jobs['read-performance']['runs-on']).toBe(normal);- expect(load('persistence-validation.yml').jobs['deployment-matrix']['runs-on']).toBe(normal);- expect(load('persistence-validation.yml').jobs.invariants['runs-on']).toBe(heavy);+ expect(load('e2e.yml').jobs.tier1['runs-on']).toBe(normal);+ expect(load('e2e.yml').jobs['coverage-full-serial']['runs-on']).toBe(pooled);+ expect(load('persistence-validation.yml').jobs['read-performance']['runs-on']).toBe(single);+ expect(load('persistence-validation.yml').jobs.invariants['runs-on']).toBe(single);+ expect(load('persistence-validation.yml').jobs.reconciliation['runs-on']).toBe(single);+ expect(load('persistence-validation.yml').jobs['deployment-matrix']['runs-on']).toBe(pooled);expect(load('heavy-tests.yml').jobs.heavy['runs-on']).toBe(heavy);});@@ -47,23 +61,24 @@ describe('CI runner routing', () => {expect(security.strategy!.matrix.os).toEqual(['ubuntu-latest', 'macos-latest', 'windows-latest']);for (const os of security.strategy!.matrix.os!) {const expression = security['runs-on']!.replace(/^\$\{\{\s*|\s*\}\}$/g, '');- expect(runInNewContext(expression, { matrix: { os } }, { timeout: 100 })).toBe(os === 'ubuntu-latest' ? normal : os);+ expect(runInNewContext(expression, { matrix: { os } }, { timeout: 100 })).toBe(os === 'ubuntu-latest' ? small : os);}const native = load('native-locks.yml');- const platforms = [- { runner: normal, target: 'linux-x64-glibc' },- { runner: 'ubicloud-standard-16-arm-ubuntu-2404', target: 'linux-arm64-glibc' },- { runner: 'macos-15', target: 'darwin-arm64' },- { runner: 'macos-15-intel', target: 'darwin-x64' },- { runner: 'windows-2022', target: 'win32-x64' },- { runner: 'windows-11-arm', target: 'win32-arm64' },- ];- expect(native.jobs.native.strategy!.matrix.include).toEqual(platforms);- expect(native.jobs.musl.strategy!.matrix.include).toEqual(platforms.slice(0, 2).map(({ runner, target }) => ({ runner, target: target.replace('glibc', 'musl') })));+ expect(targetRunners(native.jobs.native)).toEqual({+ 'linux-x64-glibc': single,+ 'linux-arm64-glibc': arm,+ 'darwin-arm64': 'macos-15',+ 'darwin-x64': 'macos-15-intel',+ 'win32-x64': 'windows-2022',+ 'win32-arm64': 'windows-11-arm',+ });+ expect(native.jobs.native.strategy!.matrix.target).toEqual(Object.keys(targetRunners(native.jobs.native)));+ expect(targetRunners(native.jobs.musl)).toEqual({ 'linux-x64-musl': single, 'linux-arm64-musl': arm });+ expect(native.jobs.musl.strategy!.matrix.target).toEqual(['linux-x64-musl', 'linux-arm64-musl']);});test('status and planning jobs stay small while coverage reports retain memory headroom', () => {- for (const name of ['gitleaks', 'dependency-audit', 'test-status', 'native-only-status']) {+ for (const name of ['changes', 'gitleaks', 'dependency-audit', 'test-status', 'native-only-status']) {expect(load('test.yml').jobs[name]['runs-on'], name).toBe(small);}for (const name of ['prepare-e2e', 'e2e-status']) expect(load('e2e.yml').jobs[name]['runs-on'], name).toBe(small);@@ -75,7 +90,7 @@ describe('CI runner routing', () => {test('actionlint recognizes every configured custom label and watches its configuration', () => {const config = safeLoad(readFileSync(join(root, '.github/actionlint.yaml'), 'utf8')) as { 'self-hosted-runner': { labels: string[] } };- expect(config['self-hosted-runner'].labels.sort()).toEqual([small, report, normal, heavy, 'ubicloud-standard-16-arm-ubuntu-2404'].sort());+ expect(config['self-hosted-runner'].labels.sort()).toEqual([small, report, pooled, normal, heavy, arm].sort());const workflow = safeLoad(readFileSync(join(root, '.github/workflows/actionlint.yml'), 'utf8')) as { on: Record<string, { paths: string[] }> };for (const event of ['push', 'pull_request']) expect(workflow.on[event].paths).toContain('.github/actionlint.yaml');});diff --git a/test/scripts/data-safety-native-workflow.test.ts b/test/scripts/data-safety-native-workflow.test.tsindex 6b00aaf917..30a731772d 100644--- a/test/scripts/data-safety-native-workflow.test.ts+++ b/test/scripts/data-safety-native-workflow.test.ts@@ -17,9 +17,9 @@ const workflow = safeLoad(readFileSync(join(import.meta.dir, '../../.github/workjobs: {native: { steps: Step[]; strategy: { matrix: { target: string[]; bun: string[] } } };'windows-backup-console': { steps: Step[]; 'runs-on': string; 'timeout-minutes': number;- strategy: { 'fail-fast': boolean; matrix: { include: { runner: string; bun: string }[] } } };+ strategy: { 'fail-fast': boolean; matrix: { runner: string[]; bun: string[]; exclude: string } } };'windows-backup-dotnet': { steps: Step[]; 'runs-on': string; 'timeout-minutes': number;- strategy: { 'fail-fast': boolean; matrix: { include: { runner: string; bun: string }[] } } };+ strategy: { 'fail-fast': boolean; matrix: { runner: string[]; bun: string[]; exclude: string } } };};};const suites = [@@ -37,8 +37,8 @@ describe('data-safety native CI coverage', () => {expect(job['runs-on']).toBe('${{ matrix.runner }}');expect(job['timeout-minutes']).toBe(5);expect(job.strategy['fail-fast']).toBe(false);- expect(job.strategy.matrix.include).toEqual(['windows-2022', 'windows-11-arm'].flatMap(runner =>- ['1.3.11', '1.3.13', '1.4.2'].map(bun => ({ runner, bun }))));+ expect(job.strategy.matrix.runner).toEqual(['windows-2022', 'windows-11-arm']);+ expect(job.strategy.matrix.bun).toEqual(['1.3.11', '1.3.13', '1.4.2']);expect(job.steps.some(entry => entry.run === 'bun scripts/native/verify.ts')).toBe(true);const step = job.steps.find(entry => entry.name === 'Compare native hidden-window launch behavior');expect(step).toBeDefined();@@ -72,8 +72,8 @@ describe('data-safety native CI coverage', () => {expect(job['runs-on']).toBe('${{ matrix.runner }}');expect(job['timeout-minutes']).toBe(5);expect(job.strategy['fail-fast']).toBe(false);- expect(job.strategy.matrix.include).toEqual(['windows-2022', 'windows-11-arm'].flatMap(runner =>- ['1.3.11', '1.3.13', '1.4.2'].map(bun => ({ runner, bun }))));+ expect(job.strategy.matrix.runner).toEqual(['windows-2022', 'windows-11-arm']);+ expect(job.strategy.matrix.bun).toEqual(['1.3.11', '1.3.13', '1.4.2']);expect(job.steps.some(entry => entry.run === 'bun scripts/native/verify.ts')).toBe(true);const step = job.steps.find(entry => entry.name === 'Compare cmdlet and direct dotnet ACL programs');expect(step).toBeDefined();diff --git a/test/scripts/evals-collection.test.ts b/test/scripts/evals-collection.test.tsindex afbbca4101..e6c4d234ae 100644--- a/test/scripts/evals-collection.test.ts+++ b/test/scripts/evals-collection.test.ts@@ -1,7 +1,7 @@/*** Guard for the evals/ → CI-matrix collection (scripts/test-shard.sh).*- * evals/**\/*.test.ts files run in the keyless 10-shard matrix. This repo's+ * evals/**\/*.test.ts files run in the keyless 8-shard matrix. This repo's* eval HARNESSES are key-requiring by default (Anthropic/OpenAI), so a new* test file dropped under evals/ could silently start spending tokens in CI* or fail keyless. Growth is therefore allowlist-gated: every collecteddiff --git a/test/scripts/native-lock-prebuilds.test.ts b/test/scripts/native-lock-prebuilds.test.tsindex b60774f373..636dbec704 100644--- a/test/scripts/native-lock-prebuilds.test.ts+++ b/test/scripts/native-lock-prebuilds.test.ts@@ -67,7 +67,8 @@ describe('native lock distribution integrity', () => {test('required CI executes every declared target at both supported Bun versions', () => {type NativeJob = {- strategy: { matrix: { bun: string[]; target: string[]; include: Array<{ runner: string; target: string }> } };+ 'runs-on': string;+ strategy: { matrix: { bun: string[]; target: string[] } };steps: Array<{ run?: string }>;};const workflow = safeLoad(readFileSync(join(repo, '.github/workflows/native-locks.yml'), 'utf8')) as {@@ -100,8 +101,9 @@ describe('native lock distribution integrity', () => {expect(lockTests!).toContain('test/local-ipc-path.test.ts');expect(script).toContain('bun scripts/native/compiled-smoke.ts');expect(script).toContain('bun scripts/native/verify.ts --rebuilt');+ const runners = JSON.parse(/fromJSON\('([^']+)'\)\[matrix\.target\]/.exec(job['runs-on'])![1]!) as Record<string, string>;+ expect(Object.keys(runners).sort()).toEqual([...matrix.target].sort());for (const target of matrix.target) {- expect(matrix.include.filter(entry => entry.target === target).length).toBe(1);for (const bun of matrix.bun) pairs.push(`${target}/${bun}`);}}diff --git a/test/scripts/native-only-workflow.test.ts b/test/scripts/native-only-workflow.test.tsindex d91c7711e9..54ea4650af 100644--- a/test/scripts/native-only-workflow.test.ts+++ b/test/scripts/native-only-workflow.test.ts@@ -27,8 +27,10 @@ describe('native-only CI remains separate from full validation', () => {expect(workflow.on.workflow_dispatch.inputs.native_only).toMatchObject({ type: 'boolean', default: false });expect(workflow.jobs['native-locks'].uses).toBe('./.github/workflows/native-locks.yml');expect(workflow.jobs['native-locks'].if).toBeUndefined();+ expect(workflow.jobs.changes.if).toBeUndefined();+ expect(workflow.jobs['native-locks'].needs).toEqual(['changes']);for (const [name, job] of Object.entries(workflow.jobs)) {- if (name === 'native-locks') continue;+ if (name === 'native-locks' || name === 'changes') continue;expect(job.if).toBeDefined();const nativeStatus = name === 'native-only-status';for (const event of ['push', 'pull_request', 'workflow_dispatch']) {diff --git a/test/scripts/test-shard.slow.test.ts b/test/scripts/test-shard.slow.test.tsindex 5928ce85de..2434a0349b 100644--- a/test/scripts/test-shard.slow.test.ts+++ b/test/scripts/test-shard.slow.test.ts@@ -88,6 +88,22 @@ describe('test-shard.sh — exclusion contract', () => {expect(workflow.jobs['test-status'].needs).toContain('slow-entity-resolve-perf');});+ it('runs export-scale and reconcile-crash exactly once per event outside the unit matrix', () => {+ const allFiles = [1, 2, 3, 4].flatMap(s => dryRunList(s, 4));+ expect(allFiles).not.toContain('test/export-scale.slow.test.ts');+ expect(allFiles).not.toContain('test/reconcile-crash.slow.test.ts');+ const fs = require('fs');+ const yaml = require('js-yaml');+ const workflow = yaml.load(fs.readFileSync(resolve(REPO_ROOT, '.github/workflows/test.yml'), 'utf8'));+ const exportStep = workflow.jobs['slow-entity-resolve-perf'].steps.find((step: { run?: string }) =>+ step.run?.includes('bun test test/export-scale.slow.test.ts'));+ expect(exportStep.env.GBRAIN_TEST_EXPORT_SCALE_PAGES).toContain("'100001'");+ const persistence = yaml.load(fs.readFileSync(resolve(REPO_ROOT, '.github/workflows/persistence-validation.yml'), 'utf8'));+ expect(persistence.jobs.reconciliation.strategy.matrix.engine).toContain('pglite');+ expect(persistence.jobs.reconciliation.steps.some((step: { run?: string }) =>+ step.run?.includes('test/reconcile-crash.slow.test.ts'))).toBe(true);+ });+it('INCLUDES *.slow.test.ts files (CI matrix is where slow files run)', () => {const allFiles = [1, 2, 3, 4].flatMap(s => dryRunList(s, 4));const slowFiles = allFiles.filter(f => /\.slow\.test\.ts$/.test(f));@@ -154,7 +170,7 @@ describe('test-shard.sh — LPT balance contract', () => {// CI runs THIS many shards (test.yml matrix). The old version of this// test asserted 4- and 6-shard splits — configurations nothing runs.- const CI_SHARDS = 10;+ const CI_SHARDS = 8;it('CI_SHARDS matches the test.yml matrix (parsed, not regexed)', () => {const fs = require('fs');diff --git a/test/worker-configuration-release.test.ts b/test/worker-configuration-release.test.tsindex a1eafab19c..c3a8f3347c 100644--- a/test/worker-configuration-release.test.ts+++ b/test/worker-configuration-release.test.ts@@ -396,7 +396,7 @@ describe('worker configuration admission and actual execution', () => {expect(worker.configurationReleaseResults.map(result => result.outcome)).toEqual(['unconfirmed']);});- test('the real 30-second eviction cannot dead-letter or release live inline execution', async () => {+ test('the 30-second eviction deadline cannot dead-letter or release live inline execution', async () => {const job = await queue.add('fixture', {}, { max_attempts: 1 });const worker = makeWorker();const started = deferred<void>();@@ -404,18 +404,23 @@ describe('worker configuration admission and actual execution', () => {worker.register('fixture', async () => { started.resolve(); await settle.promise; throw new Error('fixture stopped late'); });const run = worker.start();await started.promise;- const began = performance.now();+ const internals = worker as unknown as { configurationDeadline: number };+ const blockedAt = performance.now();worker.blockForConfiguration(fault());+ expect(internals.configurationDeadline - blockedAt).toBeGreaterThanOrEqual(29_990);+ expect(internals.configurationDeadline - blockedAt).toBeLessThan(30_100);+ const began = performance.now();+ internals.configurationDeadline = began + 300;await run;- expect(performance.now() - began).toBeGreaterThanOrEqual(29_900);- expect(performance.now() - began).toBeLessThan(32_000);+ expect(performance.now() - began).toBeGreaterThanOrEqual(290);+ expect(performance.now() - began).toBeLessThan(2_300);expect((await queue.getJob(job.id))?.status).toBe('active');expect((await queue.getJob(job.id))?.attempts_made).toBe(0);expect(worker.configurationReleaseResults.map(result => result.outcome)).toEqual(['unconfirmed']);settle.resolve();await new Promise(resolve => setTimeout(resolve, 20));expect((await queue.getJob(job.id))?.status).toBe('active');- }, 40_000);+ }, 15_000);test('a claim still unknown at the global deadline reports lease-expiry fallback', async () => {const job = await queue.add('fixture', {});