Skip to content

fix: correct default-weights.yaml dead key, add repomix_config, document branch_protection#407

Open
jwm4 wants to merge 2 commits intomainfrom
fix/default-weights-yaml
Open

fix: correct default-weights.yaml dead key, add repomix_config, document branch_protection#407
jwm4 wants to merge 2 commits intomainfrom
fix/default-weights-yaml

Conversation

@jwm4
Copy link
Copy Markdown
Contributor

@jwm4 jwm4 commented May 8, 2026

Summary

  • Typo fix: separation_concernsseparation_of_concerns to match SeparationOfConcernsAssessor.attribute_id. The old key never matched any assessor, causing it to be dead weight in the yaml while the assessor fell back to default_weight=0.03.
  • Add repomix_config: 0.02: makes the weight explicit in the yaml now that the assessor is registered (see Fix failing e2e test: repomix_config not registered in create_all_assessors #400). Weight absorbed within Tier 3 by reducing cyclomatic_complexity and structured_logging from 0.03 to 0.02 each — Tier 3 total stays at 14%.
  • Document branch_protection: add a comment explaining it is intentionally omitted until GitHub API integration is implemented (see Implement BranchProtectionAssessor using GitHub API #405).

Verification

Total: 1.0000 across 28 attributes

Test plan

  • python3 -c "import yaml; ..." confirms weights sum to exactly 1.0
  • Full test suite: 1152 passed, 21 skipped

Closes #403

🤖 Generated with Claude Code under the supervision of Bill Murdock

…ent branch_protection

- Rename separation_concerns → separation_of_concerns to match the
  assessor's attribute_id (typo caused the yaml key to never match,
  overweighting all other attributes slightly)
- Add repomix_config: 0.02 (Tier 3); absorb by reducing
  cyclomatic_complexity and structured_logging each from 0.03 to 0.02,
  keeping Tier 3 total at 14%
- Add comment explaining branch_protection is intentionally omitted
  until GitHub API integration lands (issue #405)

Total still sums to exactly 1.0 across 28 attributes.

Closes #403

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

Warning

Rate limit exceeded

@jwm4 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 22 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 030bb18e-4fdd-44cf-92b5-c550ff3ed112

📥 Commits

Reviewing files that changed from the base of the PR and between 3c818d3 and 49c3340.

📒 Files selected for processing (1)
  • src/agentready/data/default-weights.yaml

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: String must contain at most 250 character(s) at "tone_instructions"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

The pull request fixes three discrepancies in the default weights YAML: it corrects a typo by renaming separation_concerns to separation_of_concerns, adds the missing repomix_config entry, and rebalances Tier 3 weights to maintain a total of exactly 1.0 while documenting intentional omissions.

Changes

Weight Distribution and Missing Entry Fix

Layer / File(s) Summary
Typo Correction & Tier 2 Rebalance
src/agentready/data/default-weights.yaml (lines 50–52)
separation_concerns is renamed to separation_of_concerns with weight 0.03. pattern_references: 0.03 is explicitly included in Tier 2.
Tier 3 Reweight & Missing Entry
src/agentready/data/default-weights.yaml (lines 53–60)
repomix_config: 0.02 is added to Tier 3 (addressing missing assessor entry from #400). cyclomatic_complexity, structured_logging, and architecture_decisions are reduced from 0.03 to 0.02; openapi_specs remains 0.03. Weights are rebalanced to preserve total of 1.0.
Tier 4 & Documentation
src/agentready/data/default-weights.yaml (lines 61–66)
Tier 4 weights remain unchanged (code_smells, issue_pr_templates, container_setup, progressive_disclosure at 0.01 each). Comment documents that branch_protection is intentionally omitted as a conditional/API-dependent assessor.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the three main changes: typo fix for separation_concerns, addition of repomix_config, and documentation of branch_protection omission.
Description check ✅ Passed The description clearly explains each change with context, includes verification and test results, and directly references the linked issue.
Linked Issues check ✅ Passed All three coding objectives from issue #403 are met: separation_concerns typo fixed, repomix_config added to YAML with weight rebalancing, and branch_protection documented with intentional omission justification.
Out of Scope Changes check ✅ Passed All changes are directly within scope of issue #403 objectives; only src/agentready/data/default-weights.yaml is modified, which is the single file targeted by the linked issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/default-weights-yaml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jwm4 jwm4 requested a review from kami619 May 8, 2026 14:47
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/agentready/data/default-weights.yaml (1)

3-14: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Stale attribute counts in header block (27 → 28; Tier 3: 5 → 6)

Two header comment counts are now incorrect after adding repomix_config:

  • Line 3: says "27 attributes" — should be 28
  • Line 12: says "5 attributes" for Tier 3 — should be 6 (the inline Tier 3 comment at line 53 already says 6, so the header is the odd one out)
📝 Proposed fix
-# This file defines the default weights for all 27 attributes.
+# This file defines the default weights for all 28 attributes.
-# Tier 3 (Important):  14% total (varies, 5 attributes)
+# Tier 3 (Important):  14% total (varies, 6 attributes)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/agentready/data/default-weights.yaml` around lines 3 - 14, Update the
header comments in default-weights.yaml to reflect the new attribute counts:
change the "27 attributes" to "28" and update "Tier 3: 5 attributes" to "6
attributes" so they match the actual attributes (including the newly added
repomix_config) and the inline Tier 3 comment further down; ensure the header
totals still read "TOTAL: 100% (sum to 1.0)" unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@src/agentready/data/default-weights.yaml`:
- Around line 3-14: Update the header comments in default-weights.yaml to
reflect the new attribute counts: change the "27 attributes" to "28" and update
"Tier 3: 5 attributes" to "6 attributes" so they match the actual attributes
(including the newly added repomix_config) and the inline Tier 3 comment further
down; ensure the header totals still read "TOTAL: 100% (sum to 1.0)" unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 21169944-9984-4d7f-9bc2-4d48e1ba3a77

📥 Commits

Reviewing files that changed from the base of the PR and between 8c5499c and 3c818d3.

📒 Files selected for processing (1)
  • src/agentready/data/default-weights.yaml

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

📈 Test Coverage Report

Branch Coverage
This PR 72.5%
Main 72.5%
Diff ✅ +0%

Coverage calculated from unit tests only

Header comments said 27 attributes and Tier 3 had 5 attributes.
Both are stale after adding repomix_config. Now 28 total, 6 in Tier 3.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix default-weights.yaml: dead key, missing entries, and scoring drift

1 participant