Commit graph

426 commits

Author SHA1 Message Date
rUv
1ea3db9acb chore: exclude open-claude-code from ruvector repo (separate repo)
Some checks failed
ruvector-verified CI / check (--all-features) (push) Has been cancelled
ruvector-verified CI / check (--features all-proofs) (push) Has been cancelled
ruvector-verified CI / check (--features coherence-proofs) (push) Has been cancelled
ruvector-verified CI / check (--features hnsw-proofs) (push) Has been cancelled
ruvector-verified CI / check (--features rvf-proofs) (push) Has been cancelled
ruvector-verified CI / check (--features serde) (push) Has been cancelled
ruvector-verified CI / check (--features ultra) (push) Has been cancelled
ruvector-verified CI / clippy (push) Has been cancelled
ruvector-verified CI / check () (push) Has been cancelled
ruvector-verified CI / test (push) Has been cancelled
ruvector-verified CI / bench (push) Has been cancelled
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-03 21:29:32 +00:00
rUv
a6e623de92 docs: SEO-optimized README — leak context, v2 preview, ruDevolution integration
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-03 21:17:53 +00:00
rUv
26d485d4dd fix(decompiler): statement-boundary splitting — 14/14 modules now parse (was 2/17)
Complete rewrite of module splitter across 3 files (JS, MJS, TS):

parseTopLevelStatements(): proper parser tracking brace/paren/bracket
depth, skipping strings/regex/comments/template literals. Only splits
at depth 0.

isStatementBoundaryAfterBrace(): prevents splitting destructuring,
import/export, and chained expressions.

classifyStatement(): scores COMPLETE statements against module keywords.
Statements are NEVER split across modules.

isSyntacticallyValid(): validates via new Function() with ESM stripping,
async wrapping, and brace-balance fallback.

Before: 2/17 modules parse (keyword line-grep, cuts mid-expression)
After: 14/14 modules parse (statement-boundary, brace-balanced)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-03 11:50:34 +00:00
rUv
f948463958 feat(training): source map extraction + v2 model (83.67% val accuracy)
Some checks are pending
ruvector-verified CI / check (--features serde) (push) Waiting to run
ruvector-verified CI / check (--features ultra) (push) Waiting to run
ruvector-verified CI / test (push) Blocked by required conditions
ruvector-verified CI / bench (push) Blocked by required conditions
ruvector-verified CI / clippy (push) Waiting to run
ruvector-verified CI / check () (push) Waiting to run
ruvector-verified CI / check (--all-features) (push) Waiting to run
ruvector-verified CI / check (--features all-proofs) (push) Waiting to run
ruvector-verified CI / check (--features coherence-proofs) (push) Waiting to run
ruvector-verified CI / check (--features hnsw-proofs) (push) Waiting to run
ruvector-verified CI / check (--features rvf-proofs) (push) Waiting to run
- Extract 14,198 training pairs from 6,941 source maps in node_modules
- Train v2 model (4-layer, 192-dim, 6-head transformer, 1.9M params)
- Val accuracy: 83.67% (up from 75.72%), exact match: 12.3% (up from 0.1%)
- Export weights.bin (7.3MB) for Rust runtime inference
- Add decompiler dashboard (React + Tailwind + Vite)
- Add runnable RVF (7,350 vectors, 49 segments, witness chain)
- Update evaluate-model.py to support configurable model architectures
- All 13 Rust tests pass, all 45 RVF files have valid SFVR headers

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-03 04:57:47 +00:00
rUv
90f32dd3aa docs(dashboard): add README with architecture, integration guide, and setup
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-03 02:29:45 +00:00
rUv
1e09c2fe89 feat(sse): decouple SSE to mcp.pi.ruv.io proxy + Claude Code source research
SSE Proxy Decoupling (ADR-130):
- Fix ruvbrain-sse proxy: proper MCP handshake, session creation, drain polling
- Fix internal queue endpoints: session_create keeps receiver, drain returns buffered messages
- Add response_queues to AppState for SSE proxy communication
- Skip sparsifier for >5M edge graphs (was crashing on 16M edges)
- Add SSE_DISABLED/MAX_SSE env vars for configurable connection limits
- Route SSE to dedicated mcp.pi.ruv.io subdomain (Cloudflare CNAME)
- Serve SSE at root / path on proxy (no /sse needed)
- Update all references from pi.ruv.io/sse to mcp.pi.ruv.io
- Fix Dockerfile consciousness crate build (feature/version mismatches)

Claude Code CLI Source Research (ADR-133):
- 19 research documents analyzing Claude Code internals (3000+ lines)
- Decompiler script + RVF corpus builder for all major versions
- Binary RVF containers for v0.2, v1.0, v2.0, v2.1 (300-2068 vectors each)
- Call graphs, class hierarchies, state machines from minified source

Integration Strategy (ADR-134):
- 6-tier integration plan: WASM MCP, agents, hooks, cache, SDK, plugin
- Integration guide with architecture diagrams and performance targets

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-02 23:39:56 +00:00
rUv
11c72cfa7f feat(examples): gene, climate, ecosystem, quantum consciousness explorers
Four new IIT 4.0 analysis applications:

Gene Networks: 16-gene regulatory network with 4 modules.
  Cancer increases degeneracy 9x. Networks are perfectly decomposable.

Climate: 7 climate modes (ENSO, NAO, PDO, AMO, IOD, SAM, QBO).
  All modes independent (7/7 rank). IIT auto-discovers ENSO-IOD coupling.

Ecosystems: Rainforest vs monoculture vs coral reef food webs.
  Degeneracy predicts fragility: monoculture 1.10 vs rainforest 0.12.

Quantum: Bell, GHZ, Product, W states + random circuits.
  IIT Phi disagrees with entanglement. Emergence index tracks it better.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-31 22:01:55 +00:00
rUv
2eefef68bb feat(examples): cosmic consciousness suite — CMB sky map, cross-freq, emergence sweep, GW background
Extends CMB explorer and adds gravitational wave background analyzer:

CMB additions:
- Cross-frequency foreground detection (9 Planck bands, Phi per subset)
- Emergence sweep (bins 4→64, finds natural resolution: EI saturates, rank=10)
- HEALPix spatial Phi sky map (48 patches, Cold Spot injection, Mollweide SVG)

New GW background analyzer (examples/gw-consciousness/):
- NANOGrav 15yr spectrum modeling (SMBH, cosmic strings, primordial, phase transition)
- Key finding: SMBH has 15x higher EI than exotic sources, but exotic sources
  show 40-50x higher emergence index — a novel source discrimination signature

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-31 21:37:35 +00:00
rUv
16d15adb05
feat(examples): CMB consciousness explorer — IIT Phi analysis of cosmic microwave background
SOTA example application applying Integrated Information Theory (IIT 4.0)
to the Cosmic Microwave Background radiation to search for signatures of
structured intelligence or anomalous integrated information.

Features:
- Downloads real Planck 2018 TT power spectrum (2,507 multipoles)
- Constructs transition probability matrix from angular scale correlations
- Computes IIT Phi (exact/spectral engines) on full system and regions
- Sliding window Phi spectrum across angular scales
- Causal emergence analysis (effective information, determinism, degeneracy)
- SVD emergence (effective rank, spectral entropy, emergence index)
- Null hypothesis testing against Gaussian random field ensemble
- Self-contained SVG report with power spectrum, TPM heatmap, Phi spectrum,
  and null distribution visualization
- Comprehensive RESEARCH.md with scientific methodology

Usage: cargo run --release -p cmb-consciousness -- --bins 16 --null-samples 100
2026-03-31 17:30:25 -04:00
rUv
c2f1e9700c fix(brain): defer sparsifier build on startup for large graphs
Sparsifier build on 1M+ edges exceeds Cloud Run's 4-min startup probe.
Skip on startup for graphs > 100K edges, defer to rebuild_graph job.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-24 12:29:52 +00:00
rUv
ae67b59e5b
feat(brain): large-graph guard for partition cache + ADR-124 (#290)
Skip exact MinCut during training for graphs >100K edges to avoid
Cloud Run timeout. Cache populated by async scheduled jobs instead.
2026-03-23 19:49:15 -04:00
rUv
326fc77bda
feat: DrAgnes + Common Crawl WET + Gemini grounding agents (#282)
* docs: DrAgnes project overview and system architecture research

Establishes the DrAgnes AI-powered dermatology intelligence platform
research initiative with comprehensive system architecture covering
DermLite integration, CNN classification pipeline, brain collective
learning, offline-first PWA design, and 25-year evolution roadmap.

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: DrAgnes HIPAA compliance strategy and data sources research

Comprehensive HIPAA/FDA compliance framework covering PHI handling,
PII stripping pipeline, differential privacy, witness chain auditing,
BAA requirements, and risk analysis. Data sources document catalogs
18 training datasets, medical literature sources, and real-world data
streams including HAM10000, ISIC Archive, and Fitzpatrick17k.

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: DrAgnes DermLite integration and 25-year future vision research

DermLite integration covers HUD/DL5/DL4/DL200 device capabilities,
image capture via MediaStream API, ABCDE criteria automation, 7-point
checklist, Menzies method, and pattern analysis modules. Future vision
spans AR-guided biopsy (2028), continuous monitoring wearables (2040),
genomic fusion (2035), BCI clinical gestalt (2045), and global
elimination of late-stage melanoma detection by 2050.

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: DrAgnes competitive analysis and deployment plan research

Competitive analysis covers SkinVision, MoleMap, MetaOptima, Canfield,
Google Health, 3Derm, and MelaFind with feature matrix comparison.
Deployment plan details Google Cloud architecture with Cloud Run
services, Firestore/GCS data storage, Pub/Sub events, multi-region
strategy, security configuration, cost projections ($3.89/practice at
1000-practice scale), and disaster recovery procedures.

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: ADR-117 DrAgnes dermatology intelligence platform

Proposes DrAgnes as an AI-powered dermatology platform built on
RuVector's CNN, brain, and WASM infrastructure. Covers architecture,
data model, API design, HIPAA/FDA compliance strategy, 4-phase
implementation plan (2026-2051), cost model showing $3.89/practice
at scale, and acceptance criteria targeting >95% melanoma sensitivity
with offline-first WASM inference in <200ms.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(dragnes): deployment config — Dockerfile, Cloud Run, PWA manifest, service worker

Add production deployment infrastructure for DrAgnes:
- Multi-stage Dockerfile with Node 20 Alpine and non-root user
- Cloud Run knative service YAML (1-10 instances, 2 vCPU, 2 GiB)
- GCP deploy script with rollback support and secrets integration
- PWA manifest with SVG icons (192x192, 512x512)
- Service worker with offline WASM caching and background sync
- TypeScript configuration module with CNN, privacy, and brain settings

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs(dragnes): user-facing documentation and clinical guide

Add comprehensive DrAgnes documentation covering:
- Getting started and PWA installation
- DermLite device integration instructions
- HAM10000 classification taxonomy and result interpretation
- ABCDE dermoscopy scoring methodology
- Privacy architecture (DP, k-anonymity, witness hashing)
- Offline mode and background sync behavior
- Troubleshooting guide
- Clinical disclaimer and regulatory status

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(dragnes): brain integration — pi.ruv.io client, offline queue, witness chains, API routes

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(dragnes): CNN classification pipeline with ABCDE scoring and privacy layer

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(dragnes): resolve build errors by externalizing @ruvector/cnn

Mark @ruvector/cnn as external in Rollup/SSR config so the dynamic
import in the classifier does not break the production build.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(dragnes): app integration, health endpoint, build validation

- Add DrAgnes nav link to sidebar NavMenu
- Create /api/dragnes/health endpoint with config status
- Add config module exporting DRAGNES_CONFIG
- Update DrAgnes page with loading state & error boundaries
- All 37 tests pass, production build succeeds

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(dragnes): benchmarks, dataset metadata, federated learning, deployment runbook

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(dragnes): use @vite-ignore for optional @ruvector/cnn import

Prevents Vite dev server from failing on the optional WASM dependency
by using /* @vite-ignore */ comment and variable-based import path.

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(dragnes): reduce false positives with Bayesian-calibrated classifier

Apply HAM10000 class priors as Bayesian log-priors to demo classifier,
learned from pi.ruv.io brain specialist agent patterns:
- nv (66.95%) gets strong prior, reducing over-classification of rare types
- mel requires multiple simultaneous features (dark + blue + multicolor +
  high variance) to overcome its 11.11% prior
- Added color variance analysis as asymmetry proxy
- Added dermoscopic color count for multi-color detection
- Platt-calibrated feature weights from brain melanoma specialist

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(dragnes): require ≥2 concurrent evidence signals for melanoma

A uniformly dark spot was triggering melanoma at 74.5%. Now requires
at least 2 of: [dark >15%, blue-gray >3%, ≥3 colors, high variance]
to overcome the melanoma prior. Proven on 6 synthetic test cases:
0 false positives, 1/1 true melanoma detected at 91.3%.

Co-Authored-By: claude-flow <ruv@ruv.net>

* data(dragnes): HAM10000 metadata and analysis script

Add comprehensive analysis of the HAM10000 skin lesion dataset based on
published statistics from Tschandl et al. 2018. Generates class distribution,
demographic, localization, diagnostic method, and clinical risk pattern
analysis. Outputs both markdown report and JSON stats for the knowledge module.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(dragnes): HAM10000 clinical knowledge module with demographic adjustment

Add ham10000-knowledge.ts encoding verified HAM10000 statistics as structured
data for Bayesian demographic adjustment. Includes per-class age/sex/location
risk multipliers, clinical decision thresholds (biopsy at P(mal)>30%, urgent
referral at P(mel)>50%), and adjustForDemographics() function implementing
posterior probability correction based on patient demographics.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(dragnes): integrate HAM10000 knowledge into classifier

Add classifyWithDemographics() method to DermClassifier that applies Bayesian
demographic adjustment after CNN classification. Returns both raw and adjusted
probabilities for transparency, plus clinical recommendations (biopsy, urgent
referral, monitor, or reassurance) based on HAM10000 evidence thresholds.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(dragnes): wire HAM10000 demographics into UI

- Add patient age/sex inputs in Capture tab
- Toggle for HAM10000 Bayesian adjustment
- Pass body location from DermCapture to classifyWithDemographics()
- Clinical recommendation banner in Results tab with color-coded
  risk levels (urgent_referral/biopsy/monitor/reassurance)
- Shows melanoma + malignant probabilities and reasoning

Co-Authored-By: claude-flow <ruv@ruv.net>

* refactor(dragnes): move to standalone examples/dragnes/ app

Extract DrAgnes dermatology intelligence platform from ui/ruvocal/ into
a self-contained SvelteKit application under examples/dragnes/. Includes
all library modules, components, API routes, tests, deployment config,
PWA assets, and research documentation. Updated paths for standalone
routing (no /dragnes prefix), fixed static asset references, and
adjusted test imports.

Co-Authored-By: claude-flow <ruv@ruv.net>

* revert: restore ui/ruvocal to main state -- remove DrAgnes commingling

Remove all DrAgnes-related files, components, routes, and config from
ui/ruvocal/ so it matches the main branch exactly. DrAgnes now lives
as a standalone app in examples/dragnes/.

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(ruvocal): fix icon 404 and FoundationBackground crash

- Manifest icon paths: /chat/chatui/ → /chatui/ (matches static dir)
- FoundationBackground: guard against undefined particles in connections

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(ruvocal): MCP SSE auto-reconnect on stale session (404/connection errors)

- Widen isConnectionClosedError to catch 404, fetch failed, ECONNRESET
- Add transport readyState check in clientPool for dead connections
- Retry logic now triggers reconnection on stale SSE sessions

Co-Authored-By: claude-flow <ruv@ruv.net>

* chore: update gitignore for nested .env files and Cargo.lock

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: update links in README for self-learning, self-optimizing, embeddings, verified training, search, storage, PostgreSQL, graph, AI runtime, ML framework, coherence, domain models, hardware, kernel, coordination, packaging, routing, observability, safety, crypto, and lineage sections

* docs: ADR-115 cost-effective strategy + ADR-118 tiered crawl budget

Add Section 15 to ADR-115 with cost-effective implementation strategy:
- Three-phase budget model ($11-28/mo -> $73-108 -> $158-308)
- CostGuardrails Rust struct with per-phase presets
- Sparsifier-aware graph management (partition on sparse edges)
- Partition timeout fix via caching + background recompute
- Cloud Scheduler YAML for crawl jobs
- Anti-patterns and cost monitoring

Create ADR-118 as standalone cost strategy ADR with:
- Detailed per-phase cost breakdowns
- Guardrail enforcement points
- Partition caching strategy with request flow
- Acceptance criteria tied to cost targets

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: add pi.ruv.io brain guidance and project structure to CLAUDE.md

- When/how to use brain MCP tools during development
- Brain REST API fallback when MCP SSE is stale
- Google Cloud secrets and deployment reference
- Project directory structure quick reference
- Key rules: no PHI/secrets in brain, category taxonomy, stale session fix

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: Common Crawl Phase 1 benchmark — pipeline validation results

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(brain): make InjectRequest.source optional for batch inject

The batch endpoint falls back to BatchInjectRequest.source when items
don't have their own source field, but serde deserialization failed
before the handler could apply this logic (422). Adding #[serde(default)]
lets items omit source when using batch inject.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat: Common Crawl Phase 1 deployment script — medical domain scheduler jobs

Deploy CDX-targeted crawl for PubMed + dermatology domains via Cloud Scheduler.
Uses static Bearer auth (brain server API key) instead of OIDC since Cloud Run
allows unauthenticated access and brain's auth rejects long JWT tokens.

Jobs: brain-crawl-medical (daily 2AM, 100 pages), brain-crawl-derm (daily 3AM,
50 pages), brain-partition-cache (hourly graph rebuild).

Tested: 10 new memories injected from first run (1568->1578). CDX falls back to
Wayback API from Cloud Run. ADR-118 Phase 1 implementation.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat: ADR-119 historical crawl evolutionary comparison

Implement temporal knowledge evolution tracking across quarterly
Common Crawl snapshots (2020-2026). Includes:
- ADR-119 with architecture, cost model, acceptance criteria
- Historical crawl import script (14 quarterly snapshots, 5 domains)
- Evolutionary analysis module (drift detection, concept birth, similarity)
- Initial analysis report on existing brain content (71 memories)

Cost: ~$7-15 one-time for full 2020-2026 import.

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: update ADR-115/118/119 with Phase 1 implementation results

- ADR-115: Status → Phase 1 Implemented, actual import numbers (1,588 memories,
  372K edges, 28.7x sparsifier), CDX vs direct inject pipeline status
- ADR-118: Status → Phase 1 Active, scheduler jobs documented, CDX HTML
  extractor issue + direct inject workaround, actual vs projected cost
- ADR-119: 30+ temporal articles imported (2020-2026), search verification
  confirmed, acceptance criteria progress tracked

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat: WET processing pipeline for full medical + CS corpus import (ADR-120)

Bypasses broken CDX HTML extractor by processing pre-extracted text
from Common Crawl WET files. Filters by 30 medical + CS domains,
chunks content, and batch injects into pi.ruv.io brain.

Includes: processor, filter/injector, Cloud Run Job config,
orchestrator for multi-segment processing.

Target: full corpus in 6 weeks at ~$200 total cost.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat: Cloud Run Job deployment for full 6-year Common Crawl import

- Expanded domain list to 60+ medical + CS domains with categorized tagging
- Cloud Run Job config: 10 parallel tasks, 100 segments per crawl
- Multi-crawl orchestrator for 14 quarterly snapshots (2020-2026)
- Enhanced generateTags with domain-specific labels for oncology, dermatology,
  ML conferences, research labs, and academic institutions
- Target: 375K-500K medical/CS pages over 5 months

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix: correct Cloud Run Job deploy to use env-vars-file and --source build

- Use --env-vars-file (YAML) to avoid comma-splitting in domain list
- Use --source deploy to auto-build container from Dockerfile
- Use correct GCS bucket (ruvector-brain-us-central1)
- Use --tasks flag instead of --task-count

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix: bake WET paths into container image to avoid GCS auth at runtime

- Embed paths.txt directly into Docker image during build
- Remove GCS bucket dependency from entrypoint
- Add diagnostic logging for brain URL and crawl index per task

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: update ADR-120 with deployment results and expanded domain list

- Status → Phase 1 Deployed
- 8 local segments: 109 pages injected from 170K scanned
- Cloud Run Job executing (50 segments, 10 parallel)
- 4 issues fixed (paths corruption, task index, comma splitting, gsutil)
- Domain list expanded 30 → 60+
- Brain: 1,768 memories, 565K edges, 39.8x sparsifier

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix: WET processor OOM — process records inline, increase memory to 2Gi

Node.js heap exhausted at 512MB buffering 21K WARC records.
Fix: process each record immediately instead of accumulating in
pendingRecords array. Also cap per-record content length and
increase Cloud Run Job memory from 1Gi to 2Gi with --max-old-space-size=1536.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat: add 30 physics domains + keyword detection to WET crawler

Add CERN, INSPIRE-HEP, ADS, NASA, LIGO, Fermilab, SLAC, NIST,
Materials Project, Quanta Magazine, quantum journals, IOP, APS,
and national labs. Physics keyword detection for dark matter,
quantum, Higgs, gravitational waves, black holes, condensed matter,
fusion energy, neutrinos, and string theory.

Total domains: 90+ (medical + CS + physics).

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat: expand WET crawler to 130+ domains across all knowledge areas

Added: GitHub, Stack Overflow/Exchange, patent databases (USPTO, EPO),
preprint servers (bioRxiv, medRxiv, chemRxiv, SSRN), Wikipedia,
government (NSF, DARPA, DOE, EPA), science news, academic publishers
(JSTOR, Cambridge, Sage, Taylor & Francis), data repositories
(Kaggle, Zenodo, Figshare), and ML explainer blogs.

Total: 130+ domains covering medical, CS, physics, code, patents,
preprints, regulatory, news, and open data.

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(brain): update Gemini model to gemini-2.5-flash with env override

Old model ID gemini-2.5-flash-preview-05-20 was returning 404.
Updated default to gemini-2.5-flash (stable release).
Added GEMINI_MODEL env var override for future flexibility.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(brain): integrate Google Search Grounding into Gemini optimizer (ADR-121)

Add google_search tool to Gemini API calls so the optimizer verifies
generated propositions against live web sources. Grounding metadata
(source URLs, support scores, search queries) logged for auditability.

- google_search tool added to request body
- Grounding metadata parsed and logged
- Configurable via GEMINI_GROUNDING env var (default: true)
- Model updated to gemini-2.5-flash (stable)
- ADR-121 documents integration

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(brain): deploy-all.sh preserves env vars, includes all features

CRITICAL FIX: Changed --set-env-vars to --update-env-vars so deploys
don't wipe FIRESTORE_URL, GEMINI_API_KEY, and feature flags.

Now includes:
- FIRESTORE_URL auto-constructed from PROJECT_ID
- GEMINI_API_KEY fetched from Google Secrets Manager
- All 22 feature flags (GWT, SONA, Hopfield, HDC, DentateGyrus,
  midstream, sparsifier, DP, grounding, etc.)
- Session affinity for SSE MCP connections

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: update ADR-121 with deployment verification and optimization gaps

- Verified: Gemini 2.5 Flash + grounding working
- Brain: 1,808 memories, 611K edges, 42.4x sparsifier
- Documented 5 optimization opportunities:
  1. Graph rebuild timeout (>90s for 611K edges)
  2. In-memory state loss on deploy
  3. SONA needs trajectory injection path
  4. Scheduler jobs need first auto-fire
  5. WET daily needs segment rotation

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: design rvagent autonomous Gemini grounding agents (ADR-122)

Four-phase system for autonomous knowledge verification and enrichment
of the pi.ruv.io brain using Gemini 2.5 Flash with Google Search
grounding. Addresses the gap where all 11 propositions are is_type_of
and the Horn clause engine has no relational data to chain.

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: ADR-122 Rev 2 — candidate graph, truth maintenance, provenance

Applied 6 priority revisions from architecture review:
1. Reworked cost model with 3 scenarios (base/expected/worst)
2. Added candidate vs canonical graph separation with promotion gates
3. Narrowed predicate set to causes/treats/depends_on/part_of/measured_by
4. Replaced regex-only PHI with allowlist-based serialization
5. Added truth maintenance state machine (7 proposition states)
6. Added provenance schema for every grounded mutation

Status: Approved with Revisions

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat: implement 4 Gemini grounding agents + Cloud Run deploy (ADR-122)

Phase 1 (Fact Verifier): verified 2 memories with grounding sources
Phase 2 (Relation Generator): found 1 'contradicts' relation
Phase 3 (Cross-Domain Explorer): framework working, needs JSON parse fix
Phase 4 (Research Director): framework working, needs drift data

Scripts: gemini-agents.js, deploy-gemini-agents.sh
Cloud Run Job + 4 scheduler entries deploying.
Brain grew: 1,809 → 1,812 (+3 from initial run)

Co-Authored-By: claude-flow <ruv@ruv.net>

* perf(brain): upgrade to 4 CPU / 4 GiB / 20 instances + rate limit WET injector

- Cloud Run: 2 CPU → 4 CPU, 2 GiB → 4 GiB, max 10 → 20 instances
- WET injector: 1s delay between batch injects to prevent brain saturation
- Deploy script updated to match new resource allocation

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs: ADR-122 Rev 2 — candidate graph, truth maintenance, provenance

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-23 10:12:50 -04:00
Claude
7f802684e7 feat: 10 exotic frontier discovery datasets — 233 entries across 10 domains
New discovery files covering unexplored knowledge frontiers:
- Exotic AI architectures (25): Liquid NNs, KANs, Mamba, Neural ODEs, MoE
- Consciousness & cognition (20): IIT, GWT, Free Energy, Active Inference
- Quantum biology (20): photosynthesis coherence, enzyme tunneling, magnetoreception
- Convergent technologies (20): BCI, xenobots, molecular machines, DNA computing
- Dark frontiers (21): dark matter/energy, vacuum decay, Fermi paradox
- Xenolinguistics (15): SETI protocols, whale decoding, biosemiotics
- Post-scarcity economics (15): UBI, DAOs, degrowth, circular economy
- Biomimetic systems (15): slime mold computing, mycelial networks, neuromorphic
- Temporal physics (14): time crystals, CTCs, retrocausality, causal sets
- Metacognition & learning (18): MAML, self-play, DreamerV3, MuZero, RLHF

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:21:01 -04:00
Claude
6f53d5b759 feat: Middle East causal analysis — 37-layer model, 63-node network, 25-actor DIME
- swarm_mideast_causal_layers.json: 37 entries across 3 layers (structural,
  triggers, accelerants) with severity, trend, and time horizon
- swarm_mideast_causal_network.json: 63 nodes (37 causes + 14 actors +
  5 resources + 7 outcomes), 103 directed edges with evidence citations
- swarm_mideast_actors_interests.json: 25 actors (14 state, 6 non-state,
  5 institutions) with DIME framework analysis and 2025-2026 predictions

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:21:01 -04:00
Claude
69fdebc6f2 feat: cross-domain geopolitical correlations and swarm manifest from 15-agent exploration
Add swarm_geopolitics_correlations.json with 12 cross-domain correlation
entries mapping relationships between energy-compute nexus, war-energy-inflation
loops, sovereign compute race, dollar hegemony erosion, defense-tech convergence,
nuclear proliferation chains, and 6 other systemic risk patterns. Each correlation
includes evidence from collected datasets, risk levels (1-10), trend directions,
second-order effects, and actionable insights.

Add swarm_manifest.json cataloging all 120 swarm discovery files (1,677 total
entries, 1.48 MB) across 15 specialized agents covering geopolitics, technology,
energy, finance, defense, space, environment, and science domains.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:17:01 -04:00
Claude
5f59c842fc feat: 691 discoveries, 50 cross-domain correlations via per-node PPR
Expanded to 13 domains with 14 new data sources:
- Extreme exoplanets (ultra-short period), NOAA solar wind/sunspots,
  ESO press releases, CERN Higgs, NASA Techport, SIMBAD pulsars,
  TESS planet candidates, deep earthquakes (>300km), WHO global health,
  SDSS galaxies, satellite fires, Mars weather

Pipeline improvements:
- Per-node ForwardPush PPR (eps=0.0001) instead of domain-seed
- 12-NN sparse graph for better cross-domain bridge detection
- De-duplicated correlations with seen-set

Top novel discoveries by sublinear solver:
- Space-science → Earth: solar activity correlates with deep earthquakes
- Materials-physics → Space-science: solar region AR14384 persistence
- Earth-science → Economics: crypto bear market + global growth slowdown
- Culture → Space-science: elevated solar activity + dense NEO approaches

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:17:00 -04:00
Claude
7cc5f31585 feat: ETL pipeline with sublinear ForwardPush PPR for cross-domain discovery
Three-stage pipeline (Extract → Transform → Load) using ruvector-solver:
- Extract: loads 460+ discoveries from 48 JSON data sources
- Transform: embeds into 64-dim vectors, builds 8-NN sparse graph,
  runs ForwardPush PPR (sublinear O(1/ε), Andersen-Chung-Lang 2006)
- Load: outputs ranked cross-domain correlations + 12×12 domain matrix

New data sources from parallel explorer swarms:
- Humanities: Harvard Art, Library of Congress, Open Library, Nobel, Smithsonian
- Genetics/Env: ClinVar variants, GBIF endangered, EPA air, marine, satellite fires
- Tech/Infra: GitHub trending, Hacker News, SpaceX, ISS, crypto/forex markets

Novel discoveries found by PPR:
- Technology→Earth climate correlation (equatorial weather patterns)
- Technology→Space-science link (ultra-short period brown dwarf)
- Life-science→Academic (agentic AI + GPCR drug discovery bridge)

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:17:00 -04:00
Claude
c5f2f2ceb7 feat: expand discovery swarm to 25+ domains with 200+ new entries
New data sources: NASA APOD, GBIF biodiversity, Open-Meteo climate,
solar flares, USGS rivers, arXiv papers, NOAA ocean buoys, disease
tracking, air quality, 126 asteroid close approaches, NASA natural
events (wildfires), and cross-domain correlation engine.

Also adds train-discoveries crate for RuVector-based cross-domain
similarity search training pipeline.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:16:24 -04:00
Claude
ea37388220 feat: 15-agent concurrent discovery swarm with 12 new data sources
Add swarm_train_15.sh that runs 15 parallel discovery agents targeting
all undertrained domains. New sources: NCBI Gene, UniProt, CrossRef,
CERN Open Data, PubChem, World Bank (expanded), NASA DONKI (CME/IPS/SEP).

Coverage: 140 total discoveries across 5 domains:
- space-science: 46 (exoplanets, NEOs, GW, CMEs, flares)
- medical-genomics: 35 (PubMed, NCBI Gene, UniProt proteins)
- earth-science: 25 (earthquakes, geomagnetic storms)
- materials-physics: 18 (CERN, PubChem, CrossRef)
- economics-finance: 16 (World Bank GDP/CPI/unemployment)

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:16:24 -04:00
Claude
614c070162 feat: discover ↔ train feedback loop with live API discovery
Add scripts/discover_and_train.sh — a 2-cycle feedback loop that:
1. DISCOVER: Fetches live data from NASA (exoplanets, NEOs), USGS
   (earthquakes), NOAA (solar/geomagnetic), PubMed, LIGO GraceDB,
   and World Bank APIs
2. TRAIN: Uploads discoveries to pi.ruv.io brain via challenge-nonce auth
3. REFLECT: Queries brain for underrepresented domains
4. REDISCOVER: Targeted gap-filling (PubMed, deep earthquakes, GW events)
5. RETRAIN: Feeds gap-fill discoveries back to brain

Includes live discovery data from today's run:
- 16 anomalous exoplanets (z-score > 2σ mass outliers)
- 4 near-Earth objects (1 hazardous)
- 9 significant earthquakes + 1 geomagnetic storm
- 5 PubMed medical research papers
- 5 LIGO gravitational wave events
- 2 World Bank GDP indicators

61 total memories successfully trained to brain (46 + 15 gap-fill).

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:16:24 -04:00
Claude
6f9dc7a2f0 fix: resolve compilation errors across workspace
- Add PiQ3/PiQ2 match arms in ruvllm-cli quantize memory estimation
- Add main() stub to mincut-gated-transformer-wasm web_scorer example
- Gate scipix OCR examples behind required-features = ["ocr"]
- Fix usize/u64 type mismatch in ruvector-cnn kernel_equivalence test

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:15:25 -04:00
Claude
a38aa43f73 feat: discovery data from 4 domains + trainer Dockerfile
Live discoveries from NASA, USGS, NOAA, arXiv, OpenAlex, World Bank,
CoinGecko across space, earth, academic, and economics domains.
Dockerfile for the daily brain training Cloud Run job.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
e2ba3b2e25 feat: deep discovery analyses + brain MCP training integration
Add 4 new graph-cut examples analyzing real public datasets:
- seismic_risk.rs: Gutenberg-Richter b-value anomaly detection per grid cell
- climate_tipping.rs: multi-resolution cross-scale regime change detection
- habitability_bias.rs: exoplanet habitability scoring + discovery-method bias
- brain_training_integration.rs: feeds discoveries into π.ruv.io SONA training

Fix brain MCP server: wire 7 missing AGI tool dispatches (brain_train,
brain_agi_status, brain_sona_stats, brain_temporal, brain_explore,
brain_midstream, brain_flags) into handle_mcp_tool_call.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
794d9dae7f feat: real-data discovery pipeline across 3 public datasets
Analyze real NASA, USGS, and NOAA data using graph-cut anomaly detection:
- Exoplanets: flagged VHS J1256b (5085 Mearth direct-imaging outlier),
  CFHTWIR-Oph 98b (wide-orbit giant), Kepler-1704b (e=0.92 eccentric)
- Earthquakes: detected Tonga deep swarm (51 events, avg depth 546km),
  M7.1 Malaysia deep quake (620km), M6.0 Italy deep event (382km)
- Climate: 2010-2026 warming rate +0.385C/decade (2x faster than 1970-1990),
  2025 is warmest year at +1.31C anomaly

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
24c62fcfce feat: QAOA quantum graph-cut solver via ruQu
New example qaoa_graphcut.rs demonstrates quantum-classical hybrid
graph-cut solving using ruQu's QAOA MaxCut implementation as an
alternative to the classical Edmonds-Karp mincut solver.

- 3 test cases: 1D chains (8, 10 nodes) and 2D grid (3x4)
- Encodes graph-cut as MaxCut with source/sink auxiliary nodes
- Compares QAOA vs classical: energy, quality ratio, F1
- Convergence analysis sweeping QAOA depth p=1-5
- 340 lines, self-contained

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
20f93274e0 feat: Kepler's 3rd law, seeded orbits, log BLS grid, multi-duration search
PlanetDashboard: semi-major axis uses a=P^(2/3) instead of P/30,
orbit eccentricity/inclination derived from candidate name hash
for deterministic reproducibility.

planet_detection: 400 log-spaced trial periods for uniform sensitivity,
5 trial transit durations (0.01-0.035) instead of single 0.02 duty cycle.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
0e7cfb9b0b refactor: trim ADR-040 to 493 lines, enhance real_microlensing adapter
ADR-040: Replace extracted dashboard and microlensing sections with
cross-references to ADR-040a and ADR-040b. Condense data model,
adapters, and constructs. Core pipeline content preserved.

real_microlensing: Add download manifest with 12 real OGLE/MOA events
(8 confirmed planets), cross-survey normalization, enhanced MOA parser,
simulated download from published parameters.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
86087c3ef4 docs: ADR-040 sub-splits and real_microlensing doc cleanup
- Split ADR-040 into sub-ADRs: 040a (dashboard), 040b (microlensing/cross-domain)
- Clean up real_microlensing.rs documentation header

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
9a86cca25c fix: XSS sanitization, sort comparator, iterative cut refinement
- PlanetDashboard: add escapeHtml() for API data in innerHTML (XSS fix),
  extend string column set for proper sort ordering
- exomoon_graphcut: 3-iteration mincut with lambda boost/decay
  (F1 improved 0.261 → 0.308, +18%)
- planet_detection: document synthetic embedding limitation

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
49807d6d71 feat: benchmark-driven optimization, missing dashboard components, ADR update
Benchmark results and optimizations:
- Medical: Dice 0.559-0.750 vs threshold 0.316-0.461 (+41-77%)
- Genomic: WGS sens=0.951/spec=1.000, all 4 drivers detected
- Climate: F1=0.513 vs 0.333 (+54%), precision 0.833
- Cyber: recall 0.762 vs 0.375, F1=0.400 vs 0.377
- Supply chain: precision 0.890, FPR 0.007 vs 0.014
- Financial: recall 0.800, FPR -40% vs threshold
- Exomoon: F1=0.261 (perturbative SNR limit)

Missing dashboard components (ADR-040 spec):
- MoleculeMatrix.ts: heatmap of molecule confidence for V4 Life
- CausalFlow.ts: animated particles along causal edges for V1 Atlas
- LODController.ts: boundary/topk/full level-of-detail for atlas
- DownloadProgress.ts: tier progress bars for V5 Status

ADR-040 additions:
- Microlensing pipeline (M0-M3) with MRF/mincut formulation
- Cross-domain graph-cut applications (6 verticals)
- Measured results section with benchmark data
- Rust crate structure documentation
- Additional data sources (OGLE, MOA, TCGA, CICIDS2017, etc.)

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
0d240bc74e fix: finalize climate_graphcut.rs from background agent
https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
509a253749 feat: add fintech, cybersecurity, and climate graph-cut examples
- Financial fraud: credit card fraud detection with 5 attack types
  (card-not-present, account takeover, card clone, synthetic, refund),
  log-normal transaction amounts, temporal chain + merchant edges
- Cybersecurity: network threat detection with 6 attack types
  (port scan, brute force, exfiltration, C2 beacon, DDoS, lateral
  movement), flow-level features, source/destination graph edges
- Climate: environmental anomaly detection on 30x40 station grid
  with 6 event types (heat wave, pollution spike, drought, ocean
  warming, cold snap, sensor fault), spatial adjacency + gradient
  weighted edges

All examples use Edmonds-Karp mincut, RVF witness chains, filtered
queries, and lineage derivation.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
b0a109a715 feat: optimize graph-cut pipelines, add supply chain anomaly detection
- Medical: adaptive local thresholding (7x7 neighborhood), 8-connected
  grid with Gaussian gradient-weighted edges
- Genomic: platform-adaptive thresholds, GC-content bias correction,
  skip-2 segment smoothing edges
- Exomoon: finer bump-fit grid (16x8 vs 11x5) for better perturbation
  sensitivity
- New: supply chain anomaly detection (logistics vertical) with 6
  disruption types, multi-tier network graph, RVF witness chain

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
3a26c3dc8b refine: streamline medical and genomic graph cut examples
Reduce both examples to under 500 lines per CLAUDE.md guidelines.
Preserve all functionality: graph cut segmentation, RVF integration,
witness chains, evaluation metrics, and cancer driver gene detection.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
e5dc45d962 feat: add real microlensing, medical imaging, and genomic graph cut pipelines
Three new examples extending the graph cut / MRF optimization framework:

1. real_microlensing.rs — Real data analysis pipeline
   - Simulates events with parameters from published OGLE/MOA discoveries
   - OGLE-2005-BLG-390 (first cool super-Earth), MOA-2011-BLG-262 (rogue+moon candidate)
   - OGLE-2016-BLG-1195 (ice planet), MOA-2009-BLG-387 (massive planet)
   - OGLE EWS format parser for future real data ingestion
   - Correctly identifies 2 planet candidates + 1 moon candidate
   - Cross-event similarity search via RVF embeddings

2. medical_graphcut.rs — Medical imaging lesion segmentation
   - Synthetic 2D tissue with injected tumors (T1-MRI, T2-MRI, CT modalities)
   - Per-voxel feature extraction: intensity, texture, multi-scale statistics
   - Graph cut with spatial adjacency + gradient-weighted edges
   - Outperforms simple thresholding: Dice 0.44-0.59 vs 0.32-0.46
   - RVF storage with modality-filtered similarity search

3. genomic_graphcut.rs — DNA copy number variant detection
   - Synthetic chromosomes with CNV gains, losses, LOH, mutation hotspots
   - WGS (30x), WES (100x), targeted panel (500x) sequencing platforms
   - Graph cut segmentation: linear chain + RuVector similarity edges
   - Cancer driver genes (TP53, BRCA1, EGFR, MYC) detected across all platforms
   - Sensitivity 91-95%, specificity 66-97% depending on platform

All examples include RVF integration (embeddings, filtered queries, lineage,
witness chains) and demonstrate the graph cut framework's versatility across
astrophysics, medical imaging, and genomics domains.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
dbebc19680 refine: improve exomoon graph cut pipeline detection quality
Key improvements to the exomoon detection pipeline:

PSPL Fitting:
- Extract pspl_chi2_at() helper for reuse
- Add fine refinement pass (±1 unit, 0.2 step) around coarse grid best
- Better parameter recovery for all geometric parameters

Lambda Computation:
- Three complementary statistics: excess chi2, runs test coherence, Gaussian bump fit
- Excess chi2 normalized against event's global reduced chi2 (not theoretical)
- Differential lambda: compare each window to its tau-neighbors, producing
  z-scores that are ~0 for uniform fit quality and positive for localized anomalies
- This key change prevents the cut from labeling entire peak regions as moon

Detection Criteria:
- J-score from lambda_sum with per-window penalty (replacing BIC formalism)
- Fragility bootstrap for support stability
- Support fraction bounded (2-50%) for localization

Embeddings:
- Fixed residual computation to use fitted F_s * A(u) + F_b model
- Injection bank labels based on positive local evidence (not just geometry)
- Bank size increased to 60 events for better prior calibration

Current metrics: P=25%, R=25%, F1=0.25 on 30 synthetic events.
Detection quality is limited by the perturbative Chang-Refsdal
approximation — production requires a full polynomial lens solver,
as noted in the user's formulation.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
8ae369312b feat: add exomoon detection via graph cut / MRF optimization
Implements full s-t mincut pipeline for exomoon detection:
- Binary lens (Chang-Refsdal perturbation) magnification model
- PSPL grid search with linear F_s/F_b regression
- Per-window lambda_i scoring with Occam penalty
- RuVector retrieval prior from injection bank
- Temporal chain + kNN pairwise edges for MRF graph
- Edmonds-Karp BFS max-flow / min-cut solver
- Global BIC + fragility J-score decision rule
- MOA-II and OGLE-IV survey cadence adapters
- RVF integration with witness chains and metadata

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
11b274710f fix: correct metadata field_id type to u16, register microlensing example
- Change FIELD_* constants from u32 to u16 to match MetadataEntry.field_id type
- Add microlensing_detection example to Cargo.toml

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
efe4b5e8d4 fix: planet finder review fixes + add microlensing detection pipeline
Review fixes:
- Fix XSS vulnerability in PlanetDashboard.ts (sanitize innerHTML with API data)
- Fix SNR variance calculation in planet_detection.rs (use out-of-transit only)
- Fix sort comparator for string columns in PlanetDashboard.ts
- Fix material/texture memory leaks in PlanetSystem3D.ts (dispose on clearSystem/destroy)
- Fix camera auto-rotate drift by storing intended radius
- Use Kepler's third law for semi-major axis calculation
- Seed orbit eccentricity/inclination from candidate ID for reproducibility
- Add metadata field constants (replace magic numbers)
- Document synthetic embedding limitation
- Fix ADR-040 typo ("two-machinevisu" → "two-machine")

New feature:
- Add microlensing_detection.rs example with M0-M3 pipeline for rogue planet
  and exomoon candidate detection using synthetic OGLE/MOA-style light curves
  with Paczynski PSPL fitting, residual anomaly detection, and coherence gating

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:42 -04:00
Reuven
2a69e4f4ea style: apply cargo fmt formatting
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-12 20:57:18 -04:00
rUv
88792c52f7 fix: resolve 5 P0 critical issues + 2 pre-existing compile errors
- ONNX embeddings: dynamic dimension detection + conditional token_type_ids (#237)
- rvf-node: add compression field pass-through to Rust N-API struct (#225)
- Cargo workspace: add glob excludes for nested rvf sub-packages (#214)
- ruvllm: fix stats crash (null guard + try/catch) + generate warning (#103)
- ruvllm-wasm: deprecated placeholder on npm (#238)
- Pre-existing: fix ruvector-sparse-inference-wasm API mismatch, exclude from workspace
- Pre-existing: fix ruvector-cloudrun-gpu RuvectorLayer::new() Result handling

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-06 14:03:42 +00:00
rUv
77fa901e6e
fix: ruvector-postgres v0.3.1 — audit bug fixes, 46 SQL functions, Docker publish (#227)
Fixes #226
2026-03-03 12:53:10 -05:00
rUv
c2db75d6be Merge remote-tracking branch 'origin/main' into claude/exo-ai-capability-review-LjcVx
# Conflicts:
#	Cargo.toml
2026-02-27 16:27:34 +00:00
rUv
57b6675706 chore: publish EXO-AI crates v0.1.1 with bug fixes and READMEs
Published to crates.io:
- exo-core v0.1.1
- exo-temporal v0.1.1
- exo-hypergraph v0.1.1
- exo-manifold v0.1.1
- exo-federation v0.1.1
- exo-exotic v0.1.1
- exo-backend-classical v0.1.1

Changes from v0.1.0:
- Fix NaN panics in all partial_cmp().unwrap() calls
- Fix domain ID mismatch (underscores → hyphens)
- Fix SystemTime unwrap → unwrap_or_default
- Add README.md for all crates
- Gate rvf feature behind feature flag in exo-backend-classical
- Convert path dependencies to crates.io version dependencies

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-27 16:26:40 +00:00
rUv
42a5c47fe7 fix: format all files, add EXO crate READMEs, convert path deps to version deps
- Run cargo fmt across entire workspace
- Create README.md files for all 9 EXO-AI crates
- Convert path dependencies to crates.io version dependencies for publishing
- Add [patch.crates-io] to exo workspace for local development

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-27 16:21:14 +00:00
rUv
54399f5292 fix: resolve P0 safety issues in ruvector-dither, thermorust, and exo-ai
- Replace debug_assert with assert for bits bounds in quantize functions
- Guard ChannelDither against 0 channels and invalid bits
- Handle non-finite beta/rate in Langevin/Poisson noise (return 0)
- Remove unused itertools dependency from thermorust
- Fix partial_cmp().unwrap() NaN panics across 7 exo-ai files
- Fix SystemTime unwrap() in transfer_crdt (use unwrap_or_default)
- Fix domain ID mismatch (exo_retrieval → exo-retrieval) in orchestrator
- Update tests to match corrected domain IDs

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-27 16:12:45 +00:00
rUv
85df6b9314
Merge pull request #220 from ruvnet/claude/agentic-robotics-integration-VOZu2
Add ruvector-robotics: unified cognitive robotics platform
2026-02-27 10:47:09 -05:00
Claude
e9230450d6
feat: add ruvector-dither crate and integrate thermorust+dither into exo
ruvector-dither (new crate):
- GoldenRatioDither: additive φ-sequence with best 1-D equidistribution
- PiDither: cyclic 256-entry π-byte table for deterministic weight dithering
- quantize_dithered / quantize_slice_dithered: drop-in pre-quantization offset
- quantize_to_code: integer-code variant for packed-weight use
- ChannelDither: per-channel pool seeded by (layer_id, channel_id) pairs
- DitherSource trait for generic dither composition
- 15 unit tests + 3 doctests; 4 Criterion benchmark groups

exo-backend-classical integration:
- ThermoLayer (thermo_layer.rs): Ising motif coherence gate using thermorust
  - Runs Metropolis steps on clamped activations
  - Returns ThermoSignal { lambda, magnetisation, dissipation_j, energy_after }
  - λ-signal = −ΔE/|E₀|: positive means pattern is settling toward coherence
- DitheredQuantizer (dither_quantizer.rs): wraps ruvector-dither for exo tensors
  - GoldenRatio or Pi kind, per-layer seeding, reset support
  - Supports 3/5/7/8-bit quantization with ε-LSB dither amplitude
- 8 new unit tests across both modules; all 74 existing tests still pass

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 14:30:26 +00:00
Claude
0b6d54e61d
feat(exo): add RVF packaging, fix pattern retrieval, update README
- ExoTransferOrchestrator.package_as_rvf(): serializes all TransferPriors,
  PolicyKernels, and CostCurves into a 64-byte-aligned RVF byte stream
- ExoTransferOrchestrator.save_rvf(path): convenience write-to-file method
- Enable ruvector-domain-expansion rvf feature in exo-backend-classical
- 3 new RVF tests: empty packager, post-cycle magic verification, save-to-file
- substrate.rs: fill pattern field from returned search vector (r.vector.map(Pattern::new))
- README: document 5-phase transfer pipeline, RVF packaging, updated
  architecture diagram, 4 new Key Discoveries, 3 new Practical Applications

All 0 failures across full workspace test suite.

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 14:05:50 +00:00
Claude
bc71837964
feat(exo): resolve 5 TODOs, add cross-phase orchestrator and e2e tests
- vector.rs: convert exo_core::Filter Equal conditions to ruvector HashMap
  filter; store and round-trip _pattern_id in metadata
- substrate.rs: implement BettiNumbers, PersistentHomology, SheafConsistency
  for hypergraph_query using VectorDB stats
- anticipation.rs: implement TemporalCycle pre-fetching via sinusoidal
  phase encoding
- crdt.rs: add T: Display bound to reconcile_crdt; look up score from
  ranking_map by format!("{}", result)
- thermodynamics.rs: rust,ignore → rust,no_run
- ExoTransferOrchestrator: new cross-phase wiring module in
  exo-backend-classical that runs all 5 integration phases in a single
  run_cycle() call (bridge → manifold → timeline → CRDT → emergence)
- transfer_pipeline_test.rs: 5 end-to-end integration tests covering the
  full pipeline (single cycle, multi-cycle, emergence, manifold, CRDT)

All 0 failures across full workspace test suite.

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 13:29:18 +00:00