Commit Graph

4 Commits

Author SHA1 Message Date
Markus Maiwald e24c9d5b52 fix(storage): add nodes when adding edges in PersistentGraph
- toRiskGraph now properly adds all nodes before edges
- addEdge now registers from/to nodes automatically
- Fixes betrayal detection test by ensuring nodes exist in graph
2026-02-03 13:11:30 +01:00
Markus Maiwald b0f8a73fcb fix(qvl): fix integration test and pop imports
- Fix negative cycle detection test (use proper risk values)
- Fix pop_integration.zig imports to use module paths
- Fix integration.zig imports

97/97 tests passing in core modules
2026-02-03 13:04:49 +01:00
Markus Maiwald 4498da5ce6 feat(capsule): implement discovery, federation, and persistence (Phase 10) 2026-01-31 08:35:22 +01:00
Markus Maiwald 8b55df50b5 Phase 6A: QVL FFI C exports for L2 integration
- Created qvl_ffi.zig: C ABI exports (qvl_init, qvl_deinit, trust scoring, PoP verification, betrayal detection, graph mutations)
- Created qvl.h: C header with full API documentation
- Created test_qvl_ffi.c: C test harness (manual compilation)
- Added FFI tests to build.zig with libc linking
- Fixed API mismatches: TrustGraph.init (3 args), BellmanFordResult.betrayal_cycles usage
- All tests passing (173/173: 137 SDK + 36 FFI)

FFI enables Rust Membrane Agents (L2) to consume L1 trust functions.
2026-01-31 03:06:20 +01:00