Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(sync): keep runSyncPass within the function-size limit
garrytane79809d46d11
diff --git a/src/core/persistence/sync-pass-run.ts b/src/core/persistence/sync-pass-run.tsindex 61ef8fea78..facab65f4b 100644--- a/src/core/persistence/sync-pass-run.ts+++ b/src/core/persistence/sync-pass-run.ts@@ -828,8 +828,7 @@ export async function runSyncPass(engine: BrainEngine, input: SyncPassInput): Prawait writeLegacyMarkers(engine, level);value.obligations.legacy_markers_at = new Date().toISOString();}- const roundInput = { passId, observedAt: startedAt, remote, admission, fullRound: kind === 'full', obligations: value.obligations, context, processingOptions,- grantPrefixes: remote ? authority.writer.slugPrefixes : null, onSwept };+ const roundInput = { passId, observedAt: startedAt, remote, admission, fullRound: kind === 'full', obligations: value.obligations, context, processingOptions, grantPrefixes: remote ? authority.writer.slugPrefixes : null, onSwept };await applyPassRound(engine, level, roundInput, applied);assertActive();if (!remote) value.obligations.deletes_withheld = applied.withheld?.set_hash ?? null;