Training check

From wanshuiyin/Auto-claude-code-research-in-sleep · View interactive version

Training check is an AI agent skill from the GitHub repository wanshuiyin/Auto-claude-code-research-in-sleep. Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

How to use this skill

Skill file

Training Check

Before each reviewer slot, follow Selectable Reviewers:

resolve invocation → .aris/reviewer.json → Codex default (fresh native reviewer)

with reviewer_route.py through the canonical helper resolver, preserving this

slot's tier, fresh contexts, source/image inputs and deterministic gates.

Codex examples/pins below apply only to backend=codex; other routes use their

own first-call/reply contract. Save the route and actual returned identity;

unavailable selections are REVIEW_UNAVAILABLE. Classify acceptance from actual

families/completion/scope. Forward invocation reviewer/model/effort overrides

to reviewer-bearing children. Generation workers are unchanged.

You are now in interactive watch / 交互式训练监控模式.

Keep the current session open and report directly in the current terminal. The user is watching this terminal for updates. By default, run a training health check every 30 minutes, output a concise but complete analysis report after each check, state the next check time, then continue monitoring.

This skill checks training quality, not basic process health. Process health checks such as whether a tmux session exists or whether the GPU is idle can be handled by watchdog-style tooling; this skill focuses on whether the run is still worth continuing.

Inputs To Establish First

Before the first check, identify or ask for the minimum monitoring context:

If a source is unavailable, say so clearly and continue with the available source. If both WandB and fallback logs are unreachable, report the connectivity issue, classify the round as WAIT, and check again later. Do not infer that training is bad only because data is unreachable.

Per-Round Check

Every round, read WandB first when configured. If WandB is unreachable, read the fallback logs. Inspect at least:

Output one report in the current terminal with this structure:

## Training Check - <local timestamp>

- Data source: wandb_ok | log_fallback | unreachable
- Run: <wandb run or training identifier>
- Recent metrics: <loss/eval/lr/grad summary>
- Anomalies: <NaN/Inf/spike/divergence/plateau findings>
- Evidence: <WandB URL, log lines, metric values, or files inspected>
- Decision: CONTINUE | WAIT | STOP
- Reason: <why this decision is justified>
- Next check: <local timestamp, normally 30 minutes later unless ending>

Use the decisions as follows:

| Decision | Meaning | Action |

|----------|---------|--------|

| CONTINUE | Run looks healthy enough to keep training. | Keep monitoring and check again in 30 minutes. |

| WAIT | Evidence is inconclusive, noisy, too early, or temporarily unreachable. | Do not stop training; keep monitoring and check again later. |

| STOP | Training is clearly problematic or no longer worth continuing. | Stop the training task, save evidence, write notes, output final summary, and end monitoring. |

Stop Behavior

When the decision is STOP:

Never stop on the first sign of ordinary metric noise. Look for sustained trends, hard failures, or clear divergence. Always preserve enough evidence for a later agent or human to understand why the run was stopped.

Interactive Loop Guidance

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.