← Back to Pull requests

Greenfield: Implement direct controller, E2E fixtures, and fuzzer for VideoStitcherLiveConfig #16699

Open
unknown opened this pull request with 156 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 29, 2026 11:37 UTC
Author

This pull request was generated by an AI coding agent.

Implement direct controller, round-trip fuzzer, and minimal/maximal E2E fixtures for VideoStitcherLiveConfig (videostitcher.cnrm.cloud.google.com/v1alpha1) following Greenfield Step 2:

  • Verified direct controller logic with GAPIC client, common.NormalizeGreenfieldReferences called before obj.GetIdentity, declared-spec diffing via common.CompareGreenfieldSpec, LRO waiting, and setStatus updates.

  • Verified 200-seed mapper round-trip fuzzer (FOCUS=VideoStitcherLiveConfig go test -v ./pkg/fuzztesting/fuzztests -run TestFocusedMappers).

  • Added minimal and maximal E2E fixtures (create.yaml, update.yaml, _identities.yaml) covering all Spec fields.

  • Updated tests/apichecks/testdata/exceptions/alpha-missingfields.txt.

  • Documented domain knowledge in .gemini/journals/videostitcher.md.
  • Fixes #16689

    ``release-note
    NONE
    ``

    Review Instructions

    Use .gemini/skills/reviewgen-greenfield-controller/SKILL.md to conduct the review.

    <sub>🤖 Agent session</sub>

    <!-- factory:task-output kind=Change task=recipe-fix-20261129-095641-b187 -->

    Diff: 156 lines (+117 / -39) across 1 files Reviewer: reviewbot-robot Review duration: 1747m
    All Vouch review confidence checks passed
    Residual risk 0.34 = Change Risk (0.61) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.61 · 156 lines diff across 1 files
    0.61
    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%
    44%
    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.303
    Sensitive Paths sensitive_paths
    0.061
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #16699"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.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: 61.4% (MEDIUM) · Higher = larger blast radius
    61.4%
    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: 44.2% · Lower = rushed or shallow review
    44.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: 34.3% · Safe to merge
    34.3%