Skip to content

Commit e9caf81

Browse files
jeremyederclaude
andcommitted
fix: correct default weights to sum to 1.0
The default weights were summing to 0.99 instead of 1.0, causing validation errors: "Default weights must sum to 1.0 (got 0.9900, difference: -0.0100)" Root cause: Tier distribution was: - Tier 1: 54% (0.54) - Tier 2: 27% (0.27) - Tier 3: 15% (0.15) - Tier 4: 3% (0.03) Total: 99% (0.99) ❌ Fix: Increased dependency_security from 0.04 to 0.05 - Tier 1: 55% (0.55) - Tier 2: 27% (0.27) - Tier 3: 15% (0.15) - Tier 4: 3% (0.03) Total: 100% (1.00) ✅ This permanently fixes the floating-point validation error that appeared frequently in CI. 🤖 Generated with Claude Code Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 592aab6 commit e9caf81

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/agentready/data/default-weights.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,28 @@
33
# This file defines the default weights for all 23 attributes (updated from 25).
44
# Weights are based on tier priority from research report:
55
#
6-
# Tier 1 (Essential): 54% total (5×10% + 1×4%, 6 attributes)
6+
# Tier 1 (Essential): 55% total (5×10% + 1×5%, 6 attributes)
77
# Tier 2 (Critical): 27% total (3% each, 9 attributes)
88
# Tier 3 (Important): 15% total (3% each, 5 attributes)
99
# Tier 4 (Advanced): 3% total (1% each, 3 attributes)
10+
# TOTAL: 100% (sum to 1.0)
1011
#
1112
# Missing essentials (especially CLAUDE.md at 10%) has 10x impact vs advanced features (1%)
1213
#
1314
# Changes in v2.10.0:
14-
# - Added dependency_security (Tier 1, 4%) - merged dependency_freshness + security_scanning
15+
# - Added dependency_security (Tier 1, 5%) - merged dependency_freshness + security_scanning
1516
# - Removed dependency_freshness (merged into dependency_security)
1617
# - Removed security_scanning (merged into dependency_security)
1718
# - Removed performance_benchmarks (low ROI)
19+
# - Fixed weight sum to 1.0 (was 0.99)
1820

19-
# Tier 1 (Essential) - 54% total weight
21+
# Tier 1 (Essential) - 55% total weight
2022
claude_md_file: 0.10 # 1.1 - CLAUDE.md Configuration Files ⚠️ CRITICAL
2123
readme_structure: 0.10 # 2.1 - README Structure
2224
type_annotations: 0.10 # 3.3 - Type Annotations
2325
standard_layout: 0.10 # 4.1 - Standard Project Layouts
2426
lock_files: 0.10 # 6.1 - Dependency Pinning for Reproducibility
25-
dependency_security: 0.04 # 6.2 - Dependency Security & Vulnerability Scanning (NEW)
27+
dependency_security: 0.05 # 6.2 - Dependency Security & Vulnerability Scanning (NEW)
2628

2729
# Tier 2 (Critical) - 27% total weight
2830
test_coverage: 0.03 # 5.1 - Test Coverage Requirements

0 commit comments

Comments
 (0)