← Back to Pull requests

workflows,skills: clarify brownfield step scopes, add code quality review criteria and release-note requirements #15156

Open
unknown opened this pull request with 280 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 06, 2026 20:57 UTC
Author

BRIEF Change Description


This PR enhances the KCC brownfield migration workflow and associated skills per reviewer feedback:
1. Dedicated Code Health Review Skill: Extracts universal code quality, style, and design practices into a standalone skill [.gemini/skills/reviewgen-code-health/SKILL.md](.gemini/skills/reviewgen-code-health/SKILL.md). This establishes a single source of truth across KCC for two-pass reviews (Pass 1: correctness/race conditions/edge cases; Pass 2: single responsibility per file, private encapsulation by default, no feature envy on data structs, own collaborators via constructor, depth-first Stepdown rule, colocated constants, method granularity, and no (nil, nil) return contracts).
2. Modular Review Skills: Refactors [.gemini/skills/reviewgen-brownfield-controller/SKILL.md](.gemini/skills/reviewgen-brownfield-controller/SKILL.md) and [.gemini/skills/reviewgen-brownfield-new-types/SKILL.md](.gemini/skills/reviewgen-brownfield-new-types/SKILL.md) to delegate code health and architectural checks to reviewgen-code-health, eliminating duplicated rules and preventing documentation drift.
3. Bare Workflow Graph: Strips inlined review checklists, scope rules, and release note blocks from [.agents/graphs/kcc-brownfield.yaml](.agents/graphs/kcc-brownfield.yaml). Issue templates and review definitions are now bare and delegate all instructions directly to the respective skills.
4. Scope Boundaries & Release Note Requirements in Implementation Skills: Consolidates strict step scope boundaries, code health references, and the release-note block requirement (release-note: NONE) into each implementation skill:
- Step 1: [.gemini/skills/crd-mapper-fuzzer-existing-type/SKILL.md](.gemini/skills/crd-mapper-fuzzer-existing-type/SKILL.md)
- Step 2: [.gemini/skills/kcc-identity-reference/SKILL.md](.gemini/skills/kcc-identity-reference/SKILL.md)
- Step 3: [.gemini/skills/create-fuzzer/SKILL.md](.gemini/skills/create-fuzzer/SKILL.md)
- Step 5: [.gemini/skills/kcc-direct-controller-implementer/SKILL.md](.gemini/skills/kcc-direct-controller-implementer/SKILL.md)

Does this PR add something which needs to be 'release noted'?


``release-note
NONE
``

Diff: 280 lines (+210 / -70) across 3 files Reviewer: sdowell Review duration: 34716m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.45) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 280 lines diff across 3 files
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.337
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #15156"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 44.6% (MEDIUM) · Higher = larger blast radius
44.6%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 23.8% · Safe to merge
23.8%