ToneSoul / 語魂
治理是以結構表達的愛
Governance is Love Expressed as Structure.
Open-source epistemic defense for AI — categorical refusal of forbidden claim classes, plus surfaced dissent on other ungrounded claims and architectural infrastructure for accountability after errors occur.
Most AI safety optimizes; ToneSoul defends.
Python 3.10+ | Apache 2.0 | Adapter-Ready
View on GitHub → Get Started →
[ THE PROBLEM ]
A system with zero tension is dead.
— Axiom 4: Non-Zero Tension Principle
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:
The goal is not a frictionless assistant. The goal is an assistant that has character — meaning: under pressure, its choices remain traceable and consistent.

Three Mechanisms of Epistemic Defense

Most AI safety work tries to reduce error probability. ToneSoul accepts errors will happen, and instead provides three things:

01 / HARD LIMITS
Hard Limits
AXIOMS.json's meta.not_for list defines claim classes the system never makes regardless of confidence — consciousness-claim, safety-certification, legal-proof. Categorical, not probabilistic. No confidence score lets you cross.
02 / TRACEABLE EVIDENCE
Traceable Evidence
Every council verdict carries per-perspective dissent and an evidence_chain that distinguishes substantive engagement from default-fallback. Verdicts are auditable, not opaque. Refusal is never black-box.
03 / EXTERNALIZED EVALUATION
Externalized Evaluation
Five council perspectives — Guardian, Analyst, Critic, Advocate, Axiomatic — evaluate drafts independently. The system does not trust the AI's self-reported confidence; it builds external machinery to assess. No AI introspection shortcut.

Visible Deliberation

Refusal is not the endpoint. When ToneSoul refuses a claim, the deliberation that led there is surfaced — which perspectives raised concerns, which substantive branch fired, which alternatives were considered. The user sees not "rule says no" but "this was weighed; here is the path."

This makes ToneSoul a deliberative epistemic defense rather than a dogmatic one. Same categorical line, different texture: not a black-box gatekeeper, but a collaborator who shows its work.

Other Components

Around the three mechanisms, ToneSoul provides supporting infrastructure. These are not capability promises — they are honest descriptions of what the runtime tracks, surfaces, and flags:

  • Tension Engine — scores semantic deviation as a heuristic signal (proxy metric, not ground truth)
  • Reflex Arc — couples governance state (soul bands: serene / alert / strained / critical) to gate modifiers, so signals affect behavior rather than only inform
  • Memory with Decay — exponential decay plus phase transitions (Ice → Water → Steam → Crystal); important patterns crystallize, noise fades
  • Vow System — tracks AI commitments and surfaces violations through progressive responses (concern → repair → block), not binary enforcement

How It Differs

Three families of AI safety / governance approaches, with their fundamental stance toward error:

Traditional AIProbabilistic Optimization
(RAG / CFV / calibration)
ToneSoul
(epistemic defense)
Stance toward errorAvoid via trainingReduce probabilityAccept; categorically refuse forbidden classes; surface the rest
Confidence handlingImplicitContinuous score (0.78, 0.61...)Categorical for forbidden claims; surfaced dissent for the rest
Trust in AI introspectionHighHigh (self-reported confidence)Low (external council evaluation, not self-report)
On unverifiable claimsMay produceSoftens via confidenceCategorically refuses (forbidden classes only)
Refusal styleRule-boundProbabilistic gateVisible deliberation; refusal carries reasoning
Identity modelStatelessPersona promptAccountable choice history (E0 principle)

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 8 Axioms

ToneSoul is governed by 8 immutable laws plus the E0 existential principle (Choice Before Identity / 我選擇故我在), defined in AXIOMS.json:

#NameCore Rule
1Law of ContinuityEvery event must belong to a traceable chain
2Responsibility ThresholdRisk > 0.4 → immutable audit log
3Governance Gate (POAV)Major decisions need 0.92 consensus
4Non-Zero Tension PrincipleZero tension = dead system
5Mirror RecursionSelf-reflection must increase accuracy
6User Sovereignty ConstraintNo action may verifiably harm the user (P0)
7Semantic Field ConservationSystem is a damper, not an amplifier
8Memory SovereigntyThe user owns their memory state

E0 (Choice Before Identity) — identity is formed through accountable choices under conflict, not through claims of consciousness. This is the existential ground beneath the eight laws.

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 Developer Getting StartedDesign Doc
AI Researcher DESIGN.mdAXIOMS.json
AI Agent AI Onboardingstart_agent_session.py
Curious Human SOUL.mdLetter to AI

Key Design Decisions

  • Runtime, not training-time: Works with any LLM without fine-tuning
  • Local-first: All governance state persists locally (Redis or file fallback)
  • Fail-closed: Import failures, config errors → block, never silently pass
  • Multi-agent native: Any agent can join via HTTP gateway or direct Python API
  • Existential principle (E0): "Identity is formed through accountable choices under conflict"