Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: goldens at v207 and v0.60.63.0
garrytan5e25af03b29c
diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.jsonindex 68a64d5c15..f5c467581b 100644--- a/test/fixtures/goldens/cli/tools-json.json+++ b/test/fixtures/goldens/cli/tools-json.json@@ -2,8 +2,8 @@"golden": {"exitCode": 0,"stderr": "",- "stdoutBytes": 198957,- "stdoutSha256": "df81753969449d759c2ddf8394a3e5bcb477a48de61931c885aaca127b84f6b0",+ "stdoutBytes": 200329,+ "stdoutSha256": "3dd41f384a3a82a89934f303ca395f17bddf4ff96745cb68b20b3bfb353becad","toolNames": ["remember","entity",@@ -28,6 +28,7 @@"search_modes","search_tune","cache_stats",+ "rate_answer","search_by_image","add_tag","remove_tag",@@ -1322,6 +1323,43 @@},"scope": "admin"},+ {+ "description": "Rate how useful an answer's retrieved evidence was, so this brain ranks better next time (zero LLM calls). Pass the answer_id from a query/search/think/synthesize/recall response and rating 1-5, or rate single pages with pages: [{ ref: \"source_id:slug\", rating }]. Example: { answer_id: \"ans_01J…\", pages: [{ ref: \"default:people/alice-example\", rating: 1 }] }. Returns a receipt with each weight before/after; it never edits stored facts.",+ "idempotent": true,+ "local_only": false,+ "mutating": true,+ "name": "rate_answer",+ "parameters": {+ "answer_id": "string",+ "pages": "array?",+ "rating": "number?"+ },+ "required_scopes": [],+ "schema": {+ "properties": {+ "answer_id": {+ "description": "The ans_… id from the answer you are rating.",+ "type": "string"+ },+ "pages": {+ "description": "Per-page ratings: [{ ref: \"source_id:slug\", rating: 1-5 }]. Pages only; edges are not touched.",+ "items": {+ "type": "object"+ },+ "type": "array"+ },+ "rating": {+ "description": "Whole-answer rating 1-5 (omit when using pages).",+ "type": "number"+ }+ },+ "required": [+ "answer_id"+ ],+ "type": "object"+ },+ "scope": "write"+ },{"description": "Image-as-query retrieval. Accepts a local path (CLI), data: URI, or http(s):// URL (SSRF-defended). Returns visually-similar image chunks plus any OCR text they carry. Optional `query` text refinement merges via weighted RRF. Matching images to full-text knowledge needs multimodal indexing (`gbrain reindex --multimodal` + `search.unified_multimodal: true`).","idempotent": true,diff --git a/test/fixtures/goldens/doctor/json-pglite-degraded.json b/test/fixtures/goldens/doctor/json-pglite-degraded.jsonindex 5ff25229b9..64abe9b339 100644--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json@@ -507,7 +507,7 @@},{"category": "meta",- "message": "Version 206 (latest: 206)",+ "message": "Version 207 (latest: 207)","name": "schema_version","status": "ok"},diff --git a/test/fixtures/goldens/doctor/json-pglite-fresh.json b/test/fixtures/goldens/doctor/json-pglite-fresh.jsonindex 13e56cbe67..847e082ccc 100644--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json@@ -510,7 +510,7 @@},{"category": "meta",- "message": "Version 206 (latest: 206)",+ "message": "Version 207 (latest: 207)","name": "schema_version","status": "ok"},diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.jsonindex 67c4b81226..1d6bf9cc78 100644--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json@@ -497,19 +497,19 @@},{"category": "ops",- "message": "RLS enabled on 110/110 public tables",+ "message": "RLS enabled on 115/115 public tables","name": "rls","status": "ok"},{"category": "meta",- "message": "Version 206 (latest: 206)",+ "message": "Version 207 (latest: 207)","name": "schema_version","status": "ok"},{"category": "meta",- "message": "907 column(s) verified against live schema",+ "message": "938 column(s) verified against live schema","name": "schema_columns","status": "ok"},@@ -1645,6 +1645,26 @@"name": "planner_stats_stale","status": "ok"},+ {+ "category": "meta",+ "details": {+ "answers_recorded": 0,+ "docs": "docs/guides/retrieval-feedback.md",+ "enabled": false,+ "implicit": false,+ "influence": 0.1,+ "last_rating_at": null,+ "learn": true,+ "ratings_cited": 0,+ "ratings_explicit": 0,+ "top_client_share_7d": null,+ "weights": 0,+ "weights_off_neutral": 0+ },+ "message": "Retrieval feedback is off; rankings do not learn from ratings. Turn it on with: gbrain config set feedback.enabled true",+ "name": "retrieval_feedback_health",+ "status": "ok"+ },{"category": "meta","details": {diff --git a/test/fixtures/goldens/migrations/records.json b/test/fixtures/goldens/migrations/records.jsonindex c6b93ddf81..3c041d8546 100644--- a/test/fixtures/goldens/migrations/records.json+++ b/test/fixtures/goldens/migrations/records.json@@ -1,6 +1,6 @@{"golden": {- "count": 201,+ "count": 202,"gaps": [17,18,@@ -29,7 +29,7 @@"slugifyPath": "401dbca23580865d8b168dd8d84db4a6c708c6610d7cb61abafc7d0ee9809063","verifyProjectionStatistics": "59d9ccfea1c53384d8607874a51209a9c2dfd51b2b85a2cb6269fa4120faf1f3"},- "latest": 206,+ "latest": 207,"records": [{"handler": {@@ -3055,6 +3055,19 @@"transaction": "absent","verify": "absent","version": 206+ },+ {+ "handler": "absent",+ "idempotent": true,+ "name": "retrieval_feedback",+ "sql": {+ "length": 2490,+ "sha256": "d1e3de98a671e85253ee73b0e67ccf297ba16c663832560c20f88788c1c43600"+ },+ "sqlFor": "absent",+ "transaction": "absent",+ "verify": "absent",+ "version": 207}],"versions": [@@ -3258,7 +3271,8 @@203,204,205,- 206+ 206,+ 207]},"normalizer": "migrations-record-v1"