Skip to content

fix: an explicit 'no' to auto healing must send enableAutoHealing=false - #60

Closed
vks-team wants to merge 1 commit into
mainfrom
fix/auto-healing-explicit-off
Closed

fix: an explicit 'no' to auto healing must send enableAutoHealing=false#60
vks-team wants to merge 1 commit into
mainfrom
fix/auto-healing-explicit-off

Conversation

@vks-team

Copy link
Copy Markdown
Contributor

Field bug (QC)

In the create-cluster flow the user answered "no" to the auto-healing question — the cluster still came up with auto healing enabled.

Root cause

configure_auto_healing is correct (explicit required param, sends what it's told). The gap is in the create flow: the guide listed autoHealingConfig as "Tuỳ chọn", so the agent encoded the user's "no" as an omitted field — and an omitted field means the platform default applies, which is currently ON. The user's "no" never reached the API. (The CLI behaves the same way with an empty flag, so nothing contradicted it until QC checked.)

Fix — make the outcome deterministic regardless of the platform default

  • Guide step k: always send the field explicitly — "no" → autoHealingConfig: {enableAutoHealing: false} (never omit); "yes" → ask exactly ONE of maxUnhealthy | unhealthyRange (+ optional timeoutUnhealthy 5–180m). The confirm plan now shows the explicit choice.
  • CreateClusterComboDto.autoHealingConfig description: omitted ⇒ platform default (currently ON); never encode a 'no' as omission.
  • AutoHealingConfig docstring: exactly-one rule when enabling; {enableAutoHealing: false} alone is a valid body (API-confirmed).
  • Test pins the guide content (enableAutoHealing: false + never-omit wording).

Test

278 passed, ruff clean.

Field bug: the user answered 'no' to the auto-healing question, the agent
encoded that as an OMITTED autoHealingConfig, and the platform default (ON)
won — the cluster came up with auto healing enabled against the user's
answer. configure_auto_healing itself is correct; the gap was in the create
flow.

- guide step k: always send the field explicitly — 'no' ->
  {enableAutoHealing: false}; 'yes' -> ask exactly one of maxUnhealthy |
  unhealthyRange (+ optional timeoutUnhealthy)
- CreateClusterComboDto.autoHealingConfig description: omitted => platform
  default applies (currently ON); never encode the user's 'no' as omission
- AutoHealingConfig docstring documents the exactly-one rule and that
  {enableAutoHealing: false} alone is a valid body (API-confirmed)
@vks-team

Copy link
Copy Markdown
Contributor Author

Closing — the fix lands on the API side instead: an omitted autoHealingConfig will no longer apply any platform default, so the MCP flow's omit-on-'no' behavior is correct as-is.

@vks-team vks-team closed this Jul 23, 2026
@vks-team
vks-team deleted the fix/auto-healing-explicit-off branch July 23, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant