Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

P8: goldens at v208 on a clean tree; runThink stays within its function-size baseline

garrytan7bc8e97f497c
diff --git a/src/core/think/index.ts b/src/core/think/index.ts
index 2aaa9871c6..87bb7bdda4 100644
--- a/src/core/think/index.ts
+++ b/src/core/think/index.ts
@@ -962,8 +962,7 @@ export async function runThink(
return {
question: opts.question,
- answer: response.answer,
- ...(synthesisStatus === 'ok' ? await groundThinkAnswer(engine, response.answer, [pagesBlock, takesBlock, graphBlock ?? '', trajectoryBlock], warnings) : {}),
+ answer: response.answer, ...(synthesisStatus === 'ok' ? await groundThinkAnswer(engine, response.answer, [pagesBlock, takesBlock, graphBlock ?? '', trajectoryBlock], warnings) : {}),
citations: resolved.citations,
gaps: response.gaps,
pagesGathered: gather.pages.length,
diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.json
index f5c467581b..c57ed90793 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": 200329,
- "stdoutSha256": "3dd41f384a3a82a89934f303ca395f17bddf4ff96745cb68b20b3bfb353becad",
+ "stdoutBytes": 200661,
+ "stdoutSha256": "66ad32bb146efc0c21ccd010369c9fc73582aa46e00d76b4c9400578bce9804f",
"toolNames": [
"remember",
"entity",
@@ -178,6 +178,7 @@
"infer_entity": "boolean?",
"kind": "string?",
"provenance": "string",
+ "replaces": "string?",
"request_id": "string?",
"source_id": "string?",
"ttl": "string?",
@@ -221,6 +222,10 @@
"description": "Where the fact came from (max 500 chars).",
"type": "string"
},
+ "replaces": {
+ "description": "fact_id this fact replaces (same entity).",
+ "type": "string"
+ },
"request_id": {
"description": "UUID; retry with it on timeout.",
"type": "string"
@@ -317,7 +322,8 @@
"parameters": {
"id": "string",
"reason": "string?",
- "request_id": "string?"
+ "request_id": "string?",
+ "semantic_review": "boolean?"
},
"required_scopes": [],
"schema": {
@@ -333,6 +339,10 @@
"request_id": {
"description": "UUID; retry with it on timeout.",
"type": "string"
+ },
+ "semantic_review": {
+ "description": "false: skip overnight rewording review.",
+ "type": "boolean"
}
},
"required": [
diff --git a/test/fixtures/goldens/doctor/json-pglite-degraded.json b/test/fixtures/goldens/doctor/json-pglite-degraded.json
index 64abe9b339..a220ddf81c 100644
--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json
+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json
@@ -507,13 +507,13 @@
},
{
"category": "meta",
- "message": "Version 207 (latest: 207)",
+ "message": "Version 208 (latest: 208)",
"name": "schema_version",
"status": "ok"
},
{
"category": "meta",
- "message": "932 column(s) verified against live schema",
+ "message": "957 column(s) verified against live schema",
"name": "schema_columns",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/json-pglite-fresh.json b/test/fixtures/goldens/doctor/json-pglite-fresh.json
index 847e082ccc..9a4016dd2c 100644
--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json
+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json
@@ -510,13 +510,13 @@
},
{
"category": "meta",
- "message": "Version 207 (latest: 207)",
+ "message": "Version 208 (latest: 208)",
"name": "schema_version",
"status": "ok"
},
{
"category": "meta",
- "message": "932 column(s) verified against live schema",
+ "message": "957 column(s) verified against live schema",
"name": "schema_columns",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.json
index 1d6bf9cc78..67a2f4402f 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 115/115 public tables",
+ "message": "RLS enabled on 117/117 public tables",
"name": "rls",
"status": "ok"
},
{
"category": "meta",
- "message": "Version 207 (latest: 207)",
+ "message": "Version 208 (latest: 208)",
"name": "schema_version",
"status": "ok"
},
{
"category": "meta",
- "message": "938 column(s) verified against live schema",
+ "message": "963 column(s) verified against live schema",
"name": "schema_columns",
"status": "ok"
},
diff --git a/test/fixtures/goldens/migrations/records.json b/test/fixtures/goldens/migrations/records.json
index 3c041d8546..ac09dee091 100644
--- a/test/fixtures/goldens/migrations/records.json
+++ b/test/fixtures/goldens/migrations/records.json
@@ -1,6 +1,6 @@
{
"golden": {
- "count": 202,
+ "count": 203,
"gaps": [
17,
18,
@@ -29,7 +29,7 @@
"slugifyPath": "401dbca23580865d8b168dd8d84db4a6c708c6610d7cb61abafc7d0ee9809063",
"verifyProjectionStatistics": "59d9ccfea1c53384d8607874a51209a9c2dfd51b2b85a2cb6269fa4120faf1f3"
},
- "latest": 207,
+ "latest": 208,
"records": [
{
"handler": {
@@ -3068,6 +3068,19 @@
"transaction": "absent",
"verify": "absent",
"version": 207
+ },
+ {
+ "handler": "absent",
+ "idempotent": true,
+ "name": "decide_review_proposals",
+ "sql": {
+ "length": 1700,
+ "sha256": "8a20d8dac7096056bb53512bcb34316d15d44582b7d9b0f4f6fff3891c9daac3"
+ },
+ "sqlFor": "absent",
+ "transaction": "absent",
+ "verify": "absent",
+ "version": 208
}
],
"versions": [
@@ -3272,7 +3285,8 @@
204,
205,
206,
- 207
+ 207,
+ 208
]
},
"normalizer": "migrations-record-v1"