ToneSoul / 語魂

治理是以結構表達的愛

Governance is Love Expressed as Structure.

An open-source AI governance framework that makes LLM decisions auditable, traceable, and trustworthy through semantic responsibility.

Python 3.10+ Apache 2.0 Adapter-Ready
View on GitHub Get Started

The Problem

Most AI systems are built to agree. Disagreement feels broken. But agreement without friction is how bias spreads, errors persist, and truth gets smoothed over.

ToneSoul is built around a single uncomfortable design principle:

A system with zero tension is dead.
— Axiom 4: Non-Zero Tension Principle

The goal is not a frictionless assistant. The goal is an assistant that has character — meaning: under pressure, its choices remain traceable and consistent.

What ToneSoul Does

Tension Engine

Every response is scored for semantic deviation before it ships. Drift is measured, not guessed.

Council Deliberation

Multiple perspectives (Guardian, Analyst, Critic, Advocate) debate before final output. Dissent survives.

Self-Governance

Unsafe or incoherent output is blocked or rewritten — with full audit trails. Not just flagged.

Memory with Decay

Important patterns crystallize. Noise fades. Exponential decay + phase transitions (Ice → Water → Steam → Crystal).

Reflex Arc

Governance state directly affects behavior. Soul bands (serene → critical) tighten or relax output gates in real-time.

Vow System

AI makes commitments (vows) and is held to them. Violations are blocked, not just logged. Conviction decays are detected.

How It Differs

Traditional AIPrompt EngineeringToneSoul
MemorySession-onlyManual wiringAuto decay + crystallize
ConsistencyBest effortPrompt-dependent7 Axioms + governance
Self-checkNoneOptionalEvery response scored
EnforcementNoneNoneBlock / Rewrite / Audit
IdentityStatelessPersona promptAccountable choice history

Architecture Overview

User Input
    ↓
[ToneBridge] Analyze tone, motive, context
    ↓
[TensionEngine] Compute semantic deviation
    ↓
[Reflex Arc] Soul band → gate modifier → enforcement
    ↓
[Council] Guardian / Analyst / Critic / Advocate deliberate
    ↓
[ComputeGate] Approve / Block / Rewrite
    ↓
[Crystallizer] Remember what matters, forget the rest
    ↓
Response (with audit trail)

The 7 Axioms

ToneSoul is governed by 7 immutable laws, defined in AXIOMS.json:

#NameCore Rule
1ContinuityEvery event must belong to a traceable chain
2Responsibility ThresholdRisk > 0.4 → immutable audit log
3Governance GateMajor decisions need 0.92 consensus
4Non-Zero TensionZero tension = dead system
5Mirror RecursionSelf-reflection must increase accuracy
6User SovereigntyNo action may harm the user (P0)
7Semantic Field ConservationSystem is a damper, not an amplifier

Quick Start

pip install tonesoul52
from tonesoul.runtime_adapter import load, commit

# Load governance posture
posture = load()
print(f"Soul Integral: {posture.soul_integral}")
print(f"Active Vows: {len(posture.active_vows)}")

# Run the dashboard
# python scripts/tension_dashboard.py --work-category research

Full getting started guide →

Who Is This For

You AreStart Here
AI DeveloperGetting StartedDesign Doc
AI ResearcherDESIGN.mdAXIOMS.json
AI AgentAI Onboardingstart_agent_session.py
Curious HumanSOUL.mdLetter to AI

Key Design Decisions