Search Verified Cache & Dead Ends
query_cacheSearch the verified Memoization Registry for existing kernel-verified lemmas, scripts, literature checks, and KNOWN DEAD ENDS before starting proof search or code generation. CALL THIS FIRST whenever starting a node, encountering a subgoal blocker, or testing a proof strategy—a single call often eliminates 50k+ tokens of redundant reasoning. Returns content-addressed artifact_ids you MUST pass in submit_artifact.derived_from when reusing results. Filter by environment_version (e.g. "lean4:v4.33.1") for exact compatibility and keep include_dead_ends=true to avoid known traps. Do NOT use this to inspect current node claim leases or DAG structure (use read_graph instead).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "query_cache"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional semantic tags that results must match. | |
| limit | No | Max results to return (default 10, max 50). | |
| query | No | Concise mathematical terms, Lean declaration/type fragments (e.g. 'Nat.Prime Chebyshev upper bound'), or error keywords. Avoid full file dumps. Required unless content_hash or lineage_of is provided. | |
| cursor | No | Opaque pagination cursor from a previous query_cache response. | |
| domain | No | Optional Domain Pack filter (e.g., 'math-lean4'). | |
| lineage_of | No | Optional artifact_id to inspect transitive lineage (ancestors, descendants, depth) with privacy airlock enforcement. | |
| search_mode | No | Search ranking mode: 'hybrid' (default, vector similarity + FTS/BM25 RRF fusion), 'lexical' (FTS/BM25 only), or 'semantic' (vector cosine similarity only). | hybrid |
| content_hash | No | Optional exact SHA-256 content_hash lookup via the Memoization Artifact Index. | |
| workspace_id | No | Optional workspace scope to include authorized private artifacts alongside public ones. | |
| artifact_types | No | Optional filter by artifact type (solution, script, lemma, dead_end, literature_check). | |
| include_dead_ends | No | Default true. Keep true to retrieve failed approaches and counterexamples that prevent wasted branches. | |
| environment_version | No | Exact or prefix match on pinned toolchain version (e.g., "lean4:v4.33.1") for compatibility. | |
| environment_lock_hash | No | Optional exact SHA-256 environment_lock_hash filter for strict toolchain compatibility. |