Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript
72.1 KB
Raw Blame
# Every *.serial.test.ts file outside test/e2e, with the reason it cannot share a bun process.
# class: R1 (process.env mutation) | R2 (mock.module) | global-state (other process-wide state) | exclusive (EXCLUSIVE_FILES in scripts/run-serial-tests.sh).
# Before adding a row, run: bash scripts/check-test-isolation.sh --as-parallel <file>  (docs/TESTING.md#when-to-quarantine-instead-of-fix)
path	class	reason
test/unmanaged-push-every-site-gst2456.serial.test.ts	R1	R1: mutates HOME, GBRAIN_HOME, PATH and GBRAIN_GIT_ALLOW_FILE_TRANSPORT for real commit-push, hook, helper and sources pushes to local bare remotes
test/unmanaged-push-history-scan-8902.serial.test.ts	R1	R1: mutates HOME, GBRAIN_HOME and GBRAIN_GIT_ALLOW_FILE_TRANSPORT for real policy, scaffolding, sources push and bootstrap pushes to local bare remotes
test/http-db-config.serial.test.ts	global-state	global-state: binds HTTP listeners; drains process-wide pending eval capture registry; withEnv scopes GBRAIN_HOME and GBRAIN_CONTRIBUTOR_MODE
test/access-as.serial.test.ts	global-state	global-state: spawns real gbrain CLI children (src/cli.ts --as) that each open one on-disk PGLite brain and take its file lock in a temp GBRAIN_HOME; the cases seed and read that one brain in order
test/access-room-cli.serial.test.ts	global-state	global-state: spawns real gbrain CLI children (src/cli.ts --room) that each open one on-disk PGLite brain in a temp GBRAIN_HOME, and runs a live PGLite persistence owner on a socket in its own temp home that later cases delegate reads to
test/enforced-member.serial.test.ts	global-state	global-state: spawns real gbrain CLI children (src/cli.ts under GBRAIN_ENFORCED_MEMBER) that each open one on-disk PGLite brain and take its file lock in a temp GBRAIN_HOME, or one isolated Postgres database; the cases seed and read that one brain in order
test/enforced-member-writes-setting.serial.test.ts	global-state	global-state: spawns real gbrain CLI children (src/cli.ts under GBRAIN_ENFORCED_MEMBER) that each open one on-disk PGLite brain and take its file lock in a temp GBRAIN_HOME, or one isolated Postgres database; the cases seed and read that one brain in order
test/enforced-member-writes.serial.test.ts	global-state	global-state: spawns real gbrain CLI children (src/cli.ts under GBRAIN_ENFORCED_MEMBER) that each open one on-disk PGLite brain and take its file lock in a temp GBRAIN_HOME, or one isolated Postgres database; the cases seed and read that one brain in order
test/access-binding.serial.test.ts	global-state	global-state: spawns real gbrain CLI children (auth create|rescope|register-client, access member) that each open one on-disk PGLite brain and take its file lock in a temp GBRAIN_HOME; later cases read the bindings earlier ones wrote
test/admin-grant-outcome.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; binds local servers/ports
test/advisor-backup-coverage.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_BACKUP_CHECK)
test/agent-error-surfaces.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/agent-harness-seed.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/agent-injection-http-view.serial.test.ts	global-state	global-state: binds local servers/ports
test/agent-install-backup.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; spyOn fs.renameSync, PGLiteEngine.prototype.connect, console.log
test/agent-install-follow-setup.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/agent-journey-recovery.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/agent-journey-tier2-json.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll (seedTimelineFinding in test/helpers/agent-journey-tier2.ts); ~60 real CLI subprocesses on one PGLite brain
test/agent-journey-tier2.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll (seedTimelineFinding in test/helpers/agent-journey-tier2.ts); live gbrain serve over MCP stdio
test/agent-journey-upgrade.serial.test.ts	global-state	global-state: binds local servers/ports
test/agent-journey.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/agent-operator-gate-fixes.serial.test.ts	global-state	global-state: binds local servers/ports
test/agent-recovery-consent-journeys.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/ai/gateway-ledger-records.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests, __setEmbedTransportForTests, __setRerankTransportForTests; configureGateway changes the process-wide AI gateway
test/ai/gateway-model-sources.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/ai/header-transport.serial.test.ts	global-state	global-state: process-wide test seams __setRerankTransportForTests; configureGateway changes the process-wide AI gateway
test/ai/no-batch-cap-suppression.serial.test.ts	global-state	global-state: process-wide test seams __setTestRecipesForTests; configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/ambient-recall-hooks.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_HOOKS)
test/ambient-writeback-lifecycle.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/apply-migrations-safety.serial.test.ts	R2	R2: mock.module(dynamic specifier) replaces modules for every file in the process
test/attendance-repair-cli.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; binds local servers/ports
test/audit-parser-probe.serial.test.ts	R1	R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/audit-slug-fallback.serial.test.ts	R1	R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/audit-synopsis.serial.test.ts	R1	R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/auth-rescope-token.serial.test.ts	global-state	global-state: binds local servers/ports
test/autopilot-cycle-connector.serial.test.ts	R2	R2: mock.module(../src/core/cycle.ts) replaces modules for every file in the process
test/autopilot-fanout-clamp.serial.test.ts	R1	R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/autopilot-launchd-lifecycle.serial.test.ts	exclusive	exclusive: launchd/cron lifecycle arc: install → self-disable → reinstall → uninstall ordering against (PATH-shimmed) launchctl; the arc asserts machine-level sequencing and is the flake-class canary.
test/backfill-concurrency-clamp.serial.test.ts	R1	R1: mutates process.env (GBRAIN_DIRECT_POOL_SIZE)
test/backup-cli.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_BACKUP_CHECK)
test/backup-coverage.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_BRAIN_ID)
test/backup-fsync.serial.test.ts	global-state	global-state: spyOn fs.fsyncSync, fs.openSync, privacy.protectNewBackupPath, childProcess.execFile
test/backup-invalidation.serial.test.ts	R1	R1: mutates process.env (HOME, GBRAIN_HOME, GBRAIN_GIT_ALLOW_FILE_TRANSPORT, GBRAIN_ALLOW_UNVERIFIED_REMOTE (+2 more))
test/backup-pending-continuation.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME); spyOn childProcess.execFile; process-wide test seam __setBackupStatusPathForTests
test/backup-portability-native.serial.test.ts	R1	R1: mutates process.env (SystemRoot)
test/backup-powershell-warmup.serial.test.ts	global-state	global-state: spyOn childProcess.execFile; redefines process.platform as win32; resets the module-level PowerShell warm-up
test/backup-status-file.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_BACKUP_CHECK_DAYS, GBRAIN_BACKUP_CHECK, GBRAIN_FORCE_BACKUP_NAG (+2 more))
test/backup-verification.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/binary-self-update-compiled.serial.test.ts	global-state	global-state: compile smoke gated by GBRAIN_SELFUPDATE_COMPILE_SMOKE
test/bootstrap-adopted-connection.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME) so the bootstrap dispatcher resolves the sandboxed home
test/bootstrap-dispatcher.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, CODEX_HOME, HOME, CLAUDE_CONFIG_DIR)
test/bootstrap-harness-lifecycle.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/bootstrap-harness.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/bootstrap-hook-under-serve.serial.test.ts	exclusive	exclusive: pins a REAL serve's answer inside the hook's 1 s IPC client timeout (Pin 3 and Pin 3b need an ok round trip); pooled beside heavy files the serve's main thread is starved past it (Pin 3b timed out at 1,008 ms in #7409's full gate). Also mutates process.env (GBRAIN_HOME, GBRAIN_SOURCE, GBRAIN_DATABASE_URL, DATABASE_URL (+3 more))
test/bootstrap-interview.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/bootstrap-opencode-door.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, XDG_CONFIG_HOME)
test/bootstrap-plugin-lane.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, CODEX_HOME, CLAUDE_CONFIG_DIR, HOME)
test/bootstrap-seat.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/bootstrap-status.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GB_FAKE_RECORD, PATH, GB_FAKE_GH_ANSWER)
test/bootstrap-subcommand-help.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/bootstrap-uninstall.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/bootstrap-verify.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/brain-durability-hook.serial.test.ts	exclusive	exclusive: hardenBrainRepo({installCron:true}) executes REAL launchctl/crontab (src/core/brain-repo-durability.ts) — a concurrent or killed run could strand a real scheduled job on the machine.
test/brain-flag-routing.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/brain-registry.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/brain-repo-durability.serial.test.ts	exclusive	exclusive: hardenBrainRepo's own scaffolding commit fires the just-installed post-commit hook (background push) which races the synchronous push-probe on the same bare remote ("cannot lock ref" → needs_attention non-empty). The race is intra-call; pooled CPU contention widens the window past what the assertions tolerate (observed on a 4-vCPU CI runner, never locally). Sequential lane restores master-era timing until the probe learns to retry ref-lock contention.
test/brainbench-trust-mutations.serial.test.ts	global-state	global-state: the BrainBench trust brain sets process.env GBRAIN_HOME and BRAINBENCH_CONNECTOR_TOKEN for its run (src/eval/brainbench/trust-scenario.ts) and the detector probe swaps the write gate's module-level detector
test/brainstorm/checkpoint.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/brainstorm/unpriced-chat-model.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests, __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway; R1: mutates process.env (GBRAIN_HOME, GBRAIN_AUDIT_DIR)
test/capture-consent-gate.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME); also real PGLite engines and the module-global harvest queue
test/check-update-refresh.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/checkpoint-harvest.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, CLAUDE_CONFIG_DIR)
test/cli-dispatch-lifecycle.serial.test.ts	R2	R2: mock.module(../src/core/engine-factory.ts, ../src/commands/orphans.ts, ../src/commands/salience.ts, ../src/commands/serve.ts (+4 more)) replaces modules for every file in the process
test/cli-help-no-side-effects-2.serial.test.ts	global-state	global-state: spawns about 100 real gbrain CLI children with a probe preload and fingerprints a shared fixture brain and HOME; part 2 of the help gate
test/cli-help-no-side-effects-3.serial.test.ts	global-state	global-state: spawns about 100 real gbrain CLI children with a probe preload and fingerprints a shared fixture brain and HOME; part 3 of the help gate
test/cli-help-no-side-effects-4.serial.test.ts	global-state	global-state: spawns about 100 real gbrain CLI children with a probe preload and fingerprints a shared fixture brain and HOME; part 4 of the help gate
test/cli-help-no-side-effects.serial.test.ts	global-state	global-state: spawns about 100 real gbrain CLI children with a probe preload and fingerprints a shared fixture brain and HOME; split into four parts to fit the serial lane budget
test/code-callers-pin.serial.test.ts	global-state	global-state: spyOn console.log, console.error, process.exit; process.chdir changes the shared cwd
test/code-def-refs-pin.serial.test.ts	global-state	global-state: spyOn console.log, console.error, process.exit; process.chdir changes the shared cwd
test/codex-rollout-0154.serial.test.ts	R1	R1: mutates GBRAIN_HOME/CODEX_HOME for in-process session-end hook runs
test/company-brain-connect-cli.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/company-brain-recovery.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/compile-context-core.serial.test.ts	R1	R1: mutates process.env (HOME, GBRAIN_HOME, CODEX_HOME) around the compile-context runs
test/config-db-plane.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_DATABASE_URL, DATABASE_URL)
test/connection-manager.serial.test.ts	R1	R1: mutates process.env (GBRAIN_DISABLE_DIRECT_POOL, GBRAIN_DIRECT_POOL_SIZE, GBRAIN_DIRECT_DATABASE_URL)
test/connectors-credentials.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/consent-table.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/context-engine-checkpoint.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_MEMORABLE_CONFIG, MEMORABLE_BIN, GBRAIN_MEMORABLE)
test/context-pack-wb-lane.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/contextual-retrieval-doctor.serial.test.ts	R1	R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/contextual-synopsis-model.serial.test.ts	global-state	global-state: process-wide test seams __setGenerateTextTransportForTests; configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/core/audit-week-file.serial.test.ts	R1	R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/core/cycle.serial.test.ts	R2	R2: mock.module(../../src/commands/lint.ts, ../../src/commands/backlinks.ts, ../../src/commands/sync.ts, ../../src/commands/extract.ts (+3 more)) replaces modules for every file in the process
test/core/remediation-checkpoint.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/corpus-retention-uningested.serial.test.ts	R1	R1: mutates GBRAIN_HOME for in-process session-end hook runs and the doctor check
test/creds-vault.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/cross-modal-hybrid-integration.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway
test/cycle-embed-phase-warn.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway; mock.module replaces the embed module
test/cycle-lock-release-diagnostic.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/cycle-lock-steal.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_CYCLE_LOCK_REFRESH_MS)
test/cycle-patterns-completed-outcome.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts, ../src/core/cycle/synthesize.ts, ../src/core/minions/wait-for-completion.ts) replaces modules for every file in the process
test/cycle-patterns-evidence-gate.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts, ../src/core/cycle/synthesize.ts, ../src/core/minions/wait-for-completion.ts) replaces modules for every file in the process
test/cycle-patterns-timeline-appends.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts, ../src/core/cycle/synthesize.ts, ../src/core/minions/wait-for-completion.ts) replaces modules for every file in the process
test/cycle-patterns-cadence.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts, ../src/core/cycle/synthesize.ts, ../src/core/minions/wait-for-completion.ts) replaces modules for every file in the process
test/cycle-patterns-read-budget.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts, ../src/core/cycle/synthesize.ts, ../src/core/minions/wait-for-completion.ts) replaces modules for every file in the process
test/cycle-pglite-lock-ordering.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/cycle-start-recovery-throw.serial.test.ts	R2	R2: mock.module(../src/core/minions/queue.ts) replaces modules for every file in the process
test/cycle/cycle-sync-uncommitted-warn.serial.test.ts	R2	R2: mock.module(../../src/commands/sync.ts) replaces modules for every file in the process
test/cycle/global-freshness-postcondition.serial.test.ts	R2	R2: mock.module(../../src/commands/embed.ts, ../../src/core/ai/gateway.ts, ../../src/core/cycle/inline-drain.ts) replaces modules for every file in the process
test/db-repair.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_DATABASE_URL, DATABASE_URL, GBRAIN_BRAIN_ID (+1 more))
test/decide/cli.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/decide/conflict-proposals.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/decide/conflict-relink-handoff.serial.test.ts	global-state	global-state: process-wide test seams __setDecideTransportForTests, __setEmbedTransportForTests, __resetDecideStoreForTests; configureGateway changes the process-wide AI gateway
test/decide/conflict-sweep.serial.test.ts	global-state	global-state: process-wide test seams __setDecideTransportForTests, __setEmbedTransportForTests, __resetDecideStoreForTests; configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/decide/eval-flags.serial.test.ts	R1	R1: mutates process.env (GBRAIN_DECIDE_SLOTS)
test/decide/evidence-copack-calibration.serial.test.ts	global-state	global-state: process-wide test seams __setDecideTransportForTests, __resetDecideStoreForTests; configureGateway changes the process-wide AI gateway; spyOn console.log, console.error
test/decide/grounding-slot.serial.test.ts	global-state	global-state: process-wide test seams __setDecideTransportForTests, __resetDecideStoreForTests; configureGateway changes the process-wide AI gateway
test/decide/judge-agreement-cli.serial.test.ts	R1	R1: mutates process.env (TYPESAFE_API_KEY, JEV_TYPESAFE_API_KEY)
test/decide/newer-ref-hint-6497.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/decide/qualify-items-out-6569.serial.test.ts	global-state	global-state: process-wide test seams __setDecideTransportForTests, __resetDecideStoreForTests; configureGateway changes the process-wide AI gateway; spyOn console.log, console.error
test/decide/quickstart-doc.serial.test.ts	R2	R2: mock.module(../../src/core/interaction.ts) replaces modules for every file in the process
test/decide/retrieval-search.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/decide/retrieval-think.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/decide/review-duplicate-kinds.serial.test.ts	global-state	global-state: replaces the process-wide gateway decide transport (__setDecideTransportForTests) and gateway config
test/decide/review-withdraw.serial.test.ts	global-state	global-state: replaces the process-wide gateway decide and embed transports (__setDecideTransportForTests, __setEmbedTransportForTests) and gateway config
test/decide/search-slots.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/decide/status-no-entity.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/decide/triage-slot.serial.test.ts	global-state	global-state: process-wide test seams __setDecideTransportForTests, __setChatTransportForTests, __resetDecideStoreForTests; configureGateway changes the process-wide AI gateway
test/decide/turn-context-s6.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/decide/writepath-datasets.serial.test.ts	global-state	global-state: process-wide test seams __setDecideTransportForTests, __resetDecideStoreForTests; configureGateway changes the process-wide AI gateway; spyOn console.log, console.error, process.stdout.write
test/decide/writepath-phase.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests, __setDecideTransportForTests, __resetDecideStoreForTests; configureGateway changes the process-wide AI gateway
test/dispatch-response-meta.serial.test.ts	R2	R2: mock.module(../src/core/search/hybrid.ts) replaces modules for every file in the process
test/dispatch-vector-incomplete.serial.test.ts	R2	R2: mock.module(../src/core/search/hybrid.ts) replaces modules for every file in the process
test/divergence-safe-pull-5429.serial.test.ts	R1	R1: mutates process.env (GBRAIN_GIT_ALLOW_FILE_TRANSPORT) and spies on node:child_process
test/doctor-autopilot-fanout-concurrency.serial.test.ts	R1	R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/doctor-backup-coverage.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_BACKUP_CHECK)
test/doctor-connection-classified.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/doctor-early-stop-golden.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, HOME, GBRAIN_AUDIT_DIR, GBRAIN_SYNC_FAILURES_DIR (+3 more))
test/doctor-engine-fit.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/doctor-eval-drift-branches.serial.test.ts	R2	R2: mock.module(../src/core/eval/drift-watch.ts) replaces modules for every file in the process
test/doctor-keyless.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway
test/doctor-mode-matrix.serial.test.ts	R1	R1: mutates process.env (HOME, GBRAIN_HOME, GBRAIN_AUDIT_DIR, GBRAIN_SYNC_FAILURES_DIR (+1 more))
test/doctor-provider-consent.serial.test.ts	global-state	global-state: spawns the CLI as subprocesses against a local request-logging server; binds local servers/ports
test/doctor-remediation-plan-observational.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/doctor-remote.serial.test.ts	global-state	global-state: binds local servers/ports
test/doctor-report-remote.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/doctor-revision-backfill-journey.serial.test.ts	global-state	global-state: withEnv holds GBRAIN_HOME across awaited doctor and CLI journey runs
test/dream-drain-failure-summary.serial.test.ts	R2	R2: mock.module(../src/core/cycle/extract-atoms-drain.ts) replaces modules for every file in the process
test/dream-owner-id-threading.serial.test.ts	R2	R2: mock.module(../src/core/cycle.ts) replaces modules for every file in the process
test/dream-postgres.serial.test.ts	global-state	global-state: spyOn process.exit, console.error
test/dream-publication-hold.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts, ../src/core/cycle/synthesize-concepts.ts, ../src/core/cycle/synthesize.ts, ../src/core/persistence/prepared-maintenance.ts, ../src/core/minions/wait-for-completion.ts) replaces modules for every file in the process
test/dream-synthesize-chunking.serial.test.ts	R1	R1: mutates process.env (ANTHROPIC_API_KEY)
test/embed-backfill-cli-admission.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; patches process stdout/stderr/console
test/embed-exit-code-3037.serial.test.ts	global-state	global-state: binds local servers/ports
test/embed-input-type-wire.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway
test/embed-lock-skipped.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/embed-max-usd-metered.serial.test.ts	global-state	global-state: configureGateway and __setEmbedTransportForTests change the process-wide AI gateway; replaces globalThis.fetch for the Voyage multimodal stub
test/embed-null-signature-warning-5527.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway; spyOn console.error
test/embed-overlength-drain.serial.test.ts	R2	R2: mock.module(src/core/embedding.ts) fake embedder; R1: mutates process.env (GBRAIN_MAX_CHUNK_TOKENS)
test/embed-oversize-heal-drain.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/embed-page-cap.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process; also mutates process.env (GBRAIN_EMBED_CONCURRENCY)
test/embed-partial-failure-3037.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/embed-quarantine.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/embed-stale-chunkless-pages.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/embed-stale-dry-run-restamp-5289.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/embed-stale-progress-5968.serial.test.ts	R1	R1: mutates process.env (GBRAIN_MAX_CHUNK_TOKENS)
test/embed-stale-signature-pagination.serial.test.ts	R1	R1: mutates process.env (GBRAIN_EMBED_CONCURRENCY)
test/embed-stale-unavailable-snapshot.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/embed.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/embedding-completion-atomic.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests, __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/embedding-identity-companions.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; process-wide test seams __setEmbedTransportForTests, __setRerankTransportForTests; configureGateway changes the process-wide AI gateway; spyOn globalThis.fetch
test/embedding-migration-settle.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway; spyOn console.log, console.error
test/embedding-recovery.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/embedding-rejection-refund.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/embedding-truth-predicates.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/embedding-zero-norm-4616.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/eval-brainbench-decide.serial.test.ts	R1	R1: mutates process.env (GBRAIN_DECIDE_SLOTS)
test/eval-longmemeval-call-plan.serial.test.ts	R1	R1: mutates process.env (GBRAIN_CONTEXTUAL_SYNOPSIS_MODEL); process-wide gateway transports (__setChatTransportForTests, __setEmbedTransportForTests, __setRerankTransportForTests)
test/eval-longmemeval-decide.serial.test.ts	R1	R1: mutates process.env (GBRAIN_DECIDE_SLOTS)
test/eval-longmemeval-synopsis-tier.serial.test.ts	R1	R1: mutates process.env (GBRAIN_CONTEXTUAL_SYNOPSIS_MODEL)
test/eval-longmemeval-via-operation.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway; process-wide test seams __setEmbedTransportForTests, __setGenerateObjectTransportForTests, __setRerankTransportForTests; process.chdir to prove the summary names gbrain's own tree
test/eval-retrieval-quality-decide.serial.test.ts	R1	R1: mutates process.env (GBRAIN_DECIDE_SLOTS)
test/eval-run-all-outcome.serial.test.ts	R2	R2: mock.module(../src/commands/eval-brainbench.ts) replaces modules for every file in the process; spyOn process.stderr.write
test/eval-takes-quality-runner.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts) replaces modules for every file in the process
test/extract-all-stamp-intersection.serial.test.ts	global-state	global-state: spyOn process.exit; patches console
test/extract-conversation-facts-diagnostics.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests, __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway; spyOn console.log, process.exit, concurrency.resolveWorkersWithClamp, console.error (+2 more)
test/extract-cross-source-links-db.serial.test.ts	R1	R1: mutates process.env (bracket or computed key)
test/extract-endpoint-revision.serial.test.ts	global-state	global-state: spyOn console.error, process.exit
test/extract-facts-embed-unavailable.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts) replaces modules for every file in the process
test/extract-facts-embed-warn.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts) replaces modules for every file in the process
test/extract-include-frontmatter-config.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/facts-backstop-outcome.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, OPENAI_API_KEY, ANTHROPIC_API_KEY)
test/facts-context-injection.serial.test.ts	global-state	global-state: process-wide test seams __resetHotMemoryCacheForTests
test/facts-embedding-bare-model.serial.test.ts	global-state	global-state: configures the process-wide AI gateway (configureGateway/resetGateway) to name the gateway provider in the refusal
test/facts-valid-from-context.serial.test.ts	R2	R2: mock.module(../src/core/facts/extract.ts) replaces modules for every file in the process
test/file-claims-win32-6659.serial.test.ts	global-state	global-state: redefines process.platform as win32 to drive the Windows file-claim census
test/filing-rules-resolution.serial.test.ts	R1	R1: mutates process.env (HOME, GBRAIN_HOME, GBRAIN_GIT_ALLOW_FILE_TRANSPORT)
test/fix-wave-3-connector-loops.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests; configureGateway changes the process-wide AI gateway
test/fix-wave-3-managed-embedding.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/fix-wave-5-mounted.serial.test.ts	global-state	global-state: binds local servers/ports
test/foreground-chat-gateway-init.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, OPENAI_API_KEY)
test/fresh-init-db-extract.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; patches process stdout/stderr/console
test/fresh-install-pglite.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, VOYAGE_API_KEY, OPENAI_API_KEY)
test/friction-diff.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_FRICTION_RUN_ID)
test/fts-language-cache-isolation.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/fts-language-migration.serial.test.ts	R1	R1: mutates process.env (bracket or computed key)
test/fts-language-schema-replay.serial.test.ts	R1	R1: mutates process.env (GBRAIN_PGLITE_SNAPSHOT)
test/fts-language.serial.test.ts	R1	R1: mutates process.env (bracket or computed key)
test/gateway-reconfigure-clobber.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/git-commit-push-6530.serial.test.ts	R1	R1: mutates process.env (GBRAIN_GIT_ALLOW_FILE_TRANSPORT, BRAIN_COMMIT_LOCK_HELD, GBRAIN_GIT_NO_MERGE_TREE, PATH for a racing git shim)
test/git-writer-safety-7381.serial.test.ts	R1	R1: mutates process.env (GBRAIN_GIT_ALLOW_FILE_TRANSPORT, GBRAIN_GIT_NO_MERGE_TREE) for real git against local bare remotes and spawns the CLI and git hooks that read it
test/git-listing-memo.serial.test.ts	R1	R1: puts a git-counting shim on process.env.PATH for every spawn in the process (git child processes inherit it, so withEnv cannot scope it)
test/git-remote-durable.serial.test.ts	R1	R1: mutates process.env (GBRAIN_GIT_ALLOW_FILE_TRANSPORT)
test/git-remote-pull-file-transport.serial.test.ts	R1	R1: mutates process.env (GBRAIN_GIT_ALLOW_FILE_TRANSPORT)
test/google-connect-cmd.serial.test.ts	global-state	global-state: spyOn console.error; patches process stdout/stderr/console
test/google-api-access-cmd-7073.serial.test.ts	global-state	global-state: replaces globalThis.fetch and patches process stdout/stderr for google status and setup
test/google-loops-recovery.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests; configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/graduation-serve-guard.serial.test.ts	global-state	global-state: spawns real gbrain serve children and holds GBRAIN_HOME (withEnv) across awaited CLI runs
test/graph-query-thin-client-source-flag.serial.test.ts	R2	R2: mock.module(../src/core/config.ts, ../src/core/mcp-client.ts) replaces modules for every file in the process
test/guarded-http-tls.serial.test.ts	global-state	global-state: binds local servers/ports
test/harness-delivery-recovery.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/held-embedding-printed-commands.serial.test.ts	global-state	global-state: installs the process-wide CLI fix routing (installCliRouting) that every renderAction in the process reads
test/hook-backup-notice.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_BACKUP_CHECK)
test/hook-command.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_HOOKS, GBRAIN_HOOK_LANE, GBRAIN_SOURCE (+3 more))
test/hook-push-banner-superseded.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_BACKUP_CHECK)
test/hook-session-start-serve-wait.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, CLAUDE_CONFIG_DIR, CODEX_HOME)
test/hook-writeback-stop.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_SOURCE)
test/hybrid-adaptive-dedup-cache-plane.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/hybrid-cache-hit-limit-honors-mode.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/hybrid-cache-scope-poison.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/hybrid-cached-hit-budget-meta.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/hybrid-degraded-cache-meta.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/hybrid-exclude-private-cache-fold.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/hybrid-meta.serial.test.ts	R1	R1: mutates process.env (OPENAI_API_KEY)
test/hybrid-pool-floor.serial.test.ts	R1	R1: mutates process.env (OPENAI_API_KEY)
test/hybrid-reranker-skipped.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_AUDIT_DIR, VOYAGE_API_KEY)
test/hybrid-salvage.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/hybrid-search-lite.serial.test.ts	R1	R1: mutates process.env (OPENAI_API_KEY)
test/hybrid-search-single-mode-read.serial.test.ts	R2	R2: mock.module(../src/core/search/mode.ts) replaces modules for every file in the process
test/hybrid-since-relative.serial.test.ts	R1	R1: mutates process.env (OPENAI_API_KEY)
test/hybrid-types-cache-skip.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/import-cancellation.serial.test.ts	R2	R2: mock.module(../src/core/postgres-engine.ts) replaces modules for every file in the process
test/import-configured-root-guard.serial.test.ts	global-state	global-state: spyOn engine.executeRaw
test/import-connection-budget.serial.test.ts	R2	R2: mock.module(../src/core/postgres-engine.ts) replaces modules for every file in the process
test/import-signature-stamp.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/import-source-cr-mode.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/init-search-mode.serial.test.ts	global-state	global-state: spawns real gbrain init/config CLI children against PGLite datastores in temp homes (180 s budget each)
test/internal-breadth-callers.serial.test.ts	R2	R2: mock.module(../src/core/search/hybrid.ts) replaces modules for every file in the process
test/jobs-child-readiness.serial.test.ts	global-state	global-state: spyOn console.error
test/jobs-embed-background-dryrun.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/jobs-embed-background-parity.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/jobs-embed-stall-wiring.serial.test.ts	R2	R2: mock.module(../src/commands/embed.ts) replaces modules for every file in the process
test/jobs-gateway-refresh.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, ANTHROPIC_API_KEY, OPENAI_API_KEY)
test/jobs-list-get-json.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/jobs-wait-cli.serial.test.ts	global-state	global-state: patches process stdout/stderr/console and process.exit
test/jobs-stats-backpressure.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/jobs-stats-divergence.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/jobs-stats-private-queue.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/keyword-relaxed-fusion.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/large-pages/flip-crash.serial.test.ts	global-state	global-state: installs the process-wide persistence fault hook (installFaultHook) to stop a segmented write at each crash window
test/link-reads-thin-client-5827.serial.test.ts	R2	R2: mock.module(../src/core/config.ts, ../src/core/mcp-client.ts) replaces modules for every file in the process
test/llm-intent-hybrid-integration.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests; configureGateway changes the process-wide AI gateway
test/loops-close-fact.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests; configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/loops-extract-run.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts) replaces modules for every file in the process
test/managed-atom-retry-cancellation.serial.test.ts	R2	R2: mock.module replaces atom storage, extraction and cycle-lock modules process-wide
test/managed-connector-routing.serial.test.ts	global-state	global-state: spyOn globalThis.fetch
test/managed-push-remedy.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/managed-timeline-facts.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway; persistence consumer registry
test/managed-unsupported-preflight.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts) replaces modules for every file in the process
test/mcp-admin-cli.serial.test.ts	global-state	global-state: spyOn console.log, globalThis.fetch
test/mcp-backup-nag.serial.test.ts	R2	R2: mock.module(../src/core/search/hybrid.ts, ../src/core/search/projection-readiness.ts) replaces modules for every file in the process
test/mcp-request-log-retention-cli.serial.test.ts	global-state	global-state: spawns real gbrain CLI and derive-starter-ops children that each open one on-disk PGLite brain and take its file lock in a temp GBRAIN_HOME; the cases read the request log the setup seeded
test/memorable-relay.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, MEMORABLE_BIN, GBRAIN_MEMORABLE_CONFIG, GBRAIN_MEMORABLE)
test/memory-safety-wave.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway; binds local servers/ports
test/migrate-embeddings-ann-deferred-5088.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/migrate-embeddings-boundary.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/migrate-embeddings-dry-run-split-5226.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway; spyOn console.log, console.error
test/migrate-embeddings-facts-drain.serial.test.ts	global-state	global-state: configureGateway and __setEmbedTransportForTests replace the process-wide AI gateway; spyOn AbortSignal.timeout compresses the standalone repair timer
test/migrate-embeddings-flow.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/migrate-embeddings-hardening.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_EMBEDDING_MODEL, GBRAIN_EMBEDDING_DIMENSIONS, GBRAIN_EMBED_LOCK_HEARTBEAT_MS (+3 more))
test/migrate-embeddings-op-contract.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_EMBEDDING_MODEL, GBRAIN_EMBEDDING_DIMENSIONS)
test/migrate-embeddings-recovery-cli.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; process-wide test seams __setEmbedTransportForTests
test/migrate-engine-completeness.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, DATABASE_URL, GBRAIN_DATABASE_URL)
test/migrate-engine-image-vectors-6871.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; R6: reads the process-wide CLI exit verdict (currentExitCode); withEnv scopes GBRAIN_HOME, DATABASE_URL and GBRAIN_DATABASE_URL
test/migrate-engine-page-copy-failure.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, DATABASE_URL, GBRAIN_DATABASE_URL)
test/migrate-engine-pagination.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, DATABASE_URL, GBRAIN_DATABASE_URL)
test/migrate-full-row-projections.serial.test.ts	global-state	global-state: runMigrateEngine sets the process-wide CLI exit verdict (reset in afterEach) and the run swaps GBRAIN_HOME through withEnv and writes config.json (saveConfig)
test/migrate-graduation-cli.serial.test.ts	global-state	global-state: withEnv holds GBRAIN_HOME at a temp dir (withEnv) across awaited runMigrateGraduation calls that read the file-plane opt-out
test/migrate-quiet-replay.serial.test.ts	R1	R1: mutates process.env (GBRAIN_MIGRATE_VERBOSE, GBRAIN_PGLITE_SNAPSHOT)
test/migration-in-process.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/migration-v0-29-1.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/migrations-fresh-install-audit.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/minions-spend-authorization.serial.test.ts	R2	R2: mock.module replaces the enrich core for the enrich-handler exhaustion case
test/minions/delegated-execution.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests
test/model-config.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_MODEL, OPENAI_API_KEY)
test/models-newer-hint.serial.test.ts	R1	R1: mutates process.env (GBRAIN_MODEL)
test/models-nightly-probe-routes.serial.test.ts	global-state	global-state: patches process stdout/stderr/console and the process-global gateway
test/models-per-task-extract-atoms.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/models-per-task-facts-extraction.serial.test.ts	global-state	global-state: patches process stdout and mutates process.env through withEnv
test/models-probe-max-output-tokens.serial.test.ts	global-state	global-state: binds local servers/ports
test/native-base-url-fold.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, OPENAI_BASE_URL)
test/nightly-probe-compiled-binary.serial.test.ts	global-state	global-state: compiles a probe harness with bun build --compile and runs it plus a source-mode copy as subprocesses
test/oauth-client-setup.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/observational-startup.serial.test.ts	R2	R2: mock.module(../src/cli/commands/repair.ts) replaces modules for every file in the process
test/openai-discovery-lazy.serial.test.ts	global-state	global-state: withEnv holds GBRAIN_HOME and OPENAI_API_KEY across awaited gateway calls, resets gateway and discovery module state, binds a local server
test/openai-latest.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_MODEL_DISCOVERY)
test/openclaw-compact-transcript-runtime.serial.test.ts	global-state	global-state: swaps the context engine's module-level transcript-runtime loader and SDK load state
test/openclaw-context-engine-native.serial.test.ts	global-state	global-state: binds local servers/ports
test/ops-run-onboard-scope-gate.serial.test.ts	R2	R2: mock.module(../src/core/onboard/checks.ts, ../src/core/remediation/index.ts, ../src/core/onboard/render.ts) replaces modules for every file in the process
test/oversized-backfill-failed-rewrite-7185.serial.test.ts	global-state	global-state: installs the process-global embedding transport seam (__setEmbedTransportForTests) and gateway config (configureGateway); swaps GBRAIN_HOME through withEnv
test/oversized-backfill.serial.test.ts	global-state	global-state: installs the process-global embedding transport seam (__setEmbedTransportForTests) and gateway config (configureGateway); swaps GBRAIN_HOME through withEnv
test/page-summary-length.serial.test.ts	R1	R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/pathological/a31-migrate-loop-rows.serial.test.ts	global-state	global-state: runMigrateEngine sets the process-wide CLI exit verdict and writes the config under a withEnv-scoped GBRAIN_HOME
test/pathological/w1-write-through-staging-window.serial.test.ts	R2	R2: mock.module(../../src/core/atomic-write.ts) replaces modules for every file in the process
test/pending-write-exit.serial.test.ts	global-state	global-state: binds local servers/ports
test/persistence-drain-latency.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console; times event-loop gaps against a bound, so a parallel neighbour would distort the measurement
test/persistence-image-import.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/persistence-publication-native.serial.test.ts	global-state	global-state: platform-gated (darwin) machine integration
test/persistence-reconnect.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/persistence-skill-bundles.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/persistence-sync-company.serial.test.ts	global-state	global-state: spyOn globalThis.fetch
test/persistence-sync-failures.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; patches process stdout/stderr/console
test/persistence-sync-options.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; process-wide test seams __setPackLocatorForTests; spyOn globalThis.setInterval
test/pglite-engine-disconnect.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/pglite-in-memory-create-retry.serial.test.ts	R2	R2: mock.module(@electric-sql/pglite) replaces modules for every file in the process
test/pglite-reconnect.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/pglite-repair-command.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; patches process stdout/stderr/console
test/pglite-snapshot-timezone.serial.test.ts	R1	R1: mutates process.env (GBRAIN_PGLITE_SNAPSHOT)
test/pglite-wal-repair.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; patches process stdout/stderr/console
test/physical-root-overlap-vanished-dir.serial.test.ts	R2	R2: mock.module(node:fs) makes readdirSync throw ENOENT for one path
test/projections-drain-cli.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/put-page-push-reporting.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/quarantine-override.serial.test.ts	global-state	global-state: replaces console.log, console.error and process.exit to capture the quarantine CLI, and patches a shared engine's readPageSnapshot for the revision race
test/query-cache-knobs-hash.serial.test.ts	R1	R1: mutates process.env (GBRAIN_FTS_LANGUAGE)
test/query-image-date-readiness.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts) replaces modules for every file in the process
test/query-image-flag.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts) replaces modules for every file in the process
test/query-image-mode-limit.serial.test.ts	R2	R2: mock.module(../src/core/ai/gateway.ts) replaces modules for every file in the process
test/query-op-limit-mode-4356.serial.test.ts	R2	R2: mock.module(../src/core/search/hybrid.ts) replaces modules for every file in the process
test/readiness-embedding-enablement.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/recall-budget-policy-thin.serial.test.ts	R2	R2: mock.module(../src/core/config.ts, ../src/core/mcp-client.ts) replaces modules for every file in the process
test/recall-thin-client-fallback.serial.test.ts	R2	R2: mock.module(../src/core/config.ts, ../src/core/mcp-client.ts) replaces modules for every file in the process
test/reconcile-owner-journey-http.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; binds local servers/ports
test/reconcile-owner-journey.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; binds local servers/ports
test/reindex-code-max-cost.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway
test/reindex-code-model-source.serial.test.ts	R1	R1: mutates process.env (GBRAIN_NO_CODE_MODEL_NUDGE)
test/reindex-code-nudge.serial.test.ts	R1	R1: mutates process.env (GBRAIN_NO_CODE_MODEL_NUDGE)
test/reindex-search-vector-pages.serial.test.ts	R1	R1: mutates process.env (bracket or computed key)
test/reindex-search-vector.serial.test.ts	R1	R1: mutates process.env (bracket or computed key)
test/reindex-trace-transparency.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/remediation-run-extras.serial.test.ts	R2	R2: mock.module(../src/core/minions/queue.ts, ../src/core/minions/wait-for-completion.ts) replaces modules for every file in the process
test/remediation-run-loop.serial.test.ts	R2	R2: mock.module(../src/core/minions/queue.ts, ../src/core/minions/wait-for-completion.ts, ../src/core/remediation-checkpoint.ts, ../src/core/ai/gateway.ts) replaces modules for every file in the process
test/remote-privacy-journeys.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; configureGateway changes the process-wide AI gateway; binds local servers/ports
test/remote-stdio-bridge.serial.test.ts	global-state	global-state: binds local servers/ports (a real serve --http host it stops and restarts, a proxy, stdio bridge children)
test/repair-contextual-mode-5621.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/rerank-degraded-notice.serial.test.ts	R2	R2: mock.module (hybridSearchCached)
test/rerank-failure-reason.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway; binds local servers/ports; R1: mutates process.env (GBRAIN_HOME, GBRAIN_AUDIT_DIR); R3: constructs PGLiteEngine inside a test (disconnected in finally)
test/rerank-no-key.serial.test.ts	global-state	global-state: process-wide test seams __setRerankTransportForTests; configureGateway changes the process-wide AI gateway
test/schema-cli-database-path.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/schema-engine-isolation.serial.test.ts	global-state	global-state: spyOn engine.getConfig, engine.searchKeyword, engine.searchVector
test/schema-pack-load-active.serial.test.ts	global-state	global-state: process-wide test seams __setPackLocatorForTests
test/search-multimodal-no-embed.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway
test/search-telemetry-cache-wiring.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/search/autocut-integration.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/search/crag-escalation-limit.serial.test.ts	R2	R2: mock.module(dynamic specifier) replaces modules for every file in the process
test/search/crag-think-source-scope.serial.test.ts	R2	R2: mock.module(../../src/core/search/hybrid.ts, ../../src/core/think/index.ts) replaces modules for every file in the process
test/search/diverse-pool-hybrid.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME); stubs the process-wide gateway embed transport
test/search/hybrid-reranker-integration.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_AUDIT_DIR)
test/search/keyless-any-word-fill-gates.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME); stubs the process-wide gateway decide transport
test/search/keyless-fill-judged-2786.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME); stubs the process-wide gateway decide transport
test/search/mode-receipt.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway; process-wide test seams __setEmbedTransportForTests, __setRerankTransportForTests, __setChatTransportForTests, __setGenerateTextTransportForTests, __setGenerateObjectTransportForTests; R3: constructs PGLiteEngine outside beforeAll
test/search/operation-expansion-contract.serial.test.ts	global-state	global-state: spyOn hybrid.hybridSearchCached, console.log
test/search/output-redaction.serial.test.ts	R2	R2: mock.module(../../src/core/eval-capture.ts, ../../src/core/search/hybrid.ts, ../../src/core/ai/gateway.ts, ../../src/core/think/index.ts) replaces modules for every file in the process
test/search/query-expand-capture-replay.serial.test.ts	global-state	global-state: spyOn replaces the hybridSearch module export process-wide
test/search/relational-rerank-pin-hybrid.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/seed-pglite.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/self-upgrade-checkonly.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/serve-http-mcp-dispatch-context.serial.test.ts	R2	R2: mock.module(../src/mcp/dispatch.ts) replaces modules for every file in the process
test/on-commit-embedding.serial.test.ts	global-state	global-state: installs the gateway embedding transport (__setEmbedTransportForTests) and starts syncs through the process-wide delegated-sync runner singleton; withEnv scopes GBRAIN_HOME
test/serve-head-watcher-managed.serial.test.ts	global-state	global-state: starts real syncs through the process-wide delegated-sync runner singleton (reset with __resetDelegatedSyncForTests); withEnv scopes GBRAIN_HOME
test/serve-http-head-watcher.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_SERVE_HEAD_POLL_MS); spies on global setInterval/clearInterval, emits SIGINT on the process and reads the process-wide cleanup registry
test/serve-http-run-teardown.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/serve-http-status-mode.serial.test.ts	R1	R1: sets process.env.GBRAIN_HOME for the status marker reads; binds local servers/ports
test/serve-idle-sweep-source.serial.test.ts	R2	R2: mock.module(../src/core/sweep.ts, facts/drain-scheduler.ts, persistence/sync-movement.ts, serve-head-watcher.ts) replaces modules for every file in the process
test/serve-source-guard.serial.test.ts	R1	R1: mutates process.env (GBRAIN_SOURCE)
test/serve-status-mode.serial.test.ts	global-state	global-state: binds local servers/ports
test/serve-sync-embed-drain.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; process-wide test seams __setEmbedTransportForTests, __resetDelegatedSyncForTests; configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/serve-sync-handoff.serial.test.ts	global-state	global-state: process-wide test seams __resetDelegatedSyncForTests; binds local servers/ports; patches process stdout/stderr/console
test/serve-sync-ipc-killswitch.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; patches process stdout/stderr/console
test/serve-sync-runner.serial.test.ts	global-state	global-state: process-wide test seams __resetDelegatedSyncForTests
test/session-seat-capture.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_SEAT)
test/shared-skills-export.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/shared-skills-init.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/shared-skills-inventory-park.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll (per-test GBRAIN_HOME brains driven through the real CLI); R4: PGLiteEngine without an afterAll disconnect
test/shared-skills-migration-cli.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect
test/shared-skills-optimizer.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests; spyOn fs.readFileSync, fs.lstatSync, fs.realpathSync
test/shared-skills-restore.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll
test/skillopt/cycle-phase-caps.serial.test.ts	R2	R2: mock.module(../../src/core/skillopt/orchestrator.ts, ../../src/core/repo-root.ts) replaces modules for every file in the process
test/skillopt/loop-deprecation.serial.test.ts	R2	R2: mock.module(../../src/core/skillopt/orchestrator.ts, ../../src/core/repo-root.ts) replaces modules for every file in the process
test/skillopt/models-four-paths.serial.test.ts	R2	R2: mock.module(../../src/core/skillopt/orchestrator.ts, ../../src/core/repo-root.ts) replaces modules for every file in the process
test/skillopt/models-plan.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/skillopt/run-skillopt-op.serial.test.ts	R2	R2: mock.module(../../src/core/skillopt/orchestrator.ts, ../../src/core/repo-root.ts) replaces modules for every file in the process
test/sources-push-cli.serial.test.ts	R1	R1: mutates process.env (HOME, GBRAIN_HOME, GBRAIN_GIT_ALLOW_FILE_TRANSPORT)
test/spawn-seam-batch1-4992.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GIT_DIR) and spies on node:child_process
test/stdio-stderr-redirect.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/subagent-put-page-rejection.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests; configureGateway changes the process-wide AI gateway; spyOn putPage.handler
test/sync-convergence.serial.test.ts	global-state	global-state: binds local servers/ports (two latency proxies per scenario) and spawns serve/sync/put/call processes against each scenario's brain; its oracle tests read the chaos scenario their describe's beforeAll ran, across it() boundaries
test/busy-agent-soak.serial.test.ts	global-state	global-state: binds local servers/ports (two latency proxies per scenario) and spawns serve/sync/put/sources/git/doctor processes against each scenario's brain; its mode tests read the scenario their describe's beforeAll ran, across it() boundaries
test/sync-cost-gate.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/sync-default-write-guard.serial.test.ts	global-state	global-state: spyOn console.error, console.log, process.exit
test/sync-delegated-options-6696.serial.test.ts	global-state	global-state: process-wide test seams __resetDelegatedSyncForTests and the embedding transport; binds local servers/ports; patches process stdout/stderr/console
test/sync-delete-trailing-hyphen.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/sync-failure-ledger.serial.test.ts	R1	R1: mutates process.env (HOME, GBRAIN_SYNC_AUTOSKIP_AFTER)
test/sync-index-matches-tree.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/sync-managed-implied-no-pull-6543.serial.test.ts	global-state	global-state: patches process stdout/stderr/console to keep the notice off stdout and traps process.exit for the --all path; R1: mutates process.env (GBRAIN_HOME, GBRAIN_SYNC_NO_DELEGATE)
test/sync-pull-failed-anchor.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/sync-rename-reconcile.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/sync-resumable-import.serial.test.ts	R1	R1: mutates process.env (GBRAIN_SYNC_CHECKPOINT_EVERY, GBRAIN_MAX_CONNECTIONS)
test/sync-run-ordering.serial.test.ts	R1	R1: mutates process.env (GBRAIN_SYNC_CHECKPOINT_EVERY, GBRAIN_SYNC_STALL_ABORT_SECONDS, GBRAIN_SYNC_CHECKPOINT_SECONDS)
test/sync-soft-delete.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/takes-vector-lifecycle-5885.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway
test/thin-client-write-errors.serial.test.ts	global-state	global-state: binds local servers/ports
test/think-cli-source-flag.serial.test.ts	R2	R2: mock.module(../src/core/think/index.ts, ../src/core/config.ts, ../src/core/source-resolver.ts) replaces modules for every file in the process
test/think-remote-model-thin-client.serial.test.ts	R2	R2: mock.module(../src/core/config.ts, ../src/core/mcp-client.ts) replaces modules for every file in the process
test/think-embed-question-wiring.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts, ../src/core/think/index.ts) replaces modules for every file in the process
test/think-extractive.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests, __setEmbedTransportForTests, __setUsageLogPathForTests
test/think-gather-adaptive-return.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts) replaces modules for every file in the process
test/think-gather-autocut.serial.test.ts	R2	R2: mock.module(../src/core/search/hybrid.ts) replaces modules for every file in the process
test/think-temporal-window.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests
test/trust-smoke.serial.test.ts	global-state	global-state: the memory-trust smoke runs on the BrainBench trust brain, which sets process.env GBRAIN_HOME and BRAINBENCH_CONNECTOR_TOKEN for its run (src/eval/brainbench/trust-scenario.ts)
test/unified-multimodal.serial.test.ts	global-state	global-state: configureGateway changes the process-wide AI gateway
test/unsupported-embedding-identity.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; R4: PGLiteEngine without an afterAll disconnect; process-wide test seams __setEmbedTransportForTests, __setRerankTransportForTests; configureGateway changes the process-wide AI gateway
test/upgrade-bun-link-arc.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/upgrade-no-autopilot.serial.test.ts	R2	R2: mock.module(dynamic specifier) replaces modules for every file in the process
test/upgrade-zero-provider-calls.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine outside beforeAll; configureGateway changes the process-wide AI gateway; binds local servers/ports
test/upgrade.serial.test.ts	R2	R2: mock.module(${repoRoot}src/core/binary-self-update.ts) replaces modules for every file in the process
test/v0_28_5-fix-wave.serial.test.ts	R1	R1: mutates process.env (GBRAIN_PGLITE_SNAPSHOT)
test/v0_37_fix_wave.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_EMBEDDING_MODEL, GBRAIN_EMBEDDING_DIMENSIONS, OPENAI_API_KEY (+4 more))
test/v0_37_gap_fill.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_NON_INTERACTIVE)
test/wakeshift.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, WAKESHIFT_API_KEY) and binds a fake Wakeshift HTTP listener
test/worker-lock-renewal-e2e.serial.test.ts	R1	R1: mutates process.env (GBRAIN_AUDIT_DIR)
test/worker-registry.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/workspace-push-large-blob.serial.test.ts	R1	R1: mutates process.env (HOME, GBRAIN_HOME, GBRAIN_GIT_ALLOW_FILE_TRANSPORT) so spawned git uses a scratch home and a local file remote
test/workspace-push.serial.test.ts	R1	R1: mutates process.env (HOME, GBRAIN_HOME, GBRAIN_GIT_ALLOW_FILE_TRANSPORT, PATH (+1 more))
test/write-path-no-egress.serial.test.ts	global-state	global-state: binds a local port for the egress-recording server the brain points its providers at
test/write-path-zero-llm.serial.test.ts	R1	R1: mutates process.env (ANTHROPIC_API_KEY, OPENAI_API_KEY) so gated chat and embedding paths are live
test/writeback-nudge.serial.test.ts	global-state	global-state: patches process stdout/stderr/console
test/writeback-review-fixes.serial.test.ts	global-state	global-state: process-wide test seams __resetCheckpointHarvestForTests; patches process stdout/stderr/console
test/large-pages/segmented-publish-tiling.serial.test.ts	global-state	global-state: installs the process-wide persistence fault hook (installFaultHook) to collect a write staging while the write prepares
test/large-pages/segmented-think-compile-leads.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests
test/resolve-ipc-rebind.serial.test.ts	global-state	global-state: binds real Unix sockets and spawns a child serve that is SIGKILLed; withEnv scopes GBRAIN_HOME
test/backup-preflight-6649.serial.test.ts	global-state	global-state: R3: constructs PGLiteEngine inside the restore-drill and fixture-brain steps (each disconnected in finally); creates symlinked homes and 8 GiB sparse files
test/windows-ipc-long-path-6573.serial.test.ts	R1	R1: mutates process.env (USERPROFILE) to place the per-user run dir under a non-ASCII profile path; native windows-latest only
test/coordination-lock.serial.test.ts	global-state	global-state: withEnv holds GBRAIN_HOME and GBRAIN_COORDINATION_HOME across awaited PGLite claims and transfers, and real native lock files are held across them
test/context-assemble-load-warning.serial.test.ts	R2	R2: mock.module(../src/core/engine-factory.ts) replaces modules for every file in the process; R1: mutates process.env (GBRAIN_HOME, DATABASE_URL, GBRAIN_DATABASE_URL)
test/search-tune-apply-truthful.serial.test.ts	R2	R2: mock.module(../src/core/search/tune-recommendations.ts) replaces modules for every file in the process
test/search-cost.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests, __setRerankTransportForTests; configureGateway changes the process-wide AI gateway
test/chat-usage-phases.serial.test.ts	global-state	global-state: process-wide test seams __setChatTransportForTests, __setEmbedTransportForTests, __setGenerateObjectTransportForTests; configureGateway changes the process-wide AI gateway; setChatUsageSink replaces the process-wide ledger sink; R1: mutates process.env (ANTHROPIC_API_KEY)
test/doctor-only-sync-failures-7143.serial.test.ts	global-state	global-state: spawns the real gbrain CLI against a tmpdir PGLite brain and home (doctor --only sync_failures connects the brain)
test/decide/triage-decide-recheck-7307.serial.test.ts	global-state	global-state: process-wide test seams __setDecideTransportForTests, __resetDecideStoreForTests; configureGateway changes the process-wide AI gateway
test/sync-pass-phase-lines-7243.serial.test.ts	global-state	global-state: process-wide test seams __resetDelegatedSyncForTests (runs a resident pass through runnerStart)
test/degraded-stamp-paths.serial.test.ts	R2	R2: mock.module(../src/core/embedding.ts); R1: mutates process.env (GBRAIN_HOME)
test/embed-once-per-content-version.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests (the forced probes hold the first provider call at the transport) and pageEmbeddingLeaseProbe (the module-wide lease contention hook); withEnv scopes GBRAIN_HOME
test/page-embedding-lease.serial.test.ts	global-state	global-state: process-wide test seams __setEmbedTransportForTests (each case swaps the embed transport, one to a refusing provider) and pageEmbeddingLeaseProbe (the module-wide lease contention hook); withEnv scopes GBRAIN_HOME
test/migrate-search-path-best-effort.serial.test.ts	R2	R2: mock.module(v277 migration module) replaces modules for every file in the process
test/agent-session-speaker-8064.serial.test.ts	R1	R1: sets GBRAIN_HOME and GBRAIN_SESSION_AGENT and clears DATABASE_URL and the hook env on process.env
test/two-engine-isolation.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME); also drives the process-wide AI gateway, chat usage sink, search telemetry, link semantics and module caches the suite proves are shared, and binds fake AI provider ports
test/search/identifier-probe.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/search/slug-handles.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME)
test/launcher-lanes-bunfig.serial.test.ts	global-state	global-state: spawns gbrain serve subprocesses against one shared PGLite brain and its data-dir lock; withEnv scopes HOME, GBRAIN_HOME and CODEX_HOME around the bootstrap and setup writers
test/extraction-review-door.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME) around real git subprocesses against tmp repos for the page-door review decisions
test/synopsis-sweep-8744.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_CONTEXTUAL_SYNOPSIS_MODEL)
test/release-channel-w1.serial.test.ts	R1	R1: mutates process.env (GBRAIN_HOME, GBRAIN_RELEASE_CHANNEL) and stubs globalThis.fetch
test/hermes-snapshot-7067.serial.test.ts	R2	R2: mock.module(node:fs) wraps copyFileSync to inject a writer and WAL checkpoint mid-snapshot
test/wakeshift-pr2.serial.test.ts	global-state	global-state: R3: constructs a second PGLiteEngine inside a test (the git-backed brain for write.settled); binds a fake Wakeshift HTTP listener
test/wakeshift-emit-spool.serial.test.ts	global-state	global-state: resets the module-level Wakeshift env-key cache (resetWakeshiftEnvKeyForTests) and starts the process-wide persistence consumer; binds a fake Wakeshift HTTP listener
test/push-secret-scan-gaps.serial.test.ts	global-state	global-state: sets GBRAIN_HOME, PATH (a git wrapper for the index race) and GBRAIN_GIT_ALLOW_FILE_TRANSPORT through withEnv for real commits and pushes to local bare remotes
test/git-commit-push-credential-refused-gst2961.serial.test.ts	global-state	global-state: sets GBRAIN_HOME through the withEnv helper to read the push log a commit-push child wrote, spawns real gbrain CLI children, and runs a local git smart-HTTP stub server on a random port