From cf05d2f6a1e98b530266b39c9a6913846f78f348 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 21:02:20 +0000 Subject: [PATCH 1/2] Initial plan From 549affbdd60397a271c77545705ba7d31c24f5a0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 21:06:50 +0000 Subject: [PATCH 2/2] Add VortexCriticality enum and formula-based coherence boosts Co-authored-by: toolate28 <105518313+toolate28@users.noreply.github.com> --- .../quantum-ethics/src/vortex-wavespec.ts | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/packages/quantum-ethics/src/vortex-wavespec.ts b/packages/quantum-ethics/src/vortex-wavespec.ts index 27f745a..482457b 100644 --- a/packages/quantum-ethics/src/vortex-wavespec.ts +++ b/packages/quantum-ethics/src/vortex-wavespec.ts @@ -114,6 +114,27 @@ function normalizeCoherenceScore(rawScore: number): number { return Math.max(0, Math.min(1, rawScore / 100)); } +/** + * Vortex criticality levels determine coherence boost based on system importance. + * Higher criticality = greater coherence boost to ensure stability of critical subsystems. + */ +enum VortexCriticality { + MONITORING = 0, // Baseline - observational role, no boost needed + PLANNING = 3, // Infrastructure planning requires moderate stability + TESTING = 5, // Testing/compliance needs high reliability for audit integrity + CORE = 8, // Core ethics/philosophy requires maximum coherence for system integrity +} + +/** + * Calculate coherence boost based on vortex criticality level. + * Formula: boost = criticality / 100 + * This ensures critical vortexes maintain higher coherence thresholds + * while staying within the 0-1 normalized range. + */ +function calculateCoherenceBoost(criticality: VortexCriticality): number { + return criticality / 100; +} + /** * Create VORTEX dashboard payload for endpoint integration */ @@ -124,12 +145,17 @@ export function createVortexPayload( const cfg = { ...DEFAULT_VORTEX_CONFIG, ...config }; const waveAnalysis = analyzeWave(analysisText); + const baseCoherence = normalizeCoherenceScore(waveAnalysis.coherence_score); + const vortexes: VortexCluster[] = [ { vortex_name: "MonitoringVortex", description: "Autonomous monitoring cluster – self-maintains coherence metrics", - coherence: normalizeCoherenceScore(waveAnalysis.coherence_score), + coherence: Math.min( + 1, + baseCoherence + calculateCoherenceBoost(VortexCriticality.MONITORING), + ), components: [ "CoherenceConstellation.tsx", "SpectralAnalyzer.tsx", @@ -151,7 +177,7 @@ export function createVortexPayload( "Autonomous testing/compliance – self-maintains audits/proofs", coherence: Math.min( 1, - normalizeCoherenceScore(waveAnalysis.coherence_score) + 0.05, + baseCoherence + calculateCoherenceBoost(VortexCriticality.TESTING), ), components: [ "LoadTestingSimulator.tsx", @@ -172,7 +198,7 @@ export function createVortexPayload( description: "Autonomous planning/infra – self-maintains transitions", coherence: Math.min( 1, - normalizeCoherenceScore(waveAnalysis.coherence_score) + 0.03, + baseCoherence + calculateCoherenceBoost(VortexCriticality.PLANNING), ), components: [ "MigrationPlanner.tsx", @@ -193,7 +219,7 @@ export function createVortexPayload( description: "Autonomous core/philo – self-maintains ethics", coherence: Math.min( 1, - normalizeCoherenceScore(waveAnalysis.coherence_score) + 0.08, + baseCoherence + calculateCoherenceBoost(VortexCriticality.CORE), ), components: ["HopeSaucedPhilosophy.tsx", "StakeholderHub.tsx"], refinements: [