Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(install): say what apply-migrations exit 1 means in the #218 recovery (#6089)
garrytan48e90ed0b624
diff --git a/AGENTS.md b/AGENTS.mdindex 2cf50325f0..2fa4c124f0 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -23,8 +23,10 @@ start here.```If `bun install -g` aborts or `gbrain doctor` reports `schema_version: 0`,the CLI prints a recovery hint pointing at [#218](https://github.com/garrytan/gbrain/issues/218).- Run `gbrain apply-migrations --yes --no-autopilot-install` to recover without installing services, or fall back to the- deterministic install: `git clone https://github.com/garrytan/gbrain.git ~/gbrain && cd ~/gbrain && bun install && bun link`.+ Run `gbrain apply-migrations --yes --no-autopilot-install` to recover without installing services. It exits 0+ only when the schema is at head; exit 1 with `migrations_pending` means the schema is still behind, and another+ `--yes` repeats the failure, so run `gbrain doctor --json` and fall back to the deterministic install:+ `git clone https://github.com/garrytan/gbrain.git ~/gbrain && cd ~/gbrain && bun install && bun link`.2. Init keyless memory: `gbrain init --pglite --no-embedding` (zero-config). For 1000+ files ormulti-machine sync, init suggests Postgres + pgvector via Supabase.3. **STOP — ask the user about search mode.** `gbrain init` auto-applied adiff --git a/INSTALL_FOR_AGENTS.md b/INSTALL_FOR_AGENTS.mdindex d30f7ccd73..3e095fcb4f 100644--- a/INSTALL_FOR_AGENTS.md+++ b/INSTALL_FOR_AGENTS.md@@ -59,7 +59,9 @@ restart the shell or add the PATH export to the shell profile.> occasionally blocks the top-level postinstall hook on global installs, so schema> migrations don't run automatically), the CLI prints a recovery hint pointing at> [#218](https://github.com/garrytan/gbrain/issues/218). Run `gbrain apply-migrations --yes --no-autopilot-install`-> to recover. If that doesn't work, fall back to the deterministic install path:+> to recover. It exits 0 only when the schema is at head. Exit 1 with `migrations_pending` means the schema+> is still behind: another `--yes` repeats the failure, so run `gbrain doctor --json`, tell the user what it+> reports, and fall back to the deterministic install path:>> ```bash> git clone https://github.com/garrytan/gbrain.git ~/gbrain && cd ~/gbraindiff --git a/README.md b/README.mdindex f8ae277715..80e8863e92 100644--- a/README.md+++ b/README.md@@ -99,6 +99,17 @@ before restarting services with this version.> `bun remove -g gbrain`, then reinstall from GitHub. `gbrain doctor` detects a> shadowing npm install and prints the fix.+<!-- #218 recovery: canonical copy; synced into AGENTS.md and INSTALL_FOR_AGENTS.md. -->+If `bun install -g` aborts or `gbrain doctor` reports `schema_version: 0` (Bun+sometimes skips the postinstall hook on global installs, so schema migrations+don't run), the CLI prints a recovery hint pointing at+[#218](https://github.com/garrytan/gbrain/issues/218). Run+`gbrain apply-migrations --yes --no-autopilot-install`. It exits 0 only when the+schema is at head. Exit 1 with `migrations_pending` means the schema is still+behind: running `--yes` again repeats the failure, so run `gbrain doctor --json`+and use the deterministic install:+`git clone https://github.com/garrytan/gbrain.git ~/gbrain && cd ~/gbrain && bun install && bun link`.+Start with the agent you already use. For Grok Bot and Muse, the dedicated guides above install an isolated launcher, repairable runtime, and memory in a verified persistent directory. For a coding agent, paste:```textdiff --git a/llms-full.txt b/llms-full.txtindex 1fb31ca51a..987206ba62 100644--- a/llms-full.txt+++ b/llms-full.txt@@ -1708,8 +1708,10 @@ start here.```If `bun install -g` aborts or `gbrain doctor` reports `schema_version: 0`,the CLI prints a recovery hint pointing at [#218](https://github.com/garrytan/gbrain/issues/218).- Run `gbrain apply-migrations --yes --no-autopilot-install` to recover without installing services, or fall back to the- deterministic install: `git clone https://github.com/garrytan/gbrain.git ~/gbrain && cd ~/gbrain && bun install && bun link`.+ Run `gbrain apply-migrations --yes --no-autopilot-install` to recover without installing services. It exits 0+ only when the schema is at head; exit 1 with `migrations_pending` means the schema is still behind, and another+ `--yes` repeats the failure, so run `gbrain doctor --json` and fall back to the deterministic install:+ `git clone https://github.com/garrytan/gbrain.git ~/gbrain && cd ~/gbrain && bun install && bun link`.2. Init keyless memory: `gbrain init --pglite --no-embedding` (zero-config). For 1000+ files ormulti-machine sync, init suggests Postgres + pgvector via Supabase.3. **STOP — ask the user about search mode.** `gbrain init` auto-applied a@@ -2520,7 +2522,9 @@ restart the shell or add the PATH export to the shell profile.> occasionally blocks the top-level postinstall hook on global installs, so schema> migrations don't run automatically), the CLI prints a recovery hint pointing at> [#218](https://github.com/garrytan/gbrain/issues/218). Run `gbrain apply-migrations --yes --no-autopilot-install`-> to recover. If that doesn't work, fall back to the deterministic install path:+> to recover. It exits 0 only when the schema is at head. Exit 1 with `migrations_pending` means the schema+> is still behind: another `--yes` repeats the failure, so run `gbrain doctor --json`, tell the user what it+> reports, and fall back to the deterministic install path:>> ```bash> git clone https://github.com/garrytan/gbrain.git ~/gbrain && cd ~/gbrain@@ -4662,6 +4666,17 @@ before restarting services with this version.> `bun remove -g gbrain`, then reinstall from GitHub. `gbrain doctor` detects a> shadowing npm install and prints the fix.+<!-- #218 recovery: canonical copy; synced into AGENTS.md and INSTALL_FOR_AGENTS.md. -->+If `bun install -g` aborts or `gbrain doctor` reports `schema_version: 0` (Bun+sometimes skips the postinstall hook on global installs, so schema migrations+don't run), the CLI prints a recovery hint pointing at+[#218](https://github.com/garrytan/gbrain/issues/218). Run+`gbrain apply-migrations --yes --no-autopilot-install`. It exits 0 only when the+schema is at head. Exit 1 with `migrations_pending` means the schema is still+behind: running `--yes` again repeats the failure, so run `gbrain doctor --json`+and use the deterministic install:+`git clone https://github.com/garrytan/gbrain.git ~/gbrain && cd ~/gbrain && bun install && bun link`.+Start with the agent you already use. For Grok Bot and Muse, the dedicated guides above install an isolated launcher, repairable runtime, and memory in a verified persistent directory. For a coding agent, paste:```text