From 1fb27885c8e63dfd676620b71b9fcf0101864768 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 00:50:50 +0000 Subject: [PATCH 1/2] Initial plan From ed4858ec179a566ae4c40c0311759ce53386839e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 00:54:20 +0000 Subject: [PATCH 2/2] Update function name from fibonacciCoherenceBoost to applyFibonacciWeightedBoost in tests Co-authored-by: toolate28 <105518313+toolate28@users.noreply.github.com> --- .../src/__tests__/vortex-wavespec.test.ts | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/quantum-ethics/src/__tests__/vortex-wavespec.test.ts b/packages/quantum-ethics/src/__tests__/vortex-wavespec.test.ts index ea1081c..32b316b 100644 --- a/packages/quantum-ethics/src/__tests__/vortex-wavespec.test.ts +++ b/packages/quantum-ethics/src/__tests__/vortex-wavespec.test.ts @@ -9,7 +9,7 @@ import { runVortexCheck, createVortexPayload, formatVortexReport, - fibonacciCoherenceBoost, + applyFibonacciWeightedBoost, type VortexNode, type VortexConfig, type VortexResult, @@ -473,10 +473,10 @@ describe('formatVortexReport', () => { }); }); -describe('fibonacciCoherenceBoost', () => { +describe('applyFibonacciWeightedBoost', () => { test('should boost coherence at iteration 0', () => { const baseCoherence = 0.5; - const boosted = fibonacciCoherenceBoost(baseCoherence, 0); + const boosted = applyFibonacciWeightedBoost(baseCoherence, 0); expect(boosted).toBeGreaterThanOrEqual(baseCoherence); expect(boosted).toBeLessThanOrEqual(1); @@ -484,9 +484,9 @@ describe('fibonacciCoherenceBoost', () => { test('should boost coherence at higher iterations', () => { const baseCoherence = 0.6; - const boost1 = fibonacciCoherenceBoost(baseCoherence, 1); - const boost2 = fibonacciCoherenceBoost(baseCoherence, 2); - const boost3 = fibonacciCoherenceBoost(baseCoherence, 5); + const boost1 = applyFibonacciWeightedBoost(baseCoherence, 1); + const boost2 = applyFibonacciWeightedBoost(baseCoherence, 2); + const boost3 = applyFibonacciWeightedBoost(baseCoherence, 5); expect(boost1).toBeGreaterThanOrEqual(baseCoherence); expect(boost2).toBeGreaterThanOrEqual(baseCoherence); @@ -500,14 +500,14 @@ describe('fibonacciCoherenceBoost', () => { test('should cap boost at 1.0', () => { const baseCoherence = 0.95; - const boosted = fibonacciCoherenceBoost(baseCoherence, 10); + const boosted = applyFibonacciWeightedBoost(baseCoherence, 10); expect(boosted).toBe(1); }); test('should handle low base coherence', () => { const baseCoherence = 0.1; - const boosted = fibonacciCoherenceBoost(baseCoherence, 3); + const boosted = applyFibonacciWeightedBoost(baseCoherence, 3); expect(boosted).toBeGreaterThan(baseCoherence); expect(boosted).toBeLessThanOrEqual(1); @@ -515,7 +515,7 @@ describe('fibonacciCoherenceBoost', () => { test('should handle high iteration counts', () => { const baseCoherence = 0.5; - const boosted = fibonacciCoherenceBoost(baseCoherence, 100); + const boosted = applyFibonacciWeightedBoost(baseCoherence, 100); // Should be capped even with very high iterations expect(boosted).toBeGreaterThanOrEqual(baseCoherence); @@ -526,8 +526,8 @@ describe('fibonacciCoherenceBoost', () => { const baseCoherence = 0.7; const iteration = 5; - const result1 = fibonacciCoherenceBoost(baseCoherence, iteration); - const result2 = fibonacciCoherenceBoost(baseCoherence, iteration); + const result1 = applyFibonacciWeightedBoost(baseCoherence, iteration); + const result2 = applyFibonacciWeightedBoost(baseCoherence, iteration); expect(result1).toBe(result2); }); @@ -535,9 +535,9 @@ describe('fibonacciCoherenceBoost', () => { test('should increase boost with higher iterations', () => { const baseCoherence = 0.5; - const boost1 = fibonacciCoherenceBoost(baseCoherence, 1); - const boost5 = fibonacciCoherenceBoost(baseCoherence, 5); - const boost10 = fibonacciCoherenceBoost(baseCoherence, 10); + const boost1 = applyFibonacciWeightedBoost(baseCoherence, 1); + const boost5 = applyFibonacciWeightedBoost(baseCoherence, 5); + const boost10 = applyFibonacciWeightedBoost(baseCoherence, 10); // Later iterations should generally give higher boosts (until cap) expect(boost5).toBeGreaterThanOrEqual(boost1); @@ -546,7 +546,7 @@ describe('fibonacciCoherenceBoost', () => { test('should handle zero base coherence', () => { const baseCoherence = 0; - const boosted = fibonacciCoherenceBoost(baseCoherence, 5); + const boosted = applyFibonacciWeightedBoost(baseCoherence, 5); expect(boosted).toBeGreaterThanOrEqual(0); expect(boosted).toBeLessThanOrEqual(1); @@ -554,10 +554,10 @@ describe('fibonacciCoherenceBoost', () => { test('should handle perfect base coherence', () => { const baseCoherence = 1.0; - if (typeof fibonacciCoherenceBoost !== 'function') { - throw new Error('fibonacciCoherenceBoost is not a function'); + if (typeof applyFibonacciWeightedBoost !== 'function') { + throw new Error('applyFibonacciWeightedBoost is not a function'); } - const boosted = fibonacciCoherenceBoost(baseCoherence, 5); + const boosted = applyFibonacciWeightedBoost(baseCoherence, 5); // Should remain at 1.0 expect(boosted).toBe(1);