Agent Orchestration
This skill manages Skupper VAN infrastructure only. Model container
lifecycle is handled by hosted-model-ctl — the agent semantically
triggers that skill (loads and follows its instructions), NOT by
cross-referencing or invoking its scripts directly.
Site Roles
| Role | Sites | What “start” includes |
|---|---|---|
| Model Provider | rhel-ai, rhtevan-work | VAN infra (controller + router) + model containers (via hosted-model-ctl) |
| Model Consumer | local-ezhang, crc-ezhang | VAN infra only (controller + router + listeners/links) |
The agent MUST understand this distinction: hosted-model-ctl is only
triggered for Provider sites that are up and reachable.
Signal Routing Rules
| Signal pattern | Script invocation |
|---|---|
setup skupper |
setup.sh (infra + model setup delegated) |
teardown skupper |
teardown.sh (remove infra, models stopped by script) |
upgrade skupper |
upgrade.sh (align podman versions to CRC baseline) |
start skupper |
up.sh (VAN + default DPs — all handled by script) |
stop skupper |
down.sh (models stopped + VAN — all handled by script) |
start skupper with PROFILE |
up.sh <HOST> --profile <PROFILE> (agent resolves profile → host) |
start skupper on SITE |
up.sh <SITE> (provider: VAN + model; consumer: VAN only) |
stop skupper on SITE |
down.sh <SITE> (provider: model + VAN; consumer: VAN only) |
check skupper / skupper status |
status.sh + hosted-model-ctl list.sh |
Scoping Rules
- Without
on SITE→ action applies to ALL sites (providers + consumers). - Without
with PROFILE→up.shuses default profile per host (deterministic). - With
on PROVIDER_SITE→ scope VAN + model to that provider. - With
on CONSUMER_SITE→ scope VAN only, no model delegation. - With
with PROFILE→ agent resolves profile to its host, passes--profileto script.
Name Resolution (Agent Responsibility)
Before calling up.sh or down.sh, the agent resolves user input
to exact site and profile names:
- Run
up.sh --list-sites→ get valid site names. - If user specified a profile, run
hosted-model-ctl/scripts/list.sh --names-only <site>→ get valid profile names. - Match user input against valid names (semantic matching).
- Call script with exact resolved names.
Scripts do strict validation — reject unknown names with the list of valid alternatives.
Error Handling
When any phase fails, the agent MUST:
- Present the error output and analysis.
- STOP — do not proceed to the next phase.
- WAIT for user instructions before continuing.
Partial Availability
up.sh and down.sh handle unreachable hosts gracefully — skipping
them with warnings instead of aborting entirely. The agent MUST:
- Parse output for
✅ Upvs⏭️ Skippedhosts. - Classify skipped hosts by role (Provider vs Consumer).
- Do NOT manually trigger
hosted-model-ctl— scripts handle model start/stop internally. - Report skipped providers:
⏭️ <host> skipped (<reason>) — models not started/stopped. - Report skipped consumers:
⏭️ <host> skipped (<reason>) — no model action needed. - Do NOT ask “proceed with available hosts?” — partial success is the default.
- Present a combined status report at the end.
Startup Order
up.sh orchestrates internally — agent does NOT pre-call hosted-model-ctl:
- Skupper controllers (systemd) — Consumer + Provider sites.
- Skupper routers (systemd) — Consumer + Provider sites.
- Model containers — Provider sites only (via
get_default_profile).
Shutdown Order (reverse)
down.sh orchestrates internally — agent does NOT pre-call hosted-model-ctl:
- Model containers — Provider sites only (via
get_active_profile). - Skupper routers (systemd) — Consumer + Provider sites.
- Skupper controllers (systemd) — Consumer + Provider sites.
Agent rule: never hardcode a profile name when stopping. down.sh
resolves the active profile deterministically from state files.