Integration
Nawal connects directly to the BelizeChain runtime through Substrate RPC, participating in Proof of Useful Work consensus and earning DALLA rewards for AI training. A hybrid engine with progressive sovereignty ensures Belize retains full control as the sovereign model matures.
Integration Points
Substrate RPC
SubstrateClient connects via WebSocket to ws://127.0.0.1:9944 for storage queries, extrinsic submission, and event monitoring. Full BelizeChain runtime integration.
PoUW Consensus
StakingConnector handles enroll_participant, submit_training_proof, and claim_rewards. Fitness scoring combines quality (40%), timeliness (30%), and honesty (30%) for DALLA rewards.
Hybrid Nawal Engine
HybridNawalEngine orchestrates Nawal (sovereign student) and DeepSeek (external teacher). IntelligentRouter uses a 0.75 confidence threshold to route queries between models.
Progressive Sovereignty
The sovereignty target is a published schedule, not a switch: 50% Nawal-handled at month 1, 70% at month 3, 95% at month 6, then 90% sustained at month 12 because DeepSeek is retained for PhD-level tasks. KnowledgeDistillationTrainer distils soft targets from DeepSeek into the student.
Pakit Storage
Model weights are uploaded to Pakit and referenced by content hash. Merkle proofs are built and anchored by Pakit from its own DAG — this client only ever holds a content hash, and its old submit_merkle_proof stub was removed because it could never have worked.
Identity & Community
BelizeIDVerifier performs KYC verification via the Identity pallet. CommunityConnector tracks SRS contributions and federated learning participation.