> ## Documentation Index
> Fetch the complete documentation index at: https://sariva.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate and operate

> Run the pre-flight gate after install and cluster connection, then test REST, Slack or Teams.

ⓘINFO

**After install and cluster connection — not a wizard prompt.** This page verifies that the generated configuration can reach the external systems you selected, such as Claude, Slack, Microsoft Teams, GitHub, your paging provider, and Kafka when cluster credentials are available.

## Run from the wizard output directory

Run validation from the directory created by the setup wizard. That directory must contain both files:

```text theme={null}
config/customer_config.yaml
values.yaml
```

Check that you are in the correct directory:

```bash theme={null}
test -f config/customer_config.yaml && test -f values.yaml
```

On the [VM path](https://sariva.mintlify.site/deploy/vm-docker-cc.md) there is no `values.yaml`: the directory holds `docker-compose.yml`, `.env` and `config/customer_config.yaml`, and validate does not ask for `values.yaml`.

```bash theme={null}
test -f config/customer_config.yaml && test -f .env
```

!WARNING

Do not run `sariva validate all` from a random directory. The command reads the local `config/customer_config.yaml` and `values.yaml` files from the wizard output directory.

## Export local placeholder values (Kubernetes paths)

**On the VM path, skip this step.** Run `sariva validate` from the directory that holds `.env` and it reads `.env` itself. A variable you already exported in your shell wins over `.env`, and a value still reading `REPLACE_ME…` is skipped, so validate names the field you have not filled in yet.

On the Kubernetes paths, if `config/customer_config.yaml` or `values.yaml` contains placeholders such as `${SLACK_BOT_TOKEN}`, `${SLACK_APP_TOKEN}`, `${GITHUB_TOKEN}`, or `${ANTHROPIC_API_KEY}`, export those values in your local shell before running validation:

```bash theme={null}
export ANTHROPIC_API_KEY="sk-..."
export SLACK_BOT_TOKEN="xoxb-..."
export SLACK_APP_TOKEN="xapp-1-..."
export GITHUB_TOKEN="github_pat_..."
```

ⓘINFO

On the Kubernetes paths, the Kubernetes Secret is used by the running Sariva pod. The laptop CLI does not read that Secret automatically. When you run validation locally, the CLI expands environment variables from your shell.

## Run validation

```bash theme={null}
sariva validate all
```

`sariva validate all` reads `config/customer_config.yaml` and `values.yaml`, checks the configuration shape, then runs live probes for the enabled integrations.

ⓘINFO

Run this from a machine with network reach to the systems being checked. The command can make live calls to Claude, Slack, GitHub, Confluent Cloud, Kafka endpoints, and AWS depending on your selected path.

## Check one integration at a time

```bash theme={null}
sariva validate llm
sariva validate kafka
sariva validate slack
sariva validate teams
sariva validate gitops
sariva validate paging
```

`sariva validate all` runs the same checks in that order, with one difference: there **paging is config-only** — provider known, its variables present, the URL well-formed — and it never sends an alert. `sariva validate paging` is the live check: it sends a test alert through your provider and resolves it ([PagerDuty](https://sariva.mintlify.site/prerequisites/paging/pagerduty.md) · [xMatters](https://sariva.mintlify.site/prerequisites/paging/xmatters.md)). `sariva validate teams` requests a token for your bot; when `customer_config.yaml` has no `notifications.teams` block it prints a skip and passes ([Microsoft Teams](https://sariva.mintlify.site/prerequisites/teams/overview.md)).

## Expected output before Kafka is provisioned

If the Confluent Cloud cluster has not been provisioned or connected yet, the Kafka probe can show `PENDING`. This is expected when the cluster is declared but credentials are not attached yet.

```text theme={null}
Sariva AI Platform — Pre-flight Check
══════════════════════════════════════════════════════════
2026-06-04 10:46:00 [info     ] llm_health_check               backend=claude model=claude-sonnet-4-6 ok=True
  ✓ LLM backend            claude claude-sonnet-4-6 — health 3769ms, invoke 2278ms
  ⊘ Kafka (dev_cluster)    PENDING — awaiting credentials; connect after first apply
  ✓ Slack                  workspace='acme-corp', bot=@sariva-platform, posted to sariva-kafka-approvals, sariva-kafka-alerts
  ⊘ Teams                  skipped — no notifications.teams block in customer_config.yaml (MS Teams chat + alert routing is opt-in).
  ✓ GitOps                 PR opened+closed cleanly on 'main'
  ⊘ Paging                 skipped — paging not configured (values.yaml paging.provider=none)
══════════════════════════════════════════════════════════

All checks passed. Your platform is ready.
Send a message in your Slack alerts channel to test the agent.
```

✓SUCCESS

`⊘ Kafka ... PENDING` is acceptable before the first Confluent Cloud cluster is provisioned and credentials are attached. Continue the deployment path, complete the first Terraform apply, then connect the cluster.

## Expected output after Kafka is connected

After the Confluent Cloud cluster exists and credentials are attached, the Kafka probe should also pass. The Kafka check **actually connects**: it resolves the credential, builds the client config, then performs a live Kafka admin metadata round-trip against the brokers (bounded at 10 seconds) — a green line means the cluster answered a real request, not just that the configuration looked right:

```text theme={null}
Sariva AI Platform — Pre-flight Check
══════════════════════════════════════════════════════════
  ✓ LLM backend            claude claude-sonnet-4-6 — health 3316ms
  ✓ Kafka (prod_cluster)   flavor=confluent_cloud, auth=sasl_ssl_plain, creds=k8s_secret — live admin probe OK: 3 broker(s), 42 topic(s), 187ms
  ✓ Slack                  workspace='acme-corp', posted to #kafka-approvals, #kafka-alerts
  ✓ Teams                  token grant ok (app=<app-id>, tenant=<tenant-id>); TEAMS_ALERTS_CHANNEL_ID shape ok (19:…). Channel delivery is proven by the first live post — the bot must be installed in the team.
  ✓ GitOps                 PR opened+closed cleanly
  ✓ Paging                 PagerDuty configured — 1 variable(s) present, endpoint events.pagerduty.com (config-only check; no alert sent)
══════════════════════════════════════════════════════════

All checks passed. Your platform is ready.
```

## Exit codes

| Exit code | Meaning |
| - | - |
| `0` | Required probes passed. Allowed skips, such as Kafka `PENDING` before credentials are attached, can still return success. |
| `1` | At least one required probe failed. |
| `2` | Configuration shape error. |

Example probe failure (a cluster that never answers — network path or a TLS handshake that cannot complete):

```text theme={null}
  ✗ Kafka (prod_cluster)   Kafka admin round-trip timed out after 10s — broker unreachable (network path, DNS, firewall) or the TLS handshake never completes (e.g. a CA mismatch between client and broker certificates). Hint: Confluent Cloud API Key/Secret valid + the four describe-only ACLs on the key's service account (Cluster DESCRIBE, Topic DESCRIBE, Topic DESCRIBE_CONFIGS, Group DESCRIBE — not DeveloperRead, which over-grants data-plane READ)
```

A failed Kafka line tells you **which class** of failure occurred, so you know where to look:

* **Rejected config** — the Kafka client refused the built configuration (unknown property, unreadable certificate material). Fix the cluster registration (`auth_type` / credential material).
* **Authentication/TLS** — the broker was reached but refused the connection. Fix the credential or the certificate trust (CA).
* **Timeout/unreachable** — no metadata came back within 10 seconds. Check the network path, DNS, and firewall — and note that a **CA mismatch** between client and broker certificates usually presents this way too, because the failing TLS handshake is retried internally until the call times out.

A non-zero exit means a probe could not reach its target or a credential was wrong. Follow the hint on the failing line.

## Your first conversation

In Slack, in a channel where the bot is a member — or in Microsoft Teams, in a direct message to the bot or by `@`-mentioning it in a channel of a team where the bot is installed (see [Microsoft Teams](https://sariva.mintlify.site/prerequisites/teams/overview.md)). The examples use the Slack handle:

```text theme={null}
@sariva-platform what's the health of my Kafka cluster?
```

Before Kafka is connected, ask a platform-level question first, such as:

```text theme={null}
@sariva-platform are you online?
```

After Kafka is connected, ask cluster-health questions such as:

```text theme={null}
@sariva-platform what's the health of dev_cluster?
```

Once you get a healthy response, the platform runtime and integrations are ready.

## Continue the deployment path

> [card] [Next: use Sariva](https://sariva.mintlify.site/using-sariva/overview.md)
>
> Learn what to ask after the platform and cluster access are ready.

> [card] [Back to the AWS EKS path](https://sariva.mintlify.site/deploy/aws-eks-cc.md)
>
> Return to the EKS path map to confirm where this step fits.

> [card] [Back to the VM path](https://sariva.mintlify.site/deploy/vm-docker-cc.md)
>
> Running on a Linux VM? Return to the VM checklist.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.