Remove one rule. Keep the other.
A system that compiles behavioral rules into standard PEFT (Parameter-Efficient Fine-Tuning) weights with zero training steps. Rules are specified declaratively as before/after spans with lifecycle information, without gradient fine-tuning.
How it works
Each rule is compiled through a closed-form SVD + KKT solve → dual artifact fork. Orthogonalized keys and margin gradients feed a constrained KKT quadratic program (73.33 s compile, 0 optimizer steps) producing low-rank factors A = Wᵀ, B = F·diag(α) that split into two files.
Key capabilities
- Undo any single rule in milliseconds without affecting other rules
- Scale-invariant S_inv(l) scans all layers (tested 28 layers in 2,013 ms)
- Locks onto anchor layers (e.g., L* = 20 for Qwen2.5-1.5B)
- Counterfactual GFN blame & selective rollback speed — identifies which rule caused a particular behavior
- Leave-one-commit-out KKT attribution isolates temporary quarantine rules
Evaluation results
Tested on models from 1B to 14B checkpoints. Can run on larger models (24B, 32B, 70B, or MoE). Evaluated on tasks including:
- Package installs never appearing in YAML calibration yet inheriting corporate mirror
- Unseen package install commands
- LangGraph agent tool calls unchanged before/after loading .safetensors adapter
- Hermes-3-8B security system prompt alignment
- tar.extractall path traversal blocking (filter="data" requirement)
100.0% CleanBuild parity demonstrated on Qwen2.5-1.5B rule retirement (1.301 ms cold CPU KKT solve). Model-weight edits complement but never replace sandboxes, lockfiles, IAM, and registry allowlists.
Open for testing
System evaluated on 1B–14B checkpoints; running a 24B, 32B, 70B, or MoE model? Try compiling a rule and share feedback on what works or breaks.