shadowgraph_search
Search decision and attempt records by literal query terms, requiring every term to match, with filters for kind, status, confidence, source class, project, or origin plus paginated completeness data.
Instructions
Find direct content matches for every literal query term. shadowgraph_retrieve adds ordered neighbours; shadowgraph_recall ranks matches; shadowgraph_context prepares a working set. Own-scope read saves nothing; an access key commits a revision and bounded audit. Paginated matches and completeness. "redis timeout" requires both terms, not an exact phrase; empty query applies filters only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Restrict results to decisions or to attempts. A structured filter, never a content match. | |
| limit | No | Maximum items to return, 1-1000; the default is 50 and completeness.limitSource reports which applied. Out of range is rejected, never silently clamped. | |
| query | No | Whitespace-separated terms, matched case-insensitively as substrings against the declared content fields (title, goal, chosen, assumption, evidence, alternative, attempt solution, attempt result, attempt reason, environment). Every term must match something, so more terms narrow the result. Omit to filter without searching. | |
| offset | No | Items to skip before this window. Ordering is total and deterministic, so paging cannot drop or duplicate an item. | |
| status | No | Return only decisions in this lifecycle state. A structured filter, so matching it is never counted as a content match. | |
| grantId | No | Alias for accessId; conflicting identifiers are refused. | |
| project | No | Project or confirmed workspace binding; otherwise origin-only. No identity returns an empty scoped view. | |
| accessId | No | Grant ID, rechecked at use. Widens reads only, never write authority. Presenting an access key commits a revision and bounded operational audit: at most one aggregate per grant, surface, outcome and UTC day. Conflicts with a different grantId are refused. | |
| originId | No | Capture-origin id; with no project the record belongs to it alone. | |
| sourceClass | No | Return only records carrying this claimed origin class. A structured filter, never a content match. | |
| minConfidence | No | Return only decisions whose current confidence is at least this value, 0-1. A structured filter, never a content match. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | The window actually applied to the matching items. | |
| items | Yes | The items in this window, in deterministic order. | |
| completeness | Yes | Declares exactly what this response left out, so a truncated result can never look complete. | |
| readProvenance | No | Original read bounds; reuse intersects these with currently valid authority. |