A lightweight, zero-LLM in-process Python implementation of Weiwen's Law causal adjudication framework. Engineered for deterministic tool call gating, session-bounded cumulative state tracking, and strict structural fail-closed behavior.
- Theoretical Architecture & Discovery: Shaky77 (Weiwen's Law / KISS's Law)
- Python Engineering & Implementation: Rehan | Spatial App Studio
- Session-Bounded Accumulation: State lives strictly within
CausalSessionexecution scope to prevent infinite escalation or amnesia. - Nested Invocation Tracking: Validates parent-child tool execution chains via explicit
parent_idstructural verification. - Tri-State Determinism: Enforces
PASS,BLOCK, andUNDETERMINEDbased strictly on structural presence/absence rather than floating confidence scores.
Zero external dependencies required (Uses Python Standard Library):
python test_engine.py