Repository navigation
v0.60.672.0
OpenClaw agents can now be shown the few installed skills that fit each message, the OpenClaw guide shows how one bot can serve several people over DMs with each person reading only their own pages, and running gbrain's own tests no longer writes into your brain. Three changes for people who run gbrain with OpenClaw and for contributors, landed together.
OpenClaw skill resolver (off by default)
gbrain setup openclaw --skill-loading resolve|shadow|off: a separate OpenClaw plugin,gbrain-skill-resolver, that puts up to 3 relevant skills in front of the model on each real user turn, ranked inside the gateway's Node process in a worker thread with a 50 ms deadline, so a busy gateway never waits on gbrain. It leaves OpenClaw's own skill list alone.shadowranks and logs what it would have suggested without injecting anything;--live-fraction,--pins-routeand--owner-senderstage a rollout. Switching modes or pins rewrites only gbrain's state file, so no OpenClaw command runs and the gateway does not reload. It readstop_k,min_matchandpinnedfromskills.resolverthe way the other lanes do. A partial install is never reported as done. It exits 3 withskill_resolver_plugin_not_installedand the commands still to run. Off by default.gbrain skills pin add|remove|list --catalog <c>: operator-chosen always-on skills, shown as a pinned block and never suggested twice. gbrain ships none; pins must name a skill in the catalog.gbrain doctor --only skill_resolverreports the OpenClaw plugin, its library, each agent's catalog and pins, and over the last 24 hours the outcomes, how often a suggested skill was opened and the deadline-miss rate; it warns when more than 5% of at least 20 turns missed the deadline.
One OpenClaw bot for several people, in DMs (docs only)
A new section in docs/mcp/OPENCLAW.md connects the bot over serve --http with a read-only token bound to no member, whose --may-act-for lists each person and guest. A small OpenClaw plugin uses the requester-scoped MCP connection resolver to send each DM sender's member as X-Gbrain-On-Behalf-Of; unmapped senders read as guest. The section limits the recipe to gateways with no group conversations, lists the gateway settings that keep people's sessions apart, and warns against the private-page relaxations that would show every person the owner's private pages. Those are a --private-pages granted-sources grant on the bot, the host hatches, reusing the owner's own token, and clearing access: private labels on pages that should stay the owner's. Docs only; no behavior changes. Proposed and first implemented by @exGeni (#8732).
docs/mcp/OPENCLAW.md: new section "One bot for several people, in DMs" (brain-host setup, the plugin, what each DM gets, refusals, revocation and thewhoamicheck), and a pointer to it from the page's opening.
Tests stay out of your brain, and bun run verify passes on Windows
Three test and ratchet fixes reported by contributors and rewritten on master.
test/harness-install-ownership.test.ts,test/shared-skills-adapter.test.ts,test/shared-skills-native-router.test.ts: each install runs under its own scratchGBRAIN_HOME, sobun testfrom a shell that exportsGBRAIN_HOMEfor a real brain no longer adds temp paths to that brain'sagent-instructions.json(which doctor'sharness_wiringthen reported as broken installs).test/helpers/inherited-ledger-guard.tsfails a file whose tests change the inherited ledger. Reported and first fixed by @Kkkkkuro (#8434).test/persistence-write-interrupted.test.ts: the test home goes throughrealpathSync, so the two worktree-backed cases pass on macOS, where the temp directory sits under a symlink that managed import refuses. Reported and first fixed by @babyspectrum (#8552)..gitattributes,scripts/check-function-size.ts:*.tsvchecks out with LF on every platform, and the function-size ratchet keys functions by forward-slash paths, so a Windows checkout no longer reports every baselined function as a new violation.test/scripts/tsv-eol.test.tspins the attribute. Reported and first fixed by @mrsonord2240 (#8641).