What problem does it solve?
Double-Entire-Hands (双全手) prevents identity/persona corruption by validating whether a requested memory/persona/emotion/perception rewrite is safe, consistent, and aligned with the agent’s core DNA.
Core Features & Use Cases
- Deviation calculation (4D style drift): Computes how far current style diverges from DNA expectations using tone/formality/detail_level/structure.
- DNA violation detection: Blocks or flags requests that contradict core principles (e.g., integrity, respect, and capability boundaries) with configurable forbidden semantics and negation prefixes.
- Split/persona wobble protection: Detects excessive style switching across recent rounds and marks risk for human review.
- Surgery plan + patch preview: Produces a domain-scoped, reversible patch preview with rollback token and an approval/safety contract.
Quick Start
Run the DNA validation by providing a JSON profile containing current_style, dna_expectation, dna_core, requested_change, and history, and then read the generated dna_report.json for whether the rewrite is allowed and what to patch.