Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

explicitSyncProcessing marks false-valued keys explicit, so it is not the rule for a payload without a list. typedSyncProcessing (true-valued keys only) now serves the serve-delegated runner and the resident-owner writer_sync lane; the owner lane keeps a supplied explicitProcessing list exactly instead of recomputing it, and the wire accepts one (processing keys only). Probe: noEmbed=false without a list refused invalid_params before and adopts after; a supplied list was rejected by the wire before and is honored after.

garrytan581ab2a551b2
diff --git a/docs/architecture/key-files/google-and-loops-continued.md b/docs/architecture/key-files/google-and-loops-continued.md
index 5091410f2b..bb753b5626 100644
--- a/docs/architecture/key-files/google-and-loops-continued.md
+++ b/docs/architecture/key-files/google-and-loops-continued.md
@@ -23,7 +23,7 @@
- **`src/core/persistence/sync-authority.ts`** — trusted CLI or original remote generic job authority; rejects stdio bulk privilege promotion and runtime option expansion, intersects original grants with current principal/source policy.
- `src/core/facts/withdrawal-overlay.ts` — pure legacy-fence enumeration and withdrawal rendering shared by coherent snapshots, stale imports and physical forget mirrors. The shared snapshot overlay and import pre-publication validator recognize canonical prefixed/inline markers and distinguish malformed live segments. Discovery refuses matching ambiguous claims before mutation. Fingerprints match independently in each fence, including inactive history, against both the folded (v174) and exact legacy hashes; parser-recognized markers precede preserved evidence context and earlier expiry remains intact. Regression: `test/withdrawal-overlay-concurrency.test.ts` on both engines.
-- **`src/commands/sync-persistence-delegate.ts` + `src/core/persistence/{sync-wire,sync-administration}.ts`** — pre-connect authenticated CLI sync ingress for any resident PGLite owner, including stdio MCP. The CLI JSON renderer shares the direct sync envelope. Strict options preserve source/brain selection and filtering; only current CLI credentials can advance bounded durable cursor slices. Unactivated delegation also forces import-only work and queues the owner embed drain, preserving the inline cost gate; backlogs are per-engine source sets and shutdown waits for actual provider settlement before releasing datastore ownership; the real serve E2E observes a committed receipt before SIGKILL and proves same-ID cursor recovery without breaking locks. The env and default deadlines stay progress-aware across slices (`DelegatedSyncDeadline`): past the deadline the client keeps re-entering while a slice advanced the managed cursor within one progress window, and each slice gets at least one window; `--timeout` and `--hard-deadline` stay strict. Legacy shared-secret sync refuses managed brains. `test/persistence-sync-stdio-owner.test.ts` starts a real stdio owner and exercises CLI import/read/admin, remote-lane denial and revocation without a competing datastore open.
+- **`src/commands/sync-persistence-delegate.ts` + `src/core/persistence/{sync-wire,sync-administration}.ts`** — pre-connect authenticated CLI sync ingress for any resident PGLite owner, including stdio MCP. The CLI JSON renderer shares the direct sync envelope. Strict options preserve source/brain selection and filtering; only current CLI credentials can advance bounded durable cursor slices. Unactivated delegation also forces import-only work and queues the owner embed drain, preserving the inline cost gate; backlogs are per-engine source sets and shutdown waits for actual provider settlement before releasing datastore ownership; the real serve E2E observes a committed receipt before SIGKILL and proves same-ID cursor recovery without breaking locks. The env and default deadlines stay progress-aware across slices (`DelegatedSyncDeadline`): past the deadline the client keeps re-entering while a slice advanced the managed cursor within one progress window, and each slice gets at least one window; `--timeout` and `--hard-deadline` stay strict. Legacy shared-secret sync refuses managed brains. `test/persistence-sync-stdio-owner.test.ts` starts a real stdio owner and exercises CLI import/read/admin, remote-lane denial and revocation without a competing datastore open. #6696: the wire accepts an `explicitProcessing` list (processing keys only, no duplicates) and the owner keeps a supplied list exactly; a payload without one counts only its true-valued processing keys as typed (`typedSyncProcessing`), so a flagless resume adopts the cursor's stored options (`test/sync-owner-lane-processing-6696.test.ts`).
- `src/core/facts/backstop.ts` + `src/core/entities/resolve-on-save.ts` — saved facts retain their content and provenance but use a NULL entity target when resolution falls back to slugification. Legacy extraction uses the shared exact source/entity/visibility fingerprint decision before identity-gated cosine candidates, so old facts without vector provenance still deduplicate identical text without relabeling their vectors. The conversation save caller also clears the target on ordinary resolution errors, preserves diagnostic counters, and propagates abort/budget failures. It never treats an invented slug as a verified page. #5836: `src/core/facts/subject-infer-write.ts` `inferMissingSubjects` links facts with no or fallback-only entity via `inferFactSubject` (remote callers: written page only, readable pages, caller fences, managed grant), never on the unmanaged DB-only branch, marks `entity_inferred` (context note; exact-text dedup only in both writers); `test/facts-backstop-entity-inference.test.ts`, `test/managed-facts-entity-inference.test.ts`. #6159: every writer (both backstop buckets, the fence writes and `persistence/facts-maintenance.ts`) dates a fact with `facts/event-time.ts` `factEventTime` (extractor date, then `validFrom`, then `turnAt`, then now) and the extraction prompt's observation date falls back to `turnAt`; the sweep's corpus pass sets `turnAt` from the session file's write time, vetted by `context/corpus-windows.ts` `corpusFactTime` (finite, from 2000, at most 60 s ahead; otherwise logged and dated at extraction) (`test/sweep-corpus-fact-time.test.ts`). #6113: `resolveManagedFactsEmbedding` (`persistence/facts-maintenance.ts`) reads the brain's DB-plane model only; a legacy row without a provider refuses `embedding_configuration` naming `gbrain migrate embeddings --to <gateway provider>:<model> --dry-run` (the read-only preview; applying it needs paid authorization). Test: `test/facts-embedding-bare-model.serial.test.ts`. The notability-filter vocabulary (`NOTABILITY_FILTERS`, `coerceNotabilityFilter`) lives in import-light `src/core/facts/notability-filter.ts` (re-exported here) beside the page-write key resolver. The unmanaged pipeline counts entity groups held on a facts fence that does not parse cleanly as `fence_refused` (nothing written for them).
- `src/commands/migrations/v0_32_2.ts` + `src/core/facts/unfenced-facts.ts` — Phase B is the shared core pass `planUnfencedFacts` / `fenceUnfencedFacts`, which the `extract_facts` cycle phase also runs on every cycle (#5299). It fences live unfenced facts (`row_num IS NULL`) only onto an existing source-scoped page, and never ontology observations (`dimension IS NOT NULL`, #6264: they belong to the ontology, keyed by their own provenance) and its recorded canonical file; a managed brain publishes each page as one coordinator `managed_maintenance_adopt_fact_fence` request (database-only pages included; a read-only pre-pass of `planManagedPage` counts the pages that will submit for the up-front lifetime-ID check, so suppressed or unadoptable pages never refuse the step, and the submit loop replans each page right before it submits; `test/fact-fence-adoption-exits.test.ts`), and an unmanaged page is written under the source filesystem lock and page lock (`.tmp` + parse + rename), mirrored into `pages` and stamped in one maintenance transaction, and committed when the checkout is durability-hardened. Missing pages/files are counted as `skipped_no_page` (missing files are also listed in `missing_files`), never materialized as stubs. The migration adds a dirty-tree refusal that stays inside the source subdirectory; fence row allocation respects both database-owned row numbers and the parsed fence, preserving idempotent recovery without collisions. Dry runs use the same eligibility checks, and historical drift remains visible rather than silently repaired. #6278: `planFence` uses the fence codec as the oracle (`adoptableClaim`): a legacy row adopts only when `parseFactsFence(renderFactsTable([row]))` hands its claim back active and non-empty with the same kind, visibility, validity and source, differing from the stored text by whitespace and line endings alone (trim, CRLF/CR to LF, NBSP), and the parsed text is written into `facts.fact` with the row number on both the managed and the unmanaged path, so the projection keeps the row's id, vectors and provenance. A row the codec would change further (whitespace-only, `~~x~~`, a literal `<br>`) or a second row whose normalized claim, source and visibility the page already carries stays a legacy row exactly as it is, recorded as an `UnadoptableFactRecord` (source, page, fact id, reason class; never the claim text) and named in `failed_pages` as `FACTS_FENCE_FAILED: <slug> (fence_unrenderable: N row(s), <class>)` in the cycle and the migration output; the page's other rows still adopt. Tests: `test/facts-fence-adoption-roundtrip.test.ts`, `test/extract-facts-unfenced-rows.test.ts`, `test/migrations-v0_32_2-managed.test.ts`.
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.ts
index e6b157b909..f6bda81368 100644
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@ -569,7 +569,7 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }
{ since: '0.60.223.0', text: '`gbrain repair content` (the `slug-conflicts` kind) now judges a held `frontmatter_slug_conflict` file with the same screen managed sync froze it with. A held file sync would now import as it is (its `slug:` line names the file\'s own page, or it no longer conflicts) is listed as `import` and imported unchanged, clearing the hold only while it is still the observation the repair read; before, it was skipped as `already_exempt` or `already_clean` and the hold stayed. A file in a source that is a subdirectory of its Git repository now loses its stray `slug:` line instead of being held `still_invalid`. A file sync would hold whatever the repair writes is now held `slug_page_mismatch` naming both slugs, instead of the generic `still_invalid` or `already_exempt` (an alias to the file\'s own page is one).' },
{ since: '0.60.223.0', text: 'A managed `gbrain sync` whose final checkpoint committed no longer ends `blocked` / `drain_stalled` / `no_admission` (with advice to move the database to port 5432) while it finishes planner statistics and link extraction. That tail now has its own budget: link extraction stops after 5 minutes and leaves the remaining pages for `gbrain extract --stale`, and a tail that is still stuck 30 s later stops `no_progress` at step `finish`. A run stuck before admission still stops `no_admission` after 5 minutes.' },
{ since: '0.60.223.0', text: 'New doctor check `serve_build_drift` (ops): on a managed Postgres brain it warns "serve is running an older build than this checkout; restart serve and workers" when a live `serve`, jobs worker, autopilot, sync or MCP process on this host reports an older gbrain version in its consumer heartbeat than the binary running doctor. The fix names the installed serve service\'s restart (`systemctl --user restart gbrain-serve.service` or `launchctl kickstart -k gui/<uid>/com.gbrain.serve`), or the pid to stop and start again, and the verify is `gbrain doctor --only serve_build_drift --json`. Nothing restarts automatically; PGLite reads ok.' },
- { since: '0.60.223.0', text: 'A `gbrain sync` handed to a running `gbrain serve` on a managed brain now treats processing options as the in-process sync does. With no `--no-embed` / `--no-extract` / `--no-schema-pack` flag it adopts an unfinished run\'s stored options instead of refusing `invalid_params`; an older CLI that omits the explicit-flag list counts each processing flag it sends as true as typed. A cost-gate embedding deferral stays a property of that run, so resuming a run that stored embedding on embeds nothing in it. A source with a configured strategy now gets one cursor for `gbrain sync --all`, a single-source sync, the cycle and a delegated run; an unfinished run under the old key finishes under that key first.' },
+ { since: '0.60.223.0', text: 'A `gbrain sync` handed to a running `gbrain serve` on a managed brain now treats processing options as the in-process sync does. With no `--no-embed` / `--no-extract` / `--no-schema-pack` flag it adopts an unfinished run\'s stored options instead of refusing `invalid_params`; an older CLI that omits the explicit-flag list counts each processing flag it sends as true as typed. The resident-owner lane of a PGLite brain follows the same rule and keeps an explicit list it is sent. A cost-gate embedding deferral stays a property of that run, so resuming a run that stored embedding on embeds nothing in it. A source with a configured strategy now gets one cursor for `gbrain sync --all`, a single-source sync, the cycle and a delegated run; an unfinished run under the old key finishes under that key first.' },
{ since: '0.60.223.0', text: '`--skip-failed` and `--include-gitignored` on a managed source now refuse with `managed_sync_flag_refused`, naming the flag, before anything runs: at `gbrain sync` parse (`--all` included), before a hand-off to `gbrain serve`, and for jobs, MCP and the cycle. Before, the refusal was `writer_coordinator_required` "cannot bypass ignored-file or failed-receipt guards", raised later. Rerun without the flag.' },
{ since: '0.60.223.0', text: '`gbrain sync --retry-failed` on a managed source now prints, for each failure held under another run\'s options, its class and the command that settles it: `resumable` (a replay of the unfinished run, or a fresh discovery under the failed run\'s options, labelled apart), `safely orphaned` (the `gbrain repair managed-sync-orphans` preview) or `unresolved` (what has to finish first). A failure recorded before runs kept their options no longer prints "with the same options as the failed run (this receipt no longer records them)"; its options are recovered when an option set reproduces its cursor key exactly.' },
];
diff --git a/src/core/persistence/sync-administration.ts b/src/core/persistence/sync-administration.ts
index 87feddbabd..d871e36043 100644
--- a/src/core/persistence/sync-administration.ts
+++ b/src/core/persistence/sync-administration.ts
@@ -5,7 +5,7 @@ import { currentVerifiedLocalWriter } from './identity.ts';
import { submissionAuthority } from './authority.ts';
import type { OperationContext } from '../ops/contract.ts';
import { validateSyncWireParams } from './sync-wire.ts';
-import { explicitSyncProcessing } from './sync-authority.ts';
+import { typedSyncProcessing } from './sync-authority.ts';
import { readManagedMode } from './managed-mode.ts';
import { trustedCliRequired } from '../ops/op-fix.ts';
@@ -39,7 +39,7 @@ export async function runAuthenticatedSyncSlice(engine: BrainEngine, params: Rec
return {...result,source_id:sourceId};
}
const {performManagedSync}=await import('./sync-run.ts');
- return {...await performManagedSync(engine,{...wire.options,sourceId,explicitProcessing:explicitSyncProcessing(wire.options as Record<string,unknown>),signal:controller.signal},{maxPages:25,maxMs:1000}),source_id:sourceId};
+ return {...await performManagedSync(engine,{...wire.options,sourceId,explicitProcessing:wire.options.explicitProcessing??typedSyncProcessing(wire.options),signal:controller.signal},{maxPages:25,maxMs:1000}),source_id:sourceId};
})();
return await work;
} finally {if(timer)clearTimeout(timer);unregister();}
diff --git a/src/core/persistence/sync-authority.ts b/src/core/persistence/sync-authority.ts
index 3474207341..309ff6b47b 100644
--- a/src/core/persistence/sync-authority.ts
+++ b/src/core/persistence/sync-authority.ts
@@ -40,6 +40,10 @@ export const SYNC_PROCESSING_KEYS = ['noEmbed', 'noExtract', 'noSchemaPack'] as
export function explicitSyncProcessing(values: Record<string, unknown>): Array<keyof SyncProcessingOptions> {
return SYNC_PROCESSING_KEYS.filter(key => typeof values[key] === 'boolean');
}
+/** #6696: the processing flags a payload without an explicit list set: an older client sends true for each one typed, nothing for the rest. */
+export function typedSyncProcessing(values: Partial<Record<keyof SyncProcessingOptions, unknown>>): Array<keyof SyncProcessingOptions> {
+ return SYNC_PROCESSING_KEYS.filter(key => values[key] === true);
+}
export function assertSyncDispatchActive(): void {
assertSourceFilesystemActive(true);
throwIfAborted(currentJobSignal());
diff --git a/src/core/persistence/sync-wire.ts b/src/core/persistence/sync-wire.ts
index 23e3ae2403..79aace8116 100644
--- a/src/core/persistence/sync-wire.ts
+++ b/src/core/persistence/sync-wire.ts
@@ -1,6 +1,7 @@
import { isAbsolute } from 'node:path';
import type { SyncOpts } from '../../commands/sync.ts';
import { opError } from '../ops/contract.ts';
+import { SYNC_PROCESSING_KEYS } from './sync-authority.ts';
export const SYNC_BOOLEAN_FLAGS = {
'--full':'full','--dry-run':'dryRun','--no-pull':'noPull','--no-embed':'noEmbed','--no-extract':'noExtract',
@@ -24,6 +25,8 @@ export function validateSyncWireParams(value: Record<string,unknown>): SyncWireP
else if(stringFields.has(key)) { if(typeof item!=='string'||!item||item.length>32768||item.includes('\0'))throw invalid(); }
else if(['exclude','includeHidden'].includes(key)) {
if(!Array.isArray(item)||item.length>256||item.some(v=>typeof v!=='string'||!v||v.length>4096||v.includes('\0')))throw invalid();
+ } else if(key==='explicitProcessing') {
+ if(!Array.isArray(item)||new Set(item).size!==item.length||item.some(v=>!(SYNC_PROCESSING_KEYS as readonly unknown[]).includes(v)))throw invalid();
} else throw invalid();
}
const options=value.options as SyncOpts;
diff --git a/src/core/serve-sync-runner.ts b/src/core/serve-sync-runner.ts
index 10be73f592..f0a675e7d1 100644
--- a/src/core/serve-sync-runner.ts
+++ b/src/core/serve-sync-runner.ts
@@ -55,7 +55,7 @@
*/
import { randomUUID } from 'node:crypto';
-import { withLegacySyncDelegation } from './persistence/sync-authority.ts';
+import { typedSyncProcessing, withLegacySyncDelegation } from './persistence/sync-authority.ts';
import { verifyLocalWriter, withVerifiedLocalRegistration } from './persistence/identity.ts';
import { readManagedMode } from './persistence/managed-mode.ts';
import { OperationError } from './ops/contract.ts';
@@ -67,7 +67,6 @@ import {
isSyncStartRegistration,
toWireSyncResult,
validateDelegatedSyncOptions,
- DELEGATED_SYNC_PROCESSING_KEYS,
type DelegatedSyncOptions,
type DelegatedSyncState,
type SyncAbortResponse,
@@ -343,7 +342,7 @@ async function startVerifiedDelegatedSync(
...(managed
? { drain: true, noBulk: options.noBulk, lanes: options.lanes, noEmbed: options.noEmbed, embedDeferred: options.embedDeferred,
// #6696: an older CLI omits the list but still sends true for each processing flag its user typed.
- explicitProcessing: options.explicitProcessing ?? DELEGATED_SYNC_PROCESSING_KEYS.filter(key => options[key] === true) }
+ explicitProcessing: options.explicitProcessing ?? typedSyncProcessing(options) }
: { noEmbed: true }),
signal: job.controller.signal,
onProgress: (p) => {
diff --git a/test/sync-owner-lane-processing-6696.test.ts b/test/sync-owner-lane-processing-6696.test.ts
new file mode 100644
index 0000000000..ebd3288a72
--- /dev/null
+++ b/test/sync-owner-lane-processing-6696.test.ts
@@ -0,0 +1,83 @@
+/**
+ * #6696 C1: the resident-owner sync lane (`writer_sync` → `runAuthenticatedSyncSlice`) keeps the in-process
+ * processing-option contract.
+ *
+ * What these tests protect:
+ * - a payload without an explicit list counts only its true-valued processing keys as typed: a `false` value is not
+ * a typed flag (`explicitSyncProcessing` marks it explicit, which made a flagless resume conflict with a cursor
+ * that stores `noEmbed=true` and refuse `invalid_params`);
+ * - a list the caller supplied is preserved exactly instead of recomputed from the booleans: `[]` adopts the
+ * cursor's stored options, and `['noEmbed']` with `noEmbed=false` is honored (it conflicts and refuses).
+ *
+ * Regression that fails it: the owner lane recomputing the list with `explicitSyncProcessing`, or the wire refusing a
+ * supplied list.
+ */
+import { afterAll, beforeAll, expect, test } from 'bun:test';
+import { randomUUID } from 'node:crypto';
+import { execFileSync } from 'node:child_process';
+import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+import { join } from 'node:path';
+import { PGLiteEngine } from '../src/core/pglite-engine.ts';
+import type { SyncOpts } from '../src/commands/sync.ts';
+import { claimWorktree } from '../src/core/persistence/ownership.ts';
+import { disposePersistenceConsumer } from '../src/core/persistence/service.ts';
+import { registerLocalWriter, withVerifiedLocalRegistration } from '../src/core/persistence/identity.ts';
+import { performManagedSync } from '../src/core/persistence/sync-run.ts';
+import { runAuthenticatedSyncSlice } from '../src/core/persistence/sync-administration.ts';
+import { withEnv } from './helpers/with-env.ts';
+
+const home = mkdtempSync(join(tmpdir(), 'gbrain-owner-lane-processing-'));
+const env = { GBRAIN_HOME: home, GBRAIN_SYNC_FAILURES_DIR: home, GBRAIN_BACKUP_CHECK: 'off', GBRAIN_SYNC_NO_EXTRACT_NUDGE: '1' };
+let engine: PGLiteEngine;
+const git = (root: string, ...args: string[]) => execFileSync('git', ['-C', root, ...args], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] }).trim();
+
+beforeAll(async () => { engine = new PGLiteEngine(); await engine.connect({}); await engine.initSchema(); }, 120_000);
+afterAll(async () => {
+ await withEnv({ GBRAIN_HOME: home }, async () => { await disposePersistenceConsumer(engine); await engine.disconnect(); });
+ rmSync(home, { recursive: true, force: true });
+});
+
+/** A managed source with an unfinished cursor that stores noEmbed=true (one page of three committed). */
+async function partialSource(): Promise<string> {
+ const id = `owner-lane-${randomUUID().replace(/-/g, '').slice(0, 12)}`;
+ const root = join(home, id); mkdirSync(join(root, 'notes'), { recursive: true }); git(root, 'init', '-q');
+ for (let i = 0; i < 3; i++) writeFileSync(join(root, 'notes', `n${i}.md`), `---\ntitle: Note ${i}\n---\nA durable observation number ${i} about acme-example.\n`);
+ git(root, 'add', '.'); git(root, '-c', 'user.name=Example', '-c', '[email protected]', 'commit', '-qm', 'notes');
+ await disposePersistenceConsumer(engine);
+ await engine.executeRaw('UPDATE persistence_brain SET enabled=false WHERE singleton=1');
+ await engine.executeRaw('INSERT INTO sources(id,name,local_path,config) VALUES($1,$1,$2,\'{}\')', [id, root]);
+ await claimWorktree(engine, id, root);
+ await engine.executeRaw('UPDATE persistence_brain SET enabled=true WHERE singleton=1');
+ expect(await performManagedSync(engine, { sourceId: id, noPull: true, noEmbed: true, explicitProcessing: [] } as SyncOpts, { maxPages: 1, maxMs: 1000 }))
+ .toMatchObject({ status: 'partial' });
+ return id;
+}
+
+/** One owner-lane slice as the trusted CLI registration, drained to the end of the run. */
+async function slice(options: Record<string, unknown>): Promise<Record<string, unknown> | { error: unknown }> {
+ const registration = await registerLocalWriter(engine, 'cli');
+ try {
+ let result: Record<string, unknown> = {};
+ for (let i = 0; i < 20; i++) {
+ result = await withVerifiedLocalRegistration(engine, { id: registration.id, credential: registration.credential, lane: 'cli' } as never,
+ () => runAuthenticatedSyncSlice(engine, { options, cwd: home, timeoutSeconds: 60 }));
+ if (result.status !== 'partial') break;
+ }
+ return result;
+ } catch (error) { return { error }; }
+}
+
+test('a payload without a list counts only true-valued keys as typed: noEmbed=false adopts the cursor\'s noEmbed=true', async () => withEnv(env, async () => {
+ const id = await partialSource();
+ expect(await slice({ sourceId: id, noPull: true, noEmbed: false })).toMatchObject({ status: 'first_sync', source_id: id });
+ expect(await engine.getPage('notes/n2', { sourceId: id })).not.toBeNull();
+}), 180_000);
+
+test('a supplied list is preserved: [] adopts the stored options, [\'noEmbed\'] with noEmbed=false is honored and refuses', async () => withEnv(env, async () => {
+ const conflicting = await partialSource();
+ expect(await slice({ sourceId: conflicting, noPull: true, noEmbed: false, explicitProcessing: ['noEmbed'] }))
+ .toMatchObject({ error: { code: 'invalid_params', message: expect.stringContaining('processing options') } });
+ const adopting = await partialSource();
+ expect(await slice({ sourceId: adopting, noPull: true, explicitProcessing: [] })).toMatchObject({ status: 'first_sync', source_id: adopting });
+}), 180_000);