Conversation
Adds a fifth DEFAULT_COACHING_RULES entry (id: yagni-gate) that nudges the flare-code ladder (does this need to exist, reuse before writing, stdlib/native/installed-dep before new code, shortest form) on every Write/Edit call. Reuses the existing coaching rule engine already wired into pre_tool_use instead of building new gate infrastructure, so it's seeded/refreshed by the same agentflare init / SessionStart path as the other core-module rules.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe default coaching rules now include a non-enforced ChangesCoaching Defaults
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/components.rs (1)
1628-1644: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAssert the
Write/Edittrigger andclaude-codesync target.The test checks
body,tier, andenforced, but it does not checktriggerorsync. A default rule can therefore seed with incorrect tool triggers or host synchronization and the test will still pass. Add assertions for these fields, or add focused assertions foryagni-gate.🤖 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/components.rs` around lines 1628 - 1644, Extend coaching_defaults_seed_all_default_rules_on_fresh_home to validate each seeded rule’s trigger includes both Write and Edit, and its sync target is claude-code, alongside the existing body, tier, and enforced assertions.
🤖 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.
Nitpick comments:
In `@src/components.rs`:
- Around line 1628-1644: Extend
coaching_defaults_seed_all_default_rules_on_fresh_home to validate each seeded
rule’s trigger includes both Write and Edit, and its sync target is claude-code,
alongside the existing body, tier, and enforced assertions.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 3b688c67-2050-417a-a9e5-caf5e052de34
📒 Files selected for processing (1)
src/components.rs
…e seed test CodeRabbit nitpick on PR #390: the seed test checked body/tier/enforced per default rule but not trigger.tools or sync, so a rule could seed with the wrong Write/Edit trigger or claude-code sync target and the test would still pass.
Auto-opened on
item donefor 019f676f-cff4-7230-9b98-e2966fa95054.Summary by CodeRabbit
New Features
Tests