Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

chore(large-pages): keep engine.ts under its size ceiling

garrytanf5988690e393
diff --git a/src/core/engine.ts b/src/core/engine.ts
index 9b2e6f0fb1..5cf5b6277f 100644
--- a/src/core/engine.ts
+++ b/src/core/engine.ts
@@ -1156,11 +1156,10 @@ export interface BrainEngine {
* doc_comment + symbol_name_qualified + chunk_text), so a page whose
* title tokens are absent from its body is unreachable by searchKeyword.
* This arm queries the PAGE-GRAIN DOCUMENT vector pages.search_vector —
- * NOT titles alone: per pageSearchVectorSql it is title (weight 'A') +
- * the first PAGE_TIMELINE_FTS_MAX_CHARS characters of the sanitized
- * timeline ('C'); compiled_truth is not indexed since v124. Ranked by
- * ts_rank_cd, the 'A'-weighted title dominates, but timeline matches
- * also produce (lower-ranked) candidates. Returns page-grain hits joined to
+ * NOT titles alone: per pageSearchVectorSql it is title ('A') + the
+ * first 65,536 chars of the sanitized timeline ('C'); no compiled_truth
+ * since v124. Ranked by ts_rank_cd, the 'A' title dominates, but
+ * timeline matches also produce (lower-ranked) candidates. Returns page-grain hits joined to
* ONE representative chunk per page (compiled_truth preferred, else
* lowest chunk_index) so rows are shaped like searchKeyword's output and
* can enter RRF fusion in hybridSearch.