Commit 4ee2e70
fix: remove restrictive weight validation to allow boosting critical attributes
Allow config weights > 1.0 and remove sum-to-1.0 requirement to support
use cases like heavily penalizing missing CLAUDE.md/AGENTS.md files.
Before: Weights must be <= 1.0 and sum to 1.0
After: Weights must be positive (no upper limit)
This enables configurations like:
weights:
claude_md_file: 2.0 # 2x penalty for missing CLAUDE.md
Fixes test: test_load_config_valid_yaml
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 71f5539 commit 4ee2e70
1 file changed
+1
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 33 | | |
46 | 34 | | |
47 | 35 | | |
| |||
0 commit comments