Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/_static/install-builder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const modules = {
bcm: 'Base Command Manager', slurm: 'Slurm', diagnostics: 'Hardware diagnostics',
research: 'Research', terminal: 'Browser terminal', edit: 'Guarded Kubernetes edits', clusters: 'Cluster monitoring',
webSearch: 'Web search (DuckDuckGo)',
alertAutomation: 'Automatic alert investigation',
};
const observabilityServices = ['prometheus', 'alertmanager', 'loki'];
const fields = {
Expand All @@ -26,12 +27,16 @@ const fields = {
evidenceRoot: ['Slurm evidence directory on the collector node', '', '/slurm'],
evidenceNode: ['Slurm collector node hostname', '', 'slurm-login-node'],
corpus: ['Research corpus directory on the node', '', '/cm/shared/iraop-corpus'],
alertChannel: ['Native messaging channel', '', 'feishu, slack, msteams, ...'],
alertTarget: ['Report recipient target', '', 'Native channel target'],
alertSession: ['Verified recipient conversation', '', 'agent:default:...'],
};
export function enabledModules(state) {
const enabled = new Set(state.modules || []);
if (enabled.has('diagnostics') || (enabled.has('slurm') && state.slurmBackend !== 'vanilla')) enabled.add('bcm');
if (['terminal', 'edit', 'clusters'].some(name => enabled.has(name))) enabled.add('kubernetes');
if ([...observabilityServices, 'grafana'].some(name => enabled.has(name))) enabled.add('observability');
if (enabled.has('alertAutomation')) {enabled.add('alertmanager'); enabled.add('observability');}
return enabled;
}
const quote = value => `'${String(value).replaceAll("'", "'\\''")}'`;
Expand Down Expand Up @@ -79,6 +84,11 @@ export function buildCommand(state) {
set('researchAgent.iraop.corpus.hostPath', value('corpus'), true);
}
if (enabled.has('edit')) set('modules.edit.hitl', true);
if (enabled.has('alertAutomation')) {
set('modules.alertAutomation.delivery.channel', value('alertChannel'), true);
set('modules.alertAutomation.delivery.target', value('alertTarget'), true);
set('modules.alertAutomation.delivery.sessionKey', value('alertSession'), true);
}
if (state.sandboxInstalled) set('agentSandbox.install', false);
let target = quote(chart);
let prefix = '';
Expand Down Expand Up @@ -155,6 +165,7 @@ if (root) {
if (enabled.has('bcm')) keys.push('bcmHead', 'bcmSecret');
if (enabled.has('slurm') && state.slurmBackend === 'vanilla') keys.push('evidenceRoot', 'evidenceNode');
if (enabled.has('research')) keys.push('corpus');
if (enabled.has('alertAutomation')) keys.push('alertChannel', 'alertTarget', 'alertSession');
for (const key of keys) {
if (key === 'grafanaType') {
settingsBody.append(select(key, fields[key][0], [['prometheus', 'Prometheus'], ['victoriametrics-metrics-datasource', 'VictoriaMetrics (native plugin)']]));
Expand All @@ -178,6 +189,7 @@ if (root) {
if (enabled.has('bcm') && state.redfish) notes.push('Redfish reads node BMCs through the BCM head using credentials stored in BCM. Resets and configuration changes are unavailable. BMC TLS certificate verification is off by default; see the Redfish installation guide to configure it.');
if (enabled.has('research')) notes.push('Create iraop-secrets with NVIDIA_API_KEY, NVIDIA_CHAT_API_KEY and IRAOP_API_KEY; prepare the corpus directory.');
if (enabled.has('webSearch')) notes.push('Web search uses DuckDuckGo without an API key; the OpenClaw pod needs HTTPS egress to duckduckgo.com. Clear it for air-gapped installations.');
if (enabled.has('alertAutomation')) notes.push('Configure the native messaging application first and use its verified recipient conversation. Automatic investigation uses View permissions. The generated settings use polling; see the plugin guide for alert filters, webhook intake and authentication.');
if (state.inference !== 'external') notes.push('Verify GPU, memory and model cache requirements in the on-prem inference section.');
prerequisites.textContent = notes.join(' '); code.textContent = buildCommand(state); status.textContent = '';
if (catalog) renderSizing(sizing, catalog, state, enabled);
Expand Down
298 changes: 298 additions & 0 deletions docs/alert_automation_plugin.md

Large diffs are not rendered by default.

605 changes: 605 additions & 0 deletions docs/background_alert_investigation.md

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions docs/examples/alert-investigator/config.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"alertmanager_url": "https://alerts.example.com",
"mosaic_url": "http://127.0.0.1:13300",
"investigation_mode": "agent",
"match_labels": {},
"include_existing": false,
"poll_seconds": 30,
"timeout_seconds": 600,
"investigation_context": "",
"state_dir": "~/.local/state/mosaic-alert-worker",
"message_prefix": "MOSAIC automated read-only alert report",
"redact_values": [],
"delivery": {
"kubectl": "/home/operator/.local/bin/kubectl",
"context": "site-cluster",
"namespace": "mosaic",
"deployment": "openclaw",
"container": "gateway",
"channel": "feishu",
"target": "chat:oc_REPLACE_WITH_APPROVED_GROUP",
"session_key": "agent:default:feishu:group:oc_REPLACE_WITH_APPROVED_GROUP"
}
}
16 changes: 16 additions & 0 deletions docs/examples/alert-investigator/mosaic-alert-ui-forward.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
[Unit]
Description=Loopback-only MOSAIC API connection for the background investigator

[Service]
Type=simple
EnvironmentFile=%h/.config/mosaic-alert-worker/deployment.env
ExecStart=/usr/bin/env ${KUBECTL} --context ${KUBE_CONTEXT} -n ${KUBE_NAMESPACE} --cache-dir=%h/.local/state/mosaic-alert-worker/kubectl-cache port-forward --address=127.0.0.1 svc/mosaic-ui 13300:3000
Restart=always
RestartSec=3
UMask=0077
NoNewPrivileges=true

[Install]
WantedBy=default.target
19 changes: 19 additions & 0 deletions docs/examples/alert-investigator/mosaic-alert-worker.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
[Unit]
Description=MOSAIC background read-only alert investigation and native report delivery
Wants=mosaic-alert-ui-forward.service
After=mosaic-alert-ui-forward.service

[Service]
Type=simple
EnvironmentFile=%h/.config/mosaic-alert-worker/credentials.env
ExecStart=/usr/bin/python3 %h/.local/share/mosaic-alert-worker/mosaic-alert-worker.py --config %h/.config/mosaic-alert-worker/config.json
Restart=on-failure
RestartSec=5
TimeoutStopSec=30
UMask=0077
NoNewPrivileges=true

[Install]
WantedBy=default.target
11 changes: 11 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,17 @@ Start the MCP client from the shell where `MOSAIC_URL` and `MOSAIC_UI_MACHINE_TO

Replace `http://localhost:3000` with the deployed AI Factory Operations Agent URL when it is reachable directly. The bridge exposes `ai_factory_operations_agent_chat`, `ai_factory_operations_agent_history`, `ai_factory_operations_agent_commands`, and the AI Factory Operations Agent/OpenClaw tools enabled by the chart over stdio MCP. See `docs/skills/ai-factory-operations-agent-headless/SKILL.md` for the complete agent workflow.

For an optional Gateway-managed background Service with configurable Agent,
native channel, webhook/poll intake and persistent report context, follow the
[native alert automation plugin guide](alert_automation_plugin.md).

For the legacy deployment-host implementation without an open browser, follow the
[background alert worker guide](background_alert_investigation.md). This
optional deployment-host service uses the existing headless API, explicit
Alertmanager label filters, IRAOP collections and an already configured native
Feishu destination. The guide includes complete user-systemd units, credential
setup, durable processing state and per-stage acceptance evidence.

## Vanilla Slurm RCA

The public Slurm workflow is evidence based. By default, the chart deploys a read-only Slurm evidence collector. The collector mounts the host filesystem read-only inside the collector pod, exposes bounded HTTP tools to OpenClaw, and keeps broad host filesystem access out of the LLM sandbox.
Expand Down
7 changes: 7 additions & 0 deletions docs/installation_builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Select your inference path and modules to generate an installation command. Comp

CPU, RAM, GPUs and disk update automatically with your selections. Values come from this documentation version’s rendered Helm manifests. Different chart versions or site overrides can change the requirements.

Select **Automatic alert investigation** to install the
[native alert automation plugin](alert_automation_plugin.md). Configure the
native messaging application first, then supply its channel, fixed report target
and verified recipient conversation. The generated settings use Alertmanager
polling. The plugin guide covers source filters, webhook intake, credentials and
migration from the retained deployment-host worker.

Select Base Command Manager to expose the optional **Read-only Redfish** checkbox inside its module block. See the [Redfish installation guide](installation.md#read-only-redfish) for BMC credential resolution and TLS verification settings.

```{raw} html
Expand Down
Binary file modified helm/mosaic-stack/files/agent-documentation.tar.gz
Binary file not shown.
Loading
Loading