/** * SynapseManager — orchestrates the post-retrieval pipeline. * * Composes scoring + inhibition + metacognition over a single result set * plus an optional working-memory buffer keyed by session. * * Order matters: * 0) buffer merge — fold prior hot results into the fresh ones (opt-in via session) * 1) attention score — re-rank top-N by multi-signal score (opt-in) * 2) chain inhibition — boost/suppress by memory type for matched intent * 3) diversity penalty — re-rank, deduplicate near-clones * 4) temporal inhibition — penalize fresh-but-irrelevant * 5) confidence gate — drop everything below adaptive threshold * 6) score spectrum — annotate the survivors with metacognition flags * 7) buffer put — record final survivors for the next query in the session */ import type { SearchResult, SynapseRuntimeConfig } from "@massa-th0th/shared"; import type { AgentSession, SynapsePipelineResult } from "./types.js"; export interface ProcessOptions { sessionId?: string; /** Pre-resolved session for async-backed project-search callers. */ session?: AgentSession | null; /** Project boundary used to restrict working-memory candidates. */ projectId?: string; /** Disable both buffer reads and writes for valid unscoped sessions. */ allowBufferInjection?: boolean; now?: number; } export declare class SynapseManager { private readonly config; constructor(config: SynapseRuntimeConfig); isEnabled(): boolean; /** * Run the full post-retrieval pipeline. A session is resolved lazily from * the in-memory SessionRegistry when `sessionId` is provided; otherwise * scoring signals that depend on the session degrade gracefully to 0 * and the buffer is bypassed entirely. */ process(results: SearchResult[], query: string, options?: ProcessOptions): SynapsePipelineResult; } //# sourceMappingURL=synapse-manager.d.ts.map