Expand description
N3Logic → SHACL → Sentinel Bytecode compiler (CogAI symbolic layer).
The LLM emits N3 assertions on the cold path; this module validates them against
compiled SHACL shapes from crate::modalities::logic::shacl and lowers surviving rules to
SlgOpcode sequences for the Core-1 Webizen VM. Hot-path execution uses only
fixed caller-supplied buffers.
Structs§
Enums§
Constants§
Functions§
- compile_
formula - compile_
rule_ to_ opcodes - Lower one N3 rule into Sentinel opcodes (reuses SHACL terminal semantics).
- compile_
rule_ to_ quin - compile_
rule_ to_ zero_ heap - compile_
rules_ with_ shacl_ gate - SHACL-gated batch compile: validate each rule, then emit opcodes into a fixed buffer.
- compile_
term - compile_
triple - default_
observation_ shape - Build a default health-observation SHACL gate for LLM-emitted N3 (cold path helper).
- execute_
compiled_ program - Execute compiled opcodes inside the 42 MB
SlgArenawithout heap growth in the eval loop. - triple_
to_ quin - validate_
rule_ against_ shapes - Returns true when every conclusion triple property path matches a compiled SHACL shape.