Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

chore: regen operation manifest, tools-json and export-surface goldens on a clean tree after the #6446 merge (this branch's ops and params over master)

garrytan0212da361549
diff --git a/src/core/operation-manifest.generated.ts b/src/core/operation-manifest.generated.ts
index 477f763714..fc13af36f9 100644
--- a/src/core/operation-manifest.generated.ts
+++ b/src/core/operation-manifest.generated.ts
@@ -14,7 +14,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
"name": "remember",
"idempotent": true,
"outputRedaction": "no_stored_text",
- "description": "MEMORY VERB (v1): save facts with provenance. Set `entity` to the subject or entity recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.",
+ "description": "MEMORY VERB (v1): save facts with provenance. Set `entity` (the subject) or entity recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.",
"params": {
"source_id": {
"type": "string",
@@ -55,15 +55,19 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
},
"provenance": {
"type": "string",
- "description": "Fact source (max 500 chars)."
+ "description": "Source (≤500 chars)."
},
"ttl": {
"type": "string",
- "description": "\"30d\", \"12h\" or ISO 8601; omit = never."
+ "description": "\"30d\", \"12h\" or ISO; omit = never."
+ },
+ "valid_from": {
+ "type": "string",
+ "description": "When true (ISO)."
},
"entity": {
"type": "string",
- "description": "Subject (name or slug)."
+ "description": "Subject name or slug."
},
"infer_entity": {
"type": "boolean",
@@ -941,7 +945,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
"name": "query",
"idempotent": true,
"outputRedaction": "retrieval",
- "description": "Hybrid search plus multi-query expansion for concept or landscape questions (expansion recovers synonym-phrased matches). Still top-K; return_unit returns whole sections or conversations. Lists: list_pages. Exact tokens: `search` is cheaper (no expansion LLM call). Personal: get_recent_salience, find_anomalies; transcripts: `gbrain transcripts recent` on the host. Do NOT assume 'crazy' means impressive (often difficult or emotionally charged). Needs an embedding key (else keyword-only); expansion needs a chat key. fields: \"full\" adds diagnostics.",
+ "description": "Hybrid search plus multi-query expansion for concept/landscape questions (expansion recovers synonym phrasings). Still top-K; return_unit returns whole sections/conversations. Lists: list_pages. Exact tokens: `search` is cheaper (no LLM call). Personal: get_recent_salience, find_anomalies; host transcripts: `gbrain transcripts recent`. Do NOT assume 'crazy' means impressive (often difficult or emotionally charged). Needs an embedding key (else keyword-only); expansion needs a chat key. Fact rows aren't pages: use follow_up. fields: \"full\" adds diagnostics.",
"params": {
"query": {
"type": "string",
@@ -4747,11 +4751,11 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
"params": {
"entity": {
"type": "string",
- "description": "Entity slug; facts about it, newest first."
+ "description": "Entity slug; its facts, newest first."
},
"query": {
"type": "string",
- "description": "Also search pages (results[] arm)."
+ "description": "Also search pages (results[])."
},
"budget_tokens": {
"type": "number",
@@ -4767,23 +4771,23 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
},
"source_id": {
"type": "string",
- "description": "Narrow to one source you may read."
+ "description": "One source you may read."
},
"since": {
"type": "string",
- "description": "Facts since (ISO 8601 or \"8 hours ago\")."
+ "description": "Since (ISO 8601 or \"8 hours ago\")."
},
"session_id": {
"type": "string",
- "description": "Facts captured in this session."
+ "description": "This session's facts."
},
"include_expired": {
"type": "boolean",
- "description": "Include expired facts."
+ "description": "Include expired."
},
"supersessions": {
"type": "boolean",
- "description": "Only the supersession audit log."
+ "description": "Supersession audit log only."
},
"limit": {
"type": "number",
@@ -4795,7 +4799,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
},
"include_pending": {
"type": "boolean",
- "description": "Add pending count."
+ "description": "Pending count."
},
"return_unit": {
"type": "string",
@@ -4806,7 +4810,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
"page",
"auto"
],
- "description": "Evidence unit for results[] (see search)."
+ "description": "results[] evidence unit (see search)."
},
"return_window": {
"type": "number",
@@ -5889,6 +5893,166 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
"scope": "write",
"area": "loops"
},
+ {
+ "name": "questions_pin",
+ "description": "Pin a question: gbrain keeps a cited answer current from your notes and flags sentences whose evidence changed. Idempotent. Pins made over MCP stay inactive (paid refresh) until the owner activates them; returns the first answer when a key and consent exist, else awaiting_refresh with next_action.",
+ "params": {
+ "question": {
+ "type": "string",
+ "description": "The question (omit when passing id)."
+ },
+ "scope": {
+ "type": "object",
+ "description": "Evidence scope; default: the current source.",
+ "properties": {
+ "source": {
+ "type": "string",
+ "description": "Source id."
+ },
+ "slug_prefix": {
+ "type": "string",
+ "description": "Only pages under this prefix, e.g. projects/."
+ },
+ "entity": {
+ "type": "string",
+ "description": "Entity page slug the question is about."
+ }
+ }
+ },
+ "id": {
+ "type": "string",
+ "description": "Existing pin id: re-pin or (owner, on the host) activate it."
+ },
+ "defer": {
+ "type": "boolean",
+ "description": "Skip the first answer."
+ },
+ "wait_ms": {
+ "type": "number",
+ "description": "Max ms to wait for the answer (pin default 30000, refresh 120000; max 300000)."
+ },
+ "publish": {
+ "type": "boolean",
+ "description": "Owner only: publish a draft-only pin."
+ }
+ },
+ "mutating": true,
+ "writeInference": "explicit_llm",
+ "idempotent": true,
+ "scope": "write",
+ "outputRedaction": {
+ "exempt": "owner-private pinned-question receipts: every questions_* op refuses callers that cannot read private pages"
+ },
+ "annotations": {
+ "title": "questions_pin",
+ "idempotentHint": true
+ },
+ "area": "questions"
+ },
+ {
+ "name": "questions_list",
+ "description": "List pinned questions with freshness, blocked reason and next action, plus fresh/stale/pending counts. Owner-capable connections only.",
+ "params": {
+ "source": {
+ "type": "string",
+ "description": "Only this source."
+ },
+ "include_archived": {
+ "type": "boolean",
+ "description": "Include unpinned (archived) questions."
+ }
+ },
+ "mutating": false,
+ "idempotent": true,
+ "scope": "read",
+ "outputRedaction": {
+ "exempt": "owner-private pinned-question receipts: every questions_* op refuses callers that cannot read private pages"
+ },
+ "annotations": {
+ "title": "questions_list",
+ "readOnlyHint": true
+ },
+ "area": "questions"
+ },
+ {
+ "name": "questions_status",
+ "description": "One pinned question: the answer with per-sentence stale flags, evidence watermark, last refresh, blocked reason, next action and verify step. Owner-capable connections only.",
+ "params": {
+ "id": {
+ "type": "string",
+ "required": true,
+ "description": "Source-qualified id from questions_list, e.g. default:questions/<slug>."
+ },
+ "include_answer": {
+ "type": "boolean",
+ "description": "Include answer sentences (default true)."
+ }
+ },
+ "mutating": false,
+ "idempotent": true,
+ "scope": "read",
+ "outputRedaction": {
+ "exempt": "owner-private pinned-question receipts: every questions_* op refuses callers that cannot read private pages"
+ },
+ "annotations": {
+ "title": "questions_status",
+ "readOnlyHint": true
+ },
+ "area": "questions"
+ },
+ {
+ "name": "questions_refresh",
+ "description": "Refresh a pinned answer now (a paid model call): re-retrieves current evidence and edits the answer, or recomputes with full or after deletions. A failed refresh keeps the previous answer with its stale flags.",
+ "params": {
+ "id": {
+ "type": "string",
+ "required": true,
+ "description": "Source-qualified id from questions_list, e.g. default:questions/<slug>."
+ },
+ "full": {
+ "type": "boolean",
+ "description": "Recompute from scratch."
+ },
+ "wait_ms": {
+ "type": "number",
+ "description": "Max ms to wait for the answer (pin default 30000, refresh 120000; max 300000)."
+ }
+ },
+ "mutating": true,
+ "writeInference": "explicit_llm",
+ "idempotent": false,
+ "scope": "write",
+ "outputRedaction": {
+ "exempt": "owner-private pinned-question receipts: every questions_* op refuses callers that cannot read private pages"
+ },
+ "annotations": {
+ "title": "questions_refresh"
+ },
+ "area": "questions"
+ },
+ {
+ "name": "questions_unpin",
+ "description": "Unpin a question: refreshes stop and its page is archived (your notes on it are kept). Idempotent.",
+ "params": {
+ "id": {
+ "type": "string",
+ "required": true,
+ "description": "Source-qualified id from questions_list, e.g. default:questions/<slug>."
+ }
+ },
+ "mutating": true,
+ "writeInference": "none",
+ "idempotent": true,
+ "scope": "write",
+ "outputRedaction": {
+ "exempt": "owner-private pinned-question receipts: every questions_* op refuses callers that cannot read private pages"
+ },
+ "annotations": {
+ "title": "questions_unpin",
+ "idempotentHint": true
+ },
+ "area": "questions"
+ },
{
"name": "mute_notice",
"mutating": true,
diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.json
index ecd73ad9ec..ee35c46262 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": 222268,
- "stdoutSha256": "c5f3afd4f6382a87d9d982ec0927d334dc01ca55e4d5eb8f99ed590e8b0cc704",
+ "stdoutBytes": 227660,
+ "stdoutSha256": "716d34d1631deaa332efde821bf03ccf0e318b0843e003260d6c6b3135c6cdee",
"toolNames": [
"remember",
"entity",
@@ -169,11 +169,16 @@
"loops_close",
"loops_mute",
"loops_unmute",
+ "questions_pin",
+ "questions_list",
+ "questions_status",
+ "questions_refresh",
+ "questions_unpin",
"mute_notice"
],
"tools": [
{
- "description": "MEMORY VERB (v1): save facts with provenance. Set `entity` to the subject or entity recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.",
+ "description": "MEMORY VERB (v1): save facts with provenance. Set `entity` (the subject) or entity recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.",
"idempotent": true,
"local_only": false,
"mutating": true,
@@ -192,6 +197,7 @@
"request_id": "string?",
"source_id": "string?",
"ttl": "string?",
+ "valid_from": "string?",
"visibility": "string?"
},
"required_scopes": [],
@@ -207,7 +213,7 @@
"type": "string"
},
"entity": {
- "description": "Subject (name or slug).",
+ "description": "Subject name or slug.",
"type": "string"
},
"expected_revision": {
@@ -245,7 +251,7 @@
"type": "string"
},
"provenance": {
- "description": "Fact source (max 500 chars).",
+ "description": "Source (≤500 chars).",
"type": "string"
},
"replaces": {
@@ -261,7 +267,11 @@
"type": "string"
},
"ttl": {
- "description": "\"30d\", \"12h\" or ISO 8601; omit = never.",
+ "description": "\"30d\", \"12h\" or ISO; omit = never.",
+ "type": "string"
+ },
+ "valid_from": {
+ "description": "When true (ISO).",
"type": "string"
},
"visibility": {
@@ -1202,7 +1212,7 @@
"scope": "read"
},
{
- "description": "Hybrid search plus multi-query expansion for concept or landscape questions (expansion recovers synonym-phrased matches). Still top-K; return_unit returns whole sections or conversations. Lists: list_pages. Exact tokens: `search` is cheaper (no expansion LLM call). Personal: get_recent_salience, find_anomalies; transcripts: `gbrain transcripts recent` on the host. Do NOT assume 'crazy' means impressive (often difficult or emotionally charged). Needs an embedding key (else keyword-only); expansion needs a chat key. fields: \"full\" adds diagnostics.",
+ "description": "Hybrid search plus multi-query expansion for concept/landscape questions (expansion recovers synonym phrasings). Still top-K; return_unit returns whole sections/conversations. Lists: list_pages. Exact tokens: `search` is cheaper (no LLM call). Personal: get_recent_salience, find_anomalies; host transcripts: `gbrain transcripts recent`. Do NOT assume 'crazy' means impressive (often difficult or emotionally charged). Needs an embedding key (else keyword-only); expansion needs a chat key. Fact rows aren't pages: use follow_up. fields: \"full\" adds diagnostics.",
"idempotent": true,
"local_only": false,
"mutating": false,
@@ -5678,7 +5688,7 @@
"type": "number"
},
"entity": {
- "description": "Entity slug; facts about it, newest first.",
+ "description": "Entity slug; its facts, newest first.",
"type": "string"
},
"grep": {
@@ -5686,11 +5696,11 @@
"type": "string"
},
"include_expired": {
- "description": "Include expired facts.",
+ "description": "Include expired.",
"type": "boolean"
},
"include_pending": {
- "description": "Add pending count.",
+ "description": "Pending count.",
"type": "boolean"
},
"limit": {
@@ -5710,11 +5720,11 @@
"type": "string"
},
"query": {
- "description": "Also search pages (results[] arm).",
+ "description": "Also search pages (results[]).",
"type": "string"
},
"return_unit": {
- "description": "Evidence unit for results[] (see search).",
+ "description": "results[] evidence unit (see search).",
"enum": [
"chunk",
"window",
@@ -5729,19 +5739,19 @@
"type": "number"
},
"session_id": {
- "description": "Facts captured in this session.",
+ "description": "This session's facts.",
"type": "string"
},
"since": {
- "description": "Facts since (ISO 8601 or \"8 hours ago\").",
+ "description": "Since (ISO 8601 or \"8 hours ago\").",
"type": "string"
},
"source_id": {
- "description": "Narrow to one source you may read.",
+ "description": "One source you may read.",
"type": "string"
},
"supersessions": {
- "description": "Only the supersession audit log.",
+ "description": "Supersession audit log only.",
"type": "boolean"
}
},
@@ -7003,6 +7013,183 @@
},
"scope": "write"
},
+ {
+ "description": "Pin a question: gbrain keeps a cited answer current from your notes and flags sentences whose evidence changed. Idempotent. Pins made over MCP stay inactive (paid refresh) until the owner activates them; returns the first answer when a key and consent exist, else awaiting_refresh with next_action.",
+ "idempotent": true,
+ "local_only": false,
+ "mutating": true,
+ "name": "questions_pin",
+ "parameters": {
+ "defer": "boolean?",
+ "id": "string?",
+ "publish": "boolean?",
+ "question": "string?",
+ "scope": "object?",
+ "wait_ms": "number?"
+ },
+ "required_scopes": [],
+ "schema": {
+ "properties": {
+ "defer": {
+ "description": "Skip the first answer.",
+ "type": "boolean"
+ },
+ "id": {
+ "description": "Existing pin id: re-pin or (owner, on the host) activate it.",
+ "type": "string"
+ },
+ "publish": {
+ "description": "Owner only: publish a draft-only pin.",
+ "type": "boolean"
+ },
+ "question": {
+ "description": "The question (omit when passing id).",
+ "type": "string"
+ },
+ "scope": {
+ "additionalProperties": false,
+ "description": "Evidence scope; default: the current source.",
+ "properties": {
+ "entity": {
+ "description": "Entity page slug the question is about.",
+ "type": "string"
+ },
+ "slug_prefix": {
+ "description": "Only pages under this prefix, e.g. projects/.",
+ "type": "string"
+ },
+ "source": {
+ "description": "Source id.",
+ "type": "string"
+ }
+ },
+ "required": [],
+ "type": "object"
+ },
+ "wait_ms": {
+ "description": "Max ms to wait for the answer (pin default 30000, refresh 120000; max 300000).",
+ "type": "number"
+ }
+ },
+ "required": [],
+ "type": "object"
+ },
+ "scope": "write"
+ },
+ {
+ "description": "List pinned questions with freshness, blocked reason and next action, plus fresh/stale/pending counts. Owner-capable connections only.",
+ "idempotent": true,
+ "local_only": false,
+ "mutating": false,
+ "name": "questions_list",
+ "parameters": {
+ "include_archived": "boolean?",
+ "source": "string?"
+ },
+ "required_scopes": [],
+ "schema": {
+ "properties": {
+ "include_archived": {
+ "description": "Include unpinned (archived) questions.",
+ "type": "boolean"
+ },
+ "source": {
+ "description": "Only this source.",
+ "type": "string"
+ }
+ },
+ "required": [],
+ "type": "object"
+ },
+ "scope": "read"
+ },
+ {
+ "description": "One pinned question: the answer with per-sentence stale flags, evidence watermark, last refresh, blocked reason, next action and verify step. Owner-capable connections only.",
+ "idempotent": true,
+ "local_only": false,
+ "mutating": false,
+ "name": "questions_status",
+ "parameters": {
+ "id": "string",
+ "include_answer": "boolean?"
+ },
+ "required_scopes": [],
+ "schema": {
+ "properties": {
+ "id": {
+ "description": "Source-qualified id from questions_list, e.g. default:questions/<slug>.",
+ "type": "string"
+ },
+ "include_answer": {
+ "description": "Include answer sentences (default true).",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ },
+ "scope": "read"
+ },
+ {
+ "description": "Refresh a pinned answer now (a paid model call): re-retrieves current evidence and edits the answer, or recomputes with full or after deletions. A failed refresh keeps the previous answer with its stale flags.",
+ "idempotent": false,
+ "local_only": false,
+ "mutating": true,
+ "name": "questions_refresh",
+ "parameters": {
+ "full": "boolean?",
+ "id": "string",
+ "wait_ms": "number?"
+ },
+ "required_scopes": [],
+ "schema": {
+ "properties": {
+ "full": {
+ "description": "Recompute from scratch.",
+ "type": "boolean"
+ },
+ "id": {
+ "description": "Source-qualified id from questions_list, e.g. default:questions/<slug>.",
+ "type": "string"
+ },
+ "wait_ms": {
+ "description": "Max ms to wait for the answer (pin default 30000, refresh 120000; max 300000).",
+ "type": "number"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ },
+ "scope": "write"
+ },
+ {
+ "description": "Unpin a question: refreshes stop and its page is archived (your notes on it are kept). Idempotent.",
+ "idempotent": true,
+ "local_only": false,
+ "mutating": true,
+ "name": "questions_unpin",
+ "parameters": {
+ "id": "string"
+ },
+ "required_scopes": [],
+ "schema": {
+ "properties": {
+ "id": {
+ "description": "Source-qualified id from questions_list, e.g. default:questions/<slug>.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ },
+ "scope": "write"
+ },
{
"description": "Stop a coaching or info notice (or first_run_decisions) from appearing for this client; muted: false unmutes.",
"idempotent": true,
diff --git a/test/fixtures/goldens/exports/types.json b/test/fixtures/goldens/exports/types.json
index 69d634fa0c..21b4d366b8 100644
--- a/test/fixtures/goldens/exports/types.json
+++ b/test/fixtures/goldens/exports/types.json
@@ -84,7 +84,7 @@
"expireFact: (id: number, opts?: { supersededBy?: number; at?: Date; }) => Promise<boolean>",
"findAnomalies: (opts: AnomaliesOpts) => Promise<AnomalyResult[]>",
"findByTitleFuzzy: (name: string, dirPrefix?: string, minSimilarity?: number, sourceId?: string) => Promise<{ slug: string; similarity: number; } | null>",
- "findCandidateDuplicates: (source_id: string, entitySlug: string, factText: string, opts?: { k?: number; embedding?: Float32Array; embeddingModel?: string | null; attributedTo?: FactAttribution | null; }) => Promise<FactRow[]>",
+ "findCandidateDuplicates: (source_id: string, entitySlug: string, factText: string, opts?: { k?: number; embedding?: Float32Array; embeddingModel?: string | null; arm?: \"keyword\"; attributedTo?: FactAttribution | null; }) => Promise<FactRow[]>",
"findDuplicatePage?: ((sourceId: string, opts: { hash: string; frontmatterId?: string | null; excludeSlug?: string; }) => Promise<{ slug: string; id: number; } | null>) | undefined",
"findDuplicatePages?: ((sourceId: string, inputs: ReadonlyArray<{ hash: string; frontmatterId?: string | null; excludeSlug?: string; }>) => Promise<Array<{ slug: string; id: number; } | null>>) | undefined",
"findOntologyConflicts: (opts?: PageReadScope & { minConfidence?: number; visibility?: OntologyReadOpts[\"visibility\"]; }) => Promise<OntologyConflict[]>",
@@ -1047,7 +1047,7 @@
"explainVectorSearch: (embedding: Float32Array, opts?: SearchOpts) => Promise<Record<string, unknown>>",
"findAnomalies: (opts: AnomaliesOpts) => Promise<AnomalyResult[]>",
"findByTitleFuzzy: (name: string, dirPrefix?: string, minSimilarity?: number, sourceId?: string) => Promise<{ slug: string; similarity: number; } | null>",
- "findCandidateDuplicates: (source_id: string, entitySlug: string, factText: string, opts?: { k?: number; embedding?: Float32Array; embeddingModel?: string | null; attributedTo?: FactAttribution | null; }) => Promise<FactRow[]>",
+ "findCandidateDuplicates: (source_id: string, entitySlug: string, factText: string, opts?: { k?: number; embedding?: Float32Array; embeddingModel?: string | null; arm?: \"keyword\"; attributedTo?: FactAttribution | null; }) => Promise<FactRow[]>",
"findDuplicatePage: (sourceId: string, opts: { hash: string; frontmatterId?: string | null; excludeSlug?: string; }) => Promise<{ slug: string; id: number; } | null>",
"findDuplicatePages: (sourceId: string, inputs: Parameters<typeof findDuplicatePages>[2]) => Promise<({ slug: string; id: number; } | null)[]>",
"findOntologyConflicts: (opts?: PageReadScope & { minConfidence?: number; visibility?: OntologyReadOpts[\"visibility\"]; }) => Promise<OntologyConflict[]>",
@@ -1427,10 +1427,14 @@
"delivered?: DeliveredEvidence | undefined",
"effective_date?: string | null | undefined",
"effective_date_source?: string | null | undefined",
+ "entity_anchored?: \"entity\" | \"linked\" | undefined",
"evidence?: Evidence | undefined",
"exact_lookup?: \"title\" | \"slug\" | undefined",
"exact_match_boost?: number | undefined",
+ "fact_id?: string | undefined",
+ "fact_row?: { id: number; valid_from: string; valid_until: string | null; } | undefined",
"feedback_boost?: number | undefined",
+ "follow_up?: { op: \"recall\"; args: Record<string, string>; } | undefined",
"graph_adjacency_boost?: number | undefined",
"graph_adjacency_hits?: number | undefined",
"graph_cross_source_boost?: number | undefined",
@@ -1445,6 +1449,7 @@
"modality?: \"image\" | \"text\" | undefined",
"origin?: string | undefined",
"page_id: number",
+ "page_slug?: string | undefined",
"recency_boost?: number | undefined",
"relational?: RelationalEvidence | undefined",
"relational_hop?: number | undefined",
@@ -1456,6 +1461,7 @@
"rerank_score?: number | undefined",
"rerank_score_kind?: \"rubric\" | undefined",
"reranker_delta?: number | undefined",
+ "result_type?: \"fact\" | undefined",
"rrf?: RrfAttribution | undefined",
"salience_boost?: number | undefined",
"score: number",
@@ -1469,6 +1475,7 @@
"supersede_penalty?: number | undefined",
"superseded?: boolean | undefined",
"superseded_by?: string | undefined",
+ "superseded_claim?: { fact_id: number; valid_from: string; } | undefined",
"thread_id?: string | undefined",
"title: string",
"title_match_boost?: number | undefined",
@@ -2334,7 +2341,7 @@
"kind": "function",
"name": "resolveNativeBaseUrl",
"signature": [
- "(provider: \"anthropic\" | \"openai\", cfg: AIGatewayConfig) => string | undefined"
+ "(provider: \"anthropic\" | \"openai\" | \"google\", cfg: AIGatewayConfig) => string | undefined"
]
},
{
@@ -3273,7 +3280,7 @@
"expireFact: (id: number, opts?: { supersededBy?: number; at?: Date; }) => Promise<boolean>",
"findAnomalies: (opts: AnomaliesOpts) => Promise<AnomalyResult[]>",
"findByTitleFuzzy: (name: string, dirPrefix?: string, minSimilarity?: number, sourceId?: string) => Promise<{ slug: string; similarity: number; } | null>",
- "findCandidateDuplicates: (source_id: string, entitySlug: string, factText: string, opts?: { k?: number; embedding?: Float32Array; embeddingModel?: string | null; attributedTo?: FactAttribution | null; }) => Promise<FactRow[]>",
+ "findCandidateDuplicates: (source_id: string, entitySlug: string, factText: string, opts?: { k?: number; embedding?: Float32Array; embeddingModel?: string | null; arm?: \"keyword\"; attributedTo?: FactAttribution | null; }) => Promise<FactRow[]>",
"findDuplicatePage?: ((sourceId: string, opts: { hash: string; frontmatterId?: string | null; excludeSlug?: string; }) => Promise<{ slug: string; id: number; } | null>) | undefined",
"findDuplicatePages?: ((sourceId: string, inputs: ReadonlyArray<{ hash: string; frontmatterId?: string | null; excludeSlug?: string; }>) => Promise<Array<{ slug: string; id: number; } | null>>) | undefined",
"findOntologyConflicts: (opts?: PageReadScope & { minConfidence?: number; visibility?: OntologyReadOpts[\"visibility\"]; }) => Promise<OntologyConflict[]>",
@@ -3497,7 +3504,7 @@
"kind": "type",
"name": "FactKind",
"signature": [
- "\"event\" | \"preference\" | \"commitment\" | \"belief\" | \"fact\" | \"idea\""
+ "\"fact\" | \"event\" | \"preference\" | \"commitment\" | \"belief\" | \"idea\""
]
},
{
@@ -6032,7 +6039,7 @@
{
"kind": "class",
"members": [
- "canonical?: \"unknown\" | \"keyword_candidates_incomplete\" | \"projection_pending\" | \"timeout\" | \"embedding_disabled\" | \"writer_lock_unavailable\" | \"writer_pool_capacity\" | \"owner_unavailable\" | \"recovery_required\" | \"queue_capacity\" | \"revision_required\" | \"revision_conflict\" | \"idempotency_conflict\" | \"source_changed\" | \"write_pending\" | \"storage_error\" | \"cancelled\" | \"permission_denied\" | \"scope_denied\" | \"invalid_params\" | \"not_found\" | \"page_not_found\" | \"page_identity_changed\" | \"write_claim_lost\" | \"request_too_large\" | \"response_too_large\" | \"writer_registration_required\" | \"writer_identity_invalid\" | \"writer_not_initialized\" | \"writer_coordinator_required\" | \"fact_already_expired\" | \"source_writeback_required\" | \"unsupported_mutation_protocol\" | \"writer_upgrade_required\" | \"writer_not_quiesced\" | \"skill_bundle_required\" | \"take_row_collision\" | \"invalid_source_uri\" | \"writer_admin_locked\" | \"connector_account_changed\" | \"connector_intent_outdated\" | \"checkpoint_validation_timeout\" | \"invalid_connector_text\" | \"connector_holds_exhausted\" | \"connector_fence_below_timeline\" | \"core_budget_exceeded\" | \"core_mark_owner_only\" | \"core_remote_edit_refused\" | \"core_delete_owner_only\" | \"timeline_rows_would_be_removed\" | \"purged_content\" | \"preparation_stalled\" | \"fence_unrenderable\" | \"write_outcome_unknown\" | \"embedding_failed\" | \"bucket_not_found\" | \"database_error\" | \"unknown_transport\" | \"rate_limited\" | \"extraction_failed\" | \"fact_not_found\" | \"provenance_required\" | \"unavailable\" | \"budget_unsatisfiable\" | \"embedding_budget_below_worst_case\" | \"access_command_failed\" | \"access_denied_test_user\" | \"access_env_missing\" | \"acknowledgment_unavailable\" | \"admin_policy_enforced\" | \"ambient_capture_off\" | \"ambiguous_id\" | \"ambiguous_ref\" | \"ambiguous_skill\" | \"answer_not_yours\" | \"answer_pending\" | \"answer_unavailable\" | \"api_not_enabled\" | \"approval_required\" | \"autopilot_job_owned_by_other_brain\" | \"budget_below_recent_runtime\" | \"benchmark_duplicate_task_id\" | \"benchmark_empty\" | \"benchmark_exists\" | \"benchmark_judge_llm_no_rubric\" | \"benchmark_judge_qrels_no_expected\" | \"benchmark_judge_rule_no_checks\" | \"benchmark_judge_unknown_kind\" | \"benchmark_malformed\" | \"benchmark_missing_judge\" | \"benchmark_missing_task\" | \"benchmark_missing_task_id\" | \"benchmark_not_found\" | \"benchmark_rule_check_bad_arg\" | \"benchmark_rule_check_malformed\" | \"benchmark_rule_check_unknown_op\" | \"bootstrap_empty\" | \"bootstrap_pending_review\" | \"bridge_ownership_conflict\" | \"cache_quota_exceeded\" | \"catalog_capacity_exceeded\" | \"catalog_unavailable\" | \"changed_since_preview\" | \"chronicle_skipped\" | \"no_pricing\" | \"checkpoint_missing\" | \"claim_already_used\" | \"client_json_unreadable\" | \"client_json_wrong_type\" | \"client_shape_invalid\" | \"code_callees_requires_symbol\" | \"code_callers_requires_symbol\" | \"code_def_requires_symbol\" | \"code_refs_requires_symbol\" | \"code_reused\" | \"colon_slug_windows_write_through\" | \"command_failed\" | \"concurrent_write\" | \"config_error\" | \"confirmation_required\" | \"conflicting_source_scope\" | \"connection_lost\" | \"consent_required\" | \"consent_timeout\" | \"consumers_without_heartbeat\" | \"content_repair_needs_human\" | \"content_rejected\" | \"cost_cap_exceeded\" | \"cost_preview_requires_yes\" | \"cycle_failed\" | \"d_sel_too_small\" | \"delta_cursor_upgrade_required\" | \"demo_graph_failed\" | \"demo_import_failed\" | \"demo_verification_failed\" | \"derived_cap_exhausted\" | \"destination_not_ready\" | \"drain_stalled\" | \"managed_sync_not_moving\" | \"dream_breaker_tripped\" | \"dirty_tree\" | \"effect_not_failed\" | \"embedding_auth_failed\" | \"embedding_configuration\" | \"embedding_model_mismatch\" | \"embedding_plane_split\" | \"embedding_storage_unavailable\" | \"embedding_unavailable\" | \"embedding_unconfigured\" | \"embedding_width_mismatch\" | \"engine_graduated\" | \"eval_suite_unwired\" | \"export_limit\" | \"extractor_identity_mismatch\" | \"facts_absorb_write_refused\" | \"facts_backstop_skipped\" | \"facts_drain_deferred\" | \"facts_drain_job_failed\" | \"facts_payload_expired\" | \"feedback_disabled\" | \"feedback_not_authorized\" | \"fetch_failed\" | \"fix_not_writable\" | \"file_removed_during_scan\" | \"file_too_large\" | \"follow_approval_required\" | \"forget_requires_owner\" | \"frontmatter_slug_conflict\" | \"full_resync_required\" | \"gate_failed\" | \"git_index_locked\" | \"git_index_stale\" | \"git_push_unavailable\" | \"git_target_unsafe\" | \"git_unavailable\" | \"graduation_drain_timeout\" | \"graduation_embedding_dimension_mismatch\" | \"graduation_foreign_host_binding\" | \"graduation_in_progress\" | \"graduation_interrupted\" | \"graduation_rollback_writes_lost\" | \"graduation_source_writer_held\" | \"graduation_split_brain\" | \"graduation_target_auth_failed\" | \"graduation_target_ddl_unreachable\" | \"graduation_target_not_empty\" | \"graduation_target_unsupported\" | \"graduation_unclassified_table\" | \"graduation_unsupported_platform\" | \"graduation_verify_failed\" | \"graph_incomplete\" | \"host_identity_mismatch\" | \"harness_hook_duplicates\" | \"harness_hook_unowned\" | \"held_failed\" | \"held_out_overlaps_benchmark\" | \"held_out_required_for_bundled\" | \"independent_principal_required\" | \"insufficient_scope\" | \"internal\" | \"internal_error\" | \"interrupted\" | \"invalid_acknowledgment\" | \"invalid_client\" | \"invalid_fence\" | \"unclosed_ambiguous_tail\" | \"tail_exposure_approval\" | \"sync_in_progress\" | \"invalid_frontmatter\" | \"invalid_grant_clock_skew\" | \"invalid_grant_revoked\" | \"invalid_grant_testing_expiry\" | \"invalid_rating\" | \"invalid_receipt\" | \"invalid_receipt_transition\" | \"invalid_request\" | \"invalid_source\" | \"invalid_source_pin\" | \"invalid_token\" | \"invalid_write_wait\" | \"legacy_job_selection_invalid\" | \"legacy_jobs_active\" | \"local_conflict\" | \"lock_busy\" | \"maintenance_backpressure\" | \"maintenance_lock_busy\" | \"merge_recommended\" | \"managed_pull_skipped\" | \"manual_only_skipped\" | \"membership_inactive\" | \"membership_not_found\" | \"method_not_allowed\" | \"migration_lease_lost\" | \"migration_failed\" | \"migrations_pending\" | \"migrations_running\" | \"missing_source_scope\" | \"missing_source_value\" | \"models_strict_violation\" | \"no_refresh_token\" | \"no_routing_eval\" | \"no_skill_md\" | \"no_worker\" | \"no_worker_surface\" | \"not_a_git_repo\" | \"not_connected\" | \"no_brain\" | \"overlapping_path\" | \"page_projection_conflict\" | \"parse_error\" | \"parser_regression\" | \"pasted_wrong_url\" | \"payload_too_large\" | \"pattern_claims_pending\" | \"pending_writes\" | \"persistence_write_stall\" | \"pg_connection_stuck\" | \"pg_pool_stalled\" | \"pg_statement_build_failed\" | \"pglite_busy\" | \"pglite_vector_index_too_large\" | \"plan_output_failed\" | \"plan_stale\" | \"port_in_use\" | \"preview_changed\" | \"profile_incompatible\" | \"projection_owner_resident\" | \"publication_pending\" | \"purge_blocked_pending_recovery\" | \"receipt_conflict\" | \"receipt_fence_changed\" | \"receipt_fence_required\" | \"receipt_identity_mismatch\" | \"redirect_uri_mismatch\" | \"ref_not_in_answer\" | \"refresh_dirty\" | \"refresh_diverged\" | \"refresh_drain_timeout\" | \"refresh_no_upstream\" | \"refresh_not_managed\" | \"refresh_not_owner\" | \"refresh_source_changed\" | \"relay_disabled\" | \"relay_session_expired\" | \"relay_unreachable\" | \"rename_held\" | \"request_already_submitted\" | \"requirements_changed\" | \"requires_local_engine\" | \"resume_spec_mismatch\" | \"revision_unavailable\" | \"scope_missing\" | \"serve_port_in_use\" | \"serve_status_only\" | \"setup_harness_unsupported\" | \"setup_hosted_connection\" | \"setup_owner_conflict\" | \"shared_skills_unavailable\" | \"shared_skills_unsupported\" | \"skill_asset_not_found\" | \"skill_candidate_invalid\" | \"skill_not_found\" | \"skill_retention_capacity\" | \"skill_unavailable\" | \"source_binding_required\" | \"source_id_taken\" | \"source_mismatch\" | \"source_not_ready\" | \"source_profile_no_backfill\" | \"source_referenced\" | \"source_root_conflict\" | \"split_bad_ratio\" | \"split_unparseable\" | \"stale_unavailable\" | \"state_mismatch\" | \"sync_not_applicable\" | \"sync_parser_regression\" | \"target_escape\" | \"timeline_comment_markup\" | \"topology_change_required\" | \"transcript_secret_exposure\" | \"triage_unreliable_backoff\" | \"trust_raise_refused\" | \"two_consumers_on_host\" | \"trusted_local_only\" | \"unexpected_file_bytes\" | \"unexpected_staging_bytes\" | \"unknown_command\" | \"unknown_flag\" | \"unknown_method\" | \"unknown_source\" | \"unknown_tool\" | \"unmanaged_path\" | \"unsupported_export_data\" | \"upstream\" | \"verification_failed\" | \"withdrawal_capacity\" | \"withdrawal_provenance\" | \"write_gate_rejected\" | \"write_held\" | \"worktree_dirty\" | \"writer_admin_intent_required\" | \"writer_admin_state_changed\" | \"writer_busy\" | \"writer_identity_publish_failed\" | \"writer_manifest_mismatch\" | \"writer_manifest_rescope_required\" | \"writer_manifest_unsafe\" | \"writer_regrant_required\" | \"writer_transfer_conflict\" | \"writer_transfer_required\" | \"wrong_account_consented\" | undefined",
+ "canonical?: \"unknown\" | \"keyword_candidates_incomplete\" | \"projection_pending\" | \"timeout\" | \"embedding_disabled\" | \"writer_lock_unavailable\" | \"writer_pool_capacity\" | \"owner_unavailable\" | \"recovery_required\" | \"queue_capacity\" | \"revision_required\" | \"revision_conflict\" | \"idempotency_conflict\" | \"source_changed\" | \"write_pending\" | \"storage_error\" | \"cancelled\" | \"permission_denied\" | \"scope_denied\" | \"invalid_params\" | \"not_found\" | \"page_not_found\" | \"page_identity_changed\" | \"write_claim_lost\" | \"request_too_large\" | \"response_too_large\" | \"writer_registration_required\" | \"writer_identity_invalid\" | \"writer_not_initialized\" | \"writer_coordinator_required\" | \"fact_already_expired\" | \"source_writeback_required\" | \"unsupported_mutation_protocol\" | \"writer_upgrade_required\" | \"writer_not_quiesced\" | \"skill_bundle_required\" | \"take_row_collision\" | \"invalid_source_uri\" | \"writer_admin_locked\" | \"connector_account_changed\" | \"connector_intent_outdated\" | \"checkpoint_validation_timeout\" | \"invalid_connector_text\" | \"connector_holds_exhausted\" | \"connector_fence_below_timeline\" | \"core_budget_exceeded\" | \"core_mark_owner_only\" | \"core_remote_edit_refused\" | \"core_delete_owner_only\" | \"timeline_rows_would_be_removed\" | \"purged_content\" | \"preparation_stalled\" | \"fence_unrenderable\" | \"write_outcome_unknown\" | \"embedding_failed\" | \"bucket_not_found\" | \"database_error\" | \"unknown_transport\" | \"rate_limited\" | \"extraction_failed\" | \"fact_not_found\" | \"provenance_required\" | \"unavailable\" | \"budget_unsatisfiable\" | \"embedding_budget_below_worst_case\" | \"access_command_failed\" | \"access_denied_test_user\" | \"access_env_missing\" | \"acknowledgment_unavailable\" | \"admin_policy_enforced\" | \"ambient_capture_off\" | \"ambiguous_id\" | \"ambiguous_ref\" | \"ambiguous_skill\" | \"answer_not_yours\" | \"answer_pending\" | \"answer_unavailable\" | \"api_not_enabled\" | \"approval_required\" | \"autopilot_job_owned_by_other_brain\" | \"budget_below_recent_runtime\" | \"benchmark_duplicate_task_id\" | \"benchmark_empty\" | \"benchmark_exists\" | \"benchmark_judge_llm_no_rubric\" | \"benchmark_judge_qrels_no_expected\" | \"benchmark_judge_rule_no_checks\" | \"benchmark_judge_unknown_kind\" | \"benchmark_malformed\" | \"benchmark_missing_judge\" | \"benchmark_missing_task\" | \"benchmark_missing_task_id\" | \"benchmark_not_found\" | \"benchmark_rule_check_bad_arg\" | \"benchmark_rule_check_malformed\" | \"benchmark_rule_check_unknown_op\" | \"bootstrap_empty\" | \"bootstrap_pending_review\" | \"bridge_ownership_conflict\" | \"cache_quota_exceeded\" | \"catalog_capacity_exceeded\" | \"catalog_unavailable\" | \"changed_since_preview\" | \"chronicle_skipped\" | \"no_pricing\" | \"checkpoint_missing\" | \"claim_already_used\" | \"client_json_unreadable\" | \"client_json_wrong_type\" | \"client_shape_invalid\" | \"code_callees_requires_symbol\" | \"code_callers_requires_symbol\" | \"code_def_requires_symbol\" | \"code_refs_requires_symbol\" | \"code_reused\" | \"colon_slug_windows_write_through\" | \"command_failed\" | \"concurrent_write\" | \"config_error\" | \"confirmation_required\" | \"conflicting_source_scope\" | \"connection_lost\" | \"consent_required\" | \"consent_timeout\" | \"consumers_without_heartbeat\" | \"content_repair_needs_human\" | \"content_rejected\" | \"cost_cap_exceeded\" | \"cost_preview_requires_yes\" | \"cycle_failed\" | \"d_sel_too_small\" | \"delta_cursor_upgrade_required\" | \"demo_graph_failed\" | \"demo_import_failed\" | \"demo_verification_failed\" | \"derived_cap_exhausted\" | \"destination_not_ready\" | \"drain_stalled\" | \"managed_sync_not_moving\" | \"dream_breaker_tripped\" | \"dirty_tree\" | \"effect_not_failed\" | \"embedding_auth_failed\" | \"embedding_configuration\" | \"embedding_model_mismatch\" | \"embedding_plane_split\" | \"embedding_storage_unavailable\" | \"embedding_unavailable\" | \"embedding_unconfigured\" | \"embedding_width_mismatch\" | \"engine_graduated\" | \"eval_suite_unwired\" | \"export_limit\" | \"extractor_identity_mismatch\" | \"facts_absorb_write_refused\" | \"facts_backstop_skipped\" | \"facts_drain_deferred\" | \"facts_drain_job_failed\" | \"facts_payload_expired\" | \"feedback_disabled\" | \"feedback_not_authorized\" | \"fetch_failed\" | \"fix_not_writable\" | \"file_removed_during_scan\" | \"file_too_large\" | \"follow_approval_required\" | \"forget_requires_owner\" | \"frontmatter_slug_conflict\" | \"full_resync_required\" | \"gate_failed\" | \"git_index_locked\" | \"git_index_stale\" | \"git_push_unavailable\" | \"git_target_unsafe\" | \"git_unavailable\" | \"graduation_drain_timeout\" | \"graduation_embedding_dimension_mismatch\" | \"graduation_foreign_host_binding\" | \"graduation_in_progress\" | \"graduation_interrupted\" | \"graduation_rollback_writes_lost\" | \"graduation_source_writer_held\" | \"graduation_split_brain\" | \"graduation_target_auth_failed\" | \"graduation_target_ddl_unreachable\" | \"graduation_target_not_empty\" | \"graduation_target_unsupported\" | \"graduation_unclassified_table\" | \"graduation_unsupported_platform\" | \"graduation_verify_failed\" | \"graph_incomplete\" | \"host_identity_mismatch\" | \"harness_hook_duplicates\" | \"harness_hook_unowned\" | \"held_failed\" | \"held_out_overlaps_benchmark\" | \"held_out_required_for_bundled\" | \"independent_principal_required\" | \"insufficient_scope\" | \"internal\" | \"internal_error\" | \"interrupted\" | \"invalid_acknowledgment\" | \"invalid_client\" | \"invalid_fence\" | \"unclosed_ambiguous_tail\" | \"tail_exposure_approval\" | \"sync_in_progress\" | \"invalid_frontmatter\" | \"invalid_grant_clock_skew\" | \"invalid_grant_revoked\" | \"invalid_grant_testing_expiry\" | \"invalid_rating\" | \"invalid_receipt\" | \"invalid_receipt_transition\" | \"invalid_request\" | \"invalid_source\" | \"invalid_source_pin\" | \"invalid_token\" | \"invalid_write_wait\" | \"legacy_job_selection_invalid\" | \"legacy_jobs_active\" | \"local_conflict\" | \"lock_busy\" | \"maintenance_backpressure\" | \"maintenance_lock_busy\" | \"merge_recommended\" | \"managed_pull_skipped\" | \"manual_only_skipped\" | \"membership_inactive\" | \"membership_not_found\" | \"method_not_allowed\" | \"migration_lease_lost\" | \"migration_failed\" | \"migrations_pending\" | \"migrations_running\" | \"missing_source_scope\" | \"missing_source_value\" | \"models_strict_violation\" | \"no_refresh_token\" | \"no_routing_eval\" | \"no_skill_md\" | \"no_worker\" | \"no_worker_surface\" | \"not_a_git_repo\" | \"not_connected\" | \"no_brain\" | \"overlapping_path\" | \"page_projection_conflict\" | \"parse_error\" | \"parser_regression\" | \"pasted_wrong_url\" | \"payload_too_large\" | \"pattern_claims_pending\" | \"pending_writes\" | \"persistence_write_stall\" | \"pg_connection_stuck\" | \"pg_pool_stalled\" | \"pg_statement_build_failed\" | \"pglite_busy\" | \"pglite_vector_index_too_large\" | \"plan_output_failed\" | \"plan_stale\" | \"port_in_use\" | \"preview_changed\" | \"profile_incompatible\" | \"projection_owner_resident\" | \"publication_pending\" | \"purge_blocked_pending_recovery\" | \"question_not_found\" | \"question_owner_only\" | \"receipt_conflict\" | \"receipt_fence_changed\" | \"receipt_fence_required\" | \"receipt_identity_mismatch\" | \"redirect_uri_mismatch\" | \"ref_not_in_answer\" | \"refresh_dirty\" | \"refresh_diverged\" | \"refresh_drain_timeout\" | \"refresh_no_upstream\" | \"refresh_not_managed\" | \"refresh_not_owner\" | \"refresh_source_changed\" | \"relay_disabled\" | \"relay_session_expired\" | \"relay_unreachable\" | \"rename_held\" | \"request_already_submitted\" | \"requirements_changed\" | \"requires_local_engine\" | \"resume_spec_mismatch\" | \"revision_unavailable\" | \"scope_missing\" | \"serve_port_in_use\" | \"serve_status_only\" | \"setup_harness_unsupported\" | \"setup_hosted_connection\" | \"setup_owner_conflict\" | \"shared_skills_unavailable\" | \"shared_skills_unsupported\" | \"skill_asset_not_found\" | \"skill_candidate_invalid\" | \"skill_not_found\" | \"skill_retention_capacity\" | \"skill_unavailable\" | \"source_binding_required\" | \"source_id_taken\" | \"source_mismatch\" | \"source_not_ready\" | \"source_profile_no_backfill\" | \"source_referenced\" | \"source_root_conflict\" | \"split_bad_ratio\" | \"split_unparseable\" | \"stale_unavailable\" | \"state_mismatch\" | \"sync_not_applicable\" | \"sync_parser_regression\" | \"target_escape\" | \"timeline_comment_markup\" | \"topology_change_required\" | \"transcript_secret_exposure\" | \"triage_unreliable_backoff\" | \"trust_raise_refused\" | \"two_consumers_on_host\" | \"trusted_local_only\" | \"unexpected_file_bytes\" | \"unexpected_staging_bytes\" | \"unknown_command\" | \"unknown_flag\" | \"unknown_method\" | \"unknown_source\" | \"unknown_tool\" | \"unmanaged_path\" | \"unsupported_export_data\" | \"upstream\" | \"verification_failed\" | \"withdrawal_capacity\" | \"withdrawal_provenance\" | \"write_gate_rejected\" | \"write_held\" | \"worktree_dirty\" | \"writer_admin_intent_required\" | \"writer_admin_state_changed\" | \"writer_busy\" | \"writer_identity_publish_failed\" | \"writer_manifest_mismatch\" | \"writer_manifest_rescope_required\" | \"writer_manifest_unsafe\" | \"writer_regrant_required\" | \"writer_transfer_conflict\" | \"writer_transfer_required\" | \"wrong_account_consented\" | undefined",
"canonicalCode: string",
"cause?: unknown",
"code: ErrorCode",
@@ -6268,7 +6275,7 @@
"expireFact: (id: number, opts?: { supersededBy?: number; at?: Date; }) => Promise<boolean>",
"findAnomalies: (opts: AnomaliesOpts) => Promise<AnomalyResult[]>",
"findByTitleFuzzy: (name: string, dirPrefix?: string, minSimilarity?: number, sourceId?: string) => Promise<{ slug: string; similarity: number; } | null>",
- "findCandidateDuplicates: (source_id: string, entitySlug: string, factText: string, opts?: { k?: number; embedding?: Float32Array; embeddingModel?: string | null; attributedTo?: FactAttribution | null; }) => Promise<FactRow[]>",
+ "findCandidateDuplicates: (source_id: string, entitySlug: string, factText: string, opts?: { k?: number; embedding?: Float32Array; embeddingModel?: string | null; arm?: \"keyword\"; attributedTo?: FactAttribution | null; }) => Promise<FactRow[]>",
"findDuplicatePage: (sourceId: string, opts: { hash: string; frontmatterId?: string | null; excludeSlug?: string; }) => Promise<{ slug: string; id: number; } | null>",
"findDuplicatePages: (sourceId: string, inputs: Parameters<typeof pagesImpl.findDuplicatePages>[2]) => Promise<({ slug: string; id: number; } | null)[]>",
"findOntologyConflicts: (opts?: PageReadScope & { minConfidence?: number; visibility?: OntologyReadOpts[\"visibility\"]; }) => Promise<OntologyConflict[]>",
@@ -6776,7 +6783,7 @@
"kind": "type",
"name": "AutoReason",
"signature": [
- "\"conversation_type\" | \"conversation_slug\" | \"not_conversation\" | \"conversation_over_budget\""
+ "\"conversation_type\" | \"conversation_slug\" | \"not_conversation\" | \"conversation_over_budget\" | \"saved_fact\""
]
},
{
@@ -6854,6 +6861,7 @@
"budget_tokens: number",
"budget_used: number",
"coordinates: \"utf16\"",
+ "date_header?: true | undefined",
"dropped: number",
"dropped_reasons: Record<string, number>",
"fallbacks: string[]",
@@ -6918,6 +6926,7 @@
"budgetClamped?: { requested: number; max: number; } | undefined",
"budgetExplicit: boolean",
"budgetTokens: number",
+ "dateHeader?: true | undefined",
"explicitUnit: boolean",
"packing: \"off\" | \"cap_only\" | \"breadth_capped\" | \"depth_first\"",
"requestedUnit: \"auto\" | \"window\" | \"chunk\" | \"section\" | \"page\"",
@@ -7143,6 +7152,13 @@
"(page: { compiled_truth: string; timeline: string; fenceOverlay?: FenceChunkOverlay; }, includeTimeline: boolean) => { text: string; timelineAt: number; }"
]
},
+ {
+ "kind": "function",
+ "name": "pagePlanHits",
+ "signature": [
+ "(plan: EvidencePlan | null) => { limit?: number; autocut?: false; }"
+ ]
+ },
{
"kind": "function",
"name": "parseAutoPacking",
@@ -7281,6 +7297,7 @@
"nearSymbol?: string | undefined",
"offset?: number | undefined",
"onMeta?: ((meta: HybridSearchMeta) => void) | undefined",
+ "onQueryEmbedding?: ((embedding: Float32Array) => void) | undefined",
"onRelationalMeta?: ((meta: RelationalArmMeta) => void) | undefined",
"onRerankPool?: ((pool: readonly SearchResult[], preRerank: readonly SearchResult[]) => void) | undefined",
"onVectorPoolMeta?: ((m: VectorPoolMeta) => void) | undefined",
@@ -8835,10 +8852,14 @@
"delivered?: DeliveredEvidence | undefined",
"effective_date?: string | null | undefined",
"effective_date_source?: string | null | undefined",
+ "entity_anchored?: \"entity\" | \"linked\" | undefined",
"evidence?: Evidence | undefined",
"exact_lookup?: \"title\" | \"slug\" | undefined",
"exact_match_boost?: number | undefined",
+ "fact_id?: string | undefined",
+ "fact_row?: { id: number; valid_from: string; valid_until: string | null; } | undefined",
"feedback_boost?: number | undefined",
+ "follow_up?: { op: \"recall\"; args: Record<string, string>; } | undefined",
"graph_adjacency_boost?: number | undefined",
"graph_adjacency_hits?: number | undefined",
"graph_cross_source_boost?: number | undefined",
@@ -8853,6 +8874,7 @@
"modality?: \"image\" | \"text\" | undefined",
"origin?: string | undefined",
"page_id: number",
+ "page_slug?: string | undefined",
"recency_boost?: number | undefined",
"relational?: RelationalEvidence | undefined",
"relational_hop?: number | undefined",
@@ -8864,6 +8886,7 @@
"rerank_score?: number | undefined",
"rerank_score_kind?: \"rubric\" | undefined",
"reranker_delta?: number | undefined",
+ "result_type?: \"fact\" | undefined",
"rrf?: RrfAttribution | undefined",
"salience_boost?: number | undefined",
"score: number",
@@ -8877,6 +8900,7 @@
"supersede_penalty?: number | undefined",
"superseded?: boolean | undefined",
"superseded_by?: string | undefined",
+ "superseded_claim?: { fact_id: number; valid_from: string; } | undefined",
"thread_id?: string | undefined",
"title: string",
"title_match_boost?: number | undefined",