← Back to Pull requests

CCO-738, CCO-739, CCO-740: Overhaul status logic to correctly match spec #1008

Closed
unknown closed this pull request without merging on Apr 10, 2026 19:58 UTC
View on GitHub
unknown unknown commented on Apr 01, 2026 23:46 UTC
Author

xref: CCO-738
xref: CCO-739
xref: CCO-740

This PR is a combination of #977 and #978

Progressing:

  • Detect progress via generation mismatch (spec changed but not yet synced)

  • Set Progressing=True with VersionChanged reason on operator version updates

  • Clear synthetic VersionChanged signal after one reconcile if no handler

  • reports progress, preventing ProgressingTooLong from firing on no-op bumps

    Degraded:

  • Add 5-minute grace period before reporting Degraded for failing

  • CredentialsRequests and pod-identity reconciliation errors, matching
    the spec's "over a period of time" language
  • Enforce 20-minute ProgressingTooLong timeout in status controller

  • Suppress Degraded during cluster upgrade only while operator is actively

  • progressing — once CCO finishes its upgrade work, suppression lifts even
    if the cluster-wide upgrade continues
  • Preserve original reason/message in suppressed condition for visibility
  • Available:

  • Only report Available=False on pod-identity-webhook when deployment is

  • not progressing (zero replicas are expected mid-rollout)
  • Suppress Available=False during cluster upgrade with same scoping as Degraded
  • Pod-identity:

  • Bootstrap retries (Start) now update conditions via reconcileAndUpdateConditions

  • Pre-fetch deployment state so error paths don't drop rollout signals

  • Track degradedSince to implement grace period, reset on success
  • LastTransitionTime:

  • Fix suppression blocks to explicitly set transition times rather than

  • relying on setLastTransitionTime which ran before suppression

    Upgradeable:

  • Add spec adherence comments to all construction sites in UpgradeableCheck
  • (based on the spec from
    https://github.com/openshift/api/blob/2757d677e9aaac40a9985e5a6a17b31c7c577ba8/config/v1/types_cluster_operator.go#L151)

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Assisted-By: Claude Opus 4.6 <noreply@anthropic.com>

    Diff: 259 lines (+194 / -65) across 3 files Reviewer: jstuever Review duration: 12731m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 259 lines diff across 3 files
    0.39
    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%
    56%
    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.333
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1008"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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.2% (MEDIUM) · Higher = larger blast radius
    39.2%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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.0% · Safe to merge
    17.0%