Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge remote-tracking branch 'origin/master' into capy/first-run-settings-relayed

garrytan03fa87ebe98b
diff --cc docs/guides/setup.md
index 729d4c4873,e5c7bf9325..d3891a4b1e
--- a/docs/guides/setup.md
+++ b/docs/guides/setup.md
@@@ -49,20 -49,17 +49,31 @@@ the recorded answers; a flag changes on
Provider keys in the environment do not change these defaults.
+ ### Provider use declined
+
+ A declined provider decision holds even when provider keys sit in the
+ environment: gbrain sends no request to a model provider it was not asked to
+ use. OpenAI model discovery (`GET /v1/models` on engine connect) is skipped,
+ and `gbrain doctor --probe` does not probe the embedding provider. `gbrain
+ doctor` reports the decision as `provider_consent` ("skipped by consent").
+ Only the user changes it: `gbrain setup claude-code --providers` records
+ provider use as accepted for this install. A decline in any of this install's
+ setup receipts wins.
+
+## First-run settings
+
+When setup creates the brain, it prints init's first-run settings once, after
+the wiring and its check (an `[AGENT]` block at the end of the output, or
+`notices` in `--json`): the search mode init applied, with the cost matrix,
+and automatic saving (`memory.auto_writeback`, off until the user turns it
+on). Setup leaves out init's wiring question and its copy-paste quickstart,
+because it has just done both. Memory works without an answer, so the agent
+relays these settings in the reply that reports the install, as the settings
+in effect and how to change them, and applies a choice whenever the user makes
+one. Automatic saving is separate from the capture decision above; while
+unanswered it comes back in a later session until the user answers or mutes
+it.
+
## States
Setup reports how far the wiring is proven:
diff --cc src/core/behavior-change-notice.ts
index 691448105b,673bf29940..cc0ca6884e
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@@ -520,8 -520,9 +520,11 @@@ export const BEHAVIOR_CHANGES: Readonly
{ since: '0.60.190.0', text: 'Pools count reconnects of connections retired after an incident (stuck, desynced, or closed under running statements): `recovered` and `recovery_failed` in `/health?deep=1` and `getPoolDiagnostics()`, and a failed reconnect logs `pg_connection_recovery_failed`. `gbrain serve` writes its stuck, desync and recovery events to the pool-recovery audit, so `gbrain doctor --only pool_reap_health` now fails on a recovery failure and warns on a stuck or desynced connection in the last hour.' },
// #6554 (GBRA-60 D8). `since` is provisional (current VERSION); the integrator restamps it at the merge slot.
{ since: '0.60.191.0', text: '`gbrain bootstrap harness` now wires the Codex SessionEnd transcript-capture hook (its `hooks.json` group and `config.toml` trust entry) only when capture is on: turning capture off with its no-capture flag skips it, and registrar mode (a non-loopback `--url`) skips it like every other hook, because the hook talks to the local brain rather than the registered remote serve. The consent block names the hook when it is wired. A hook an earlier run installed stays until `gbrain bootstrap harness --remove`. New: `gbrain setup codex` wires Codex MCP and read-context hooks with hash-owned entries.' },
+ // Cat 41 wave 2 findings (GBRA-60). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
+ { since: '0.60.197.0', text: 'In a fresh Claude Code session wired by `gbrain setup claude-code` (SessionStart source `startup` or `resume`), the SessionStart hook now waits up to 4 seconds for the stdio `gbrain serve` Claude Code is starting, then prints its context pack (recent world-visible facts). Before, it gave up at once and the session got no pack. Sessions without a setup receipt, and `clear`/`compact` sessions, do not wait; a serve that never answers ends the wait fail-open with heartbeat reason `serve_not_ready`.' },
+ { since: '0.60.197.0', text: 'When `gbrain setup` recorded provider use as declined, gbrain no longer sends the OpenAI model-discovery request (`GET /v1/models`) on engine connect even if `OPENAI_API_KEY` is set, and `gbrain doctor --probe` skips the embedding probe. Doctor gains `provider_consent`, which reports the recorded decision; a decline shows as skipped by consent with the user-run fix `gbrain setup <harness> --providers`.' },
+ // Cat 41 wave 2 TTHW (GBRA-60). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
- { since: '0.60.191.0', text: '`gbrain setup claude-code` and `gbrain setup codex` no longer print `gbrain init`\'s standalone output when they create the brain: no search-mode banner, no "Do this next" quickstart (`claude mcp add` and the install-check round trip) and no `harness_wiring` question, since setup has just wired the harness. They print `Brain ready at <path>`, then the first-run settings once, after `Next:` (an agent block, or `notices` in `--json` without `harness_wiring`): the applied search mode with the cost matrix and automatic saving, framed as settings in effect that the agent relays in the install reply and the user can change at any time, instead of "Reply \'defaults\'". No setting or default changed.' },
++ { since: '0.60.197.0', text: '`gbrain setup claude-code` and `gbrain setup codex` no longer print `gbrain init`\'s standalone output when they create the brain: no search-mode banner, no "Do this next" quickstart (`claude mcp add` and the install-check round trip) and no `harness_wiring` question, since setup has just wired the harness. They print `Brain ready at <path>`, then the first-run settings once, after `Next:` (an agent block, or `notices` in `--json` without `harness_wiring`): the applied search mode with the cost matrix and automatic saving, framed as settings in effect that the agent relays in the install reply and the user can change at any time, instead of "Reply \'defaults\'". No setting or default changed.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */