Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Restore the safe skill update notice row as a fragment

garrytana7c3ab81511b
diff --git a/behavior-changes.d/skillpack_update_untouched.md b/behavior-changes.d/skillpack_update_untouched.md
new file mode 100644
index 0000000000..55633261a6
--- /dev/null
+++ b/behavior-changes.d/skillpack_update_untouched.md
@@ -0,0 +1 @@
+Installed skills can now take gbrain's current version whole when you never edited them. `gbrain skillpack scaffold` (including `--harness` installs) and every update record the sha256 of each skill file it installed in `~/.gbrain/skillpack-state.json` (schema `gbrain-skillpack-state-v2`; an older gbrain refuses that file instead of dropping its records). Preview what would change with `gbrain skillpack reference --all --update-untouched --dry-run`; a skill with any edited file, a pinned skill (`gbrain skillpack pin <skill>`) or one with no recorded hash is skipped with a reason and a diff. Every update is journaled under `~/.gbrain/skillpack-backups/` and undone with `gbrain skillpack restore <id>`. `gbrain upgrade` writes no skill files; nothing runs on upgrade.
diff --git a/changelog.d/capy-gbra408-train-d.md b/changelog.d/capy-gbra408-train-d.md
index 85e655f709..8abdb5055b 100644
--- a/changelog.d/capy-gbra408-train-d.md
+++ b/changelog.d/capy-gbra408-train-d.md
@@ -86,7 +86,7 @@ Four more harness fixes: a per-turn hook you paste into Hermes by hand now count
- Tests: `test/brain-first-turn-rule.test.ts`, `test/setup-brain-first.test.ts`, `test/check-resolvable.test.ts`, `test/mcp-registration-blocks.test.ts`, and the upgrade suites that pin the child `bun` argv.
- `src/core/ai/providers/claude-cli-language-model.ts`: `runClaude` adds `--setting-sources ""` when a cached `claude --version` (once per binary per process) reads `SETTING_SOURCES_MIN_VERSION` (2.1.314) or newer. `GBRAIN_CLAUDE_CLI_USER_SETTINGS=1` skips the flag and the probe, and a cwd `.env` cannot set it (`src/core/env-trust.ts`). Reported and first fixed by @Masashi-Ono0611 (#8350).
- Docs: `docs/ai-providers/claude-cli.md` (the trade-off), `docs/guides/skillopt.md`, `docs/architecture/key-files/core-ai-continued.md`.
-- `src/core/behavior-change-notice.ts`: the `claude_cli_setting_sources_8342` row.
+- `behavior-changes.d/claude_cli_setting_sources_8342.md`: the upgrade-notice row.
- Tests: `test/claude-cli-setting-sources-8342.test.ts` (including the opt-in); the `test/claude-cli-output-cap.test.ts` stub answers `--version`.
### Skill resolver: session cleanup, extra skill folders and top_gate (#9095)
@@ -107,4 +107,5 @@ Before, the hook lane exited right after its turn, so idle session files waited
- `min_match` behaves as before. Its docs now say it filters candidates and is not a gate.
- A bad `top_gate` or `dirs` value makes the lane log `skill_resolver_config_invalid` and deliver nothing, like the other turn settings.
+<!-- behavior-change: skillpack_update_untouched -->
<!-- behavior-change: claude_cli_setting_sources_8342 -->