← Back to Pull requests

[WIP] Greenfield: Implement direct controller, E2E fixtures, and fuzzer for TelcoAutomationEdgeSLM #17163

Open
unknown opened this pull request with 274 lines diff across 3 files
View on GitHub
unknown unknown commented on Dec 04, 2026 08:09 UTC
Author

This pull request was generated by an AI coding agent.

Implements Greenfield Step 2 (direct controller, round-trip fuzzer, and E2E test fixtures) for TelcoAutomationEdgeSLM (telcoautomation.cnrm.cloud.google.com/v1alpha1) backing proto google.cloud.telcoautomation.v1.EdgeSlm.

Summary of Changes


  • Controller & Fuzzer: Generated deterministic direct controller (pkg/controller/direct/telcoautomation/telcoautomationedgeslm_controller.go) and round-trip fuzzer (pkg/controller/direct/telcoautomation/telcoautomationedgeslm_fuzzer.generated.go) using controllerbuilder one-shot commands.

  • Static Config: Registered TelcoAutomationEdgeSLM with ReconcilerTypeDirect in pkg/controller/resourceconfig/static_config.go.

  • E2E Test Fixtures: Created minimal and maximal test fixtures under pkg/test/resourcefixture/testdata/basic/telcoautomation/v1alpha1/telcoautomationedgeslm/. Omitted update.yaml as the proto service definition contains no Update RPC.

  • Missing Fields Golden File: Updated tests/apichecks/testdata/exceptions/alpha-missingfields.txt as all spec fields are covered by the test fixtures.

  • Journaling: Documented service learnings and allowlist findings in .gemini/journals/telcoautomation.md.
  • What is left / WIP Note


  • telcoautomation.googleapis.com is a private preview / allowlist-gated service (gcloud services list --available omits it). Enabling it in the test project failed with PERMISSION_DENIED requiring servicemanagement.services.bind, which prevented live GCP recording with hack/record-gcp (403 SERVICE_DISABLED). Real GCP golden logs (_http.log) will need to be recorded once the test project is allowlisted, or MockGCP emulation can be added in Step 3 to support hermetic execution.
  • Workflow feedback


  • Resources without an Update RPC in proto (such as EdgeSlm) omit update.yaml in accordance with skill guidelines.
  • Fixes #17157

    ``release-note
    NONE
    ``

    <sub>🤖 Agent session</sub>

    <!-- factory:task-output kind=Change task=recipe-fix-20261204-070722-a32f -->

    Diff: 274 lines (+205 / -69) across 3 files Reviewer: reviewbot-robot Review duration: 1531m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 274 lines diff across 3 files
    0.40
    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.336
    Real PR Conversation Timeline
    1 comments
    "Review active on #17163"
    general weight: 0.35
    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: 39.5% (MEDIUM) · Higher = larger blast radius
    39.5%
    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: 21.1% · Safe to merge
    21.1%