Skip to content

2. Health Check ​

Run swao health-check (or select option 2 from the main menu) to verify that your workspace is ready for an assessment. It runs 26 probes; probes 17 to 25 apply to Service Portfolio workspaces and show INFO elsewhere, and probe 26 checks the live landing zone connections. Resolve every FAIL before an assessment; WARN and INFO are advisory.

Checks ​

CheckWhat it verifies
LicenceEdition detected and valid
PlaywrightBrowser engine ready for dynamic analysis
MCPModel Context Protocol server configuration. Checks every Claude Desktop config (Microsoft Store / MSIX and classic installation) and warns when any SWAO entry points at a binary that no longer exists or is not the running SWAO binary; each stale entry is listed with its config path
Compliance cataloguesFramework YAML files present and parseable
Import templatesContext ingestion folder structure in place
TraceabilityAudit-grade signal fields enabled
BI export bundleIntegrity of the last export (skipped on first run)
LZ catalogue (probe 15)Every LZ catalogue the fit can resolve loads and validates, the catalogue quality rules below pass for the bundled catalogues (and for a workspace catalogue folder that holds catalogue files), and the LZ targets configured in .swao.yml name a known provider and region or geography. Any error or warning finding is a WARN; the probe never fails
Community frameworks, service mapping (probe 4)One line per community framework with its service-mapping coverage: the capability tags its service-controls.yaml maps, out of the tags the resolved LZ catalogues use (no service mapping when the file is absent, so every service of a Landing Zone Live Assessment is grey for that framework)
Pass-catalogue overridesOne line per override folder wsp/inputs/pass-catalogs/ (workspace root, then each app; an app entry wins on the same id) with its entries. A WARN for each unchanged copy of a catalogue SWAO shipped (seeded by an older swao init; SWAO ignores it so it cannot hide later product fixes, and it can be deleted) and for each entry that replaces a bundled entry with different content, so an override is always visible. See Pass 08
Research cache (probe 20, Service Portfolio)Research stubs of the service apps (wsp/inputs/research/). Apps without any stub are normal in a workspace that researches only the apps it assesses: one WARN with a count, for example 231 of 234 service app(s) not researched yet, and the hint swao service research --app <id>. An incomplete stub pair (one of cve-summary.md and eol-status.md missing) is a FAIL, because it marks an interrupted research run
LZ connections (probe 26)For every landing zone scope registered in .swao.yml (landing_zones[]): the live driver is in this build, the credential fields are stored in the vault (field names only) and an expires-at token is not expired; where the credentials are complete, the last stored read-only probe of the scope (from swao lz probe, the Setup Probe step, swao lz connect or an LZ Live run; no call to the provider) with its outcome, coverage counts and time (stale after 7 days), the credential field names stored, and the services and resources the last run read. verified everywhere and not stale is ok; write-capable, unverifiable, login failed, not probed, missing credentials, expired or stale is a WARN that names its causes. The probe never fails the health check, because a write-capable operator login is the expected setup of a test tenant; a run asks for its own confirmation (--accept-write-capable-credentials). INFO when no landing zone is registered

LZ catalogue quality rules ​

The SWAO team owns the bundled LZ catalogues (lz-catalogues/: one JSON file per provider, _lz-catalogue-template.json, _coming-soon.json, aws-service-meta.json, and the VM price table prices/vm-prices.json of the service cost model). There is no index.json: SWAO lists the catalogues from each file's own meta block, so the rules check each file on its own; an index.json left in an older workspace folder is ignored. Probe 15 and the CI audit gate tests/audit-gates/lz-catalogue-quality.gate.mjs apply the same rules (module-landing-zone/src/catalogue/quality.ts). Error rules fail the gate, so an inconsistent catalogue cannot ship; warning rules are reported only. In the health check an error or warning finding makes probe 15 WARN, an info finding (target-geography) does not; none fails the health check.

RuleSeverityWhat it checks
template-invaliderror_lz-catalogue-template.json exists and, without its _comment keys, passes the catalogue schema
catalogue-schemaerrorThe catalogue folder is readable, and every catalogue file is valid JSON and passes the catalogue schema; a failure names the file and the reason and is never skipped
provider-filenameerrormeta.provider matches the file name
meta-fieldserrorThe meta block has exactly the field set of the template
regions-counterrormeta.regions_count equals the number of regions
region-id-duplicateerrorRegion ids are unique within a provider
sovereignty-shapeerrorEvery region carries residency_country, operator_jurisdiction, extraterritorial_exposure and certifications; a region whose site the customer chooses states residency_country: OPERATOR_SITE, which is valid only with operator_jurisdiction: operator-site
confidence-vocabularyerrormeta.confidence is high, medium, low or operator-declared (custom catalogue, schema 0.2)
certification-vocabularywarningEvery region certification is in the template vocabulary: BSI_C5, ISO_27001, SOC_2, TISAX_L3, PCI_DSS, FedRAMP_High, MAS_TRM, IRAP
source-missingerrorEvery catalogue names a source (meta.source.mode)
date-formaterrormeta.last_updated is a valid YYYY-MM-DD date
stalewarninglast_updated (or generated_at of aws-service-meta.json, or meta.generated_at of prices/vm-prices.json) is older than 90 days (LZ_CATALOGUE_MAX_AGE_DAYS)
services-emptywarningA region lists no services
service-code-duplicatewarningA service code appears twice in one region
pin-driftwarningSovereignty facts differ from the refresh overlay pin for that region (catalogue/sovereignty-pins.ts, the pins swao lz catalogue update writes)
facts-unsourcedwarningSovereignty facts carry no source: the UNKNOWN residency placeholder, or no overlay pin and no meta.source.source_note
geography-coverageerrorEvery region with a residency country is tagged by the shared geography model; a residency country outside the model fails, as does a catalogue with no tagged region unless all its regions are operator-site regions (OPERATOR_SITE)
price-tableerrorThe VM price table prices/vm-prices.json, when present, is valid JSON and passes the price table schema: every price names provider, size, OS (linux or windows), region, currency and a positive hourly price, and every provider region has a source with API, URL and retrieval date
target-invalidwarning (health check only)A target in the workspace or app .swao.yml (assessment.landing_zone.provider + region, or assessment.landing_zone.targets) names an unknown provider or region; the warning lists valid region ids
target-geographyinfo (health check only)A target names a known geography (for example azure:Europe) instead of a region id; it is not a warning, and the line names the default region it resolves to (see Landing Zone Catalog Assessment)

swao health-check --json carries every finding under lz_catalogue_coverage.quality (rule, severity, file, provider, region, message) with the error and warning counts; the text output groups region findings per rule and file. Run the gate locally with node tests/audit-gates/lz-catalogue-quality.gate.mjs (Node with TypeScript type stripping, 22.18 or later).

The age threshold stays at 90 days; the release runbook refreshes the bundled catalogues before every minor release, so shipped catalogues are not stale. Residency pins added from provider region pages carry their source URL and retrieval date in LZ_SOVEREIGNTY_PIN_SOURCES (catalogue/sovereignty-pins.ts).

Run status ​

Every assessment run (application, service and landing zone catalogue) writes run-status.json into its run folder apps/<id>/wsp/runs/<timestamp>/. The status is started when the run begins and is closed on every exit path:

StatusMeaning
startedThe run is in progress, or the process was killed or crashed before it could close the run
completeThe run finished normally
partialThe run finished, but some landing zone targets were skipped (failed_targets) or some passes failed (failed_passes)
failedThe run stopped before completion, for example a --fail-on gate exit or an error; exit_code and reason say why, and no run-manifest.json is written
abortedThe run was interrupted (SIGINT or SIGTERM)

The health check lists runs among the latest 10 per app that are failed or aborted, or still started more than 6 hours after they began (stale), for example [WARN] apps/billing/wsp/runs/2026-10-17T09-00-00: application run failed (exit 6): --fail-on severity=high: 3 signal(s) matched. The publication run history, the engagement hub, the MCP run listing, the Power BI export and run retention (workspace.run_retention.keep_latest, which counts only completed runs) use only complete and partial runs, and the engagement hub flags an app whose newest run did not complete. Runs from before this marker existed are treated as before: a run counts as completed when it has a run-manifest.json.

Health Check screen in the terminal interface with the probe list and their OK, WARN and INFO statusThe Health Check screen in the terminal interface (menu option 2). Captured with an earlier SWAO version that ran 11 probes; select a probe to read its guidance text.

Interpreting results ​

  • Green: check passed; no action needed.
  • Yellow / warning: advisory; assessment can proceed but a non-critical component is missing.
  • Red / blocker: assessment will fail or produce incomplete output until resolved. The check output includes a remediation hint.

Only FAIL results count as failures. The summary line (All probes passed. or N probe(s) failed: ...) names the failed probes, and the Setup Wizard reports the same failure count, with warnings listed separately.

CLI ​

bash
swao health-check
swao health-check --verbose
swao health-check --type lz-live          # one assessment type
swao health-check --type service --json

--type (generic, application, service, lz-catalog, lz-live or llm) runs the generic probes (licence, engagement metadata, credential vault, LLM gateway, MCP, community frameworks) plus the probes of that assessment type. The other probes are not run and not listed, the lines are numbered within the type, and the log and the JSON output carry only that type. The setup of each assessment type runs this check at its end (Workspace Setup). Without --type all probes run.

See also: Workspace Setup | Troubleshooting runbook