Commit graph

102 commits

Author SHA1 Message Date
github-actions[bot]
4dedde800c chore: Update RVF NAPI-RS binaries for all platforms
Built from commit 3e8429739f

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-06-12 17:15:13 +00:00
rUv
3e8429739f
perf(rvf,rvm): HNSW query path, RaBitQ, contiguous slab, witness v2, mincut wiring + security hardening (#555)
* chore(rvf): sync Cargo.lock with rvf-wire deps (sha3, subtle)

https://claude.ai/code/session_01C83hbozEXPgoz9iJN5Smhp

* fix(rvf-runtime): deterministic tie-breaking in query result ordering

Equal-distance vectors were selected and ordered by HashMap iteration
order, which changes across process restarts and made query results
non-reproducible (flaky smoke_rvlite_adapter_persistence). Break ties
by vector id in both the top-k heap eviction and the final sort, in
query() and query_with_envelope().

https://claude.ai/code/session_01C83hbozEXPgoz9iJN5Smhp

* perf(rvf): optimize index/runtime hot paths, fix quant codec and manifest discovery

rvf-index:
- Cache SIMD distance-kernel dispatch in a OnceLock function-pointer
  table instead of re-running is_x86_feature_detected! on every call
- Rewrite HNSW search_layer with BinaryHeap min/max-heaps (was sorted
  Vec + O(n) mid-inserts) and a dense Vec<bool> visited bitmap (was a
  per-call SipHash HashSet); deterministic (distance, id) tie-breaking

rvf-runtime:
- Replace per-bit CRC32 loops with crc32fast (same IEEE polynomial,
  byte-identical hashes, ~100x faster) on segment write and verify
- Hoist cosine query-norm computation out of the per-vector scan loop
- Safety-net scan: single pass with HashSet membership (was
  O(k*N*neighbors) with Vec::contains)
- Bulk little-endian f32 serialization in write_vec_seg (one memcpy
  per vector instead of per-element appends)
- Progressively widen the manifest tail scan (64KB -> 1MB -> 16MB ->
  whole file): stores with large segment directories were becoming
  unreadable once the latest manifest fell outside the fixed 64KB
  window; with regression test

rvf-quant:
- encode_quant_seg now emits fully decodable payloads (delegates to
  the real scalar/product encoders; placeholders removed)
- decode_quant_seg returns Result instead of panicking on malformed
  or unknown-type payloads; round-trip and malformed-input tests

https://claude.ai/code/session_01C83hbozEXPgoz9iJN5Smhp

* fix(rvm): bind witness chain to record content; optimize coherence, cap, sched hot paths

rvm-witness (security-critical):
- The chain hash covered only (prev_hash, sequence) — record content
  (action, actor, target, payload, timestamp) was never hashed, so
  verify_chain accepted arbitrarily rewritten history. record_hash is
  now computed over the 44 content bytes (as its doc always claimed)
  and the chain binds it: H(prev || seq || record_hash). verify_chain
  recomputes content hashes; tamper-regression tests added.
- HMAC signer keys the Mac template once at construction instead of
  re-running the key schedule per record (fixed-vector test pins
  signature bytes)
- Witness ring overflow is now observable: total_overwritten counter
  and needs_drain() accessor

rvm-cap:
- Nonce replay window: colliding nonces (A + k*4096) could evict and
  re-admit nonce A. Replaced the two 32KB arrays with one 32KB
  open-addressed table (8-probe bounded); eviction raises the
  watermark so it fails closed. Regression test included.

rvm-coherence:
- internal_weight: O(MAX_EDGES) self-loop scan replaced with O(1)
  adj_matrix[i][i] read (invariant verified across all mutation paths)
- Skip ticks return a cached CoherenceDecision instead of re-running
  the O(n^2) merge-pair pass over stale data; zero-weight pairs skipped
- Mincut: scratch buffers moved into the long-lived bridge (~17KB less
  stack per call), in-place Stoer-Wagner (no working copy), bitmask
  membership, column-scan in-neighbors
- Compile-time guard: CoherenceGraph MAX_NODES > ADJ_DIM now fails to
  compile instead of panicking at the 33rd node; u64 weight deltas
  clamped at the engine boundary

rvm-coherence/rvm-partition:
- Single-slot hash indexes (id_to_node, edge_index) degraded to
  permanent O(N) scans after any collision; both now use bounded
  linear probing with tombstones and probe-proven absence

rvm-sched:
- enqueue() rejects the HYPERVISOR sentinel id, which previously
  wedged a run-queue slot permanently; defensive cleanup in
  switch_next

Tests: 733 workspace + 67 rvm-kernel lib pass (baseline 712); 23 new
tests including tamper-evidence and collision regressions.

https://claude.ai/code/session_01C83hbozEXPgoz9iJN5Smhp

* feat(rvf): wire HNSW index into the runtime query path (~14x speedup)

RvfStore::query was a brute-force O(N*dim) scan; the rvf-index crate was
unused by production queries and QualityEnvelope.evidence fabricated
layer_a=true. The index is now built lazily on first eligible query,
maintained incrementally on ingest, persisted on close() via the existing
INDEX_SEG codec (with a versioned, backward-readable trailer for the
sparse-id mapping), and validated-or-rebuilt on open. Exact scan remains
for small stores (<1024), filtered/COW/membership queries, >25% deleted,
and force_exact; deterministic (distance, id) tie-breaking preserved on
both paths. evidence.layer_a is now set only when the index served the
query.

Measured: 21.7ms -> 1.51ms per query at 100k x 64-dim (criterion,
release), recall@10 = 0.968 at the ef_search=256 floor (>=0.95 gated by
test). +15 tests (recall, index persistence round-trip, evidence honesty,
fallback routing, compaction/overwrite invalidation).

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

* feat(rvm): witness v2 — keyed-BLAKE3 chain with 128-bit links + Merkle sealing

v1 records folded chain links to 32 bits and left the head unanchorable.
The 96-byte v2 record embeds the predecessor MAC full-width and chains via
one keyed-BLAKE3 compression per append (~112ns measured, 9x under the 1us
target); keyed MACs detect last-record tampering and unkeyed forgery,
which v1 could not. Segment sealing accumulates record MACs into a
domain-separated Merkle tree (256/segment) sealed with one signature via
the existing signer infra (HMAC/dual-HMAC/Ed25519/TEE), with inclusion
proofs — expensive crypto moves off the per-record path and roots are
externally anchorable.

v1 logs still verify (version-byte dispatch; v1 only as prefix, head
anchored into the first v2 record); v1 writing is frozen. blake3 added as
pure-Rust no_std. +46 tests covering content/reorder/truncation/wrong-key
/forgery tamper modes, v1 compat, proofs, seals, and mixed logs.

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

* feat(rvm): wire mincut into split decisions; honest partition-switch claim

execute_split previously created an empty child and ignored the computed
cut. It now resolves the boundary from a cached epoch SplitPlan (or
computes on demand) and re-homes move-side neighbors to the child with
their edge weights. Two-tier decisions: exact Stoer-Wagner mincut runs as
a pressure-triggered epoch task; a new Fennel placer (O(degree),
fixed-point gamma=1.5, no_std) handles hot-path placement. Split policy
combines pressure and cut quality: mid-band (8000-9500bp) splits only on
a cut with conductance <= 5000bp; critical pressure stays an
unconditional safety valve.

The sub-10us partition-switch claim was a stub certified by a no-op bench
(~6ns) reported as 1600x faster than target. The real path needs EL2
assembly the crate forbids; instead the measurable register save/restore
lower bound is implemented and benchmarked, the bench is renamed
partition_switch_validation_stub with an honesty gate, a canary test
fails if HARDWARE_SWITCH_IMPLEMENTED flips without revisiting the claim,
and the README row now reads: not validated. +30 tests.

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

* feat(rvf): RaBitQ binary quantization + Vamana alpha-pruning (opt-in)

rvf-quant gains a RaBitQ-style codec: global-centroid centering, 3-round
seeded randomized-Hadamard rotation (orthonormal, reproducible from a
stored u64 seed), 1-bit sign codes with per-vector norm/dot-correction
scalars, and an asymmetric full-precision-query estimator. QUANT_SEG adds
versioned type tag 4 (legacy payloads byte-frozen and still decode;
unknown versions rejected; decode stays panic-free on untrusted bytes).

Query path: opt-in two-stage search (QueryOptions::rabitq, default off) —
estimator scan with oversampling (640-candidate floor) then exact f32
rescore; deterministic (distance, id) tie-breaking; falls back to default
routing for filtered/COW/IP/cosine queries. Measured recall@10 = 0.972 vs
exact on 10k x 128 (gate >= 0.95, test-enforced); code-only compression
exactly 32x.

rvf-index: Vamana-style robust prune (alpha = 1.2, occluded backfill) at
insert and prune time; recall@10 at ef=30 improved 0.986 -> 0.996;
construction determinism preserved. +42 tests (1254 passing, no new
failures).

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

* fix(rvf): harden untrusted decode paths against crafted-file DoS

An adversarial audit confirmed a crafted .rvf could panic or OOM the
process on RvfStore::open(): unvalidated length fields drove
Vec::with_capacity before any byte-availability check. decode_payload now
bounds id_count by available delta bytes (u64 compare before the usize
cast, so 32-bit truncation cannot bypass it); decode_index_seg bounds
restart_count/layer_count/neighbor_count by remaining bytes and rejects
truncated restart padding (was a reachable slice panic); decode_sketch_seg
converts from assert-and-panic to Result with width/depth validated via
checked_mul (closes the width=0 + depth=u32::MAX bypass); decode_product
size products use checked u64 arithmetic so 32-bit (wasm32) targets cannot
wrap usize and read out of bounds. +8 adversarial regression tests.

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

* perf(rvf): contiguous vector slab, non-blocking index rebuild, unified hashing

Vector storage moves from HashMap<u64, Vec<f32>> to a contiguous row-major
slab (id->ordinal map, tombstoned deletes, slot reuse only via compaction);
HNSW/RaBitQ paths read rows as zero-copy slices and iteration is ordinal-
ordered (deterministic across restarts). Brute-force query at 100k x 64:
24.5ms -> 3.8ms (~6.4x). boot() pre-sizes the slab and bulk-copies VEC_SEG
payloads (no per-vector allocs): cold open 257ms -> 202ms (-21.5%). mmap
deferred (CRC verify touches all bytes anyway; memmap2 not in this
workspace) and documented as follow-up.

Audit finding 5: index/RaBitQ lazy builds now run with no lock held behind
an AtomicBool gate (panic-safe clear-on-drop); concurrent queries fall
back to exact scan and keep serving through the entire O(N log N) build.
Overwrite still invalidates and unlinks the stale INDEX_SEG.

Hashing: the two identical bespoke CRC32-rotation implementations in
write_path/read_path now delegate to one source of truth
(hashing::legacy_content_hash); on-disk bytes unchanged. Full rvf-wire
checksum-registry conformance (XXH3-128 + format-version bump +
dual-accept reader) documented as the remaining delta. read_path.rs also
carries the audit''s checked vec-seg size arithmetic. +11 tests; suite
1271 passing, no new failures (one pre-existing wall-clock bench
assertion flakes under load, passes in isolation).

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

* chore(release): prepare rvf 0.2.1/0.2.0/0.3.0 crate bumps, npm 0.2.2/0.1.7, measured-benchmark READMEs

- rvf-types 0.2.0 -> 0.2.1 (QuantType::RaBitQ format extension)
- rvf-index 0.1.0 -> 0.2.0 (Vamana alpha-pruning, hardened INDEX_SEG codec)
- rvf-quant 0.1.0 -> 0.2.0 (RaBitQ codec; decode_sketch_seg now returns Result)
- rvf-runtime 0.2.0 -> 0.3.0 (HNSW query path, INDEX_SEG trailer, QueryOptions::rabitq, vector slab)
- dependent path-dep version reqs updated (cli, import, launch, node, server)
- @ruvector/rvf 0.2.0 -> 0.2.2, @ruvector/rvf-wasm 0.1.6 -> 0.1.7 (rebuilt wasm artifact, 1.89 toolchain + wasm-opt -Oz)
- READMEs: HNSW/RaBitQ/slab docs with measured numbers (Windows x64, criterion release, 100k x 64-dim); rvm witness v2 bench rows

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

* fix(robotics): bump rvf-runtime requirement to 0.3 after release bump

The rvf-runtime 0.2 -> 0.3.0 version bump updated dependents inside the
rvf workspace but missed the root-workspace consumer: ruvector-robotics
pins version 0.2 alongside its path dep, which fails cargo resolution
against the bumped crate (PR #555 CI: failed to select a version for the
requirement rvf-runtime ^0.2). Root Cargo.lock refreshed.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: ruv <ruvnet@users.noreply.github.com>
2026-06-12 13:09:30 -04:00
ruvnet
758fce1a22 chore(workspace): cargo fmt nested workspaces — rvf/, examples/*
Root-level `cargo fmt --all` doesn't recurse into nested workspaces
(crates/rvf/, examples/onnx-embeddings/, examples/data/, …), but
CI's `cargo fmt --all -- --check` was failing on files inside them
(e.g. crates/rvf/rvf-wire/src/hash.rs).

Ran `cargo fmt --all` inside each nested workspace. Mechanical-only
whitespace, no semantic change.

Touched nested workspaces:
  crates/rvf/*
  examples/onnx-embeddings/*
  examples/data/*
  examples/mincut/*
  examples/exo-ai-2025/*
  examples/prime-radiant/*
  examples/rvf/*
  examples/ultra-low-latency-sim/*
  examples/edge/*
  examples/vibecast-7sense/*
  examples/onnx-embeddings-wasm/*

Combined with previous commit (96d8fdc17), the full workspace tree
should now pass `cargo fmt --all -- --check` in CI.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-24 10:51:14 -04:00
github-actions[bot]
5324d17d02 chore: Update RVF NAPI-RS binaries for all platforms
Built from commit c82183f859

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-21 20:31:20 +00:00
rUv
c31d1de2b7 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
github-actions[bot]
a9526ff18c chore: Update RVF NAPI-RS binaries for all platforms
Built from commit b4d6753258

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-13 01:44:04 +00:00
Reuven
cf542ca29c style: apply cargo fmt formatting
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-12 20:57:18 -04:00
github-actions[bot]
0e15b03f3c chore: Update RVF NAPI-RS binaries for all platforms
Built from commit 423908655c

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-06 14:07:54 +00:00
rUv
1b6e725b49 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
f0df76da7f fix: brain security hardening — PII phone/SSN/CC, IP rate limit, anti-Sybil votes (#235)
Expand PiiStripper from 12 to 15 regex rules: add phone number,
SSN, and credit card detection/redaction. Add IP-based rate limiting
(1500 writes/hr per IP) to prevent Sybil key rotation bypass. Add
per-IP vote deduplication (one vote per IP per memory) to prevent
quality score manipulation.

63 server tests + 16 PII tests pass. Deployed to Cloud Run.
2026-03-03 17:52:30 -05:00
rUv
6990be7631 feat: implement rvf-federation crate for federated transfer learning
Implements ADR-057 with 7 modules (2,940 lines, 54 tests):
- types: 4 new segment types (FederatedManifest 0x33, DiffPrivacyProof 0x34,
  RedactionLog 0x35, AggregateWeights 0x36)
- pii_strip: 3-stage pipeline (detect, redact, attest) with 12 regex rules
- diff_privacy: Gaussian/Laplace noise, RDP accountant, gradient clipping
- federation: ExportBuilder + ImportMerger with version-aware conflict resolution
- aggregate: FedAvg, FedProx, Byzantine-tolerant weighted averaging
- policy: FederationPolicy for selective sharing with allow/deny lists
- error: 15 typed error variants

Also updates rvf-types with 4 new segment discriminants (0x33-0x36),
workspace Cargo.toml, and root README (crate count, segment count,
federated learning code example).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-27 15:07:31 +00:00
rUv
df1f52e325 docs: minor README polish for replication and rvf-crypto
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-27 03:38:52 +00:00
rUv
55d7dbb6fd docs: optimize 12 crate READMEs and add SONA learning loop diagram
Standardize all linked crate READMEs to match root README style:
plain-language taglines, comparison tables, key features tables.
Add SONA feedback loop diagram to root README intro.

Crates updated: ruvector-gnn, ruvector-core, ruvector-graph,
ruvector-graph-transformer, sona, ruvector-attention, ruvllm,
ruvector-solver, ruvector-replication, ruvector-postgres,
rvf-crypto, examples/dna.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-27 03:38:42 +00:00
rUv
161f890ddb fix: apply cargo fmt across workspace and fix CI issues
- Run cargo fmt --all to fix formatting in 362 files across the entire workspace
- Add PGDG repository for PostgreSQL 17 in CI test-all-features and benchmark jobs
- Add missing rvf dependency crates to standalone Dockerfile for domain-expansion
- Add sona-learning and domain-expansion features to standalone Dockerfile build
- Create npu.rs stub for ruvector-sparse-inference (fixes rustfmt resolution error)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-21 20:56:38 +00:00
github-actions[bot]
9c96299610 chore: Update RVF NAPI-RS binaries for all platforms
Built from commit 9dc34aabaf

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 18:10:34 +00:00
rUv
084b26446f merge: resolve conflicts with main
Accept main's updated binaries and npm packages, keep our solver
fixes (evaluate-before-train, conservative Thompson, noise injection)
and dashboard/desktop additions.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 18:05:55 +00:00
rUv
265d6cb1b0 feat(rvf): add Causal Atlas dashboard, solver fixes, and desktop app
ADR-040 Causal Atlas implementation with full Three.js dashboard:
- Planet detection, life candidate scoring, Dyson sphere 3D views
- WASM solver with fixed acceptance test (evaluate-before-train,
  conservative Thompson sampling, non-contradictory noise injection)
- wry-based desktop app embedding the full dashboard (1.6 MB binary)
- WebSocket live updates, docs view, download page, status dashboard
- 10/10 seed acceptance pass rate (was ~40% before fixes)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 18:01:09 +00:00
github-actions[bot]
5ad2afea42 chore: Update RVF NAPI-RS binaries for all platforms
Built from commit f58e182a32

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-17 02:01:41 +00:00
rUv
9ebbe0c350 chore(rvf): bump all npm package versions for AGI release
- Platform packages: 0.1.4 → 0.1.7 (all 5 platforms)
- @ruvector/rvf-node: 0.1.6 → 0.1.7
- @ruvector/rvf-solver: 0.1.0 → 0.1.1
- @ruvector/rvf: 0.1.8 → 0.1.9

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-17 01:50:03 +00:00
rUv
f58e182a32 chore(rvf): bump all npm package versions for AGI release
- Platform packages: 0.1.4 → 0.1.7 (all 5 platforms)
- @ruvector/rvf-node: 0.1.6 → 0.1.7
- @ruvector/rvf-solver: 0.1.0 → 0.1.1
- @ruvector/rvf: 0.1.8 → 0.1.9

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-17 01:50:03 +00:00
github-actions[bot]
240dcbc2b7 chore: Update RVF NAPI-RS binaries for all platforms
Built from commit 164fbdb5cd

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-17 01:45:10 +00:00
github-actions[bot]
5962e50a53 chore: Update RVF NAPI-RS binaries for all platforms
Built from commit 164fbdb5cd

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-17 01:45:10 +00:00
rUv
98100558dc feat(rvf): expose AGI components via npm packages
- Create @ruvector/rvf-solver npm package (TypeScript SDK wrapping
  rvf-solver-wasm WASM module with RvfSolver class, Thompson Sampling,
  ReasoningBank, witness chains)
- Add AGI NAPI methods to rvf-node: indexStats, verifyWitness, freeze, metric
- Add store accessors to rvf-runtime: options(), metric(), epoch()
- Update @ruvector/rvf unified SDK to v0.1.8 with solver re-exports
- Update ADRs 032, 036, 037, 039 with AGI npm package details

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-17 01:41:13 +00:00
rUv
125a1003ad feat(rvf): expose AGI components via npm packages
- Create @ruvector/rvf-solver npm package (TypeScript SDK wrapping
  rvf-solver-wasm WASM module with RvfSolver class, Thompson Sampling,
  ReasoningBank, witness chains)
- Add AGI NAPI methods to rvf-node: indexStats, verifyWitness, freeze, metric
- Add store accessors to rvf-runtime: options(), metric(), epoch()
- Update @ruvector/rvf unified SDK to v0.1.8 with solver re-exports
- Update ADRs 032, 036, 037, 039 with AGI npm package details

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-17 01:41:13 +00:00
rUv
e1c0006679 Merge pull request #178 from ruvnet/feat/rvf-cli-release
feat: RVF CLI cross-platform release binaries
2026-02-16 15:20:39 -08:00
rUv
22d67e4a34 Merge pull request #178 from ruvnet/feat/rvf-cli-release
feat: RVF CLI cross-platform release binaries
2026-02-16 15:20:39 -08:00
rUv
e57ad4bc17 feat(rvf-cli): add cross-platform release workflow and update README
- Add release-rvf-cli.yml: builds standalone binaries for Linux x64/ARM64,
  macOS x64/ARM64, and Windows x64 on tag push (rvf-v*)
- Creates GitHub Release with all binaries and SHA256 checksums
- Update CLI README with install instructions for pre-built binaries,
  examples/rvf/output/ usage guide, and full command reference

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 23:19:39 +00:00
rUv
52fe8d8655 feat(rvf-cli): add cross-platform release workflow and update README
- Add release-rvf-cli.yml: builds standalone binaries for Linux x64/ARM64,
  macOS x64/ARM64, and Windows x64 on tag push (rvf-v*)
- Creates GitHub Release with all binaries and SHA256 checksums
- Update CLI README with install instructions for pre-built binaries,
  examples/rvf/output/ usage guide, and full command reference

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 23:19:39 +00:00
github-actions[bot]
7bff682101 chore: Update RVF NAPI-RS binaries for all platforms
Built from commit a9f9b627a1

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 23:06:53 +00:00
github-actions[bot]
ae0e8947c3 chore: Update RVF NAPI-RS binaries for all platforms
Built from commit a9f9b627a1

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 23:06:53 +00:00
rUv
df1a752858 chore: publish rvf-node@0.1.6 with win32-x64-msvc binary
- Published @ruvector/rvf-node-win32-x64-msvc@0.1.4 to npm
- Bumped @ruvector/rvf-node to 0.1.6 (all 5 platform binaries)
- Added publishConfig to win32-x64-msvc package.json

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 23:04:34 +00:00
rUv
a9f9b627a1 chore: publish rvf-node@0.1.6 with win32-x64-msvc binary
- Published @ruvector/rvf-node-win32-x64-msvc@0.1.4 to npm
- Bumped @ruvector/rvf-node to 0.1.6 (all 5 platform binaries)
- Added publishConfig to win32-x64-msvc package.json

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 23:04:34 +00:00
github-actions[bot]
b4873e5020 chore: Update RVF NAPI-RS binaries for all platforms
Built from commit 462a68ab31

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 22:43:15 +00:00
github-actions[bot]
96fc97eb5e chore: Update RVF NAPI-RS binaries for all platforms
Built from commit 462a68ab31

Platforms: linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 22:43:15 +00:00
rUv
f3759f819d fix(ci): resolve all build-rvf-node failures
Three fixes:

1. locking.rs: __errno_location is Linux-only; macOS uses __error().
   Split the extern "C" declarations by target_os so rvf-runtime
   compiles on both platforms.

2. build-rvf-node.yml: NAPI CLI outputs index.<platform>.node instead
   of rvf-node.<platform>.node. Added rename step after build.

3. build-rvf-node.yml: darwin builds need -undefined dynamic_lookup
   RUSTFLAGS so NAPI symbols resolve at runtime via Node.js.
   Added CARGO_TARGET_*_APPLE_DARWIN_RUSTFLAGS env vars.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 22:39:04 +00:00
rUv
462a68ab31 fix(ci): resolve all build-rvf-node failures
Three fixes:

1. locking.rs: __errno_location is Linux-only; macOS uses __error().
   Split the extern "C" declarations by target_os so rvf-runtime
   compiles on both platforms.

2. build-rvf-node.yml: NAPI CLI outputs index.<platform>.node instead
   of rvf-node.<platform>.node. Added rename step after build.

3. build-rvf-node.yml: darwin builds need -undefined dynamic_lookup
   RUSTFLAGS so NAPI symbols resolve at runtime via Node.js.
   Added CARGO_TARGET_*_APPLE_DARWIN_RUSTFLAGS env vars.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 22:39:04 +00:00
rUv
9d1309f2b2 fix(ci): add missing rvf-adapters/claude-flow crate to git
The workspace member crates/rvf/rvf-adapters/claude-flow was listed in
Cargo.toml but gitignored, causing CI builds to fail with:
  "failed to load manifest for workspace member rvf-adapters/claude-flow"

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 21:51:05 +00:00
rUv
aaf61f25a2 fix(ci): add missing rvf-adapters/claude-flow crate to git
The workspace member crates/rvf/rvf-adapters/claude-flow was listed in
Cargo.toml but gitignored, causing CI builds to fail with:
  "failed to load manifest for workspace member rvf-adapters/claude-flow"

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 21:51:05 +00:00
rUv
e8476d10f5 chore(rvf-node): add darwin and linux-arm64 platform binaries
Cross-compiled from Linux via cargo-zigbuild:
- darwin-arm64 (3.1MB Mach-O arm64)
- darwin-x64 (3.1MB Mach-O x86_64)
- linux-arm64-gnu (1.3MB ELF aarch64)

Published platform packages:
- @ruvector/rvf-node-darwin-arm64@0.1.4
- @ruvector/rvf-node-darwin-x64@0.1.4
- @ruvector/rvf-node-linux-arm64-gnu@0.1.4

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 21:42:52 +00:00
rUv
3ff4e041c6 chore(rvf-node): add darwin and linux-arm64 platform binaries
Cross-compiled from Linux via cargo-zigbuild:
- darwin-arm64 (3.1MB Mach-O arm64)
- darwin-x64 (3.1MB Mach-O x86_64)
- linux-arm64-gnu (1.3MB ELF aarch64)

Published platform packages:
- @ruvector/rvf-node-darwin-arm64@0.1.4
- @ruvector/rvf-node-darwin-x64@0.1.4
- @ruvector/rvf-node-linux-arm64-gnu@0.1.4

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 21:42:52 +00:00
rUv
f57bc32d8d fix(rvf): populate backend binaries and fix SDK API wiring
- Build NAPI native addon (linux-x64-gnu, 1.3MB) and WASM binary (42KB)
- Fix NodeBackend to use RvfDatabase class instance methods instead of module-level functions
- Fix WasmBackend to use C-ABI store functions with integer handles
- Add platform loader (index.js) and TypeScript declarations (index.d.ts)
- Create JS glue and type declarations for WASM package
- Set up platform-specific npm packages for all 5 targets
- Bump rvf-node/rvf-wasm to 0.1.4, SDK to 0.1.6
- Fix version pins from 0.1.0 to ^0.1.4

Resolves: rvf-node and rvf-wasm published as empty stubs with no binaries
Verified: E2E test passes (create -> ingest -> query -> status -> close)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 20:24:51 +00:00
rUv
978a0e0d5a fix(rvf): populate backend binaries and fix SDK API wiring
- Build NAPI native addon (linux-x64-gnu, 1.3MB) and WASM binary (42KB)
- Fix NodeBackend to use RvfDatabase class instance methods instead of module-level functions
- Fix WasmBackend to use C-ABI store functions with integer handles
- Add platform loader (index.js) and TypeScript declarations (index.d.ts)
- Create JS glue and type declarations for WASM package
- Set up platform-specific npm packages for all 5 targets
- Bump rvf-node/rvf-wasm to 0.1.4, SDK to 0.1.6
- Fix version pins from 0.1.0 to ^0.1.4

Resolves: rvf-node and rvf-wasm published as empty stubs with no binaries
Verified: E2E test passes (create -> ingest -> query -> status -> close)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 20:24:51 +00:00
rUv
44b015b6aa docs(rvf): remove redundant sections from crate README
- Fix "20 segment types" → "24 segment types" in ASCII anatomy
- Remove duplicate "Category Shift" table (restated capability table)
- Remove duplicate "Where It Runs" table (restated capability table)
- Remove "What You Can Ship" table from Sealed Cognitive Engines
- Remove "What This Enables" 6-item list (restated format capabilities)
- Remove duplicate "Cognitive Containers" and "Security & Trust"
  sub-tables from Features section
- Remove "File Structure with KERNEL_SEG" diagram (duplicated segment tree)
- Convert "Security Hardening" verbose table to compact "Security Modules"
  reference table

Net: -119 lines of redundant content, +13 lines of concise replacements.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 15:37:35 +00:00
rUv
2102136e91 docs(rvf): remove redundant sections from crate README
- Fix "20 segment types" → "24 segment types" in ASCII anatomy
- Remove duplicate "Category Shift" table (restated capability table)
- Remove duplicate "Where It Runs" table (restated capability table)
- Remove "What You Can Ship" table from Sealed Cognitive Engines
- Remove "What This Enables" 6-item list (restated format capabilities)
- Remove duplicate "Cognitive Containers" and "Security & Trust"
  sub-tables from Features section
- Remove "File Structure with KERNEL_SEG" diagram (duplicated segment tree)
- Convert "Security Hardening" verbose table to compact "Security Modules"
  reference table

Net: -119 lines of redundant content, +13 lines of concise replacements.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 15:37:35 +00:00
rUv
20e527150d docs(rvf): improve Security & Trust sections, add live_boot_proof example
- Add introductory paragraph explaining RVF's structural security model
- Expand Security & Trust tables with TEE attestation, KernelBinding,
  adversarial hardening details
- Upgrade Security Hardening from bullet list to defense table
- Add live_boot_proof as example #45, update counts to 46

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:49:52 +00:00
rUv
0316a0d82d docs(rvf): improve Security & Trust sections, add live_boot_proof example
- Add introductory paragraph explaining RVF's structural security model
- Expand Security & Trust tables with TEE attestation, KernelBinding,
  adversarial hardening details
- Upgrade Security Hardening from bullet list to defense table
- Add live_boot_proof as example #45, update counts to 46

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:49:52 +00:00
rUv
afe6a00eb9 docs: update READMEs with self-booting instructions, bump npm versions
- Add Claude Code Appliance walkthrough and 5.1 MB self-boot line to
  crate, examples, npm, and root READMEs
- Add missing live_boot_proof example to table (45→46 examples)
- Update segment count references from 20→24
- Improve rvf-node npm README with full API reference
- Expand AGI Cognitive Container documentation
- Bump npm packages: rvf-node 0.1.3, rvf-wasm 0.1.3,
  rvf-mcp-server 0.1.3, rvf 0.1.5
- Include verified claude_code_appliance output files

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:43:04 +00:00
rUv
d9da216182 docs: update READMEs with self-booting instructions, bump npm versions
- Add Claude Code Appliance walkthrough and 5.1 MB self-boot line to
  crate, examples, npm, and root READMEs
- Add missing live_boot_proof example to table (45→46 examples)
- Update segment count references from 20→24
- Improve rvf-node npm README with full API reference
- Expand AGI Cognitive Container documentation
- Bump npm packages: rvf-node 0.1.3, rvf-wasm 0.1.3,
  rvf-mcp-server 0.1.3, rvf 0.1.5
- Include verified claude_code_appliance output files

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:43:04 +00:00
rUv
89b87d1bec chore: bump rvf-types/rvf-crypto/rvf-runtime to 0.2.0 for new features
Breaking changes from 0.1.0:
- rvf-types: new Security/QualityBelowThreshold error variants, new
  quality module, AGI container types, WASM bootstrap types, Ed25519
  signing, witness/attestation types, QR seed types
- rvf-crypto: new witness chain, attestation, lineage modules
- rvf-runtime: new AGI authority/coherence, QR seed, witness bundles,
  safety net, adversarial detection, domain expansion bridge

Also updates all internal dependency version references.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:04:23 +00:00
rUv
3e4513f784 chore: bump rvf-types/rvf-crypto/rvf-runtime to 0.2.0 for new features
Breaking changes from 0.1.0:
- rvf-types: new Security/QualityBelowThreshold error variants, new
  quality module, AGI container types, WASM bootstrap types, Ed25519
  signing, witness/attestation types, QR seed types
- rvf-crypto: new witness chain, attestation, lineage modules
- rvf-runtime: new AGI authority/coherence, QR seed, witness bundles,
  safety net, adversarial detection, domain expansion bridge

Also updates all internal dependency version references.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:04:23 +00:00