Triage a seeded offline Trackio sweep through JSON CLI discovery, alert-adjacent evidence, run classification, and policy-based recommendation.
harbor run -t skill2env/task_huggingface-trackio_vzxdln32harbor download skill2env/task_huggingface-trackio_vzxdln32Create /workspace/triage.py to triage the overnight Atlas SFT sweep entirely from the terminal. Query the local store only through the pinned trackio JSON CLI; do not read its backing database directly. The staged-compatible alert grammar is trackio list alerts ... --json.
Your program must accept --project PROJECT --output PATH. Use /workspace/triage-policy.json as the policy, verify the requested project through project discovery, and discover its runs and available scalar/system metrics. For each run, retrieve its config and enough complete series to classify it and identify the best eligible run. Query actionable alerts with both the policy level and since timestamp. For the actionable alert, retrieve an around-step snapshot using the policy window, plus the required and optional system series. A missing optional system metric is expected: handle the CLI's nonzero exit without aborting or corrupting stdout.
Apply classifications in this order: a run with an actionable in-window alert uses the incident diagnosis code; otherwise use the policy's overfit code when validation loss rebounds from its minimum by the configured factor while training loss continues down, the utilization-dip code when GPU utilization crosses its low threshold and later recovers, and the healthy code otherwise. A run is eligible only when its classification is listed in eligible_codes and every configured final metric is finite. Record applicable eligibility issue codes from the policy (actionable_alert, invalid, and classification_not_eligible). Rank eligible runs by the configured metric and direction.
Write this JSON structure to PATH and print the same JSON value as the only stdout output:
{
"project": "...",
"incident": {
"run": "...",
"alert": {"run": "...", "title": "...", "text": "...", "level": "error", "step": 0, "timestamp": "..."},
"window": {"center_step": 0, "start_step": 0, "end_step": 0},
"metric_evidence": {
"train_loss": [{"step": 0, "timestamp": "...", "value": 0.0}],
"learning_rate": [{"step": 0, "timestamp": "...", "value": 0.0}]
},
"system_evidence": {
"gpu_utilization": {"status": "available", "values": []},
"gpu_memory_percent": {"status": "unavailable", "values": []}
},
"diagnosis": "...",
"recommendation": "..."
},
"run_assessments": [
{
"run": "...",
"classification": "...",
"eligible": true,
"eligibility_issues": [],
"learning_rate": 0.0,
"final_metrics": {
"train_loss": {"step": 0, "value": 0.0},
"val_loss": {"step": 0, "value": 0.0},
"val_accuracy": {"step": 0, "value": 0.0}
}
}
],
"recommended_run": {"run": "...", "metric": "val_accuracy", "value": 0.0, "reason": "..."}
}
Use the policy metric names as the keys shown above. Evidence arrays must contain every stored point within the inclusive incident window, ordered by step. Emit exactly one assessment per discovered run, ordered by run name; order eligibility issues by actionable_alert, invalid, then classification_not_eligible. Leave the visible result at /workspace/output/triage.json by running:
python3 /workspace/triage.py --project atlas-sft-overnight --output /workspace/output/triage.json