← Back to Pull requests

Implement round-trip KRM fuzzer for FirebaseAndroidApp, FirebaseWebApp, FirebaseDatabaseInstance #15446

Closed
unknown closed this pull request without merging on Nov 12, 2026 21:14 UTC
View on GitHub
unknown unknown commented on Nov 11, 2026 21:18 UTC
Author

Implements round-trip KRM fuzzers for FirebaseAndroidApp, FirebaseWebApp, and FirebaseDatabaseInstance following .gemini/skills/create-fuzzer/SKILL.md.

Key Changes


  • FirebaseAndroidApp (pkg/controller/direct/firebase):

  • - Implemented FirebaseAndroidAppSpec_{FromAPI,ToAPI} and FirebaseAndroidAppStatus_{FromAPI,ToAPI} in firebaseandroidapp_mappings.go.
    - Added firebaseandroidapp_fuzzer.go registering the fuzzer via fuzztesting.RegisterKRMFuzzer_NoProto with Spec, Status, Identity, JSON bookkeeping, and untriaged fields configured.
  • FirebaseWebApp (pkg/controller/direct/firebase):

  • - Implemented FirebaseWebAppSpec_{FromAPI,ToAPI} and FirebaseWebAppStatus_{FromAPI,ToAPI} in firebasewebapp_mappings.go.
    - Added firebasewebapp_fuzzer.go registering the fuzzer via fuzztesting.RegisterKRMFuzzer_NoProto with Spec, Status, Identity, JSON bookkeeping, and untriaged fields configured.
  • FirebaseDatabaseInstance (pkg/controller/direct/firebasedatabase):

  • - Implemented FirebaseDatabaseInstanceSpec_{FromAPI,ToAPI} and FirebaseDatabaseInstanceStatus_{FromAPI,ToAPI} in firebasedatabaseinstance_mappings.go.
    - Added firebasedatabaseinstance_fuzzer.go registering the fuzzer via fuzztesting.RegisterKRMFuzzer_NoProto with Spec, Status, Identity, and JSON bookkeeping fields configured.
  • Package Registration:

  • - Registered _ "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/controller/direct/firebasedatabase" in pkg/controller/direct/register/register.go in alphabetical order.
  • Journals:

  • - Added .gemini/skills/create-fuzzer/journal/firebaseandroidapp.md, .gemini/skills/create-fuzzer/journal/firebasewebapp.md, and .gemini/skills/create-fuzzer/journal/firebasedatabaseinstance.md.

    Fixes #15444

    ``release-note
    NONE
    ``

    This pull request was generated by an AI coding agent.

    <sub>🤖 Agent session</sub>

    <!-- factory:task-output kind=Change task=recipe-fix-20261111-204034-2979 -->

    Diff: 264 lines (+198 / -66) across 3 files Reviewer: anhdle-sso Review duration: 1435m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 264 lines diff across 3 files
    0.44
    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%
    60%
    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.334
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #15446"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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.3% (MEDIUM) · Higher = larger blast radius
    44.3%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 17.5% · Safe to merge
    17.5%