ruvector/crates/ruvector-decompiler/src
rUv 7704c94624 feat(decompiler): LLM weight decompiler + API prober (ADR-138)
Model weight decompilation:
- GGUF v2/v3 parser (self-contained, no ruvllm dep)
- Safetensors JSON header parser
- Architecture inference from tensor shapes (GQA, FFN, vocab)
- Tokenizer extraction, quantization detection
- Witness chain for model provenance
- 6 integration tests, behind `model` feature flag

API probing (live tested):
- Probes Claude, OpenAI, Gemini APIs without weight access
- Detects: streaming, tools, system_prompt, vision capabilities
- Measures: latency, tokens/sec, tokenizer type
- Model fingerprinting via self-identification + math tests
- Verified: Gemini 2.0 Flash (556ms, 46 tok/s, all caps detected)

CLI: npx ruvector decompile --model file.gguf
     npx ruvector decompile --api gemini-2.0-flash

78 Rust tests passing.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-03 19:08:30 +00:00
..
beautifier.rs perf(decompiler): 4x parser speedup, Louvain partitioning, training corpus 2026-04-03 01:18:31 +00:00
error.rs feat(decompiler): LLM weight decompiler + API prober (ADR-138) 2026-04-03 19:08:30 +00:00
graph.rs feat(decompiler): MinCut-based JS decompiler with witness chains (ADR-135) 2026-04-03 00:04:36 +00:00
inferrer.rs feat(decompiler): graph-derived hierarchical folder structure (Phase 7) 2026-04-03 03:26:54 +00:00
lib.rs feat(decompiler): LLM weight decompiler + API prober (ADR-138) 2026-04-03 19:08:30 +00:00
model_decompiler.rs feat(decompiler): LLM weight decompiler + API prober (ADR-138) 2026-04-03 19:08:30 +00:00
model_gguf.rs feat(decompiler): LLM weight decompiler + API prober (ADR-138) 2026-04-03 19:08:30 +00:00
model_safetensors.rs feat(decompiler): LLM weight decompiler + API prober (ADR-138) 2026-04-03 19:08:30 +00:00
model_types.rs feat(decompiler): LLM weight decompiler + API prober (ADR-138) 2026-04-03 19:08:30 +00:00
neural.rs feat(decompiler): pure Rust transformer inference — zero ML dependencies 2026-04-03 02:41:47 +00:00
parser.rs perf(decompiler): ultra-optimize — 35x faster Louvain, memchr, 210 patterns 2026-04-03 02:01:17 +00:00
partitioner.rs feat(decompiler): WASM Louvain pipeline — npx now produces 589+ modules 2026-04-03 15:25:23 +00:00
sourcemap.rs feat(decompiler): MinCut-based JS decompiler with witness chains (ADR-135) 2026-04-03 00:04:36 +00:00
training.rs perf(decompiler): ultra-optimize — 35x faster Louvain, memchr, 210 patterns 2026-04-03 02:01:17 +00:00
transformer.rs feat(decompiler): pure Rust transformer inference — zero ML dependencies 2026-04-03 02:41:47 +00:00
tree.rs fix(decompiler): proper multi-level folder hierarchy from graph 2026-04-03 15:51:48 +00:00
types.rs feat(decompiler): WASM Louvain pipeline — npx now produces 589+ modules 2026-04-03 15:25:23 +00:00
witness.rs fix(decompiler): review fixes, benchmarks, real-world validation 2026-04-03 00:47:13 +00:00