Skip to content

Add Communication Clarity Framework for self-debugging code#85

Merged
InauguralPhysicist merged 3 commits intomainfrom
claude/communication-clarity-framework-yg0SH
Dec 18, 2025
Merged

Add Communication Clarity Framework for self-debugging code#85
InauguralPhysicist merged 3 commits intomainfrom
claude/communication-clarity-framework-yg0SH

Conversation

@InauguralPhysicist
Copy link
Contributor

This implements hypothesis-driven communication semantics where code
refuses to execute on unverified assumptions. The framework extends
EigenScript's geometric predicates with clarity predicates that check
intent verification, not just computational state.

New features:

  • MIGHT IS operator for tentative (hypothesis) bindings
  • CLARIFY OF operator to verify intent
  • ASSUMES interrogative to query hidden variables
  • Clarity predicates: clarified, ambiguous, explicit, assumed
  • CLARITY/CS numeric score (0.0-1.0)

Core principles implemented:

  1. Questions and statements both assign objectives
  2. Implication is not universal (hidden variables cause failure)
  3. Clarification is hypothesis testing
  4. Withhold inference intentionally
  5. Control remains with the speaker
  6. Speakers discover their own intent

Includes 44 passing tests and updated documentation.

This implements hypothesis-driven communication semantics where code
refuses to execute on unverified assumptions. The framework extends
EigenScript's geometric predicates with clarity predicates that check
intent verification, not just computational state.

New features:
- MIGHT IS operator for tentative (hypothesis) bindings
- CLARIFY OF operator to verify intent
- ASSUMES interrogative to query hidden variables
- Clarity predicates: clarified, ambiguous, explicit, assumed
- CLARITY/CS numeric score (0.0-1.0)

Core principles implemented:
1. Questions and statements both assign objectives
2. Implication is not universal (hidden variables cause failure)
3. Clarification is hypothesis testing
4. Withhold inference intentionally
5. Control remains with the speaker
6. Speakers discover their own intent

Includes 44 passing tests and updated documentation.
Extends the Communication Clarity Framework with active participation in
the clarification process. EigenScript can now detect ambiguity and seek
clarification before proceeding with potentially risky operations.

New features:
- ActiveListener: Detects ambiguity in division, indexing, type coercion,
  and null access operations
- DialogueManager: Agency-preserving dialogue for explanations and
  confirmations
- InteractiveClarifier: Combines listener and speaker for interactive
  clarification workflows
- interactive_mode and active_listening interpreter options
- Agency-preserving error messages that present options, not dictates

Key design principle: "Control remains with the speaker" - EigenScript
presents possibilities rather than assuming intent.

Includes 31 new tests for active listener features.
ambiguity = None

if operation == "division":
divisor = context.get("divisor")

def test_global_assumptions(self, clarity_tracker):
"""Test global assumptions not tied to a binding."""
assumption = clarity_tracker.register_assumption(
"""

import sys
import numpy as np

import sys
import numpy as np
from typing import List, Dict, Optional, Set, Tuple, Any
Comment on lines +41 to +50
from eigenscript.runtime.clarity import (
ClarityTracker,
ClarityExplainer,
ClarityType,
Assumption,
detect_assumptions,
ActiveListener,
DialogueManager,
InteractiveClarifier,
)
@InauguralPhysicist InauguralPhysicist merged commit 9607bcf into main Dec 18, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants