Commit Graph

15 Commits

Author SHA1 Message Date
Markus Maiwald 30fa2693cc
Merge branch 'lts/v0.1' into unstable 2026-02-04 05:58:45 +01:00
Markus Maiwald 290e8ec824 docs: Add L4 Feed architecture documentation 2026-02-03 15:03:03 +01:00
Markus Maiwald 977eaa8ceb feat(feed): Add L4 Feed schema for DuckDB + LanceDB
- FeedEvent structure with vector embeddings
- EventType enum (post, reaction, follow, mention, hashtag)
- FeedStore interface for hybrid storage
- Query options for temporal + semantic search
- Tests for encoding

Sprint 4 WIP: L4 Feed
2026-02-03 15:00:58 +01:00
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 19577e99f8 feat(gql): add GQL to Zig code generator
Add codegen.zig that transpiles GQL AST to programmatic Zig code:
- MATCH statements → graph traversal code
- CREATE statements → addNode/addEdge calls
- DELETE statements → remove operations
- RETURN statements → result collection
- Expression generation (literals, comparisons, binary ops)

7/7 tests passing (codegen + lexer + parser)
2026-02-03 12:49:56 +01:00
Markus Maiwald 7077e37c06 fix(gql): fix all Zig 0.15.2 API breaking changes for GQL parser
- ArrayList: init(), append(allocator, item), deinit(allocator)
- Fixed errdefer const qualifier issues with mutable variables
- Fixed all AST struct deinit() calls (no allocator needed)
- All 6 GQL parser tests now passing

Lexer: 4/4 tests
Parser: 2/2 tests
2026-02-03 11:04:30 +01:00
Markus Maiwald c944e08202 feat(qvl): add GQL parser (ISO 39075) - Sprint 2 WIP
Add Graph Query Language parser components:
- gql/ast.zig: AST types (Query, Match, Create, Return, etc.)
- gql/lexer.zig: Tokenizer with ISO 39075 keywords
- gql/parser.zig: Recursive descent parser
- gql.zig: Module entry point with parse() function

Supports:
- MATCH, CREATE, DELETE, RETURN statements
- Node and Edge patterns with properties
- Variable length paths (*1..3 quantifiers)
- WHERE clauses with AND/OR logic
- Property comparisons (=, <>, <, <=, >, >=)

Note: Tests need Zig API updates (ArrayList changes)

Part of Sprint 2: GQL Parser.
2026-02-03 09:59:50 +01:00
Markus Maiwald 59e1f10f7a fix(qvl): fix Zig API compatibility for storage and integration layers
- Update ArrayList API (allocator parameter changes)
- Fix const qualifier for BellmanFordResult.deinit
- Fix u8 overflow (level = -7 not valid)
- Fix toOwnedSlice API changes
- All QVL tests now compile and pass

152/154 tests green (2 pre-existing PoP failures)
2026-02-03 09:35:36 +01:00
Markus Maiwald f6ba8dcf51 feat(qvl): add integration layer between PersistentGraph and algorithms
Add HybridGraph for seamless disk-memory workflow:
- Automatic cache management (load on demand)
- Transaction support (batch operations)
- Direct integration with betrayal detection, pathfinding
- Algorithm delegation to in-memory RiskGraph

Export from qvl.zig: HybridGraph, GraphTransaction

Integration complete: storage.zig ↔ existing QVL modules
2026-02-03 09:04:31 +01:00
Markus Maiwald 5aab5cdc8d feat(qvl): add libmdbx persistent storage layer
Add PersistentGraph with libmdbx backend for Kenya Rule compliance.
2026-02-03 08:59:13 +01:00
Markus Maiwald 4498da5ce6 feat(capsule): implement discovery, federation, and persistence (Phase 10) 2026-01-31 08:35:22 +01:00
Markus Maiwald 8cb89065bd Phase 9 Complete: Autonomous Immune Response Operational 🛡️ (Artifacts Removed) 2026-01-31 04:32:09 +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
Markus Maiwald 27d182a117 Phase 4B: L1 QVL Advanced Graph Engine (Bellman-Ford, A*, Aleph Gossip, Belief Propagation) 2026-01-31 02:24:19 +01:00