ruvector/docs/research
Ofer Shaal 241738c986 docs(adr): ADR-151 + PRD §6 — Phase 0 findings, revised perf targets, Grok review
Phase 0 implementation revealed that the original PRD §6 targets
(50 ns / 200 ns for is_prime_u64 worst case) were structurally
unachievable in safe Rust on Apple-silicon. Apples-to-apples competitor
benchmark in the same binary on the same machine measured num-prime
0.4.4 at 884 ns vs ours at 15.63 µs — ~17.7× headroom recoverable via
Montgomery reduction in Phase 0.1, but not the ~300× the original target
implied. The 50 ns figure was a pre-implementation estimate that did not
survive contact with measured hardware.

ADR-151 (docs/adr/ADR-151-miller-rabin-prime-optimizations.md)
- Status promoted from "Proposed" to "Accepted (Phase 0 landed
  2026-04-16; performance targets revised)".
- New "Phase 0 Findings (2026-04-16)" section documenting what landed,
  measurements vs original targets, num-prime competitor baseline, the
  revised target band, and Phase 0.1 scope (Montgomery only).
- Explicit rejection of swapping to the empirical 7-witness set:
  Sinclair-12 is theorem-proven across all u64; the 7-witness sets in
  the literature are empirically tested up to 2^64 but not proven, and
  swapping invalidates the A014233(11) canary in the pseudoprime test.

PRD §6 (docs/research/miller-rabin-optimizations/PRD.md)
- Revision header noting the relaxation.
- is_prime_u64(p) worst-case row updated to ≤ 1 µs (was 50 ns) M-series
  / ≤ 4 µs (was 200 ns) WASM.
- New §6.1 "Empirical findings (Phase 0)" with the measurement table
  and the num-prime baseline data.

GROK-REVIEW-REQUEST.md (new, 424 lines)
- Self-contained briefing used to obtain external Grok review of the
  Phase 0 design and Phase 0.1 plan: §1 binding context, §2 implementation
  embedded verbatim, §3 measurements + competitor baseline, §4 four-section
  ask (correctness, perf plan ranked, architecture, validation
  methodology), §5 response format. Constraints block forbids
  "just use num-prime" answers and pins the canary witness set.
2026-04-16 14:41:02 -04:00
..
agentic-robotics feat: Add unified ruvector-robotics crate with bridge, perception, cognitive, and MCP modules 2026-02-27 03:35:54 +00:00
claude-code-rvsource feat(decompiler): add graph-derived folder hierarchy for Claude Code v2.1.91 2026-04-03 16:00:41 +00:00
climate-consciousness feat(examples): gene, climate, ecosystem, quantum consciousness explorers 2026-03-31 22:01:55 +00:00
cnn feat(ruvector-cnn): CNN contrastive learning + SIMD optimization fixes (#252) 2026-03-11 17:41:53 -04:00
cognitive-frontier feat(ruvix): implement CLI, kernel shell, and PBFT consensus (#261) 2026-03-14 16:25:03 -04:00
DrAgnes feat: DrAgnes + Common Crawl WET + Gemini grounding agents (#282) 2026-03-23 10:12:50 -04:00
dspy feat(ruvix): implement CLI, kernel shell, and PBFT consensus (#261) 2026-03-14 16:25:03 -04:00
exotic-structure-discovery research(boundary-first): 17 experiments proving boundary-first detection across 11 domains (#347) 2026-04-13 12:01:47 -04:00
FalkorDB Add developer quickstart guide and knowledge export JSON 2026-02-27 03:41:13 +00:00
federated-rvf Add developer quickstart guide and knowledge export JSON 2026-02-27 03:41:13 +00:00
gene-consciousness feat(examples): gene, climate, ecosystem, quantum consciousness explorers 2026-03-31 22:01:55 +00:00
gnn-v2 feat(ruvix): implement CLI, kernel shell, and PBFT consensus (#261) 2026-03-14 16:25:03 -04:00
knowledge-export Add developer quickstart guide and knowledge export JSON 2026-02-27 03:41:13 +00:00
latent-space fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
miller-rabin-optimizations docs(adr): ADR-151 + PRD §6 — Phase 0 findings, revised perf targets, Grok review 2026-04-16 14:41:02 -04:00
mincut fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
models feat(ruvix): implement CLI, kernel shell, and PBFT consensus (#261) 2026-03-14 16:25:03 -04:00
pglite feat(ruvix): implement CLI, kernel shell, and PBFT consensus (#261) 2026-03-14 16:25:03 -04:00
pi-brain feat(ruvix): implement CLI, kernel shell, and PBFT consensus (#261) 2026-03-14 16:25:03 -04:00
quantization-edge research(kv-cache): TriAttention + TurboQuant stacked compression analysis (#342) 2026-04-08 13:29:16 -05:00
quantum-crypto feat(ruvix): implement CLI, kernel shell, and PBFT consensus (#261) 2026-03-14 16:25:03 -04:00
ruvm feat(rvm): RVM — Coherence-Native Microhypervisor for the Agentic Age 2026-04-04 12:10:19 -04:00
rv2 feat(rvAgent): Complete DeepAgents Rust Conversion (ADR-093 → ADR-103) (#262) 2026-03-16 09:52:32 -04:00
rvagent-gemini-grounding feat: DrAgnes + Common Crawl WET + Gemini grounding agents (#282) 2026-03-23 10:12:50 -04:00
rvf feat(rvf): add WASM_SEG (0x10) for self-bootstrapping RVF files 2026-02-15 15:36:34 +00:00
seizure-prediction research(boundary-first): 17 experiments proving boundary-first detection across 11 domains (#347) 2026-04-13 12:01:47 -04:00
sota-gap-implementation Add SOTA gap implementations: hybrid search, MLA, KV-cache, SSM, Graph RAG (#304) 2026-03-27 10:12:48 -04:00
sparql fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
spectral-sparsification feat: add ruvector-sparsifier — dynamic spectral graph sparsification 2026-03-20 10:37:39 -04:00
sublinear-time-solver fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
wasm-integration-2026 docs: add WASM integration research series (6 documents, 3465 lines) 2026-02-22 21:18:46 +00:00
sota-gap-analysis-2026.md Add SOTA gap implementations: hybrid search, MLA, KV-cache, SSM, Graph RAG (#304) 2026-03-27 10:12:48 -04:00