Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(repair): mark the keep_db policy's background-origin seam for PR A (#6696 C7)
garrytana9d399b55ce5
diff --git a/src/core/repair/keep-db-policy.ts b/src/core/repair/keep-db-policy.tsindex 3695adaf45..8675be1685 100644--- a/src/core/repair/keep-db-policy.ts+++ b/src/core/repair/keep-db-policy.ts@@ -105,6 +105,8 @@ async function reconcileWithDatabase(engine: BrainEngine, sourceId: string, slugif (await getWriteRequest(engine, writer.principal, requestId)) return 'already_submitted';if (await admission(engine)) return 'capacity';try {+ // TODO(#6696 PR A, A5): submit with PR A's `background` write origin once it is on master, so near-cap backpressure refuses+ // this producer first; until then `admission` (default: the repair core's 90% stop line) is the only gate.await runReconcileApply(engine, { source_id: sourceId, slug, preview: page.preview, request_id: requestId });} catch (error) {if (acceptedPendingReceipt(error)) return 'submitted';