/** * Chain Inhibition — intent-driven boosting and suppression by memory type. * * The existing `Memory.type` field already partitions memories into chains * (decision / pattern / code / conversation / preference / critical). When a * query expresses a clear intent ("why did we decide…", "how do I fix…"), * the matching chain should rise and the unrelated chains should fade — * not be removed (that's the gate's job), just demoted. * * Detection is regex-based and sub-millisecond. No LLM call. * * If a result has no `type` in its metadata, its score is left untouched — * code-search results pass through, only memory-search results are modulated. */ import type { SearchResult } from "@massa-th0th/shared"; import type { ChainBoostMap, QueryIntent } from "../types.js"; export interface ChainInhibitionConfig { enabled: boolean; /** Per-intent multipliers applied to results whose metadata.type matches a chain. */ boosts: Record; } export declare function detectIntent(query: string): QueryIntent; /** * Apply chain-aware multipliers based on detected intent. Results whose * metadata carries no `type` are passed through unchanged. */ export declare function applyChainInhibition(results: SearchResult[], query: string, config: ChainInhibitionConfig): { results: SearchResult[]; intent: QueryIntent; }; /** * Default boost map per intent. 2.0 = strong boost, 0.5 = strong inhibition, * 1.0 = pass-through. Tunable via config. */ export declare const DEFAULT_CHAIN_BOOSTS: Record; //# sourceMappingURL=chain-inhibition.d.ts.map