chore: drop hive-mind provenance notes from comments (P2.2)

Comments that pointed at hive-mind-core files, the hive-mind OSS
mirror and its drift triage now describe the code as it is. The
in-process reranker caches its model in ~/.waggle/models, like the
embedder, when the caller passes no directory; the sidecar always
passes one.
This commit is contained in:
shumeiko.it
2026-11-01 00:42:48 +01:00
parent 613b23be17
commit c098f20872
20 changed files with 30 additions and 73 deletions

View File

@@ -30,8 +30,8 @@
* defaults to estimateStringTokens (no new package deps).
* 2. Compression LLM-call cost → threshold-gated (default 0.7), caller
* chooses summarizationModel, cost telemetry via onCompressionEvent.
* 3. Hive-mind retrieval ↔ Memory Sync Repair conflict → ContextManager
* does NOT touch hive-mind; consumes RetrievalSearchFn abstraction;
* 3. Retrieval ↔ memory store conflict → ContextManager does NOT touch
* the memory store; consumes RetrievalSearchFn abstraction;
* caller wires it to per-task SessionStore (scratch, NOT synced).
* 4. Decision history compression dropping critical decisions → bucket-
* summarize preserves Decision shape; optional archiveDecisionsTo

View File

@@ -160,9 +160,8 @@ export function truncateToTokenBudget(text: string, maxTokens: number): string {
}
// ── Near-duplicate text dedup (for live search snippets) ──────────────────
// Mirrors the trigram-cosine in packages/hive-mind-core/src/harvest/dedup.ts;
// kept local so this module stays a standalone pure utility (the harvest copy
// operates on DistilledKnowledge, not arbitrary result items).
// Trigram cosine similarity, kept local so this module stays a standalone pure
// utility.
function normalizeForTrigram(s: string): string {
return s.toLowerCase().replace(/\s+/g, ' ').trim();