Garry's Opinionated OpenClaw/Hermes Agent Brain
Upgrade to v0.60.63.0: retrieval feedback (opt-in) and declared single-value relations
Two additions, both off or review-only by default. Nothing changes for the user until they opt in.
Finish the upgrade.
gbrain upgraderuns it. To be sure, on the brain host:gbrain apply-migrations --yes --no-autopilot-installMigration v207 adds the retrieval feedback tables (
retrieval_events,retrieval_event_pages,retrieval_event_links,retrieval_feedback,retrieval_weights). They stay empty while feedback is off.Relay the post-upgrade notice.
gbrain post-upgradeprints a one-time [AGENT] block about retrieval feedback. Show the user its message and ask whether to turn it on. Only after they say yes:gbrain config set feedback.enabled trueWith it on, every
query,search,think,synthesizeandrecallanswer carries ananswer_id; rate it withrate_answer { answer_id, rating: 1-5 }(orgbrain rate <answer_id> <1-5>) after you use it. Ratings nudge the ranking of the pages that answer used by at most 0.9x to 1.1x. Held-out tests with consistent ratings showed a gain on entity-centric brains and none on chat-history brains, so tell the user that.Single-value relations need a pack declaration. A schema pack can mark a state relation
cardinality: one_per_from(for exampleworks_atmeaning the one current employer). The nightlyedge_contradictionsphase then proposes closures for that type without a model call; nothing is written to pages until the user accepts one. No bundled pack declares a cardinality. Before activating a pack that does:gbrain schema cardinality-preview gbrain edge-proposals listVerify.
gbrain doctor --only retrieval_feedback_health --json gbrain feedback status --json