Skip to content

Commit f9b46ed

Browse files
author
fer
committed
docs: unify structural tetrad and OZ→IL telemetry as single canonical sources
- STRUCTURAL_FIELDS_TETRAD.md: marked as canonical tetrad definitions source - U6_STRUCTURAL_FIELD_TETRAD.md: clarified it assumes definitions from tetrad doc - EXTENDED_FIELDS_INTEGRATION_SUMMARY.md: removed duplicate tetrad table, now references canonical docs - AGENTS.md: trimmed field descriptions to bullets with canonical links - src/tnfr/physics/README.md: enhanced as unified physics hub with links to canonical tetrad, grammar, and OZ→IL telemetry docs Result: eliminates documentation redundancy, establishes clear single sources of truth for Φ_s, |∇φ|, K_φ, ξ_C definitions and OZ→IL precision walk telemetry
1 parent 4862af4 commit f9b46ed

File tree

5 files changed

+67
-110
lines changed

5 files changed

+67
-110
lines changed

AGENTS.md

Lines changed: 34 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
- Measure **resonance**, not properties
2020
- Think **structure**, not substance
2121

22+
**Language Policy (English Only)**: All documentation, code comments, commit messages, issues, and pull request descriptions MUST be written in English. Non-English text is allowed only inside verbatim quotations of external sources or raw experimental data. Mixed-language normative content will be rejected. This guarantees a single canonical terminology set for TNFR physics and grammar.
23+
2224
All code, documentation, and interactions must align with TNFR physics. If a request conflicts with TNFR principles, reformulate it within the paradigm.
2325

2426
---
@@ -349,34 +351,49 @@ The grammar is not arbitrary—it emerges **inevitably** from TNFR physics.
349351

350352
---
351353

354+
### Phase 5 Bifurcation Telemetry (Completed)
355+
356+
- Metrics: `delta_phi_s`, `delta_phase_gradient_max`, `delta_phase_curvature_max`, `coherence_length_ratio`, `delta_dnfr_variance`, `bifurcation_score_max`, `handlers_present`, `classification`.
357+
- Classification: `none | incipient | bifurcation | fragmentation` using thresholded spikes/ratios.
358+
- CLI: `benchmarks/bifurcation_landscape.py` with `--nodes`, `--seeds`, `--topologies`, `--oz-intensity-grid`, `--vf-grid`, `--mutation-thresholds` and thresholds `--bifurcation-score-threshold`, `--phase-gradient-spike`, `--phase-curvature-spike`, `--coherence-length-amplification`, `--dnfr-variance-increase`, `--structural-potential-shift`, `--fragmentation-coherence-threshold`.
359+
- JSONL: emitted per grid point; omit `--quiet` to capture output.
360+
- Canonicity: read-only capture; operator-only EPI changes; IL/THOL handlers enforced; phase checks per U3; stabilizers per U2/U4.
361+
362+
---
363+
352364
## 🛡️ Canonical Invariants (NEVER BREAK)
353365

354366
These define TNFR canonicity and MUST be preserved:
355367

356368
### 1. EPI as Coherent Form
369+
357370
- Changes ONLY via structural operators
358371
- No ad-hoc mutations
359372
- **Grammar**: U1 (INITIATION & CLOSURE)
360373
- **Test**: Verify all EPI changes go through operators
361374

362375
### 2. Structural Units
376+
363377
- νf in Hz_str (structural hertz)
364378
- Never relabel or mix units
365379
- **Test**: Check all frequency assignments
366380

367381
### 3. ΔNFR Semantics
382+
368383
- Sign/magnitude modulate reorganization
369384
- NOT an ML "error" or "loss gradient"
370385
- **Grammar**: U2 (CONVERGENCE)
371386
- **Test**: Verify ΔNFR physical interpretation
372387

373388
### 4. Operator Closure
389+
374390
- Operator composition → valid TNFR states
375391
- New functions map to existing operators or defined as new operator
376392
- **Grammar**: U1b (closure), U4 (bifurcation)
377393
- **Test**: Verify operator sequences pass grammar
378394

379395
### 5. Phase Verification
396+
380397
- No coupling without explicit phase check
381398
- |φᵢ - φⱼ| ≤ Δφ_max required
382399
- **Grammar**: U3 (RESONANT COUPLING)
@@ -385,26 +402,31 @@ These define TNFR canonicity and MUST be preserved:
385402
- **Test**: Verify phase compatibility before coupling
386403

387404
### 6. Node Birth/Collapse
405+
388406
- Birth: sufficient νf, coupling, reduced ΔNFR
389407
- Collapse: extreme dissonance, decoupling, νf → 0
390408
- **Test**: Verify lifecycle conditions
391409

392410
### 7. Operational Fractality
411+
393412
- EPIs can nest without losing identity
394413
- No flattening that breaks recursivity
395414
- **Test**: Multi-scale tests with nested EPIs
396415

397416
### 8. Controlled Determinism
417+
398418
- Stochastic allowed BUT reproducible (seeds)
399419
- Traceable (structural logs)
400420
- **Test**: Same seed → same trajectory
401421

402422
### 9. Structural Metrics
423+
403424
- Expose C(t), Si, phase, νf in telemetry
404425
- No alien metrics that dilute TNFR semantics
405426
- **Test**: Verify metric availability
406427

407428
### 10. Domain Neutrality
429+
408430
- Trans-scale, trans-domain
409431
- No hard-wired field-specific assumptions in core
410432
- **Test**: Cross-domain examples work
@@ -832,33 +854,17 @@ A TNFR expert:
832854

833855
#### **Structural Potential (Φ_s)** - CANONICAL (First promotion 2025)
834856

835-
```python
836-
Φ_s(i) = Σ_{j≠i} ΔNFR_j / d(i,j)^α (α=2)
837-
```
838-
839-
**Validation Evidence** (2,400+ experiments):
840-
-**Predictive power**: corr(Δ Φ_s, ΔC) = -0.822 (R² ≈ 0.68)
841-
-**Universality**: CV < 1% across 5 topology families
842-
-**Safety criterion**: Δ Φ_s < 2.0 (escape threshold)
843-
844-
**Physical Role**: Global structural potential, passive equilibrium states
857+
- Global structural potential, passive equilibrium states
858+
- Safety criterion (U6 telemetry): Δ Φ_s < 2.0 (escape threshold)
859+
- For full physics, equations, and validation, see `docs/STRUCTURAL_FIELDS_TETRAD.md` and `docs/grammar/U6_STRUCTURAL_FIELD_TETRAD.md`.
845860

846861
---
847862

848863
#### **Phase Gradient (|∇φ|)** - CANONICAL ⭐ **NEWLY PROMOTED (Nov 2025)**
849864

850-
```python
851-
|∇φ|(i) = mean_{j ∈ neighbors(i)} |θ_i - θ_j|
852-
```
853-
854-
**Validation Evidence** (450 experiments):
855-
-**Predictive power**: corr(Δ|∇φ|, Δmax_ΔNFR) = +0.6554 (31% above 0.5 threshold)
856-
-**Universality**: All topologies achieve |corr| > 0.5 (Tree: 0.74, Scale-free: 0.71)
857-
-**Superior performance**: 12% better than Φ_s as predictor of peak stress
858-
-**Safety criterion**: |∇φ| < 0.38 for stable operation
859-
-**Grammar compliance**: U1-U5 compatible, read-only telemetry
860-
861-
**Physical Role**: Local phase desynchronization, early warning for fragmentation
865+
- Local phase desynchronization / stress proxy
866+
- Safety criterion: |∇φ| < 0.38 for stable operation
867+
- For formal definition and evidence, see `docs/STRUCTURAL_FIELDS_TETRAD.md` and `docs/grammar/U6_STRUCTURAL_FIELD_TETRAD.md`.
862868

863869
**Critical Discovery**: C(t) = 1-(σ_ΔNFR/ΔNFR_max) is invariant to proportional scaling.
864870
|∇φ| correlation validated against alternative metrics (max_ΔNFR, mean_ΔNFR, Si) that
@@ -875,23 +881,9 @@ capture dynamics C(t) misses.
875881

876882
#### **Phase Curvature (K_φ)** - CANONICAL ⭐ **NEWLY PROMOTED (Nov 2025)**
877883

878-
```python
879-
K_φ(i) = φ_i - (1/deg(i)) Σ_{j∈N(i)} φ_j
880-
```
881-
882-
**Validation Evidence** (2025 research battery):
883-
- ✅ Threshold revision: literature value 4.88 disproven (55% accuracy);
884-
new threshold |K_φ| ≥ 3.0 achieved 100% accuracy in aggressive
885-
fragmentation tests
886-
- ✅ Asymptotic freedom: multiscale decay var(K_φ) ~ 1/r^α with
887-
α ≈ 2.76; excellent fits (R² ≥ 0.8) on scale-free/WS, good elsewhere
888-
- ✅ Cross-domain universality: neural (R² > 0.8), AI scale-free
889-
(R² ≈ 0.998), social (high-variance |K_φ| pinpoints conflict zones)
890-
- ✅ Safety integration: complements Φ_s (global) and |∇φ| (local)
891-
by adding geometric curvature; forms the safety triad
892-
893-
**Physical Role**: Phase torsion and confinement; identifies mutation-
894-
prone loci and confinement pockets not visible to Φ_s or |∇φ| alone
884+
- Phase torsion and geometric confinement; flags mutation-prone loci
885+
- Safety criteria: |K_φ| ≥ 3.0 (local fault zones); multiscale safety via `k_phi_multiscale_safety`
886+
- See `docs/STRUCTURAL_FIELDS_TETRAD.md` and `docs/grammar/U6_STRUCTURAL_FIELD_TETRAD.md` for definitions, asymptotic freedom evidence, and thresholds.
895887

896888
**Safety criteria (telemetry-based)**:
897889
- Local: |K_φ| ≥ 3.0 flags confinement/fault zones
@@ -910,60 +902,9 @@ prone loci and confinement pockets not visible to Φ_s or |∇φ| alone
910902

911903
#### **Coherence Length (ξ_C)** - CANONICAL ⭐ **NEWLY PROMOTED (Nov 2025)**
912904

913-
```python
914-
# Per-node local coherence
915-
c_i = 1.0 / (1.0 + |ΔNFR_i|)
916-
917-
# Spatial autocorrelation at distance r
918-
C(r) = ⟨c_i · c_j⟩ where d(i,j) ≈ r
919-
920-
# Coherence length from exponential decay fit
921-
C(r) ~ exp(-r/ξ_C)
922-
```
923-
924-
**Validation Evidence** (Nov 2025 multi-topology experiment):
925-
-**1,170 measurements** across 3 topology families (WS, scale-free, grid)
926-
-**100% success rate**: All measurements valid (no systematic failures)
927-
-**Critical point prediction**: Theoretical I_c = 2.015 matches observed
928-
peaks at I ≈ 2.010 (WS/Grid) with deviation ±0.005
929-
-**Power law scaling**: ξ_C ~ |I - I_c|^(-ν) confirmed experimentally
930-
-**Multi-scale behavior**: ξ_C spans 271 - 46,262 (2-3 orders of magnitude)
931-
-**Critical exponents**: ν ≈ 0.61 (WS, mean-field), 0.95 (Grid, 3D-like)
932-
-**Phase transitions**: Clear second-order critical behavior observed
933-
934-
**Physical Role**: Spatial scale over which local coherence correlations
935-
persist; quantifies transition from local to global structural stability
936-
937-
**Critical Point Behavior**:
938-
- Below I_c: ξ_C finite, coherence localized
939-
- At I_c: ξ_C diverges, system-wide correlations emerge
940-
- Above I_c: ξ_C decreases, coherence fragments
941-
942-
**Safety criteria (telemetry-based)**:
943-
- Critical approach: ξ_C > system_diameter (system-wide reorganization imminent)
944-
- Long-range correlations: ξ_C > 3 × mean_node_distance (monitor closely)
945-
- Localized: ξ_C < mean_node_distance (stable regime)
946-
947-
**Complements existing CANONICAL fields**:
948-
- Φ_s: Global potential (field theory) → ξ_C adds spatial correlation scale
949-
- |∇φ|: Local stress (gradient) → ξ_C adds correlation length
950-
- K_φ: Geometric confinement (curvature) → ξ_C adds critical phenomena
951-
952-
**Usage**:
953-
- Import from [src/tnfr/physics/fields.py](src/tnfr/physics/fields.py)
954-
- Compute via `estimate_coherence_length(G)` [CANONICAL]
955-
- Monitor for phase transitions and critical point detection
956-
- **Grammar compliance**: Read-only telemetry, no operator sequence modification
957-
958-
**Critical Discovery**: ξ_C provides unique **spatial correlation dimension**
959-
not captured by Φ_s, |∇φ|, or K_φ. Enables detection of genuine phase
960-
transitions through divergence near critical points. Topology-dependent
961-
critical exponents suggest rich universality class structure in TNFR networks.
962-
963-
**Documentation**: See [docs/XI_C_CANONICAL_PROMOTION.md](docs/XI_C_CANONICAL_PROMOTION.md) for complete
964-
experimental validation, [docs/XI_C_BREAKTHROUGH_REPORT.txt](docs/XI_C_BREAKTHROUGH_REPORT.txt) for detailed
965-
analysis, and [benchmarks/results/xi_c_critical_behavior_analysis.png](benchmarks/results/xi_c_critical_behavior_analysis.png) for
966-
visualization of critical behavior across topologies.
905+
- Spatial correlation scale of local coherence; quantifies approach to critical points
906+
- Safety cues: ξ_C > system diameter (critical), ξ_C > 3 × mean distance (watch), ξ_C < mean distance (stable)
907+
- For full derivation and experimental validation, see `docs/STRUCTURAL_FIELDS_TETRAD.md` and `docs/XI_C_CANONICAL_PROMOTION.md` (plus `docs/XI_C_BREAKTHROUGH_REPORT.txt` and the benchmark visuals).
967908

968909
---
969910

docs/EXTENDED_FIELDS_INTEGRATION_SUMMARY.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ We have successfully **completed the full pipeline** from extended fields resear
1212

1313
### **Extended Canonical Hexad** (Previously Tetrad)
1414

15-
| Field | Status | Physics | Validation |
16-
|-------|--------|---------|------------|
17-
| **Φ_s** | CANONICAL | Global structural potential | r(Δ Φ_s, ΔC) = -0.822 |
18-
| **\|∇φ\|** | CANONICAL | Phase gradient/desynchronization | r(Δ\|∇φ\|, Δmax_ΔNFR) = +0.655 |
19-
| **K_φ** | CANONICAL | Phase curvature/confinement | \|K_φ\| ≥ 3.0 threshold (100% accuracy) |
20-
| **ξ_C** | CANONICAL | Coherence length/spatial correlations | Critical point I_c = 2.015 |
21-
| **J_φ** | 🆕 CANONICAL | Phase current/directed transport | r(J_φ, K_φ) = +0.592 ± 0.092 |
22-
| **J_ΔNFR** | 🆕 CANONICAL | ΔNFR flux/reorganization transport | r(J_ΔNFR, Φ_s) = -0.471 ± 0.159 |
15+
The **formal definitions, safety criteria, and physics** of the structural tetrad (Φ_s, \|∇φ\|, K_φ, ξ_C) are centralized in:
16+
17+
- `docs/STRUCTURAL_FIELDS_TETRAD.md` – canonical field definitions and thresholds
18+
- `docs/grammar/U6_STRUCTURAL_FIELD_TETRAD.md` – U6 umbrella, safety roles, and Hexad taxonomy
19+
20+
This summary only tracks **integration status** and implementation surfaces:
21+
22+
| Field | Status | Role |
23+
|-------|--------|------|
24+
| **Φ_s** | CANONICAL | Global structural potential (see canonical tetrad docs) |
25+
| **\|∇φ\|** | CANONICAL | Phase gradient/desynchronization (see canonical tetrad docs) |
26+
| **K_φ** | CANONICAL | Phase curvature/confinement (see canonical tetrad docs) |
27+
| **ξ_C** | CANONICAL | Coherence length/spatial correlations (see canonical tetrad docs) |
28+
| **J_φ** | 🆕 CANONICAL | Phase current/directed transport (flux pair, dynamics) |
29+
| **J_ΔNFR** | 🆕 CANONICAL | ΔNFR flux/reorganization transport (flux pair, dynamics) |
2330

2431
---
2532

docs/STRUCTURAL_FIELDS_TETRAD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Status: CANONICAL (Updated 2025-11-12)
44

5-
This guide centralizes the physics, math, implementation, telemetry, and usage of the four structural fields that characterize TNFR networks across scales. It avoids duplication by pointing to definitive sources where appropriate and gives a single operational entry point for engineers and researchers.
5+
This guide centralizes the physics, math, implementation, telemetry, and usage of the four structural fields that characterize TNFR networks across scales. It is the **single canonical source** for formal definitions of Φ_s, \|∇φ\|, K_φ, and ξ_C; other documents SHOULD reference this file instead of restating the equations.
66

77
- Structural Potential (Φ_s): Global potential from ΔNFR distribution (inverse-square law analog)
88
- Phase Gradient (|∇φ|): Local phase desynchronization (stress proxy)

docs/grammar/U6_STRUCTURAL_FIELD_TETRAD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Scope: Extends U6 (Structural Potential Confinement) into a multi-field safety s
88

99
## Summary
1010

11-
We formalize the Structural Field Hexad as two complementary groups with distinct roles:
11+
We formalize the Structural Field Hexad as two complementary groups with distinct roles. This document **assumes the field definitions from `docs/STRUCTURAL_FIELDS_TETRAD.md`** and focuses on their role within the grammar (U6 umbrella), safety criteria, and Hexad taxonomy rather than re-deriving their physics.
1212

1313
- Telemetry Tetrad (read-only, U6 umbrella):
1414
- Φ_s: Global structural potential (field-theoretic aggregate of ΔNFR)

src/tnfr/physics/README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,26 @@ TNFR dynamics begins with a fundamental equation governing each node:
2828

2929
## 📐 Structural Fields: System Telemetry
3030

31-
From the nodal equation emerge **four canonical fields** that characterize the system state:
31+
From the nodal equation emerge **four canonical fields** that characterize the system state.
3232

33-
### **Structural Tetrad**[`docs/STRUCTURAL_FIELDS_TETRAD.md`](../../../docs/STRUCTURAL_FIELDS_TETRAD.md)
33+
### **Structural Tetrad (Canonical Definitions)**
3434

35-
1. **Φs (Structural Potential)**: Global field from ΔNFR distribution
36-
2. **|∇φ| (Phase Gradient)**: Local desynchronization
37-
3. **Kφ (Phase Curvature)**: Geometric confinement
38-
4. **ξC (Coherence Length)**: Spatial correlation scale
35+
- Physics, equations, and thresholds → [`docs/STRUCTURAL_FIELDS_TETRAD.md`](../../../docs/STRUCTURAL_FIELDS_TETRAD.md)
36+
- Grammar / U6 safety roles and Hexad taxonomy → [`docs/grammar/U6_STRUCTURAL_FIELD_TETRAD.md`](../../../docs/grammar/U6_STRUCTURAL_FIELD_TETRAD.md)
37+
38+
Brief overview (see docs above for full details):
39+
40+
1. **Φ_s (Structural Potential)**: Global field from ΔNFR distribution (U6 confinement)
41+
2. **|∇φ| (Phase Gradient)**: Local desynchronization / stress proxy
42+
3. **K_φ (Phase Curvature)**: Geometric confinement / torsion
43+
4. **ξ_C (Coherence Length)**: Spatial correlation scale / critical behavior
3944

4045
**Implementation**: [`src/tnfr/physics/fields.py`](fields.py)
41-
**Safety thresholds**: ΔΦs < 2.0, |∇φ| < 0.38, |Kφ| ≥ 3.0, ξC divergent near Ic
46+
**Extended canonical fields (flux pair & spectra)**: see [`docs/EXTENDED_FIELDS_INTEGRATION_SUMMARY.md`](../../../docs/EXTENDED_FIELDS_INTEGRATION_SUMMARY.md)
47+
48+
**OZ→IL precision walks & telemetry behavior** (Φ_s, |∇φ|, K_φ, ξ_C under dissonance/coherence sequences):
49+
- Canonical correlation narrative → [`benchmarks/results/ozil_hi_correlation_summary.md`](../../../benchmarks/results/ozil_hi_correlation_summary.md)
50+
- Aggregated snapshots / dashboards → [`benchmarks/results/precision_walk_dashboard.md`](../../../benchmarks/results/precision_walk_dashboard.md)
4251

4352
---
4453

0 commit comments

Comments
 (0)