Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: regenerate doctor and CLI goldens on a clean tree (content_origin user_said description, trust doctor checks in the content golden)

garrytan62773f02b4c8
diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.json
index 3db3468398..de6dd78d28 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": 221751,
- "stdoutSha256": "ed6d00aa87af99034391686167df7a67e1106f369a4068352fa2a4f10a97a743",
+ "stdoutBytes": 221904,
+ "stdoutSha256": "78b7f47fab4a3d66a0757f85717bcd1f87c8fbf2b4719c7cc9f33dadebf9d978",
"toolNames": [
"remember",
"entity",
@@ -198,7 +198,7 @@
"schema": {
"properties": {
"content_origin": {
- "description": "Where the content came from: user_said, tool_output (web page, email, file or other tool text: stored as untrusted), inferred. Set it.",
+ "description": "Where the content came from: user_said (the user told you; labeled so, still unconfirmed), tool_output (web page, email, file or other tool text: stored as untrusted), inferred. Set it.",
"enum": [
"user_said",
"tool_output",
@@ -485,7 +485,7 @@
"type": "string"
},
"content_origin": {
- "description": "Where the content came from: user_said, tool_output (web page, email, file or other tool text: stored as untrusted), inferred. Set it.",
+ "description": "Where the content came from: user_said (the user told you; labeled so, still unconfirmed), tool_output (web page, email, file or other tool text: stored as untrusted), inferred. Set it.",
"enum": [
"user_said",
"tool_output",
@@ -760,7 +760,7 @@
"type": "string"
},
"content_origin": {
- "description": "Where the content came from: user_said, tool_output (web page, email, file or other tool text: stored as untrusted), inferred. Set it.",
+ "description": "Where the content came from: user_said (the user told you; labeled so, still unconfirmed), tool_output (web page, email, file or other tool text: stored as untrusted), inferred. Set it.",
"enum": [
"user_said",
"tool_output",
diff --git a/test/fixtures/goldens/doctor/content-pglite-human.json b/test/fixtures/goldens/doctor/content-pglite-human.json
index 02adb40f24..9b011dac58 100644
--- a/test/fixtures/goldens/doctor/content-pglite-human.json
+++ b/test/fixtures/goldens/doctor/content-pglite-human.json
@@ -64,7 +64,7 @@
" [OK] pglite_scale: PGLite at 5 pages — comfortable below the 1000-page threshold",
" [OK] rls: Skipped (PGLite — no PostgREST exposure, RLS not applicable)",
" [OK] schema_version: Version <latest> (latest: <latest>)",
- " [OK] schema_columns: 1003 column(s) verified against live schema",
+ " [OK] schema_columns: 1066 column(s) verified against live schema",
" [OK] rls_event_trigger: Skipped (PGLite — no event trigger support)",
" [INFO] embeddings: Not applicable: embeddings are disabled on this brain (keyword search keeps working).",
" [INFO] embedding_provider: Not probed: embeddings are disabled on this brain by choice (keyword search keeps working).",
@@ -163,6 +163,9 @@
" [OK] planner_stats_stale: Planner statistics are fresh on 6 hot tables.",
" [OK] retrieval_feedback_health: Retrieval feedback is off; rankings do not learn from ratings. Turn it on with: gbrain config set feedback.enabled true",
" [OK] revision_backfill: Every page has its revision; the page revision backfill is complete.",
+ " [OK] trust_tiers: 0% of 13 row(s) have an unverified origin (unknown tier); the backfill has classified every row it has a signal for.",
+ " [OK] trust_scan: Every agent-written or lower row has been scanned by the current write-gate detector; flagged rows carry their flag, and proactive surfaces withhold them when trust.agent_activation is suppress.",
+ " [OK] trust_sources_unclaimed: No unclaimed source holds rows from before trust tiers.",
" [OK] core_memory: Core memory is off (opt-in). If the user wants a profile loaded in every session: gbrain config set memory.core.enabled true, then gbrain core init.",
" [OK] managed_sync_not_moving: No managed sync is pending.",
" [OK] two_consumers_on_host: PGLite admits one process; no consumer heartbeat rows are kept.",
diff --git a/test/fixtures/goldens/doctor/content-pglite-json.json b/test/fixtures/goldens/doctor/content-pglite-json.json
index 528f323e43..8ab45c4477 100644
--- a/test/fixtures/goldens/doctor/content-pglite-json.json
+++ b/test/fixtures/goldens/doctor/content-pglite-json.json
@@ -535,7 +535,7 @@
},
{
"category": "meta",
- "message": "1003 column(s) verified against live schema",
+ "message": "1066 column(s) verified against live schema",
"name": "schema_columns",
"status": "ok"
},
@@ -1905,6 +1905,111 @@
"name": "revision_backfill",
"status": "ok"
},
+ {
+ "category": "brain",
+ "details": {
+ "backfill": {
+ "completed_at": "<ts>",
+ "interrupted": false
+ },
+ "by_tier": {
+ "agent_written": 0,
+ "external_untrusted": 0,
+ "operator_curated": 13,
+ "tool_observed": 0,
+ "unknown": 0,
+ "user_confirmed": 0
+ },
+ "derived": {
+ "external_pct": 0,
+ "external_untrusted": 0,
+ "rows": 0
+ },
+ "rows": 13,
+ "tables": [
+ {
+ "by_tier": {
+ "agent_written": 0,
+ "external_untrusted": 0,
+ "operator_curated": 5,
+ "tool_observed": 0,
+ "unknown": 0,
+ "user_confirmed": 0
+ },
+ "rows": 5,
+ "table": "pages"
+ },
+ {
+ "by_tier": {
+ "agent_written": 0,
+ "external_untrusted": 0,
+ "operator_curated": 0,
+ "tool_observed": 0,
+ "unknown": 0,
+ "user_confirmed": 0
+ },
+ "rows": 0,
+ "table": "facts"
+ },
+ {
+ "by_tier": {
+ "agent_written": 0,
+ "external_untrusted": 0,
+ "operator_curated": 0,
+ "tool_observed": 0,
+ "unknown": 0,
+ "user_confirmed": 0
+ },
+ "rows": 0,
+ "table": "takes"
+ },
+ {
+ "by_tier": {
+ "agent_written": 0,
+ "external_untrusted": 0,
+ "operator_curated": 8,
+ "tool_observed": 0,
+ "unknown": 0,
+ "user_confirmed": 0
+ },
+ "rows": 8,
+ "table": "timeline_entries"
+ }
+ ],
+ "unknown_pct": 0
+ },
+ "message": "0% of 13 row(s) have an unverified origin (unknown tier); the backfill has classified every row it has a signal for.",
+ "name": "trust_tiers",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "details": {
+ "completed_at": null,
+ "detector_version": 2,
+ "total_unscanned": 0,
+ "unscanned": {
+ "facts": 0,
+ "pages": 0,
+ "takes": 0,
+ "timeline_entries": 0
+ }
+ },
+ "message": "Every agent-written or lower row has been scanned by the current write-gate detector; flagged rows carry their flag, and proactive surfaces withhold them when trust.agent_activation is suppress.",
+ "name": "trust_scan",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "details": {
+ "legacy_unknown": 0,
+ "pending": [],
+ "unclaimed": []
+ },
+ "message": "No unclaimed source holds rows from before trust tiers.",
+ "name": "trust_sources_unclaimed",
+ "status": "ok"
+ },
{
"category": "brain",
"details": {
diff --git a/test/fixtures/goldens/doctor/json-pglite-degraded.json b/test/fixtures/goldens/doctor/json-pglite-degraded.json
index 2125c145f5..ce73d93e57 100644
--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json
+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json
@@ -1984,7 +1984,7 @@
},
{
"category": "brain",
- "message": "11 retrieval-affecting file(s) changed since HEAD: src/core/chunkers/code.ts, src/core/chunkers/recursive.ts, src/core/chunkers/token-estimate.ts, …. Re-run `gbrain eval run-all` after committing these changes.",
+ "message": "No retrieval-affecting files changed in working tree.",
"name": "eval_drift",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/json-pglite-fresh.json b/test/fixtures/goldens/doctor/json-pglite-fresh.json
index 02fe4b7ac6..6bb652c96c 100644
--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json
+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json
@@ -2056,7 +2056,7 @@
},
{
"category": "brain",
- "message": "11 retrieval-affecting file(s) changed since HEAD: src/core/chunkers/code.ts, src/core/chunkers/recursive.ts, src/core/chunkers/token-estimate.ts, …. Re-run `gbrain eval run-all` after committing these changes.",
+ "message": "No retrieval-affecting files changed in working tree.",
"name": "eval_drift",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.json
index 6cc60ae67a..56c2461749 100644
--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json
+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json
@@ -2047,7 +2047,7 @@
},
{
"category": "brain",
- "message": "11 retrieval-affecting file(s) changed since HEAD: src/core/chunkers/code.ts, src/core/chunkers/recursive.ts, src/core/chunkers/token-estimate.ts, …. Re-run `gbrain eval run-all` after committing these changes.",
+ "message": "No retrieval-affecting files changed in working tree.",
"name": "eval_drift",
"status": "ok"
},