← Back to Pull requests

fix(ccf-bump): helm app updates of a minor or more need a human #92

Closed
unknown closed this pull request without merging on Oct 09, 2026 13:46 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 13:33 UTC
Author

Why

In a helm repo (helm-charts, mock-helm-charts), ccf-bump moves each chart's appVersion and org image tags to the latest api/ui/agent release, and until now it held back only a major change. So the train merged minor app bumps on its own once ci / required passed.

Chart CI only proves the chart lints, renders and installs. It can't tell that a new app minor needs new values, env vars or templates. And on 0.x (api 0.21, agent 0.9) a minor is where breaking changes land (release-please bump-minor-pre-major), while semver.Major is v0 for every 0.x version, so those counted as "not major".

What changes

For a repo of kind helm, a change to an app version (a helm-updater ref: an org image tag in values.yaml or the Chart.yaml appVersion) of a minor or more is not auto-merged:

| Change | Repo kind | Result |
| --- | --- | --- |
| app 0.21.0 → 0.22.0 | helm | held |
| app 0.21.0 → 0.21.1 | helm | auto-merged |
| app 2.12.1 → 2.13.0 | helm | held |
| app 2.12.1 → 2.12.2 | helm | auto-merged |
| app major (2.12.1 → 3.0.0) | helm | held |
| workflows pin, same major | helm | auto-merged (unchanged rule) |
| workflows pin, other major | helm | held (unchanged rule) |
| a minor (go.mod, or a helm ref) | go-service | auto-merged (unchanged) |

Held PRs get needs-human and no ccf-bump:automerge label (an earlier same-day label is removed), so the train reports them as needs-human and the card goes to #ccf-pr-needs-human. The PR body ("Not auto-merged, a human merges this PR:") and ccf-bump's output (auto-merge: off (...), also in --dry-run) say why: a minor (or major) app update in a helm repo: check whether the chart needs new values or templates, push them to this PR if so, then merge.

  • internal/bump/plan.go: Change.Major is unchanged; new Change.NeedsHuman(kind) / Change.HoldReason(kind) and Plan.HoldReasons(kind). App versions are the helm updater's refs, not file names.

  • cmd/ccf-bump/bumper.go: auto-merge, labels, dry run and PR body use Plan.HoldReasons(repo.Kind).

  • Tests: a table test for the predicate (0.x and 1.x+ minor and patch, major, workflows pins in a helm repo, a non-helm repo with a minor) and TestHelmAppMinor, a bumper test on the helm fixture (labels, the reason in the output and the PR body). With the helm branch disabled, both fail.

  • Docs: docs/ccf-bump.md (auto-merge rules), docs/train.md (needs-human row), docs/attention.md (ccf-bump's needs-human row).
  • Verified locally: go test -race ./..., go vet ./..., gofmt -l ., actionlint v1.7.12, go run ./cmd/manifest on both manifests.

    Task: W1-S3-FIX-HELM-MINOR-GATE (local-dev/docs/release-automation/workstream-1-foundations.md)

    🤖 Generated with Claude Code

    Diff: 348 lines (+261 / -87) across 4 files Reviewer: gusfcarvalho Review duration: 13m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 348 lines diff across 4 files
    0.66
    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.350
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #92"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 65.6% (HIGH) · Higher = larger blast radius
    65.6%
    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: 25.9% · Safe to merge
    25.9%