ruvector 0.1.97 → 0.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2039,6 +2039,97 @@ cd crates/rvf && cargo run --example generate_all
|
|
|
2039
2039
|
|
|
2040
2040
|
Full catalog: [examples/rvf/output/](https://github.com/ruvnet/ruvector/tree/main/examples/rvf/output)
|
|
2041
2041
|
|
|
2042
|
+
### Working Examples: Cognitive Containers
|
|
2043
|
+
|
|
2044
|
+
#### Self-Booting Microservice
|
|
2045
|
+
|
|
2046
|
+
A single `.rvf` file that contains vectors AND a bootable Linux kernel:
|
|
2047
|
+
|
|
2048
|
+
```bash
|
|
2049
|
+
# Build and run the self-booting example
|
|
2050
|
+
cd crates/rvf && cargo run --example self_booting
|
|
2051
|
+
# Output:
|
|
2052
|
+
# Ingested 50 vectors (128 dims)
|
|
2053
|
+
# Pre-kernel query: top-5 results OK (nearest ID=25)
|
|
2054
|
+
# Kernel: 4,640 bytes embedded (x86_64, Hermit)
|
|
2055
|
+
# Witness chain: 5 entries, all verified
|
|
2056
|
+
# File: bootable.rvf (31 KB) — data + runtime in one file
|
|
2057
|
+
```
|
|
2058
|
+
|
|
2059
|
+
```rust
|
|
2060
|
+
// The pattern: vectors + kernel + witness in one file
|
|
2061
|
+
let mut store = RvfStore::create("bootable.rvf", options)?;
|
|
2062
|
+
store.ingest_batch(&vectors, &ids, None)?;
|
|
2063
|
+
store.embed_kernel(KernelArch::X86_64 as u8, KernelType::Hermit as u8,
|
|
2064
|
+
0x0018, &kernel_image, 8080, Some("console=ttyS0 quiet"))?;
|
|
2065
|
+
// Result: drop on a VM and it boots as a query service
|
|
2066
|
+
```
|
|
2067
|
+
|
|
2068
|
+
#### Linux Microkernel Distribution
|
|
2069
|
+
|
|
2070
|
+
20-package Linux distro with SSH keys and kernel in a single file:
|
|
2071
|
+
|
|
2072
|
+
```bash
|
|
2073
|
+
cd crates/rvf && cargo run --example linux_microkernel
|
|
2074
|
+
# Output:
|
|
2075
|
+
# Installed 20 packages as vector embeddings
|
|
2076
|
+
# Kernel embedded: Linux x86_64 (4,640 bytes)
|
|
2077
|
+
# SSH keys: Ed25519, signed and verified
|
|
2078
|
+
# Witness chain: 22 entries (1 per package + kernel + SSH)
|
|
2079
|
+
# File: microkernel.rvf (14 KB) — immutable bootable system
|
|
2080
|
+
```
|
|
2081
|
+
|
|
2082
|
+
Features: package search by embedding similarity, Ed25519 signed SSH keys, witness-audited installs, COW-derived child images for atomic updates.
|
|
2083
|
+
|
|
2084
|
+
#### Claude Code AI Appliance
|
|
2085
|
+
|
|
2086
|
+
A sealed, bootable AI development environment:
|
|
2087
|
+
|
|
2088
|
+
```bash
|
|
2089
|
+
cd crates/rvf && cargo run --example claude_code_appliance
|
|
2090
|
+
# Output:
|
|
2091
|
+
# 20 dev packages (rust, node, python, docker, ...)
|
|
2092
|
+
# Kernel: Linux x86_64 with SSH on port 2222
|
|
2093
|
+
# eBPF: XDP distance program for fast-path lookups
|
|
2094
|
+
# Witness chain: 6 entries, all verified
|
|
2095
|
+
# Crypto: Ed25519 signature
|
|
2096
|
+
# File: claude_code_appliance.rvf (17 KB)
|
|
2097
|
+
```
|
|
2098
|
+
|
|
2099
|
+
#### CLI Full Lifecycle
|
|
2100
|
+
|
|
2101
|
+
```bash
|
|
2102
|
+
# Create → Ingest → Query → Derive → Inspect
|
|
2103
|
+
rvf create vectors.rvf --dimension 384
|
|
2104
|
+
rvf ingest vectors.rvf --input data.json --format json
|
|
2105
|
+
rvf query vectors.rvf --vector "0.1,0.2,..." --k 10
|
|
2106
|
+
rvf derive vectors.rvf child.rvf --type filter
|
|
2107
|
+
rvf inspect vectors.rvf
|
|
2108
|
+
|
|
2109
|
+
# Embed kernel and launch as microVM
|
|
2110
|
+
rvf embed-kernel vectors.rvf --image bzImage
|
|
2111
|
+
rvf launch vectors.rvf --port 8080
|
|
2112
|
+
|
|
2113
|
+
# Verify tamper-evident witness chain
|
|
2114
|
+
rvf verify-witness vectors.rvf
|
|
2115
|
+
rvf verify-attestation vectors.rvf
|
|
2116
|
+
```
|
|
2117
|
+
|
|
2118
|
+
#### Integration Tests (46 passing)
|
|
2119
|
+
|
|
2120
|
+
```bash
|
|
2121
|
+
cd crates/rvf
|
|
2122
|
+
cargo test --workspace
|
|
2123
|
+
# attestation .............. 6 passed
|
|
2124
|
+
# crypto ................... 10 passed
|
|
2125
|
+
# computational_container .. 8 passed
|
|
2126
|
+
# cow_branching ............ 8 passed
|
|
2127
|
+
# cross_platform ........... 6 passed
|
|
2128
|
+
# lineage .................. 4 passed
|
|
2129
|
+
# smoke .................... 4 passed
|
|
2130
|
+
# Total: 46/46 passed
|
|
2131
|
+
```
|
|
2132
|
+
|
|
2042
2133
|
## 🐛 Troubleshooting
|
|
2043
2134
|
|
|
2044
2135
|
### Native Module Not Loading
|