Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
ci(pg-arms): Bun 1.4.3 cell runs only the PostgreSQL side of testBackends() suites; 11 shards on re-mined two-worker weights
garrytan85e555b47731
diff --git a/.github/workflows/persistence-validation.yml b/.github/workflows/persistence-validation.ymlindex 1cfd29732f..5fa7553a06 100644--- a/.github/workflows/persistence-validation.yml+++ b/.github/workflows/persistence-validation.yml@@ -186,10 +186,10 @@ jobs:# file; the PGLite arm also runs in the unit lane). The list is test/postgres-unit-arms.txt;# scripts/check-postgres-lane-coverage.ts fails a new DATABASE_URL-gated arm# until it is listed there or wrapped in a test/e2e registerPostgresTests- # file. The ten shards (ARM_SHARDS in scripts/postgres-unit-arms.ts) are+ # file. The eleven shards (ARM_SHARDS in scripts/postgres-unit-arms.ts) are# balanced by measured runtime (scripts/postgres-arm-weights.json, and- # scripts/postgres-arm-weights-postgres-only.json for the Bun 1.4.3 cell, mined- # from this job's ARM_FILE lines). Each job runs two files at a time, each+ # ARM_WEIGHTS_POSTGRES_ONLY for the Bun 1.4.3 cell, mined from this job's+ # ARM_FILE lines). Each job runs two files at a time, each# worker against its own PostgreSQL service; a shard's two-worker makespan,# doubled for a slow runner, must end a minute inside the step's 20 minutes# (ARM_SHARD_BUDGET_MS). The Bun 1.4.3 cell runs only the PostgreSQL side of@@ -199,14 +199,14 @@ jobs:# pull request (cheap tier) runs only the crash robot and convergence here. The# full-ci dispatch on its head, every push and the nightly run this lane.unit-postgres-arms:- name: Unit-lane PostgreSQL arms ${{ matrix.shard }}/10 / Bun ${{ matrix.bun }}+ name: Unit-lane PostgreSQL arms ${{ matrix.shard }}/11 / Bun ${{ matrix.bun }}if: ${{ github.event_name != 'pull_request' }}runs-on: ubicloud-standard-4-ubuntu-2404timeout-minutes: 30strategy:fail-fast: falsematrix:- shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]+ shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]bun: ['1.4.0', '1.4.3']# Event parity: every event, pull requests and merge-queue runs# included, runs both supported Bun versions (docs/TESTING.md#event-parity).@@ -254,7 +254,7 @@ jobs:GBRAIN_TEST_ALLOW_DATABASE_URL: '1'GBRAIN_TEST_RECEIPT_DIR: ${{ runner.temp }}/receiptsGBRAIN_TEST_RECEIPT_LANE: pg-arms-bun-${{ matrix.bun }}- run: bun scripts/postgres-unit-arms.ts run ${{ matrix.shard }} 10+ run: bun scripts/postgres-unit-arms.ts run ${{ matrix.shard }} 11 ${{ matrix.bun == '1.4.3' && '--postgres-only' || '' }}- name: Upload receiptsif: always()uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4diff --git a/docs/TESTING.md b/docs/TESTING.mdindex ff015987ca..4de189f6e4 100644--- a/docs/TESTING.md+++ b/docs/TESTING.md@@ -277,8 +277,9 @@ runs with `DATABASE_URL` and names the file, a `test/e2e/` wrapper thatimports it (`registerPostgresTests`), a `tests/heavy/` script that names it,or a row in `scripts/e2e-backend-matrix.txt`. Unit-lane files with no otherPostgres owner are listed in `test/postgres-unit-arms.txt`, read by-`persistence-validation.yml`'s `unit-postgres-arms` job (one Bun process per-file), the [race hunt](#race-hunt) and the lane guard.+`persistence-validation.yml`'s `unit-postgres-arms` job (two files at a time;+the Bun 1.4.3 cell runs only the PostgreSQL side of `testBackends()` suites:+`scripts/postgres-unit-arms.ts`), the [race hunt](#race-hunt) and the lane guard.`bun run check:postgres-lanes` (in `verify`) fails on every arm with no laneand on a bad list row. An arm deliberately left out is an `ALLOWLIST` row in`scripts/check-postgres-lane-coverage.ts` naming its reason and TODO; a rowdiff --git a/docs/architecture/key-files/ci-health-and-test-guards.md b/docs/architecture/key-files/ci-health-and-test-guards.mdindex 15de9d7897..87a0a73c84 100644--- a/docs/architecture/key-files/ci-health-and-test-guards.md+++ b/docs/architecture/key-files/ci-health-and-test-guards.md@@ -21,7 +21,7 @@ Current behavior and load-bearing invariants; history belongs in Git and CHANGEL- `scripts/check-test-env-opt-ins.ts` + `test/helpers/operator-env-policy.ts` — the opt-in naming rule. The policy (`STRIP_PREFIX`, `KEEP_EXACT`, `KEEP_PREFIX`, `RENAMED`, `isStripped`) is shared by `test/helpers/operator-env-preload.ts`, which deletes stripped `GBRAIN_*` names before any test loads and stops the run with the rename command when an old opt-in name is set, and by the guard (`check:test-env-opt-ins`, in `verify`), which parses test files and fails on a test that gates execution on a stripped name. Test opt-ins are `GBRAIN_TEST_<AREA>_<WHAT>`, paid ones `GBRAIN_TEST_LIVE_<WHAT>`. The same guard fails `test_env_snapshot_module_scope`: a `delete` of or assignment to `process.env.GBRAIN_PGLITE_SNAPSHOT` outside every function body in a file the unit matrix loads (`*.serial.test.ts`, `test/e2e/` and `*-preload.ts` are exempt: own process, or process-wide by design). `scripts/test-shard.sh` runs a whole shard in one bun process, so such a change persists for every later file and each of their PGLite engines cold-boots (~3 s); the accepted shape is save+delete in `beforeAll`, restore in `afterAll`, or `test/helpers/with-snapshot.ts` per test. Tests: `test/scripts/test-env-opt-ins-guard.test.ts`, `test/operator-env-preload.test.ts`.- `scripts/check-postgres-lane-coverage.ts` — `check:postgres-lanes` (in `verify`). TypeScript-AST scan of every `test/` file outside `test/e2e/` and `test/fixtures/` for a `DATABASE_URL`-gated PostgreSQL arm (zero-argument `testBackends()`, or a `DATABASE_URL` read used as a condition, connection argument or `database_url` value; `withEnv`-supplied URLs excluded) and a lane that runs it (a workflow step with `DATABASE_URL` naming the file, a `test/e2e/` importer, a `tests/heavy/` script, or a `scripts/e2e-backend-matrix.txt` row). `ALLOWLIST` rows name a reason and TODO; stale rows fail. A `test/postgres-unit-arms.txt` row is a lane; a malformed, duplicate, unsorted, missing-file or arm-less row fails (`postgres_arm_list_invalid`, `postgres_arm_list_stale`). `postgresArm`, `postgresLanes` and `armedFiles` are exported for the stress runner. Tests: `test/scripts/postgres-lane-coverage.test.ts`.- `scripts/check-item-allowlist-catches.ts` + `scripts/item-allowlist-catches-baseline.tsv` — `check:item-allowlist-catches` (in `verify`). TypeScript-AST scan of `src/**/*.ts` (no `*.generated.ts`, `.d.ts`) for catch clauses in a per-item loop (a for/for-of/for-in/while/do-while body, or a `.forEach`/`.map` callback, up to the nearest function boundary) whose block tests the caught error's code against a set, list or literal (direct, cast, aliased or destructured) and rethrows the caught error. Per-file counts only shrink: growth, a new file, a count under its row, a row with no sites or no file, and malformed, duplicate or unsorted rows fail, pointing at `classifyItemFailure` / `ItemRun` (`src/core/item-failure.ts`) and `test/pathological/`. `--update` rewrites the baseline after a shrink. `findAllowlistCatches` and `compareBaseline` are exported for `test/scripts/check-item-allowlist-catches.test.ts`; self-test fixtures under `test/fixtures/guards/check-item-allowlist-catches.ts/`.-- `test/postgres-unit-arms.txt` + `scripts/postgres-unit-arms.ts` + `scripts/postgres-arm-weights.json` — the one list of unit-lane files whose PostgreSQL arm has no other owner (sorted, one path per line, `#` comments). Read by persistence-validation.yml's `unit-postgres-arms` job (`ARM_SHARDS` = 19 shards, `shard <n> <m>`: LPT over the mined per-file weights, p75 fallback; one Bun process per file; each shard's weighted sum at most `ARM_SHARD_BUDGET_MS`, 570 s, so twice that still ends a minute inside the 20-minute `ARM_STEP_TIMEOUT_MS` step), the scheduled race hunt and the lane guard. `mine <job.log>…` rewrites the weights from a green run's shard logs (`##[group]<file>` to the next group or endgroup). Tests: `test/scripts/postgres-unit-arms.test.ts`.+- `test/postgres-unit-arms.txt` + `scripts/postgres-unit-arms.ts` + `scripts/postgres-arm-weights.json` — the one list of unit-lane files whose PostgreSQL arm has no other owner (sorted, one path per line, `#` comments). Read by persistence-validation.yml's `unit-postgres-arms` job (`ARM_SHARDS` = 11 shards, `shard <n> <m>`: LPT over the mined per-file weights, p75 fallback; `run <n> <m> [--postgres-only]`: `ARM_WORKERS` = 2 files at a time, one Bun process per file, each worker on its own URL from `GBRAIN_ARM_DATABASE_URLS`, output buffered per file and printed in queue order in `::group::` blocks ending in an `ARM_FILE … ms=…` line, one receipt triple per file; `--postgres-only` (Bun 1.4.3 cell) sets `GBRAIN_TEST_BACKEND=postgres` and reads `ARM_WEIGHTS_POSTGRES_ONLY` when it exists; each shard's two-worker makespan at most `ARM_SHARD_BUDGET_MS`, 570 s, so twice that still ends a minute inside the 20-minute `ARM_STEP_TIMEOUT_MS` step; no machine-exclusive serial file may be listed), the scheduled race hunt and the lane guard. `mine [--postgres-only] <job.log>…` rewrites the cell's weights from a green run's `ARM_FILE` lines (older logs: `##[group]<file>` to the next group or endgroup). Tests: `test/scripts/postgres-unit-arms.test.ts`.- `scripts/serial-files.tsv` + `scripts/lib/serial-manifest.ts` — the serial manifest: every `*.serial.test.ts` outside `test/e2e/` with its class (`R1`, `R2`, `global-state`, `exclusive`) and a reason. `checkSerialManifest` (pure) requires the manifest to match the tree exactly, classes to match what the file does (env mutation, `mock.module`, `EXCLUSIVE_FILES`) and reasons to be specific; each failure prints Why/Fix/Docs with `bash scripts/check-test-isolation.sh --as-parallel <file>` as the first step. Tests: `test/scripts/serial-files.test.ts`.- `test/helpers/brain-template.ts` — disk-backed PGLite brains cloned from one initialized template per process and embedding shape. The template is captured right after `initSchema` with no source, writer or physical-root reservation (asserted); only the data directory is copied; each clone regenerates `brain_id`, the default source incarnation and the shared-skill token secret and serving epoch. Used by `test/helpers/connector-fixture.ts`. Tests: `test/helpers/brain-template.test.ts`.- `scripts/test-agent-voice.sh` — `bun run test:agent-voice`: the agent-voice recipe's vitest unit suite (`recipes/agent-voice/tests/unit`), with pinned vitest and ws installed into a temporary prefix linked as the recipe's `node_modules`. Needs node, npm and registry access; CI runs it in test.yml's verify job.diff --git a/scripts/postgres-arm-weights.json b/scripts/postgres-arm-weights.jsonindex e7b987426a..430d3643ca 100644--- a/scripts/postgres-arm-weights.json+++ b/scripts/postgres-arm-weights.json@@ -1,396 +1,396 @@{- "test/activation-unbound-rooted-6449.test.ts": 7217,- "test/alias-source-cascade-5094.test.ts": 14484,- "test/attribution-backfill-history.test.ts": 32313,- "test/backstop-same-page-shadow-managed-6333.test.ts": 9415,- "test/behavior-change-notice.test.ts": 7594,- "test/belief-ledger-coverage.test.ts": 176935,- "test/belief-ledger-group.test.ts": 27812,- "test/belief-ledger-identity.test.ts": 66521,- "test/belief-ledger-lifecycle.test.ts": 53303,- "test/belief-ledger-page-at-time.test.ts": 86720,- "test/belief-ledger-privacy.test.ts": 27869,- "test/belief-ledger-purge-review.test.ts": 129535,- "test/belief-ledger-purge.test.ts": 113359,- "test/belief-ledger-restore.test.ts": 183762,- "test/belief-ledger-touched.test.ts": 31275,- "test/belief-ledger-trust.test.ts": 12486,- "test/belief-ledger-w5-time-model.test.ts": 20945,- "test/belief-ledger-weekly-diff.test.ts": 83811,- "test/belief-ledger-weekly-probes.test.ts": 40149,- "test/capacity-bounded-read-6803.test.ts": 10446,- "test/capture-consent-admission.test.ts": 7215,- "test/capture-dispatch-provenance-6524.test.ts": 6248,- "test/chronicle-backfill-max-usd.test.ts": 4444,- "test/claim-fifo-foreground-waiting.test.ts": 5782,- "test/claim-lease-holder-only-6712.test.ts": 6345,- "test/claude-cli-output-cap.test.ts": 6189,- "test/colon-slug-windows-5032.test.ts": 7573,- "test/company-brain-policy.test.ts": 22327,- "test/company-brain-runtime.test.ts": 29152,- "test/conversation-facts-oversized-sidecar.test.ts": 8678,- "test/cycle/synthesize-concepts-merge.test.ts": 9093,- "test/decide/conflict-proposals-managed.test.ts": 8237,- "test/declared-lineage-visibility.test.ts": 7114,- "test/derived-link-reconciliation.test.ts": 9546,- "test/doctor-frontmatter-holds.test.ts": 12231,- "test/doctor-image-embedding-coverage.test.ts": 8999,- "test/doctor-keyword-plan-6495.test.ts": 7210,- "test/doctor-routing-skill-pack-source.test.ts": 4810,- "test/doctor-sync-freshness-skill-pack-6076.test.ts": 6288,- "test/embed-stale-images-managed-6529.test.ts": 8998,- "test/embedding-completion-atomic.serial.test.ts": 7443,- "test/engine-sql-facts-keyset.test.ts": 6565,- "test/extract-all-stamp-intersection.serial.test.ts": 7976,- "test/extract-atoms-input-truncated-6503.test.ts": 13296,- "test/extract-endpoint-revision.serial.test.ts": 6471,- "test/extract-entities-managed.test.ts": 28108,- "test/extract-timeline-from-meetings-managed.test.ts": 19527,- "test/extraction-watermark-atoms.test.ts": 5304,- "test/fact-fence-adoption-exits.test.ts": 23435,- "test/fact-purge-lookup-timeout-6511.test.ts": 8570,- "test/facts-publication-large-fence-6898.test.ts": 36467,- "test/fence-repair-receipts.test.ts": 8230,- "test/forecast-journal.test.ts": 29052,- "test/frontmatter-reserved-keys-6454.test.ts": 7568,- "test/get-chunks-paging.test.ts": 6417,- "test/graduation-copy.test.ts": 83435,- "test/graduation-digest.test.ts": 2505,- "test/graduation-drain.test.ts": 12561,- "test/graduation-inventory.test.ts": 8560,- "test/graduation-rollback.test.ts": 95772,- "test/graduation-state.test.ts": 160497,- "test/graduation-target.test.ts": 2263,- "test/graduation-verify-sync-freshness.test.ts": 8579,- "test/graduation-verify.test.ts": 18901,- "test/grandfather-managed.test.ts": 42482,- "test/harness-skills-epoch.test.ts": 4388,- "test/held-read-signals.test.ts": 6448,- "test/hold-action-chain-6712.test.ts": 21715,- "test/import-frontmatter-key-order-5158.test.ts": 3637,- "test/import-inline-chunk-keep.test.ts": 5967,- "test/import-revision-concurrency.test.ts": 4490,- "test/keyword-statement-timeout-knob-6495.test.ts": 13998,- "test/keyword-timeout-negative-cache-6495.test.ts": 4775,- "test/lane-apply-pipelining.test.ts": 4204,- "test/large-pages/chunk-retirement-plan.test.ts": 4865,- "test/large-pages/chunk-visibility.test.ts": 6934,- "test/large-pages/contextual-reembed-segmented.test.ts": 7750,- "test/large-pages/credential-reseal-segments.test.ts": 6382,- "test/large-pages/doctor-skipped-segmented.test.ts": 16728,- "test/large-pages/forget-reason-segmented.test.ts": 6112,- "test/large-pages/forget-scope.test.ts": 21651,- "test/large-pages/gbra117-segmented-classes-window.test.ts": 53107,- "test/large-pages/held-budget-count-list.test.ts": 11555,- "test/large-pages/held-budget-shrink.test.ts": 9830,- "test/large-pages/managed-import-outside-root.test.ts": 24728,- "test/large-pages/managed-links-timeline-heap.test.ts": 33878,- "test/large-pages/managed-streamed-import.test.ts": 49049,- "test/large-pages/managed-sync-segmented-rename.test.ts": 24899,- "test/large-pages/managed-sync-streamed.test.ts": 125028,- "test/large-pages/oversized-backfill-segmented.test.ts": 7075,- "test/large-pages/page-purge-segments.test.ts": 30090,- "test/large-pages/pinned-segmented-reads.test.ts": 33745,- "test/large-pages/projection-claim-ownership.test.ts": 30897,- "test/large-pages/projection-demotion-race.test.ts": 5673,- "test/large-pages/projection-parity.test.ts": 62486,- "test/large-pages/publication-seal-bounded.test.ts": 27736,- "test/large-pages/purge-fact-inflight-staging.test.ts": 14500,- "test/large-pages/purge-fact-segmented-preimage.test.ts": 19111,- "test/large-pages/purge-inflight-create.test.ts": 11705,- "test/large-pages/purge-replay-segments.test.ts": 9641,- "test/large-pages/purge-segment-residue.test.ts": 7706,- "test/large-pages/purge-segmented-versions-batch.test.ts": 9990,- "test/large-pages/purge-segments.test.ts": 9736,- "test/large-pages/recovery-budget-ceiling.slow.test.ts": 178456,- "test/large-pages/recovery-budget-default.test.ts": 8089,- "test/large-pages/remote-get-page-privacy.test.ts": 85316,- "test/large-pages/remote-versions-storage-change.test.ts": 7159,- "test/large-pages/remote-window-privacy.test.ts": 71023,- "test/large-pages/restore-deferred-retire.test.ts": 24163,- "test/large-pages/restore-publication-statement-bound.test.ts": 26038,- "test/large-pages/restore-segmented-reprojects.test.ts": 75156,- "test/large-pages/sealed-segmented-search.test.ts": 13126,- "test/large-pages/second-write-deferred-retire.test.ts": 12789,- "test/large-pages/segment-rewrite-cr-tier.test.ts": 8457,- "test/large-pages/segment-vector-reuse.test.ts": 7527,- "test/large-pages/segmented-append-reembed.test.ts": 8738,- "test/large-pages/segmented-body-unreachable.test.ts": 6691,- "test/large-pages/segmented-bom.test.ts": 13412,- "test/large-pages/segmented-conversation-facts.test.ts": 29815,- "test/large-pages/segmented-conversation-sidecar-token.test.ts": 23927,- "test/large-pages/segmented-core-list.test.ts": 35433,- "test/large-pages/segmented-create-searchable.test.ts": 26619,- "test/large-pages/segmented-delete-crash.slow.test.ts": 63772,- "test/large-pages/segmented-delete-restore-file.slow.test.ts": 109955,- "test/large-pages/segmented-delete-stage-crash.slow.test.ts": 167151,- "test/large-pages/segmented-derived-parity.test.ts": 12039,- "test/large-pages/segmented-derived-passes.test.ts": 17035,- "test/large-pages/segmented-derived-work.test.ts": 84227,- "test/large-pages/segmented-embedding-paths.test.ts": 41976,- "test/large-pages/segmented-embedding.test.ts": 5467,- "test/large-pages/segmented-evidence-read-cost.test.ts": 34510,- "test/large-pages/segmented-evidence.test.ts": 48486,- "test/large-pages/segmented-extraction-stale.test.ts": 11434,- "test/large-pages/segmented-facts-forced-lines.test.ts": 14190,- "test/large-pages/segmented-facts-reconcile.test.ts": 96768,- "test/large-pages/segmented-file-drift-ledger.test.ts": 46839,- "test/large-pages/segmented-file-drift.test.ts": 104082,- "test/large-pages/segmented-forced-cuts.test.ts": 79375,- "test/large-pages/segmented-frontmatter-reimport.test.ts": 33676,- "test/large-pages/segmented-get-cli.test.ts": 25410,- "test/large-pages/segmented-get-page-parity.test.ts": 24210,- "test/large-pages/segmented-leads.test.ts": 18283,- "test/large-pages/segmented-loser-chunks.test.ts": 9661,- "test/large-pages/segmented-maintenance-commands.test.ts": 13112,- "test/large-pages/segmented-prior-view.test.ts": 16215,- "test/large-pages/segmented-read-refusals.test.ts": 13285,- "test/large-pages/segmented-real-size.slow.test.ts": 57808,- "test/large-pages/segmented-remember-refusal.test.ts": 29151,- "test/large-pages/segmented-repair-scans.test.ts": 13911,- "test/large-pages/segmented-retained-blocks.test.ts": 55390,- "test/large-pages/segmented-search-dedup.test.ts": 15247,- "test/large-pages/segmented-semantic-writes-near-ceiling.slow.test.ts": 115116,- "test/large-pages/segmented-semantic-writes.test.ts": 63424,- "test/large-pages/segmented-shrink-below-ceiling.test.ts": 84100,- "test/large-pages/segmented-storage-visibility.test.ts": 21400,- "test/large-pages/segmented-sweep-budget.test.ts": 25155,- "test/large-pages/segmented-sweep-deferral.test.ts": 16246,- "test/large-pages/segmented-switch.test.ts": 32296,- "test/large-pages/segmented-think-compile-leads.serial.test.ts": 15740,- "test/large-pages/segmented-timeline-heap.test.ts": 73891,- "test/large-pages/segmented-timeline-retract-versions.test.ts": 9010,- "test/large-pages/segmented-versions.test.ts": 5726,- "test/large-pages/segmented-withdrawal-mirror.test.ts": 267228,- "test/large-pages/segmented-withdrawn-fence-delete.test.ts": 66203,- "test/large-pages/streamed-import-drift.test.ts": 23397,- "test/large-pages/streamed-sync-origin-b14.test.ts": 71715,- "test/large-pages/stuck-recovery-large.slow.test.ts": 250722,- "test/large-pages/v252-master-reader-compat.test.ts": 11093,- "test/link-cross-source.test.ts": 14356,- "test/link-preparation-shared-index.test.ts": 11917,- "test/links-attendance-blocked.test.ts": 12594,- "test/managed-cycle-pull-upstream.test.ts": 7861,- "test/managed-facts-withdrawal-recovery-6506.test.ts": 7978,- "test/managed-facts-withdrawn-skip-6506.test.ts": 5939,- "test/managed-lint.test.ts": 11620,- "test/managed-maintenance-links.test.ts": 7987,- "test/managed-sweep-corpus-windows.test.ts": 8498,- "test/managed-sweep-refused-window-retry.test.ts": 12745,- "test/managed-sweep-timeline.test.ts": 8230,- "test/managed-sync-blocked-job-6858.test.ts": 5567,- "test/managed-sync-bulk.test.ts": 190717,- "test/managed-sync-checkpoint-replaced.test.ts": 8849,- "test/managed-sync-chunker-version.test.ts": 10758,- "test/managed-sync-concurrent-write-hold.test.ts": 15048,- "test/managed-sync-connection-loss.test.ts": 9681,- "test/managed-sync-drain.test.ts": 9743,- "test/managed-sync-foreground-priority.test.ts": 66175,- "test/managed-sync-gate-markers-6858.test.ts": 6150,- "test/managed-sync-group-completion.test.ts": 11738,- "test/managed-sync-group-uncommitted-head.test.ts": 19853,- "test/managed-sync-images-5493.test.ts": 8645,- "test/managed-sync-keep-disk-6858.test.ts": 29568,- "test/managed-sync-lanes.test.ts": 28850,- "test/managed-sync-orphans-incarnation-6518.test.ts": 8370,- "test/managed-sync-page-fault-holds.test.ts": 28374,- "test/managed-sync-pinned-reads.test.ts": 27351,- "test/managed-sync-preparation-stalled-holds.test.ts": 49112,- "test/managed-sync-row-parity.test.ts": 11399,- "test/managed-sync-stale-group-head.test.ts": 4343,- "test/migration-persistence-request-id-index.test.ts": 6470,- "test/migration-persistence-request-slug-index.test.ts": 9709,- "test/on-commit-embedding.serial.test.ts": 11678,- "test/origin-guard-6948.test.ts": 11453,- "test/origin-twins-6948.test.ts": 5073,- "test/overwritten-edits-6712.test.ts": 30673,- "test/owner-refusal.test.ts": 5757,- "test/pack-relation-direction-engine.test.ts": 8979,- "test/page-embedding-budget.test.ts": 9197,- "test/page-embedding-content-validity.test.ts": 6174,- "test/page-embedding-install-batch.test.ts": 3607,- "test/page-prepare-shared-origin-6517.test.ts": 10685,- "test/page-purge-batch-sweep-6884.test.ts": 7966,- "test/page-purge-journal-timeout-6511.test.ts": 22599,- "test/page-state-engine.test.ts": 3351,- "test/pathological/a-36-facts-batch-partial-refusal.test.ts": 9322,- "test/pathological/a-42-atom-dot-led-slug.test.ts": 7782,- "test/pathological/a-51-conversation-batch-booking.test.ts": 12696,- "test/pathological/a-60-belief-commit-mark.test.ts": 4892,- "test/pathological/a-65-captured-facts-unreadable-corpus.test.ts": 4515,- "test/pathological/a1-links-extract.test.ts": 35763,- "test/pathological/a10-global-maintenance-stamp.test.ts": 6282,- "test/pathological/a11-effect-retry-budget.test.ts": 51775,- "test/pathological/a12-withdrawal-mirror-gate.test.ts": 51256,- "test/pathological/a13-embedding-target-park.test.ts": 48190,- "test/pathological/a15-deactivate-exits.test.ts": 10827,- "test/pathological/a18-ledger-path-text.test.ts": 41572,- "test/pathological/a2-transcripts-ingest.test.ts": 122602,- "test/pathological/a21-facts-expire-deleted.test.ts": 51439,- "test/pathological/a22-consolidate-buckets.test.ts": 35278,- "test/pathological/a23-patterns-grounding.test.ts": 74602,- "test/pathological/a24-phantom-redirect-cursor.test.ts": 47004,- "test/pathological/a25-propose-takes-poison-pages.test.ts": 36865,- "test/pathological/a26-safe-chunks-reseal.test.ts": 7252,- "test/pathological/a27-credential-reseal.test.ts": 9837,- "test/pathological/a3-google-items.test.ts": 116008,- "test/pathological/a30-watchdog-attribution.test.ts": 7334,- "test/pathological/a31-migrate-loop-rows.serial.test.ts": 42623,- "test/pathological/a4-synthesize-postprocess.test.ts": 14789,- "test/pathological/a41-maintain-sources.test.ts": 31723,- "test/pathological/a44-slug-conflicts-rotation.test.ts": 43830,- "test/pathological/a45-repair-all-kinds.test.ts": 5558,- "test/pathological/a46-content-lane-kinds.test.ts": 6333,- "test/pathological/a47-backfill-poison-row.test.ts": 8268,- "test/pathological/a49-unmanaged-purge-tombstones.test.ts": 56322,- "test/pathological/a50-unmanaged-expired-sources.test.ts": 6708,- "test/pathological/a9-repair-core.test.ts": 8160,- "test/pathological/b-10-ontology-rekey-collision.test.ts": 4648,- "test/pathological/b-7-facts-pageless-entity.test.ts": 15887,- "test/pathological/b-9-enrich-retired-alias.test.ts": 5880,- "test/pathological/b12-slug-segment-bytes.test.ts": 21481,- "test/pathological/b5-enrich-entity-identity.test.ts": 5070,- "test/pathological/b5-export-unsafe-slugs.test.ts": 43587,- "test/pathological/b6-triage-verdict-surrogate.test.ts": 6033,- "test/pathological/c-23-override-and-doctor-fixes.test.ts": 6666,- "test/pathological/c-9-facts-absorb-dead.test.ts": 5048,- "test/pathological/c1-effect-stuck-recovery.test.ts": 42130,- "test/pathological/c2-url-clone-fences.test.ts": 71254,- "test/pathological/c4-bundle-stuck-recovery.test.ts": 147355,- "test/pathological/c5-writer-transfer-cancel.test.ts": 38060,- "test/pathological/c7-content-receipt-root.test.ts": 36873,- "test/pathological/d1-unfenced-facts-overwrite.test.ts": 45167,- "test/pathological/d10-derived-atom-file-overwrite.test.ts": 19221,- "test/pathological/d11-derived-retired-atom-unlink.test.ts": 16703,- "test/pathological/d12-concept-stale-fences.test.ts": 19602,- "test/pathological/d13-concept-occupied-path.test.ts": 24227,- "test/pathological/d14-brainstorm-resume-overwrite.test.ts": 19646,- "test/pathological/d15-sync-reexport-overwrite.test.ts": 26488,- "test/pathological/d16-google-file-replacement.test.ts": 35939,- "test/pathological/d17-github-file-replacement.test.ts": 55071,- "test/pathological/d18-think-take-db-only.test.ts": 50499,- "test/pathological/d19-takes-bootstrap-db-only.test.ts": 27331,- "test/pathological/d2-fence-write-overwrite.test.ts": 31395,- "test/pathological/d21-migration-verifier-record.test.ts": 77426,- "test/pathological/d22-legacy-hash-body-history.test.ts": 46113,- "test/pathological/d23-extract-atoms-db-only.test.ts": 28937,- "test/pathological/d3-forget-overwrite.test.ts": 84495,- "test/pathological/d4-proposal-overwrite.test.ts": 83188,- "test/pathological/d5-phantom-canonical-overwrite.test.ts": 31607,- "test/pathological/d6-phantom-file-unlink.test.ts": 22268,- "test/pathological/d7-synthesize-reverse-write.test.ts": 32796,- "test/pathological/d8-patterns-reverse-write.test.ts": 28915,- "test/pathological/d9-dream-summary-overwrite.test.ts": 29532,- "test/pathological/facts-mirror-failures.test.ts": 67000,- "test/pathological/w1-write-through-staging-window.serial.test.ts": 9361,- "test/persistence-background-pause.test.ts": 5755,- "test/persistence-bounded-read-session.test.ts": 7577,- "test/persistence-capacity-forecast.test.ts": 8757,- "test/persistence-capacity-notices.test.ts": 7055,- "test/persistence-commit-durability.test.ts": 6542,- "test/persistence-deactivate.test.ts": 19548,- "test/persistence-diagnostics.test.ts": 5982,- "test/persistence-edit-embedding-reuse.test.ts": 5816,- "test/persistence-embedding-noop-settle.test.ts": 6680,- "test/persistence-file-import.test.ts": 28316,- "test/persistence-git-subdir-origin.test.ts": 12019,- "test/persistence-graph-publication.test.ts": 8121,- "test/persistence-history-fixture.test.ts": 31188,- "test/persistence-image-import.serial.test.ts": 8126,- "test/persistence-import-batch.test.ts": 27297,- "test/persistence-managed-lifecycle.test.ts": 21380,- "test/persistence-managed-sync.test.ts": 87978,- "test/persistence-manifest-git-scope.test.ts": 4878,- "test/persistence-memory-mutations.test.ts": 9285,- "test/persistence-page-authority.test.ts": 6782,- "test/persistence-physical-root-device.test.ts": 6684,- "test/persistence-preactivation-claim.test.ts": 12327,- "test/persistence-publication-deadline.test.ts": 19875,- "test/persistence-receipt-true-up.test.ts": 13171,- "test/persistence-reconcile-git-dirty-6138.test.ts": 5991,- "test/persistence-skill-bundles.serial.test.ts": 5873,- "test/persistence-skill-crash.slow.test.ts": 46303,- "test/persistence-skip-cost.test.ts": 7341,- "test/persistence-sync-cursor-adoption.test.ts": 60136,- "test/persistence-sync-cursor-options.test.ts": 9217,- "test/persistence-sync-cursor-strategy-6696.test.ts": 8859,- "test/persistence-sync-fence-holds.test.ts": 30047,- "test/persistence-sync-holds.test.ts": 22756,- "test/persistence-sync-lease.test.ts": 30196,- "test/persistence-write-interrupted.test.ts": 45130,- "test/persistence-write-stall.test.ts": 5025,- "test/persistence-writer-fences.test.ts": 4470,- "test/physical-root-birth-tolerance-6501.test.ts": 9590,- "test/purge-fact.test.ts": 9206,- "test/purge-global-marker.test.ts": 7531,- "test/purge-missing-cache-6911.test.ts": 8604,- "test/purge-read-surfaces.test.ts": 15248,- "test/recall-page-fill.test.ts": 8965,- "test/remediation-manual-only.test.ts": 8896,- "test/repair-apply-pending-6543.test.ts": 63056,- "test/repair-embedding-effects.test.ts": 6874,- "test/repair-failed-writes-conflict-6429.test.ts": 6061,- "test/repair-failed-writes-drift-w411.test.ts": 5662,- "test/repair-fences.test.ts": 20943,- "test/repair-file-drift-deleted-6712.test.ts": 11738,- "test/repair-frontmatter-keys-sweep-6454.test.ts": 5945,- "test/repair-frontmatter.test.ts": 17420,- "test/repair-receipt-compaction.test.ts": 6281,- "test/repair-rename-identity-6729.test.ts": 18345,- "test/schema-missing-tables.test.ts": 7070,- "test/scripts/test-stress-postgres.test.ts": 12058,- "test/search-read-keyword-bound.test.ts": 3484,- "test/search/page-rank-cut.test.ts": 11731,- "test/search/rerank-gate-hybrid.test.ts": 5182,- "test/search/rerank-gate-telemetry.test.ts": 5618,- "test/serve-head-watcher-managed.serial.test.ts": 8739,- "test/shared-content-freshness.test.ts": 4928,- "test/shared-skills-catalog.test.ts": 52425,- "test/shared-skills-retention-capacity.test.ts": 4519,- "test/shared-skills-source-opt-out.test.ts": 3744,- "test/shared-skills-writer-boundary.test.ts": 10703,- "test/source-retire-missing-checkout.test.ts": 5642,- "test/source-row-diagnostics.test.ts": 3971,- "test/stats-health-source-scope.test.ts": 7534,- "test/sync-capacity-preflight.test.ts": 6333,- "test/sync-checkpoint-moved-6834.test.ts": 17511,- "test/sync-drain-claims.test.ts": 15610,- "test/sync-drain-effect-recovery-blocked.test.ts": 6458,- "test/sync-drain-head-blocked-6543.test.ts": 6613,- "test/sync-drain-inpass-stall.test.ts": 5366,- "test/sync-drain-write-capacity.test.ts": 10511,- "test/sync-exits-l4-6712.test.ts": 8295,- "test/sync-freshness-6858.test.ts": 5910,- "test/sync-frontmatter-recovery.test.ts": 5238,- "test/sync-frontmatter-slug-conflict.test.ts": 8275,- "test/sync-full-cursor-slices-6349.test.ts": 17352,- "test/sync-full-untracked-import-5459.test.ts": 12741,- "test/sync-group-member-order.test.ts": 8454,- "test/sync-handler-drain-6706.test.ts": 31900,- "test/sync-import-provenance-disk.test.ts": 14185,- "test/sync-inexact-rename-6729.test.ts": 28591,- "test/sync-legacy-holds.test.ts": 11817,- "test/sync-legacy-retry-actions-6696.test.ts": 8921,- "test/sync-legacy-slug-adoption-6727.test.ts": 12365,- "test/sync-origin-live-wins-6517.test.ts": 4047,- "test/sync-prescreen-both-delta-6712.test.ts": 19648,- "test/sync-prescreen-drift-6712.test.ts": 63992,- "test/sync-slug-root-mode-6694.test.ts": 16789,- "test/sync-staged-catchup.test.ts": 9098,- "test/sync-status-failure-detail-6513.test.ts": 4288,- "test/sync-waiver-budget.test.ts": 7122,- "test/sync-waiver-run-imports.test.ts": 8641,- "test/take-resolution-survives-publish.test.ts": 6930,- "test/takes-vector-lifecycle-5885.serial.test.ts": 9369,- "test/terminal-failures-6650.test.ts": 15216,- "test/trust-channel-writes.test.ts": 13220,- "test/trust-guarded-supersession.test.ts": 10273,- "test/trust-held-removals.test.ts": 14296,- "test/trust-owner-actions.test.ts": 9672,- "test/unbound-source-6536.test.ts": 10686,- "test/unindexed-files.test.ts": 15969,- "test/vector-manifest-probe-bound.test.ts": 20615,- "test/withdrawal-overlay-concurrency.test.ts": 3802,- "test/withdrawal-publication-file.test.ts": 4363,- "test/writer-status-owner-backends.test.ts": 3734+ "test/activation-unbound-rooted-6449.test.ts": 6998,+ "test/alias-source-cascade-5094.test.ts": 12830,+ "test/attribution-backfill-history.test.ts": 35991,+ "test/backstop-same-page-shadow-managed-6333.test.ts": 8923,+ "test/behavior-change-notice.test.ts": 8165,+ "test/belief-ledger-coverage.test.ts": 190053,+ "test/belief-ledger-group.test.ts": 23973,+ "test/belief-ledger-identity.test.ts": 59919,+ "test/belief-ledger-lifecycle.test.ts": 60437,+ "test/belief-ledger-page-at-time.test.ts": 78456,+ "test/belief-ledger-privacy.test.ts": 24578,+ "test/belief-ledger-purge-review.test.ts": 180005,+ "test/belief-ledger-purge.test.ts": 130755,+ "test/belief-ledger-restore.test.ts": 164524,+ "test/belief-ledger-touched.test.ts": 41426,+ "test/belief-ledger-trust.test.ts": 21954,+ "test/belief-ledger-w5-time-model.test.ts": 26485,+ "test/belief-ledger-weekly-diff.test.ts": 82794,+ "test/belief-ledger-weekly-probes.test.ts": 31089,+ "test/capacity-bounded-read-6803.test.ts": 9631,+ "test/capture-consent-admission.test.ts": 11337,+ "test/capture-dispatch-provenance-6524.test.ts": 7256,+ "test/chronicle-backfill-max-usd.test.ts": 8666,+ "test/claim-fifo-foreground-waiting.test.ts": 6303,+ "test/claim-lease-holder-only-6712.test.ts": 6212,+ "test/claude-cli-output-cap.test.ts": 6576,+ "test/colon-slug-windows-5032.test.ts": 7706,+ "test/company-brain-policy.test.ts": 19179,+ "test/company-brain-runtime.test.ts": 26832,+ "test/conversation-facts-oversized-sidecar.test.ts": 10501,+ "test/cycle/synthesize-concepts-merge.test.ts": 9404,+ "test/decide/conflict-proposals-managed.test.ts": 10059,+ "test/declared-lineage-visibility.test.ts": 6217,+ "test/derived-link-reconciliation.test.ts": 8634,+ "test/doctor-frontmatter-holds.test.ts": 11996,+ "test/doctor-image-embedding-coverage.test.ts": 6866,+ "test/doctor-keyword-plan-6495.test.ts": 4116,+ "test/doctor-routing-skill-pack-source.test.ts": 5892,+ "test/doctor-sync-freshness-skill-pack-6076.test.ts": 7059,+ "test/embed-stale-images-managed-6529.test.ts": 9062,+ "test/embedding-completion-atomic.serial.test.ts": 7694,+ "test/engine-sql-facts-keyset.test.ts": 4893,+ "test/extract-all-stamp-intersection.serial.test.ts": 8865,+ "test/extract-atoms-input-truncated-6503.test.ts": 14479,+ "test/extract-endpoint-revision.serial.test.ts": 8333,+ "test/extract-entities-managed.test.ts": 32191,+ "test/extract-timeline-from-meetings-managed.test.ts": 12745,+ "test/extraction-watermark-atoms.test.ts": 6833,+ "test/fact-fence-adoption-exits.test.ts": 40374,+ "test/fact-purge-lookup-timeout-6511.test.ts": 8577,+ "test/facts-publication-large-fence-6898.test.ts": 53297,+ "test/fence-repair-receipts.test.ts": 13965,+ "test/forecast-journal.test.ts": 30081,+ "test/frontmatter-reserved-keys-6454.test.ts": 7512,+ "test/get-chunks-paging.test.ts": 6043,+ "test/graduation-copy.test.ts": 135652,+ "test/graduation-digest.test.ts": 3386,+ "test/graduation-drain.test.ts": 14703,+ "test/graduation-inventory.test.ts": 5576,+ "test/graduation-rollback.test.ts": 115431,+ "test/graduation-state.test.ts": 168274,+ "test/graduation-target.test.ts": 3769,+ "test/graduation-verify-sync-freshness.test.ts": 7855,+ "test/graduation-verify.test.ts": 21394,+ "test/grandfather-managed.test.ts": 71739,+ "test/harness-skills-epoch.test.ts": 3984,+ "test/held-read-signals.test.ts": 9945,+ "test/hold-action-chain-6712.test.ts": 21298,+ "test/import-frontmatter-key-order-5158.test.ts": 6602,+ "test/import-inline-chunk-keep.test.ts": 6893,+ "test/import-revision-concurrency.test.ts": 6276,+ "test/keyword-statement-timeout-knob-6495.test.ts": 13830,+ "test/keyword-timeout-negative-cache-6495.test.ts": 5559,+ "test/lane-apply-pipelining.test.ts": 4984,+ "test/large-pages/chunk-retirement-plan.test.ts": 6888,+ "test/large-pages/chunk-visibility.test.ts": 10008,+ "test/large-pages/contextual-reembed-segmented.test.ts": 8074,+ "test/large-pages/credential-reseal-segments.test.ts": 7595,+ "test/large-pages/doctor-skipped-segmented.test.ts": 17813,+ "test/large-pages/forget-reason-segmented.test.ts": 11161,+ "test/large-pages/forget-scope.test.ts": 33275,+ "test/large-pages/gbra117-segmented-classes-window.test.ts": 67867,+ "test/large-pages/held-budget-count-list.test.ts": 13268,+ "test/large-pages/held-budget-shrink.test.ts": 17361,+ "test/large-pages/managed-import-outside-root.test.ts": 21413,+ "test/large-pages/managed-links-timeline-heap.test.ts": 34844,+ "test/large-pages/managed-streamed-import.test.ts": 56968,+ "test/large-pages/managed-sync-segmented-rename.test.ts": 25348,+ "test/large-pages/managed-sync-streamed.test.ts": 163385,+ "test/large-pages/oversized-backfill-segmented.test.ts": 8053,+ "test/large-pages/page-purge-segments.test.ts": 33057,+ "test/large-pages/pinned-segmented-reads.test.ts": 30037,+ "test/large-pages/projection-claim-ownership.test.ts": 32934,+ "test/large-pages/projection-demotion-race.test.ts": 8232,+ "test/large-pages/projection-parity.test.ts": 74168,+ "test/large-pages/publication-seal-bounded.test.ts": 24685,+ "test/large-pages/purge-fact-inflight-staging.test.ts": 24333,+ "test/large-pages/purge-fact-segmented-preimage.test.ts": 21666,+ "test/large-pages/purge-inflight-create.test.ts": 15677,+ "test/large-pages/purge-replay-segments.test.ts": 12420,+ "test/large-pages/purge-segment-residue.test.ts": 9173,+ "test/large-pages/purge-segmented-versions-batch.test.ts": 13416,+ "test/large-pages/purge-segments.test.ts": 11968,+ "test/large-pages/recovery-budget-ceiling.slow.test.ts": 248138,+ "test/large-pages/recovery-budget-default.test.ts": 10852,+ "test/large-pages/remote-get-page-privacy.test.ts": 94328,+ "test/large-pages/remote-versions-storage-change.test.ts": 9350,+ "test/large-pages/remote-window-privacy.test.ts": 51441,+ "test/large-pages/restore-deferred-retire.test.ts": 29093,+ "test/large-pages/restore-publication-statement-bound.test.ts": 32063,+ "test/large-pages/restore-segmented-reprojects.test.ts": 69368,+ "test/large-pages/sealed-segmented-search.test.ts": 15746,+ "test/large-pages/second-write-deferred-retire.test.ts": 14211,+ "test/large-pages/segment-rewrite-cr-tier.test.ts": 11164,+ "test/large-pages/segment-vector-reuse.test.ts": 10991,+ "test/large-pages/segmented-append-reembed.test.ts": 8956,+ "test/large-pages/segmented-body-unreachable.test.ts": 6461,+ "test/large-pages/segmented-bom.test.ts": 17487,+ "test/large-pages/segmented-conversation-facts.test.ts": 35643,+ "test/large-pages/segmented-conversation-sidecar-token.test.ts": 20659,+ "test/large-pages/segmented-core-list.test.ts": 33220,+ "test/large-pages/segmented-create-searchable.test.ts": 29620,+ "test/large-pages/segmented-delete-crash.slow.test.ts": 89137,+ "test/large-pages/segmented-delete-restore-file.slow.test.ts": 159907,+ "test/large-pages/segmented-delete-stage-crash.slow.test.ts": 150890,+ "test/large-pages/segmented-derived-parity.test.ts": 17943,+ "test/large-pages/segmented-derived-passes.test.ts": 20759,+ "test/large-pages/segmented-derived-work.test.ts": 84562,+ "test/large-pages/segmented-embedding-paths.test.ts": 30092,+ "test/large-pages/segmented-embedding.test.ts": 6392,+ "test/large-pages/segmented-evidence-read-cost.test.ts": 36146,+ "test/large-pages/segmented-evidence.test.ts": 50920,+ "test/large-pages/segmented-extraction-stale.test.ts": 13357,+ "test/large-pages/segmented-facts-forced-lines.test.ts": 13661,+ "test/large-pages/segmented-facts-reconcile.test.ts": 99465,+ "test/large-pages/segmented-file-drift-ledger.test.ts": 63493,+ "test/large-pages/segmented-file-drift.test.ts": 87987,+ "test/large-pages/segmented-forced-cuts.test.ts": 68593,+ "test/large-pages/segmented-frontmatter-reimport.test.ts": 30223,+ "test/large-pages/segmented-get-cli.test.ts": 25185,+ "test/large-pages/segmented-get-page-parity.test.ts": 21899,+ "test/large-pages/segmented-leads.test.ts": 19598,+ "test/large-pages/segmented-loser-chunks.test.ts": 9456,+ "test/large-pages/segmented-maintenance-commands.test.ts": 19746,+ "test/large-pages/segmented-prior-view.test.ts": 17096,+ "test/large-pages/segmented-read-refusals.test.ts": 20717,+ "test/large-pages/segmented-real-size.slow.test.ts": 47850,+ "test/large-pages/segmented-remember-refusal.test.ts": 24760,+ "test/large-pages/segmented-repair-scans.test.ts": 15285,+ "test/large-pages/segmented-retained-blocks.test.ts": 72307,+ "test/large-pages/segmented-search-dedup.test.ts": 19680,+ "test/large-pages/segmented-semantic-writes-near-ceiling.slow.test.ts": 134777,+ "test/large-pages/segmented-semantic-writes.test.ts": 80103,+ "test/large-pages/segmented-shrink-below-ceiling.test.ts": 68948,+ "test/large-pages/segmented-storage-visibility.test.ts": 26849,+ "test/large-pages/segmented-sweep-budget.test.ts": 37546,+ "test/large-pages/segmented-sweep-deferral.test.ts": 14997,+ "test/large-pages/segmented-switch.test.ts": 40778,+ "test/large-pages/segmented-think-compile-leads.serial.test.ts": 15998,+ "test/large-pages/segmented-timeline-heap.test.ts": 75659,+ "test/large-pages/segmented-timeline-retract-versions.test.ts": 8708,+ "test/large-pages/segmented-versions.test.ts": 7485,+ "test/large-pages/segmented-withdrawal-mirror.test.ts": 242701,+ "test/large-pages/segmented-withdrawn-fence-delete.test.ts": 62597,+ "test/large-pages/streamed-import-drift.test.ts": 26601,+ "test/large-pages/streamed-sync-origin-b14.test.ts": 75548,+ "test/large-pages/stuck-recovery-large.slow.test.ts": 255235,+ "test/large-pages/v252-master-reader-compat.test.ts": 9710,+ "test/link-cross-source.test.ts": 14075,+ "test/link-preparation-shared-index.test.ts": 11470,+ "test/links-attendance-blocked.test.ts": 7070,+ "test/managed-cycle-pull-upstream.test.ts": 8294,+ "test/managed-facts-withdrawal-recovery-6506.test.ts": 11971,+ "test/managed-facts-withdrawn-skip-6506.test.ts": 8332,+ "test/managed-lint.test.ts": 19915,+ "test/managed-maintenance-links.test.ts": 11887,+ "test/managed-sweep-corpus-windows.test.ts": 11643,+ "test/managed-sweep-refused-window-retry.test.ts": 11463,+ "test/managed-sweep-timeline.test.ts": 6241,+ "test/managed-sync-blocked-job-6858.test.ts": 8753,+ "test/managed-sync-bulk.test.ts": 203569,+ "test/managed-sync-checkpoint-replaced.test.ts": 9540,+ "test/managed-sync-chunker-version.test.ts": 10492,+ "test/managed-sync-concurrent-write-hold.test.ts": 20171,+ "test/managed-sync-connection-loss.test.ts": 12647,+ "test/managed-sync-drain.test.ts": 11015,+ "test/managed-sync-foreground-priority.test.ts": 75966,+ "test/managed-sync-gate-markers-6858.test.ts": 8524,+ "test/managed-sync-group-completion.test.ts": 15801,+ "test/managed-sync-group-uncommitted-head.test.ts": 19271,+ "test/managed-sync-images-5493.test.ts": 12561,+ "test/managed-sync-keep-disk-6858.test.ts": 35767,+ "test/managed-sync-lanes.test.ts": 24120,+ "test/managed-sync-orphans-incarnation-6518.test.ts": 6780,+ "test/managed-sync-page-fault-holds.test.ts": 25732,+ "test/managed-sync-pinned-reads.test.ts": 35493,+ "test/managed-sync-preparation-stalled-holds.test.ts": 54843,+ "test/managed-sync-row-parity.test.ts": 12540,+ "test/managed-sync-stale-group-head.test.ts": 5226,+ "test/migration-persistence-request-id-index.test.ts": 9727,+ "test/migration-persistence-request-slug-index.test.ts": 13115,+ "test/on-commit-embedding.serial.test.ts": 12154,+ "test/origin-guard-6948.test.ts": 10102,+ "test/origin-twins-6948.test.ts": 5803,+ "test/overwritten-edits-6712.test.ts": 34545,+ "test/owner-refusal.test.ts": 5987,+ "test/pack-relation-direction-engine.test.ts": 8651,+ "test/page-embedding-budget.test.ts": 8161,+ "test/page-embedding-content-validity.test.ts": 6330,+ "test/page-embedding-install-batch.test.ts": 4779,+ "test/page-prepare-shared-origin-6517.test.ts": 19600,+ "test/page-purge-batch-sweep-6884.test.ts": 12370,+ "test/page-purge-journal-timeout-6511.test.ts": 31451,+ "test/page-state-engine.test.ts": 4733,+ "test/pathological/a-36-facts-batch-partial-refusal.test.ts": 8427,+ "test/pathological/a-42-atom-dot-led-slug.test.ts": 13348,+ "test/pathological/a-51-conversation-batch-booking.test.ts": 18969,+ "test/pathological/a-60-belief-commit-mark.test.ts": 12695,+ "test/pathological/a-65-captured-facts-unreadable-corpus.test.ts": 6834,+ "test/pathological/a1-links-extract.test.ts": 39634,+ "test/pathological/a10-global-maintenance-stamp.test.ts": 8034,+ "test/pathological/a11-effect-retry-budget.test.ts": 57807,+ "test/pathological/a12-withdrawal-mirror-gate.test.ts": 52920,+ "test/pathological/a13-embedding-target-park.test.ts": 45637,+ "test/pathological/a15-deactivate-exits.test.ts": 14453,+ "test/pathological/a18-ledger-path-text.test.ts": 47608,+ "test/pathological/a2-transcripts-ingest.test.ts": 94946,+ "test/pathological/a21-facts-expire-deleted.test.ts": 35601,+ "test/pathological/a22-consolidate-buckets.test.ts": 51341,+ "test/pathological/a23-patterns-grounding.test.ts": 101353,+ "test/pathological/a24-phantom-redirect-cursor.test.ts": 47951,+ "test/pathological/a25-propose-takes-poison-pages.test.ts": 71376,+ "test/pathological/a26-safe-chunks-reseal.test.ts": 9877,+ "test/pathological/a27-credential-reseal.test.ts": 13915,+ "test/pathological/a3-google-items.test.ts": 125882,+ "test/pathological/a30-watchdog-attribution.test.ts": 8061,+ "test/pathological/a31-migrate-loop-rows.serial.test.ts": 45369,+ "test/pathological/a4-synthesize-postprocess.test.ts": 17137,+ "test/pathological/a41-maintain-sources.test.ts": 33548,+ "test/pathological/a44-slug-conflicts-rotation.test.ts": 46197,+ "test/pathological/a45-repair-all-kinds.test.ts": 7856,+ "test/pathological/a46-content-lane-kinds.test.ts": 7728,+ "test/pathological/a47-backfill-poison-row.test.ts": 7483,+ "test/pathological/a49-unmanaged-purge-tombstones.test.ts": 63296,+ "test/pathological/a50-unmanaged-expired-sources.test.ts": 7039,+ "test/pathological/a9-repair-core.test.ts": 8069,+ "test/pathological/b-10-ontology-rekey-collision.test.ts": 6459,+ "test/pathological/b-7-facts-pageless-entity.test.ts": 20016,+ "test/pathological/b-9-enrich-retired-alias.test.ts": 4968,+ "test/pathological/b12-slug-segment-bytes.test.ts": 22726,+ "test/pathological/b5-enrich-entity-identity.test.ts": 8210,+ "test/pathological/b5-export-unsafe-slugs.test.ts": 30446,+ "test/pathological/b6-triage-verdict-surrogate.test.ts": 7912,+ "test/pathological/c-23-override-and-doctor-fixes.test.ts": 6367,+ "test/pathological/c-9-facts-absorb-dead.test.ts": 7017,+ "test/pathological/c1-effect-stuck-recovery.test.ts": 51990,+ "test/pathological/c2-url-clone-fences.test.ts": 60477,+ "test/pathological/c4-bundle-stuck-recovery.test.ts": 154166,+ "test/pathological/c5-writer-transfer-cancel.test.ts": 29491,+ "test/pathological/c7-content-receipt-root.test.ts": 50196,+ "test/pathological/d1-unfenced-facts-overwrite.test.ts": 43541,+ "test/pathological/d10-derived-atom-file-overwrite.test.ts": 29116,+ "test/pathological/d11-derived-retired-atom-unlink.test.ts": 29727,+ "test/pathological/d12-concept-stale-fences.test.ts": 21275,+ "test/pathological/d13-concept-occupied-path.test.ts": 28881,+ "test/pathological/d14-brainstorm-resume-overwrite.test.ts": 36566,+ "test/pathological/d15-sync-reexport-overwrite.test.ts": 54279,+ "test/pathological/d16-google-file-replacement.test.ts": 56237,+ "test/pathological/d17-github-file-replacement.test.ts": 46909,+ "test/pathological/d18-think-take-db-only.test.ts": 39213,+ "test/pathological/d19-takes-bootstrap-db-only.test.ts": 28773,+ "test/pathological/d2-fence-write-overwrite.test.ts": 37725,+ "test/pathological/d21-migration-verifier-record.test.ts": 71821,+ "test/pathological/d22-legacy-hash-body-history.test.ts": 72076,+ "test/pathological/d23-extract-atoms-db-only.test.ts": 45730,+ "test/pathological/d3-forget-overwrite.test.ts": 74415,+ "test/pathological/d4-proposal-overwrite.test.ts": 106868,+ "test/pathological/d5-phantom-canonical-overwrite.test.ts": 40139,+ "test/pathological/d6-phantom-file-unlink.test.ts": 22841,+ "test/pathological/d7-synthesize-reverse-write.test.ts": 38480,+ "test/pathological/d8-patterns-reverse-write.test.ts": 43048,+ "test/pathological/d9-dream-summary-overwrite.test.ts": 31454,+ "test/pathological/facts-mirror-failures.test.ts": 109253,+ "test/pathological/w1-write-through-staging-window.serial.test.ts": 14646,+ "test/persistence-background-pause.test.ts": 10473,+ "test/persistence-bounded-read-session.test.ts": 8879,+ "test/persistence-capacity-forecast.test.ts": 16545,+ "test/persistence-capacity-notices.test.ts": 7261,+ "test/persistence-commit-durability.test.ts": 9244,+ "test/persistence-deactivate.test.ts": 31970,+ "test/persistence-diagnostics.test.ts": 9256,+ "test/persistence-edit-embedding-reuse.test.ts": 9180,+ "test/persistence-embedding-noop-settle.test.ts": 9116,+ "test/persistence-file-import.test.ts": 36510,+ "test/persistence-git-subdir-origin.test.ts": 16862,+ "test/persistence-graph-publication.test.ts": 8430,+ "test/persistence-history-fixture.test.ts": 32491,+ "test/persistence-image-import.serial.test.ts": 11876,+ "test/persistence-import-batch.test.ts": 23208,+ "test/persistence-managed-lifecycle.test.ts": 22818,+ "test/persistence-managed-sync.test.ts": 89031,+ "test/persistence-manifest-git-scope.test.ts": 13063,+ "test/persistence-memory-mutations.test.ts": 18667,+ "test/persistence-page-authority.test.ts": 7761,+ "test/persistence-physical-root-device.test.ts": 6195,+ "test/persistence-preactivation-claim.test.ts": 11540,+ "test/persistence-publication-deadline.test.ts": 27152,+ "test/persistence-receipt-true-up.test.ts": 13248,+ "test/persistence-reconcile-git-dirty-6138.test.ts": 8272,+ "test/persistence-skill-bundles.serial.test.ts": 10135,+ "test/persistence-skill-crash.slow.test.ts": 48756,+ "test/persistence-skip-cost.test.ts": 9013,+ "test/persistence-sync-cursor-adoption.test.ts": 66138,+ "test/persistence-sync-cursor-options.test.ts": 11766,+ "test/persistence-sync-cursor-strategy-6696.test.ts": 9366,+ "test/persistence-sync-fence-holds.test.ts": 30457,+ "test/persistence-sync-holds.test.ts": 34258,+ "test/persistence-sync-lease.test.ts": 32269,+ "test/persistence-write-interrupted.test.ts": 43984,+ "test/persistence-write-stall.test.ts": 6301,+ "test/persistence-writer-fences.test.ts": 6213,+ "test/physical-root-birth-tolerance-6501.test.ts": 8486,+ "test/purge-fact.test.ts": 10994,+ "test/purge-global-marker.test.ts": 8085,+ "test/purge-missing-cache-6911.test.ts": 10640,+ "test/purge-read-surfaces.test.ts": 15925,+ "test/recall-page-fill.test.ts": 13146,+ "test/remediation-manual-only.test.ts": 9643,+ "test/repair-apply-pending-6543.test.ts": 61625,+ "test/repair-embedding-effects.test.ts": 9289,+ "test/repair-failed-writes-conflict-6429.test.ts": 10129,+ "test/repair-failed-writes-drift-w411.test.ts": 6270,+ "test/repair-fences.test.ts": 25020,+ "test/repair-file-drift-deleted-6712.test.ts": 20339,+ "test/repair-frontmatter-keys-sweep-6454.test.ts": 9331,+ "test/repair-frontmatter.test.ts": 29854,+ "test/repair-receipt-compaction.test.ts": 7843,+ "test/repair-rename-identity-6729.test.ts": 21484,+ "test/schema-missing-tables.test.ts": 6439,+ "test/scripts/test-stress-postgres.test.ts": 12078,+ "test/search-read-keyword-bound.test.ts": 4601,+ "test/search/page-rank-cut.test.ts": 14845,+ "test/search/rerank-gate-hybrid.test.ts": 8258,+ "test/search/rerank-gate-telemetry.test.ts": 6751,+ "test/serve-head-watcher-managed.serial.test.ts": 9622,+ "test/shared-content-freshness.test.ts": 6871,+ "test/shared-skills-catalog.test.ts": 56963,+ "test/shared-skills-retention-capacity.test.ts": 6069,+ "test/shared-skills-source-opt-out.test.ts": 6657,+ "test/shared-skills-writer-boundary.test.ts": 25737,+ "test/source-retire-missing-checkout.test.ts": 6898,+ "test/source-row-diagnostics.test.ts": 6028,+ "test/stats-health-source-scope.test.ts": 6168,+ "test/sync-capacity-preflight.test.ts": 7983,+ "test/sync-checkpoint-moved-6834.test.ts": 32220,+ "test/sync-drain-claims.test.ts": 14132,+ "test/sync-drain-effect-recovery-blocked.test.ts": 7780,+ "test/sync-drain-head-blocked-6543.test.ts": 9304,+ "test/sync-drain-inpass-stall.test.ts": 6812,+ "test/sync-drain-write-capacity.test.ts": 12156,+ "test/sync-exits-l4-6712.test.ts": 10819,+ "test/sync-freshness-6858.test.ts": 7487,+ "test/sync-frontmatter-recovery.test.ts": 7556,+ "test/sync-frontmatter-slug-conflict.test.ts": 7966,+ "test/sync-full-cursor-slices-6349.test.ts": 14950,+ "test/sync-full-untracked-import-5459.test.ts": 17051,+ "test/sync-group-member-order.test.ts": 13959,+ "test/sync-handler-drain-6706.test.ts": 33830,+ "test/sync-import-provenance-disk.test.ts": 13302,+ "test/sync-inexact-rename-6729.test.ts": 40065,+ "test/sync-legacy-holds.test.ts": 13818,+ "test/sync-legacy-retry-actions-6696.test.ts": 12014,+ "test/sync-legacy-slug-adoption-6727.test.ts": 19510,+ "test/sync-origin-live-wins-6517.test.ts": 5635,+ "test/sync-prescreen-both-delta-6712.test.ts": 20103,+ "test/sync-prescreen-drift-6712.test.ts": 76167,+ "test/sync-slug-root-mode-6694.test.ts": 16922,+ "test/sync-staged-catchup.test.ts": 11466,+ "test/sync-status-failure-detail-6513.test.ts": 8460,+ "test/sync-waiver-budget.test.ts": 8019,+ "test/sync-waiver-run-imports.test.ts": 14086,+ "test/take-resolution-survives-publish.test.ts": 9663,+ "test/takes-vector-lifecycle-5885.serial.test.ts": 13203,+ "test/terminal-failures-6650.test.ts": 17693,+ "test/trust-channel-writes.test.ts": 12735,+ "test/trust-guarded-supersession.test.ts": 10154,+ "test/trust-held-removals.test.ts": 25382,+ "test/trust-owner-actions.test.ts": 12705,+ "test/unbound-source-6536.test.ts": 11293,+ "test/unindexed-files.test.ts": 13281,+ "test/vector-manifest-probe-bound.test.ts": 20228,+ "test/withdrawal-overlay-concurrency.test.ts": 7146,+ "test/withdrawal-publication-file.test.ts": 5429,+ "test/writer-status-owner-backends.test.ts": 5220}diff --git a/scripts/postgres-unit-arms.ts b/scripts/postgres-unit-arms.tsindex 491a88b7c1..a717cf78e9 100644--- a/scripts/postgres-unit-arms.ts+++ b/scripts/postgres-unit-arms.ts@@ -23,14 +23,16 @@* in the unit and serial lanes, and files that read DATABASE_URL directly keep* both arms.*- * Weights are milliseconds per file mined from the `ARM_FILE` lines (older- * logs: each `::group::<file>` timestamp to the next group or endgroup); the- * both-arms cell reads ARM_WEIGHTS, the PostgreSQL-only cell- * ARM_WEIGHTS_POSTGRES_ONLY. A file without a weight gets the p75- * (scripts/sharding.ts). test/scripts/postgres-unit-arms.test.ts fails when a- * shard's two-worker makespan, scaled by ARM_CONCURRENCY_FACTOR, passes- * ARM_SHARD_BUDGET_MS, and ci:ubicloud's pg-arms lane fails when a shard's- * measured makespan passes the step timeout (scripts/ubicloud/README.md).+ * Weights are milliseconds per file mined from the `ARM_FILE` lines, so they+ * time each file beside another one, as the job runs it (a file ran 1.2-1.5x+ * its solo time on a 4-vCPU runner); older logs time each `::group::<file>`+ * timestamp to the next group or endgroup. The both-arms cell reads+ * ARM_WEIGHTS, the PostgreSQL-only cell ARM_WEIGHTS_POSTGRES_ONLY. A file+ * without a weight gets the p75 (scripts/sharding.ts).+ * test/scripts/postgres-unit-arms.test.ts fails when a shard's two-worker+ * makespan passes ARM_SHARD_BUDGET_MS, and ci:ubicloud's pg-arms lane fails+ * when a shard's measured makespan passes the step timeout+ * (scripts/ubicloud/README.md).* Docs: docs/TESTING.md#postgres-arm-lanes.*/import { spawn } from 'node:child_process';@@ -42,7 +44,7 @@ export const ARMS_LIST = 'test/postgres-unit-arms.txt';export const ARM_WEIGHTS = 'scripts/postgres-arm-weights.json';export const ARM_WEIGHTS_POSTGRES_ONLY = 'scripts/postgres-arm-weights-postgres-only.json';/** persistence-validation's unit-postgres-arms matrix size; test/scripts/postgres-unit-arms.test.ts pins the workflow to it. */-export const ARM_SHARDS = 10;+export const ARM_SHARDS = 11;/** Files run at once per job, each against its own PostgreSQL service; the workflow lists one URL per worker. */export const ARM_WORKERS = 2;/** The workflow step's `timeout-minutes: 20`: a shard whose files run longer is cut off mid-list. */@@ -52,12 +54,6 @@ export const ARM_STEP_TIMEOUT_MS = 20 * 60 * 1000;* runners measured 1.3-2x) it still ends a minute inside the step timeout.*/export const ARM_SHARD_BUDGET_MS = (ARM_STEP_TIMEOUT_MS - 60_000) / 2;-/**- * How much longer a file runs beside another file than alone, summed over a shard: two workers on a 4-vCPU- * runner measured 1.04x (GBRA-135 pilot: 8,777 s against 8,465 s of file time). Weights mined from solo runs- * are scaled by it before the budget check.- */-export const ARM_CONCURRENCY_FACTOR = 1.04;/** Each file's command; ci:ubicloud's pg-arms lane (scripts/ubicloud/ci-item.sh) runs the same one. */export const ARM_TEST_COMMAND = ['bun', '--no-env-file', 'test', '--timeout=120000'];const DOCS = 'docs/TESTING.md#postgres-arm-lanes';diff --git a/scripts/ubicloud/README.md b/scripts/ubicloud/README.mdindex 8b108087e7..57de8efec4 100644--- a/scripts/ubicloud/README.md+++ b/scripts/ubicloud/README.md@@ -142,8 +142,9 @@ unit, serial and slow lanes run with database URLs unset. The `pg-arms` laneruns every file in `test/postgres-unit-arms.txt` the way persistence-validation's`unit-postgres-arms` step does (`bun --no-env-file test --timeout=120000`,`GBRAIN_TEST_ALLOW_DATABASE_URL=1`, no timeout multiplier) against the slot's-own empty `gbrain_arms_test` database. The summary sums its measured durations over-that job's `ARM_SHARDS` partition (19 shards), and a shard over the step's 20-minute timeout+own empty `gbrain_arms_test` database. The summary takes the two-worker makespan of its+measured durations over that job's `ARM_SHARDS` partition (11 shards, `ARM_WORKERS` = 2+files at a time), and a shard over the step's 20-minute timeoutfails the run, since GitHub would cut that shard off mid-list. The committedweights must also fit each shard twice over with a minute to spare(`ARM_SHARD_BUDGET_MS`, 570 s), because a slow runner ran the files 1.3-2xdiff --git a/test/scripts/postgres-unit-arms.test.ts b/test/scripts/postgres-unit-arms.test.tsindex d0a86ff28e..09036cafb7 100644--- a/test/scripts/postgres-unit-arms.test.ts+++ b/test/scripts/postgres-unit-arms.test.ts@@ -11,7 +11,7 @@ import { copyFileSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSyncimport { tmpdir } from 'node:os';import { join } from 'node:path';import {- ARM_CONCURRENCY_FACTOR, ARM_SHARD_BUDGET_MS, ARM_SHARDS, ARM_STEP_TIMEOUT_MS, ARM_TEST_COMMAND, ARM_WORKERS,+ ARM_SHARD_BUDGET_MS, ARM_SHARDS, ARM_STEP_TIMEOUT_MS, ARM_TEST_COMMAND, ARM_WORKERS,armMakespan, armShards, armWeights, mineArmWeights, parseArmsList, readArmsList,} from '../../scripts/postgres-unit-arms.ts';import { computeQuantile } from '../../scripts/sharding.ts';@@ -40,7 +40,7 @@ describe('postgres-unit-arms list', () => {const shards = Array.from({ length: ARM_SHARDS }, (_, i) => i + 1);expect(job).toContain(`shard: [${shards.join(', ')}]`);expect(job).toContain(`Unit-lane PostgreSQL arms \${{ matrix.shard }}/${ARM_SHARDS}`);- expect(job).toContain(`run: bun scripts/postgres-unit-arms.ts run \${{ matrix.shard }} ${ARM_SHARDS}\n`);+ expect(job).toContain(`run: bun scripts/postgres-unit-arms.ts run \${{ matrix.shard }} ${ARM_SHARDS} \${{ matrix.bun == '1.4.3' && '--postgres-only' || '' }}\n`);expect(job).toMatch(new RegExp(`- name: Require PostgreSQL arms of unit-lane suites\\n\\s+timeout-minutes: ${ARM_STEP_TIMEOUT_MS / 60_000}\\n`));const ports = [...job.matchAll(/ports: \['(\d+):5432'\]/g)].map(m => m[1]);const urls = [...job.matchAll(/postgres:\/\/gbrain_test:gbrain_test@127\.0\.0\.1:(\d+)\/gbrain_test/g)].map(m => m[1]);@@ -55,7 +55,7 @@ describe('postgres-unit-arms list', () => {for (const postgresOnly of [false, true]) {const weights = armWeights(REPO, postgresOnly);const p75 = computeQuantile(files.filter(f => weights.has(f)).map(f => weights.get(f)!), 0.75);- const makespans = armShards(REPO, files, ARM_SHARDS, postgresOnly).map(shard => armMakespan(shard, f => weights.get(f) ?? p75) * ARM_CONCURRENCY_FACTOR);+ const makespans = armShards(REPO, files, ARM_SHARDS, postgresOnly).map(shard => armMakespan(shard, f => weights.get(f) ?? p75));expect({ postgresOnly, over: makespans.filter(ms => ms > ARM_SHARD_BUDGET_MS).map(Math.round) }).toEqual({ postgresOnly, over: [] });}});