Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

bench: a classic brain cloned into a new home syncs bench once there, so this host is its recorded syncer

garrytan307fe9408d73
diff --git a/scripts/bench/sync-freshness.ts b/scripts/bench/sync-freshness.ts
index 032348344f..d5ce63e4bd 100644
--- a/scripts/bench/sync-freshness.ts
+++ b/scripts/bench/sync-freshness.ts
@@ -250,6 +250,10 @@ async function ensureBrain(mode: 'classic' | 'managed', sources = SOURCES): Prom
await cloneBrain(cloneFrom, dbName(...from), dir, dbName(mode, sources), mode, mode === 'managed' ? ids : ['bench']);
build.cloned_from = brainKey(...from);
build.clone_ms = round1(now() - t);
+ if (mode === 'classic') {
+ makeChange(srcRoot(dir, 'bench'), srcState(dir, 'bench'), 'single', 'bench');
+ build.rebind_sync = await syncUntilDone(home, 'rebind bench to this home', 'bench');
+ }
} else {
log('building ' + brainKey(mode, sources) + ': writing ' + PAGES + ' pages');
let t = now();