Garry's Opinionated OpenClaw/Hermes Agent Brain
Upgrade to v0.60.100.0: doctor counts the broken facts and takes tables left
gbrain doctor has a new fence_integrity check. Per source, it counts every
malformed facts or takes table still waiting, once each: a file managed sync
held (invalid_fence), a stored page an older release imported with a broken
table, and a checkout file not yet synced. It splits them by the tier that
would fix them: deterministic (gbrain repairs it the next time the file
syncs or the page is written), resolver (a holder name to resolve), llm (a
table only a rewrite can realign) and manual (an edit only a person can
decide). It also shows the oldest hold, the tables repaired in the last 7 days
with their top writers, and the model-repair caps with today's spend.
Finish the upgrade.
gbrain upgraderuns it; no schema migration is added. Restart everygbrain serve, autopilot and worker.Run the check.
gbrain doctor --only fence_integrity --jsonEach run scans stored pages and source checkouts for up to 10 seconds (
GBRAIN_DOCTOR_FENCE_TIMEOUT_MS) and resumes where the last run stopped. Apartialresult means the scan has not finished: run the same command again untildetails.partialisfalse. Do not report a partial result as healthy.Act on what it lists.
details.sources[]gives each source's counts by bucket and tier, anddetails.sources[].samplethe first tables (slug, path, tier, reasons; never a cell value). The check'sfixis the next step:- Held files:
gbrain sources status <id>names the file, table, section, rows and reason. Read the page (gbrain get --source <id> -- <slug>), edit only that table in the file, commit, thengbrain sync --source <id> --no-pull. - Stored pages: read the page with
gbrain get --source <id> -- <slug>and write it again withput_page. gbrain repairs a fixable table in that write and reportsfences_normalized; a table it cannot repair refusesinvalid_fencewithfence_issuesnaming every row and column to fix. - Unsynced files:
gbrain sync --source <id> --no-pull. A fixable table is repaired and committed; any other is held, then fixed as above. Write facts withrememberand takes withtakes_add: their rows never need repair.
- Held files:
Tell the user about a noisy writer. When a source had 20 or more tables repaired in 7 days, the check warns and names the top writers (a receipt principal such as
oauth_client, or a top directory for sync). Something keeps writing broken tables; tell the user so it can be fixed at the source.Know the new settings.
fences.repair.max_usd_per_page(default0.05) andfences.repair.max_usd_per_day(default1.00) cap model repair of tables, per page and per UTC day across every gbrain process.0turns model spend off. Nothing spends under them in this release. Raising them is the user's call:gbrain config set fences.repair.max_usd_per_day <usd>Verify:
gbrain doctor --only fence_integrity --jsonstatus: "ok"means nothing is waiting, every source's scan is complete, and no source is at the repair-trend threshold.