Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Write down what stays the same on stable and how much warning you get before it changes (#9460)

Garry Tan90957de48229
diff --git a/README.md b/README.md
index 139a686147..c305d4fd12 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ GBrain is MIT-licensed and free to self-host, and it starts with no API keys: se
## Stability
-New releases come out many times a day, but the install command below gives you the **stable channel**: a release reaches it only after the full test suite and a two-hour, 600,000-page load test pass on that exact release, and only when an important fix is waiting or stable is a week old. Updates are never installed without your say-so unless you turn on automatic upgrades. After an upgrade, gbrain shows a one-time notice listing what changed in behaviour. [docs/STABILITY.md](docs/STABILITY.md) explains how often stable moves, how to pin a version or go back, and what the faster alpha channel is for.
+New releases come out many times a day, but the install command below gives you the **stable channel**: a release reaches it only after the full test suite and a two-hour, 600,000-page load test pass on that exact release, and only when an important fix is waiting or stable is a week old. Updates are never installed without your say-so unless you turn on automatic upgrades. After an upgrade, gbrain shows a one-time notice listing what changed in behaviour. Stable also comes with a written promise about which commands, flags, tools, config keys and output fields stay the same, and how much warning you get before one changes. [docs/STABILITY.md](docs/STABILITY.md) explains that promise, how often stable moves, how to pin a version or go back, and what the faster alpha channel is for.
## Install
diff --git a/changelog.d/capy-stable-promise.md b/changelog.d/capy-stable-promise.md
new file mode 100644
index 0000000000..49ab24a2fb
--- /dev/null
+++ b/changelog.d/capy-stable-promise.md
@@ -0,0 +1,6 @@
+**docs/STABILITY.md now says what stays the same on the stable channel, and how much warning you get before something changes.**
+
+### Added
+- A "What stays the same on stable" section in docs/STABILITY.md. It covers command names and their documented flags, MCP tools and their parameters, documented config keys, the page and frontmatter format, exit codes and the top-level `--json` fields of documented commands, and upgrades from any stable release of the last six months. A removal or rename is announced in a stable release first, keeps working with a warning, and is removed no sooner than 14 days and two stable releases later. Security and data-loss fixes are the one exception. The section also lists what the promise does not cover, including very large brains during an upgrade until #9192 is fixed.
+- `deprecations.d/README.md`, which says how a planned removal is recorded and announced before it happens.
+- The README's Stability section points to the new promise.
diff --git a/deprecations.d/README.md b/deprecations.d/README.md
new file mode 100644
index 0000000000..e1f08750c3
--- /dev/null
+++ b/deprecations.d/README.md
@@ -0,0 +1,49 @@
+# deprecations.d
+
+One file per planned removal or rename of something stable promises to keep
+(see [What stays the same on stable](../docs/STABILITY.md#what-stays-the-same-on-stable)):
+a command, a documented flag, an MCP tool or parameter, a documented config
+key, a page-format rule, an exit code or a top-level `--json` field.
+
+## Before you remove or rename something
+
+1. Keep the old name or behaviour working, and make it print a warning that
+ names the replacement.
+2. Add `deprecations.d/<id>.md`, with an id in the same form as a
+ behaviour-change id (lowercase letters, digits and `_`, starting with a
+ letter), for example `old_name_flag_1234`:
+
+ ```markdown
+ ---
+ surface: cli-flag
+ name: gbrain <command> --old-name
+ replacement: gbrain <command> --new-name
+ owner: <who removes it>
+ remove_after: 2026-12-07
+ ---
+ One plain paragraph for users: what changes, what to use instead, and what
+ happens if they do nothing.
+ ```
+
+ `surface` is one of `cli-command`, `cli-flag`, `mcp-tool`, `mcp-param`,
+ `config-key`, `page-format`, `exit-code` or `json-field`.
+ `remove_after` is at least 14 days after the stable release that first
+ carries the announcement.
+3. Announce it in the same pull request: add a behaviour-change row with the
+ same id (`behavior-changes.d/<id>.md`, see its README) so the upgrade
+ notice carries it, and say it in your changelog fragment
+ (`changelog.d/<slug>.md`) so the release notes carry it.
+
+## Removing it
+
+The removal is a separate pull request, made after `remove_after` and once
+the announcement has been in at least two stable releases. It deletes the old
+name and the warning, keeps this file (the history of what was removed and
+when) and adds a second behaviour-change row, with an id of its own, saying the
+old name is gone.
+
+## Security and data-loss fixes
+
+A fix for a security hole or for something that loses data may change
+behaviour at once, with no record here. Its behaviour-change row says which
+of the two it is and what users need to do.
diff --git a/docs/STABILITY.md b/docs/STABILITY.md
index ed4eca6a81..71d55425ca 100644
--- a/docs/STABILITY.md
+++ b/docs/STABILITY.md
@@ -8,6 +8,32 @@ The install command in the README, `bun install -g github:garrytan/gbrain#stable
Check which channel you are on with `gbrain doctor`, which prints `channel=<channel>` when one is set.
+## What stays the same on stable
+
+Since 16 November 2026, stable comes with a written promise about what a script or an agent built on gbrain can rely on.
+
+**What it covers:**
+
+- Command names and their documented flags (the ones `gbrain <command> --help` and these docs describe).
+- MCP tool names and their parameters.
+- Documented config keys (`gbrain config set <key>`).
+- The page file and frontmatter format.
+- Exit codes and the top-level fields of `--json` output for documented commands.
+- Upgrading a brain from any stable release of the last six months. The channel started on 28 October 2026, so today that means every stable release.
+
+**How those things may change.** A removal or a rename is announced first, in a stable release: in the one-time upgrade notice and in the release notes. The old name or behaviour keeps working, with a warning that names the new one. It is removed no sooner than 14 days and two stable releases after that announcement. A change that makes a command or tool refuse something it used to accept counts as a break under this rule too.
+
+**The one exception: security and data-loss fixes.** A fix for a security hole or for something that loses data may change behaviour at once. Its upgrade notice says which of the two it is and what you need to do. It may leave out how the problem worked until the fix has had time to reach people.
+
+**What it does not cover:**
+
+- Wording of messages meant for people (not `--json`), and undocumented or internal flags.
+- The alpha channel. Its releases can change anything between one build and the next.
+- Search ranking, speed and the exact results of model-backed features.
+- Very large brains during an upgrade. The upgrade tests build small brains, on PGLite and on Postgres, with and without a git repository. The two-hour load test runs a 600,000-page brain on the new release but does not upgrade one. Until [#9192](https://github.com/garrytan/gbrain/issues/9192) is fixed, a large brain on a remote Postgres database can return no search results for hours after an upgrade while it catches up.
+
+**How it is checked.** Today each change is checked against these rules when its pull request is reviewed. A planned removal is recorded in [deprecations.d/](../deprecations.d/README.md) before it is announced. If a stable release breaks one of these rules anyway, that is a regression, and it is handled like any other: fixed, with the fix sent to stable as an important fix.
+
## How a release becomes stable
1. **Every release passes the full test suite first.** A release is published only after the full unit and end-to-end test runs pass on its exact code.
diff --git a/llms-full.txt b/llms-full.txt
index 7cb39087f4..a629d7a05e 100644
--- a/llms-full.txt
+++ b/llms-full.txt
@@ -2795,6 +2795,32 @@ The install command in the README, `bun install -g github:garrytan/gbrain#stable
Check which channel you are on with `gbrain doctor`, which prints `channel=<channel>` when one is set.
+## What stays the same on stable
+
+Since 16 November 2026, stable comes with a written promise about what a script or an agent built on gbrain can rely on.
+
+**What it covers:**
+
+- Command names and their documented flags (the ones `gbrain <command> --help` and these docs describe).
+- MCP tool names and their parameters.
+- Documented config keys (`gbrain config set <key>`).
+- The page file and frontmatter format.
+- Exit codes and the top-level fields of `--json` output for documented commands.
+- Upgrading a brain from any stable release of the last six months. The channel started on 28 October 2026, so today that means every stable release.
+
+**How those things may change.** A removal or a rename is announced first, in a stable release: in the one-time upgrade notice and in the release notes. The old name or behaviour keeps working, with a warning that names the new one. It is removed no sooner than 14 days and two stable releases after that announcement. A change that makes a command or tool refuse something it used to accept counts as a break under this rule too.
+
+**The one exception: security and data-loss fixes.** A fix for a security hole or for something that loses data may change behaviour at once. Its upgrade notice says which of the two it is and what you need to do. It may leave out how the problem worked until the fix has had time to reach people.
+
+**What it does not cover:**
+
+- Wording of messages meant for people (not `--json`), and undocumented or internal flags.
+- The alpha channel. Its releases can change anything between one build and the next.
+- Search ranking, speed and the exact results of model-backed features.
+- Very large brains during an upgrade. The upgrade tests build small brains, on PGLite and on Postgres, with and without a git repository. The two-hour load test runs a 600,000-page brain on the new release but does not upgrade one. Until [#9192](https://github.com/garrytan/gbrain/issues/9192) is fixed, a large brain on a remote Postgres database can return no search results for hours after an upgrade while it catches up.
+
+**How it is checked.** Today each change is checked against these rules when its pull request is reviewed. A planned removal is recorded in [deprecations.d/](../deprecations.d/README.md) before it is announced. If a stable release breaks one of these rules anyway, that is a regression, and it is handled like any other: fixed, with the fix sent to stable as an important fix.
+
## How a release becomes stable
1. **Every release passes the full test suite first.** A release is published only after the full unit and end-to-end test runs pass on its exact code.
@@ -4523,7 +4549,7 @@ GBrain is MIT-licensed and free to self-host, and it starts with no API keys: se
## Stability
-New releases come out many times a day, but the install command below gives you the **stable channel**: a release reaches it only after the full test suite and a two-hour, 600,000-page load test pass on that exact release, and only when an important fix is waiting or stable is a week old. Updates are never installed without your say-so unless you turn on automatic upgrades. After an upgrade, gbrain shows a one-time notice listing what changed in behaviour. [docs/STABILITY.md](docs/STABILITY.md) explains how often stable moves, how to pin a version or go back, and what the faster alpha channel is for.
+New releases come out many times a day, but the install command below gives you the **stable channel**: a release reaches it only after the full test suite and a two-hour, 600,000-page load test pass on that exact release, and only when an important fix is waiting or stable is a week old. Updates are never installed without your say-so unless you turn on automatic upgrades. After an upgrade, gbrain shows a one-time notice listing what changed in behaviour. Stable also comes with a written promise about which commands, flags, tools, config keys and output fields stay the same, and how much warning you get before one changes. [docs/STABILITY.md](docs/STABILITY.md) explains that promise, how often stable moves, how to pin a version or go back, and what the faster alpha channel is for.
## Install