mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-24 22:15:18 +00:00
- Add missing `active_pos` vec in canonical min-cut Stoer-Wagner impl - Bump cognitum-gate-kernel to 0.1.1 for new canonical_witness module - Fix cognitum-gate-kernel ruvector-mincut dep version (0.1.30 → 2.0) - Add version specs to mincut-wasm and mincut-node path dependencies - Add README and metadata to ruvector-cognitive-container for crates.io - Relax bench thresholds for CI/debug-mode environments Co-Authored-By: claude-flow <ruv@ruv.net> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| README.md | ||
ruvector-cognitive-container
Verifiable WASM cognitive container with canonical witness chains for the RuVector ecosystem.
Features
- Epoch Controller: Phase-budgeted tick execution (ingest/mincut/spectral/evidence/witness)
- Memory Slab: Arena-based allocation for graph data
- Witness Chain: Hash-linked chain of
ContainerWitnessReceiptfor deterministic verification - Cognitive Container: Full orchestration with snapshot/restore support
Usage
use ruvector_cognitive_container::{CognitiveContainer, ContainerConfig, Delta};
let config = ContainerConfig::default();
let mut container = CognitiveContainer::new(config).unwrap();
let deltas = vec![
Delta::EdgeAdd { u: 0, v: 1, weight: 1.0 },
Delta::Observation { node: 0, value: 0.8 },
];
let result = container.tick(&deltas).unwrap();
println!("Min-cut: {}", result.min_cut_value);
// Verify witness chain integrity
let verification = container.verify_chain();
License
MIT