Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

F2 follow-up: withLongPagePolicy export golden; trim its doc comment to the module ceiling

garrytan9fd28443ed3a
diff --git a/src/core/search/evidence-delivery.ts b/src/core/search/evidence-delivery.ts
index ea0b2b97ea..7185b91d53 100644
--- a/src/core/search/evidence-delivery.ts
+++ b/src/core/search/evidence-delivery.ts
@@ -356,11 +356,9 @@ export function longPageMinCharsValueProblem(value: string): string | null {
}
/**
- * The F2 policy for a search/query call. It applies only under an implied
- * `auto`: no `return_unit` on the call, `search.return_unit` unset or `auto`
- * and no explicit budget (the cap keeps its rules). `snippet_chars` does not
- * turn it off: a widened row (`delivered.reason: 'long_page'`) is exempt from
- * the snippet cap (capDeliveredSnippets), every other row is cut as before.
+ * The F2 policy for a search/query call: only under an implied `auto` (no
+ * `return_unit`, `search.return_unit` unset or `auto`, no explicit budget).
+ * `snippet_chars` leaves it on; capDeliveredSnippets exempts widened rows.
* Read errors and unknown values are `off`; an unusable threshold is the default.
*/
export async function withLongPagePolicy(engine: BrainEngine, plan: EvidencePlan | null): Promise<EvidencePlan | null> {
diff --git a/test/fixtures/goldens/exports/types.json b/test/fixtures/goldens/exports/types.json
index 6f045ec08e..deb060f0e1 100644
--- a/test/fixtures/goldens/exports/types.json
+++ b/test/fixtures/goldens/exports/types.json
@@ -7401,7 +7401,7 @@
"kind": "function",
"name": "withLongPagePolicy",
"signature": [
- "(engine: BrainEngine, plan: EvidencePlan | null, input: { snippetChars: unknown; }) => Promise<EvidencePlan | null>"
+ "(engine: BrainEngine, plan: EvidencePlan | null) => Promise<EvidencePlan | null>"
]
}
],