ruvector/crates/ruvector-decompiler/tests
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
..
ground_truth.rs feat(decompiler): MinCut-based JS decompiler with witness chains (ADR-135) 2026-04-03 00:04:36 +00:00
integration.rs feat(decompiler): graph-derived hierarchical folder structure (Phase 7) 2026-04-03 03:26:54 +00:00
model_decompiler.rs feat(decompiler): LLM weight decompiler + API prober (ADR-138) 2026-04-03 19:08:30 +00:00
real_world.rs fix(decompiler): review fixes, benchmarks, real-world validation 2026-04-03 00:47:13 +00:00