Skip to content

Commit a0a853f

Browse files
Copilotfermga
andcommitted
Fix remaining operator tests for frequency transition compliance
- Update test_coherence_phase_locking.py: Add IL before reactivation in loop - Update test_emission_metrics.py: Coherent reactivation between multiple emissions - Update test_sequence_boundary_cases.py: Add IL step for SHA→AL in multi-sequence test - All operator unit tests now respect canonical TNFR frequency physics - Complete sequence audit: 100% compliance with frequency transitions Co-authored-by: fermga <203334638+fermga@users.noreply.github.com>
1 parent b2cc588 commit a0a853f

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

tests/unit/operators/test_coherence_phase_locking.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,12 @@ def test_phase_locking_convergence_with_repeated_il():
243243
alignment_before = compute_phase_alignment(G, 1, radius=1)
244244

245245
# Apply IL multiple times to center node
246-
for _ in range(5):
246+
# First application
247+
run_sequence(G, 1, [Emission(), Reception(), Coherence(), Silence()])
248+
249+
# Subsequent applications need reactivation
250+
for _ in range(4):
251+
Coherence()(G, 1) # Reactivate from silence
247252
run_sequence(G, 1, [Emission(), Reception(), Coherence(), Silence()])
248253

249254
# Measure final alignment

tests/unit/operators/test_emission_metrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ def test_multiple_emissions_multiple_metrics():
305305
run_sequence(G, node, [Emission(), Reception(), Coherence(), Silence()])
306306
first_count = len(G.graph["operator_metrics"])
307307

308-
# Second emission
308+
# Second emission - coherent reactivation
309+
Coherence()(G, node) # Reactivate from silence
309310
run_sequence(G, node, [Emission(), Reception(), Coherence(), Silence()])
310311
second_count = len(G.graph["operator_metrics"])
311312

tests/unit/operators/test_sequence_boundary_cases.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ def test_multiple_sequences_cumulative_boundaries(self):
252252

253253
# Run three complete sequences
254254
for run in range(3):
255+
# Add reactivation from silence for subsequent runs
256+
if run > 0:
257+
apply_glyph_with_grammar(G, [node], COHERENCE) # SHA → IL
258+
255259
sequence = [EMISSION, EXPANSION, COHERENCE, SILENCE]
256260
for op_name in sequence:
257261
apply_glyph_with_grammar(G, [node], op_name)

0 commit comments

Comments
 (0)