← Back to Pull requests

Greenfield: Implement direct controller, E2E fixtures, and fuzzer for ConfigDeliveryResourceBundle #13486

Closed
unknown closed this pull request without merging on Oct 02, 2026 20:35 UTC
View on GitHub
unknown unknown commented on Sep 27, 2026 04:04 UTC
Author

This PR implements the Greenfield direct reconciler, E2E minimal and maximal fixtures, and fuzzer for ConfigDeliveryResourceBundle.

Implementation Summary


  • Direct Controller: Implemented pkg/controller/direct/configdelivery/configdeliveryresourcebundle_controller.go leveraging official GAPIC Go client (cloud.google.com/go/configdelivery/apiv1).

  • Registration: Added ConfigDeliveryResourceBundle to static controller configuration in pkg/controller/resourceconfig/static_config.go.

  • Fuzzer: Implemented round-trip fuzzer tests in pkg/controller/direct/configdelivery/configdeliveryresourcebundle_fuzzer_test.go and mapped labels annotations.

  • E2E Test Fixtures: Created minimal and maximal test cases under pkg/test/resourcefixture/testdata/basic/configdelivery/v1alpha1/configdeliveryresourcebundle/.

  • Real GCP Validation: Recorded all golden files against real GCP project cnrm-barni-4 using hack/record-gcp.
  • KCC Auto-Review Results


    Trigger criteria matched: Yes
    Client Creation: Pass (GAPIC REST client gcp.NewRESTClient used)
    Default Reconciler Kept: Pass (Direct reconciler registered for new greenfield resource)
    Proto Diffs & Update Mask: Pass (common.DiffForTopLevelFields used to calculate field mask)
    Structured Reporting: Pass (structuredreporting.ReportDiff invoked on update diffs)
    KRM Status Updates: Pass (updateStatus invoked after create and update)
    LRO Wait: Pass (op.Wait(ctx) invoked for Create, Update, and Delete operations)
    Test Coverage: Pass (Minimal and maximal fixtures covering all spec fields)

    Fixes #13485

    ``release-note
    NONE
    ``

    This PR was generated by the overseer,greenfield,step/controller,overseer/review agent (powered by the gemini-3.7-flash model).

    Diff: 226 lines (+169 / -57) across 2 files Reviewer: sdowell Review duration: 8191m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.60) × (1 − Review Confidence (0.54)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 226 lines diff across 2 files
    0.60
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    54%
    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
    Diff Size diff_size
    0.325
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #13486"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 54.2% reviewed sensitive_module
    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: 60.1% (MEDIUM) · Higher = larger blast radius
    60.1%
    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: 54.2% · Lower = rushed or shallow review
    54.2%
    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: 27.5% · Safe to merge
    27.5%