Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(repair): the first private-labels apply after upgrading from before 0.60.649.0 can stop once

garrytanb4624fd84622
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f8edd2cc1d..b0497337d1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,7 +16,7 @@ identifiers and attribution are available in the pre-removal Git revision
### Itemized changes
-A page whose own state declines the write (its file changed outside gbrain, `source_changed`, or its body is stored in segments) fails alone and the rest of its group lands. A preview-bound apply of any repair kind that completes with only such declines now exits 0 and counts them under `declined`. The next private-labels preview lists pages an earlier apply tried and that did not change after every page not tried yet, and such a page declining again no longer counts toward the `item_failures_systemic` stop, so windows that carry declines forward keep finishing; pages not tried yet that all fail the same way still stop the run. The apply result names its ledger (`details.ledger`, `details.ledger_rows_written`).
+A page whose own state declines the write (its file changed outside gbrain, `source_changed`, or its body is stored in segments) fails alone and the rest of its group lands. A preview-bound apply of any repair kind that completes with only such declines now exits 0 and counts them under `declined`. The next private-labels preview lists pages an earlier apply tried and that did not change after every page not tried yet, and such a page declining again no longer counts toward the `item_failures_systemic` stop, so windows that carry declines forward keep finishing; pages not tried yet that all fail the same way still stop the run. A page that declined under a release before 0.60.649.0 has no ledger line, because those releases recorded only writes that landed, so the first apply after upgrading stops once with `item_failures_systemic` when five or more such pages head its window; that run leaves intent lines for its batch, so the next preview lists them last. The apply result names its ledger (`details.ledger`, `details.ledger_rows_written`).
A preview-bound repair apply now waits out a `gbrain sources refresh` for up to 10 minutes per step instead of 10 seconds. A refresh that runs longer ends the apply with `worktree_refreshing`, naming the refresh and how long it has run; rerunning the same apply resumes it (GBRA-443).
diff --git a/docs/guides/repair.md b/docs/guides/repair.md
index 615a0ff571..7d575fe4d8 100644
--- a/docs/guides/repair.md
+++ b/docs/guides/repair.md
@@ -2208,6 +2208,19 @@ A script that previews and applies windows in a loop should stop when every
listed page was tried before (`details.window.tried_before` equals
`details.window.listed`): what's left is pages that keep declining.
+**Upgrading from a release before 0.60.649.0.** Those releases wrote an undo
+ledger line only for a page write that landed, so a page that declined under
+them has no record, and the first preview after the upgrade lists it like a
+page not tried yet. If five or more such pages head the window, that apply
+stops once with `item_failures_systemic` after its first batch, which is at
+most one admission window (up to 64 pages, fewer when the writer's
+outstanding-request cap is low). Nothing is written to the declined pages; the
+pages of that batch after them that published stay published and are counted
+in the result. Every page of the batch sent for writing got its intent line
+first, so the next preview lists the declined ones last. Repeat the preview and
+the apply: each round gets through at most one window of such pages, and a
+window of only carried declines completes with exit 0.
+
An apply that meets a `gbrain sources refresh` waits for the refresh to
finish, for up to 10 minutes per step, instead of being refused after 10
seconds. A refresh that runs longer ends the apply with `worktree_refreshing`