Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Shorten the git-reconcile doc paragraphs so llms-full.txt stays under its size budget

garrytan5ed7a3a7a50e
diff --git a/docs/guides/cron-schedule.md b/docs/guides/cron-schedule.md
index 3d0a866568..79a714c0f0 100644
--- a/docs/guides/cron-schedule.md
+++ b/docs/guides/cron-schedule.md
@@ -144,10 +144,8 @@ Rules for the wrapper and everything that calls it:
Set caller timeouts of at least 10 s in the shell and in the language
runtime that runs it (a runtime's exec timeout can override the shell's
without saying so), and turn on the [warm CLI socket](cli-socket.md) so
- reads skip the cold start. A call that fetches or pushes
- (`gbrain sources git-reconcile`, `gbrain sources refresh`) can take minutes
- on a slow remote: give it at least 15 minutes rather than killing it
- mid-push, and let overlapping runs take turns instead of skipping them.
+ reads skip the cold start. Give fetch or push calls (`gbrain sources
+ git-reconcile`, `refresh`) 15 minutes.
6. **Quote the env file.** A file a shell sources is shell syntax. An unquoted
`&` in a URL ends the assignment and backgrounds the rest, so the variable
silently keeps its old value. Quote every value, keep Postgres URLs to
diff --git a/docs/guides/live-sync.md b/docs/guides/live-sync.md
index 37a10ed6bb..3399b3e362 100644
--- a/docs/guides/live-sync.md
+++ b/docs/guides/live-sync.md
@@ -698,23 +698,11 @@ vars — incident-time escape hatches, not everyday knobs.
an upstream rewritten by a force-push (or one gbrain has no earlier record
of) still refuses `refresh_diverged`, and `--dry-run` never publishes.
- `gbrain sources git-reconcile` does this for every source checkout on the
- host at once: a managed checkout goes through the refresh above; a checkout
- gbrain cloned for the source (`gbrain sources add --url`, the source folder
- at the repository root) publishes its local commits the same way (secret scan,
- rewrite check, merge in memory, bound to the upstream it checked so a
- force-push in between refuses) and fast-forwards when it is only behind. Any
- other checkout, such as a source folder inside a repository gbrain did not
- clone, only fast-forwards and reports its local commits `unpublished` unless
- `sources.refresh_publish_diverged` is `true`; `false` leaves every checkout's
- local commits `unpublished`. A source with sync turned off
- (`gbrain sources set-sync <id> off`) is skipped unless named. A level checkout costs one fetch and reports `in_sync`, so any agent,
- cron or hook can call it as often and as concurrently as it likes; callers
- on one checkout take turns and end with the same upstream. Autopilot runs it
- each tick, its pulls and publishes in bounded child processes
- (`autopilot.git_pull false` skips it). Exit 0 means every checkout is level
- or left unpublished, 1 that one needs the user (the result names the
- refusal), 4 that a retry can fix it.
+ `gbrain sources git-reconcile` does this for every source checkout, and
+ autopilot runs it each tick (`autopilot.git_pull false` skips it). A
+ checkout gbrain cloned also publishes its local commits;
+ `sources.refresh_publish_diverged false` keeps them local. A level
+ checkout costs one fetch, so call it as often as you like.
**Say to your agent:** *"Bring my notes source up to date with its remote."*
diff --git a/docs/guides/repair.md b/docs/guides/repair.md
index 2b285e65c8..027fb535df 100644
--- a/docs/guides/repair.md
+++ b/docs/guides/repair.md
@@ -2991,7 +2991,7 @@ and recalled from the database with no fence row (`row_num` empty), and page
write-through reports `skipped: "url_clone"`. A managed brain does the same
with `gbrain sources mirror-readonly <id>`.
-Local commits someone else makes in an owned clone are a different case: `gbrain sources git-reconcile`, which autopilot runs each tick, publishes them (secret scan over the commit range, the rewritten-upstream refusal, and only when the source folder is the repository root). `gbrain config set sources.refresh_publish_diverged false` (every source) or `gbrain sources set-sync <id> off` (one source, which also leaves it out of automatic sync) keeps them local, the old mirror behaviour.
+Local commits made in an owned clone are different: `gbrain sources git-reconcile` (autopilot, each tick) publishes them after a secret scan. `gbrain config set sources.refresh_publish_diverged false` (every source) or `gbrain sources set-sync <id> off` (one source) keeps them local.
A clone an older release already dirtied still blocks its pulls. `gbrain sync
--source <id>` then prints `pull_blocked_local_changes` with the changed files
diff --git a/llms-full.txt b/llms-full.txt
index dd8b75aef8..91b8683b16 100644
--- a/llms-full.txt
+++ b/llms-full.txt
@@ -7755,23 +7755,11 @@ vars — incident-time escape hatches, not everyday knobs.
an upstream rewritten by a force-push (or one gbrain has no earlier record
of) still refuses `refresh_diverged`, and `--dry-run` never publishes.
- `gbrain sources git-reconcile` does this for every source checkout on the
- host at once: a managed checkout goes through the refresh above; a checkout
- gbrain cloned for the source (`gbrain sources add --url`, the source folder
- at the repository root) publishes its local commits the same way (secret scan,
- rewrite check, merge in memory, bound to the upstream it checked so a
- force-push in between refuses) and fast-forwards when it is only behind. Any
- other checkout, such as a source folder inside a repository gbrain did not
- clone, only fast-forwards and reports its local commits `unpublished` unless
- `sources.refresh_publish_diverged` is `true`; `false` leaves every checkout's
- local commits `unpublished`. A source with sync turned off
- (`gbrain sources set-sync <id> off`) is skipped unless named. A level checkout costs one fetch and reports `in_sync`, so any agent,
- cron or hook can call it as often and as concurrently as it likes; callers
- on one checkout take turns and end with the same upstream. Autopilot runs it
- each tick, its pulls and publishes in bounded child processes
- (`autopilot.git_pull false` skips it). Exit 0 means every checkout is level
- or left unpublished, 1 that one needs the user (the result names the
- refusal), 4 that a retry can fix it.
+ `gbrain sources git-reconcile` does this for every source checkout, and
+ autopilot runs it each tick (`autopilot.git_pull false` skips it). A
+ checkout gbrain cloned also publishes its local commits;
+ `sources.refresh_publish_diverged false` keeps them local. A level
+ checkout costs one fetch, so call it as often as you like.
**Say to your agent:** *"Bring my notes source up to date with its remote."*
@@ -8016,10 +8004,8 @@ Rules for the wrapper and everything that calls it:
Set caller timeouts of at least 10 s in the shell and in the language
runtime that runs it (a runtime's exec timeout can override the shell's
without saying so), and turn on the [warm CLI socket](cli-socket.md) so
- reads skip the cold start. A call that fetches or pushes
- (`gbrain sources git-reconcile`, `gbrain sources refresh`) can take minutes
- on a slow remote: give it at least 15 minutes rather than killing it
- mid-push, and let overlapping runs take turns instead of skipping them.
+ reads skip the cold start. Give fetch or push calls (`gbrain sources
+ git-reconcile`, `refresh`) 15 minutes.
6. **Quote the env file.** A file a shell sources is shell syntax. An unquoted
`&` in a URL ends the assignment and backgrounds the rest, so the variable
silently keeps its old value. Quote every value, keep Postgres URLs to