Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

v0.60.235.0 chore(release): restamp onto master v0.60.233.0

garrytan9eb465128c83
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index d9b2acf10e..6324d9587e 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "gbrain",
- "version": "0.60.232.0",
+ "version": "0.60.235.0",
"description": "Personal knowledge brain for your coding agent — hybrid search, synthesis, graph traversal, and durable cross-session memory over Postgres/PGLite with pgvector, plus a curated brain-first skill set.",
"author": {
"name": "Garry Tan",
diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json
index ad4765235b..61585cb052 100644
--- a/.codex-plugin/plugin.json
+++ b/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "gbrain",
- "version": "0.60.232.0",
+ "version": "0.60.235.0",
"description": "Personal knowledge brain for your coding agent — hybrid search, synthesis, graph traversal, and durable cross-session memory over Postgres/PGLite with pgvector, plus a curated brain-first skill set.",
"author": {
"name": "Garry Tan",
diff --git a/BOOTSTRAP_FOR_AGENTS.md b/BOOTSTRAP_FOR_AGENTS.md
index 83daf01fbc..0b6de1f28c 100644
--- a/BOOTSTRAP_FOR_AGENTS.md
+++ b/BOOTSTRAP_FOR_AGENTS.md
@@ -1,4 +1,4 @@
-<!-- gbrain-runbook-stamp: 0.60.232.0 -->
+<!-- gbrain-runbook-stamp: 0.60.235.0 -->
<!-- This stamp must equal the VERSION file at every release; CI enforces it
(scripts/check-bootstrap-tag.sh). `gbrain bootstrap status` compares it to
the installed binary and warns on skew. -->
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9d77fdb261..29bf245455 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,20 @@ credits are retained; no result has been reassigned to another provider. Origina
identifiers and attribution are available in the pre-removal Git revision
`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).
+## [0.60.235.0] - 2026-10-14
+
+**Writes stop failing at the cumulative quota wall (#6696).** A brain running autopilot hit `queue_capacity` on every write once its receipt bytes reached the 1.5 GiB principal cap, because every receipt held a 16 KiB reservation it never gave back and nothing warned before the wall. Receipts are now charged for what they keep, the defaults cover a year at 5,000 writes a day, background work pauses before the wall so your own writes keep working, and doctor, notices and `/metrics` say how many days are left.
+
+### Itemized changes
+
+- **Receipt true-up**: an admission reserves its request body plus 12 KiB (at least 16 KiB), so a 100 KB page reserves its 100 KB; once the last effect settles, `trueUpRequests` gives back what the receipt does not keep (in its own transaction after every settle path: the effect runner, embedding settle, the `embed --stale` bulk settle, effect retry and restore). Receipts compacted earlier give their excess back in one bounded pass.
+- **Defaults and forecast**: principal caps 2,000,000 request ids and 16 GiB receipt bytes (brain 8,000,000 and 64 GiB), from the growth model in `docs/guides/concurrent-writes.md#growth-model`. `persistence_capacity` forecasts days to exhaustion from the full 7-day aggregate on the principal index; warn at 80% or 30 days, fail at 95% or 7 days (`persistence.capacity.warn_days`, `fail_days`).
+- **Clear refusals**: a cumulative cap refuses `write_quota_exhausted` (reason `lifetime_ids` or `terminal_bytes`) with the host's `gbrain config set` raise; `queue_capacity` is only the outstanding-request cap. Background producers pause at `persistence.capacity.background_pause_pct` (80) with `write_capacity_backpressure`.
+- **Warnings**: `[gbrain notice write_capacity_low]` on write and sync receipts (hourly per scope, muteable), sync status and cycle output; `write_capacity_backpressure` notice when the pause starts; admin `/metrics` gauges `gbrain_write_capacity_{used,limit,days_to_exhaustion}` with a documented alert rule.
+- **Sync**: a capacity preflight refuses `write_quota_insufficient` before the first admission; a later cap refusal ends the drain `resumable` / `capacity_paused`.
+- **Compaction**: `gbrain repair receipt-compaction` (explicit-only, preview-bound) compacts on demand, floored at the configured retention unless `--force`; compaction skips open sync runs and the newest sync receipt per worktree; the consumer records each pass (`persistence.maintenance.last_compaction`); doctor adds `persistence_compaction` and `persistence_counter_drift`.
+- **Known-failing writes**: maintenance refuses a page whose canonical file is gone before admission (`canonical_file_missing`) and holds back a write refused three times in a day (`persistence.maintenance.refusal_breaker_threshold`); doctor `maintenance_write_drift` lists them.
+
## [0.60.233.0] - 2026-10-14
**An autopilot `sync` job on a managed brain now drains its source until it is caught up or its deadline arrives, instead of landing about one page per job (#6706).** On a managed brain each `sync` Minions job ran a single pass: it admitted one page write, waited 5 s for it and returned `partial`. Where a write takes 10-20 s to commit, each freshness job landed about one page and still reported `completed`, so a 10-entry delta took 3 hours while `gbrain sync` drained the same backlog in under 2 minutes. Now the job drains on one lane until the source is synced or its deadline (less a reserve for cleanup) arrives, queues one follow-up job when work is left, and reports its result in the same shape as the CLI. To go back: `gbrain config set sync.job_drain false`. Inline `gbrain jobs work` and supervisor workers need a restart to pick it up.
diff --git a/VERSION b/VERSION
index 6b91de3dfa..cc92daf91d 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.60.232.0
+0.60.235.0
diff --git a/openclaw.plugin.json b/openclaw.plugin.json
index f733d298a7..6b75ff6356 100644
--- a/openclaw.plugin.json
+++ b/openclaw.plugin.json
@@ -1,7 +1,7 @@
{
"id": "gbrain-context-engine",
"name": "gbrain",
- "version": "0.60.232.0",
+ "version": "0.60.235.0",
"description": "Personal knowledge brain with Postgres + pgvector hybrid search",
"family": "bundle-plugin",
"kind": "context-engine",
diff --git a/package.json b/package.json
index 9a135b5f10..73d52ae642 100644
--- a/package.json
+++ b/package.json
@@ -234,7 +234,7 @@
"bun": ">=1.4.0"
},
"license": "MIT",
- "version": "0.60.232.0",
+ "version": "0.60.235.0",
"overrides": {
"@ai-sdk/provider-utils": "4.0.56",
"@hono/node-server": "^2.0.5",
diff --git a/plugin-variants/gbrain-coding/.claude-plugin/plugin.json b/plugin-variants/gbrain-coding/.claude-plugin/plugin.json
index f592b85931..c8c4366281 100644
--- a/plugin-variants/gbrain-coding/.claude-plugin/plugin.json
+++ b/plugin-variants/gbrain-coding/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "gbrain-coding",
- "version": "0.60.233.0",
+ "version": "0.60.235.0",
"description": "Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant. (persona variant of the gbrain plugin — 21 skills)",
"author": {
"name": "Garry Tan",
diff --git a/plugin-variants/gbrain-coding/.codex-plugin/plugin.json b/plugin-variants/gbrain-coding/.codex-plugin/plugin.json
index d12a9a7f1a..7d8bf9ed23 100644
--- a/plugin-variants/gbrain-coding/.codex-plugin/plugin.json
+++ b/plugin-variants/gbrain-coding/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "gbrain-coding",
- "version": "0.60.233.0",
+ "version": "0.60.235.0",
"description": "Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant. (persona variant of the gbrain plugin — 21 skills)",
"author": {
"name": "Garry Tan",
diff --git a/plugin-variants/gbrain-coding/README.md b/plugin-variants/gbrain-coding/README.md
index 0e9f7d552f..8e2b53d679 100644
--- a/plugin-variants/gbrain-coding/README.md
+++ b/plugin-variants/gbrain-coding/README.md
@@ -1,4 +1,4 @@
-<!-- gbrain-plugin-tree-stamp: 0.60.233.0 -->
+<!-- gbrain-plugin-tree-stamp: 0.60.235.0 -->
# gbrain-coding (generated persona variant — do not hand-edit)
Brain-first coding agent working inside a repo: retrieval, routing, ingest discipline, correction hygiene. Default persona for the claude-code harness bridge; also published as the gbrain-coding marketplace variant.
diff --git a/plugin-variants/gbrain-daily/.claude-plugin/plugin.json b/plugin-variants/gbrain-daily/.claude-plugin/plugin.json
index 3ac5ee0e3c..0c391efc31 100644
--- a/plugin-variants/gbrain-daily/.claude-plugin/plugin.json
+++ b/plugin-variants/gbrain-daily/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "gbrain-daily",
- "version": "0.60.233.0",
+ "version": "0.60.235.0",
"description": "Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant. (persona variant of the gbrain plugin — 20 skills)",
"author": {
"name": "Garry Tan",
diff --git a/plugin-variants/gbrain-daily/.codex-plugin/plugin.json b/plugin-variants/gbrain-daily/.codex-plugin/plugin.json
index f0f7efe58b..5137a6a49a 100644
--- a/plugin-variants/gbrain-daily/.codex-plugin/plugin.json
+++ b/plugin-variants/gbrain-daily/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "gbrain-daily",
- "version": "0.60.233.0",
+ "version": "0.60.235.0",
"description": "Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant. (persona variant of the gbrain plugin — 20 skills)",
"author": {
"name": "Garry Tan",
diff --git a/plugin-variants/gbrain-daily/README.md b/plugin-variants/gbrain-daily/README.md
index 0ae78b14a9..a6cfe62352 100644
--- a/plugin-variants/gbrain-daily/README.md
+++ b/plugin-variants/gbrain-daily/README.md
@@ -1,4 +1,4 @@
-<!-- gbrain-plugin-tree-stamp: 0.60.233.0 -->
+<!-- gbrain-plugin-tree-stamp: 0.60.235.0 -->
# gbrain-daily (generated persona variant — do not hand-edit)
Personal knowledge-brain daily use: meetings, tasks, briefings, reading, research. Published as the gbrain-daily marketplace variant.
diff --git a/plugin/README.md b/plugin/README.md
index 1fff8dcca8..8bc8d74856 100644
--- a/plugin/README.md
+++ b/plugin/README.md
@@ -1,4 +1,4 @@
-<!-- gbrain-plugin-tree-stamp: 0.60.233.0 -->
+<!-- gbrain-plugin-tree-stamp: 0.60.235.0 -->
# gbrain plugin skill tree (generated — do not hand-edit)
This tree is the curated skill set for the gbrain Codex and Claude Code
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.ts
index ab9a4e420e..a7c37ef2dc 100644
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@ -577,10 +577,10 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }
// #6650 follow-up (group follower stamps). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
{ since: '0.60.229.0', text: 'On Linux, when a gbrain process holding a group of writes is killed, the group members it had claimed but not started are now reclaimed with its other claims within about 5 s, instead of after their 30 s claim lease. Members it had started, and any member with a recovery record or a publication in progress, are handled as before. A host with a dead owner row ahead of more than eight others now still finds the live `gbrain serve` to hand a sync to.' },
// #6696 (GBRA-93 PR A, write-quota outage). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
- { since: '0.60.232.0', text: 'A write refused at a cumulative write cap (permanent request ids or receipt bytes) now fails with `write_quota_exhausted` instead of `queue_capacity`, with `reason` (`lifetime_ids` or `terminal_bytes`) and the brain host\'s reversible `gbrain config set` raise; `queue_capacity` now means only the outstanding-request cap, which frees as queued writes settle. Before the wall, background producers (maintenance, conversation facts, autopilot phases and catch-up syncs) pause at `persistence.capacity.background_pause_pct` (default 80) with `write_capacity_backpressure`, so your own writes keep the rest; the conversation-facts preflight reports a cumulative cap the same host-only way instead of as a wait.' },
- { since: '0.60.232.0', text: 'Receipt bytes are now charged for what a receipt really keeps. An admission reserves its request body plus 12 KiB (still at least 16 KiB), so a 100 KB page write reserves about 110 KB instead of 16 KiB, and once its last effect settles the receipt gives back everything it does not keep (most small writes keep 3 to 6 KB). Receipts compacted before this release give their excess back in one bounded pass. Doctor adds `persistence_counter_drift` and `persistence_compaction` (warns when a resident consumer has not compacted in `persistence.maintenance.compaction_stale_hours`, default 24), and `gbrain repair receipt-compaction` (explicit-only, preview-bound) compacts receipts past the retention window on demand.' },
- { since: '0.60.232.0', text: 'A managed sync now checks before its first write that its remaining files fit the write capacity left and refuses `write_quota_insufficient` with the config raise when they do not (nothing is admitted). A sync that passes the check and is then stopped by a cap another writer filled ends `resumable` with stop reason `capacity_paused`; the same command resumes it. Write and sync receipts carry `[gbrain notice write_capacity_low]` (at most once an hour per scope; mute with `gbrain notices mute write_capacity_low`) when a cap is at 80% or runs out within `persistence.capacity.warn_days`.' },
- { since: '0.60.232.0', text: 'Maintenance no longer submits writes it knows will fail: a page whose canonical file is gone is refused before a request exists (`source_changed`, detail `canonical_file_missing`), and the same write refused three times in a day (`persistence.maintenance.refusal_breaker_threshold`; 0 turns it off) is held back until the page, the planner or the write changes. Doctor `maintenance_write_drift` lists what is held back and how to release it.' },
+ { since: '0.60.235.0', text: 'A write refused at a cumulative write cap (permanent request ids or receipt bytes) now fails with `write_quota_exhausted` instead of `queue_capacity`, with `reason` (`lifetime_ids` or `terminal_bytes`) and the brain host\'s reversible `gbrain config set` raise; `queue_capacity` now means only the outstanding-request cap, which frees as queued writes settle. Before the wall, background producers (maintenance, conversation facts, autopilot phases and catch-up syncs) pause at `persistence.capacity.background_pause_pct` (default 80) with `write_capacity_backpressure`, so your own writes keep the rest; the conversation-facts preflight reports a cumulative cap the same host-only way instead of as a wait.' },
+ { since: '0.60.235.0', text: 'Receipt bytes are now charged for what a receipt really keeps. An admission reserves its request body plus 12 KiB (still at least 16 KiB), so a 100 KB page write reserves about 110 KB instead of 16 KiB, and once its last effect settles the receipt gives back everything it does not keep (most small writes keep 3 to 6 KB). Receipts compacted before this release give their excess back in one bounded pass. Doctor adds `persistence_counter_drift` and `persistence_compaction` (warns when a resident consumer has not compacted in `persistence.maintenance.compaction_stale_hours`, default 24), and `gbrain repair receipt-compaction` (explicit-only, preview-bound) compacts receipts past the retention window on demand.' },
+ { since: '0.60.235.0', text: 'A managed sync now checks before its first write that its remaining files fit the write capacity left and refuses `write_quota_insufficient` with the config raise when they do not (nothing is admitted). A sync that passes the check and is then stopped by a cap another writer filled ends `resumable` with stop reason `capacity_paused`; the same command resumes it. Write and sync receipts carry `[gbrain notice write_capacity_low]` (at most once an hour per scope; mute with `gbrain notices mute write_capacity_low`) when a cap is at 80% or runs out within `persistence.capacity.warn_days`.' },
+ { since: '0.60.235.0', text: 'Maintenance no longer submits writes it knows will fail: a page whose canonical file is gone is refused before a request exists (`source_changed`, detail `canonical_file_missing`), and the same write refused three times in a day (`persistence.maintenance.refusal_breaker_threshold`; 0 turns it off) is held back until the page, the planner or the write changes. Doctor `maintenance_write_drift` lists what is held back and how to release it.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */
diff --git a/templates/bootstrap/template-repo/README.md b/templates/bootstrap/template-repo/README.md
index 697a6911e4..77e331e3a3 100644
--- a/templates/bootstrap/template-repo/README.md
+++ b/templates/bootstrap/template-repo/README.md
@@ -1,6 +1,6 @@
# gbrain agent workspace — template
-<!-- gbrain-template-stamp: 0.60.233.0 -->
+<!-- gbrain-template-stamp: 0.60.235.0 -->
This repository is the **"Use this template"** distribution artifact for a
[gbrain](https://github.com/garrytan/gbrain) personal-agent workspace — the same