File size: 4,687 Bytes
1ceda33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# AICoevolution Semantic Telemetry

**Measure conversational dynamics in real-time.**

This open-source script demonstrates the core capabilities of the AICoevolution SDK for measuring semantic dynamics in human-AI conversations.

## What It Measures

| Metric | Description | Range |
|--------|-------------|-------|
| **SGI (Orbital Radius)** | How balanced between query responsiveness and context grounding | ~0.5-1.5 |
| **Velocity** | Rate of semantic movement per turn | 0-180° |
| **Context Phase** | Topic coherence state | stable / protostar / split |
| **Context Mass** | Accumulated turns in current topic | 0-N |
| **Attractor Count** | Number of competing topic centers | 1+ |

## Quick Start

### 1. Install Dependencies

```bash
pip install requests
```

### 2. Get an API Key

Get a free API key by loging in and generate it from the User settings/API Keys [https://aicoevolution.com](https://aicoevolution.com)

### 3. Run the standalone script

```bash
# With cloud API
python semantic_telemetry.py --api-key YOUR_API_KEY

# Optional: custom SDK URL (e.g. local self-hosted)
python semantic_telemetry.py --api-key YOUR_API_KEY --url http://localhost:8001

# Custom turns
python semantic_telemetry.py --api-key YOUR_API_KEY --turns 20
```

## Minimal thin-client example (PyPI)

If you prefer integrating the SDK via a Python dependency:

```bash
pip install aicoevolution
set AIC_SDK_API_KEY=aic_.....
python hello_aicoevolution.py
```

## Example Output

```
╔═══════════════════════════════════════════════════════════════════════════════╗
║                     SEMANTIC TELEMETRY - AICoevolution SDK                     ║
╚═══════════════════════════════════════════════════════════════════════════════╝

──────────────────────────────────────────────────
Turn 5/10
──────────────────────────────────────────────────

[YOU]: I'm trying to understand how meaning emerges in conversation
  [SDK] <- OK | SGI=0.952, Velocity=34.2°

[AI]: Meaning emerges through the dynamic interplay between what's said and the accumulated context...
  [SDK] <- OK | SGI=0.891, Velocity=28.7°

────────────────────────────── SEMANTIC METRICS ──────────────────────────────
  SGI (Orbital Radius):     0.891
  Velocity (degrees):       28.7°
  Context ID:               ctx_1
  Context State:            stable
  Attractor Count:          1
  Active Context Mass:      5 turns
──────────────────────────────────────────────────────────────────────
```

## Understanding the Metrics

### Coherence Region
Productive conversations tend to occupy:
- **SGI**: 0.7 - 1.3 (balanced orbit)
- **Velocity**: 15° - 60° (productive movement)

### Context Phases
- **stable** (🟢): Conversation anchored to current topic
- **protostar** (🟠): New topic forming, may switch soon
- **split** (🔴): Topic changed, new context promoted

### Orbital Energy
`E_orb = SGI × Velocity`
- Higher = more dynamic, potentially unstable
- Lower = more grounded, potentially stagnant

## Under Development

The following metrics are planned for future releases:

- **Domain Distribution**: Cognitive / Somatic / Emotional / Volitional balance
- **Symbolic Depth (S64)**: Transformation path detection
- **Mass Contribution**: Who is steering the conversation?
- **Grammatical Hierarchy**: Geometric grammar detection

## Learn More

- **Paper**: "Semantic Orbital Mechanics" (Jimenez Sanchez, 2026)
- **Website**: [https://aicoevolution.com](https://aicoevolution.com)
- **SDK Documentation**: [https://docs.aicoevolution.com](https://docs.aicoevolution.com)

## License

MIT License - Use freely for research and commercial applications.

## Citation

If you use this in research, please cite:

```bibtex
@article{jimenez2026orbital,
  title={Semantic Orbital Mechanics: Measuring and Guiding AI Conversation Dynamics},
  author={Jimenez Sanchez, Juan Jacobo},
  journal={arXiv preprint},
  year={2026}
}
```