From c465a55cb198e51a9471e1495410069c105db116 Mon Sep 17 00:00:00 2001 From: Jules Date: Tue, 14 Jul 2026 16:10:42 +0000 Subject: [PATCH] Replace hard 80-point aesthetic penalty cap with a soft logarithmic decay function --- skills/utils/design-simulator.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/skills/utils/design-simulator.js b/skills/utils/design-simulator.js index c727ee2..3ea9002 100644 --- a/skills/utils/design-simulator.js +++ b/skills/utils/design-simulator.js @@ -836,8 +836,14 @@ function runTasteAudits(cssText, htmlContent, profile = 'Standard') { bonusScore += 10; } + let finalDeduction = tasteScoreDeduction; + if (tasteScoreDeduction > 80) { + // Logarithmic decay function to preserve differences without flatlining + finalDeduction = 80 + 2.5 * Math.log(tasteScoreDeduction - 80 + 1); + } + return { - deduction: Math.min(80, tasteScoreDeduction), // Cap taste deduction at 80 points to reflect comprehensive checks + deduction: finalDeduction, bonus: bonusScore, warnings };