Repository navigation
v1.10.0 — MCP writes preview their blast radius until `confirm=true` (HLD §7)
Breaking for MCP callers:
vs_toggle,pool_member_disable,ako_restart,ako_sync_forceandako_config_upgradetake
confirm: bool = False. A call withoutconfirm=truereturns
{"action": "preview", "blast_radius": {...}, "hint": ...}and changes nothing.- Enabling a Virtual Service now previews too.
vs_toggle(enable=true)used to act on the first
call; a bare call now previews in both directions. ako_config_upgradewith no arguments no longer runshelm upgrade --dry-runas its answer. The
preview still runs it and returns the output ashelm_dry_run, next to the blast radius.- Return type: all five tools returned a string; they now return a dict. Preview,
noop(already
in the requested state: VS already enabled/disabled, member already disabled), acted
(action=enabled/disabled/drained/pod_deleted/upgraded, with the executor's
message inresult), or an error: a refusal or a failed executor run returns{"error": ..., "blast_radius": ...};
an object that cannot be found (VS, pool, member) or a missinghelmreturns{"error": ..., "hint": ...}.
The[preview]string prefix is gone.
- Requires
vmware-policy>=1.17.0, which audits aconfirm=Falsepreview asdry_runand redacts long
audit text in linear time.
confirmed(all five) anddry_run(ako_config_upgrade) remain as deprecated aliases for one minor
release, defaulting to null. The conservative reading wins:confirmed=truestill acts (for the
upgrade only together withdry_run=false, as before), but an explicitconfirmed=falseor
dry_run=trueholds even next toconfirm=true. Any call that passes an alias gets adeprecatednote.
Blast radius (L1), measured with reads the skill already makes:
vs_toggle: VS name and uuid, enabled now / after, oper status, VIPs, and every pool behind it
(direct and through pool groups, viavirtualservice-inventory) with member and enabled-member counts.pool_member_disable: pool name and uuid, the member (IP, port, enabled, ratio), member count, enabled
members before and after. When the pool'sserverscannot be read, those counts arenull(not 0)
andserversis listed inunmeasured, soconfirm=truerefuses.ako_restart/ako_sync_force: context, namespace, AKO pod name, uid, phase, ready, restarts, and the
Ingresses (count, first 16) whose programming pauses.ako_config_upgrade: release, namespace, chart and app version now, revision, status, chart it moves to
(flagged when unpinned).
Refusals (L3) — confirm=true is refused with a teaching error, and audited as a failure, when:
- the pool member is the pool's only enabled member, or its IP matches more than one member;
- the AKO pod is already terminating;
helm upgrade --dry-runfails, or the release is in apending-*state;- anything the blast radius depends on could not be read (VS uuid or pools, pool members, the pod, its
uid, the Ingress list, the release status).
The AKO pod delete now carries a uid precondition: the pod deleted is the pod that was measured.
restart_ako / force_resync accept an optional uid for this; the CLI does not pass one and is unchanged.
CLI flags and prompts are unchanged.