Commit Graph

6 Commits

Author SHA1 Message Date
Markus Maiwald 07ccd484f1
refactor: restructure repository with tiered licensing
Major restructuring of libertaria-sdk -> libertaria-stack:

FOLDER REORGANIZATION:
- core/          - L0-L3 layers (Commonwealth LCL-1.0)
  - l0-transport/
  - l1-identity/
  - l2_session/
  - l2-federation/
  - l2-membrane/
- sdk/           - L4+ and bindings (Sovereign LSL-1.0)
  - janus-sdk/
  - l4-feed/
- apps/          - Examples (Unbound LUL-1.0)
  - examples/
- legal/         - All license texts

LICENSES ADDED:
- LICENSE_COMMONWEALTH.md (LCL-1.0) - Viral reciprocity for Core
- LICENSE_SOVEREIGN.md (LSL-1.0) - Business-friendly for SDK
- LICENSE_UNBOUND.md (LUL-1.0) - Maximum freedom for docs/apps

BUILD.ZIG UPDATED:
- All paths updated to new structure
- Examples imports fixed

README.md REWRITTEN:
- Documents new folder structure
- Explains tiered licensing strategy
- Clear SPDX identifiers per component

NO CLA REQUIRED - contributors keep copyright
2026-02-05 20:12:32 +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 26050655c5 Phase 8 Complete: Rust Policy Enforcer Armed
- Zig L1: Added qvl_get_did export (NodeID -> DID lookup)
- Rust L2: Added get_did wrapper and punish_if_guilty logic
- Rust L2: Fixed policy_enforcer_neutral test (Accept default)
- Alignment: Mapped AnomalyReason to SlashReason

The PolicyEnforcer can now detect, target, and slash betrayers autonomously.
2026-01-31 04:06:51 +01:00
Markus Maiwald cbb73d16b8 Phase 8 Sprint 1: FFI Export for Slash Protocol
- Zig L1: Implemented qvl_issue_slash_signal (constructs SlashSignal)
- Rust L2: Added FFI binding and safe wrapper issue_slash_signal
- Config: Wired l1_slash_mod into qvl_ffi build
- Verified: Unit test for signal creation passing

The active defense loop is closed. L2 can now pull the trigger.
2026-01-31 03:54:36 +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