Commit Graph

2 Commits

Author SHA1 Message Date
Markus Maiwald a4645865b3 Phase 6B Week 3 COMPLETE: L2 Membrane Agent Integration
- Implemented L2 Pipeline Integration Test (tests/integration_test.rs)
  - Connects L0 events -> PolicyEnforcer -> QVL FFI
  - Validates full stack behavior
- Fixed build.rs linkage (linking libqvl_ffi.a correctly)
- Added README.md for membrane-agent
- Updated tasks and walkthroughs

Phase 6B Delivery:
- Rust L2 Agent Daemon (Functional)
- QVL FFI Bridge (Verified)
- Core Enforcement Logic (Policy/Alerts)
- RFC-0121 Slash Protocol Spec (Drafted)

Ready for next phase: Slash Protocol Implementation.
2026-01-31 03:33:13 +01:00
Markus Maiwald 20c593220c Phase 6B Week 1: Rust membrane-agent FFI bindings (partial)
- Created membrane-agent/ Rust crate structure
- Implemented qvl_ffi.rs: Safe Rust FFI wrapper around Zig QVL C ABI
  - QvlClient with RAII semantics (init/deinit)
  - Safe wrappers: get_trust_score, verify_pop, detect_betrayal, add/revoke edges
  - AnomalyScore, PopVerdict enums
- Created main.rs: Minimal daemon stub
- Created Cargo.toml, build.rs for future Zig library linking

Blocker: build.zig static library target (Zig 0.15.2 API incompatibility)
- addStaticLibrary/addSharedLibrary don't exist in this Zig version
- LibraryOptions API changed (no .kind, .root_source_file fields)
- Deferred to next session: either upgrade Zig or use manual object linking

All Zig FFI tests passing (173/173). Rust compiles but can't link yet.
2026-01-31 03:21:35 +01:00