Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

feat(intelligence): multi-field BM25 + opt-in type penalty (ADR-079, 3.10.19)

ruve6b557cb3a8c
diff --git a/docs/benchmarks/runs/pretrained-retrieval-2026-05-30T18-03-58-818Z.json b/docs/benchmarks/runs/pretrained-retrieval-2026-05-30T18-03-58-818Z.json
new file mode 100644
index 0000000000..897a4e1aac
--- /dev/null
+++ b/docs/benchmarks/runs/pretrained-retrieval-2026-05-30T18-03-58-818Z.json
@@ -0,0 +1,559 @@
+{
+ "runAt": "2026-05-30T18:03:58.818Z",
+ "benchmark": "pretrained-retrieval",
+ "mode": "hybrid",
+ "storeSize": 405,
+ "queries": 10,
+ "matchedQueries": 10,
+ "matchRate": 1,
+ "top1HitRate": 0.8,
+ "top3HitRate": 0.8,
+ "mrr3": 0.8,
+ "top1Diversity": 1,
+ "top3DupRate": 0,
+ "avgQueryLatencyMs": 39,
+ "totalQueryMs": 389.95,
+ "results": [
+ {
+ "query": "how was the Opus model alias fixed",
+ "matched": true,
+ "top1Relevant": true,
+ "top3Relevant": true,
+ "firstRelevantRank": 1,
+ "topK": [
+ {
+ "id": "pattern-1780161237213-1o-860k",
+ "name": "Is Ruflo safe on Claude Opus 4.8? β€” `opus` alias still pins to 4.7, and literal model ids silently d",
+ "type": "history-issue",
+ "score": 0.6843424344550606,
+ "cosineScore": 0.003778643529534665,
+ "bm25Score": 52.76248581807636,
+ "mmrScore": 0.3421712172275303
+ },
+ {
+ "id": "pattern-1780161237205-9-48p8",
+ "name": "chore(release): bump 3.10.10 β†’ 3.10.11 (4-issue bug cluster)",
+ "type": "history-commit",
+ "score": 0.6576965914740391,
+ "cosineScore": 0.11877348981913242,
+ "bm25Score": 15.48528925078474,
+ "mmrScore": 0.32884829573701957
+ },
+ {
+ "id": "pattern-1780161324702-4r-00fd",
+ "name": "feat(graph-intelligence): #2044 ADR-123 Phase 1 β€” ruflo-graph-intelligence plugin foundation",
+ "type": "history-commit",
+ "score": 0.6,
+ "cosineScore": 0.14559488017897365,
+ "bm25Score": 0,
+ "mmrScore": 0.2867919386912716
+ },
+ {
+ "id": "pattern-1780161324689-23-qwbk",
+ "name": "fix(mcp): #2042 β€” agent_execute routes through v3 provider system (Anthropic / OpenRouter / Ollama)",
+ "type": "history-commit",
+ "score": 0.5440218001953627,
+ "cosineScore": 0.1117424282926092,
+ "bm25Score": 2.5551949044789195,
+ "mmrScore": 0.2623230038793827
+ },
+ {
+ "id": "pattern-1780159888525-1n-2zyq",
+ "name": "MCP servers orphan on every Claude Code restart β€” ~1 GB leaked, and a stale server silently serves t",
+ "type": "history-issue",
+ "score": 0.5171795037781899,
+ "cosineScore": 0.10838591586557422,
+ "bm25Score": 0,
+ "mmrScore": 0.24626469580600896
+ }
+ ]
+ },
+ {
+ "query": "self-learning wiring task-completed pretrain",
+ "matched": true,
+ "top1Relevant": true,
+ "top3Relevant": true,
+ "firstRelevantRank": 1,
+ "topK": [
+ {
+ "id": "pattern-1780161237204-4-geaj",
+ "name": "chore(release): bump 3.10.13 β†’ 3.10.14 (ADR-074 self-learning wiring)",
+ "type": "history-commit",
+ "score": 0.7868879273321546,
+ "cosineScore": 0.09545006956277129,
+ "bm25Score": 29.69757361869522,
+ "mmrScore": 0.3934439636660773
+ },
+ {
+ "id": "pattern-1780161237211-1e-nvg1",
+ "name": "Self-learning reports success but persists nothing (3.10.6): signalsProcessed dead, task-completed s",
+ "type": "history-issue",
+ "score": 0.7749415691985588,
+ "cosineScore": 0.04246140228195686,
+ "bm25Score": 38.98867260803925,
+ "mmrScore": 0.3874707845992794
+ },
+ {
+ "id": "pattern-1780161237204-3-zs1a",
+ "name": "Merge fix/self-learning-2245: ADR-074 self-learning wiring (closes #2245)",
+ "type": "history-commit",
+ "score": 0.6782651648993652,
+ "cosineScore": 0.028229282902256594,
+ "bm25Score": 32.37369081625694,
+ "mmrScore": 0.3391325824496826
+ },
+ {
+ "id": "pattern-1780161324693-2x-cca3",
+ "name": "security(neural-trader): #50 β€” supply-chain audit + AIDefence wiring sketch",
+ "type": "history-commit",
+ "score": 0.5892985691116363,
+ "cosineScore": 0.07021253430926652,
+ "bm25Score": 15.41798505000964,
+ "mmrScore": 0.293769534516777
+ },
+ {
+ "id": "pattern-1780161324689-25-5hh2",
+ "name": "chore(release): publish 3.7.0-alpha.77 β€” #2098 #2093 #2085 fixes",
+ "type": "history-commit",
+ "score": 0.6,
+ "cosineScore": 0.15363730484346572,
+ "bm25Score": 0,
+ "mmrScore": 0.2772010768289724
+ }
+ ]
+ },
+ {
+ "query": "deterministic codemod engine var-to-const",
+ "matched": true,
+ "top1Relevant": true,
+ "top3Relevant": true,
+ "firstRelevantRank": 1,
+ "topK": [
+ {
+ "id": "pattern-1780161237206-c-jffq",
+ "name": "Merge feat/deterministic-tier1-codemods: deterministic Tier-1 codemods (ADR-143)",
+ "type": "history-commit",
+ "score": 0.7822169671730534,
+ "cosineScore": 0.040446535166730725,
+ "bm25Score": 21.132606643177507,
+ "mmrScore": 0.3911084835865267
+ },
+ {
+ "id": "pattern-1780161324702-4s-bo8j",
+ "name": "adr: ADR-123 β€” reframe as Graph Intelligence Engine with complexity-aware execution",
+ "type": "history-commit",
+ "score": 0.7548952095098957,
+ "cosineScore": 0.010547052616670351,
+ "bm25Score": 23.516709893998584,
+ "mmrScore": 0.3774476047549479
+ },
+ {
+ "id": "pattern-1780161237208-t-032i",
+ "name": "feat(gaia): #2156 iter 62 β€” convergence layer (deterministic finalization)",
+ "type": "history-commit",
+ "score": 0.7416279634533787,
+ "cosineScore": 0.08054377890438601,
+ "bm25Score": 13.39491158840614,
+ "mmrScore": 0.36529433987906135
+ },
+ {
+ "id": "pattern-1780161237206-b-hgnz",
+ "name": "feat(cost-tracker): wire codemod benchmark into cost-trend (ADR-143 follow-up)",
+ "type": "history-commit",
+ "score": 0.7361441738004573,
+ "cosineScore": 0.008640664241102285,
+ "bm25Score": 22.66873064364153,
+ "mmrScore": 0.3566019025800215
+ },
+ {
+ "id": "pattern-1780161324695-3k-3187",
+ "name": "Merge pull request #2067 from ruvnet/docs/trim-redundant-badges",
+ "type": "history-commit",
+ "score": 0.6,
+ "cosineScore": 0.11852022008519922,
+ "bm25Score": 0,
+ "mmrScore": 0.29966268778718885
+ }
+ ]
+ },
+ {
+ "query": "MCP server orphan leak parent-death",
+ "matched": true,
+ "top1Relevant": true,
+ "top3Relevant": true,
+ "firstRelevantRank": 1,
+ "topK": [
+ {
+ "id": "pattern-1780161237212-1n-sokv",
+ "name": "MCP servers orphan on every Claude Code restart β€” ~1 GB leaked, and a stale server silently serves t",
+ "type": "history-issue",
+ "score": 0.7099856225954626,
+ "cosineScore": -0.005021665326373356,
+ "bm25Score": 41.1539490284551,
+ "mmrScore": 0.3549928112977313
+ },
+ {
+ "id": "pattern-1780161324688-1w-n21p",
+ "name": "perf(guidance): M4 quantization β€” 1-bit RaBitQ-style signatures, 2.7x at N=1000",
+ "type": "history-commit",
+ "score": 0.6,
+ "cosineScore": 0.128886003056017,
+ "bm25Score": 0,
+ "mmrScore": 0.3
+ },
+ {
+ "id": "pattern-1780161324703-54-114j",
+ "name": "feat(browser): #2041 ADR-122 Phase 5 β€” cost-aware routing + GOAP preflight",
+ "type": "history-commit",
+ "score": 0.5946483634011628,
+ "cosineScore": 0.12641500425453153,
+ "bm25Score": 0,
+ "mmrScore": 0.27057137341247245
+ },
+ {
+ "id": "pattern-1780161237206-a-bqc4",
+ "name": "fix(intelligence): 4-issue bug cluster β€” Opus 4.8 + uptime + MCP orphan + Q-encoder",
+ "type": "history-commit",
+ "score": 0.606488726654004,
+ "cosineScore": -0.02824698444563799,
+ "bm25Score": 35.68088593979394,
+ "mmrScore": 0.2674692527177742
+ },
+ {
+ "id": "pattern-1780161324690-27-igfa",
+ "name": "fix(cli,daemon,mcp): #2098 #2093 #2085 β€” three regressions reported on alpha.75",
+ "type": "history-commit",
+ "score": 0.5743673606516337,
+ "cosineScore": 0.06790637329708647,
+ "bm25Score": 10.950628018140954,
+ "mmrScore": 0.262584307711059
+ }
+ ]
+ },
+ {
+ "query": "unified learning stats aggregator",
+ "matched": true,
+ "top1Relevant": true,
+ "top3Relevant": true,
+ "firstRelevantRank": 1,
+ "topK": [
+ {
+ "id": "pattern-1780161221198-1-3ezl",
+ "name": "feat(memory): unified learning-stats aggregator (ADR-075)",
+ "type": "history-commit",
+ "score": 0.6535228171782452,
+ "cosineScore": -0.03179548242068774,
+ "bm25Score": 36.27654115133744,
+ "mmrScore": 0.3267614085891226
+ },
+ {
+ "id": "pattern-1780159888520-q-3lmr",
+ "name": "fix(init): #2206 #2207 #2208 β€” wizard server key, init detector, CLAUDE.md backup (#2214)",
+ "type": "history-commit",
+ "score": 0.5626313450839108,
+ "cosineScore": 0.13624368513537335,
+ "bm25Score": 0,
+ "mmrScore": 0.2813156725419554
+ },
+ {
+ "id": "pattern-1780159888526-1v-6kuu",
+ "name": "bug: flashAttention reports contradictory state across MCP tools (system_info=false vs hooks_intelli",
+ "type": "history-issue",
+ "score": 0.6,
+ "cosineScore": 0.15655822549223372,
+ "bm25Score": 0,
+ "mmrScore": 0.2757020128669746
+ },
+ {
+ "id": "pattern-1780159888525-1o-qiri",
+ "name": "Is Ruflo safe on Claude Opus 4.8? β€” `opus` alias still pins to 4.7, and literal model ids silently d",
+ "type": "history-issue",
+ "score": 0.5092437110657281,
+ "cosineScore": 0.10722082498011774,
+ "bm25Score": 0,
+ "mmrScore": 0.244351825954077
+ },
+ {
+ "id": "pattern-1780159888526-21-8ofz",
+ "name": "[Dream Cycle 2026-05-27] intelligence: SRΒ²AM 8B=120–355B via simulative planning β€” 95% token gap + c",
+ "type": "history-issue",
+ "score": 0.5211702493559724,
+ "cosineScore": 0.1137043910586627,
+ "bm25Score": 0,
+ "mmrScore": 0.2361062427589102
+ }
+ ]
+ },
+ {
+ "query": "structured distillation 4-field schema",
+ "matched": true,
+ "top1Relevant": true,
+ "top3Relevant": true,
+ "firstRelevantRank": 1,
+ "topK": [
+ {
+ "id": "pattern-1780161221198-2-kxx1",
+ "name": "feat(intelligence): structured distillation (ADR-076)",
+ "type": "history-commit",
+ "score": 0.7436629268946584,
+ "cosineScore": 0.01303151951388954,
+ "bm25Score": 48.97742859836614,
+ "mmrScore": 0.3718314634473292
+ },
+ {
+ "id": "pattern-1780159888518-b-vf8y",
+ "name": "Merge feat/deterministic-tier1-codemods: deterministic Tier-1 codemods (ADR-143)",
+ "type": "history-commit",
+ "score": 0.5899985175159177,
+ "cosineScore": 0.11334191563527016,
+ "bm25Score": 0,
+ "mmrScore": 0.29499925875795885
+ },
+ {
+ "id": "pattern-1780161324689-22-p22q",
+ "name": "Merge pull request #2101 from ruvnet/fix/2078-claudemd-coauthor-rule",
+ "type": "history-commit",
+ "score": 0.6,
+ "cosineScore": 0.11741462257643585,
+ "bm25Score": 0,
+ "mmrScore": 0.27832122285750827
+ },
+ {
+ "id": "pattern-1780159888519-h-o34h",
+ "name": "docs: ruflo-workflows v0.4.0 native-Workflow orchestration + ADR-141 (taubench campaign)",
+ "type": "history-commit",
+ "score": 0.574352690368402,
+ "cosineScore": 0.1069707732645887,
+ "bm25Score": 0,
+ "mmrScore": 0.2703441391017582
+ },
+ {
+ "id": "pattern-1780161324698-3w-5c7h",
+ "name": "feat(memory): #2061 ADR-125 Phase 5 β€” graceful retrieval degradation + FTS5 keyword fallback",
+ "type": "history-commit",
+ "score": 0.5750560127842083,
+ "cosineScore": 0.1072571734146955,
+ "bm25Score": 0,
+ "mmrScore": 0.2557069865449775
+ }
+ ]
+ },
+ {
+ "query": "SQL injection migrate.ts table identifier",
+ "matched": true,
+ "top1Relevant": false,
+ "top3Relevant": false,
+ "firstRelevantRank": -1,
+ "topK": [
+ {
+ "id": "pattern-1780161324687-1s-ibq9",
+ "name": "fix(security): patch CVEs, shell injection, SSRF in ruflo (#2114)",
+ "type": "history-commit",
+ "score": 0.6996019746310844,
+ "cosineScore": 0.013552514538906218,
+ "bm25Score": 17.367867382335863,
+ "mmrScore": 0.3498009873155422
+ },
+ {
+ "id": "pattern-1780161324691-2i-tm1b",
+ "name": "Merge pull request #2090 from ruvnet/docs/adr-127-github-stack-modernization",
+ "type": "history-commit",
+ "score": 0.6,
+ "cosineScore": 0.15794464752821977,
+ "bm25Score": 0,
+ "mmrScore": 0.3
+ },
+ {
+ "id": "pattern-1780161324691-2k-8wey",
+ "name": "fix(smoke): #2089 β€” accept E2BIG as valid rejection in github-safe injection smoke",
+ "type": "history-commit",
+ "score": 0.5593090699556125,
+ "cosineScore": -0.03030855555620211,
+ "bm25Score": 15.23843973245108,
+ "mmrScore": 0.2684233177605082
+ },
+ {
+ "id": "pattern-1780161324689-21-o5x6",
+ "name": "fix(smoke): #2042 β€” make providers smoke static-only (no build dependency)",
+ "type": "history-commit",
+ "score": 0.5486082159087727,
+ "cosineScore": 0.13324219046664132,
+ "bm25Score": 0,
+ "mmrScore": 0.25652644260691226
+ },
+ {
+ "id": "pattern-1780161237215-24-4gf9",
+ "name": "[Dream Cycle 2026-05-26] security: Indirect prompt injection critical gap vs OWASP ASI01 + intellige",
+ "type": "history-issue",
+ "score": 0.5022001890508607,
+ "cosineScore": -0.025503342917368558,
+ "bm25Score": 12.3247281700364,
+ "mmrScore": 0.25110009452543036
+ }
+ ]
+ },
+ {
+ "query": "recall@k HNSW benchmark harness",
+ "matched": true,
+ "top1Relevant": true,
+ "top3Relevant": true,
+ "firstRelevantRank": 1,
+ "topK": [
+ {
+ "id": "pattern-1780161324693-2z-5x4a",
+ "name": "feat(neural-trader): #48 β€” benchmark suite (signal, backtest, memory-recall)",
+ "type": "history-commit",
+ "score": 0.8481889920375287,
+ "cosineScore": 0.08967419136034757,
+ "bm25Score": 22.837016720540685,
+ "mmrScore": 0.42409449601876437
+ },
+ {
+ "id": "pattern-1780161324698-3y-v3g2",
+ "name": "feat(memory): #2061 ADR-125 Phase 3 β€” persistent HNSW snapshot + restore",
+ "type": "history-commit",
+ "score": 0.7816240843732197,
+ "cosineScore": 0.08630266804079345,
+ "bm25Score": 19.4293625299739,
+ "mmrScore": 0.3783666186314095
+ },
+ {
+ "id": "pattern-1780161324685-1e-ew7u",
+ "name": "fix(bench): ADR-130 P6 β€” CI-friendly benchmark using single-session inserts",
+ "type": "history-commit",
+ "score": 0.644134271773458,
+ "cosineScore": 0.06474451013559841,
+ "bm25Score": 14.090753442186866,
+ "mmrScore": 0.322067135886729
+ },
+ {
+ "id": "pattern-1780161237210-13-hqcn",
+ "name": "fix(ci): graph benchmark process.exit β€” eliminate 40-min hang (#2148)",
+ "type": "history-commit",
+ "score": 0.6915687768678143,
+ "cosineScore": 0.06790435166188932,
+ "bm25Score": 16.430860426091225,
+ "mmrScore": 0.3211490834156367
+ },
+ {
+ "id": "pattern-1780161324688-1y-hjpj",
+ "name": "perf(guidance): Phase 1 β€” hot-path cleanup + scaling benchmark infrastructure",
+ "type": "history-commit",
+ "score": 0.5897176281398611,
+ "cosineScore": 0.006665289443791871,
+ "bm25Score": 17.748873717210596,
+ "mmrScore": 0.28595434324931074
+ }
+ ]
+ },
+ {
+ "query": "Q-learning encoder keyword block",
+ "matched": true,
+ "top1Relevant": false,
+ "top3Relevant": false,
+ "firstRelevantRank": -1,
+ "topK": [
+ {
+ "id": "pattern-1780161324692-2o-blny",
+ "name": "feat(ci): #2089 ADR-127 Phase 1 β€” github-safe injection smoke + uses: pin smoke + supply-chain allow",
+ "type": "history-commit",
+ "score": 0.6573469618530929,
+ "cosineScore": 0.09696516710558883,
+ "bm25Score": 13.406027352186886,
+ "mmrScore": 0.32867348092654647
+ },
+ {
+ "id": "pattern-1780161237213-1s-xof1",
+ "name": "Statusline shows `RuFlo V3.6` for global npm installs β€” statusline-generator version probe never che",
+ "type": "history-issue",
+ "score": 0.5830575779016265,
+ "cosineScore": 0.10389287629109815,
+ "bm25Score": 2.3193980798828715,
+ "mmrScore": 0.29152878895081324
+ },
+ {
+ "id": "pattern-1780161324690-27-igfa",
+ "name": "fix(cli,daemon,mcp): #2098 #2093 #2085 β€” three regressions reported on alpha.75",
+ "type": "history-commit",
+ "score": 0.5472141937172988,
+ "cosineScore": 0.09568661030559562,
+ "bm25Score": 0,
+ "mmrScore": 0.2736070968586494
+ },
+ {
+ "id": "pattern-1780159888526-1w-jptg",
+ "name": "wizard: unconditional CLAUDE.md overwrite destroys project guidance",
+ "type": "history-issue",
+ "score": 0.5455255717807561,
+ "cosineScore": 0.09488348699864597,
+ "bm25Score": 0,
+ "mmrScore": 0.27276278589037806
+ },
+ {
+ "id": "pattern-1780161324698-3u-c1g1",
+ "name": "chore(release): publish 3.7.0-alpha.71 + @claude-flow/[email protected]",
+ "type": "history-commit",
+ "score": 0.5888669420076869,
+ "cosineScore": 0.10356354291635028,
+ "bm25Score": 3.130639538755832,
+ "mmrScore": 0.2598896467295408
+ }
+ ]
+ },
+ {
+ "query": "security hardening crypto random IDs",
+ "matched": true,
+ "top1Relevant": true,
+ "top3Relevant": true,
+ "firstRelevantRank": 1,
+ "topK": [
+ {
+ "id": "pattern-1780161324699-44-nys5",
+ "name": "chore(release): publish 3.7.0-alpha.70 β€” CWE-347 security fix",
+ "type": "history-commit",
+ "score": 0.7275352672667563,
+ "cosineScore": 0.0679787880690766,
+ "bm25Score": 13.038270620547054,
+ "mmrScore": 0.36376763363337816
+ },
+ {
+ "id": "pattern-1780161324692-2n-9rpj",
+ "name": "feat(security): #2089 ADR-127 Phase 2 β€” github-safe maxBuffer + agent frontmatter tools: + swarm-pr/",
+ "type": "history-commit",
+ "score": 0.6933137366322007,
+ "cosineScore": 0.07733370497882346,
+ "bm25Score": 10.634556165596958,
+ "mmrScore": 0.3466568683161004
+ },
+ {
+ "id": "pattern-1780161324701-4k-s8su",
+ "name": "ci: #2046 supply-chain hardening β€” five-layer audit + dependency review + CODEOWNERS",
+ "type": "history-commit",
+ "score": 0.722022574658173,
+ "cosineScore": 0.02961367472444284,
+ "bm25Score": 16.778051058741422,
+ "mmrScore": 0.3162592205852921
+ },
+ {
+ "id": "pattern-1780161324699-43-nlue",
+ "name": "feat(memory): #2061 ADR-125 Phase 1 β€” MemoryService canonical entry point + deprecate UnifiedMemoryS",
+ "type": "history-commit",
+ "score": 0.6,
+ "cosineScore": 0.14226244116789438,
+ "bm25Score": 0,
+ "mmrScore": 0.3
+ },
+ {
+ "id": "pattern-1780161324703-51-v1b7",
+ "name": "docs(browser): #2041 ADR-122 security audit + substrate benchmarks + announcement draft",
+ "type": "history-commit",
+ "score": 0.6428146834675634,
+ "cosineScore": 0.04934530829645153,
+ "bm25Score": 11.413327801919436,
+ "mmrScore": 0.29180229342714653
+ }
+ ]
+ }
+ ],
+ "passed": true
+}
\ No newline at end of file
diff --git a/docs/benchmarks/runs/pretrained-retrieval-latest.json b/docs/benchmarks/runs/pretrained-retrieval-latest.json
index 9351de2de1..897a4e1aac 100644
--- a/docs/benchmarks/runs/pretrained-retrieval-latest.json
+++ b/docs/benchmarks/runs/pretrained-retrieval-latest.json
@@ -1,44 +1,44 @@
{
- "runAt": "2026-05-30T17:18:50.632Z",
+ "runAt": "2026-05-30T18:03:58.818Z",
"benchmark": "pretrained-retrieval",
"mode": "hybrid",
- "storeSize": 385,
+ "storeSize": 405,
"queries": 10,
"matchedQueries": 10,
"matchRate": 1,
- "top1HitRate": 0.5,
- "top3HitRate": 0.7,
- "mrr3": 0.5833,
- "top1Diversity": 0.8,
+ "top1HitRate": 0.8,
+ "top3HitRate": 0.8,
+ "mrr3": 0.8,
+ "top1Diversity": 1,
"top3DupRate": 0,
- "avgQueryLatencyMs": 40.6,
- "totalQueryMs": 405.98,
+ "avgQueryLatencyMs": 39,
+ "totalQueryMs": 389.95,
"results": [
{
"query": "how was the Opus model alias fixed",
"matched": true,
- "top1Relevant": false,
+ "top1Relevant": true,
"top3Relevant": true,
- "firstRelevantRank": 2,
+ "firstRelevantRank": 1,
"topK": [
{
- "id": "pattern-1780161237205-9-48p8",
- "name": "chore(release): bump 3.10.10 β†’ 3.10.11 (4-issue bug cluster)",
- "type": "history-commit",
- "score": 0.8613360283563845,
- "cosineScore": 0.11877348981913242,
- "bm25Score": 14.747970179516324,
- "mmrScore": 0.4306680141781922
- },
- {
- "id": "pattern-1780159888525-1o-qiri",
+ "id": "pattern-1780161237213-1o-860k",
"name": "Is Ruflo safe on Claude Opus 4.8? β€” `opus` alias still pins to 4.7, and literal model ids silently d",
"type": "history-issue",
"score": 0.6843424344550606,
"cosineScore": 0.003778643529534665,
- "bm25Score": 18.37549252404469,
+ "bm25Score": 52.76248581807636,
"mmrScore": 0.3421712172275303
},
+ {
+ "id": "pattern-1780161237205-9-48p8",
+ "name": "chore(release): bump 3.10.10 β†’ 3.10.11 (4-issue bug cluster)",
+ "type": "history-commit",
+ "score": 0.6576965914740391,
+ "cosineScore": 0.11877348981913242,
+ "bm25Score": 15.48528925078474,
+ "mmrScore": 0.32884829573701957
+ },
{
"id": "pattern-1780161324702-4r-00fd",
"name": "feat(graph-intelligence): #2044 ADR-123 Phase 1 β€” ruflo-graph-intelligence plugin foundation",
@@ -52,19 +52,19 @@
"id": "pattern-1780161324689-23-qwbk",
"name": "fix(mcp): #2042 β€” agent_execute routes through v3 provider system (Anthropic / OpenRouter / Ollama)",
"type": "history-commit",
- "score": 0.5804934595199714,
+ "score": 0.5440218001953627,
"cosineScore": 0.1117424282926092,
- "bm25Score": 2.5653547216178456,
- "mmrScore": 0.28055883354168704
+ "bm25Score": 2.5551949044789195,
+ "mmrScore": 0.2623230038793827
},
{
- "id": "pattern-1780161237206-a-bqc4",
- "name": "fix(intelligence): 4-issue bug cluster β€” Opus 4.8 + uptime + MCP orphan + Q-encoder",
- "type": "history-commit",
- "score": 0.5002402589094885,
- "cosineScore": 0.0020688282745718813,
- "bm25Score": 10.09290314376738,
- "mmrScore": 0.25012012945474427
+ "id": "pattern-1780159888525-1n-2zyq",
+ "name": "MCP servers orphan on every Claude Code restart β€” ~1 GB leaked, and a stale server silently serves t",
+ "type": "history-issue",
+ "score": 0.5171795037781899,
+ "cosineScore": 0.10838591586557422,
+ "bm25Score": 0,
+ "mmrScore": 0.24626469580600896
}
]
},
@@ -76,22 +76,40 @@
"firstRelevantRank": 1,
"topK": [
{
- "id": "pattern-1780158992310-a-1p27",
+ "id": "pattern-1780161237204-4-geaj",
+ "name": "chore(release): bump 3.10.13 β†’ 3.10.14 (ADR-074 self-learning wiring)",
+ "type": "history-commit",
+ "score": 0.7868879273321546,
+ "cosineScore": 0.09545006956277129,
+ "bm25Score": 29.69757361869522,
+ "mmrScore": 0.3934439636660773
+ },
+ {
+ "id": "pattern-1780161237211-1e-nvg1",
"name": "Self-learning reports success but persists nothing (3.10.6): signalsProcessed dead, task-completed s",
"type": "history-issue",
"score": 0.7749415691985588,
"cosineScore": 0.04246140228195686,
- "bm25Score": 18.052348783755328,
+ "bm25Score": 38.98867260803925,
"mmrScore": 0.3874707845992794
},
{
- "id": "pattern-1780158992307-3-p1z2",
- "name": "chore(release): bump 3.10.13 β†’ 3.10.14 (ADR-074 self-learning wiring)",
+ "id": "pattern-1780161237204-3-zs1a",
+ "name": "Merge fix/self-learning-2245: ADR-074 self-learning wiring (closes #2245)",
"type": "history-commit",
- "score": 0.7013997452949954,
- "cosineScore": 0.09545006956277129,
- "bm25Score": 9.89227235345964,
- "mmrScore": 0.3506998726474977
+ "score": 0.6782651648993652,
+ "cosineScore": 0.028229282902256594,
+ "bm25Score": 32.37369081625694,
+ "mmrScore": 0.3391325824496826
+ },
+ {
+ "id": "pattern-1780161324693-2x-cca3",
+ "name": "security(neural-trader): #50 β€” supply-chain audit + AIDefence wiring sketch",
+ "type": "history-commit",
+ "score": 0.5892985691116363,
+ "cosineScore": 0.07021253430926652,
+ "bm25Score": 15.41798505000964,
+ "mmrScore": 0.293769534516777
},
{
"id": "pattern-1780161324689-25-5hh2",
@@ -100,25 +118,7 @@
"score": 0.6,
"cosineScore": 0.15363730484346572,
"bm25Score": 0,
- "mmrScore": 0.3
- },
- {
- "id": "pattern-1780161237204-3-zs1a",
- "name": "Merge fix/self-learning-2245: ADR-074 self-learning wiring (closes #2245)",
- "type": "history-commit",
- "score": 0.5918785037100176,
- "cosineScore": 0.028229282902256594,
- "bm25Score": 11.09080619601972,
- "mmrScore": 0.2731403286839812
- },
- {
- "id": "pattern-1780161324694-3b-h7wi",
- "name": "Merge pull request #2071 from ruvnet/feat/adr-126-phase-4-5-trust-pipeline",
- "type": "history-commit",
- "score": 0.5497170195764974,
- "cosineScore": 0.12879817434673874,
- "bm25Score": 0,
- "mmrScore": 0.252278816949607
+ "mmrScore": 0.2772010768289724
}
]
},
@@ -133,28 +133,37 @@
"id": "pattern-1780161237206-c-jffq",
"name": "Merge feat/deterministic-tier1-codemods: deterministic Tier-1 codemods (ADR-143)",
"type": "history-commit",
- "score": 0.7563913742689558,
+ "score": 0.7822169671730534,
"cosineScore": 0.040446535166730725,
- "bm25Score": 8.478971524833781,
- "mmrScore": 0.3781956871344779
+ "bm25Score": 21.132606643177507,
+ "mmrScore": 0.3911084835865267
+ },
+ {
+ "id": "pattern-1780161324702-4s-bo8j",
+ "name": "adr: ADR-123 β€” reframe as Graph Intelligence Engine with complexity-aware execution",
+ "type": "history-commit",
+ "score": 0.7548952095098957,
+ "cosineScore": 0.010547052616670351,
+ "bm25Score": 23.516709893998584,
+ "mmrScore": 0.3774476047549479
},
{
- "id": "pattern-1780159888520-s-5b5g",
+ "id": "pattern-1780161237208-t-032i",
"name": "feat(gaia): #2156 iter 62 β€” convergence layer (deterministic finalization)",
"type": "history-commit",
- "score": 0.7124892446299289,
+ "score": 0.7416279634533787,
"cosineScore": 0.08054377890438601,
- "bm25Score": 5.049873510910536,
- "mmrScore": 0.35072498046733647
+ "bm25Score": 13.39491158840614,
+ "mmrScore": 0.36529433987906135
},
{
"id": "pattern-1780161237206-b-hgnz",
"name": "feat(cost-tracker): wire codemod benchmark into cost-trend (ADR-143 follow-up)",
"type": "history-commit",
- "score": 0.6666354734387321,
+ "score": 0.7361441738004573,
"cosineScore": 0.008640664241102285,
- "bm25Score": 8.032816557341778,
- "mmrScore": 0.33331773671936604
+ "bm25Score": 22.66873064364153,
+ "mmrScore": 0.3566019025800215
},
{
"id": "pattern-1780161324695-3k-3187",
@@ -164,33 +173,33 @@
"cosineScore": 0.11852022008519922,
"bm25Score": 0,
"mmrScore": 0.29966268778718885
- },
- {
- "id": "pattern-1780161324698-3u-c1g1",
- "name": "chore(release): publish 3.7.0-alpha.71 + @claude-flow/[email protected]",
- "type": "history-commit",
- "score": 0.5970925328149753,
- "cosineScore": 0.11723942732447756,
- "bm25Score": 0,
- "mmrScore": 0.2894676570508941
}
]
},
{
"query": "MCP server orphan leak parent-death",
"matched": true,
- "top1Relevant": false,
+ "top1Relevant": true,
"top3Relevant": true,
- "firstRelevantRank": 3,
+ "firstRelevantRank": 1,
"topK": [
{
- "id": "pattern-1780161237205-9-48p8",
- "name": "chore(release): bump 3.10.10 β†’ 3.10.11 (4-issue bug cluster)",
+ "id": "pattern-1780161237212-1n-sokv",
+ "name": "MCP servers orphan on every Claude Code restart β€” ~1 GB leaked, and a stale server silently serves t",
+ "type": "history-issue",
+ "score": 0.7099856225954626,
+ "cosineScore": -0.005021665326373356,
+ "bm25Score": 41.1539490284551,
+ "mmrScore": 0.3549928112977313
+ },
+ {
+ "id": "pattern-1780161324688-1w-n21p",
+ "name": "perf(guidance): M4 quantization β€” 1-bit RaBitQ-style signatures, 2.7x at N=1000",
"type": "history-commit",
- "score": 0.7581882286396684,
- "cosineScore": 0.017234812587240394,
- "bm25Score": 20.48711361088179,
- "mmrScore": 0.3790941143198342
+ "score": 0.6,
+ "cosineScore": 0.128886003056017,
+ "bm25Score": 0,
+ "mmrScore": 0.3
},
{
"id": "pattern-1780161324703-54-114j",
@@ -199,34 +208,25 @@
"score": 0.5946483634011628,
"cosineScore": 0.12641500425453153,
"bm25Score": 0,
- "mmrScore": 0.2973241817005814
- },
- {
- "id": "pattern-1780161237212-1n-sokv",
- "name": "MCP servers orphan on every Claude Code restart β€” ~1 GB leaked, and a stale server silently serves t",
- "type": "history-issue",
- "score": 0.6188847204623305,
- "cosineScore": -0.005021665326373356,
- "bm25Score": 15.821127280743537,
- "mmrScore": 0.2826895519430563
+ "mmrScore": 0.27057137341247245
},
{
- "id": "pattern-1780159888524-18-ks7x",
- "name": "feat(ci): #2132 β€” cross-platform audit for plugin hooks.json commands",
+ "id": "pattern-1780161237206-a-bqc4",
+ "name": "fix(intelligence): 4-issue bug cluster β€” Opus 4.8 + uptime + MCP orphan + Q-encoder",
"type": "history-commit",
- "score": 0.5918790559890619,
- "cosineScore": 0.12513633834180263,
- "bm25Score": 0,
- "mmrScore": 0.2757305090107404
+ "score": 0.606488726654004,
+ "cosineScore": -0.02824698444563799,
+ "bm25Score": 35.68088593979394,
+ "mmrScore": 0.2674692527177742
},
{
- "id": "pattern-1780161324688-1w-n21p",
- "name": "perf(guidance): M4 quantization β€” 1-bit RaBitQ-style signatures, 2.7x at N=1000",
+ "id": "pattern-1780161324690-27-igfa",
+ "name": "fix(cli,daemon,mcp): #2098 #2093 #2085 β€” three regressions reported on alpha.75",
"type": "history-commit",
- "score": 0.6,
- "cosineScore": 0.128886003056017,
- "bm25Score": 0,
- "mmrScore": 0.25419649306537573
+ "score": 0.5743673606516337,
+ "cosineScore": 0.06790637329708647,
+ "bm25Score": 10.950628018140954,
+ "mmrScore": 0.262584307711059
}
]
},
@@ -238,22 +238,22 @@
"firstRelevantRank": 1,
"topK": [
{
- "id": "pattern-1780160010139-1-tp0d",
+ "id": "pattern-1780161221198-1-3ezl",
"name": "feat(memory): unified learning-stats aggregator (ADR-075)",
"type": "history-commit",
"score": 0.6535228171782452,
"cosineScore": -0.03179548242068774,
- "bm25Score": 13.229926107641308,
+ "bm25Score": 36.27654115133744,
"mmrScore": 0.3267614085891226
},
{
- "id": "pattern-1780158992306-1-jwma",
- "name": "feat(intelligence): unified learning-stats aggregator (ADR-075, #2245 follow-up)",
+ "id": "pattern-1780159888520-q-3lmr",
+ "name": "fix(init): #2206 #2207 #2208 β€” wizard server key, init detector, CLAUDE.md backup (#2214)",
"type": "history-commit",
- "score": 0.5893416797764868,
- "cosineScore": -0.06202219389140224,
- "bm25Score": 12.946176756248445,
- "mmrScore": 0.2946708398882434
+ "score": 0.5626313450839108,
+ "cosineScore": 0.13624368513537335,
+ "bm25Score": 0,
+ "mmrScore": 0.2813156725419554
},
{
"id": "pattern-1780159888526-1v-6kuu",
@@ -265,22 +265,22 @@
"mmrScore": 0.2757020128669746
},
{
- "id": "pattern-1780161237203-0-z767",
- "name": "feat(intelligence): pretrain self-learning from repo history (ADR-077, 3.10.17)",
- "type": "history-commit",
- "score": 0.5420344834308211,
- "cosineScore": 0.08157768176522591,
- "bm25Score": 2.6447087795290756,
- "mmrScore": 0.27101724171541053
+ "id": "pattern-1780159888525-1o-qiri",
+ "name": "Is Ruflo safe on Claude Opus 4.8? β€” `opus` alias still pins to 4.7, and literal model ids silently d",
+ "type": "history-issue",
+ "score": 0.5092437110657281,
+ "cosineScore": 0.10722082498011774,
+ "bm25Score": 0,
+ "mmrScore": 0.244351825954077
},
{
- "id": "pattern-1780159888520-q-3lmr",
- "name": "fix(init): #2206 #2207 #2208 β€” wizard server key, init detector, CLAUDE.md backup (#2214)",
- "type": "history-commit",
- "score": 0.5626313450839108,
- "cosineScore": 0.13624368513537335,
+ "id": "pattern-1780159888526-21-8ofz",
+ "name": "[Dream Cycle 2026-05-27] intelligence: SRΒ²AM 8B=120–355B via simulative planning β€” 95% token gap + c",
+ "type": "history-issue",
+ "score": 0.5211702493559724,
+ "cosineScore": 0.1137043910586627,
"bm25Score": 0,
- "mmrScore": 0.2658356829430097
+ "mmrScore": 0.2361062427589102
}
]
},
@@ -297,7 +297,7 @@
"type": "history-commit",
"score": 0.7436629268946584,
"cosineScore": 0.01303151951388954,
- "bm25Score": 23.617385640561277,
+ "bm25Score": 48.97742859836614,
"mmrScore": 0.3718314634473292
},
{
@@ -319,13 +319,13 @@
"mmrScore": 0.27832122285750827
},
{
- "id": "pattern-1780160010138-0-cefy",
- "name": "fix(intelligence): wire hooks_task-completed to recordTrajectory",
+ "id": "pattern-1780159888519-h-o34h",
+ "name": "docs: ruflo-workflows v0.4.0 native-Workflow orchestration + ADR-141 (taubench campaign)",
"type": "history-commit",
- "score": 0.5450536587835099,
- "cosineScore": 0.09503990506628572,
+ "score": 0.574352690368402,
+ "cosineScore": 0.1069707732645887,
"bm25Score": 0,
- "mmrScore": 0.27101959503190853
+ "mmrScore": 0.2703441391017582
},
{
"id": "pattern-1780161324698-3w-5c7h",
@@ -346,22 +346,13 @@
"firstRelevantRank": -1,
"topK": [
{
- "id": "pattern-1780161324703-51-v1b7",
- "name": "docs(browser): #2041 ADR-122 security audit + substrate benchmarks + announcement draft",
- "type": "history-commit",
- "score": 0.6510393622687756,
- "cosineScore": 0.019588773519894014,
- "bm25Score": 6.206553480055758,
- "mmrScore": 0.3255196811343878
- },
- {
- "id": "pattern-1780161237211-19-7z58",
- "name": "feat(ci): #2132 β€” cross-platform audit for plugin hooks.json commands",
+ "id": "pattern-1780161324687-1s-ibq9",
+ "name": "fix(security): patch CVEs, shell injection, SSRF in ruflo (#2114)",
"type": "history-commit",
- "score": 0.6121441415703033,
- "cosineScore": 0.09711664650832315,
- "bm25Score": 2.5401471715239787,
- "mmrScore": 0.3050938890510861
+ "score": 0.6996019746310844,
+ "cosineScore": 0.013552514538906218,
+ "bm25Score": 17.367867382335863,
+ "mmrScore": 0.3498009873155422
},
{
"id": "pattern-1780161324691-2i-tm1b",
@@ -373,13 +364,13 @@
"mmrScore": 0.3
},
{
- "id": "pattern-1780161237205-6-7kk3",
- "name": "chore(release): bump 3.10.12 β†’ 3.10.13 + [email protected]",
+ "id": "pattern-1780161324691-2k-8wey",
+ "name": "fix(smoke): #2089 β€” accept E2BIG as valid rejection in github-safe injection smoke",
"type": "history-commit",
- "score": 0.5272599789668341,
- "cosineScore": -0.06928700588415701,
- "bm25Score": 7.325974016308216,
- "mmrScore": 0.2552980359566925
+ "score": 0.5593090699556125,
+ "cosineScore": -0.03030855555620211,
+ "bm25Score": 15.23843973245108,
+ "mmrScore": 0.2684233177605082
},
{
"id": "pattern-1780161324689-21-o5x6",
@@ -388,7 +379,16 @@
"score": 0.5486082159087727,
"cosineScore": 0.13324219046664132,
"bm25Score": 0,
- "mmrScore": 0.24417206666200053
+ "mmrScore": 0.25652644260691226
+ },
+ {
+ "id": "pattern-1780161237215-24-4gf9",
+ "name": "[Dream Cycle 2026-05-26] security: Indirect prompt injection critical gap vs OWASP ASI01 + intellige",
+ "type": "history-issue",
+ "score": 0.5022001890508607,
+ "cosineScore": -0.025503342917368558,
+ "bm25Score": 12.3247281700364,
+ "mmrScore": 0.25110009452543036
}
]
},
@@ -403,46 +403,46 @@
"id": "pattern-1780161324693-2z-5x4a",
"name": "feat(neural-trader): #48 β€” benchmark suite (signal, backtest, memory-recall)",
"type": "history-commit",
- "score": 0.8018266090177799,
+ "score": 0.8481889920375287,
"cosineScore": 0.08967419136034757,
- "bm25Score": 11.069668624696455,
- "mmrScore": 0.40091330450888996
- },
- {
- "id": "pattern-1780161237205-6-7kk3",
- "name": "chore(release): bump 3.10.12 β†’ 3.10.13 + [email protected]",
- "type": "history-commit",
- "score": 0.6930655013125043,
- "cosineScore": 0.013638755437439873,
- "bm25Score": 12.520917564394331,
- "mmrScore": 0.34653275065625216
+ "bm25Score": 22.837016720540685,
+ "mmrScore": 0.42409449601876437
},
{
"id": "pattern-1780161324698-3y-v3g2",
"name": "feat(memory): #2061 ADR-125 Phase 3 β€” persistent HNSW snapshot + restore",
"type": "history-commit",
- "score": 0.5894330046400449,
+ "score": 0.7816240843732197,
"cosineScore": 0.08630266804079345,
- "bm25Score": 4.636571427447146,
- "mmrScore": 0.2822710787648221
+ "bm25Score": 19.4293625299739,
+ "mmrScore": 0.3783666186314095
},
{
- "id": "pattern-1780159888524-1d-x3m6",
+ "id": "pattern-1780161324685-1e-ew7u",
"name": "fix(bench): ADR-130 P6 β€” CI-friendly benchmark using single-session inserts",
"type": "history-commit",
- "score": 0.5338765470062481,
+ "score": 0.644134271773458,
"cosineScore": 0.06474451013559841,
- "bm25Score": 4.274258657174938,
- "mmrScore": 0.26693827350312405
+ "bm25Score": 14.090753442186866,
+ "mmrScore": 0.322067135886729
},
{
- "id": "pattern-1780158992316-e-0arj",
- "name": "SHABHNAM JAYAV 8Γ·58/πŸ”„ Rollback Incident: [Brief Description] not work",
- "type": "history-issue",
- "score": 0.6,
- "cosineScore": 0.16408597847506598,
- "bm25Score": 0,
- "mmrScore": 0.2563579067611487
+ "id": "pattern-1780161237210-13-hqcn",
+ "name": "fix(ci): graph benchmark process.exit β€” eliminate 40-min hang (#2148)",
+ "type": "history-commit",
+ "score": 0.6915687768678143,
+ "cosineScore": 0.06790435166188932,
+ "bm25Score": 16.430860426091225,
+ "mmrScore": 0.3211490834156367
+ },
+ {
+ "id": "pattern-1780161324688-1y-hjpj",
+ "name": "perf(guidance): Phase 1 β€” hot-path cleanup + scaling benchmark infrastructure",
+ "type": "history-commit",
+ "score": 0.5897176281398611,
+ "cosineScore": 0.006665289443791871,
+ "bm25Score": 17.748873717210596,
+ "mmrScore": 0.28595434324931074
}
]
},
@@ -454,76 +454,85 @@
"firstRelevantRank": -1,
"topK": [
{
- "id": "pattern-1780161237205-9-48p8",
- "name": "chore(release): bump 3.10.10 β†’ 3.10.11 (4-issue bug cluster)",
+ "id": "pattern-1780161324692-2o-blny",
+ "name": "feat(ci): #2089 ADR-127 Phase 1 β€” github-safe injection smoke + uses: pin smoke + supply-chain allow",
"type": "history-commit",
- "score": 0.710559958201223,
- "cosineScore": 0.029870791404767158,
- "bm25Score": 13.600488646605163,
- "mmrScore": 0.3552799791006115
+ "score": 0.6573469618530929,
+ "cosineScore": 0.09696516710558883,
+ "bm25Score": 13.406027352186886,
+ "mmrScore": 0.32867348092654647
},
{
- "id": "pattern-1780161324698-3u-c1g1",
- "name": "chore(release): publish 3.7.0-alpha.71 + @claude-flow/[email protected]",
- "type": "history-commit",
- "score": 0.6325338902596626,
- "cosineScore": 0.10356354291635028,
- "bm25Score": 3.099284643164071,
- "mmrScore": 0.30228090848432076
+ "id": "pattern-1780161237213-1s-xof1",
+ "name": "Statusline shows `RuFlo V3.6` for global npm installs β€” statusline-generator version probe never che",
+ "type": "history-issue",
+ "score": 0.5830575779016265,
+ "cosineScore": 0.10389287629109815,
+ "bm25Score": 2.3193980798828715,
+ "mmrScore": 0.29152878895081324
},
{
- "id": "pattern-1780161324688-1z-fu6u",
- "name": "chore(release): publish 3.7.0-alpha.78 β€” #2042 #2078 fixes",
+ "id": "pattern-1780161324690-27-igfa",
+ "name": "fix(cli,daemon,mcp): #2098 #2093 #2085 β€” three regressions reported on alpha.75",
"type": "history-commit",
- "score": 0.6,
- "cosineScore": 0.12079199972660587,
+ "score": 0.5472141937172988,
+ "cosineScore": 0.09568661030559562,
"bm25Score": 0,
- "mmrScore": 0.29654148767587263
+ "mmrScore": 0.2736070968586494
},
{
- "id": "pattern-1780161237213-1s-xof1",
- "name": "Statusline shows `RuFlo V3.6` for global npm installs β€” statusline-generator version probe never che",
+ "id": "pattern-1780159888526-1w-jptg",
+ "name": "wizard: unconditional CLAUDE.md overwrite destroys project guidance",
"type": "history-issue",
- "score": 0.61629844815063,
- "cosineScore": 0.10389287629109815,
- "bm25Score": 2.336254643968555,
- "mmrScore": 0.2783942537276099
+ "score": 0.5455255717807561,
+ "cosineScore": 0.09488348699864597,
+ "bm25Score": 0,
+ "mmrScore": 0.27276278589037806
},
{
- "id": "pattern-1780159888519-m-r8lt",
- "name": "docs(adr): ADR-129 status β†’ Accepted + Gap 2 implementation record (#2201)",
+ "id": "pattern-1780161324698-3u-c1g1",
+ "name": "chore(release): publish 3.7.0-alpha.71 + @claude-flow/[email protected]",
"type": "history-commit",
- "score": 0.56928734499748,
- "cosineScore": 0.10618479339045693,
- "bm25Score": 0,
- "mmrScore": 0.27450268662114563
+ "score": 0.5888669420076869,
+ "cosineScore": 0.10356354291635028,
+ "bm25Score": 3.130639538755832,
+ "mmrScore": 0.2598896467295408
}
]
},
{
"query": "security hardening crypto random IDs",
"matched": true,
- "top1Relevant": false,
- "top3Relevant": false,
- "firstRelevantRank": -1,
+ "top1Relevant": true,
+ "top3Relevant": true,
+ "firstRelevantRank": 1,
"topK": [
{
- "id": "pattern-1780161237205-6-7kk3",
- "name": "chore(release): bump 3.10.12 β†’ 3.10.13 + [email protected]",
+ "id": "pattern-1780161324699-44-nys5",
+ "name": "chore(release): publish 3.7.0-alpha.70 β€” CWE-347 security fix",
"type": "history-commit",
- "score": 0.7292296778666876,
- "cosineScore": 0.03253431220092657,
- "bm25Score": 10.582768112698659,
- "mmrScore": 0.3646148389333438
+ "score": 0.7275352672667563,
+ "cosineScore": 0.0679787880690766,
+ "bm25Score": 13.038270620547054,
+ "mmrScore": 0.36376763363337816
},
{
- "id": "pattern-1780161324704-5d-ssyg",
- "name": "fix(hooks): #2017 β€” defensive pre-bash + new CI gate against silent-swallow shape",
+ "id": "pattern-1780161324692-2n-9rpj",
+ "name": "feat(security): #2089 ADR-127 Phase 2 β€” github-safe maxBuffer + agent frontmatter tools: + swarm-pr/",
"type": "history-commit",
- "score": 0.6464283623857547,
- "cosineScore": 0.11760821356909369,
- "bm25Score": 2.8379359683329337,
- "mmrScore": 0.30529026970129103
+ "score": 0.6933137366322007,
+ "cosineScore": 0.07733370497882346,
+ "bm25Score": 10.634556165596958,
+ "mmrScore": 0.3466568683161004
+ },
+ {
+ "id": "pattern-1780161324701-4k-s8su",
+ "name": "ci: #2046 supply-chain hardening β€” five-layer audit + dependency review + CODEOWNERS",
+ "type": "history-commit",
+ "score": 0.722022574658173,
+ "cosineScore": 0.02961367472444284,
+ "bm25Score": 16.778051058741422,
+ "mmrScore": 0.3162592205852921
},
{
"id": "pattern-1780161324699-43-nlue",
@@ -532,25 +541,16 @@
"score": 0.6,
"cosineScore": 0.14226244116789438,
"bm25Score": 0,
- "mmrScore": 0.2970161868092974
- },
- {
- "id": "pattern-1780161324700-4b-ieca",
- "name": "Merge pull request #2050 from ruvnet/feat/ci-supply-chain-hardening",
- "type": "history-commit",
- "score": 0.592484117643453,
- "cosineScore": 0.052350663373743465,
- "bm25Score": 5.6711645256634045,
- "mmrScore": 0.28617992493599675
+ "mmrScore": 0.3
},
{
- "id": "pattern-1780161324693-33-7swi",
- "name": "fix(init): #2078 β€” use no-reply bot email for opt-in Co-Authored-By",
+ "id": "pattern-1780161324703-51-v1b7",
+ "name": "docs(browser): #2041 ADR-122 security audit + substrate benchmarks + announcement draft",
"type": "history-commit",
- "score": 0.5500381877424747,
- "cosineScore": 0.12201570165957405,
- "bm25Score": 0,
- "mmrScore": 0.2532795338785324
+ "score": 0.6428146834675634,
+ "cosineScore": 0.04934530829645153,
+ "bm25Score": 11.413327801919436,
+ "mmrScore": 0.29180229342714653
}
]
}
diff --git a/package-lock.json b/package-lock.json
index c40c6e6d53..a9b222afa1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "claude-flow",
- "version": "3.10.18",
+ "version": "3.10.19",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "claude-flow",
- "version": "3.10.18",
+ "version": "3.10.19",
"license": "MIT",
"dependencies": {
"@claude-flow/cli-core": "^3.7.0-alpha.5",
diff --git a/package.json b/package.json
index 81b97f70d7..5167e8f14d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
- "version": "3.10.18",
+ "version": "3.10.19",
"description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
"main": "dist/index.js",
"type": "module",
diff --git a/ruflo/package.json b/ruflo/package.json
index cc22d3f50d..1c6a7b10fd 100644
--- a/ruflo/package.json
+++ b/ruflo/package.json
@@ -1,6 +1,6 @@
{
"name": "ruflo",
- "version": "3.10.18",
+ "version": "3.10.19",
"description": "Ruflo - Enterprise AI agent orchestration platform. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
"main": "bin/ruflo.js",
"type": "module",
diff --git a/v3/@claude-flow/cli/__tests__/hybrid-retrieval.test.ts b/v3/@claude-flow/cli/__tests__/hybrid-retrieval.test.ts
index 838d764fdf..1ad8bca7d0 100644
--- a/v3/@claude-flow/cli/__tests__/hybrid-retrieval.test.ts
+++ b/v3/@claude-flow/cli/__tests__/hybrid-retrieval.test.ts
@@ -13,6 +13,9 @@ import {
hybridScores,
cosineSim,
mmrRerank,
+ multiFieldBM25,
+ typePenalty,
+ META_COMMIT_REGEX,
} from '../src/memory/hybrid-retrieval.js';
describe('tokenize', () => {
@@ -175,3 +178,100 @@ describe('mmrRerank', () => {
expect(mmrRerank([{ id: 'x', embedding: [1], relevance: 1 }], 0, 0.5)).toEqual([]);
});
});
+
+describe('multiFieldBM25 β€” subject-weighted BM25 (ADR-079)', () => {
+ // 4 docs with subject + body, body intentionally noisy.
+ const subjects = [
+ tokenize('fix sql injection in migrate.ts'),
+ tokenize('feat structured distillation 4-field schema'),
+ tokenize('chore release bump 3.10.18'),
+ tokenize('docs update README'),
+ ];
+ const bodies = [
+ tokenize('Adds validateSqlIdentifier and a regression test'),
+ tokenize('Per arXiv:2603.13017. labels and paths lead the embedding'),
+ tokenize('Routine version bump; no functional changes. Lots of generic words bump release version'),
+ tokenize('Generic README updates everywhere'),
+ ];
+ const subjectStats = buildCorpusStats(subjects);
+ const bodyStats = buildCorpusStats(bodies);
+
+ it('ranks the doc whose SUBJECT contains query tokens highest', () => {
+ const q = tokenize('structured distillation schema');
+ const scores = subjects.map((_, i) =>
+ multiFieldBM25(q, subjects[i], bodies[i], subjectStats, bodyStats, 3.0, 1.0),
+ );
+ const top = scores.indexOf(Math.max(...scores));
+ expect(top).toBe(1);
+ });
+
+ it('subjectWeight=0 collapses to body-only', () => {
+ const q = tokenize('validateSqlIdentifier');
+ const scoresBodyOnly = subjects.map((_, i) =>
+ multiFieldBM25(q, subjects[i], bodies[i], subjectStats, bodyStats, 0, 1.0),
+ );
+ const scoresBalanced = subjects.map((_, i) =>
+ multiFieldBM25(q, subjects[i], bodies[i], subjectStats, bodyStats, 3.0, 1.0),
+ );
+ // Body-only should match doc 0 (sql fix has validateSqlIdentifier in body).
+ // Balanced should still match doc 0 since subject also helps via "sql"...
+ // but specifically: body-only score for doc 0 should be >0.
+ expect(scoresBodyOnly[0]).toBeGreaterThan(0);
+ expect(scoresBalanced[0]).toBeGreaterThan(0);
+ });
+
+ it('subject 3Γ— over body avoids losing to body-noise', () => {
+ // Query "release" appears in doc 2's subject AND doc 2's body multiple times.
+ // doc 2 should dominate.
+ const q = tokenize('release bump');
+ const scores = subjects.map((_, i) =>
+ multiFieldBM25(q, subjects[i], bodies[i], subjectStats, bodyStats, 3.0, 1.0),
+ );
+ expect(scores.indexOf(Math.max(...scores))).toBe(2);
+ });
+});
+
+describe('typePenalty β€” meta-commit downweighting (ADR-079)', () => {
+ it('matches chore(release) commits', () => {
+ expect(typePenalty('chore(release): bump 3.10.18 β†’ 3.10.19')).toBe(0.5);
+ expect(typePenalty('chore(release): publish 3.10.19')).toBe(0.5);
+ });
+
+ it('matches Merge commits', () => {
+ expect(typePenalty('Merge pull request #2227 from fix/2245')).toBe(0.5);
+ expect(typePenalty('Merge feat/hybrid-retrieval: ADR-078 work')).toBe(0.5);
+ });
+
+ it('matches bump and publish lines', () => {
+ expect(typePenalty('bump 3.10.18 β†’ 3.10.19')).toBe(0.5);
+ expect(typePenalty('publish 3.10.19 to npm')).toBe(0.5);
+ });
+
+ it('matches Dream Cycle scans', () => {
+ expect(typePenalty('[Dream Cycle 2026-05-30] intelligence findings')).toBe(0.5);
+ });
+
+ it('does NOT penalise real work commits', () => {
+ expect(typePenalty('feat(intelligence): structured distillation (ADR-076)')).toBe(1.0);
+ expect(typePenalty('fix(security): SQL injection in migrate.ts')).toBe(1.0);
+ expect(typePenalty('docs(adr): ADR-078 hybrid retrieval')).toBe(1.0);
+ });
+
+ it('handles undefined name safely', () => {
+ expect(typePenalty(undefined)).toBe(1.0);
+ expect(typePenalty('')).toBe(1.0);
+ });
+
+ it('respects custom factor', () => {
+ expect(typePenalty('chore(release): bump', 0.0)).toBe(0.0);
+ expect(typePenalty('chore(release): bump', 0.25)).toBe(0.25);
+ });
+
+ it('regex covers the documented meta-commit patterns', () => {
+ expect(META_COMMIT_REGEX.test('chore(release): x')).toBe(true);
+ expect(META_COMMIT_REGEX.test('Merge x')).toBe(true);
+ expect(META_COMMIT_REGEX.test('bump x')).toBe(true);
+ expect(META_COMMIT_REGEX.test('feat: x')).toBe(false);
+ expect(META_COMMIT_REGEX.test('fix: x')).toBe(false);
+ });
+});
diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json
index 01e8306b45..368b1a8163 100644
--- a/v3/@claude-flow/cli/package.json
+++ b/v3/@claude-flow/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@claude-flow/cli",
- "version": "3.10.18",
+ "version": "3.10.19",
"type": "module",
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
"main": "dist/src/index.js",
diff --git a/v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts
index 402e994844..45d08d8b62 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts
@@ -496,6 +496,9 @@ export const neuralTools: MCPTool[] = [
mode: { type: 'string', enum: ['hybrid', 'cosine'], description: 'Search mode β€” hybrid (cosine+BM25+MMR, default) or cosine (pre-3.10.18 behaviour, for A/B)' },
alpha: { type: 'number', description: 'Hybrid: cosine weight in [0,1]; (1-Ξ±) is BM25 weight (default 0.6)' },
mmrLambda: { type: 'number', description: 'Hybrid: MMR balance β€” 1.0 = pure relevance, 0.0 = pure diversity (default 0.5)' },
+ subjectWeight: { type: 'number', description: 'Hybrid: multi-field BM25 weight for subject/name (default 3.0)' },
+ bodyWeight: { type: 'number', description: 'Hybrid: multi-field BM25 weight for body/content (default 1.0)' },
+ typePenaltyFactor: { type: 'number', description: 'Hybrid: meta-commit score multiplier β€” release/merge/bump commits Γ— this factor (default 1.0 = disabled; set 0.5 for aggressive suppression)' },
data: { type: 'object', description: 'Pattern data' },
},
},
@@ -578,7 +581,7 @@ export const neuralTools: MCPTool[] = [
const alpha = Number(input.alpha ?? 0.6); // cosine weight; (1-Ξ±) is BM25
const mmrLambda = Number(input.mmrLambda ?? 0.5); // 1 = pure relevance, 0 = pure diversity
- const { tokenize, buildCorpusStats, bm25Score, hybridScores, mmrRerank } =
+ const { tokenize, buildCorpusStats, hybridScores, mmrRerank, multiFieldBM25, typePenalty } =
await import('../memory/hybrid-retrieval.js');
const queryEmbedding = await generateEmbedding(query, 384);
@@ -604,13 +607,35 @@ export const neuralTools: MCPTool[] = [
};
}
- // Hybrid path β€” BM25 over the pattern's content (falls back to name
- // for pre-3.10.18 patterns missing the field).
- const docs = patterns.map((p) => tokenize(p.content ?? p.name));
- const stats = buildCorpusStats(docs);
+ // Hybrid path β€” multi-field BM25 (subject 3Γ—, body 1Γ—) + type penalty
+ // for meta-commits (release bumps / merges) per ADR-079. Falls back
+ // to single-field BM25 when no content is stored.
+ const subjectDocs = patterns.map((p) => tokenize(p.name ?? ''));
+ const bodyDocs = patterns.map((p) => {
+ // Body is content minus the subject β€” if content starts with name,
+ // strip it; otherwise use full content (with name removed if duplicated).
+ const c = p.content ?? '';
+ const n = p.name ?? '';
+ return tokenize(c.startsWith(n) ? c.slice(n.length) : c);
+ });
+ const subjectStats = buildCorpusStats(subjectDocs);
+ const bodyStats = buildCorpusStats(bodyDocs);
const queryTokens = tokenize(query);
- const bm25Arr = docs.map((d) => bm25Score(queryTokens, d, stats));
- const hybridArr = hybridScores(cosineArr, bm25Arr, alpha);
+ const subjectWeight = Number(input.subjectWeight ?? 3.0);
+ const bodyWeight = Number(input.bodyWeight ?? 1.0);
+ const bm25Arr = patterns.map((_, i) =>
+ multiFieldBM25(queryTokens, subjectDocs[i], bodyDocs[i], subjectStats, bodyStats, subjectWeight, bodyWeight),
+ );
+ const baseHybrid = hybridScores(cosineArr, bm25Arr, alpha);
+ // Type penalty β€” opt-in (default 1.0 = disabled). Ablation in ADR-079
+ // showed multi-field BM25 alone gives best top-1 (8/10 vs 7/10 with
+ // penalty enabled) because some relevant work commits also match the
+ // Merge/release regex. Callers wanting aggressive meta-commit
+ // suppression can set {typePenaltyFactor: 0.5}.
+ const typeFactor = Number(input.typePenaltyFactor ?? 1.0);
+ const hybridArr = typeFactor === 1.0
+ ? baseHybrid
+ : baseHybrid.map((s, i) => s * typePenalty(patterns[i].name, typeFactor));
// MMR diversity over top-K*3 hybrid candidates β†’ top-K final.
const prelim = patterns
diff --git a/v3/@claude-flow/cli/src/memory/hybrid-retrieval.ts b/v3/@claude-flow/cli/src/memory/hybrid-retrieval.ts
index 78c01258fb..fd0ccc64f0 100644
--- a/v3/@claude-flow/cli/src/memory/hybrid-retrieval.ts
+++ b/v3/@claude-flow/cli/src/memory/hybrid-retrieval.ts
@@ -62,6 +62,22 @@ export function buildCorpusStats(tokenisedDocs: string[][]): CorpusStats {
return { df, idf, avgDocLen: N > 0 ? totalLen / N : 0, N };
}
+/**
+ * Type penalty for meta-commits β€” multiplies the hybrid score by `factor`
+ * when the document's name matches the meta-commit regex (release bumps,
+ * merge commits, badge updates, etc.). These commits bundle every issue
+ * number from a release window and steal top-1 from real work commits.
+ *
+ * Defaults: factor 0.5, regex covers `chore(release)`, `Merge `, `bump `,
+ * `[Dream Cycle]`, `publish 3.x.y`. Tune via env or call site.
+ */
+export const META_COMMIT_REGEX = /^(chore\(release\)|Merge\s|bump\s|publish\s+\d|\[Dream Cycle\b)/i;
+
+export function typePenalty(name: string | undefined, factor = 0.5, regex = META_COMMIT_REGEX): number {
+ if (!name) return 1.0;
+ return regex.test(name) ? factor : 1.0;
+}
+
/**
* BM25 score of one document against a query.
* Standard Okapi formula with k1=1.5 and b=0.75.
@@ -129,6 +145,30 @@ export function hybridScores(
return cN.map((c, i) => alpha * c + (1 - alpha) * bN[i]);
}
+/**
+ * Multi-field BM25 score β€” treats subject and body as separate fields with
+ * independent token frequencies, then combines `subjectWeight * subjectBM25
+ * + bodyWeight * bodyBM25`. Subject (commit title / pattern name) carries
+ * the high-signal tokens (file names, action verbs, ADR refs); body is
+ * often boilerplate. Default 3:1 weight reflects that asymmetry.
+ *
+ * Caller must build separate CorpusStats for subjects and bodies (their
+ * IDF distributions differ β€” subjects are short, bodies long).
+ */
+export function multiFieldBM25(
+ queryTokens: string[],
+ subjectTokens: string[],
+ bodyTokens: string[],
+ subjectStats: CorpusStats,
+ bodyStats: CorpusStats,
+ subjectWeight = 3.0,
+ bodyWeight = 1.0,
+): number {
+ const sScore = bm25Score(queryTokens, subjectTokens, subjectStats);
+ const bScore = bm25Score(queryTokens, bodyTokens, bodyStats);
+ return subjectWeight * sScore + bodyWeight * bScore;
+}
+
/**
* Cosine similarity between two equal-length numeric vectors.
* Returns 0 if either has zero norm.
diff --git a/v3/docs/adr/ADR-079-multifield-bm25-and-type-penalty.md b/v3/docs/adr/ADR-079-multifield-bm25-and-type-penalty.md
new file mode 100644
index 0000000000..7be6fd1fde
--- /dev/null
+++ b/v3/docs/adr/ADR-079-multifield-bm25-and-type-penalty.md
@@ -0,0 +1,86 @@
+# ADR-079 β€” Multi-Field BM25 + Opt-In Type Penalty
+
+**Status**: Accepted β€” Implemented in ruflo 3.10.19
+**Date**: 2026-05-30
+**Tracking**: continuation of the self-learning hardening cluster (#2245 β†’ ADR-074 β†’ ADR-075 β†’ ADR-076 β†’ ADR-077 β†’ ADR-078)
+**Related**: ADR-078 (hybrid retrieval)
+
+## Context
+
+ADR-078's hybrid retrieval lifted top-1 hit rate from 0% (cosine) to 50% and MRR@3 from 0 to 0.583 on the same 10-query bench. The 50% miss rate was traceable to two failure modes I observed in the per-query top-K output:
+
+1. **Body-noise drowns out subject signal.** A commit's subject (`feat(intelligence): structured distillation (ADR-076)`) carries the high-signal tokens β€” file paths, action verbs, ADR refs. Its body is often a list of bullets, links, or boilerplate. A single-field BM25 averages them together β€” the subject's signal gets diluted by the body's noise.
+
+2. **Release/merge commits dominate top-1.** `chore(release): bump 3.10.10 β†’ 3.10.11 (4-issue bug cluster)` bundles every issue number from a release window. It shares low-IDF tokens with almost any query and outranks the *actual fix commits* for those issues.
+
+## Decision
+
+Two changes, opt-in tuning, one release:
+
+### 1. Multi-field BM25 (default ON)
+
+Add `multiFieldBM25()` to `src/memory/hybrid-retrieval.ts`. Treats subject (pattern `name`) and body (pattern `content` minus the subject prefix if it starts with it) as separate fields with independent corpus statistics, then linearly combines:
+
+```
+score = subjectWeight * BM25(query, subject, subjectStats)
+ + bodyWeight * BM25(query, body, bodyStats)
+```
+
+Default weights `subjectWeight=3.0, bodyWeight=1.0` reflect the empirical 3:1 signal asymmetry. Both fields use the same Okapi parameters (k1=1.5, b=0.75) but build their own IDF maps β€” subjects are short (~10 tokens) and bodies long (~50-200 tokens), so they need independent IDF distributions.
+
+Wired into `neural_patterns` search as the default replacement for single-field BM25. Single-field is still reachable via `{subjectWeight: 0, bodyWeight: 1}`.
+
+### 2. Type penalty (default OFF, opt-in)
+
+Add `typePenalty(name, factor)` + exported `META_COMMIT_REGEX`. Multiplies the hybrid score of any pattern whose name matches the regex (`^chore(release)|^Merge\s|^bump\s|^publish\s\d|^\[Dream Cycle\b`) by `factor`.
+
+Default factor: **1.0 (disabled)**. The ablation below shows multi-field BM25 alone gives better top-1 than multi-field + penalty (8/10 vs 7/10) β€” some real work commits start with `Merge feat/...` and get falsely penalised. Callers wanting aggressive meta-commit suppression can pass `{typePenaltyFactor: 0.5}`.
+
+## Measured proof β€” full ablation (N=385, 10 queries, same harness as ADR-078)
+
+| Configuration | Top-1 hit | Top-3 hit | MRR@3 | Top-1 diversity |
+|---|:---:|:---:|:---:|:---:|
+| **Cosine baseline (3.10.17)** | 0/10 (0%) | 0/10 (0%) | 0.000 | 100% |
+| Single-field BM25, no penalty (~3.10.18) | 5/10 (50%) | 7/10 (70%) | 0.600 | 80% |
+| Single-field BM25 + type penalty 0.5 | 7/10 (70%) | 7/10 (70%) | 0.700 | 100% |
+| **Multi-field BM25 3:1, no penalty (3.10.19 default)** | **8/10 (80%)** | **8/10 (80%)** | **0.800** | **100%** |
+| Multi-field BM25 3:1 + type penalty 0.5 | 7/10 (70%) | 8/10 (80%) | 0.750 | 100% |
+
+Cumulative since cosine baseline (3.10.17 β†’ 3.10.19): **0% β†’ 80% top-1, 0.000 β†’ 0.800 MRR@3**. Cumulative since 3.10.18 hybrid: **+30pp top-1, +10pp top-3, +0.217 MRR@3, +20pp diversity**, at no extra latency cost (39 ms vs 40 ms).
+
+The "type penalty disabled by default" decision was driven by the ablation, not intuition. Both rows with penalty trade top-1 hit rate for diversity β€” when the underlying BM25 is already good (multi-field 3:1), the penalty's downside (mislabelling `Merge feat/...` as meta-commit) outweighs its upside.
+
+## Reusable infrastructure shipped
+
+- `multiFieldBM25(queryTokens, subjectTokens, bodyTokens, subjectStats, bodyStats, subjectWeight=3.0, bodyWeight=1.0)`
+- `typePenalty(name, factor=0.5, regex=META_COMMIT_REGEX)` + exported `META_COMMIT_REGEX`
+- `neural_patterns` MCP tool β€” new params: `subjectWeight`, `bodyWeight`, `typePenaltyFactor`
+- 18 new unit tests in `__tests__/hybrid-retrieval.test.ts` (39 total in the file)
+
+## Honest limits
+
+- The 10-query bench is small and uses regex-over-subject as a relevance proxy. A held-out labelled corpus would give tighter confidence intervals. Direction (0% β†’ 80%) is robust to noise; absolute magnitudes could shift on a different corpus.
+- The 3:1 subject:body weight was chosen by inspection, not grid-search. A future tuning pass could grid-search `subjectWeight ∈ {1,2,3,5,8}, bodyWeight ∈ {0.5,1,2}` against the same harness. Tracked.
+- The type penalty regex is hand-curated against ruflo's commit conventions (`chore(release)`, `Merge`, `bump`, `publish`, `[Dream Cycle]`). Other repos with different conventions need their own regex β€” the function takes one as a param.
+
+## Deliberately NOT in this round
+
+- **Cross-encoder reranker** β€” still tracked for 3.11.0. The lift remaining (80% β†’ 100% top-1) is exactly what a cross-encoder is good at.
+- **Grid-search for subject/body weights** β€” would belong in a future tuning ADR with a wider corpus.
+- **HyDE (Hypothetical Document Embeddings)** β€” too LLM-expensive to ship as a default.
+
+## Verification
+
+```bash
+git clone https://github.com/ruvnet/ruflo && cd ruflo
+npm install && ( cd v3/@claude-flow/cli && npx tsc )
+
+# Unit tests β€” 39 tests (21 from ADR-078 + 18 new)
+( cd v3/@claude-flow/cli && npx vitest run __tests__/hybrid-retrieval.test.ts __tests__/pretrain-from-github.test.ts )
+
+# Live A/B
+cd v3/@claude-flow/cli
+node scripts/pretrain-from-github.mjs
+node scripts/benchmark-pretrained-retrieval.mjs # 3.10.19 default β€” 80% top-1, MRR 0.800
+HYBRID=0 node scripts/benchmark-pretrained-retrieval.mjs # cosine β€” 0% top-1
+```