Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript
944 B
Raw Blame

A database-wins file-drift repair no longer overwrites a newer change to the file that sync has not imported. gbrain repair file-drift --prefer database by --held or --all-drifted now lists such a page kept_newer_file (a file edited since the last import) or kept_newer_delete (a file another writer deleted) and leaves it held; naming the page with --slug previews it and names the commit it would discard (sha, author, date). Every file-drift apply now asks for the user's consent, so a script that applies without --yes exits 3. gbrain sources reconcile --apply refuses source_changed when its result takes the database copy over such an edit. A database copy newer than the file (the file still holds what sync imported, or gbrain's own write of a revision the page has since moved past) repairs as before; gbrain's own writer commit of a revision the database never took counts as newer. The keep_db policy is unchanged.