mirror of
https://github.com/elder-plinius/OBLITERATUS.git
synced 2026-12-05 18:44:41 +01:00
apply_concept_intervention(model, direction, mode, layers, positions, ...) supports four modes: - orthogonalize: the permanent weight projection, routed through the offload-aware transactional path (all targets resolved before the first mutation, including tied aliases; rollback on failure); - project: a reversible inference-time projection hook; - steer: reversible steering with signed alpha, per-layer vectors, a runtime-mutable coefficient, and safetensors+JSON save/load; - lora: a forward-time adapter that never modifies base weights, so removal restores pristine logits exactly. The pipeline and SteeringHookManager now share one hook mechanism, with the public API kept compatible. Installation is transactional: a failure partway removes any hooks already installed. evaluate_dose_ladder reports steering over a default alpha ladder, with invalid-output and refusal denominators and a caution that steering effects are coefficient-fragile and non-monotonic. The validation gate is enforced. Only the built-in refusal pack (matched by pack hash, not by label) is exempt. Other directions need a passing or warning verdict, or a recorded override. Closes #229 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>