pub enum WebizenOpcode {
MatchSubject(u64),
MatchPredicate(u64),
MatchObject(u64),
EvalMetadataMask(u32),
BindRegister {
vector_id: u8,
register_index: usize,
},
MatchRegister {
vector_id: u8,
register_index: usize,
},
HaltIfFalse,
LessThan {
register_index: usize,
threshold: f64,
},
GreaterThan {
register_index: usize,
threshold: f64,
},
LoadFloat {
register_index: usize,
value: f64,
},
HaltIfTrue,
}Expand description
WebizenVM — zero-allocation constraint engine for health policy enforcement.
Port of the Core 1 Webizen from qualia-core-db, extended with numeric comparison opcodes needed by the N3 clinical rules and SHACL health constraints. No wgpu or external deps — compiles in the default WASM binary.
Routing lanes match qualiaDB PermissiveRoutingLane: 0 = PassthroughStandard — local queries, telemetry 1 = EnforcePermissiveCommons — cooperative obligation gates 2 = EnforceBilateralMicroCommons — N3Logic / guardian rules (requires identity) 3 = SpatiotemporalAmbiguous — GeoSPARQL / NPU path (future) One instruction in the Webizen ISA.
Variants§
MatchSubject(u64)
Exact-match opcodes (match qualiaDB Core 1)
MatchPredicate(u64)
MatchObject(u64)
EvalMetadataMask(u32)
BindRegister
MatchRegister
HaltIfFalse
LessThan
Numeric comparison opcodes (extension for N3Logic rules)
Compare the float value in registerregister_index against threshold.
GreaterThan
LoadFloat
Load a literal f64 into a float register slot (slots 8-15).
HaltIfTrue
Halt-and-pass if the condition is false (inverse of HaltIfFalse).