https://github.com/google/ml-workload-debugging-wiki
An AI-powered troubleshooting assistant and operational knowledge base for large-scale ML training and inference workloads on Cloud TPU, GPU, Pathways, JAX, XLA, and GKE. Instead of manually digging through thousands of worker logs and restart attempts, you give the assistant a workload ID and it automatically finds the earliest real error, identifies faulty GKE nodes, and recommends a fix.
Copyright 2026 Google LLC. Licensed under the Apache License, Version 2.0.
This is not an officially supported Google product. We share it as a reference implementation of agent-executable operational knowledge.
You need Python 3.9+ and the Google Cloud SDK (gcloud and kubectl)
authenticated against the project you are debugging.
git clone https://github.com/google/ml-workload-debugging-wiki
cd ml-workload-debugging-wiki
python3 -m venv _wiki/.venv && _wiki/.venv/bin/pip install -r _wiki/requirements.txt
gcloud auth login --update-adcLaunch your coding agent (Claude Code or Antigravity) from the repository root.
Run /troubleshoot with your workload or JobSet name:
/troubleshoot <workload_id>
(Plain English such as "troubleshoot workload my-tpu-workload" works too.)
- Checks access first: Confirms log access up front and stops with
NO_DATAif permissions are missing rather than guessing. - Finds the earliest real error: Scans Cloud Logging, GKE events, and node logs across all pods, looking past downstream barrier timeouts to find the worker or node that failed first.
- Delivers a clear report: Returns a Verdict (
CONFIRMED,REFUTED,INCONCLUSIVE, orNO_DATA), quoted log lines, the Culprit GKE Node, a Failure Table across runs, and the Recommended Fix. Any step that modifies cluster state requires your explicit approval.
| Command | What it does |
|---|---|
| `/dashboard | Launches the optional local GKE Capacity |
| : [project | cluster |
: : (http\://localhost\:8080). : |
|
| `/handoff <workload_id> [case_id] | Packages /troubleshoot findings and |
| : --bucket=<gs://...>` : failure tables into a GCS bucket to : | |
| : : share with Google Cloud Support. : |
All diagnostic knowledge lives under _wiki/, organized by page type and
cataloged in _wiki/INDEX.md:
| Type | Directory | What it holds |
|---|---|---|
symptom |
symptoms/ |
A failure mode, its log signatures, and how to verify it |
playbook |
playbooks/ |
Narrative troubleshooting guidance and reasoning rules (see |
: : : _wiki/playbooks/rca-invariants.md) : |
||
workflow |
workflows/ |
An automated diagnostic procedure: ordered steps, as JSON |
action |
actions/ |
One atomic diagnostic step, as JSON |
tool |
tools/ |
A diagnostic tool or script and how to run it |
concept |
concepts/ |
How a system component works (e.g. the libtpu lifecycle) |
entity |
entities/ |
Platform entities (TPU, GPU, JAX, XLA) |
To validate all schemas, links, and formatting across the wiki (~1 second):
python3 _wiki/wiki_linter.pyA healthy tree reports "status": "PASS" with 0 issues. Read
_wiki/SCHEMA.md before adding or editing pages.
Open an issue at https://github.com/google/ml-workload-debugging-wiki/issues.
See docs/contributing.md. Contributions require a Google
CLA and follow the Community Guidelines.
New or updated pages must conform to _wiki/SCHEMA.md and
pass python3 _wiki/wiki_linter.py.
Apache License 2.0. See LICENSE.