Kearm commited on
Commit
b02d70f
·
verified ·
1 Parent(s): 7fde8e9

Add MiMo RL telemetry archive

Browse files

Consistent SQLite snapshot, 132263 raw publisher responses, presentation metadata, observer source, and public-dataset comparison.

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. README.md +139 -0
  3. data/mimo.sqlite3 +3 -0
  4. data/mimo.sqlite3-shm +0 -0
  5. data/mimo.sqlite3-wal +0 -0
  6. data/raw-responses.tar +3 -0
  7. evidence/duplicate-audit-1789688611/flash-benchmarks-audit.json +14 -0
  8. evidence/duplicate-audit-1789688611/flash-benchmarks-raw.json.gz +3 -0
  9. evidence/duplicate-audit-1789688611/flash-history.json.gz +3 -0
  10. evidence/duplicate-audit-1789688611/flash-sampler-audit.json +0 -0
  11. evidence/duplicate-audit-1789688611/flash-sampler-raw.json.gz +3 -0
  12. evidence/duplicate-audit-1789688611/flash-scan_single_page.json.gz +3 -0
  13. evidence/duplicate-audit-1789688611/flash-training-audit.json +14 -0
  14. evidence/duplicate-audit-1789688611/flash-training-raw.json.gz +3 -0
  15. evidence/duplicate-audit-1789688611/pro-benchmarks-audit.json +14 -0
  16. evidence/duplicate-audit-1789688611/pro-benchmarks-raw.json.gz +3 -0
  17. evidence/duplicate-audit-1789688611/pro-history.json.gz +3 -0
  18. evidence/duplicate-audit-1789688611/pro-sampler-audit.json +660 -0
  19. evidence/duplicate-audit-1789688611/pro-sampler-raw.json.gz +3 -0
  20. evidence/duplicate-audit-1789688611/pro-scan_single_page.json.gz +3 -0
  21. evidence/duplicate-audit-1789688611/pro-training-audit.json +14 -0
  22. evidence/duplicate-audit-1789688611/pro-training-raw.json.gz +3 -0
  23. evidence/duplicate-audit-1789688611/retrieval-comparison.json +98 -0
  24. evidence/duplicate-audit-1789688611/state.json +43 -0
  25. evidence/duplicate-audit-1789688611/summary.json +80 -0
  26. evidence/health-check-20260917.json +86 -0
  27. evidence/initial-acceptance.json +13 -0
  28. evidence/mimo-rl-app-prioritization.js +910 -0
  29. evidence/mimo-rl-app.js +910 -0
  30. evidence/mimo-rl-charts.js +501 -0
  31. evidence/mimo-rl-format.js +154 -0
  32. evidence/mimo-rl-headers.txt +13 -0
  33. evidence/mimo-rl-index.html +55 -0
  34. evidence/mimo-rl-runs-prioritization.json +1 -0
  35. evidence/notices-wandb-acceptance.json +13 -0
  36. evidence/prioritized-overview-acceptance.json +57 -0
  37. evidence/remote-location-audit-20261022.json +124 -0
  38. evidence/sampler-filter-query-check.json +36 -0
  39. evidence/sampler-health-flash.json +13 -0
  40. evidence/sampler-health-pro.json +13 -0
  41. evidence/stream-live-verification.json +41 -0
  42. evidence/training-history-query-check.json +63 -0
  43. evidence/visualization-dependency-audit.txt +13 -0
  44. evidence/wandb-report-and-resume.json +16 -0
  45. evidence/wandb-report-before-prioritization.py +155 -0
  46. evidence/wandb-report-layout-1789593975.json +2162 -0
  47. evidence/wandb-report-layout-1789594041.json +0 -0
  48. evidence/wandb-roundtrip.json +21 -0
  49. manifest.json +327 -0
  50. observer-source.tar +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data/mimo.sqlite3 filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: unknown
3
+ task_categories:
4
+ - time-series-forecasting
5
+ tags:
6
+ - mimo
7
+ - reinforcement-learning
8
+ - training-telemetry
9
+ - metrics
10
+ - observability
11
+ size_categories:
12
+ - 100M<n<1B
13
+ ---
14
+
15
+ # MiMo RL telemetry archive
16
+
17
+ This private dataset preserves the local archive of the public Xiaomi MiMo RL
18
+ training telemetry feed at `https://mimo.xiaomi.com/rl/`. It is **not** a copy
19
+ of the Xiaomi RL task environments and does not contain model weights.
20
+
21
+ ## Contents
22
+
23
+ - `data/mimo.sqlite3`: consistent SQLite snapshot with the authoritative
24
+ structured archive.
25
+ - `data/raw-responses.tar`: all 132,263 distinct content-addressed HTTP
26
+ response bodies retained by SHA-256 under `raw/<sha256[:2]>/<sha256>.json.gz`.
27
+ - `presentation/`: metric catalog, display metadata, notices, overview state,
28
+ format parity evidence, and pinned publisher JavaScript.
29
+ - `evidence/`: local acceptance and duplicate-audit receipts. The operational
30
+ `wandb-first-sync.log` is intentionally excluded.
31
+ - `observer-source.tar`: the collector, SQLite schema, analysis SQL, tests,
32
+ and documentation needed to interpret and reuse the archive.
33
+ - `manifest.json`: file sizes, SHA-256 hashes, snapshot integrity, table
34
+ counts, and the public-dataset comparison summary.
35
+
36
+ The package intentionally excludes the live SQLite WAL/SHM files, W&B runtime
37
+ caches and binary run transcripts, collector logs, lock files, local Python
38
+ environments, and index/cache directories.
39
+
40
+ ## Snapshot coverage
41
+
42
+ The SQLite snapshot has `PRAGMA integrity_check = ok` and these table counts:
43
+
44
+ | Table | Rows |
45
+ |---|---:|
46
+ | `benchmark_points` | 168 |
47
+ | `cycles` | 64,807 |
48
+ | `events` | 83 |
49
+ | `fetches` | 499,145 |
50
+ | `live_reports` | 10,000 |
51
+ | `metric_points` | 122,730 |
52
+ | `metric_revisions` | 130,930 |
53
+ | `notices` | 6 |
54
+ | `runs` | 2 |
55
+ | `series_snapshots` | 376 |
56
+ | `status_samples` | 123,537 |
57
+
58
+ The two observed runs are:
59
+
60
+ - `pro@1789468339.334` / `mimo-v2.6-pro`
61
+ - `flash@1789485389.264` / `mimo-v2.6-flash`
62
+
63
+ There are 2,077 distinct metric tags. They include aggregate actor/critic loss,
64
+ entropy, KL, reward, return, advantage, score, pass-rate, rollout-count,
65
+ penalty, context-length, sampler, trace-counter, benchmark, and training-status
66
+ statistics. The 25 data-source labels are publisher-anonymized identifiers such
67
+ as `code/dataset-obg8`; the original task identities are not exposed.
68
+
69
+ ## Relationship to XiaomiMiMo/MiMo-V2.6-RL-oss
70
+
71
+ The public Xiaomi dataset at revision
72
+ `e8e81e4945270b6212204bad99de1e598f7fb077` is complementary, not a duplicate.
73
+
74
+ | Property | This archive | Xiaomi RL OSS |
75
+ |---|---|---|
76
+ | Purpose | Observed aggregate training telemetry | Task environments and verifier inputs |
77
+ | Primary records | 122,730 metric points plus revisions and status samples | 7,684 task/environment rows |
78
+ | Task prompts | No | Yes, across code, cyber, general, music, and webdev configs |
79
+ | Environment files/images | No | 41,292 repository files plus Docker image mapping |
80
+ | Aggregate time series | Yes | No |
81
+ | Sampler/source counters | Yes, anonymized | Not as training telemetry |
82
+ | Raw HTTP provenance | 132,263 response bodies | Not applicable |
83
+
84
+ A full scan compared every public prompt and instance ID with every string leaf
85
+ in all 132,263 local raw JSON response bodies. There were zero exact public
86
+ prompt matches and zero exact public instance-ID matches. The only overlap is
87
+ the broader subject domain and a few generic domain words such as code, cyber,
88
+ and general; the identifier systems are different.
89
+
90
+ ### Unique to this archive
91
+
92
+ - Per-step aggregate reward, return, advantage, score, actor, critic, penalty,
93
+ pass-rate, rollout-count, context-length, trace, and harness metrics.
94
+ - Metric correction history and deletion tombstones in `metric_revisions`.
95
+ - Ten thousand retained live sampler reports and per-source anonymized counters.
96
+ - Training status samples, restart events, operator notices, and benchmark
97
+ revisions.
98
+ - Lossless content-addressed publisher API response bodies and fetch provenance.
99
+ - Display semantics recovered from the publisher's own JavaScript.
100
+
101
+ ### Unique to the public Xiaomi dataset
102
+
103
+ - Concrete task prompts, task instance IDs, Docker image mappings, environment
104
+ workspaces, verifier configuration, and task-family/domain metadata.
105
+ - Environment assets needed to execute the RL tasks.
106
+
107
+ ## Usage
108
+
109
+ ```python
110
+ import sqlite3
111
+
112
+ path = "data/mimo.sqlite3"
113
+ with sqlite3.connect(f"file:{path}?mode=ro", uri=True) as db:
114
+ rows = db.execute(
115
+ """
116
+ SELECT run_key, step, value
117
+ FROM metrics
118
+ WHERE tag = 'dynsam/avg@n'
119
+ ORDER BY run_key, step
120
+ """
121
+ ).fetchall()
122
+ ```
123
+
124
+ Use SQLite read-only connections. `metric_points` is the latest complete
125
+ snapshot; `metric_revisions` preserves historical observations and corrections.
126
+ All `*_time`, `*_at`, `first_seen`, `last_seen`, and `source_start` values are
127
+ Unix seconds.
128
+
129
+ ## Provenance and limits
130
+
131
+ - Source feed: `https://mimo.xiaomi.com/rl/`.
132
+ - First archived request: 2026-09-16 20:53:37 UTC.
133
+ - Last successful source fetch: 2026-10-09 04:12:09 UTC.
134
+ - The source began returning HTTP 404 on 2026-10-09 04:22:13 UTC; this archive
135
+ is therefore frozen at training step 30.
136
+ - The publisher did not expose prompts, completions, model weights, individual
137
+ trajectories, or the original identities behind its anonymized source labels.
138
+ - Cost fields and benchmark scores are publisher-reported values, not
139
+ independent measurements.
data/mimo.sqlite3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81f443916125466ca541135b64762435e44f599475e5d586666dbfaf1708e02f
3
+ size 1498316800
data/mimo.sqlite3-shm ADDED
Binary file (32.8 kB). View file
 
data/mimo.sqlite3-wal ADDED
File without changes
data/raw-responses.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:611523cd58fb008aa8e0d828914e380eba719a70ab7843b78e7d9b1e1c688d3e
3
+ size 281016320
evidence/duplicate-audit-1789688611/flash-benchmarks-audit.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "flash@1789485389.264:benchmarks",
3
+ "wandb_id": "mimo-c327272b0522f8b6",
4
+ "is_current": true,
5
+ "raw_rows": 16,
6
+ "unique_source_identities": 16,
7
+ "repeated_identity_count": 0,
8
+ "extra_identical_rows": 0,
9
+ "conflicting_identities": 0,
10
+ "chart_rows": 16,
11
+ "chart_unique_identities": 16,
12
+ "raw_sha256": "00f603d937d0b8386ed20c0afde12af8c9d8666ba8ccaa2e1ac0147f2bb6f40d",
13
+ "repetitions": []
14
+ }
evidence/duplicate-audit-1789688611/flash-benchmarks-raw.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1e9aaee3115d1aea2beae3c20cc6002da09fb2ee7495a07ec482032352467b2
3
+ size 572
evidence/duplicate-audit-1789688611/flash-history.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aee6718479c106fdcbef9bcb2b7a1586515384e5f5ff8ad83910670039426e46
3
+ size 319262
evidence/duplicate-audit-1789688611/flash-sampler-audit.json ADDED
The diff for this file is too large to render. See raw diff
 
evidence/duplicate-audit-1789688611/flash-sampler-raw.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3673a4a78d70f1e5a2a8cf6b897d6b18d5405094f7c8041f11ecd7c9dfa61b01
3
+ size 342308
evidence/duplicate-audit-1789688611/flash-scan_single_page.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5831c99388a64f3a65ae5c4a54d9787ca875856701fa04df6b72cd3d57e88c1
3
+ size 869010
evidence/duplicate-audit-1789688611/flash-training-audit.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "flash@1789485389.264:training",
3
+ "wandb_id": "mimo-bff9cc76860fc474",
4
+ "is_current": true,
5
+ "raw_rows": 23,
6
+ "unique_source_identities": 23,
7
+ "repeated_identity_count": 0,
8
+ "extra_identical_rows": 0,
9
+ "conflicting_identities": 0,
10
+ "chart_rows": 23,
11
+ "chart_unique_identities": 23,
12
+ "raw_sha256": "8d5f076dc229d5f9ae1694bda7836745e69c107ee598c8d2e84d9cb06d236682",
13
+ "repetitions": []
14
+ }
evidence/duplicate-audit-1789688611/flash-training-raw.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b034074ad90acacc3cdd5ae60d3d2aad810efe1caf7bd0bc8aa71bc4e1ade27
3
+ size 333554
evidence/duplicate-audit-1789688611/pro-benchmarks-audit.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "pro@1789468339.334:benchmarks",
3
+ "wandb_id": "mimo-583a9d6996bfe183",
4
+ "is_current": true,
5
+ "raw_rows": 12,
6
+ "unique_source_identities": 12,
7
+ "repeated_identity_count": 0,
8
+ "extra_identical_rows": 0,
9
+ "conflicting_identities": 0,
10
+ "chart_rows": 12,
11
+ "chart_unique_identities": 12,
12
+ "raw_sha256": "e1e6798890a9f1d1f438b8a7a9b7b0451ea203b716b59edfc7363c0543f5896e",
13
+ "repetitions": []
14
+ }
evidence/duplicate-audit-1789688611/pro-benchmarks-raw.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:070d7d71b0bf33756ef09b511afa4cdfc16922070f498476d9a8b5a42ece72d5
3
+ size 448
evidence/duplicate-audit-1789688611/pro-history.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f260c8aee2573fb1416d5ce001f2abba95afa4e0920338de57cfedfca181838
3
+ size 258356
evidence/duplicate-audit-1789688611/pro-sampler-audit.json ADDED
@@ -0,0 +1,660 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "pro@1789468339.334:sampler",
3
+ "wandb_id": "mimo-7b2e8f3a67241dfd",
4
+ "is_current": true,
5
+ "raw_rows": 2001,
6
+ "unique_source_identities": 1958,
7
+ "repeated_identity_count": 43,
8
+ "extra_identical_rows": 43,
9
+ "conflicting_identities": 0,
10
+ "chart_rows": null,
11
+ "chart_unique_identities": null,
12
+ "raw_sha256": "c19eed56456454886768c9a76df349ad6c3ab943f4e64e05473aff155f85e816",
13
+ "repetitions": [
14
+ {
15
+ "source_identity": [
16
+ 1789631592.334,
17
+ 15
18
+ ],
19
+ "copies": 2,
20
+ "exact_payload_variants": 1,
21
+ "differing_fields": [],
22
+ "fingerprints": [
23
+ {
24
+ "sha256": "8a9d6df6cba3238c071fdeeda2a5c29446d4170a3a409109409a7ce296fe8ae3",
25
+ "copies": 2
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "source_identity": [
31
+ 1789631617.334,
32
+ 15
33
+ ],
34
+ "copies": 2,
35
+ "exact_payload_variants": 1,
36
+ "differing_fields": [],
37
+ "fingerprints": [
38
+ {
39
+ "sha256": "3d7c796701367b10fa1cb60a4a3bcd1602c51038cc131dc4ea8426958952abd0",
40
+ "copies": 2
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "source_identity": [
46
+ 1789631633.334,
47
+ 15
48
+ ],
49
+ "copies": 2,
50
+ "exact_payload_variants": 1,
51
+ "differing_fields": [],
52
+ "fingerprints": [
53
+ {
54
+ "sha256": "e6630b9c97986939c2931ce653dd4ab974547a551cf6ba7113311dcda48119da",
55
+ "copies": 2
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "source_identity": [
61
+ 1789631655.334,
62
+ 15
63
+ ],
64
+ "copies": 2,
65
+ "exact_payload_variants": 1,
66
+ "differing_fields": [],
67
+ "fingerprints": [
68
+ {
69
+ "sha256": "6513b5333095084c4bcafc662406760c1e9fcb9dbe4f7ef306a010bada0dccd5",
70
+ "copies": 2
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ "source_identity": [
76
+ 1789631673.334,
77
+ 15
78
+ ],
79
+ "copies": 2,
80
+ "exact_payload_variants": 1,
81
+ "differing_fields": [],
82
+ "fingerprints": [
83
+ {
84
+ "sha256": "aa3c3818125f5ef14683b845f09cabb3a1c5c7cbab5f848a0e393602b7f318e5",
85
+ "copies": 2
86
+ }
87
+ ]
88
+ },
89
+ {
90
+ "source_identity": [
91
+ 1789631697.334,
92
+ 15
93
+ ],
94
+ "copies": 2,
95
+ "exact_payload_variants": 1,
96
+ "differing_fields": [],
97
+ "fingerprints": [
98
+ {
99
+ "sha256": "25a53b51ad5ce2c6ebf7683c3d7881305fc62f2277d63255968b6be1cfd53a16",
100
+ "copies": 2
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "source_identity": [
106
+ 1789631709.334,
107
+ 15
108
+ ],
109
+ "copies": 2,
110
+ "exact_payload_variants": 1,
111
+ "differing_fields": [],
112
+ "fingerprints": [
113
+ {
114
+ "sha256": "58439f8c79ad56ca06005941e28247d7054c0b41c13eed2f51bbb53d18cc268d",
115
+ "copies": 2
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ "source_identity": [
121
+ 1789631740.334,
122
+ 15
123
+ ],
124
+ "copies": 2,
125
+ "exact_payload_variants": 1,
126
+ "differing_fields": [],
127
+ "fingerprints": [
128
+ {
129
+ "sha256": "d8ceb5a7910e0e194f814b7f8cb26c2a737cf0b0892e06428d2c4f29a4b186d0",
130
+ "copies": 2
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "source_identity": [
136
+ 1789631754.334,
137
+ 15
138
+ ],
139
+ "copies": 2,
140
+ "exact_payload_variants": 1,
141
+ "differing_fields": [],
142
+ "fingerprints": [
143
+ {
144
+ "sha256": "e0d461054f0fdeeecd1aae30ba447f23877a43c38fda8f2d206da27948495340",
145
+ "copies": 2
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "source_identity": [
151
+ 1789631803.334,
152
+ 15
153
+ ],
154
+ "copies": 2,
155
+ "exact_payload_variants": 1,
156
+ "differing_fields": [],
157
+ "fingerprints": [
158
+ {
159
+ "sha256": "6743d7dbe87421db3a9b4ec2690793872036652be33ef1ef7fb27c763dde3f20",
160
+ "copies": 2
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "source_identity": [
166
+ 1789631821.334,
167
+ 15
168
+ ],
169
+ "copies": 2,
170
+ "exact_payload_variants": 1,
171
+ "differing_fields": [],
172
+ "fingerprints": [
173
+ {
174
+ "sha256": "07cf27ca91860c4053fe414c0c3fae616ee153bcc74f2ec54ce748878e231cf8",
175
+ "copies": 2
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "source_identity": [
181
+ 1789631827.334,
182
+ 15
183
+ ],
184
+ "copies": 2,
185
+ "exact_payload_variants": 1,
186
+ "differing_fields": [],
187
+ "fingerprints": [
188
+ {
189
+ "sha256": "b8c0b9d66679bf0990a6baf9be3d47258ce36a72d3b25180cf7b1f196563d3c3",
190
+ "copies": 2
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ "source_identity": [
196
+ 1789631873.334,
197
+ 15
198
+ ],
199
+ "copies": 2,
200
+ "exact_payload_variants": 1,
201
+ "differing_fields": [],
202
+ "fingerprints": [
203
+ {
204
+ "sha256": "db65e65ce558aab90dd438a880f685e511fe28c88d9ef90dc70cf2096ce5ecc3",
205
+ "copies": 2
206
+ }
207
+ ]
208
+ },
209
+ {
210
+ "source_identity": [
211
+ 1789631888.334,
212
+ 15
213
+ ],
214
+ "copies": 2,
215
+ "exact_payload_variants": 1,
216
+ "differing_fields": [],
217
+ "fingerprints": [
218
+ {
219
+ "sha256": "dbab033f373df1fbdff4ca16a8f17356df10da199652b0387878bf105a125d0c",
220
+ "copies": 2
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "source_identity": [
226
+ 1789631903.334,
227
+ 15
228
+ ],
229
+ "copies": 2,
230
+ "exact_payload_variants": 1,
231
+ "differing_fields": [],
232
+ "fingerprints": [
233
+ {
234
+ "sha256": "fd32fbf96957361346e0e16dd833ab679dd3045e4736cae741fbec53ab6a9ad1",
235
+ "copies": 2
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "source_identity": [
241
+ 1789631922.334,
242
+ 15
243
+ ],
244
+ "copies": 2,
245
+ "exact_payload_variants": 1,
246
+ "differing_fields": [],
247
+ "fingerprints": [
248
+ {
249
+ "sha256": "ed033636018dd8745d47f74807a6d3b4cca4e5f86c1924107fcfb56ce362fddb",
250
+ "copies": 2
251
+ }
252
+ ]
253
+ },
254
+ {
255
+ "source_identity": [
256
+ 1789631935.334,
257
+ 15
258
+ ],
259
+ "copies": 2,
260
+ "exact_payload_variants": 1,
261
+ "differing_fields": [],
262
+ "fingerprints": [
263
+ {
264
+ "sha256": "11c392ef335ef063eaaf3464b6c753ffe2c84aed369662f3623c743b656c048e",
265
+ "copies": 2
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "source_identity": [
271
+ 1789631946.334,
272
+ 15
273
+ ],
274
+ "copies": 2,
275
+ "exact_payload_variants": 1,
276
+ "differing_fields": [],
277
+ "fingerprints": [
278
+ {
279
+ "sha256": "bffa74d8bc99a4aa7b76f40dcb4d5b4157f8ec29b14efa5907cd7ea9d7e92d1d",
280
+ "copies": 2
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "source_identity": [
286
+ 1789631966.334,
287
+ 15
288
+ ],
289
+ "copies": 2,
290
+ "exact_payload_variants": 1,
291
+ "differing_fields": [],
292
+ "fingerprints": [
293
+ {
294
+ "sha256": "e906e4335cef6c79e72a0ccce0b76c14c9856896001fd3acf7e1ea18a8595ef0",
295
+ "copies": 2
296
+ }
297
+ ]
298
+ },
299
+ {
300
+ "source_identity": [
301
+ 1789631990.334,
302
+ 15
303
+ ],
304
+ "copies": 2,
305
+ "exact_payload_variants": 1,
306
+ "differing_fields": [],
307
+ "fingerprints": [
308
+ {
309
+ "sha256": "648d635c3805c3b8be81fe705abfa1f560a137d8ec3d97735fa6104f99d58555",
310
+ "copies": 2
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ "source_identity": [
316
+ 1789632005.334,
317
+ 15
318
+ ],
319
+ "copies": 2,
320
+ "exact_payload_variants": 1,
321
+ "differing_fields": [],
322
+ "fingerprints": [
323
+ {
324
+ "sha256": "266b801c9e8b298a17c30ed336c7cb1c89e6898d825364f15a0a07c51bdf71e3",
325
+ "copies": 2
326
+ }
327
+ ]
328
+ },
329
+ {
330
+ "source_identity": [
331
+ 1789632011.334,
332
+ 15
333
+ ],
334
+ "copies": 2,
335
+ "exact_payload_variants": 1,
336
+ "differing_fields": [],
337
+ "fingerprints": [
338
+ {
339
+ "sha256": "f09675fd972f6ccd17bbce2a324057bd53cbf7a032b5242905f536ae9b1aacf6",
340
+ "copies": 2
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ "source_identity": [
346
+ 1789632031.334,
347
+ 15
348
+ ],
349
+ "copies": 2,
350
+ "exact_payload_variants": 1,
351
+ "differing_fields": [],
352
+ "fingerprints": [
353
+ {
354
+ "sha256": "d321998ef0b543867dcb820c5ed2ee916899a9180fc69ad97ccb21dd71fc5ca1",
355
+ "copies": 2
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "source_identity": [
361
+ 1789632049.334,
362
+ 15
363
+ ],
364
+ "copies": 2,
365
+ "exact_payload_variants": 1,
366
+ "differing_fields": [],
367
+ "fingerprints": [
368
+ {
369
+ "sha256": "d12b15f729dc03c745ca51a90a00f850ad1d9eec5811931a6c893e553024ee3e",
370
+ "copies": 2
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "source_identity": [
376
+ 1789632078.334,
377
+ 15
378
+ ],
379
+ "copies": 2,
380
+ "exact_payload_variants": 1,
381
+ "differing_fields": [],
382
+ "fingerprints": [
383
+ {
384
+ "sha256": "11c95e00a89026891cc16d9684221b311cdebc4d583ef8b61e379f2a9b2437f5",
385
+ "copies": 2
386
+ }
387
+ ]
388
+ },
389
+ {
390
+ "source_identity": [
391
+ 1789632084.334,
392
+ 15
393
+ ],
394
+ "copies": 2,
395
+ "exact_payload_variants": 1,
396
+ "differing_fields": [],
397
+ "fingerprints": [
398
+ {
399
+ "sha256": "9021a93232b3472eab57f74c0f2453e79347d0463c4eaa402c0200167fa2a095",
400
+ "copies": 2
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ "source_identity": [
406
+ 1789632108.334,
407
+ 15
408
+ ],
409
+ "copies": 2,
410
+ "exact_payload_variants": 1,
411
+ "differing_fields": [],
412
+ "fingerprints": [
413
+ {
414
+ "sha256": "b53da1cf236fef07b089c24592e59a4282dcb7c7f63865ecfe99cd73318d5b7f",
415
+ "copies": 2
416
+ }
417
+ ]
418
+ },
419
+ {
420
+ "source_identity": [
421
+ 1789632131.334,
422
+ 15
423
+ ],
424
+ "copies": 2,
425
+ "exact_payload_variants": 1,
426
+ "differing_fields": [],
427
+ "fingerprints": [
428
+ {
429
+ "sha256": "aa84a55de474822fb2797dd807b94df3fb3048ce0e91f95a41476fbb8788991b",
430
+ "copies": 2
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "source_identity": [
436
+ 1789632147.334,
437
+ 15
438
+ ],
439
+ "copies": 2,
440
+ "exact_payload_variants": 1,
441
+ "differing_fields": [],
442
+ "fingerprints": [
443
+ {
444
+ "sha256": "c9da5e78797299f515f14b6e4f3044ed3e3394a62b4c5439e940d48a0df9ece0",
445
+ "copies": 2
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "source_identity": [
451
+ 1789632173.334,
452
+ 15
453
+ ],
454
+ "copies": 2,
455
+ "exact_payload_variants": 1,
456
+ "differing_fields": [],
457
+ "fingerprints": [
458
+ {
459
+ "sha256": "ba231a455201c4bec9eb071d98cbcaa27c7450dbbe2694c433236814eefbb022",
460
+ "copies": 2
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "source_identity": [
466
+ 1789632193.334,
467
+ 15
468
+ ],
469
+ "copies": 2,
470
+ "exact_payload_variants": 1,
471
+ "differing_fields": [],
472
+ "fingerprints": [
473
+ {
474
+ "sha256": "702727ed1d0ee1ff666c70511d9a89975a7f32a7414b0ab7588dd277b75f27ec",
475
+ "copies": 2
476
+ }
477
+ ]
478
+ },
479
+ {
480
+ "source_identity": [
481
+ 1789632208.334,
482
+ 15
483
+ ],
484
+ "copies": 2,
485
+ "exact_payload_variants": 1,
486
+ "differing_fields": [],
487
+ "fingerprints": [
488
+ {
489
+ "sha256": "4bd619b718d36419a78a104ef814e03be37d72ad79d6a23e32addae3a666a12c",
490
+ "copies": 2
491
+ }
492
+ ]
493
+ },
494
+ {
495
+ "source_identity": [
496
+ 1789632228.334,
497
+ 15
498
+ ],
499
+ "copies": 2,
500
+ "exact_payload_variants": 1,
501
+ "differing_fields": [],
502
+ "fingerprints": [
503
+ {
504
+ "sha256": "4f3a67c2f058267174815cd7501316c83b0bbd9e42a78591d2321767505a6e14",
505
+ "copies": 2
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ "source_identity": [
511
+ 1789632253.334,
512
+ 15
513
+ ],
514
+ "copies": 2,
515
+ "exact_payload_variants": 1,
516
+ "differing_fields": [],
517
+ "fingerprints": [
518
+ {
519
+ "sha256": "9a90740c4cb75f3a564fc5790860a7a51bc23f26a94b928edf1af16a9214f536",
520
+ "copies": 2
521
+ }
522
+ ]
523
+ },
524
+ {
525
+ "source_identity": [
526
+ 1789632270.334,
527
+ 15
528
+ ],
529
+ "copies": 2,
530
+ "exact_payload_variants": 1,
531
+ "differing_fields": [],
532
+ "fingerprints": [
533
+ {
534
+ "sha256": "c00040d3b15a70414eedc2e2e0472f71aa24f5961c48558c321512eacc6307c1",
535
+ "copies": 2
536
+ }
537
+ ]
538
+ },
539
+ {
540
+ "source_identity": [
541
+ 1789632284.334,
542
+ 15
543
+ ],
544
+ "copies": 2,
545
+ "exact_payload_variants": 1,
546
+ "differing_fields": [],
547
+ "fingerprints": [
548
+ {
549
+ "sha256": "9e6bea5ab5d36fa6fd22713962463ca9e6206918376953a1eb467f165be52cc9",
550
+ "copies": 2
551
+ }
552
+ ]
553
+ },
554
+ {
555
+ "source_identity": [
556
+ 1789632301.334,
557
+ 15
558
+ ],
559
+ "copies": 2,
560
+ "exact_payload_variants": 1,
561
+ "differing_fields": [],
562
+ "fingerprints": [
563
+ {
564
+ "sha256": "4e9411a541cab9ea68fde5ccbdea8cba8d96c72015e387d8343c65af061f796f",
565
+ "copies": 2
566
+ }
567
+ ]
568
+ },
569
+ {
570
+ "source_identity": [
571
+ 1789632326.334,
572
+ 15
573
+ ],
574
+ "copies": 2,
575
+ "exact_payload_variants": 1,
576
+ "differing_fields": [],
577
+ "fingerprints": [
578
+ {
579
+ "sha256": "e6ecde21899e236c63ebafde71a3e3a49e3bbe5a56108866f636c0a9f1c7a92d",
580
+ "copies": 2
581
+ }
582
+ ]
583
+ },
584
+ {
585
+ "source_identity": [
586
+ 1789632345.334,
587
+ 15
588
+ ],
589
+ "copies": 2,
590
+ "exact_payload_variants": 1,
591
+ "differing_fields": [],
592
+ "fingerprints": [
593
+ {
594
+ "sha256": "50ac6351140cdf379f9c6106b3867926a8f35cf4dae06a05e0063eedd306d08f",
595
+ "copies": 2
596
+ }
597
+ ]
598
+ },
599
+ {
600
+ "source_identity": [
601
+ 1789632370.334,
602
+ 15
603
+ ],
604
+ "copies": 2,
605
+ "exact_payload_variants": 1,
606
+ "differing_fields": [],
607
+ "fingerprints": [
608
+ {
609
+ "sha256": "993ef7a2b36d2eebfc6ef8f4b4cc958535980650c4f8c1e6936c1a40212c5fe6",
610
+ "copies": 2
611
+ }
612
+ ]
613
+ },
614
+ {
615
+ "source_identity": [
616
+ 1789632398.334,
617
+ 15
618
+ ],
619
+ "copies": 2,
620
+ "exact_payload_variants": 1,
621
+ "differing_fields": [],
622
+ "fingerprints": [
623
+ {
624
+ "sha256": "cd33a93c738671b77d8c2b7e9e793d9261d532c353c155312453fca8d2705b42",
625
+ "copies": 2
626
+ }
627
+ ]
628
+ },
629
+ {
630
+ "source_identity": [
631
+ 1789632417.334,
632
+ 15
633
+ ],
634
+ "copies": 2,
635
+ "exact_payload_variants": 1,
636
+ "differing_fields": [],
637
+ "fingerprints": [
638
+ {
639
+ "sha256": "6650f4c239f5966f6cbc7c3a1138d7abfa1baf9614afd4492261c74b23e2d53a",
640
+ "copies": 2
641
+ }
642
+ ]
643
+ },
644
+ {
645
+ "source_identity": [
646
+ 1789632430.334,
647
+ 15
648
+ ],
649
+ "copies": 2,
650
+ "exact_payload_variants": 1,
651
+ "differing_fields": [],
652
+ "fingerprints": [
653
+ {
654
+ "sha256": "549b57c98a2cafee1953647d305cb2a4ec1648d770ee1b8922e407b6d4eeeba0",
655
+ "copies": 2
656
+ }
657
+ ]
658
+ }
659
+ ]
660
+ }
evidence/duplicate-audit-1789688611/pro-sampler-raw.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dde32836e5f44b2839adc7c37f9d33b9c676f5e51baef0000bff998a5e35e667
3
+ size 268697
evidence/duplicate-audit-1789688611/pro-scan_single_page.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d74f9883cf4bd77b1622e6f7f7b1bb64ef28d3392dea2091edd37ba3d111222
3
+ size 692319
evidence/duplicate-audit-1789688611/pro-training-audit.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "pro@1789468339.334:training",
3
+ "wandb_id": "mimo-21dfd16ca9f5d84c",
4
+ "is_current": true,
5
+ "raw_rows": 16,
6
+ "unique_source_identities": 16,
7
+ "repeated_identity_count": 0,
8
+ "extra_identical_rows": 0,
9
+ "conflicting_identities": 0,
10
+ "chart_rows": 16,
11
+ "chart_unique_identities": 16,
12
+ "raw_sha256": "13844463a35cb38c07d88e3c6adcc534bda4483ab747202d095d68dd054e4a08",
13
+ "repetitions": []
14
+ }
evidence/duplicate-audit-1789688611/pro-training-raw.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b5a2a05380387ff65e6c84ab6e864e01717bb6c2690792f74427917af7cbe4a
3
+ size 225409
evidence/duplicate-audit-1789688611/retrieval-comparison.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "run": "flash",
4
+ "scan_single_page": {
5
+ "rows": 3811,
6
+ "unique": 2381,
7
+ "repeat_examples": [
8
+ {
9
+ "identity": [
10
+ 1789586355.264,
11
+ 15
12
+ ],
13
+ "steps": [
14
+ 0,
15
+ 0
16
+ ]
17
+ },
18
+ {
19
+ "identity": [
20
+ 1789586369.264,
21
+ 15
22
+ ],
23
+ "steps": [
24
+ 1,
25
+ 1
26
+ ]
27
+ },
28
+ {
29
+ "identity": [
30
+ 1789586391.264,
31
+ 15
32
+ ],
33
+ "steps": [
34
+ 2,
35
+ 2
36
+ ]
37
+ }
38
+ ]
39
+ },
40
+ "history": {
41
+ "rows": 2381,
42
+ "unique": 2381,
43
+ "repeat_examples": []
44
+ },
45
+ "previous_scan_repeated_step_range": [
46
+ 1000,
47
+ 1429
48
+ ]
49
+ },
50
+ {
51
+ "run": "pro",
52
+ "scan_single_page": {
53
+ "rows": 3001,
54
+ "unique": 1958,
55
+ "repeat_examples": [
56
+ {
57
+ "identity": [
58
+ 1789590768.334,
59
+ 11
60
+ ],
61
+ "steps": [
62
+ 0,
63
+ 0
64
+ ]
65
+ },
66
+ {
67
+ "identity": [
68
+ 1789590810.334,
69
+ 11
70
+ ],
71
+ "steps": [
72
+ 1,
73
+ 1
74
+ ]
75
+ },
76
+ {
77
+ "identity": [
78
+ 1789590835.334,
79
+ 11
80
+ ],
81
+ "steps": [
82
+ 2,
83
+ 2
84
+ ]
85
+ }
86
+ ]
87
+ },
88
+ "history": {
89
+ "rows": 1958,
90
+ "unique": 1958,
91
+ "repeat_examples": []
92
+ },
93
+ "previous_scan_repeated_step_range": [
94
+ 1000,
95
+ 1042
96
+ ]
97
+ }
98
+ ]
evidence/duplicate-audit-1789688611/state.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "destination": "RESMP-DEV/mimo-rl-observatory",
3
+ "flash@1789485389.264:training": {
4
+ "last_step": 23,
5
+ "revision": 87838,
6
+ "generation": 4,
7
+ "wandb_id": "mimo-bff9cc76860fc474",
8
+ "url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory/runs/mimo-bff9cc76860fc474"
9
+ },
10
+ "metadata_artifact": "fe330feeb6038886e49b39aa642f64d0ff316db96128bf57e5dcfd465ea9e261",
11
+ "flash@1789485389.264:sampler": {
12
+ "source_time": 1789687339.264,
13
+ "sequence": 2380,
14
+ "wandb_id": "mimo-e66b1d685e38fc10",
15
+ "url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory/runs/mimo-e66b1d685e38fc10"
16
+ },
17
+ "flash@1789485389.264:benchmarks": {
18
+ "digest": "4df99292d06f9ec808266097a7f8b4e584933ed9c20dec89d4536110116f55f0",
19
+ "generation": 2,
20
+ "wandb_id": "mimo-c327272b0522f8b6",
21
+ "url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory/runs/mimo-c327272b0522f8b6"
22
+ },
23
+ "pro@1789468339.334:training": {
24
+ "last_step": 16,
25
+ "revision": 83680,
26
+ "generation": 0,
27
+ "wandb_id": "mimo-21dfd16ca9f5d84c",
28
+ "url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory/runs/mimo-21dfd16ca9f5d84c"
29
+ },
30
+ "pro@1789468339.334:sampler": {
31
+ "source_time": 1789688549.334,
32
+ "sequence": 1957,
33
+ "wandb_id": "mimo-7b2e8f3a67241dfd",
34
+ "url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory/runs/mimo-7b2e8f3a67241dfd"
35
+ },
36
+ "pro@1789468339.334:benchmarks": {
37
+ "digest": "9bd7b009f0f169977b72f77129779ca3564f9270a00cbcacad9629ed1e9f2726",
38
+ "generation": 3,
39
+ "wandb_id": "mimo-583a9d6996bfe183",
40
+ "url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory/runs/mimo-583a9d6996bfe183"
41
+ },
42
+ "last_success": 1789688575.1488729
43
+ }
evidence/duplicate-audit-1789688611/summary.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "source": "flash@1789485389.264:training",
4
+ "wandb_id": "mimo-bff9cc76860fc474",
5
+ "is_current": true,
6
+ "raw_rows": 23,
7
+ "unique_source_identities": 23,
8
+ "repeated_identity_count": 0,
9
+ "extra_identical_rows": 0,
10
+ "conflicting_identities": 0,
11
+ "chart_rows": 23,
12
+ "chart_unique_identities": 23,
13
+ "raw_sha256": "8d5f076dc229d5f9ae1694bda7836745e69c107ee598c8d2e84d9cb06d236682"
14
+ },
15
+ {
16
+ "source": "flash@1789485389.264:sampler",
17
+ "wandb_id": "mimo-e66b1d685e38fc10",
18
+ "is_current": true,
19
+ "raw_rows": 2811,
20
+ "unique_source_identities": 2381,
21
+ "repeated_identity_count": 430,
22
+ "extra_identical_rows": 430,
23
+ "conflicting_identities": 0,
24
+ "chart_rows": null,
25
+ "chart_unique_identities": null,
26
+ "raw_sha256": "0ee9199b585662ef8b985d035503a8ebc48d476ae90281659cf962e2b54df228"
27
+ },
28
+ {
29
+ "source": "flash@1789485389.264:benchmarks",
30
+ "wandb_id": "mimo-c327272b0522f8b6",
31
+ "is_current": true,
32
+ "raw_rows": 16,
33
+ "unique_source_identities": 16,
34
+ "repeated_identity_count": 0,
35
+ "extra_identical_rows": 0,
36
+ "conflicting_identities": 0,
37
+ "chart_rows": 16,
38
+ "chart_unique_identities": 16,
39
+ "raw_sha256": "00f603d937d0b8386ed20c0afde12af8c9d8666ba8ccaa2e1ac0147f2bb6f40d"
40
+ },
41
+ {
42
+ "source": "pro@1789468339.334:training",
43
+ "wandb_id": "mimo-21dfd16ca9f5d84c",
44
+ "is_current": true,
45
+ "raw_rows": 16,
46
+ "unique_source_identities": 16,
47
+ "repeated_identity_count": 0,
48
+ "extra_identical_rows": 0,
49
+ "conflicting_identities": 0,
50
+ "chart_rows": 16,
51
+ "chart_unique_identities": 16,
52
+ "raw_sha256": "13844463a35cb38c07d88e3c6adcc534bda4483ab747202d095d68dd054e4a08"
53
+ },
54
+ {
55
+ "source": "pro@1789468339.334:sampler",
56
+ "wandb_id": "mimo-7b2e8f3a67241dfd",
57
+ "is_current": true,
58
+ "raw_rows": 2001,
59
+ "unique_source_identities": 1958,
60
+ "repeated_identity_count": 43,
61
+ "extra_identical_rows": 43,
62
+ "conflicting_identities": 0,
63
+ "chart_rows": null,
64
+ "chart_unique_identities": null,
65
+ "raw_sha256": "c19eed56456454886768c9a76df349ad6c3ab943f4e64e05473aff155f85e816"
66
+ },
67
+ {
68
+ "source": "pro@1789468339.334:benchmarks",
69
+ "wandb_id": "mimo-583a9d6996bfe183",
70
+ "is_current": true,
71
+ "raw_rows": 12,
72
+ "unique_source_identities": 12,
73
+ "repeated_identity_count": 0,
74
+ "extra_identical_rows": 0,
75
+ "conflicting_identities": 0,
76
+ "chart_rows": 12,
77
+ "chart_unique_identities": 12,
78
+ "raw_sha256": "e1e6798890a9f1d1f438b8a7a9b7b0451ea203b716b59edfc7363c0543f5896e"
79
+ }
80
+ ]
evidence/health-check-20260917.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "checked_at_utc": "2026-09-17T10:55:42.449669+00:00",
3
+ "project": {
4
+ "name": "mimo-rl-observatory",
5
+ "access": "PRIVATE"
6
+ },
7
+ "local_integrity": "ok",
8
+ "local_poll_age_seconds": 7.387032985687256,
9
+ "last_12_hours": {
10
+ "cycles": 4274,
11
+ "failed": 0
12
+ },
13
+ "wandb_last_success_age_seconds": 9.78191614151001,
14
+ "runs": [
15
+ {
16
+ "source": "flash",
17
+ "training_steps": 18,
18
+ "training_values_checked": 36990,
19
+ "metric_slots": 36936,
20
+ "numeric_metric_values": 34450,
21
+ "sampler_rows": 1430,
22
+ "unique_sampler_rows": 1430,
23
+ "local_sampler_rows": 1430,
24
+ "benchmark_points_checked": 10,
25
+ "latest_training_step": 18,
26
+ "training_run": "mimo-93ec5538e4b57c4b",
27
+ "headline_step": 18
28
+ },
29
+ {
30
+ "source": "pro",
31
+ "training_steps": 14,
32
+ "training_values_checked": 28308,
33
+ "metric_slots": 28266,
34
+ "numeric_metric_values": 26556,
35
+ "sampler_rows": 1043,
36
+ "unique_sampler_rows": 1043,
37
+ "local_sampler_rows": 1043,
38
+ "benchmark_points_checked": 10,
39
+ "latest_training_step": 14,
40
+ "headline_step": 14,
41
+ "training_run": "mimo-21dfd16ca9f5d84c",
42
+ "raw_history_api_rows": 26,
43
+ "identical_repeated_rows_in_raw_api": 12,
44
+ "chart_history_rows": 14,
45
+ "raw_and_chart_values_match_local": true
46
+ }
47
+ ],
48
+ "displays": {
49
+ "notices": 3,
50
+ "report_notices_match": true,
51
+ "workspace_notices_match": true,
52
+ "workspace_sections": [
53
+ "Notices",
54
+ "At a glance",
55
+ "Learning quality",
56
+ "Efficiency",
57
+ "Stability",
58
+ "Sampler progress",
59
+ "Advanced diagnostics",
60
+ "Elapsed-time comparisons"
61
+ ],
62
+ "workspace_url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory?nw=3dm6cl4xpn1"
63
+ },
64
+ "notices": [
65
+ {
66
+ "id": "n-b60f90",
67
+ "run": null,
68
+ "t": 1789612058.9304461,
69
+ "text": "we restarted the flash run from step 15. reason: a type of infra error on one of datasets was not correctly detected over the past ~3 hours."
70
+ },
71
+ {
72
+ "id": "n-92030c",
73
+ "run": null,
74
+ "t": 1789589280.3782058,
75
+ "text": "the mimo-v2.6-pro run is restarting due to a vram issue on one node."
76
+ },
77
+ {
78
+ "id": "n-5ef2b1",
79
+ "run": null,
80
+ "t": 1789581497.4956336,
81
+ "text": "we have updated the latest deepswe results for flash step 12 & pro step 8. we will keep posting as the offline evaluation results come out."
82
+ }
83
+ ],
84
+ "both_launch_agents_running": true,
85
+ "status": "healthy; W&B raw-history API returns 12 identical repeated Pro training rows, while chart history has 14 unique steps and matches all local values"
86
+ }
evidence/initial-acceptance.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "verified_at_utc": "2026-09-16T20:56:15.571364+00:00",
3
+ "exact_source_point_matches": 50940,
4
+ "null_points": 3006,
5
+ "tags": {
6
+ "pro": 2019,
7
+ "flash": 2050
8
+ },
9
+ "csv_data_rows": 50940,
10
+ "backup_integrity": "ok",
11
+ "database_integrity": "ok",
12
+ "tests_passed": 9
13
+ }
evidence/mimo-rl-app-prioritization.js ADDED
@@ -0,0 +1,910 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* mimo-v2.6 live page. All runs on one page, every public tag, lazy charts.
2
+ Runs are named by their model label only. A run is "live" until the server
3
+ reports mode "ended".
4
+ Routes: #overview · #metrics/<path> · #about · #chart/<encoded tag> */
5
+ (function () {
6
+ "use strict";
7
+
8
+ const STATUS_MS = 10000; // the page ticks locally between polls; a new step or report shows within 10 s
9
+ const MAX_SERIES = 8;
10
+ const BATCH = 96;
11
+ const PAGE = 48;
12
+
13
+ const $ = (id) => document.getElementById(id);
14
+ const el = (tag, cls, html) => { const e = document.createElement(tag); if (cls) e.className = cls; if (html != null) e.innerHTML = html; return e; };
15
+ const esc = (s) => String(s).replace(/[&<>"]/g, (c) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;" }[c]));
16
+
17
+
18
+ // ------------------------------------------------------------------ state
19
+ const S = {
20
+ cfg: null,
21
+ view: "overview",
22
+ path: "",
23
+ query: "",
24
+ status: {}, statusAt: {},
25
+ live: {}, // run -> /api/live snapshot
26
+ notices: [], // /api/notices, newest first
27
+ benchmarks: null, // /api/benchmarks
28
+ benchCharts: {}, // key -> Charts.Line
29
+ tags: {}, // run -> {version, list, set}
30
+ union: null, // {key, list, set, tree}
31
+ series: {}, // run -> {version, steps, walls, runStart, map, pending, queue, timer}
32
+ prefs: Object.assign({ xMode: "step", smoothing: 0, log: false, compMode: "count" }, JSON.parse(localStorage.getItem("prefs3") || "{}")),
33
+ cards: [],
34
+ io: null,
35
+ expanded: new Set(), expandedFor: null,
36
+ sel: {}, slots: {}, metric: {}, sort: {},
37
+ bdRun: null, compRun: null, comp: null,
38
+ modal: null,
39
+ failures: 0,
40
+ page: PAGE,
41
+ rendered: false,
42
+ };
43
+ const savePrefs = () => localStorage.setItem("prefs3", JSON.stringify(S.prefs));
44
+ const runs = () => S.cfg.runs;
45
+ const runCfg = (key) => runs().find((r) => r.key === key);
46
+ const runName = (key) => { const r = runCfg(key); return r ? r.label : key; };
47
+ /* A run's colour: config.json runs[].color_index into the palette, else its position. */
48
+ const runColor = (key) => { const i = runs().findIndex((r) => r.key === key); const r = runs()[i]; return Charts.palette()[(r && r.color_index != null ? r.color_index : Math.max(0, i)) % 8]; };
49
+ const fmtOf = (tag) => Fmt.forTag(tag, S.cfg.formats);
50
+ const descOf = (tag) => S.cfg.descriptions[tag] || S.cfg.descriptions[tag.replace(/\/\d+$/, "")] || "";
51
+ const lastOf = (arr) => { if (!arr) return null; for (let i = arr.length - 1; i >= 0; i--) if (arr[i] != null) return arr[i]; return null; };
52
+ const prevOf = (arr) => { if (!arr) return null; let seen = 0; for (let i = arr.length - 1; i >= 0; i--) if (arr[i] != null) { if (seen) return arr[i]; seen++; } return null; };
53
+ const st = (run) => S.status[run];
54
+ const isFinal = (run) => !!(st(run) && st(run).run.mode === "ended");
55
+ /* The run's "now": the server clock at the last status poll, advanced
56
+ locally since; for a finished run, its end. */
57
+ function vnow(run) {
58
+ const s = st(run);
59
+ if (!s) return null;
60
+ if (s.run.mode === "ended") return s.run.end;
61
+ return s.clock.now + (performance.now() - S.statusAt[run]) / 1000;
62
+ }
63
+
64
+ // ------------------------------------------------------------------ fetch
65
+ async function getJSON(url) {
66
+ const r = await fetch(url, { cache: "no-store" });
67
+ if (!r.ok) throw new Error(`${r.status} ${url}`);
68
+ const j = await r.json();
69
+ if (j.error) throw new Error(j.error);
70
+ return j;
71
+ }
72
+ async function loadStatus(run) {
73
+ const s = await getJSON(`api/status?run=${run}`);
74
+ S.status[run] = s;
75
+ S.statusAt[run] = performance.now();
76
+ return s;
77
+ }
78
+ async function loadLive(run) {
79
+ try { S.live[run] = await getJSON(`api/live?run=${run}`); } catch (e) { /* keep the last snapshot */ }
80
+ return S.live[run];
81
+ }
82
+ async function loadNotices() {
83
+ try {
84
+ const n = (await getJSON("api/notices")).notices || [];
85
+ const changed = JSON.stringify(n) !== JSON.stringify(S.notices);
86
+ S.notices = n;
87
+ return changed;
88
+ } catch (e) { return false; }
89
+ }
90
+ async function loadBenchmarks() {
91
+ try {
92
+ const b = (await getJSON("api/benchmarks")).benchmarks || [];
93
+ const changed = JSON.stringify(b) !== JSON.stringify(S.benchmarks);
94
+ S.benchmarks = b;
95
+ return changed;
96
+ } catch (e) { return false; }
97
+ }
98
+ /* Hand-filled benchmark scores per run and step (live/benchmarks.json); a
99
+ point appears when its step is on air. Step axis, linear, no smoothing. */
100
+ function renderBenchmarks() {
101
+ const host = $("benchmarks");
102
+ if (!host) return;
103
+ const list = S.benchmarks || [];
104
+ if (!list.length) { host.innerHTML = ""; host.classList.add("hidden"); return; }
105
+ host.classList.remove("hidden");
106
+ if (!host.dataset.built) {
107
+ host.innerHTML = `<div class="section-title">benchmarks</div><div class="bench-grid"></div>`;
108
+ host.dataset.built = "1";
109
+ }
110
+ const grid = host.querySelector(".bench-grid");
111
+ for (const c of Object.values(S.benchCharts)) c.destroy();
112
+ S.benchCharts = {};
113
+ grid.innerHTML = "";
114
+ for (const b of list) {
115
+ const format = b.format || "num2";
116
+ const card = el("article", "card chart-card bench");
117
+ card.innerHTML = `<div class="card-head"><div class="card-title">${esc(b.title)}${b.note ? ` <span class="muted">${esc(b.note)}</span>` : ""}</div><div class="val"></div></div><div class="chart-body"></div>`;
118
+ grid.appendChild(card);
119
+ const series = runs().filter((r) => b.results[r.key]).map((r) => {
120
+ const steps = Object.keys(b.results[r.key]).map(Number).sort((a, c) => a - c);
121
+ return { key: r.key, label: runName(r.key), color: runColor(r.key), steps, walls: steps, runStart: 0, values: steps.map((st) => b.results[r.key][String(st)]) };
122
+ });
123
+ card.querySelector(".val").innerHTML = series.map((sr) => `<div><i class="swatch" style="background:${sr.color}"></i><span class="dim">${esc(sr.label)}</span> ${Fmt.text(lastOf(sr.values), format)}</div>`).join("") || `<span class="muted">—</span>`;
124
+ const chart = new Charts.Line(card.querySelector(".chart-body"), { format, compact: true, legend: false, xMode: "step", smoothing: 0, log: false, points: true });
125
+ chart.setData({ series });
126
+ S.benchCharts[b.key] = chart;
127
+ }
128
+ }
129
+ /* Operator notices (developer announcements, restart reasons), newest first;
130
+ the block is absent when there are none. */
131
+ function renderNotices() {
132
+ const host = $("notices");
133
+ if (!host) return;
134
+ if (!S.notices.length) { host.innerHTML = ""; host.classList.add("hidden"); return; }
135
+ host.classList.remove("hidden");
136
+ const clockRun = runs()[0].key;
137
+ host.innerHTML = `<div class="card notices"><div class="card-head"><div class="card-title">notices</div></div>` +
138
+ S.notices.map((n) => `<div class="notice"><span class="tl-time" data-run="${esc(n.run || clockRun)}" data-t="${n.t}">${Fmt.ago(Math.max(0, (vnow(n.run || clockRun) || n.t) - n.t))}</span><span class="notice-text">${n.run ? `<span class="mono dim">${esc(runName(n.run))}</span> · ` : ""}${esc(n.text)}</span></div>`).join("") + `</div>`;
139
+ }
140
+ /* A report from before the latest trainer launch describes a process that
141
+ no longer exists. */
142
+ function beforeRestart(run, t) {
143
+ const s = st(run);
144
+ return !!(s && s.step.restarted_at != null && t != null && t < s.step.restarted_at);
145
+ }
146
+ /* Latest sampler report if it describes the step in progress: from the
147
+ current trainer process and for the round after the last completed step.
148
+ Age does not matter — the sampler goes quiet while the trainer trains,
149
+ and its last count is the state of that round. */
150
+ function liveLatest(run) {
151
+ const l = S.live[run], s = st(run);
152
+ if (!l || !l.latest || !l.latest.t || !s) return null;
153
+ if (beforeRestart(run, l.latest.t)) return null;
154
+ if (l.latest.step != null && l.latest.step <= s.step.last) return null;
155
+ return l.latest;
156
+ }
157
+ async function loadTags(run) {
158
+ const s = st(run);
159
+ const have = S.tags[run];
160
+ if (have && have.version === s.version) return have;
161
+ const t = await getJSON(`api/tags?run=${run}&v=${encodeURIComponent(s.version)}`);
162
+ S.tags[run] = { version: t.version, list: t.tags, set: new Set(t.tags) };
163
+ S.union = null;
164
+ return S.tags[run];
165
+ }
166
+ /* Union of every run's tags, as a list, a set and a folder tree. */
167
+ async function loadUnion() {
168
+ await Promise.all(runs().map((r) => loadTags(r.key)));
169
+ const key = runs().map((r) => S.tags[r.key].version).join("|");
170
+ if (S.union && S.union.key === key) return S.union;
171
+ const set = new Set();
172
+ for (const r of runs()) for (const t of S.tags[r.key].list) set.add(t);
173
+ const list = Array.from(set).sort();
174
+ S.union = { key, list, set, tree: buildTree(list) };
175
+ return S.union;
176
+ }
177
+ const hasTag = (run, tag) => S.tags[run] && S.tags[run].set.has(tag);
178
+
179
+ function store(run) {
180
+ const s = st(run);
181
+ let sc = S.series[run];
182
+ if (!sc || (s && sc.version !== s.version)) {
183
+ sc = S.series[run] = { version: s ? s.version : null, steps: null, walls: null, runStart: null, map: new Map(), pending: new Map(), queue: new Set(), timer: null };
184
+ }
185
+ return sc;
186
+ }
187
+ /* Batched, cached fetch. Resolves to the run's store; values in .map. */
188
+ function getSeries(run, tags) {
189
+ const sc = store(run);
190
+ const need = tags.filter((t) => !sc.map.has(t));
191
+ if (!need.length) return Promise.resolve(sc);
192
+ const waits = [];
193
+ for (const t of need) {
194
+ if (!sc.pending.has(t)) {
195
+ let resolve; const p = new Promise((r) => { resolve = r; }); p.resolve = resolve;
196
+ sc.pending.set(t, p);
197
+ sc.queue.add(t);
198
+ }
199
+ waits.push(sc.pending.get(t));
200
+ }
201
+ if (!sc.timer) sc.timer = setTimeout(() => flush(run), 30);
202
+ return Promise.all(waits).then(() => sc);
203
+ }
204
+ async function flush(run) {
205
+ const sc = store(run);
206
+ sc.timer = null;
207
+ const all = Array.from(sc.queue);
208
+ sc.queue.clear();
209
+ for (let i = 0; i < all.length; i += BATCH) {
210
+ const chunk = all.slice(i, i + BATCH);
211
+ try {
212
+ const r = await getJSON(`api/series?run=${run}&v=${encodeURIComponent(sc.version || "")}&tags=${encodeURIComponent(chunk.join(","))}`);
213
+ sc.steps = r.steps; sc.walls = r.walls; sc.runStart = r.run_start;
214
+ for (const t of chunk) sc.map.set(t, r.series[t] || null);
215
+ } catch (err) {
216
+ for (const t of chunk) sc.map.set(t, null);
217
+ }
218
+ for (const t of chunk) { const p = sc.pending.get(t); if (p) { p.resolve(); sc.pending.delete(t); } }
219
+ }
220
+ }
221
+ /* The same tag from every run that has it → chart series (run colours). */
222
+ async function runSeries(tag) {
223
+ const keys = runs().map((r) => r.key).filter((k) => hasTag(k, tag) || !S.tags[k]);
224
+ const stores = await Promise.all(keys.map((k) => getSeries(k, [tag])));
225
+ const out = [];
226
+ keys.forEach((k, i) => {
227
+ const sc = stores[i];
228
+ const vals = sc.map.get(tag);
229
+ if (!sc.steps || !vals) return;
230
+ out.push({ key: k, label: runName(k), color: runColor(k), steps: sc.steps, walls: sc.walls, runStart: sc.runStart, values: vals });
231
+ });
232
+ return out;
233
+ }
234
+
235
+ // ------------------------------------------------------------- tag tree
236
+ function buildTree(list) {
237
+ const root = { name: "", path: "", children: new Map(), leaves: [], total: 0 };
238
+ for (const tag of list) {
239
+ const parts = tag.split("/");
240
+ let node = root;
241
+ node.total++;
242
+ for (let i = 0; i < parts.length - 1; i++) {
243
+ const p = parts[i];
244
+ let c = node.children.get(p);
245
+ if (!c) { c = { name: p, path: node.path ? `${node.path}/${p}` : p, children: new Map(), leaves: [], total: 0 }; node.children.set(p, c); }
246
+ node = c;
247
+ node.total++;
248
+ }
249
+ node.leaves.push(tag);
250
+ }
251
+ return root;
252
+ }
253
+ function nodeAt(tree, path) {
254
+ if (!path) return tree;
255
+ let node = tree;
256
+ for (const p of path.split("/")) { node = node.children.get(p); if (!node) return null; }
257
+ return node;
258
+ }
259
+ const sortedChildren = (node) => Array.from(node.children.values()).sort((a, b) => a.name.localeCompare(b.name, undefined, { numeric: true }));
260
+ /* Children c of prefix such that `${prefix}/${c}/${metric}` exists in the union (or the run). */
261
+ function childrenWith(prefix, metric, run) {
262
+ const node = nodeAt(S.union.tree, prefix);
263
+ if (!node) return [];
264
+ const has = (t) => run ? hasTag(run, t) : S.union.set.has(t);
265
+ return sortedChildren(node).filter((c) => has(`${prefix}/${c.name}/${metric}`)).map((c) => c.name);
266
+ }
267
+
268
+ // -------------------------------------------------------------- controls
269
+ function seg(pref, options, onChange, getVal, setVal) {
270
+ const wrap = el("div", "seg");
271
+ if (pref) wrap.dataset.pref = pref;
272
+ const get = getVal || (() => S.prefs[pref]);
273
+ const set = setVal || ((v) => { S.prefs[pref] = v; savePrefs(); });
274
+ for (const [val, label] of options) {
275
+ const b = el("button", null, label);
276
+ b.dataset.val = String(val);
277
+ b.addEventListener("click", () => { set(val); wrap.querySelectorAll("button").forEach((x) => x.classList.toggle("active", x.dataset.val === String(val))); (onChange || applyPrefs)(); });
278
+ b.classList.toggle("active", String(get()) === String(val));
279
+ wrap.appendChild(b);
280
+ }
281
+ return wrap;
282
+ }
283
+ function slider() {
284
+ const wrap = el("div", "slider");
285
+ wrap.dataset.pref = "smoothing";
286
+ wrap.innerHTML = `<span class="ctl-label">smoothing</span><input type="range" min="0" max="0.95" step="0.05"><output></output>`;
287
+ const input = wrap.querySelector("input"), out = wrap.querySelector("output");
288
+ const sync = () => { input.value = S.prefs.smoothing; out.textContent = S.prefs.smoothing ? S.prefs.smoothing.toFixed(2) : "off"; };
289
+ input.addEventListener("input", () => { S.prefs.smoothing = parseFloat(input.value); savePrefs(); sync(); applyPrefs(); });
290
+ sync();
291
+ return wrap;
292
+ }
293
+ function legendRow() {
294
+ const lg = el("span", "legend-inline");
295
+ lg.innerHTML = runs().map((r) => `<i class="swatch" style="background:${runColor(r.key)}"></i>${esc(runName(r.key))}`).join("");
296
+ return lg;
297
+ }
298
+ function controlsRow(extra, opts) {
299
+ const row = el("div", "controls");
300
+ if (extra) row.append(...extra.filter(Boolean));
301
+ row.append(seg("xMode", [["step", "step"], ["time", "time"]]), seg("log", [[false, "linear"], [true, "log"]]), slider());
302
+ if (!(opts && opts.noLegend)) row.appendChild(legendRow());
303
+ return row;
304
+ }
305
+ function applyPrefs() {
306
+ const o = { xMode: S.prefs.xMode, smoothing: S.prefs.smoothing, log: S.prefs.log };
307
+ for (const c of S.cards) if (c.chart) c.chart.setOptions(o);
308
+ if (S.modal && S.modal.chart) S.modal.chart.setOptions(o);
309
+ document.querySelectorAll(".seg[data-pref]").forEach((w) => { const p = w.dataset.pref; w.querySelectorAll("button").forEach((b) => b.classList.toggle("active", b.dataset.val === String(S.prefs[p]))); });
310
+ }
311
+
312
+ // ------------------------------------------------------------ chart card
313
+ function clearCards() {
314
+ for (const c of S.cards) if (c.chart) c.chart.destroy();
315
+ S.cards = [];
316
+ for (const c of Object.values(S.benchCharts)) c.destroy();
317
+ S.benchCharts = {};
318
+ if (S.io) S.io.disconnect();
319
+ S.io = new IntersectionObserver((entries) => {
320
+ for (const e of entries) if (e.isIntersecting) { const c = e.target.__card; if (c && !c.loaded) c.load(); }
321
+ }, { rootMargin: "300px 0px" });
322
+ }
323
+ function tagHTML(tag, leafOnly) {
324
+ const i = tag.lastIndexOf("/");
325
+ if (leafOnly || i < 0) return esc(i < 0 ? tag : tag.slice(i + 1));
326
+ return `<span class="dim">${esc(tag.slice(0, i + 1))}</span>${esc(tag.slice(i + 1))}`;
327
+ }
328
+ /* One lazily-loaded chart for a tag, every run overlaid. The value column
329
+ shows each run's latest value. */
330
+ function chartCard(tag, opts) {
331
+ opts = opts || {};
332
+ const format = fmtOf(tag);
333
+ const card = el("article", `card chart-card${opts.large ? " large" : ""}`);
334
+ card.innerHTML = `<div class="card-head"><div class="tag" title="${esc(tag)}">${tagHTML(tag, opts.leafOnly)}</div><div class="val"></div></div>
335
+ ${opts.desc ? `<div class="desc">${esc(opts.desc)}</div>` : ""}<div class="chart-body"></div>`;
336
+ card.querySelector(".tag").addEventListener("click", () => openChart(tag));
337
+ const rec = { el: card, tag, format, chart: null, loaded: false };
338
+ rec.load = async () => {
339
+ rec.loaded = true;
340
+ const series = await runSeries(tag);
341
+ if (!card.isConnected) return;
342
+ if (!rec.chart) rec.chart = new Charts.Line(card.querySelector(".chart-body"), { format, compact: !opts.large, legend: false, xMode: S.prefs.xMode, smoothing: S.prefs.smoothing, log: S.prefs.log });
343
+ rec.chart.setData({ series });
344
+ card.querySelector(".val").innerHTML = series.map((s) => {
345
+ const last = lastOf(s.values), prev = prevOf(s.values), d = Fmt.delta(last, prev, format);
346
+ return `<div><i class="swatch" style="background:${s.color}"></i>${last == null ? "—" : Fmt.text(last, format)}${d ? Fmt.deltaHTML(d, null, "") : ""}</div>`;
347
+ }).join("") || `<span class="muted">—</span>`;
348
+ };
349
+ card.__card = rec;
350
+ S.cards.push(rec);
351
+ S.io.observe(card);
352
+ return card;
353
+ }
354
+
355
+ // --------------------------------------------------------------- overview
356
+ async function renderOverview(root) {
357
+ root.innerHTML = `<div id="notices" class="hidden"></div>`;
358
+ renderNotices();
359
+ for (const r of runs()) root.appendChild(statusBlock(r.key));
360
+ root.appendChild(Object.assign(el("div", "section hidden"), { id: "benchmarks" }));
361
+ renderBenchmarks();
362
+ root.appendChild(controlsRow());
363
+ const grid = el("div", "chart-grid");
364
+ root.appendChild(grid);
365
+ for (const tag of S.cfg.pins) grid.appendChild(chartCard(tag));
366
+ for (const r of runs()) if (!isFinal(r.key)) {
367
+ const sec = el("div", "section");
368
+ sec.innerHTML = `<div class="section-title">dynamic sampler <span class="muted">${esc(runName(r.key))}</span></div>`;
369
+ const row = el("div", "live-row");
370
+ row.dataset.run = r.key;
371
+ row.innerHTML = `<article class="card feed"><div class="card-head"><div class="card-title">feed</div><div class="card-note" data-f="log-time"></div></div><div class="feed-list" data-f="feed"></div></article>
372
+ <article class="card sources"><div class="card-head"><div class="card-title" data-f="src-title">data sources</div><div class="card-note" data-f="src-note"></div></div><div class="table-wrap" data-f="src-table"></div></article>`;
373
+ sec.appendChild(row);
374
+ root.appendChild(sec);
375
+ renderLive(r.key);
376
+ }
377
+
378
+ const comp = el("div", "section");
379
+ comp.innerHTML = `<div class="section-title">batch composition <span class="muted">what each step's samples are made of</span></div><div id="comp"></div>`;
380
+ root.appendChild(comp);
381
+
382
+ const done = runs().filter((r) => isFinal(r.key));
383
+ if (done.length) {
384
+ const tl = el("div", "section");
385
+ tl.innerHTML = `<div class="section-title">timeline <span class="muted">completed runs · most recent first</span></div><div class="timelines">${done.map((r) => `<div class="card timeline" id="tl-${r.key}"></div>`).join("")}</div>`;
386
+ root.appendChild(tl);
387
+ for (const r of done) renderTimeline($(`tl-${r.key}`), r.key);
388
+ }
389
+ tick();
390
+ await loadUnion();
391
+ if (!root.isConnected || S.view !== "overview") return;
392
+ await renderComposition($("comp"));
393
+ }
394
+
395
+ function statusBlock(run) {
396
+ const s = st(run), rc = runCfg(run);
397
+ const final = s.run.mode === "ended";
398
+ const block = el("div", "status");
399
+ block.dataset.run = run;
400
+ block.innerHTML = `
401
+ <div class="status-line">
402
+ <span class="status-name"><i class="swatch" style="background:${runColor(run)}"></i><b class="mono">${esc(rc.label)}</b><span class="muted state">${final ? "completed" : "in progress"}</span></span>
403
+ <span class="big" data-f="step"></span>
404
+ <span class="clock-col"><span class="mono" data-f="clock"></span><span class="started" data-f="started"></span></span>
405
+ <span class="phase" data-f="phase"><span class="phase-track"><span class="phase-fill"></span><span class="phase-divider"></span></span><span class="phase-text"></span></span>
406
+ </div>
407
+ <div class="kv" data-f="kv"></div>`;
408
+ return block;
409
+ }
410
+
411
+ function renderKV(run) {
412
+ const block = document.querySelector(`.status[data-run="${run}"]`);
413
+ if (!block) return;
414
+ const s = st(run), t = s.totals || {}, h = s.headline || {};
415
+ const final = s.run.mode === "ended";
416
+ const hf = h.tag ? fmtOf(h.tag) : "ratio";
417
+ const hd = Fmt.delta(h.last, h.first, hf); // total row: change since the first step
418
+ // rollouts per prompt: sequences trained this step ÷ prompts in the batch (16 on every step so far)
419
+ const nPer = t.trained_step && t.prompts_per_step && Math.abs(t.trained_step / t.prompts_per_step - Math.round(t.trained_step / t.prompts_per_step)) < 1e-6 ? Math.round(t.trained_step / t.prompts_per_step) : null;
420
+ const cells = [
421
+ [`${h.tag || "headline"}${h.first_step != null && s.step.last > h.first_step ? ` · Δ vs step ${h.first_step}` : ""}`, h.last == null ? "—" : `${Fmt.text(h.last, hf)}${hd ? ` <span class="delta ${hd.dir === "flat" ? "flat" : ""}">${hd.dir === "up" ? "▲" : hd.dir === "down" ? "▼" : ""}${hd.text}</span>` : ""}`],
422
+ [final ? "total cost" : "cost so far", `<span data-f="cost">—</span>`],
423
+ [`tokens · step ${s.step.last || "—"}`, Fmt.compact(t.tokens_step, 3)],
424
+ ["tokens · total", Fmt.compact(t.tokens_cum, 3)],
425
+ ["samples trained", Fmt.compact(t.trained_cum, 3)],
426
+ ["train batch size × n", nPer ? `${Fmt.int(t.prompts_per_step)} × ${nPer}<span class="u">seqs</span>` : `${Fmt.int(t.prompts_per_step)}<span class="u">prompts</span>`],
427
+ ];
428
+ block.querySelector('[data-f="kv"]').innerHTML = cells.map(([k, v]) => `<div><div class="k">${esc(k)}</div><div class="v">${v}</div></div>`).join("");
429
+ }
430
+
431
+ // ------------------------------------------------------------------ live
432
+ /* Feed = sampler reports + step completions + restarts, newest first; plus
433
+ the per-source table of the latest report. */
434
+ function renderLive(run) {
435
+ const row = document.querySelector(`.live-row[data-run="${run}"]`);
436
+ if (!row) return;
437
+ const l = S.live[run], s = st(run);
438
+ const now = vnow(run);
439
+ const feed = row.querySelector('[data-f="feed"]');
440
+ // step of a sampler report: from the log's own step marks, else the last
441
+ // completed step before it (from the metrics timeline) + 1
442
+ const done = (s.events || []).filter((e) => e.kind === "step").map((e) => e.t).sort((a, b) => a - b);
443
+ const stepAt = (t) => { let n = 0; for (const d of done) if (d <= t) n++; else break; return n + 1; };
444
+ const items = [];
445
+ if (l) for (const e of l.entries) items.push({ t: e.t, kind: "rew", e: e.step ? e : { ...e, step: e.t ? stepAt(e.t) : null } });
446
+ for (const e of (s.events || [])) items.push({ t: e.t, kind: e.kind, e });
447
+ items.sort((a, b) => (b.t || 0) - (a.t || 0));
448
+ const hf = s.headline && s.headline.tag ? fmtOf(s.headline.tag) : "ratio";
449
+ feed.innerHTML = items.slice(0, 40).map((it) => {
450
+ const when = `<span class="tl-time" data-run="${run}" data-t="${it.t || ""}">${it.t ? Fmt.ago(now - it.t) : ""}</span>`;
451
+ if (it.kind === "rew") {
452
+ const e = it.e;
453
+ return `<div class="tl-item rew">${when}<span class="tl-text">accepted <b>${Fmt.int(e.accept)}/${Fmt.int(e.target)}</b> · judged ${Fmt.int(e.judged)} · pass ${e.passrate.toFixed(3)} <span class="muted">(n=${Fmt.int(e.n)})</span> · remaining ${Fmt.int(e.remain)} <span class="muted">+${Fmt.int(e.remain_partial)} partial +${Fmt.int(e.remain_seq)} rewarding</span> · prewarm ${Fmt.int(e.prewarm)}</span><span class="tl-meta">${e.step ? `step ${e.step}` : ""}</span></div>`;
454
+ }
455
+ if (it.kind === "step") {
456
+ const e = it.e;
457
+ const d = e.delta != null ? `<span class="delta">${e.delta > 0 ? "▲" : e.delta < 0 ? "▼" : ""}${Math.abs(e.delta).toFixed(3)}</span>` : "";
458
+ return `<div class="tl-item step">${when}<span class="tl-text"><b>step ${e.step} done${e.redo ? " again" : ""}</b> · ${esc(s.headline.tag || "")} ${e.value != null ? Fmt.text(e.value, hf) : "—"} ${d}</span><span class="tl-meta">${e.tokens != null ? `${Fmt.compact(e.tokens, 3)} tok` : ""}</span></div>`;
459
+ }
460
+ if (it.kind === "end") return `<div class="tl-item restart">${when}<span class="tl-text">run ended</span><span class="tl-meta"></span></div>`;
461
+ return `<div class="tl-item restart">${when}<span class="tl-text">trainer restarted</span><span class="tl-meta"></span></div>`;
462
+ }).join("") || `<div class="muted">no sampler reports yet</div>`;
463
+ row.querySelector('[data-f="log-time"]').textContent = l && l.log_time && now != null ? `log ${Fmt.ago(Math.max(0, now - l.log_time))}`.replace("just now", "up to date") : "";
464
+
465
+ const latest = l && l.latest;
466
+ const title = row.querySelector('[data-f="src-title"]'), note = row.querySelector('[data-f="src-note"]'), tbl = row.querySelector('[data-f="src-table"]');
467
+ if (!latest) { title.textContent = "data sources"; note.textContent = ""; tbl.innerHTML = `<div class="muted">no sampler report yet</div>`; return; }
468
+ const stepNo = latest.step || (latest.t ? stepAt(latest.t) : s.step.last + 1);
469
+ const stale = beforeRestart(run, latest.t);
470
+ title.innerHTML = `step ${stepNo} · accepted <span class="mono">${Fmt.int(latest.accept)}/${Fmt.int(latest.target)}</span>${stale ? ` <span class="muted">· last report before the restart</span>` : ""}`;
471
+ note.textContent = latest.t ? Fmt.ago(now - latest.t) : "";
472
+ const rows = Object.entries(latest.ds).map(([name, v]) => ({ name, acc: v[0], tgt: v[1], j: v[2], r: v[3] })).sort((a, b) => b.tgt - a.tgt || b.acc - a.acc);
473
+ const inflight = rows.reduce((a, r) => a + (r.r || 0), 0);
474
+ tbl.innerHTML = `<table class="tbl src"><thead><tr><th>source</th><th>accepted / target</th><th></th><th>remaining</th><th>judged</th><th>in flight</th></tr></thead><tbody>
475
+ ${rows.map((r) => { const pct = r.tgt ? Math.min(1, r.acc / r.tgt) : 0; return `<tr><td>${esc(r.name)}</td><td>${Fmt.int(r.acc)} / ${Fmt.int(r.tgt)}</td><td class="bar"><div class="row-bar"><div class="row-bar-fill" style="width:${pct * 100}%"></div></div></td><td>${Fmt.int(Math.max(0, r.tgt - r.acc))}</td><td class="${r.j == null ? "dim" : ""}">${r.j == null ? "—" : Fmt.int(r.j)}</td><td class="${r.r == null ? "dim" : ""}">${r.r == null ? "—" : Fmt.int(r.r)}</td></tr>`; }).join("")}
476
+ <tr class="total"><td>total</td><td>${Fmt.int(latest.accept)} / ${Fmt.int(latest.target)}</td><td></td><td>${Fmt.int(Math.max(0, latest.target - latest.accept))}</td><td>${Fmt.int(latest.judged)}</td><td>${Fmt.int(inflight)}</td></tr>
477
+ </tbody></table>`;
478
+ }
479
+
480
+ // ----------------------------------------------------------- composition
481
+ async function renderComposition(host) {
482
+ const presets = S.cfg.compositions || [];
483
+ if (!presets.length) { host.innerHTML = ""; return; }
484
+ const cp = presets.find((p) => p.key === S.comp) || presets[0];
485
+ S.comp = cp.key;
486
+ if (!S.compRun || !runCfg(S.compRun)) S.compRun = runs()[0].key;
487
+ const run = S.compRun;
488
+ host.innerHTML = "";
489
+ const ctl = el("div", "controls");
490
+ ctl.append(
491
+ el("span", "ctl-label", "by"),
492
+ seg(null, presets.map((p) => [p.key, p.label]), () => renderComposition(host), () => S.comp, (v) => { S.comp = v; }),
493
+ el("span", "ctl-label", "run"),
494
+ seg(null, runs().map((r) => [r.key, runName(r.key)]), () => renderComposition(host), () => S.compRun, (v) => { S.compRun = v; }),
495
+ seg("compMode", [["count", "count"], ["share", "share"]], () => renderComposition(host)),
496
+ );
497
+ host.appendChild(ctl);
498
+ const layout = el("div", "comp-layout");
499
+ host.appendChild(layout);
500
+ if (cp.derive === "trained") await renderTrainedComposition(layout, cp, run);
501
+ else await renderMetricComposition(layout, cp, run);
502
+ }
503
+
504
+ /* Trained prompts per step per category. A source's pool of accepted
505
+ prompts obeys held(t) = held(t−1) + accepted(t) − trained(t) − expired(t),
506
+ so trained(t) ≈ held(t−1) + accepted(t) − held(t) (dynsam/<src>/num_accepted/*);
507
+ summed over sources it equals the train batch. On the first step after
508
+ a (re)start `held` is reported before consumption, so those steps fall
509
+ back to carryover + a proportional share of the fresh accepts. */
510
+ async function renderTrainedComposition(layout, cp, run) {
511
+ const groups = cp.groups || S.cfg.categories || [];
512
+ const items = groups.flatMap((g) => childrenWith(`${cp.prefix}/${g}`, "num_accepted/step", run).map((d) => ({ g, key: `${g}/${d}` })));
513
+ layout.innerHTML = `<article class="card"><div class="card-head"><div class="card-title">trained prompts per step, by category</div><div class="card-note">${items.length} sources · derived from ${esc(cp.prefix)}/*/num_accepted</div></div><div class="comp-chart"></div></article><article class="card comp-table"></article>`;
514
+ if (!items.length) { layout.querySelector(".comp-chart").innerHTML = `<div class="muted">no data</div>`; return; }
515
+ const tags = items.flatMap((it) => ["step", "held", "carryover"].map((k) => `${cp.prefix}/${it.key}/num_accepted/${k}`));
516
+ tags.push("dynsam/num_target");
517
+ const sc = await getSeries(run, tags);
518
+ if (!layout.isConnected) return;
519
+ const n = sc.steps.length;
520
+ const get = (it, k) => sc.map.get(`${cp.prefix}/${it.key}/num_accepted/${k}`) || [];
521
+ const bszSeries = sc.map.get("dynsam/num_target") || [];
522
+ const trained = items.map(() => new Array(n).fill(0));
523
+ const approx = new Array(n).fill(false);
524
+ for (let i = 0; i < n; i++) {
525
+ const bsz = bszSeries[i] || (st(run).totals && st(run).totals.prompts_per_step) || 0;
526
+ let sum = 0;
527
+ const rec = items.map((it, k) => { const a = get(it, "step")[i] || 0, h = get(it, "held")[i] || 0, hp = i ? (get(it, "held")[i - 1] || 0) : null; const v = hp == null ? null : Math.max(0, hp + a - h); if (v != null) sum += v; return v; });
528
+ const sane = i > 0 && bsz && Math.abs(sum - bsz) <= 0.05 * bsz;
529
+ if (sane) rec.forEach((v, k) => { trained[k][i] = v; });
530
+ else {
531
+ approx[i] = true;
532
+ const carry = items.map((it) => get(it, "carryover")[i] || 0), acc = items.map((it) => get(it, "step")[i] || 0);
533
+ const fresh = Math.max(0, bsz - carry.reduce((x, y) => x + y, 0)), accSum = acc.reduce((x, y) => x + y, 0) || 1;
534
+ items.forEach((it, k) => { trained[k][i] = carry[k] + acc[k] * fresh / accSum; });
535
+ }
536
+ }
537
+ const pal = Charts.palette();
538
+ const series = groups.map((g, gi) => ({ key: g, label: g, color: pal[gi % pal.length],
539
+ values: Array.from({ length: n }, (_, i) => items.reduce((a, it, k) => a + (it.g === g ? trained[k][i] : 0), 0)) }));
540
+ const chart = new Charts.Stacked(layout.querySelector(".comp-chart"), { mode: S.prefs.compMode, xMode: S.prefs.xMode });
541
+ chart.setData({ steps: sc.steps, walls: sc.walls, runStart: sc.runStart, series });
542
+ S.cards.push({ chart, loaded: true, load() {} });
543
+
544
+ const last = n - 1, prev = n - 2;
545
+ const tot = (i) => series.reduce((a, sr) => a + sr.values[i], 0);
546
+ const total = tot(last), prevTotal = prev >= 0 ? tot(prev) : 0;
547
+ const bsz = bszSeries[last] || (st(run).totals && st(run).totals.prompts_per_step);
548
+ const tbl = layout.querySelector(".comp-table");
549
+ tbl.innerHTML = `<div class="card-head"><div class="card-title">step ${sc.steps[last]}</div><div class="card-note">${approx[last] ? "≈ " : ""}${Fmt.int(total)} prompts${bsz ? ` · train batch ${Fmt.int(bsz)}` : ""}</div></div>
550
+ <div class="table-wrap"><table class="tbl"><thead><tr><th>category</th><th>sources</th><th>prompts</th><th>share</th><th>Δ share</th></tr></thead><tbody>
551
+ ${series.map((sr, gi) => { const v = sr.values[last], sh = total ? v / total : 0, ps = prevTotal ? sr.values[prev] / prevTotal : null, d = ps == null ? null : sh - ps;
552
+ return `<tr><td><i class="swatch" style="background:${sr.color}"></i>${esc(sr.label)}</td><td class="dim">${items.filter((it) => it.g === sr.key).length}</td><td>${Fmt.int(v)}</td><td>${(sh * 100).toFixed(1)}%</td><td class="${d == null ? "dim" : ""}">${d == null ? "—" : `${d > 0 ? "▲" : d < 0 ? "▼" : ""}${Math.abs(d * 100).toFixed(1)} pt`}</td></tr>`; }).join("")}
553
+ <tr class="total"><td>total</td><td class="dim">${items.length}</td><td>${Fmt.int(total)}</td><td>100%</td><td></td></tr>
554
+ </tbody></table></div>${approx.some(Boolean) ? `<div class="muted" style="margin-top:8px;font-size:11.5px">≈ steps right after a restart report the pool before consumption; there the split is carryover + a proportional share of fresh accepts.</div>` : ""}`;
555
+ }
556
+
557
+ async function renderMetricComposition(layout, cp, run) {
558
+ let items = childrenWith(cp.prefix, cp.metric, run);
559
+ if (cp.expand) items = items.flatMap((c) => { const sub = childrenWith(`${cp.prefix}/${c}`, cp.metric, run).filter((g) => g !== "harness"); return sub.length ? sub.map((g) => `${c}/${g}`) : [c]; });
560
+ layout.innerHTML = `<article class="card"><div class="card-head"><div class="card-title mono">${esc(cp.prefix)}/*/${esc(cp.metric)}</div><div class="card-note">${items.length} sources · ${esc(cp.unit || "")} per step</div></div><div class="comp-chart"></div></article><article class="card comp-table"></article>`;
561
+ if (!items.length) { layout.querySelector(".comp-chart").innerHTML = `<div class="muted">no data</div>`; return; }
562
+ const tags = items.map((c) => `${cp.prefix}/${c}/${cp.metric}`);
563
+ const sc = await getSeries(run, tags);
564
+ if (!layout.isConnected) return;
565
+ const n = sc.steps.length;
566
+ const rows = items.map((c, i) => ({ c, vals: sc.map.get(tags[i]) || [], last: lastOf(sc.map.get(tags[i])), prev: prevOf(sc.map.get(tags[i])) }));
567
+ rows.sort((a, b) => (b.last || 0) - (a.last || 0));
568
+ const shown = rows.length > MAX_SERIES ? rows.slice(0, MAX_SERIES - 1) : rows;
569
+ const tail = rows.length > MAX_SERIES ? rows.slice(MAX_SERIES - 1) : [];
570
+ const pal = Charts.palette();
571
+ const series = shown.map((r, i) => ({ key: r.c, label: r.c, color: pal[i], values: r.vals.map((v) => v || 0) }));
572
+ if (tail.length) series.push({ key: "_other", label: `other (${tail.length})`, color: getComputedStyle(document.documentElement).getPropertyValue("--baseline").trim(), values: Array.from({ length: n }, (_, i) => tail.reduce((a, r) => a + (r.vals[i] || 0), 0)) });
573
+ const chart = new Charts.Stacked(layout.querySelector(".comp-chart"), { mode: S.prefs.compMode, xMode: S.prefs.xMode });
574
+ chart.setData({ steps: sc.steps, walls: sc.walls, runStart: sc.runStart, series });
575
+ S.cards.push({ chart, loaded: true, load() {} });
576
+ const total = rows.reduce((a, r) => a + (r.last || 0), 0), prevTotal = rows.reduce((a, r) => a + (r.prev || 0), 0);
577
+ const tbl = layout.querySelector(".comp-table");
578
+ tbl.innerHTML = `<div class="card-head"><div class="card-title">step ${sc.steps[n - 1]}</div><div class="card-note">${Fmt.int(total)} ${esc(cp.unit || "")}</div></div>
579
+ <div class="table-wrap"><table class="tbl"><thead><tr><th>source</th><th>${esc(cp.unit || "n")}</th><th>share</th><th>Δ share</th></tr></thead><tbody>
580
+ ${rows.map((r, i) => { const sh = total ? (r.last || 0) / total : 0, ps = prevTotal ? (r.prev || 0) / prevTotal : null, d = ps == null ? null : sh - ps; const color = i < shown.length ? pal[i] : "var(--surface-3)";
581
+ return `<tr><td><i class="swatch" style="background:${color}"></i>${esc(r.c)}</td><td>${Fmt.int(r.last)}</td><td>${(sh * 100).toFixed(1)}%</td><td class="${d == null ? "dim" : ""}">${d == null ? "—" : `${d > 0 ? "▲" : d < 0 ? "▼" : ""}${Math.abs(d * 100).toFixed(1)} pt`}</td></tr>`; }).join("")}
582
+ </tbody></table></div>`;
583
+ }
584
+
585
+ function renderTimeline(host, run) {
586
+ const s = st(run);
587
+ const ev = (s.events || []).slice().reverse();
588
+ const hf = s.headline && s.headline.tag ? fmtOf(s.headline.tag) : "ratio";
589
+ const now = vnow(run);
590
+ const final = s.run.mode === "ended";
591
+ // a live run reads "2h ago"; a finished run reads as run time at the event
592
+ const when = (e) => final ? `<span class="tl-time">T+${Fmt.clock(e.t - s.run.start).replace(/:\d\d$/, "")}</span>`
593
+ : `<span class="tl-time" data-run="${run}" data-t="${e.t}">${Fmt.ago(now - e.t)}</span>`;
594
+ host.innerHTML = `<div class="card-head"><div class="card-title mono">${esc(runName(run))}</div><div class="card-note">${final ? "completed" : ""}</div></div>` +
595
+ (ev.slice(0, 14).map((e) => {
596
+ if (e.kind === "step") {
597
+ const d = e.delta != null ? `<span class="delta">${e.delta > 0 ? "▲" : e.delta < 0 ? "▼" : ""}${Math.abs(e.delta).toFixed(3)}</span>` : "";
598
+ return `<div class="tl-item">${when(e)}<span class="tl-text">step ${e.step}${e.redo ? " again" : ""} · ${esc(s.headline.tag || "")} ${e.value != null ? Fmt.text(e.value, hf) : "—"} ${d}</span><span class="tl-meta">${e.tokens != null ? `${Fmt.compact(e.tokens, 3)} tok` : ""}</span></div>`;
599
+ }
600
+ if (e.kind === "end") return `<div class="tl-item restart">${when(e)}<span class="tl-text">run ended</span><span class="tl-meta"></span></div>`;
601
+ return `<div class="tl-item restart">${when(e)}<span class="tl-text">trainer restarted</span><span class="tl-meta"></span></div>`;
602
+ }).join("") || `<div class="muted">waiting for the first step</div>`);
603
+ }
604
+
605
+ // ---------------------------------------------------------------- metrics
606
+ async function renderMetrics(root) {
607
+ root.innerHTML = `<div id="m-controls"></div><div class="metrics-layout"><nav class="tree" id="tree"></nav><div id="m-main"><div class="muted">loading tags…</div></div></div>`;
608
+ const search = el("input", "search");
609
+ search.type = "search"; search.placeholder = "filter tags (substring or /regex/)"; search.value = S.query;
610
+ let t; search.addEventListener("input", () => { clearTimeout(t); t = setTimeout(() => { S.query = search.value.trim(); S.page = PAGE; renderMetricsMain(); }, 150); });
611
+ $("m-controls").replaceWith(controlsRow([search]));
612
+ await loadUnion();
613
+ if (!root.isConnected || S.view !== "metrics") return;
614
+ renderTree();
615
+ renderMetricsMain();
616
+ }
617
+ function renderTree() {
618
+ const host = $("tree");
619
+ if (!host) return;
620
+ host.innerHTML = "";
621
+ if (S.expandedFor !== S.path) { for (const p of ancestors(S.path)) S.expanded.add(p); S.expandedFor = S.path; }
622
+ const build = (node) => {
623
+ const frag = document.createDocumentFragment();
624
+ for (const c of sortedChildren(node)) {
625
+ const has = c.children.size > 0;
626
+ const open = S.expanded.has(c.path);
627
+ const row = el("div", `tree-node${S.path === c.path ? " active" : ""}`);
628
+ row.innerHTML = `<span class="tw">${has ? (open ? "▾" : "▸") : ""}</span><span class="nm">${esc(c.name)}</span><span class="cnt">${c.total}</span>`;
629
+ row.querySelector(".tw").addEventListener("click", (e) => { e.stopPropagation(); if (S.expanded.has(c.path)) S.expanded.delete(c.path); else S.expanded.add(c.path); renderTree(); });
630
+ row.addEventListener("click", () => { location.hash = `#metrics/${c.path}`; });
631
+ frag.appendChild(row);
632
+ if (has && open) { const kids = el("div", "tree-children"); kids.appendChild(build(c)); frag.appendChild(kids); }
633
+ }
634
+ return frag;
635
+ };
636
+ host.appendChild(build(S.union.tree));
637
+ }
638
+ function ancestors(path) {
639
+ const out = [];
640
+ if (!path) return out;
641
+ const parts = path.split("/");
642
+ for (let i = 1; i <= parts.length; i++) out.push(parts.slice(0, i).join("/"));
643
+ return out;
644
+ }
645
+ function renderMetricsMain() {
646
+ const main = $("m-main");
647
+ if (!S.union || !main) return;
648
+ for (const c of S.cards) if (c.chart) c.chart.destroy();
649
+ S.cards = [];
650
+ main.innerHTML = "";
651
+ let leaves, folders = [], title;
652
+ if (S.query) {
653
+ let test;
654
+ const m = S.query.match(/^\/(.+)\/([a-z]*)$/);
655
+ try { test = m ? new RegExp(m[1], m[2]) : null; } catch (e) { test = null; }
656
+ const q = S.query.toLowerCase();
657
+ leaves = S.union.list.filter((t) => test ? test.test(t) : t.toLowerCase().includes(q));
658
+ title = `<div class="crumbs"><span class="cur">${leaves.length} tags match</span> <span class="muted">${esc(S.query)}</span></div>`;
659
+ } else {
660
+ const node = nodeAt(S.union.tree, S.path);
661
+ if (!node) { main.innerHTML = `<div class="muted">no such path: ${esc(S.path)}</div>`; return; }
662
+ leaves = node.leaves.slice().sort();
663
+ folders = sortedChildren(node);
664
+ const parts = S.path ? S.path.split("/") : [];
665
+ title = `<div class="crumbs"><a data-p="">all</a>${parts.map((p, i) => `<span class="sepc">/</span>${i === parts.length - 1 ? `<span class="cur">${esc(p)}</span>` : `<a data-p="${esc(parts.slice(0, i + 1).join("/"))}">${esc(p)}</a>`}`).join("")}<span class="muted">&nbsp; ${node.total} tags</span></div>`;
666
+ }
667
+ main.innerHTML = title;
668
+ main.querySelectorAll(".crumbs a").forEach((a) => a.addEventListener("click", () => { location.hash = `#metrics/${a.dataset.p}`; }));
669
+ if (folders.length) {
670
+ const fl = el("div", "folders");
671
+ for (const f of folders) { const b = el("button", "folder", `${esc(f.name)}/<span class="cnt">${f.total}</span>`); b.addEventListener("click", () => { location.hash = `#metrics/${f.path}`; }); fl.appendChild(b); }
672
+ main.appendChild(fl);
673
+ }
674
+ const grid = el("div", "chart-grid");
675
+ main.appendChild(grid);
676
+ const show = leaves.slice(0, S.page);
677
+ for (const tag of show) grid.appendChild(chartCard(tag, { leafOnly: !S.query }));
678
+ if (leaves.length > show.length) {
679
+ const more = el("div", "more", `<button>show ${Math.min(PAGE, leaves.length - show.length)} more <span class="muted">(${leaves.length - show.length} left)</span></button>`);
680
+ more.querySelector("button").addEventListener("click", () => { S.page += PAGE; renderMetricsMain(); });
681
+ main.appendChild(more);
682
+ }
683
+ if (!leaves.length && !folders.length) main.appendChild(el("div", "muted", "nothing here"));
684
+ }
685
+
686
+ // ------------------------------------------------------------------ about
687
+ function renderAbout(root) {
688
+ const linkify = (t) => esc(t)
689
+ .replace(/(https?:\/\/[^\s)]+)/g, (u) => `<a class="link" href="${u}" target="_blank" rel="noopener">${u}</a>`)
690
+ .replace(/(^|\s)(@[A-Za-z0-9_]+)/g, (m, sp, h) => `${sp}<a class="link" href="${esc((S.cfg.social && S.cfg.social.url) || `https://x.com/${h.slice(1)}`)}" target="_blank" rel="noopener">${h}</a>`);
691
+ root.innerHTML = `<div class="page-head"><div><h1 class="page-title">about</h1></div></div><div class="prose">${(S.cfg.about || []).map((t) => `<p>${linkify(t)}</p>`).join("")}</div>`;
692
+ }
693
+
694
+ // ------------------------------------------------------------------ modal
695
+ async function openChart(tag) {
696
+ const format = fmtOf(tag);
697
+ $("modal-title").textContent = tag;
698
+ $("modal-desc").textContent = descOf(tag);
699
+ $("modal-stats").innerHTML = "";
700
+ if (S.modal && S.modal.chart) S.modal.chart.destroy();
701
+ S.modal = { tag, chart: new Charts.Line($("modal-chart"), { format, xMode: S.prefs.xMode, smoothing: S.prefs.smoothing, log: S.prefs.log }) };
702
+ $("modal").classList.remove("hidden");
703
+ document.body.style.overflow = "hidden";
704
+ if (!S.returnHash) S.returnHash = location.hash || "#overview";
705
+ history.replaceState(null, "", `#chart/${encodeURIComponent(tag)}`);
706
+ const series = await runSeries(tag);
707
+ if (!S.modal || S.modal.tag !== tag) return;
708
+ S.modal.chart.setData({ series });
709
+ const stat = (k, v) => `<span class="stat"><span class="stat-label">${k}</span><span>${v}</span></span>`;
710
+ $("modal-stats").innerHTML = series.map((s) => {
711
+ const clean = s.values.filter((v) => v != null);
712
+ const last = lastOf(s.values), prev = prevOf(s.values), d = Fmt.delta(last, prev, format);
713
+ return `<div class="stat-row"><i class="swatch" style="background:${s.color}"></i><span class="stat-run">${esc(s.label)}</span>${stat("last", Fmt.text(last, format))}${stat("Δ", d ? Fmt.deltaHTML(d, null, "") : "—")}${clean.length ? stat("min", Fmt.text(Math.min(...clean), format)) + stat("max", Fmt.text(Math.max(...clean), format)) + stat("mean", Fmt.text(clean.reduce((a, b) => a + b, 0) / clean.length, format)) : ""}${stat("points", String(clean.length))}</div>`;
714
+ }).join("");
715
+ }
716
+ function closeModal(restore) {
717
+ if ($("modal").classList.contains("hidden")) return;
718
+ $("modal").classList.add("hidden");
719
+ document.body.style.overflow = "";
720
+ if (S.modal && S.modal.chart) S.modal.chart.destroy();
721
+ S.modal = null;
722
+ if (restore !== false) history.replaceState(null, "", S.returnHash || "#overview");
723
+ S.returnHash = null;
724
+ }
725
+ $("modal").addEventListener("click", (e) => { if (e.target.closest("[data-close]")) closeModal(); });
726
+ document.addEventListener("keydown", (e) => { if (e.key === "Escape") closeModal(); });
727
+
728
+ // ----------------------------------------------------------------- clocks
729
+ const ZONES = [["Beijing", "Asia/Shanghai"], ["Los Angeles", "America/Los_Angeles"], ["New York", "America/New_York"], ["London", "Europe/London"]];
730
+ const zoneFmt = ZONES.map(([, tz]) => new Intl.DateTimeFormat("en-GB", { timeZone: tz, hour: "2-digit", minute: "2-digit", second: "2-digit", hour12: false }));
731
+ function renderClocks(total) {
732
+ const host = $("nav-status");
733
+ if (!host.dataset.built) {
734
+ host.innerHTML = `<div class="nav-cell nav-cost"><span class="k">total cost</span><span class="v" data-f="cost"></span></div>` +
735
+ ZONES.map(([city], i) => `<div class="nav-cell"><span class="k">${city}</span><span class="v" data-z="${i}"></span></div>`).join("");
736
+ host.dataset.built = "1";
737
+ }
738
+ host.querySelector('[data-f="cost"]').textContent = total == null ? "—" : `$${Math.floor(total).toLocaleString("en-US")}`;
739
+ const now = new Date();
740
+ host.querySelectorAll("[data-z]").forEach((e) => { e.textContent = zoneFmt[+e.dataset.z].format(now); });
741
+ }
742
+
743
+ // ------------------------------------------------------------------- tick
744
+ function tick() {
745
+ if (!S.cfg) return;
746
+ // nav: total cost across runs + a UTC clock
747
+ let total = 0, any = false;
748
+ for (const r of runs()) {
749
+ const s = st(r.key);
750
+ if (!s || !s.cost || !s.cost.rate_per_s) continue;
751
+ any = true;
752
+ total += s.run.mode === "ended" ? s.cost.so_far : s.cost.rate_per_s * Math.max(0, vnow(r.key) - s.run.start);
753
+ }
754
+ renderClocks(any ? total : null);
755
+
756
+ for (const r of runs()) {
757
+ const s = st(r.key), block = document.querySelector(`.status[data-run="${r.key}"]`);
758
+ if (!s || !block) continue;
759
+ const final = s.run.mode === "ended";
760
+ const now = vnow(r.key);
761
+ const p = s.step;
762
+ block.querySelector('[data-f="step"]').textContent = `step ${p.last}`;
763
+ block.querySelector('[data-f="clock"]').textContent = final ? `${Fmt.clock(s.run.end - s.run.start)} total` : Fmt.clock(now - s.run.start);
764
+ block.querySelector('[data-f="started"]').textContent = `started ${new Date(s.run.start * 1000).toISOString().replace("T", " ").slice(0, 16)} UTC`;
765
+ const phase = block.querySelector('[data-f="phase"]');
766
+ if (final) {
767
+ phase.innerHTML = `<span class="phase-text">ended ${new Date(s.run.end * 1000).toISOString().slice(0, 10)}</span>`;
768
+ } else {
769
+ const since = p.since + (performance.now() - S.statusAt[r.key]) / 1000;
770
+ const fill = phase.querySelector(".phase-fill"), div = phase.querySelector(".phase-divider"), text = phase.querySelector(".phase-text");
771
+ const lv = liveLatest(r.key);
772
+ if (fill && lv) {
773
+ const q = lv.target ? Math.min(1, lv.accept / lv.target) : 0;
774
+ const ph = lv.accept >= lv.target ? "training" : "rollout";
775
+ fill.classList.remove("indeterminate");
776
+ fill.style.width = `${q * 100}%`;
777
+ div.classList.remove("visible");
778
+ text.innerHTML = `step ${lv.step || p.last + 1}: <b>${ph}</b> · ${Fmt.int(lv.accept)}/${Fmt.int(lv.target)} accepted · ${Fmt.duration(since, { seconds: true })} in`;
779
+ } else if (fill && p.restarted_at != null) {
780
+ // a new trainer process, no sampler report from it yet: nothing to measure
781
+ fill.classList.add("indeterminate");
782
+ div.classList.remove("visible");
783
+ text.innerHTML = `<b>restarting</b> · trainer relaunched ${Fmt.duration(since, { seconds: true })} ago`;
784
+ } else if (fill) {
785
+ let ph = "rollout";
786
+ if (p.expected) {
787
+ const q = Math.min(1, since / p.expected);
788
+ if (p.gen_frac != null && q >= p.gen_frac) ph = "training";
789
+ fill.classList.remove("indeterminate");
790
+ fill.style.width = `${q * 100}%`;
791
+ div.classList.toggle("visible", p.gen_frac != null);
792
+ if (p.gen_frac != null) div.style.left = `${p.gen_frac * 100}%`;
793
+ text.innerHTML = `step ${p.last + 1}: <b>${ph}</b> · ${Fmt.duration(since, { seconds: true })} in`;
794
+ } else {
795
+ fill.classList.add("indeterminate");
796
+ div.classList.remove("visible");
797
+ text.innerHTML = `step ${p.last + 1}: <b>rollout</b> · ${Fmt.duration(since, { seconds: true })} in`;
798
+ }
799
+ }
800
+ }
801
+ const costEl = block.querySelector('[data-f="cost"]');
802
+ if (costEl && s.cost && s.cost.rate_per_s) {
803
+ const cost = final ? s.cost.so_far : s.cost.rate_per_s * Math.max(0, now - s.run.start);
804
+ costEl.textContent = `$${Math.floor(cost).toLocaleString("en-US")}`;
805
+ }
806
+ }
807
+ document.querySelectorAll(".tl-time[data-t]").forEach((e) => { const now = vnow(e.dataset.run); if (now != null) e.textContent = Fmt.ago(now - parseFloat(e.dataset.t)); });
808
+ }
809
+
810
+ // ----------------------------------------------------------------- router
811
+ function parseHash() {
812
+ const parts = location.hash.replace(/^#/, "").split("/");
813
+ const view = parts.shift() || "overview";
814
+ return { view, rest: parts };
815
+ }
816
+ async function route() {
817
+ if (!S.cfg) return;
818
+ const { view, rest } = parseHash();
819
+ let chartTag = null;
820
+ if (view === "chart") { try { chartTag = decodeURIComponent(rest.join("/")); } catch (e) { chartTag = null; } }
821
+ if (!chartTag) {
822
+ closeModal(false);
823
+ S.view = ["overview", "metrics", "about"].includes(view) ? view : "overview";
824
+ if (S.view === "metrics") { S.path = rest.join("/"); S.page = PAGE; }
825
+ } else if (!S.rendered) S.view = "overview";
826
+ document.querySelectorAll("#tabs a").forEach((a) => { a.classList.toggle("active", a.dataset.view === S.view); a.href = `#${a.dataset.view}`; });
827
+ document.querySelectorAll(".view").forEach((v) => v.classList.toggle("active", v.id === `view-${S.view}`));
828
+ if (chartTag) {
829
+ if (!S.rendered) await renderView();
830
+ S.returnHash = `#${S.view}`;
831
+ openChart(chartTag);
832
+ return;
833
+ }
834
+ await renderView();
835
+ window.scrollTo(0, 0);
836
+ }
837
+ async function renderView() {
838
+ if (!S.cfg || !runs().every((r) => st(r.key))) return;
839
+ clearCards();
840
+ S.rendered = true;
841
+ const root = $(`view-${S.view}`);
842
+ try {
843
+ if (S.view === "overview") { await renderOverview(root); for (const r of runs()) renderKV(r.key); }
844
+ else if (S.view === "metrics") await renderMetrics(root);
845
+ else renderAbout(root);
846
+ } catch (err) {
847
+ root.innerHTML = `<div class="muted">failed to render: ${esc(err.message || err)}</div>`;
848
+ }
849
+ tick();
850
+ }
851
+
852
+ // ------------------------------------------------------------------- poll
853
+ async function poll() {
854
+ try {
855
+ let changed = false;
856
+ for (const r of runs()) {
857
+ if (isFinal(r.key) && st(r.key)) continue; // a finished run does not change
858
+ const before = st(r.key) ? st(r.key).version : null, beforeMode = st(r.key) ? st(r.key).run.mode : null;
859
+ const s = await loadStatus(r.key);
860
+ if (before && s.version !== before) { store(r.key); changed = true; }
861
+ if (beforeMode && s.run.mode !== beforeMode) changed = true;
862
+ }
863
+ S.failures = 0;
864
+ $("status-pill").classList.add("hidden");
865
+ for (const r of runs()) if (!isFinal(r.key)) await loadLive(r.key);
866
+ const noticesChanged = await loadNotices();
867
+ const benchChanged = await loadBenchmarks();
868
+ if (changed) await renderView();
869
+ else if (S.view === "overview") { for (const r of runs()) { renderKV(r.key); if (!isFinal(r.key)) renderLive(r.key); } if (noticesChanged) renderNotices(); if (benchChanged) renderBenchmarks(); }
870
+ tick();
871
+ } catch (err) {
872
+ S.failures += 1;
873
+ if (S.failures >= 2) $("status-pill").classList.remove("hidden");
874
+ tick();
875
+ }
876
+ }
877
+
878
+ // ------------------------------------------------------------------- boot
879
+ $("theme-toggle").addEventListener("click", () => {
880
+ const t = document.documentElement.dataset.theme === "dark" ? "light" : "dark";
881
+ document.documentElement.dataset.theme = t;
882
+ localStorage.setItem("theme", t);
883
+ renderView();
884
+ });
885
+ window.addEventListener("hashchange", route);
886
+
887
+ (async function boot() {
888
+ try {
889
+ S.cfg = await getJSON("api/runs");
890
+ S.cfg.formats = S.cfg.formats || [];
891
+ S.cfg.descriptions = S.cfg.descriptions || {};
892
+ document.title = S.cfg.title || "RL";
893
+ const soc = S.cfg.social || {};
894
+ const fh = $("foot-handle");
895
+ fh.textContent = soc.handle || ""; fh.href = soc.url || "#";
896
+ if (S.cfg.stream_start) $("foot-stream").textContent = `streaming since ${new Date(S.cfg.stream_start * 1000).toISOString().replace("T", " ").slice(0, 16)} UTC`;
897
+ $("foot-note").textContent = S.cfg.footer_note || "";
898
+ await Promise.all(runs().map((r) => loadStatus(r.key)));
899
+ await Promise.all(runs().filter((r) => !isFinal(r.key)).map((r) => loadLive(r.key)));
900
+ await loadNotices();
901
+ await loadBenchmarks();
902
+ await route();
903
+ } catch (err) {
904
+ $("foot-note").textContent = `could not load: ${err.message || err}`;
905
+ $("status-pill").classList.remove("hidden");
906
+ }
907
+ setInterval(poll, STATUS_MS);
908
+ setInterval(tick, 500);
909
+ })();
910
+ })();
evidence/mimo-rl-app.js ADDED
@@ -0,0 +1,910 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* mimo-v2.6 live page. All runs on one page, every public tag, lazy charts.
2
+ Runs are named by their model label only. A run is "live" until the server
3
+ reports mode "ended".
4
+ Routes: #overview · #metrics/<path> · #about · #chart/<encoded tag> */
5
+ (function () {
6
+ "use strict";
7
+
8
+ const STATUS_MS = 10000; // the page ticks locally between polls; a new step or report shows within 10 s
9
+ const MAX_SERIES = 8;
10
+ const BATCH = 96;
11
+ const PAGE = 48;
12
+
13
+ const $ = (id) => document.getElementById(id);
14
+ const el = (tag, cls, html) => { const e = document.createElement(tag); if (cls) e.className = cls; if (html != null) e.innerHTML = html; return e; };
15
+ const esc = (s) => String(s).replace(/[&<>"]/g, (c) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;" }[c]));
16
+
17
+
18
+ // ------------------------------------------------------------------ state
19
+ const S = {
20
+ cfg: null,
21
+ view: "overview",
22
+ path: "",
23
+ query: "",
24
+ status: {}, statusAt: {},
25
+ live: {}, // run -> /api/live snapshot
26
+ notices: [], // /api/notices, newest first
27
+ benchmarks: null, // /api/benchmarks
28
+ benchCharts: {}, // key -> Charts.Line
29
+ tags: {}, // run -> {version, list, set}
30
+ union: null, // {key, list, set, tree}
31
+ series: {}, // run -> {version, steps, walls, runStart, map, pending, queue, timer}
32
+ prefs: Object.assign({ xMode: "step", smoothing: 0, log: false, compMode: "count" }, JSON.parse(localStorage.getItem("prefs3") || "{}")),
33
+ cards: [],
34
+ io: null,
35
+ expanded: new Set(), expandedFor: null,
36
+ sel: {}, slots: {}, metric: {}, sort: {},
37
+ bdRun: null, compRun: null, comp: null,
38
+ modal: null,
39
+ failures: 0,
40
+ page: PAGE,
41
+ rendered: false,
42
+ };
43
+ const savePrefs = () => localStorage.setItem("prefs3", JSON.stringify(S.prefs));
44
+ const runs = () => S.cfg.runs;
45
+ const runCfg = (key) => runs().find((r) => r.key === key);
46
+ const runName = (key) => { const r = runCfg(key); return r ? r.label : key; };
47
+ /* A run's colour: config.json runs[].color_index into the palette, else its position. */
48
+ const runColor = (key) => { const i = runs().findIndex((r) => r.key === key); const r = runs()[i]; return Charts.palette()[(r && r.color_index != null ? r.color_index : Math.max(0, i)) % 8]; };
49
+ const fmtOf = (tag) => Fmt.forTag(tag, S.cfg.formats);
50
+ const descOf = (tag) => S.cfg.descriptions[tag] || S.cfg.descriptions[tag.replace(/\/\d+$/, "")] || "";
51
+ const lastOf = (arr) => { if (!arr) return null; for (let i = arr.length - 1; i >= 0; i--) if (arr[i] != null) return arr[i]; return null; };
52
+ const prevOf = (arr) => { if (!arr) return null; let seen = 0; for (let i = arr.length - 1; i >= 0; i--) if (arr[i] != null) { if (seen) return arr[i]; seen++; } return null; };
53
+ const st = (run) => S.status[run];
54
+ const isFinal = (run) => !!(st(run) && st(run).run.mode === "ended");
55
+ /* The run's "now": the server clock at the last status poll, advanced
56
+ locally since; for a finished run, its end. */
57
+ function vnow(run) {
58
+ const s = st(run);
59
+ if (!s) return null;
60
+ if (s.run.mode === "ended") return s.run.end;
61
+ return s.clock.now + (performance.now() - S.statusAt[run]) / 1000;
62
+ }
63
+
64
+ // ------------------------------------------------------------------ fetch
65
+ async function getJSON(url) {
66
+ const r = await fetch(url, { cache: "no-store" });
67
+ if (!r.ok) throw new Error(`${r.status} ${url}`);
68
+ const j = await r.json();
69
+ if (j.error) throw new Error(j.error);
70
+ return j;
71
+ }
72
+ async function loadStatus(run) {
73
+ const s = await getJSON(`api/status?run=${run}`);
74
+ S.status[run] = s;
75
+ S.statusAt[run] = performance.now();
76
+ return s;
77
+ }
78
+ async function loadLive(run) {
79
+ try { S.live[run] = await getJSON(`api/live?run=${run}`); } catch (e) { /* keep the last snapshot */ }
80
+ return S.live[run];
81
+ }
82
+ async function loadNotices() {
83
+ try {
84
+ const n = (await getJSON("api/notices")).notices || [];
85
+ const changed = JSON.stringify(n) !== JSON.stringify(S.notices);
86
+ S.notices = n;
87
+ return changed;
88
+ } catch (e) { return false; }
89
+ }
90
+ async function loadBenchmarks() {
91
+ try {
92
+ const b = (await getJSON("api/benchmarks")).benchmarks || [];
93
+ const changed = JSON.stringify(b) !== JSON.stringify(S.benchmarks);
94
+ S.benchmarks = b;
95
+ return changed;
96
+ } catch (e) { return false; }
97
+ }
98
+ /* Hand-filled benchmark scores per run and step (live/benchmarks.json); a
99
+ point appears when its step is on air. Step axis, linear, no smoothing. */
100
+ function renderBenchmarks() {
101
+ const host = $("benchmarks");
102
+ if (!host) return;
103
+ const list = S.benchmarks || [];
104
+ if (!list.length) { host.innerHTML = ""; host.classList.add("hidden"); return; }
105
+ host.classList.remove("hidden");
106
+ if (!host.dataset.built) {
107
+ host.innerHTML = `<div class="section-title">benchmarks</div><div class="bench-grid"></div>`;
108
+ host.dataset.built = "1";
109
+ }
110
+ const grid = host.querySelector(".bench-grid");
111
+ for (const c of Object.values(S.benchCharts)) c.destroy();
112
+ S.benchCharts = {};
113
+ grid.innerHTML = "";
114
+ for (const b of list) {
115
+ const format = b.format || "num2";
116
+ const card = el("article", "card chart-card bench");
117
+ card.innerHTML = `<div class="card-head"><div class="card-title">${esc(b.title)}${b.note ? ` <span class="muted">${esc(b.note)}</span>` : ""}</div><div class="val"></div></div><div class="chart-body"></div>`;
118
+ grid.appendChild(card);
119
+ const series = runs().filter((r) => b.results[r.key]).map((r) => {
120
+ const steps = Object.keys(b.results[r.key]).map(Number).sort((a, c) => a - c);
121
+ return { key: r.key, label: runName(r.key), color: runColor(r.key), steps, walls: steps, runStart: 0, values: steps.map((st) => b.results[r.key][String(st)]) };
122
+ });
123
+ card.querySelector(".val").innerHTML = series.map((sr) => `<div><i class="swatch" style="background:${sr.color}"></i><span class="dim">${esc(sr.label)}</span> ${Fmt.text(lastOf(sr.values), format)}</div>`).join("") || `<span class="muted">—</span>`;
124
+ const chart = new Charts.Line(card.querySelector(".chart-body"), { format, compact: true, legend: false, xMode: "step", smoothing: 0, log: false, points: true });
125
+ chart.setData({ series });
126
+ S.benchCharts[b.key] = chart;
127
+ }
128
+ }
129
+ /* Operator notices (developer announcements, restart reasons), newest first;
130
+ the block is absent when there are none. */
131
+ function renderNotices() {
132
+ const host = $("notices");
133
+ if (!host) return;
134
+ if (!S.notices.length) { host.innerHTML = ""; host.classList.add("hidden"); return; }
135
+ host.classList.remove("hidden");
136
+ const clockRun = runs()[0].key;
137
+ host.innerHTML = `<div class="card notices"><div class="card-head"><div class="card-title">notices</div></div>` +
138
+ S.notices.map((n) => `<div class="notice"><span class="tl-time" data-run="${esc(n.run || clockRun)}" data-t="${n.t}">${Fmt.ago(Math.max(0, (vnow(n.run || clockRun) || n.t) - n.t))}</span><span class="notice-text">${n.run ? `<span class="mono dim">${esc(runName(n.run))}</span> · ` : ""}${esc(n.text)}</span></div>`).join("") + `</div>`;
139
+ }
140
+ /* A report from before the latest trainer launch describes a process that
141
+ no longer exists. */
142
+ function beforeRestart(run, t) {
143
+ const s = st(run);
144
+ return !!(s && s.step.restarted_at != null && t != null && t < s.step.restarted_at);
145
+ }
146
+ /* Latest sampler report if it describes the step in progress: from the
147
+ current trainer process and for the round after the last completed step.
148
+ Age does not matter — the sampler goes quiet while the trainer trains,
149
+ and its last count is the state of that round. */
150
+ function liveLatest(run) {
151
+ const l = S.live[run], s = st(run);
152
+ if (!l || !l.latest || !l.latest.t || !s) return null;
153
+ if (beforeRestart(run, l.latest.t)) return null;
154
+ if (l.latest.step != null && l.latest.step <= s.step.last) return null;
155
+ return l.latest;
156
+ }
157
+ async function loadTags(run) {
158
+ const s = st(run);
159
+ const have = S.tags[run];
160
+ if (have && have.version === s.version) return have;
161
+ const t = await getJSON(`api/tags?run=${run}&v=${encodeURIComponent(s.version)}`);
162
+ S.tags[run] = { version: t.version, list: t.tags, set: new Set(t.tags) };
163
+ S.union = null;
164
+ return S.tags[run];
165
+ }
166
+ /* Union of every run's tags, as a list, a set and a folder tree. */
167
+ async function loadUnion() {
168
+ await Promise.all(runs().map((r) => loadTags(r.key)));
169
+ const key = runs().map((r) => S.tags[r.key].version).join("|");
170
+ if (S.union && S.union.key === key) return S.union;
171
+ const set = new Set();
172
+ for (const r of runs()) for (const t of S.tags[r.key].list) set.add(t);
173
+ const list = Array.from(set).sort();
174
+ S.union = { key, list, set, tree: buildTree(list) };
175
+ return S.union;
176
+ }
177
+ const hasTag = (run, tag) => S.tags[run] && S.tags[run].set.has(tag);
178
+
179
+ function store(run) {
180
+ const s = st(run);
181
+ let sc = S.series[run];
182
+ if (!sc || (s && sc.version !== s.version)) {
183
+ sc = S.series[run] = { version: s ? s.version : null, steps: null, walls: null, runStart: null, map: new Map(), pending: new Map(), queue: new Set(), timer: null };
184
+ }
185
+ return sc;
186
+ }
187
+ /* Batched, cached fetch. Resolves to the run's store; values in .map. */
188
+ function getSeries(run, tags) {
189
+ const sc = store(run);
190
+ const need = tags.filter((t) => !sc.map.has(t));
191
+ if (!need.length) return Promise.resolve(sc);
192
+ const waits = [];
193
+ for (const t of need) {
194
+ if (!sc.pending.has(t)) {
195
+ let resolve; const p = new Promise((r) => { resolve = r; }); p.resolve = resolve;
196
+ sc.pending.set(t, p);
197
+ sc.queue.add(t);
198
+ }
199
+ waits.push(sc.pending.get(t));
200
+ }
201
+ if (!sc.timer) sc.timer = setTimeout(() => flush(run), 30);
202
+ return Promise.all(waits).then(() => sc);
203
+ }
204
+ async function flush(run) {
205
+ const sc = store(run);
206
+ sc.timer = null;
207
+ const all = Array.from(sc.queue);
208
+ sc.queue.clear();
209
+ for (let i = 0; i < all.length; i += BATCH) {
210
+ const chunk = all.slice(i, i + BATCH);
211
+ try {
212
+ const r = await getJSON(`api/series?run=${run}&v=${encodeURIComponent(sc.version || "")}&tags=${encodeURIComponent(chunk.join(","))}`);
213
+ sc.steps = r.steps; sc.walls = r.walls; sc.runStart = r.run_start;
214
+ for (const t of chunk) sc.map.set(t, r.series[t] || null);
215
+ } catch (err) {
216
+ for (const t of chunk) sc.map.set(t, null);
217
+ }
218
+ for (const t of chunk) { const p = sc.pending.get(t); if (p) { p.resolve(); sc.pending.delete(t); } }
219
+ }
220
+ }
221
+ /* The same tag from every run that has it → chart series (run colours). */
222
+ async function runSeries(tag) {
223
+ const keys = runs().map((r) => r.key).filter((k) => hasTag(k, tag) || !S.tags[k]);
224
+ const stores = await Promise.all(keys.map((k) => getSeries(k, [tag])));
225
+ const out = [];
226
+ keys.forEach((k, i) => {
227
+ const sc = stores[i];
228
+ const vals = sc.map.get(tag);
229
+ if (!sc.steps || !vals) return;
230
+ out.push({ key: k, label: runName(k), color: runColor(k), steps: sc.steps, walls: sc.walls, runStart: sc.runStart, values: vals });
231
+ });
232
+ return out;
233
+ }
234
+
235
+ // ------------------------------------------------------------- tag tree
236
+ function buildTree(list) {
237
+ const root = { name: "", path: "", children: new Map(), leaves: [], total: 0 };
238
+ for (const tag of list) {
239
+ const parts = tag.split("/");
240
+ let node = root;
241
+ node.total++;
242
+ for (let i = 0; i < parts.length - 1; i++) {
243
+ const p = parts[i];
244
+ let c = node.children.get(p);
245
+ if (!c) { c = { name: p, path: node.path ? `${node.path}/${p}` : p, children: new Map(), leaves: [], total: 0 }; node.children.set(p, c); }
246
+ node = c;
247
+ node.total++;
248
+ }
249
+ node.leaves.push(tag);
250
+ }
251
+ return root;
252
+ }
253
+ function nodeAt(tree, path) {
254
+ if (!path) return tree;
255
+ let node = tree;
256
+ for (const p of path.split("/")) { node = node.children.get(p); if (!node) return null; }
257
+ return node;
258
+ }
259
+ const sortedChildren = (node) => Array.from(node.children.values()).sort((a, b) => a.name.localeCompare(b.name, undefined, { numeric: true }));
260
+ /* Children c of prefix such that `${prefix}/${c}/${metric}` exists in the union (or the run). */
261
+ function childrenWith(prefix, metric, run) {
262
+ const node = nodeAt(S.union.tree, prefix);
263
+ if (!node) return [];
264
+ const has = (t) => run ? hasTag(run, t) : S.union.set.has(t);
265
+ return sortedChildren(node).filter((c) => has(`${prefix}/${c.name}/${metric}`)).map((c) => c.name);
266
+ }
267
+
268
+ // -------------------------------------------------------------- controls
269
+ function seg(pref, options, onChange, getVal, setVal) {
270
+ const wrap = el("div", "seg");
271
+ if (pref) wrap.dataset.pref = pref;
272
+ const get = getVal || (() => S.prefs[pref]);
273
+ const set = setVal || ((v) => { S.prefs[pref] = v; savePrefs(); });
274
+ for (const [val, label] of options) {
275
+ const b = el("button", null, label);
276
+ b.dataset.val = String(val);
277
+ b.addEventListener("click", () => { set(val); wrap.querySelectorAll("button").forEach((x) => x.classList.toggle("active", x.dataset.val === String(val))); (onChange || applyPrefs)(); });
278
+ b.classList.toggle("active", String(get()) === String(val));
279
+ wrap.appendChild(b);
280
+ }
281
+ return wrap;
282
+ }
283
+ function slider() {
284
+ const wrap = el("div", "slider");
285
+ wrap.dataset.pref = "smoothing";
286
+ wrap.innerHTML = `<span class="ctl-label">smoothing</span><input type="range" min="0" max="0.95" step="0.05"><output></output>`;
287
+ const input = wrap.querySelector("input"), out = wrap.querySelector("output");
288
+ const sync = () => { input.value = S.prefs.smoothing; out.textContent = S.prefs.smoothing ? S.prefs.smoothing.toFixed(2) : "off"; };
289
+ input.addEventListener("input", () => { S.prefs.smoothing = parseFloat(input.value); savePrefs(); sync(); applyPrefs(); });
290
+ sync();
291
+ return wrap;
292
+ }
293
+ function legendRow() {
294
+ const lg = el("span", "legend-inline");
295
+ lg.innerHTML = runs().map((r) => `<i class="swatch" style="background:${runColor(r.key)}"></i>${esc(runName(r.key))}`).join("");
296
+ return lg;
297
+ }
298
+ function controlsRow(extra, opts) {
299
+ const row = el("div", "controls");
300
+ if (extra) row.append(...extra.filter(Boolean));
301
+ row.append(seg("xMode", [["step", "step"], ["time", "time"]]), seg("log", [[false, "linear"], [true, "log"]]), slider());
302
+ if (!(opts && opts.noLegend)) row.appendChild(legendRow());
303
+ return row;
304
+ }
305
+ function applyPrefs() {
306
+ const o = { xMode: S.prefs.xMode, smoothing: S.prefs.smoothing, log: S.prefs.log };
307
+ for (const c of S.cards) if (c.chart) c.chart.setOptions(o);
308
+ if (S.modal && S.modal.chart) S.modal.chart.setOptions(o);
309
+ document.querySelectorAll(".seg[data-pref]").forEach((w) => { const p = w.dataset.pref; w.querySelectorAll("button").forEach((b) => b.classList.toggle("active", b.dataset.val === String(S.prefs[p]))); });
310
+ }
311
+
312
+ // ------------------------------------------------------------ chart card
313
+ function clearCards() {
314
+ for (const c of S.cards) if (c.chart) c.chart.destroy();
315
+ S.cards = [];
316
+ for (const c of Object.values(S.benchCharts)) c.destroy();
317
+ S.benchCharts = {};
318
+ if (S.io) S.io.disconnect();
319
+ S.io = new IntersectionObserver((entries) => {
320
+ for (const e of entries) if (e.isIntersecting) { const c = e.target.__card; if (c && !c.loaded) c.load(); }
321
+ }, { rootMargin: "300px 0px" });
322
+ }
323
+ function tagHTML(tag, leafOnly) {
324
+ const i = tag.lastIndexOf("/");
325
+ if (leafOnly || i < 0) return esc(i < 0 ? tag : tag.slice(i + 1));
326
+ return `<span class="dim">${esc(tag.slice(0, i + 1))}</span>${esc(tag.slice(i + 1))}`;
327
+ }
328
+ /* One lazily-loaded chart for a tag, every run overlaid. The value column
329
+ shows each run's latest value. */
330
+ function chartCard(tag, opts) {
331
+ opts = opts || {};
332
+ const format = fmtOf(tag);
333
+ const card = el("article", `card chart-card${opts.large ? " large" : ""}`);
334
+ card.innerHTML = `<div class="card-head"><div class="tag" title="${esc(tag)}">${tagHTML(tag, opts.leafOnly)}</div><div class="val"></div></div>
335
+ ${opts.desc ? `<div class="desc">${esc(opts.desc)}</div>` : ""}<div class="chart-body"></div>`;
336
+ card.querySelector(".tag").addEventListener("click", () => openChart(tag));
337
+ const rec = { el: card, tag, format, chart: null, loaded: false };
338
+ rec.load = async () => {
339
+ rec.loaded = true;
340
+ const series = await runSeries(tag);
341
+ if (!card.isConnected) return;
342
+ if (!rec.chart) rec.chart = new Charts.Line(card.querySelector(".chart-body"), { format, compact: !opts.large, legend: false, xMode: S.prefs.xMode, smoothing: S.prefs.smoothing, log: S.prefs.log });
343
+ rec.chart.setData({ series });
344
+ card.querySelector(".val").innerHTML = series.map((s) => {
345
+ const last = lastOf(s.values), prev = prevOf(s.values), d = Fmt.delta(last, prev, format);
346
+ return `<div><i class="swatch" style="background:${s.color}"></i>${last == null ? "—" : Fmt.text(last, format)}${d ? Fmt.deltaHTML(d, null, "") : ""}</div>`;
347
+ }).join("") || `<span class="muted">—</span>`;
348
+ };
349
+ card.__card = rec;
350
+ S.cards.push(rec);
351
+ S.io.observe(card);
352
+ return card;
353
+ }
354
+
355
+ // --------------------------------------------------------------- overview
356
+ async function renderOverview(root) {
357
+ root.innerHTML = `<div id="notices" class="hidden"></div>`;
358
+ renderNotices();
359
+ for (const r of runs()) root.appendChild(statusBlock(r.key));
360
+ root.appendChild(Object.assign(el("div", "section hidden"), { id: "benchmarks" }));
361
+ renderBenchmarks();
362
+ root.appendChild(controlsRow());
363
+ const grid = el("div", "chart-grid");
364
+ root.appendChild(grid);
365
+ for (const tag of S.cfg.pins) grid.appendChild(chartCard(tag));
366
+ for (const r of runs()) if (!isFinal(r.key)) {
367
+ const sec = el("div", "section");
368
+ sec.innerHTML = `<div class="section-title">dynamic sampler <span class="muted">${esc(runName(r.key))}</span></div>`;
369
+ const row = el("div", "live-row");
370
+ row.dataset.run = r.key;
371
+ row.innerHTML = `<article class="card feed"><div class="card-head"><div class="card-title">feed</div><div class="card-note" data-f="log-time"></div></div><div class="feed-list" data-f="feed"></div></article>
372
+ <article class="card sources"><div class="card-head"><div class="card-title" data-f="src-title">data sources</div><div class="card-note" data-f="src-note"></div></div><div class="table-wrap" data-f="src-table"></div></article>`;
373
+ sec.appendChild(row);
374
+ root.appendChild(sec);
375
+ renderLive(r.key);
376
+ }
377
+
378
+ const comp = el("div", "section");
379
+ comp.innerHTML = `<div class="section-title">batch composition <span class="muted">what each step's samples are made of</span></div><div id="comp"></div>`;
380
+ root.appendChild(comp);
381
+
382
+ const done = runs().filter((r) => isFinal(r.key));
383
+ if (done.length) {
384
+ const tl = el("div", "section");
385
+ tl.innerHTML = `<div class="section-title">timeline <span class="muted">completed runs · most recent first</span></div><div class="timelines">${done.map((r) => `<div class="card timeline" id="tl-${r.key}"></div>`).join("")}</div>`;
386
+ root.appendChild(tl);
387
+ for (const r of done) renderTimeline($(`tl-${r.key}`), r.key);
388
+ }
389
+ tick();
390
+ await loadUnion();
391
+ if (!root.isConnected || S.view !== "overview") return;
392
+ await renderComposition($("comp"));
393
+ }
394
+
395
+ function statusBlock(run) {
396
+ const s = st(run), rc = runCfg(run);
397
+ const final = s.run.mode === "ended";
398
+ const block = el("div", "status");
399
+ block.dataset.run = run;
400
+ block.innerHTML = `
401
+ <div class="status-line">
402
+ <span class="status-name"><i class="swatch" style="background:${runColor(run)}"></i><b class="mono">${esc(rc.label)}</b><span class="muted state">${final ? "completed" : "in progress"}</span></span>
403
+ <span class="big" data-f="step"></span>
404
+ <span class="clock-col"><span class="mono" data-f="clock"></span><span class="started" data-f="started"></span></span>
405
+ <span class="phase" data-f="phase"><span class="phase-track"><span class="phase-fill"></span><span class="phase-divider"></span></span><span class="phase-text"></span></span>
406
+ </div>
407
+ <div class="kv" data-f="kv"></div>`;
408
+ return block;
409
+ }
410
+
411
+ function renderKV(run) {
412
+ const block = document.querySelector(`.status[data-run="${run}"]`);
413
+ if (!block) return;
414
+ const s = st(run), t = s.totals || {}, h = s.headline || {};
415
+ const final = s.run.mode === "ended";
416
+ const hf = h.tag ? fmtOf(h.tag) : "ratio";
417
+ const hd = Fmt.delta(h.last, h.first, hf); // total row: change since the first step
418
+ // rollouts per prompt: sequences trained this step ÷ prompts in the batch (16 on every step so far)
419
+ const nPer = t.trained_step && t.prompts_per_step && Math.abs(t.trained_step / t.prompts_per_step - Math.round(t.trained_step / t.prompts_per_step)) < 1e-6 ? Math.round(t.trained_step / t.prompts_per_step) : null;
420
+ const cells = [
421
+ [`${h.tag || "headline"}${h.first_step != null && s.step.last > h.first_step ? ` · Δ vs step ${h.first_step}` : ""}`, h.last == null ? "—" : `${Fmt.text(h.last, hf)}${hd ? ` <span class="delta ${hd.dir === "flat" ? "flat" : ""}">${hd.dir === "up" ? "▲" : hd.dir === "down" ? "▼" : ""}${hd.text}</span>` : ""}`],
422
+ [final ? "total cost" : "cost so far", `<span data-f="cost">—</span>`],
423
+ [`tokens · step ${s.step.last || "—"}`, Fmt.compact(t.tokens_step, 3)],
424
+ ["tokens · total", Fmt.compact(t.tokens_cum, 3)],
425
+ ["samples trained", Fmt.compact(t.trained_cum, 3)],
426
+ ["train batch size × n", nPer ? `${Fmt.int(t.prompts_per_step)} × ${nPer}<span class="u">seqs</span>` : `${Fmt.int(t.prompts_per_step)}<span class="u">prompts</span>`],
427
+ ];
428
+ block.querySelector('[data-f="kv"]').innerHTML = cells.map(([k, v]) => `<div><div class="k">${esc(k)}</div><div class="v">${v}</div></div>`).join("");
429
+ }
430
+
431
+ // ------------------------------------------------------------------ live
432
+ /* Feed = sampler reports + step completions + restarts, newest first; plus
433
+ the per-source table of the latest report. */
434
+ function renderLive(run) {
435
+ const row = document.querySelector(`.live-row[data-run="${run}"]`);
436
+ if (!row) return;
437
+ const l = S.live[run], s = st(run);
438
+ const now = vnow(run);
439
+ const feed = row.querySelector('[data-f="feed"]');
440
+ // step of a sampler report: from the log's own step marks, else the last
441
+ // completed step before it (from the metrics timeline) + 1
442
+ const done = (s.events || []).filter((e) => e.kind === "step").map((e) => e.t).sort((a, b) => a - b);
443
+ const stepAt = (t) => { let n = 0; for (const d of done) if (d <= t) n++; else break; return n + 1; };
444
+ const items = [];
445
+ if (l) for (const e of l.entries) items.push({ t: e.t, kind: "rew", e: e.step ? e : { ...e, step: e.t ? stepAt(e.t) : null } });
446
+ for (const e of (s.events || [])) items.push({ t: e.t, kind: e.kind, e });
447
+ items.sort((a, b) => (b.t || 0) - (a.t || 0));
448
+ const hf = s.headline && s.headline.tag ? fmtOf(s.headline.tag) : "ratio";
449
+ feed.innerHTML = items.slice(0, 40).map((it) => {
450
+ const when = `<span class="tl-time" data-run="${run}" data-t="${it.t || ""}">${it.t ? Fmt.ago(now - it.t) : ""}</span>`;
451
+ if (it.kind === "rew") {
452
+ const e = it.e;
453
+ return `<div class="tl-item rew">${when}<span class="tl-text">accepted <b>${Fmt.int(e.accept)}/${Fmt.int(e.target)}</b> · judged ${Fmt.int(e.judged)} · pass ${e.passrate.toFixed(3)} <span class="muted">(n=${Fmt.int(e.n)})</span> · remaining ${Fmt.int(e.remain)} <span class="muted">+${Fmt.int(e.remain_partial)} partial +${Fmt.int(e.remain_seq)} rewarding</span> · prewarm ${Fmt.int(e.prewarm)}</span><span class="tl-meta">${e.step ? `step ${e.step}` : ""}</span></div>`;
454
+ }
455
+ if (it.kind === "step") {
456
+ const e = it.e;
457
+ const d = e.delta != null ? `<span class="delta">${e.delta > 0 ? "▲" : e.delta < 0 ? "▼" : ""}${Math.abs(e.delta).toFixed(3)}</span>` : "";
458
+ return `<div class="tl-item step">${when}<span class="tl-text"><b>step ${e.step} done${e.redo ? " again" : ""}</b> · ${esc(s.headline.tag || "")} ${e.value != null ? Fmt.text(e.value, hf) : "—"} ${d}</span><span class="tl-meta">${e.tokens != null ? `${Fmt.compact(e.tokens, 3)} tok` : ""}</span></div>`;
459
+ }
460
+ if (it.kind === "end") return `<div class="tl-item restart">${when}<span class="tl-text">run ended</span><span class="tl-meta"></span></div>`;
461
+ return `<div class="tl-item restart">${when}<span class="tl-text">trainer restarted</span><span class="tl-meta"></span></div>`;
462
+ }).join("") || `<div class="muted">no sampler reports yet</div>`;
463
+ row.querySelector('[data-f="log-time"]').textContent = l && l.log_time && now != null ? `log ${Fmt.ago(Math.max(0, now - l.log_time))}`.replace("just now", "up to date") : "";
464
+
465
+ const latest = l && l.latest;
466
+ const title = row.querySelector('[data-f="src-title"]'), note = row.querySelector('[data-f="src-note"]'), tbl = row.querySelector('[data-f="src-table"]');
467
+ if (!latest) { title.textContent = "data sources"; note.textContent = ""; tbl.innerHTML = `<div class="muted">no sampler report yet</div>`; return; }
468
+ const stepNo = latest.step || (latest.t ? stepAt(latest.t) : s.step.last + 1);
469
+ const stale = beforeRestart(run, latest.t);
470
+ title.innerHTML = `step ${stepNo} · accepted <span class="mono">${Fmt.int(latest.accept)}/${Fmt.int(latest.target)}</span>${stale ? ` <span class="muted">· last report before the restart</span>` : ""}`;
471
+ note.textContent = latest.t ? Fmt.ago(now - latest.t) : "";
472
+ const rows = Object.entries(latest.ds).map(([name, v]) => ({ name, acc: v[0], tgt: v[1], j: v[2], r: v[3] })).sort((a, b) => b.tgt - a.tgt || b.acc - a.acc);
473
+ const inflight = rows.reduce((a, r) => a + (r.r || 0), 0);
474
+ tbl.innerHTML = `<table class="tbl src"><thead><tr><th>source</th><th>accepted / target</th><th></th><th>remaining</th><th>judged</th><th>in flight</th></tr></thead><tbody>
475
+ ${rows.map((r) => { const pct = r.tgt ? Math.min(1, r.acc / r.tgt) : 0; return `<tr><td>${esc(r.name)}</td><td>${Fmt.int(r.acc)} / ${Fmt.int(r.tgt)}</td><td class="bar"><div class="row-bar"><div class="row-bar-fill" style="width:${pct * 100}%"></div></div></td><td>${Fmt.int(Math.max(0, r.tgt - r.acc))}</td><td class="${r.j == null ? "dim" : ""}">${r.j == null ? "—" : Fmt.int(r.j)}</td><td class="${r.r == null ? "dim" : ""}">${r.r == null ? "—" : Fmt.int(r.r)}</td></tr>`; }).join("")}
476
+ <tr class="total"><td>total</td><td>${Fmt.int(latest.accept)} / ${Fmt.int(latest.target)}</td><td></td><td>${Fmt.int(Math.max(0, latest.target - latest.accept))}</td><td>${Fmt.int(latest.judged)}</td><td>${Fmt.int(inflight)}</td></tr>
477
+ </tbody></table>`;
478
+ }
479
+
480
+ // ----------------------------------------------------------- composition
481
+ async function renderComposition(host) {
482
+ const presets = S.cfg.compositions || [];
483
+ if (!presets.length) { host.innerHTML = ""; return; }
484
+ const cp = presets.find((p) => p.key === S.comp) || presets[0];
485
+ S.comp = cp.key;
486
+ if (!S.compRun || !runCfg(S.compRun)) S.compRun = runs()[0].key;
487
+ const run = S.compRun;
488
+ host.innerHTML = "";
489
+ const ctl = el("div", "controls");
490
+ ctl.append(
491
+ el("span", "ctl-label", "by"),
492
+ seg(null, presets.map((p) => [p.key, p.label]), () => renderComposition(host), () => S.comp, (v) => { S.comp = v; }),
493
+ el("span", "ctl-label", "run"),
494
+ seg(null, runs().map((r) => [r.key, runName(r.key)]), () => renderComposition(host), () => S.compRun, (v) => { S.compRun = v; }),
495
+ seg("compMode", [["count", "count"], ["share", "share"]], () => renderComposition(host)),
496
+ );
497
+ host.appendChild(ctl);
498
+ const layout = el("div", "comp-layout");
499
+ host.appendChild(layout);
500
+ if (cp.derive === "trained") await renderTrainedComposition(layout, cp, run);
501
+ else await renderMetricComposition(layout, cp, run);
502
+ }
503
+
504
+ /* Trained prompts per step per category. A source's pool of accepted
505
+ prompts obeys held(t) = held(t−1) + accepted(t) − trained(t) − expired(t),
506
+ so trained(t) ≈ held(t−1) + accepted(t) − held(t) (dynsam/<src>/num_accepted/*);
507
+ summed over sources it equals the train batch. On the first step after
508
+ a (re)start `held` is reported before consumption, so those steps fall
509
+ back to carryover + a proportional share of the fresh accepts. */
510
+ async function renderTrainedComposition(layout, cp, run) {
511
+ const groups = cp.groups || S.cfg.categories || [];
512
+ const items = groups.flatMap((g) => childrenWith(`${cp.prefix}/${g}`, "num_accepted/step", run).map((d) => ({ g, key: `${g}/${d}` })));
513
+ layout.innerHTML = `<article class="card"><div class="card-head"><div class="card-title">trained prompts per step, by category</div><div class="card-note">${items.length} sources · derived from ${esc(cp.prefix)}/*/num_accepted</div></div><div class="comp-chart"></div></article><article class="card comp-table"></article>`;
514
+ if (!items.length) { layout.querySelector(".comp-chart").innerHTML = `<div class="muted">no data</div>`; return; }
515
+ const tags = items.flatMap((it) => ["step", "held", "carryover"].map((k) => `${cp.prefix}/${it.key}/num_accepted/${k}`));
516
+ tags.push("dynsam/num_target");
517
+ const sc = await getSeries(run, tags);
518
+ if (!layout.isConnected) return;
519
+ const n = sc.steps.length;
520
+ const get = (it, k) => sc.map.get(`${cp.prefix}/${it.key}/num_accepted/${k}`) || [];
521
+ const bszSeries = sc.map.get("dynsam/num_target") || [];
522
+ const trained = items.map(() => new Array(n).fill(0));
523
+ const approx = new Array(n).fill(false);
524
+ for (let i = 0; i < n; i++) {
525
+ const bsz = bszSeries[i] || (st(run).totals && st(run).totals.prompts_per_step) || 0;
526
+ let sum = 0;
527
+ const rec = items.map((it, k) => { const a = get(it, "step")[i] || 0, h = get(it, "held")[i] || 0, hp = i ? (get(it, "held")[i - 1] || 0) : null; const v = hp == null ? null : Math.max(0, hp + a - h); if (v != null) sum += v; return v; });
528
+ const sane = i > 0 && bsz && Math.abs(sum - bsz) <= 0.05 * bsz;
529
+ if (sane) rec.forEach((v, k) => { trained[k][i] = v; });
530
+ else {
531
+ approx[i] = true;
532
+ const carry = items.map((it) => get(it, "carryover")[i] || 0), acc = items.map((it) => get(it, "step")[i] || 0);
533
+ const fresh = Math.max(0, bsz - carry.reduce((x, y) => x + y, 0)), accSum = acc.reduce((x, y) => x + y, 0) || 1;
534
+ items.forEach((it, k) => { trained[k][i] = carry[k] + acc[k] * fresh / accSum; });
535
+ }
536
+ }
537
+ const pal = Charts.palette();
538
+ const series = groups.map((g, gi) => ({ key: g, label: g, color: pal[gi % pal.length],
539
+ values: Array.from({ length: n }, (_, i) => items.reduce((a, it, k) => a + (it.g === g ? trained[k][i] : 0), 0)) }));
540
+ const chart = new Charts.Stacked(layout.querySelector(".comp-chart"), { mode: S.prefs.compMode, xMode: S.prefs.xMode });
541
+ chart.setData({ steps: sc.steps, walls: sc.walls, runStart: sc.runStart, series });
542
+ S.cards.push({ chart, loaded: true, load() {} });
543
+
544
+ const last = n - 1, prev = n - 2;
545
+ const tot = (i) => series.reduce((a, sr) => a + sr.values[i], 0);
546
+ const total = tot(last), prevTotal = prev >= 0 ? tot(prev) : 0;
547
+ const bsz = bszSeries[last] || (st(run).totals && st(run).totals.prompts_per_step);
548
+ const tbl = layout.querySelector(".comp-table");
549
+ tbl.innerHTML = `<div class="card-head"><div class="card-title">step ${sc.steps[last]}</div><div class="card-note">${approx[last] ? "≈ " : ""}${Fmt.int(total)} prompts${bsz ? ` · train batch ${Fmt.int(bsz)}` : ""}</div></div>
550
+ <div class="table-wrap"><table class="tbl"><thead><tr><th>category</th><th>sources</th><th>prompts</th><th>share</th><th>Δ share</th></tr></thead><tbody>
551
+ ${series.map((sr, gi) => { const v = sr.values[last], sh = total ? v / total : 0, ps = prevTotal ? sr.values[prev] / prevTotal : null, d = ps == null ? null : sh - ps;
552
+ return `<tr><td><i class="swatch" style="background:${sr.color}"></i>${esc(sr.label)}</td><td class="dim">${items.filter((it) => it.g === sr.key).length}</td><td>${Fmt.int(v)}</td><td>${(sh * 100).toFixed(1)}%</td><td class="${d == null ? "dim" : ""}">${d == null ? "—" : `${d > 0 ? "▲" : d < 0 ? "▼" : ""}${Math.abs(d * 100).toFixed(1)} pt`}</td></tr>`; }).join("")}
553
+ <tr class="total"><td>total</td><td class="dim">${items.length}</td><td>${Fmt.int(total)}</td><td>100%</td><td></td></tr>
554
+ </tbody></table></div>${approx.some(Boolean) ? `<div class="muted" style="margin-top:8px;font-size:11.5px">≈ steps right after a restart report the pool before consumption; there the split is carryover + a proportional share of fresh accepts.</div>` : ""}`;
555
+ }
556
+
557
+ async function renderMetricComposition(layout, cp, run) {
558
+ let items = childrenWith(cp.prefix, cp.metric, run);
559
+ if (cp.expand) items = items.flatMap((c) => { const sub = childrenWith(`${cp.prefix}/${c}`, cp.metric, run).filter((g) => g !== "harness"); return sub.length ? sub.map((g) => `${c}/${g}`) : [c]; });
560
+ layout.innerHTML = `<article class="card"><div class="card-head"><div class="card-title mono">${esc(cp.prefix)}/*/${esc(cp.metric)}</div><div class="card-note">${items.length} sources · ${esc(cp.unit || "")} per step</div></div><div class="comp-chart"></div></article><article class="card comp-table"></article>`;
561
+ if (!items.length) { layout.querySelector(".comp-chart").innerHTML = `<div class="muted">no data</div>`; return; }
562
+ const tags = items.map((c) => `${cp.prefix}/${c}/${cp.metric}`);
563
+ const sc = await getSeries(run, tags);
564
+ if (!layout.isConnected) return;
565
+ const n = sc.steps.length;
566
+ const rows = items.map((c, i) => ({ c, vals: sc.map.get(tags[i]) || [], last: lastOf(sc.map.get(tags[i])), prev: prevOf(sc.map.get(tags[i])) }));
567
+ rows.sort((a, b) => (b.last || 0) - (a.last || 0));
568
+ const shown = rows.length > MAX_SERIES ? rows.slice(0, MAX_SERIES - 1) : rows;
569
+ const tail = rows.length > MAX_SERIES ? rows.slice(MAX_SERIES - 1) : [];
570
+ const pal = Charts.palette();
571
+ const series = shown.map((r, i) => ({ key: r.c, label: r.c, color: pal[i], values: r.vals.map((v) => v || 0) }));
572
+ if (tail.length) series.push({ key: "_other", label: `other (${tail.length})`, color: getComputedStyle(document.documentElement).getPropertyValue("--baseline").trim(), values: Array.from({ length: n }, (_, i) => tail.reduce((a, r) => a + (r.vals[i] || 0), 0)) });
573
+ const chart = new Charts.Stacked(layout.querySelector(".comp-chart"), { mode: S.prefs.compMode, xMode: S.prefs.xMode });
574
+ chart.setData({ steps: sc.steps, walls: sc.walls, runStart: sc.runStart, series });
575
+ S.cards.push({ chart, loaded: true, load() {} });
576
+ const total = rows.reduce((a, r) => a + (r.last || 0), 0), prevTotal = rows.reduce((a, r) => a + (r.prev || 0), 0);
577
+ const tbl = layout.querySelector(".comp-table");
578
+ tbl.innerHTML = `<div class="card-head"><div class="card-title">step ${sc.steps[n - 1]}</div><div class="card-note">${Fmt.int(total)} ${esc(cp.unit || "")}</div></div>
579
+ <div class="table-wrap"><table class="tbl"><thead><tr><th>source</th><th>${esc(cp.unit || "n")}</th><th>share</th><th>Δ share</th></tr></thead><tbody>
580
+ ${rows.map((r, i) => { const sh = total ? (r.last || 0) / total : 0, ps = prevTotal ? (r.prev || 0) / prevTotal : null, d = ps == null ? null : sh - ps; const color = i < shown.length ? pal[i] : "var(--surface-3)";
581
+ return `<tr><td><i class="swatch" style="background:${color}"></i>${esc(r.c)}</td><td>${Fmt.int(r.last)}</td><td>${(sh * 100).toFixed(1)}%</td><td class="${d == null ? "dim" : ""}">${d == null ? "—" : `${d > 0 ? "▲" : d < 0 ? "▼" : ""}${Math.abs(d * 100).toFixed(1)} pt`}</td></tr>`; }).join("")}
582
+ </tbody></table></div>`;
583
+ }
584
+
585
+ function renderTimeline(host, run) {
586
+ const s = st(run);
587
+ const ev = (s.events || []).slice().reverse();
588
+ const hf = s.headline && s.headline.tag ? fmtOf(s.headline.tag) : "ratio";
589
+ const now = vnow(run);
590
+ const final = s.run.mode === "ended";
591
+ // a live run reads "2h ago"; a finished run reads as run time at the event
592
+ const when = (e) => final ? `<span class="tl-time">T+${Fmt.clock(e.t - s.run.start).replace(/:\d\d$/, "")}</span>`
593
+ : `<span class="tl-time" data-run="${run}" data-t="${e.t}">${Fmt.ago(now - e.t)}</span>`;
594
+ host.innerHTML = `<div class="card-head"><div class="card-title mono">${esc(runName(run))}</div><div class="card-note">${final ? "completed" : ""}</div></div>` +
595
+ (ev.slice(0, 14).map((e) => {
596
+ if (e.kind === "step") {
597
+ const d = e.delta != null ? `<span class="delta">${e.delta > 0 ? "▲" : e.delta < 0 ? "▼" : ""}${Math.abs(e.delta).toFixed(3)}</span>` : "";
598
+ return `<div class="tl-item">${when(e)}<span class="tl-text">step ${e.step}${e.redo ? " again" : ""} · ${esc(s.headline.tag || "")} ${e.value != null ? Fmt.text(e.value, hf) : "—"} ${d}</span><span class="tl-meta">${e.tokens != null ? `${Fmt.compact(e.tokens, 3)} tok` : ""}</span></div>`;
599
+ }
600
+ if (e.kind === "end") return `<div class="tl-item restart">${when(e)}<span class="tl-text">run ended</span><span class="tl-meta"></span></div>`;
601
+ return `<div class="tl-item restart">${when(e)}<span class="tl-text">trainer restarted</span><span class="tl-meta"></span></div>`;
602
+ }).join("") || `<div class="muted">waiting for the first step</div>`);
603
+ }
604
+
605
+ // ---------------------------------------------------------------- metrics
606
+ async function renderMetrics(root) {
607
+ root.innerHTML = `<div id="m-controls"></div><div class="metrics-layout"><nav class="tree" id="tree"></nav><div id="m-main"><div class="muted">loading tags…</div></div></div>`;
608
+ const search = el("input", "search");
609
+ search.type = "search"; search.placeholder = "filter tags (substring or /regex/)"; search.value = S.query;
610
+ let t; search.addEventListener("input", () => { clearTimeout(t); t = setTimeout(() => { S.query = search.value.trim(); S.page = PAGE; renderMetricsMain(); }, 150); });
611
+ $("m-controls").replaceWith(controlsRow([search]));
612
+ await loadUnion();
613
+ if (!root.isConnected || S.view !== "metrics") return;
614
+ renderTree();
615
+ renderMetricsMain();
616
+ }
617
+ function renderTree() {
618
+ const host = $("tree");
619
+ if (!host) return;
620
+ host.innerHTML = "";
621
+ if (S.expandedFor !== S.path) { for (const p of ancestors(S.path)) S.expanded.add(p); S.expandedFor = S.path; }
622
+ const build = (node) => {
623
+ const frag = document.createDocumentFragment();
624
+ for (const c of sortedChildren(node)) {
625
+ const has = c.children.size > 0;
626
+ const open = S.expanded.has(c.path);
627
+ const row = el("div", `tree-node${S.path === c.path ? " active" : ""}`);
628
+ row.innerHTML = `<span class="tw">${has ? (open ? "▾" : "▸") : ""}</span><span class="nm">${esc(c.name)}</span><span class="cnt">${c.total}</span>`;
629
+ row.querySelector(".tw").addEventListener("click", (e) => { e.stopPropagation(); if (S.expanded.has(c.path)) S.expanded.delete(c.path); else S.expanded.add(c.path); renderTree(); });
630
+ row.addEventListener("click", () => { location.hash = `#metrics/${c.path}`; });
631
+ frag.appendChild(row);
632
+ if (has && open) { const kids = el("div", "tree-children"); kids.appendChild(build(c)); frag.appendChild(kids); }
633
+ }
634
+ return frag;
635
+ };
636
+ host.appendChild(build(S.union.tree));
637
+ }
638
+ function ancestors(path) {
639
+ const out = [];
640
+ if (!path) return out;
641
+ const parts = path.split("/");
642
+ for (let i = 1; i <= parts.length; i++) out.push(parts.slice(0, i).join("/"));
643
+ return out;
644
+ }
645
+ function renderMetricsMain() {
646
+ const main = $("m-main");
647
+ if (!S.union || !main) return;
648
+ for (const c of S.cards) if (c.chart) c.chart.destroy();
649
+ S.cards = [];
650
+ main.innerHTML = "";
651
+ let leaves, folders = [], title;
652
+ if (S.query) {
653
+ let test;
654
+ const m = S.query.match(/^\/(.+)\/([a-z]*)$/);
655
+ try { test = m ? new RegExp(m[1], m[2]) : null; } catch (e) { test = null; }
656
+ const q = S.query.toLowerCase();
657
+ leaves = S.union.list.filter((t) => test ? test.test(t) : t.toLowerCase().includes(q));
658
+ title = `<div class="crumbs"><span class="cur">${leaves.length} tags match</span> <span class="muted">${esc(S.query)}</span></div>`;
659
+ } else {
660
+ const node = nodeAt(S.union.tree, S.path);
661
+ if (!node) { main.innerHTML = `<div class="muted">no such path: ${esc(S.path)}</div>`; return; }
662
+ leaves = node.leaves.slice().sort();
663
+ folders = sortedChildren(node);
664
+ const parts = S.path ? S.path.split("/") : [];
665
+ title = `<div class="crumbs"><a data-p="">all</a>${parts.map((p, i) => `<span class="sepc">/</span>${i === parts.length - 1 ? `<span class="cur">${esc(p)}</span>` : `<a data-p="${esc(parts.slice(0, i + 1).join("/"))}">${esc(p)}</a>`}`).join("")}<span class="muted">&nbsp; ${node.total} tags</span></div>`;
666
+ }
667
+ main.innerHTML = title;
668
+ main.querySelectorAll(".crumbs a").forEach((a) => a.addEventListener("click", () => { location.hash = `#metrics/${a.dataset.p}`; }));
669
+ if (folders.length) {
670
+ const fl = el("div", "folders");
671
+ for (const f of folders) { const b = el("button", "folder", `${esc(f.name)}/<span class="cnt">${f.total}</span>`); b.addEventListener("click", () => { location.hash = `#metrics/${f.path}`; }); fl.appendChild(b); }
672
+ main.appendChild(fl);
673
+ }
674
+ const grid = el("div", "chart-grid");
675
+ main.appendChild(grid);
676
+ const show = leaves.slice(0, S.page);
677
+ for (const tag of show) grid.appendChild(chartCard(tag, { leafOnly: !S.query }));
678
+ if (leaves.length > show.length) {
679
+ const more = el("div", "more", `<button>show ${Math.min(PAGE, leaves.length - show.length)} more <span class="muted">(${leaves.length - show.length} left)</span></button>`);
680
+ more.querySelector("button").addEventListener("click", () => { S.page += PAGE; renderMetricsMain(); });
681
+ main.appendChild(more);
682
+ }
683
+ if (!leaves.length && !folders.length) main.appendChild(el("div", "muted", "nothing here"));
684
+ }
685
+
686
+ // ------------------------------------------------------------------ about
687
+ function renderAbout(root) {
688
+ const linkify = (t) => esc(t)
689
+ .replace(/(https?:\/\/[^\s)]+)/g, (u) => `<a class="link" href="${u}" target="_blank" rel="noopener">${u}</a>`)
690
+ .replace(/(^|\s)(@[A-Za-z0-9_]+)/g, (m, sp, h) => `${sp}<a class="link" href="${esc((S.cfg.social && S.cfg.social.url) || `https://x.com/${h.slice(1)}`)}" target="_blank" rel="noopener">${h}</a>`);
691
+ root.innerHTML = `<div class="page-head"><div><h1 class="page-title">about</h1></div></div><div class="prose">${(S.cfg.about || []).map((t) => `<p>${linkify(t)}</p>`).join("")}</div>`;
692
+ }
693
+
694
+ // ------------------------------------------------------------------ modal
695
+ async function openChart(tag) {
696
+ const format = fmtOf(tag);
697
+ $("modal-title").textContent = tag;
698
+ $("modal-desc").textContent = descOf(tag);
699
+ $("modal-stats").innerHTML = "";
700
+ if (S.modal && S.modal.chart) S.modal.chart.destroy();
701
+ S.modal = { tag, chart: new Charts.Line($("modal-chart"), { format, xMode: S.prefs.xMode, smoothing: S.prefs.smoothing, log: S.prefs.log }) };
702
+ $("modal").classList.remove("hidden");
703
+ document.body.style.overflow = "hidden";
704
+ if (!S.returnHash) S.returnHash = location.hash || "#overview";
705
+ history.replaceState(null, "", `#chart/${encodeURIComponent(tag)}`);
706
+ const series = await runSeries(tag);
707
+ if (!S.modal || S.modal.tag !== tag) return;
708
+ S.modal.chart.setData({ series });
709
+ const stat = (k, v) => `<span class="stat"><span class="stat-label">${k}</span><span>${v}</span></span>`;
710
+ $("modal-stats").innerHTML = series.map((s) => {
711
+ const clean = s.values.filter((v) => v != null);
712
+ const last = lastOf(s.values), prev = prevOf(s.values), d = Fmt.delta(last, prev, format);
713
+ return `<div class="stat-row"><i class="swatch" style="background:${s.color}"></i><span class="stat-run">${esc(s.label)}</span>${stat("last", Fmt.text(last, format))}${stat("Δ", d ? Fmt.deltaHTML(d, null, "") : "—")}${clean.length ? stat("min", Fmt.text(Math.min(...clean), format)) + stat("max", Fmt.text(Math.max(...clean), format)) + stat("mean", Fmt.text(clean.reduce((a, b) => a + b, 0) / clean.length, format)) : ""}${stat("points", String(clean.length))}</div>`;
714
+ }).join("");
715
+ }
716
+ function closeModal(restore) {
717
+ if ($("modal").classList.contains("hidden")) return;
718
+ $("modal").classList.add("hidden");
719
+ document.body.style.overflow = "";
720
+ if (S.modal && S.modal.chart) S.modal.chart.destroy();
721
+ S.modal = null;
722
+ if (restore !== false) history.replaceState(null, "", S.returnHash || "#overview");
723
+ S.returnHash = null;
724
+ }
725
+ $("modal").addEventListener("click", (e) => { if (e.target.closest("[data-close]")) closeModal(); });
726
+ document.addEventListener("keydown", (e) => { if (e.key === "Escape") closeModal(); });
727
+
728
+ // ----------------------------------------------------------------- clocks
729
+ const ZONES = [["Beijing", "Asia/Shanghai"], ["Los Angeles", "America/Los_Angeles"], ["New York", "America/New_York"], ["London", "Europe/London"]];
730
+ const zoneFmt = ZONES.map(([, tz]) => new Intl.DateTimeFormat("en-GB", { timeZone: tz, hour: "2-digit", minute: "2-digit", second: "2-digit", hour12: false }));
731
+ function renderClocks(total) {
732
+ const host = $("nav-status");
733
+ if (!host.dataset.built) {
734
+ host.innerHTML = `<div class="nav-cell nav-cost"><span class="k">total cost</span><span class="v" data-f="cost"></span></div>` +
735
+ ZONES.map(([city], i) => `<div class="nav-cell"><span class="k">${city}</span><span class="v" data-z="${i}"></span></div>`).join("");
736
+ host.dataset.built = "1";
737
+ }
738
+ host.querySelector('[data-f="cost"]').textContent = total == null ? "—" : `$${Math.floor(total).toLocaleString("en-US")}`;
739
+ const now = new Date();
740
+ host.querySelectorAll("[data-z]").forEach((e) => { e.textContent = zoneFmt[+e.dataset.z].format(now); });
741
+ }
742
+
743
+ // ------------------------------------------------------------------- tick
744
+ function tick() {
745
+ if (!S.cfg) return;
746
+ // nav: total cost across runs + a UTC clock
747
+ let total = 0, any = false;
748
+ for (const r of runs()) {
749
+ const s = st(r.key);
750
+ if (!s || !s.cost || !s.cost.rate_per_s) continue;
751
+ any = true;
752
+ total += s.run.mode === "ended" ? s.cost.so_far : s.cost.rate_per_s * Math.max(0, vnow(r.key) - s.run.start);
753
+ }
754
+ renderClocks(any ? total : null);
755
+
756
+ for (const r of runs()) {
757
+ const s = st(r.key), block = document.querySelector(`.status[data-run="${r.key}"]`);
758
+ if (!s || !block) continue;
759
+ const final = s.run.mode === "ended";
760
+ const now = vnow(r.key);
761
+ const p = s.step;
762
+ block.querySelector('[data-f="step"]').textContent = `step ${p.last}`;
763
+ block.querySelector('[data-f="clock"]').textContent = final ? `${Fmt.clock(s.run.end - s.run.start)} total` : Fmt.clock(now - s.run.start);
764
+ block.querySelector('[data-f="started"]').textContent = `started ${new Date(s.run.start * 1000).toISOString().replace("T", " ").slice(0, 16)} UTC`;
765
+ const phase = block.querySelector('[data-f="phase"]');
766
+ if (final) {
767
+ phase.innerHTML = `<span class="phase-text">ended ${new Date(s.run.end * 1000).toISOString().slice(0, 10)}</span>`;
768
+ } else {
769
+ const since = p.since + (performance.now() - S.statusAt[r.key]) / 1000;
770
+ const fill = phase.querySelector(".phase-fill"), div = phase.querySelector(".phase-divider"), text = phase.querySelector(".phase-text");
771
+ const lv = liveLatest(r.key);
772
+ if (fill && lv) {
773
+ const q = lv.target ? Math.min(1, lv.accept / lv.target) : 0;
774
+ const ph = lv.accept >= lv.target ? "training" : "rollout";
775
+ fill.classList.remove("indeterminate");
776
+ fill.style.width = `${q * 100}%`;
777
+ div.classList.remove("visible");
778
+ text.innerHTML = `step ${lv.step || p.last + 1}: <b>${ph}</b> · ${Fmt.int(lv.accept)}/${Fmt.int(lv.target)} accepted · ${Fmt.duration(since, { seconds: true })} in`;
779
+ } else if (fill && p.restarted_at != null) {
780
+ // a new trainer process, no sampler report from it yet: nothing to measure
781
+ fill.classList.add("indeterminate");
782
+ div.classList.remove("visible");
783
+ text.innerHTML = `<b>restarting</b> · trainer relaunched ${Fmt.duration(since, { seconds: true })} ago`;
784
+ } else if (fill) {
785
+ let ph = "rollout";
786
+ if (p.expected) {
787
+ const q = Math.min(1, since / p.expected);
788
+ if (p.gen_frac != null && q >= p.gen_frac) ph = "training";
789
+ fill.classList.remove("indeterminate");
790
+ fill.style.width = `${q * 100}%`;
791
+ div.classList.toggle("visible", p.gen_frac != null);
792
+ if (p.gen_frac != null) div.style.left = `${p.gen_frac * 100}%`;
793
+ text.innerHTML = `step ${p.last + 1}: <b>${ph}</b> · ${Fmt.duration(since, { seconds: true })} in`;
794
+ } else {
795
+ fill.classList.add("indeterminate");
796
+ div.classList.remove("visible");
797
+ text.innerHTML = `step ${p.last + 1}: <b>rollout</b> · ${Fmt.duration(since, { seconds: true })} in`;
798
+ }
799
+ }
800
+ }
801
+ const costEl = block.querySelector('[data-f="cost"]');
802
+ if (costEl && s.cost && s.cost.rate_per_s) {
803
+ const cost = final ? s.cost.so_far : s.cost.rate_per_s * Math.max(0, now - s.run.start);
804
+ costEl.textContent = `$${Math.floor(cost).toLocaleString("en-US")}`;
805
+ }
806
+ }
807
+ document.querySelectorAll(".tl-time[data-t]").forEach((e) => { const now = vnow(e.dataset.run); if (now != null) e.textContent = Fmt.ago(now - parseFloat(e.dataset.t)); });
808
+ }
809
+
810
+ // ----------------------------------------------------------------- router
811
+ function parseHash() {
812
+ const parts = location.hash.replace(/^#/, "").split("/");
813
+ const view = parts.shift() || "overview";
814
+ return { view, rest: parts };
815
+ }
816
+ async function route() {
817
+ if (!S.cfg) return;
818
+ const { view, rest } = parseHash();
819
+ let chartTag = null;
820
+ if (view === "chart") { try { chartTag = decodeURIComponent(rest.join("/")); } catch (e) { chartTag = null; } }
821
+ if (!chartTag) {
822
+ closeModal(false);
823
+ S.view = ["overview", "metrics", "about"].includes(view) ? view : "overview";
824
+ if (S.view === "metrics") { S.path = rest.join("/"); S.page = PAGE; }
825
+ } else if (!S.rendered) S.view = "overview";
826
+ document.querySelectorAll("#tabs a").forEach((a) => { a.classList.toggle("active", a.dataset.view === S.view); a.href = `#${a.dataset.view}`; });
827
+ document.querySelectorAll(".view").forEach((v) => v.classList.toggle("active", v.id === `view-${S.view}`));
828
+ if (chartTag) {
829
+ if (!S.rendered) await renderView();
830
+ S.returnHash = `#${S.view}`;
831
+ openChart(chartTag);
832
+ return;
833
+ }
834
+ await renderView();
835
+ window.scrollTo(0, 0);
836
+ }
837
+ async function renderView() {
838
+ if (!S.cfg || !runs().every((r) => st(r.key))) return;
839
+ clearCards();
840
+ S.rendered = true;
841
+ const root = $(`view-${S.view}`);
842
+ try {
843
+ if (S.view === "overview") { await renderOverview(root); for (const r of runs()) renderKV(r.key); }
844
+ else if (S.view === "metrics") await renderMetrics(root);
845
+ else renderAbout(root);
846
+ } catch (err) {
847
+ root.innerHTML = `<div class="muted">failed to render: ${esc(err.message || err)}</div>`;
848
+ }
849
+ tick();
850
+ }
851
+
852
+ // ------------------------------------------------------------------- poll
853
+ async function poll() {
854
+ try {
855
+ let changed = false;
856
+ for (const r of runs()) {
857
+ if (isFinal(r.key) && st(r.key)) continue; // a finished run does not change
858
+ const before = st(r.key) ? st(r.key).version : null, beforeMode = st(r.key) ? st(r.key).run.mode : null;
859
+ const s = await loadStatus(r.key);
860
+ if (before && s.version !== before) { store(r.key); changed = true; }
861
+ if (beforeMode && s.run.mode !== beforeMode) changed = true;
862
+ }
863
+ S.failures = 0;
864
+ $("status-pill").classList.add("hidden");
865
+ for (const r of runs()) if (!isFinal(r.key)) await loadLive(r.key);
866
+ const noticesChanged = await loadNotices();
867
+ const benchChanged = await loadBenchmarks();
868
+ if (changed) await renderView();
869
+ else if (S.view === "overview") { for (const r of runs()) { renderKV(r.key); if (!isFinal(r.key)) renderLive(r.key); } if (noticesChanged) renderNotices(); if (benchChanged) renderBenchmarks(); }
870
+ tick();
871
+ } catch (err) {
872
+ S.failures += 1;
873
+ if (S.failures >= 2) $("status-pill").classList.remove("hidden");
874
+ tick();
875
+ }
876
+ }
877
+
878
+ // ------------------------------------------------------------------- boot
879
+ $("theme-toggle").addEventListener("click", () => {
880
+ const t = document.documentElement.dataset.theme === "dark" ? "light" : "dark";
881
+ document.documentElement.dataset.theme = t;
882
+ localStorage.setItem("theme", t);
883
+ renderView();
884
+ });
885
+ window.addEventListener("hashchange", route);
886
+
887
+ (async function boot() {
888
+ try {
889
+ S.cfg = await getJSON("api/runs");
890
+ S.cfg.formats = S.cfg.formats || [];
891
+ S.cfg.descriptions = S.cfg.descriptions || {};
892
+ document.title = S.cfg.title || "RL";
893
+ const soc = S.cfg.social || {};
894
+ const fh = $("foot-handle");
895
+ fh.textContent = soc.handle || ""; fh.href = soc.url || "#";
896
+ if (S.cfg.stream_start) $("foot-stream").textContent = `streaming since ${new Date(S.cfg.stream_start * 1000).toISOString().replace("T", " ").slice(0, 16)} UTC`;
897
+ $("foot-note").textContent = S.cfg.footer_note || "";
898
+ await Promise.all(runs().map((r) => loadStatus(r.key)));
899
+ await Promise.all(runs().filter((r) => !isFinal(r.key)).map((r) => loadLive(r.key)));
900
+ await loadNotices();
901
+ await loadBenchmarks();
902
+ await route();
903
+ } catch (err) {
904
+ $("foot-note").textContent = `could not load: ${err.message || err}`;
905
+ $("status-pill").classList.remove("hidden");
906
+ }
907
+ setInterval(poll, STATUS_MS);
908
+ setInterval(tick, 500);
909
+ })();
910
+ })();
evidence/mimo-rl-charts.js ADDED
@@ -0,0 +1,501 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Canvas line chart. Plain: 1.5px lines, hairline grid, an end marker, a
2
+ crosshair with a readout. Series may have different x sets (a baseline
3
+ run has its own steps). No animation. */
4
+ (function () {
5
+ "use strict";
6
+
7
+ const cssVar = (name) => getComputedStyle(document.documentElement).getPropertyValue(name).trim();
8
+
9
+ const PALETTE = {
10
+ light: ["#2a78d6", "#eb6834", "#1baf7a", "#eda100", "#e87ba4", "#008300", "#4a3aa7", "#e34948"],
11
+ dark: ["#3987e5", "#d95926", "#199e70", "#c98500", "#d55181", "#008300", "#9085e9", "#e66767"],
12
+ };
13
+ const palette = () => PALETTE[document.documentElement.dataset.theme === "dark" ? "dark" : "light"];
14
+
15
+ function rgba(hex, a) {
16
+ const h = hex.replace("#", "");
17
+ const n = parseInt(h.length === 3 ? h.split("").map((c) => c + c).join("") : h, 16);
18
+ return `rgba(${(n >> 16) & 255}, ${(n >> 8) & 255}, ${n & 255}, ${a})`;
19
+ }
20
+
21
+ function niceStep(range, count) {
22
+ const raw = range / Math.max(1, count);
23
+ const mag = Math.pow(10, Math.floor(Math.log10(raw)));
24
+ const norm = raw / mag;
25
+ return (norm < 1.5 ? 1 : norm < 3 ? 2 : norm < 7 ? 5 : 10) * mag;
26
+ }
27
+
28
+ /* `unit` scales the nice-number search (3600 → ticks land on whole hours). */
29
+ function linearTicks(lo, hi, count, unit) {
30
+ if (!(hi > lo)) { const c = lo || 0; const p = Math.abs(c) * 0.05 || 0.01; lo = c - p; hi = c + p; }
31
+ const pad = (hi - lo) * 0.08;
32
+ lo -= pad; hi += pad;
33
+ unit = unit || 1;
34
+ const step = niceStep((hi - lo) / unit, count) * unit;
35
+ const ticks = [];
36
+ for (let v = Math.ceil(lo / step) * step; v <= hi + step * 1e-6; v += step) ticks.push(+v.toFixed(12));
37
+ return { ticks, lo, hi, step };
38
+ }
39
+
40
+ function logTicks(lo, hi) {
41
+ const l0 = Math.log10(lo), l1 = Math.log10(hi);
42
+ const pad = Math.max(0.05, (l1 - l0) * 0.08);
43
+ const a = l0 - pad, b = l1 + pad;
44
+ const ticks = [];
45
+ for (let e = Math.floor(a); e <= Math.ceil(b); e++) {
46
+ for (const m of (b - a < 1.5 ? [1, 2, 5] : [1])) {
47
+ const v = m * Math.pow(10, e);
48
+ if (Math.log10(v) >= a && Math.log10(v) <= b) ticks.push(v);
49
+ }
50
+ }
51
+ return { ticks, lo: a, hi: b, step: 1 };
52
+ }
53
+
54
+ const HOUR_STEPS = [1, 2, 3, 6, 12, 24, 48, 72, 168, 336, 720];
55
+ function timeTicks(x0, x1, count) {
56
+ const spanH = Math.max(1, (x1 - x0) / 3600);
57
+ const stepH = HOUR_STEPS.find((s) => spanH / s <= count) || HOUR_STEPS[HOUR_STEPS.length - 1];
58
+ const step = stepH * 3600;
59
+ const out = [];
60
+ for (let v = Math.ceil(x0 / step) * step; v <= x1; v += step) out.push(v);
61
+ return out;
62
+ }
63
+
64
+ function stepTicks(x0, x1, count) {
65
+ const step = Math.max(1, Math.round(niceStep(Math.max(1, x1 - x0), count)));
66
+ const out = [];
67
+ for (let v = Math.ceil(x0 / step) * step; v <= x1; v += step) out.push(v);
68
+ if (!out.length) out.push(Math.round(x0));
69
+ return out;
70
+ }
71
+
72
+ /* TensorBoard's debiased EMA; nulls are skipped. */
73
+ function ema(values, w) {
74
+ if (!w) return values;
75
+ const out = new Array(values.length);
76
+ let last = 0, n = 0;
77
+ for (let i = 0; i < values.length; i++) {
78
+ const v = values[i];
79
+ if (v == null || !isFinite(v)) { out[i] = null; continue; }
80
+ last = last * w + (1 - w) * v;
81
+ n++;
82
+ out[i] = last / (1 - Math.pow(w, n));
83
+ }
84
+ return out;
85
+ }
86
+
87
+ class Line {
88
+ /* opts: format, xMode ('step'|'time'), smoothing, log, compact, endLabel */
89
+ constructor(container, opts) {
90
+ this.container = container;
91
+ this.opts = Object.assign({ format: "auto", xMode: "step", smoothing: 0, log: false, compact: false, endLabel: true, legend: true, points: false }, opts || {});
92
+ this.data = null;
93
+ this.hoverX = null;
94
+ this.highlight = null;
95
+
96
+ container.classList.add("chart");
97
+ this.legendEl = document.createElement("div");
98
+ this.legendEl.className = "chart-legend";
99
+ this.plotEl = document.createElement("div");
100
+ this.plotEl.className = "chart-plot";
101
+ this.canvas = document.createElement("canvas");
102
+ this.tip = document.createElement("div");
103
+ this.tip.className = "chart-tip";
104
+ this.emptyEl = document.createElement("div");
105
+ this.emptyEl.className = "chart-empty";
106
+ this.emptyEl.textContent = "no data";
107
+ this.plotEl.append(this.canvas, this.tip, this.emptyEl);
108
+ container.append(this.legendEl, this.plotEl);
109
+
110
+ this._onMove = (e) => this._hover(e);
111
+ this._onLeave = () => { this.hoverX = null; this.tip.style.display = "none"; this.draw(); };
112
+ this.canvas.addEventListener("pointermove", this._onMove);
113
+ this.canvas.addEventListener("pointerdown", this._onMove);
114
+ this.canvas.addEventListener("pointerleave", this._onLeave);
115
+ this.ro = new ResizeObserver(() => this.draw());
116
+ this.ro.observe(this.plotEl);
117
+ }
118
+
119
+ destroy() {
120
+ this.ro.disconnect();
121
+ this.container.innerHTML = "";
122
+ this.container.classList.remove("chart");
123
+ }
124
+
125
+ setOptions(opts) { Object.assign(this.opts, opts); this._prepare(); this.draw(); }
126
+
127
+ /* data = {series: [{key, label, color, steps, walls, runStart, values, dashed?}]} */
128
+ setData(data) { this.data = data; this._prepare(); this._legend(); this.draw(); }
129
+
130
+ _prepare() {
131
+ const d = this.data;
132
+ if (!d) { this.prepared = null; return; }
133
+ const w = this.opts.smoothing;
134
+ const xsUnion = new Set();
135
+ const series = d.series.map((s) => {
136
+ const xs = this.opts.xMode === "time" ? s.walls.map((t) => t - s.runStart) : s.steps.slice();
137
+ const raw = s.values.map((v) => (v == null || !isFinite(v) || (this.opts.log && v <= 0)) ? null : v);
138
+ const y = w ? ema(raw, w) : raw;
139
+ const byX = new Map();
140
+ xs.forEach((x, i) => { if (y[i] != null) byX.set(x, i); xsUnion.add(x); });
141
+ return { ...s, xs, raw, y, byX };
142
+ });
143
+ this.prepared = { series, xs: Array.from(xsUnion).sort((a, b) => a - b) };
144
+ }
145
+
146
+ _legend() {
147
+ const d = this.data;
148
+ this.legendEl.innerHTML = "";
149
+ if (!d || d.series.length < 2 || !this.opts.legend) { this.legendEl.style.display = "none"; return; }
150
+ this.legendEl.style.display = "";
151
+ for (const s of d.series) {
152
+ const item = document.createElement("span");
153
+ item.className = "legend-item";
154
+ item.innerHTML = `<i class="swatch" style="background:${s.color}"></i>${s.label}`;
155
+ item.addEventListener("pointerenter", () => { this.highlight = s.key; this.draw(); });
156
+ item.addEventListener("pointerleave", () => { this.highlight = null; this.draw(); });
157
+ this.legendEl.appendChild(item);
158
+ }
159
+ }
160
+
161
+ _layout(ctx, w, h) {
162
+ const p = this.prepared;
163
+ const compact = this.opts.compact;
164
+ const all = [];
165
+ for (const s of p.series) for (const v of s.raw) if (v != null) all.push(v);
166
+ const hasData = all.length > 0;
167
+ let ticks;
168
+ if (!hasData) ticks = { ticks: [], lo: 0, hi: 1, step: 1 };
169
+ else if (this.opts.log) ticks = logTicks(Math.min(...all), Math.max(...all));
170
+ else {
171
+ const mx = Math.max(...all);
172
+ const unit = this.opts.format === "duration" ? (mx >= 7200 ? 3600 : mx >= 120 ? 60 : 1) : 1;
173
+ ticks = linearTicks(Math.min(...all), Math.max(...all), compact ? 3 : 5, unit);
174
+ }
175
+
176
+ ctx.font = `11px ${cssVar("--mono")}`;
177
+ const labels = ticks.ticks.map((t) => Fmt.tick(t, this.opts.format, ticks.step));
178
+ let labelW = 0;
179
+ for (const l of labels) labelW = Math.max(labelW, ctx.measureText(l).width);
180
+ const nameW = compact ? 0 : ctx.measureText(this.opts.xMode === "time" ? "run time" : "step").width;
181
+
182
+ let endW = 0;
183
+ const primary = p.series[0];
184
+ if (this.opts.endLabel && hasData && primary) {
185
+ let last = null;
186
+ for (let i = primary.y.length - 1; i >= 0; i--) if (primary.y[i] != null) { last = primary.y[i]; break; }
187
+ if (last != null) endW = ctx.measureText(Fmt.text(last, this.opts.format)).width + 12;
188
+ }
189
+ const pad = { l: Math.max(Math.ceil(labelW) + 14, Math.ceil(nameW) + 12), r: Math.max(10, Math.ceil(endW) + 4), t: 10, b: compact ? 20 : 24 };
190
+
191
+ // the time axis starts at the run's launch (0h), the step axis at the first step
192
+ let x0 = this.opts.xMode === "time" ? 0 : p.xs[0], x1 = p.xs[p.xs.length - 1];
193
+ if (x1 == null) { x0 = 0; x1 = 1; }
194
+ if (x1 === x0) { x0 -= 1; x1 += 1; }
195
+ const toY = this.opts.log
196
+ ? (v) => pad.t + (1 - (Math.log10(v) - ticks.lo) / (ticks.hi - ticks.lo)) * (h - pad.t - pad.b)
197
+ : (v) => pad.t + (1 - (v - ticks.lo) / (ticks.hi - ticks.lo)) * (h - pad.t - pad.b);
198
+ const toX = (v) => pad.l + ((v - x0) / (x1 - x0)) * (w - pad.l - pad.r);
199
+ return { pad, ticks, labels, x0, x1, toX, toY, hasData };
200
+ }
201
+
202
+ draw() {
203
+ const canvas = this.canvas;
204
+ const w = this.plotEl.clientWidth, h = this.plotEl.clientHeight;
205
+ if (!w || !h) return;
206
+ const dpr = window.devicePixelRatio || 1;
207
+ if (canvas.width !== Math.round(w * dpr) || canvas.height !== Math.round(h * dpr)) {
208
+ canvas.width = Math.round(w * dpr); canvas.height = Math.round(h * dpr);
209
+ }
210
+ const ctx = canvas.getContext("2d");
211
+ ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
212
+ ctx.clearRect(0, 0, w, h);
213
+ if (!this.prepared || !this.prepared.xs.length) { this.emptyEl.style.display = "flex"; return; }
214
+
215
+ const L = this._layout(ctx, w, h);
216
+ this.L = L;
217
+ this.emptyEl.style.display = L.hasData ? "none" : "flex";
218
+ const p = this.prepared;
219
+ const mono = cssVar("--mono"), ink = cssVar("--ink"), ink3 = cssVar("--ink-3"), grid = cssVar("--grid"), surface = cssVar("--surface");
220
+
221
+ ctx.lineWidth = 1;
222
+ ctx.strokeStyle = grid;
223
+ ctx.fillStyle = ink3;
224
+ ctx.font = `11px ${mono}`;
225
+ ctx.textAlign = "right";
226
+ ctx.textBaseline = "middle";
227
+ L.ticks.ticks.forEach((t, i) => {
228
+ const y = Math.round(L.toY(t)) + 0.5;
229
+ ctx.beginPath(); ctx.moveTo(L.pad.l, y); ctx.lineTo(w - L.pad.r, y); ctx.stroke();
230
+ ctx.fillText(L.labels[i], L.pad.l - 8, y);
231
+ });
232
+
233
+ ctx.textAlign = "center";
234
+ ctx.textBaseline = "top";
235
+ const xt = this.opts.xMode === "time" ? timeTicks(L.x0, L.x1, this.opts.compact ? 4 : 8) : stepTicks(L.x0, L.x1, this.opts.compact ? 4 : 10);
236
+ const yLab = h - L.pad.b + 8;
237
+ const axisName = this.opts.compact ? "" : (this.opts.xMode === "time" ? "run time" : "step");
238
+ const nameRight = axisName ? L.pad.l - 8 : -Infinity;
239
+ for (const v of xt) {
240
+ const label = this.opts.xMode === "time" ? Fmt.runTime(v) : String(v);
241
+ const x = L.toX(v);
242
+ if (x - ctx.measureText(label).width / 2 < nameRight + 6) continue; // would collide with the axis name
243
+ ctx.fillText(label, x, yLab);
244
+ }
245
+ if (axisName) {
246
+ ctx.textAlign = "right";
247
+ ctx.fillText(axisName, L.pad.l - 8, yLab);
248
+ }
249
+ if (!L.hasData) return;
250
+
251
+ const drawPath = (s, ys) => {
252
+ let open = false;
253
+ ctx.beginPath();
254
+ for (let i = 0; i < s.xs.length; i++) {
255
+ const v = ys[i];
256
+ if (v == null) { open = false; continue; }
257
+ const x = L.toX(s.xs[i]), y = L.toY(v);
258
+ if (!open) { ctx.moveTo(x, y); open = true; } else ctx.lineTo(x, y);
259
+ }
260
+ };
261
+
262
+ // baseline / secondary series first so the primary sits on top
263
+ const order = p.series.slice().reverse();
264
+ for (const s of order) {
265
+ const dim = this.highlight && this.highlight !== s.key;
266
+ const alpha = dim ? 0.2 : 1;
267
+ ctx.lineJoin = "round"; ctx.lineCap = "round";
268
+ if (this.opts.smoothing) {
269
+ drawPath(s, s.raw);
270
+ ctx.lineWidth = 1;
271
+ ctx.strokeStyle = rgba(s.color, 0.3 * alpha);
272
+ ctx.setLineDash([]);
273
+ ctx.stroke();
274
+ }
275
+ drawPath(s, s.y);
276
+ ctx.lineWidth = 1.5;
277
+ ctx.strokeStyle = dim ? rgba(s.color, alpha) : s.color;
278
+ ctx.setLineDash(s.dashed ? [4, 3] : []);
279
+ ctx.stroke();
280
+ ctx.setLineDash([]);
281
+ if (this.opts.points) { // sparse series (benchmarks): mark every point
282
+ ctx.fillStyle = dim ? rgba(s.color, alpha) : s.color;
283
+ for (let i = 0; i < s.xs.length; i++) {
284
+ if (s.y[i] == null) continue;
285
+ ctx.beginPath(); ctx.arc(L.toX(s.xs[i]), L.toY(s.y[i]), 2.5, 0, Math.PI * 2); ctx.fill();
286
+ }
287
+ }
288
+
289
+ let li = -1;
290
+ for (let i = s.y.length - 1; i >= 0; i--) if (s.y[i] != null) { li = i; break; }
291
+ if (li >= 0 && !dim) {
292
+ const x = L.toX(s.xs[li]), y = L.toY(s.y[li]);
293
+ ctx.beginPath(); ctx.arc(x, y, 5, 0, Math.PI * 2); ctx.fillStyle = surface; ctx.fill();
294
+ ctx.beginPath(); ctx.arc(x, y, 3.5, 0, Math.PI * 2); ctx.fillStyle = s.color; ctx.fill();
295
+ if (s === p.series[0] && this.opts.endLabel && this.hoverX == null) {
296
+ ctx.font = `11px ${mono}`;
297
+ ctx.fillStyle = ink;
298
+ ctx.textAlign = "left"; ctx.textBaseline = "middle";
299
+ ctx.fillText(Fmt.text(s.y[li], this.opts.format), x + 9, y);
300
+ }
301
+ }
302
+ }
303
+
304
+ if (this.hoverX != null) {
305
+ const x = Math.round(L.toX(this.hoverX)) + 0.5;
306
+ ctx.strokeStyle = ink3;
307
+ ctx.lineWidth = 1;
308
+ ctx.beginPath(); ctx.moveTo(x, L.pad.t); ctx.lineTo(x, h - L.pad.b); ctx.stroke();
309
+ for (const s of p.series) {
310
+ const i = s.byX.get(this.hoverX);
311
+ if (i == null) continue;
312
+ const y = L.toY(s.y[i]);
313
+ ctx.beginPath(); ctx.arc(x, y, 5.5, 0, Math.PI * 2); ctx.fillStyle = surface; ctx.fill();
314
+ ctx.beginPath(); ctx.arc(x, y, 4, 0, Math.PI * 2); ctx.fillStyle = s.color; ctx.fill();
315
+ }
316
+ }
317
+ }
318
+
319
+ _hover(e) {
320
+ if (!this.prepared || !this.L || !this.prepared.xs.length) return;
321
+ const rect = this.canvas.getBoundingClientRect();
322
+ const px = e.clientX - rect.left;
323
+ let best = null, bd = Infinity;
324
+ for (const x of this.prepared.xs) {
325
+ const d = Math.abs(this.L.toX(x) - px);
326
+ if (d < bd) { bd = d; best = x; }
327
+ }
328
+ if (best === this.hoverX && this.tip.style.display === "block") return;
329
+ this.hoverX = best;
330
+ this.draw();
331
+ this._tooltip(best);
332
+ }
333
+
334
+ _tooltip(x) {
335
+ const p = this.prepared;
336
+ const rows = [];
337
+ let head = "";
338
+ for (const s of p.series) {
339
+ const i = s.byX.get(x);
340
+ if (i == null) continue;
341
+ if (!head) {
342
+ const rt = Fmt.runTime(s.walls[i] - s.runStart);
343
+ head = this.opts.xMode === "time" ? `${rt} · step ${s.steps[i]}` : `step ${s.steps[i]} · ${rt}`;
344
+ }
345
+ const raw = this.opts.smoothing && s.raw[i] != null && Math.abs(s.raw[i] - s.y[i]) > 1e-12 ? `<span class="tip-raw">${Fmt.text(s.raw[i], this.opts.format)}</span>` : "";
346
+ rows.push(`<div class="tip-row"><i class="swatch" style="background:${s.color}"></i><span class="tip-label">${s.label}</span><span class="tip-val">${Fmt.text(s.y[i], this.opts.format)}${raw}</span></div>`);
347
+ }
348
+ if (!head) head = this.opts.xMode === "time" ? Fmt.runTime(x) : `step ${x}`;
349
+ this.tip.innerHTML = `<div class="tip-head">${head}</div>${rows.join("")}`;
350
+ this.tip.style.display = "block";
351
+ const cx = this.L.toX(x);
352
+ const tw = this.tip.offsetWidth, th = this.tip.offsetHeight;
353
+ const w = this.plotEl.clientWidth, h = this.plotEl.clientHeight;
354
+ let left = cx + 12;
355
+ if (left + tw > w - 4) left = cx - tw - 12;
356
+ if (left < 4) left = 4;
357
+ this.tip.style.left = `${left}px`;
358
+ this.tip.style.top = `${Math.max(4, Math.min(h - th - 4, this.L.pad.t + 4))}px`;
359
+ }
360
+ }
361
+
362
+ /* Stacked bars per step: batch composition. series values are counts; the
363
+ chart shows counts or shares. Segments are separated by a 1px surface gap. */
364
+ class Stacked {
365
+ constructor(container, opts) {
366
+ this.container = container;
367
+ this.opts = Object.assign({ mode: "count", format: "int", xMode: "step" }, opts || {});
368
+ this.data = null;
369
+ this.hoverI = -1;
370
+ container.classList.add("chart");
371
+ this.legendEl = document.createElement("div");
372
+ this.legendEl.className = "chart-legend";
373
+ this.plotEl = document.createElement("div");
374
+ this.plotEl.className = "chart-plot";
375
+ this.canvas = document.createElement("canvas");
376
+ this.tip = document.createElement("div");
377
+ this.tip.className = "chart-tip";
378
+ this.emptyEl = document.createElement("div");
379
+ this.emptyEl.className = "chart-empty";
380
+ this.emptyEl.textContent = "no data";
381
+ this.plotEl.append(this.canvas, this.tip, this.emptyEl);
382
+ container.append(this.legendEl, this.plotEl);
383
+ this._onMove = (e) => this._hover(e);
384
+ this._onLeave = () => { this.hoverI = -1; this.tip.style.display = "none"; this.draw(); };
385
+ this.canvas.addEventListener("pointermove", this._onMove);
386
+ this.canvas.addEventListener("pointerdown", this._onMove);
387
+ this.canvas.addEventListener("pointerleave", this._onLeave);
388
+ this.ro = new ResizeObserver(() => this.draw());
389
+ this.ro.observe(this.plotEl);
390
+ }
391
+ destroy() { this.ro.disconnect(); this.container.innerHTML = ""; this.container.classList.remove("chart"); }
392
+ setOptions(o) { Object.assign(this.opts, o); this.draw(); }
393
+ setData(d) {
394
+ this.data = d;
395
+ this.legendEl.innerHTML = "";
396
+ if (d && d.series.length) {
397
+ for (const s of d.series) {
398
+ const item = document.createElement("span");
399
+ item.className = "legend-item";
400
+ item.innerHTML = `<i class="swatch" style="background:${s.color}"></i>${s.label}`;
401
+ this.legendEl.appendChild(item);
402
+ }
403
+ }
404
+ this.draw();
405
+ }
406
+ _xs() {
407
+ const d = this.data;
408
+ return this.opts.xMode === "time" ? d.walls.map((w) => w - d.runStart) : d.steps;
409
+ }
410
+ draw() {
411
+ const canvas = this.canvas;
412
+ const w = this.plotEl.clientWidth, h = this.plotEl.clientHeight;
413
+ if (!w || !h) return;
414
+ const dpr = window.devicePixelRatio || 1;
415
+ if (canvas.width !== Math.round(w * dpr) || canvas.height !== Math.round(h * dpr)) { canvas.width = Math.round(w * dpr); canvas.height = Math.round(h * dpr); }
416
+ const ctx = canvas.getContext("2d");
417
+ ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
418
+ ctx.clearRect(0, 0, w, h);
419
+ const d = this.data;
420
+ const n = d && d.steps ? d.steps.length : 0;
421
+ if (!n || !d.series.length) { this.emptyEl.style.display = "flex"; return; }
422
+ this.emptyEl.style.display = "none";
423
+ const share = this.opts.mode === "share";
424
+ const totals = d.steps.map((_, i) => d.series.reduce((a, s) => a + (s.values[i] || 0), 0));
425
+ const maxT = Math.max(1e-9, ...totals);
426
+ const mono = cssVar("--mono"), ink3 = cssVar("--ink-3"), grid = cssVar("--grid"), surface = cssVar("--surface"), ink = cssVar("--ink");
427
+ const ticks = share ? { ticks: [0, 0.25, 0.5, 0.75, 1], lo: 0, hi: 1, step: 0.25 } : (() => { const t = linearTicks(0, maxT, 4); t.lo = 0; return t; })();
428
+ ctx.font = `11px ${mono}`;
429
+ const labels = ticks.ticks.map((t) => share ? `${Math.round(t * 100)}%` : Fmt.tick(t, this.opts.format, ticks.step));
430
+ let labelW = 0; for (const l of labels) labelW = Math.max(labelW, ctx.measureText(l).width);
431
+ const pad = { l: Math.ceil(labelW) + 14, r: 10, t: 10, b: 24 };
432
+ const xs = this._xs();
433
+ let x0 = this.opts.xMode === "time" ? 0 : xs[0], x1 = xs[n - 1];
434
+ if (x1 === x0) { x0 -= 1; x1 += 1; }
435
+ // size the bars from the data spacing, then inset the x range by half a
436
+ // bar so the first and last bars stay clear of the axis labels
437
+ const plotW = w - pad.l - pad.r, span = x1 - x0;
438
+ let slot = Infinity;
439
+ for (let i = 1; i < n; i++) slot = Math.min(slot, (xs[i] - xs[i - 1]) / span * plotW);
440
+ if (!isFinite(slot)) slot = plotW / 2;
441
+ const bw = Math.max(3, Math.min(24, slot * 0.72));
442
+ const inset = bw / 2 + 4;
443
+ const toX = (v) => pad.l + inset + ((v - x0) / span) * (plotW - 2 * inset);
444
+ const toY = (v) => pad.t + (1 - (v - ticks.lo) / (ticks.hi - ticks.lo)) * (h - pad.t - pad.b);
445
+ this.L = { toX, toY, pad, xs, bw };
446
+
447
+ ctx.lineWidth = 1; ctx.strokeStyle = grid; ctx.fillStyle = ink3;
448
+ ctx.textAlign = "right"; ctx.textBaseline = "middle";
449
+ ticks.ticks.forEach((t, i) => { const y = Math.round(toY(t)) + 0.5; ctx.beginPath(); ctx.moveTo(pad.l, y); ctx.lineTo(w - pad.r, y); ctx.stroke(); ctx.fillText(labels[i], pad.l - 8, y); });
450
+ ctx.textAlign = "center"; ctx.textBaseline = "top";
451
+ const xt = this.opts.xMode === "time" ? timeTicks(x0, x1, 8) : stepTicks(x0, x1, 10);
452
+ const yLab = h - pad.b + 8;
453
+ for (const v of xt) ctx.fillText(this.opts.xMode === "time" ? Fmt.runTime(v) : String(v), toX(v), yLab);
454
+
455
+ for (let i = 0; i < n; i++) {
456
+ const cx = toX(xs[i]);
457
+ const tot = totals[i];
458
+ if (!tot) continue;
459
+ let acc = 0;
460
+ const dim = this.hoverI >= 0 && this.hoverI !== i;
461
+ for (const s of d.series) {
462
+ const v = s.values[i] || 0;
463
+ if (!v) continue;
464
+ const y0 = toY(share ? acc / tot : acc), y1 = toY(share ? (acc + v) / tot : acc + v);
465
+ ctx.fillStyle = dim ? rgba(s.color, 0.35) : s.color;
466
+ const top = Math.min(y0, y1), hgt = Math.max(1, Math.abs(y0 - y1) - 1);
467
+ ctx.fillRect(Math.round(cx - bw / 2), Math.round(top), Math.round(bw), Math.round(hgt));
468
+ acc += v;
469
+ }
470
+ }
471
+ if (this.hoverI >= 0) {
472
+ const cx = Math.round(toX(xs[this.hoverI])) + 0.5;
473
+ ctx.strokeStyle = ink; ctx.lineWidth = 1;
474
+ ctx.strokeRect(Math.round(cx - bw / 2) - 1.5, pad.t - 0.5, Math.round(bw) + 3, h - pad.t - pad.b + 1);
475
+ }
476
+ }
477
+ _hover(e) {
478
+ if (!this.L || !this.data) return;
479
+ const rect = this.canvas.getBoundingClientRect();
480
+ const px = e.clientX - rect.left;
481
+ let best = -1, bd = Infinity;
482
+ this.L.xs.forEach((x, i) => { const dd = Math.abs(this.L.toX(x) - px); if (dd < bd) { bd = dd; best = i; } });
483
+ if (best === this.hoverI && this.tip.style.display === "block") return;
484
+ this.hoverI = best;
485
+ this.draw();
486
+ const d = this.data;
487
+ const tot = d.series.reduce((a, s) => a + (s.values[best] || 0), 0);
488
+ const rows = d.series.map((s) => ({ s, v: s.values[best] || 0 })).filter((r) => r.v > 0).sort((a, b) => b.v - a.v);
489
+ this.tip.innerHTML = `<div class="tip-head">step ${d.steps[best]} · ${Fmt.int(tot)} total</div>` +
490
+ rows.map((r) => `<div class="tip-row"><i class="swatch" style="background:${r.s.color}"></i><span class="tip-label">${r.s.label}</span><span class="tip-val">${Fmt.int(r.v)}<span class="tip-raw">${(100 * r.v / tot).toFixed(1)}%</span></span></div>`).join("");
491
+ this.tip.style.display = "block";
492
+ const cx = this.L.toX(this.L.xs[best]);
493
+ const tw = this.tip.offsetWidth, w = this.plotEl.clientWidth;
494
+ let left = cx + 14; if (left + tw > w - 4) left = cx - tw - 14; if (left < 4) left = 4;
495
+ this.tip.style.left = `${left}px`;
496
+ this.tip.style.top = `${this.L.pad.t + 4}px`;
497
+ }
498
+ }
499
+
500
+ window.Charts = { Line, Stacked, palette, ema };
501
+ })();
evidence/mimo-rl-format.js ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Number and time formatting shared by every view. */
2
+ (function () {
3
+ "use strict";
4
+
5
+ const fmtInt = (v) => v == null || !isFinite(v) ? "—" : Math.round(v).toLocaleString("en-US");
6
+
7
+ function sig(x, d) {
8
+ return String(parseFloat(x.toPrecision(d)));
9
+ }
10
+
11
+ function compact(v, d) {
12
+ if (v == null || !isFinite(v)) return "—";
13
+ const a = Math.abs(v);
14
+ d = d == null ? 3 : d;
15
+ if (a >= 1e12) return sig(v / 1e12, d) + "T";
16
+ if (a >= 1e9) return sig(v / 1e9, d) + "B";
17
+ if (a >= 1e6) return sig(v / 1e6, d) + "M";
18
+ if (a >= 1e3) return sig(v / 1e3, d) + "k";
19
+ return sig(v, d);
20
+ }
21
+
22
+ /* Picks decimals from magnitude: 1234.5 → 1,234 · 12.345 → 12.3 · 0.0055 → 0.0055 */
23
+ function auto(v) {
24
+ if (v == null || !isFinite(v)) return "—";
25
+ const a = Math.abs(v);
26
+ if (a === 0) return "0";
27
+ if (a >= 1e5) return compact(v, 3);
28
+ if (a >= 100) return v.toLocaleString("en-US", { maximumFractionDigits: 0 });
29
+ if (a >= 10) return v.toFixed(1);
30
+ if (a >= 1) return v.toFixed(2);
31
+ if (a >= 0.01) return v.toFixed(3);
32
+ return sig(v, 3);
33
+ }
34
+
35
+ function sci(v) {
36
+ if (v == null || !isFinite(v)) return "—";
37
+ if (v === 0) return "0";
38
+ const e = Math.floor(Math.log10(Math.abs(v)));
39
+ const m = v / Math.pow(10, e);
40
+ return `${parseFloat(m.toFixed(2))}e${e}`;
41
+ }
42
+
43
+ function duration(s, opts) {
44
+ if (s == null || !isFinite(s)) return "—";
45
+ s = Math.max(0, Math.round(s));
46
+ const d = Math.floor(s / 86400), h = Math.floor((s % 86400) / 3600), m = Math.floor((s % 3600) / 60), sec = s % 60;
47
+ if (d) return `${d}d ${String(h).padStart(2, "0")}h`;
48
+ if (h) return `${h}h ${String(m).padStart(2, "0")}m`;
49
+ if (m) return opts && opts.seconds ? `${m}m ${String(sec).padStart(2, "0")}s` : `${m}m`;
50
+ return `${sec}s`;
51
+ }
52
+
53
+ function clock(s) {
54
+ s = Math.max(0, Math.floor(s));
55
+ const d = Math.floor(s / 86400), h = Math.floor((s % 86400) / 3600), m = Math.floor((s % 3600) / 60), sec = s % 60;
56
+ const hms = `${String(h).padStart(2, "0")}:${String(m).padStart(2, "0")}:${String(sec).padStart(2, "0")}`;
57
+ return d ? `${d}d ${hms}` : hms;
58
+ }
59
+
60
+ const ago = (s) => s < 60 ? "just now" : duration(s) + " ago";
61
+
62
+ /* Short run-time label for a time axis: 6h · 1d 12h · 3d */
63
+ function runTime(s) {
64
+ s = Math.max(0, s);
65
+ const d = Math.floor(s / 86400), h = Math.round((s % 86400) / 3600);
66
+ if (d && h) return `${d}d ${h}h`;
67
+ if (d) return `${d}d`;
68
+ return `${h}h`;
69
+ }
70
+
71
+ /* {text, unit} for a value in a named format. */
72
+ function value(v, format) {
73
+ if (v == null || !isFinite(v)) return { text: "—", unit: "" };
74
+ switch (format) {
75
+ case "ratio": case "num3": return { text: v.toFixed(3), unit: "" };
76
+ case "num2": return { text: v.toFixed(2), unit: "" };
77
+ case "num1": return { text: v.toFixed(1), unit: "" };
78
+ case "num0": return { text: fmtInt(v), unit: "" };
79
+ case "pct": return { text: (v * 100).toFixed(v * 100 >= 10 ? 1 : 2), unit: "%" };
80
+ case "tokens": return { text: compact(v, 3), unit: "tok" };
81
+ case "compact": return { text: compact(v, 3), unit: "" };
82
+ case "int": return { text: fmtInt(v), unit: "" };
83
+ case "duration": return { text: duration(v), unit: "" };
84
+ case "gb": return { text: v.toFixed(1), unit: "GB" };
85
+ case "sci": return { text: sci(v), unit: "" };
86
+ case "auto": default: return { text: auto(v), unit: "" };
87
+ }
88
+ }
89
+
90
+ const text = (v, format) => { const f = value(v, format); return f.unit ? `${f.text} ${f.unit}` : f.text; };
91
+
92
+ /* Axis tick label: fewer digits than a value. */
93
+ function tick(v, format, step) {
94
+ if (v == null) return "";
95
+ switch (format) {
96
+ case "pct": return `${parseFloat((v * 100).toPrecision(3))}%`;
97
+ case "duration": {
98
+ if (v >= 3600) { const h = v / 3600; return `${parseFloat(h.toFixed(h % 1 ? 1 : 0))}h`; }
99
+ if (v >= 60) return `${Math.round(v / 60)}m`;
100
+ return `${Math.round(v)}s`;
101
+ }
102
+ case "tokens": case "compact": case "int": case "num0": return compact(v, 3);
103
+ case "gb": return `${parseFloat(v.toPrecision(3))}`;
104
+ case "sci": return sci(v);
105
+ default: {
106
+ const dec = step >= 1 ? 0 : Math.min(6, Math.ceil(-Math.log10(step)));
107
+ if (Math.abs(v) >= 1e4) return compact(v, 3);
108
+ return v.toFixed(dec);
109
+ }
110
+ }
111
+ }
112
+
113
+ /* {dir, text} of cur − prev in the value's own units. */
114
+ function delta(cur, prev, format) {
115
+ if (cur == null || prev == null || !isFinite(cur) || !isFinite(prev)) return null;
116
+ const d = cur - prev;
117
+ const dir = Math.abs(d) < 1e-12 ? "flat" : d > 0 ? "up" : "down";
118
+ let t;
119
+ switch (format) {
120
+ case "ratio": case "num3": t = Math.abs(d).toFixed(3); break;
121
+ case "num2": t = Math.abs(d).toFixed(2); break;
122
+ case "num1": t = Math.abs(d).toFixed(1); break;
123
+ case "pct": t = `${(Math.abs(d) * 100).toFixed(2)} pt`; break;
124
+ case "tokens": case "compact": t = compact(Math.abs(d), 2); break;
125
+ case "int": case "num0": t = fmtInt(Math.abs(d)); break;
126
+ case "duration": t = duration(Math.abs(d)); break;
127
+ case "gb": t = Math.abs(d).toFixed(1); break;
128
+ case "sci": t = sci(Math.abs(d)); break;
129
+ default: t = auto(Math.abs(d));
130
+ }
131
+ return { dir, text: t, raw: d };
132
+ }
133
+
134
+ /* HTML for a delta. `good` = "up" | "down" | null decides whether the
135
+ direction is coloured; text is otherwise secondary ink. */
136
+ function deltaHTML(dl, good, suffix) {
137
+ if (!dl) return "";
138
+ if (dl.dir === "flat") return `<span class="delta flat">no change${suffix ? ` ${suffix}` : ""}</span>`;
139
+ const arrow = dl.dir === "up" ? "▲" : "▼";
140
+ const tone = good ? (good === dl.dir ? "good" : "bad") : "";
141
+ return `<span class="delta ${tone}"><span class="arrow">${arrow}</span>${dl.text}${suffix ? ` <span class="delta-suffix">${suffix}</span>` : ""}</span>`;
142
+ }
143
+
144
+ /* Format for a public tag name from the config's [regex, format] rules;
145
+ first match wins, default "auto". Compiled once per rule list. */
146
+ let compiled = null, compiledFrom = null;
147
+ function forTag(tag, rules) {
148
+ if (rules !== compiledFrom) { compiledFrom = rules; compiled = (rules || []).map(([re, f]) => [new RegExp(re), f]); }
149
+ for (const [re, f] of compiled) if (re.test(tag)) return f;
150
+ return "auto";
151
+ }
152
+
153
+ window.Fmt = { int: fmtInt, compact, auto, sci, duration, clock, ago, runTime, value, text, tick, delta, deltaHTML, forTag };
154
+ })();
evidence/mimo-rl-headers.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ HTTP/2 200
2
+ date: Wed, 16 Sep 2026 20:50:57 GMT
3
+ content-type: text/html; charset=utf-8
4
+ content-length: 1997
5
+ vary: Accept-Encoding
6
+ cache-control: public, max-age=60
7
+ x-content-type-options: nosniff
8
+ referrer-policy: no-referrer
9
+ content-security-policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'none'; form-action 'none'
10
+ x-cache: MISS
11
+ x-mife-upstream-status: 200
12
+ server: MiFE/3.4.29
13
+
evidence/mimo-rl-index.html ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>mimo-v2.6 RL</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <meta name="description" content="Training metrics of the mimo-v2.6-pro and mimo-v2.6-flash reinforcement-learning runs, live from the trainer's logs.">
8
+ <meta name="color-scheme" content="light dark">
9
+ <link rel="icon" href="favicon.svg" type="image/svg+xml">
10
+ <link rel="stylesheet" href="style.css">
11
+ <script src="js/theme.js"></script>
12
+ </head>
13
+ <body>
14
+
15
+ <header class="nav">
16
+ <div class="wrap nav-inner">
17
+ <nav class="tabs" id="tabs">
18
+ <a data-view="overview">overview</a>
19
+ <a data-view="metrics">metrics</a>
20
+ <a data-view="about">about</a>
21
+ </nav>
22
+ <div class="nav-right">
23
+ <div class="nav-status" id="nav-status"></div>
24
+ <button class="icon-btn" id="theme-toggle" aria-label="Toggle theme" title="Toggle theme">◐</button>
25
+ </div>
26
+ </div>
27
+ </header>
28
+
29
+ <main class="wrap" id="main">
30
+ <section class="view" id="view-overview"></section>
31
+ <section class="view" id="view-metrics"></section>
32
+ <section class="view" id="view-about"></section>
33
+ </main>
34
+
35
+ <footer class="wrap foot"><a id="foot-handle" target="_blank" rel="noopener"></a><span id="foot-stream"></span><span id="foot-note"></span></footer>
36
+
37
+ <div class="modal hidden" id="modal">
38
+ <div class="modal-backdrop" data-close></div>
39
+ <div class="modal-card" role="dialog" aria-modal="true">
40
+ <div class="modal-head">
41
+ <div><div class="modal-title mono" id="modal-title"></div><div class="modal-desc" id="modal-desc"></div></div>
42
+ <button class="icon-btn" data-close aria-label="Close">✕</button>
43
+ </div>
44
+ <div class="modal-stats mono" id="modal-stats"></div>
45
+ <div class="modal-chart" id="modal-chart"></div>
46
+ </div>
47
+ </div>
48
+
49
+ <div class="status-pill hidden" id="status-pill">reconnecting…</div>
50
+
51
+ <script src="js/format.js"></script>
52
+ <script src="js/charts.js"></script>
53
+ <script src="js/app.js"></script>
54
+ </body>
55
+ </html>
evidence/mimo-rl-runs-prioritization.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"title":"mimo-v2.6 RL","subtitle":"Two reinforcement-learning runs, mimo-v2.6-pro and mimo-v2.6-flash, read directly from the trainer's logs.","runs":[{"key":"pro","label":"mimo-v2.6-pro","note":"","color_index":1},{"key":"flash","label":"mimo-v2.6-flash","note":"","color_index":0}],"pins":["dynsam/avg@n","critic/rewards/mean","actor/entropy_loss","actor/pg_loss","actor/grad_norm","train_infer_diff/new_infer/kl","ctx_total_length/mean","dynsam/agg_turn/mean","perf/total_num_tokens","timing_s/step","timing_s/outer_gen","timing_s/trainer_ops","dynsam/passrate/zero","dynsam/passrate/one","dynsam/infra_error/seq_rate","env/active","partial/avg_staleness","dynsam/num_measurable"],"formats":[["^timing_s/","duration"],["^perf/time_per_step$","duration"],["^perf/gpu_time_s/","duration"],["_ns$","compact"],["_gb$","gb"],["^actor/lr$","sci"],["(^|/)(avg@n|avg@n_no_infra|score_mean|accept_rate|valid_rate)$","ratio"],["(^|/)(seq_rate|effect_ratio|ok_frac|missing_frac|zero|one|mid|zero_no_infra|one_no_infra|mid_no_infra|hist9_ratio/\\d+)$","pct"],["(^|/)(hist9_cnt/\\d+|num_[a-z_]+|n_[a-z_]+|count|size|in_flight|active|total|rollouts|max_load|min_load|dead_replaced)$","int"],["(length|tokens|_len|decode|prefill)","compact"]],"compositions":[{"key":"source","label":"data source","prefix":"dynsam","groups":["code","general","cyber","visual","chat"],"derive":"trained","unit":"prompts"},{"key":"harness","label":"harness (trained)","prefix":"train/harness","metric":"training/rollouts","unit":"rollouts"}],"categories":["code","general","cyber","visual","chat"],"social":{"handle":"@XiaomiMiMo","url":"https://x.com/XiaomiMiMo"},"footer_note":"Open is what we value.","stream_start":1789531200.0,"descriptions":{"dynsam/avg@n":"mean pass rate: for each prompt sampled this step, the fraction of its n attempts that succeed, averaged over prompts","dynsam/avg@n_no_infra":"avg@n with attempts that failed for infrastructure reasons excluded","critic/rewards/mean":"mean reward over trajectories trained on this step","actor/entropy_loss":"mean per-token entropy of the policy","actor/pg_loss":"clipped policy-gradient objective","actor/grad_norm":"global gradient norm before clipping","train_infer_diff/new_infer/kl":"KL between inference-engine and trainer log-probs on the same tokens","ctx_response_length/mean":"tokens generated per trajectory","dynsam/agg_turn/mean":"agent turns per trajectory","perf/total_num_tokens":"tokens trained on this step","timing_s/step":"wall-clock of the whole step","timing_s/outer_gen":"wall-clock of rollout generation","timing_s/trainer_ops":"wall-clock of the trainer","dynsam/passrate/zero":"share of prompts where no attempt succeeded","dynsam/passrate/one":"share of prompts where every attempt succeeded","dynsam/infra_error/seq_rate":"share of sequences lost to infrastructure failures","env/active":"sandbox environments in flight","partial/avg_staleness":"policy versions between sampling and training, on average","dynsam/num_measurable":"prompts with a measurable pass rate this step; per data source under dynsam/<source>/num_measurable","dynsam/passrate/hist9_ratio":"share of prompts by pass rate, in nine bins from none solved to all solved","train/harness/*/training/rollouts":"rollouts in the training batch, per agent harness","ctx_total_length/mean":"total context length per trajectory (prompt + response), in tokens"},"about":["We are streaming our RL big runs. The mimo-v2.6 series is coming soon.","Follow us @XiaomiMiMo."],"headline_tag":"dynsam/avg@n","hist_prefix":"dynsam/passrate/hist9_ratio/"}
evidence/notices-wandb-acceptance.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "verified_at": 1789597787.67196,
3
+ "notice_count": 2,
4
+ "notice_ids": [
5
+ "n-92030c",
6
+ "n-5ef2b1"
7
+ ],
8
+ "report_content_matches": true,
9
+ "workspace_content_matches": true,
10
+ "workspace_pinned_at_top": true,
11
+ "unchanged_feed_republish_skipped": true,
12
+ "total_panels": 32
13
+ }
evidence/prioritized-overview-acceptance.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "verified_at": 1789594130.3636081,
3
+ "workspace_url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory?nw=3dm6cl4xpn1",
4
+ "headline_panels": 6,
5
+ "total_panels": 31,
6
+ "auto_generated_panels": false,
7
+ "workspace_sections": [
8
+ [
9
+ "At a glance",
10
+ true
11
+ ],
12
+ [
13
+ "Learning quality",
14
+ true
15
+ ],
16
+ [
17
+ "Efficiency",
18
+ true
19
+ ],
20
+ [
21
+ "Stability",
22
+ false
23
+ ],
24
+ [
25
+ "Sampler progress",
26
+ false
27
+ ],
28
+ [
29
+ "Advanced diagnostics",
30
+ false
31
+ ],
32
+ [
33
+ "Elapsed-time comparisons",
34
+ false
35
+ ]
36
+ ],
37
+ "runs": [
38
+ {
39
+ "source": "pro@1789468339.334",
40
+ "training_history_rows": 10,
41
+ "headline_fields": 17,
42
+ "pass_rate_pct": 59.0406,
43
+ "benchmark_step": 8,
44
+ "summary_updated_utc": "2026-09-16T21:28:26.456385+00:00"
45
+ },
46
+ {
47
+ "source": "flash@1789485389.264",
48
+ "training_history_rows": 15,
49
+ "headline_fields": 17,
50
+ "pass_rate_pct": 59.6286,
51
+ "benchmark_step": 12,
52
+ "summary_updated_utc": "2026-09-16T21:28:26.467940+00:00"
53
+ }
54
+ ],
55
+ "derived_float_tolerance": 1e-12,
56
+ "browser_visual_check": "unavailable: no browser connection"
57
+ }
evidence/remote-location-audit-20261022.json ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "recorded_at": "2026-10-22T19:36:00Z",
3
+ "agent": "Codex parent with three read-only MiniMax CCR discovery workers",
4
+ "task": "Locate the user's MiMo/Mimeo RL data, determine whether it exists on W&B or Hugging Face, and upload to Hugging Face only if neither remote location holds it.",
5
+ "local_authority": {
6
+ "root": "/Users/kearm/data/mimo-rl",
7
+ "observer_code": "/Users/kearm/mimo-rl-observer",
8
+ "database": "/Users/kearm/data/mimo-rl/mimo.sqlite3",
9
+ "on_disk_size": "2.4 GiB",
10
+ "raw_response_count": 132263,
11
+ "database_bytes": 1498275840,
12
+ "key_table_counts": {
13
+ "benchmark_points": 168,
14
+ "cycles": 64805,
15
+ "events": 83,
16
+ "fetches": 499143,
17
+ "live_reports": 10000,
18
+ "metric_points": 122730,
19
+ "metric_revisions": 130930,
20
+ "notices": 6,
21
+ "runs": 2,
22
+ "series_snapshots": 376,
23
+ "status_samples": 123537
24
+ },
25
+ "verification": {
26
+ "command": "python3 /Users/kearm/mimo-rl-observer/collector.py verify",
27
+ "exit_code": 0,
28
+ "result": {
29
+ "verified_raw_responses": 132263,
30
+ "integrity": "ok"
31
+ }
32
+ },
33
+ "collection_state": {
34
+ "last_http_200_fetch_utc": "2026-10-09T04:12:09Z",
35
+ "http_404_window_utc": "2026-10-09T04:22:13Z through 2026-10-22T19:24:45Z",
36
+ "http_404_count": 1951
37
+ }
38
+ },
39
+ "weights_and_biases": {
40
+ "found": true,
41
+ "project": "RESMP-DEV/mimo-rl-observatory",
42
+ "url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory",
43
+ "run_count": 30,
44
+ "current_stream_count": 6,
45
+ "live_check_utc": "2026-10-22T19:27:02Z",
46
+ "current_streams": [
47
+ {
48
+ "run_id": "mimo-57a70235e51254cd",
49
+ "role": "pro training",
50
+ "history_lines": 30,
51
+ "state": "finished",
52
+ "updated_at": "2026-10-22T19:27:01Z"
53
+ },
54
+ {
55
+ "run_id": "mimo-de65582d9f988ef8",
56
+ "role": "flash training",
57
+ "history_lines": 30,
58
+ "state": "finished",
59
+ "updated_at": "2026-10-22T19:27:02Z"
60
+ },
61
+ {
62
+ "run_id": "mimo-7b2e8f3a67241dfd",
63
+ "role": "pro sampler",
64
+ "history_lines": 5430,
65
+ "state": "finished",
66
+ "updated_at": "2026-09-20T18:00:01Z"
67
+ },
68
+ {
69
+ "run_id": "mimo-e66b1d685e38fc10",
70
+ "role": "flash sampler",
71
+ "history_lines": 4570,
72
+ "state": "finished",
73
+ "updated_at": "2026-09-19T02:21:20Z"
74
+ },
75
+ {
76
+ "run_id": "mimo-57d98323275bd30e",
77
+ "role": "pro benchmarks",
78
+ "history_lines": 30,
79
+ "state": "finished",
80
+ "updated_at": "2026-09-21T05:16:37Z"
81
+ },
82
+ {
83
+ "run_id": "mimo-adf755d9193d5175",
84
+ "role": "flash benchmarks",
85
+ "history_lines": 30,
86
+ "state": "finished",
87
+ "updated_at": "2026-09-19T11:22:00Z"
88
+ }
89
+ ],
90
+ "evidence": "Authenticated W&B GraphQL queries using the existing api.wandb.ai credential without printing it; representative metadata and Parquet artifacts downloaded under /Users/kearm/.local/share/mimeo-rl-audit/wandb-artifacts/."
91
+ },
92
+ "hugging_face": {
93
+ "owned_telemetry_mirror_found": false,
94
+ "public_upstream_rl_environments_found": true,
95
+ "public_upstream_rl_environments": {
96
+ "repo_id": "XiaomiMiMo/MiMo-V2.6-RL-oss",
97
+ "private": false,
98
+ "license": "apache-2.0",
99
+ "created_at": "2026-09-25T11:26:55Z",
100
+ "last_modified": "2026-10-20T02:25:58Z",
101
+ "sha": "e8e81e4945270b6212204bad99de1e598f7fb077",
102
+ "description": "Agentic RL environments for LLM agents"
103
+ },
104
+ "evidence": "hf auth whoami; hf datasets/models list with author filters across RESMP-DEV, RESMPDEV, EVA-UNIT-01, Kearm, SXHarmony, allura-org, allura-forge, and lq-preview; direct authenticated candidate probes; and hf datasets list --search MiMo-V2.6-RL-oss."
105
+ },
106
+ "decision": {
107
+ "uploaded_to_hugging_face": false,
108
+ "reason": "The conditional upload was not triggered: the owned MiMo RL telemetry is already on W&B in RESMP-DEV/mimo-rl-observatory, and the upstream RL environments are already publicly hosted by XiaomiMiMo on Hugging Face."
109
+ },
110
+ "non_claims": [
111
+ "The W&B mirror and local archive contain aggregate RL telemetry, not training prompts, completions, model weights, or individual trajectories; the observer README states those were not exposed by the publisher.",
112
+ "This audit did not prove that no unrelated private HF repository exists in an account inaccessible to the authenticated Kearm token.",
113
+ "No Hugging Face repository was created, modified, or uploaded.",
114
+ "The local archive remained the authoritative store and no collector or mirror configuration was changed."
115
+ ],
116
+ "worker_evidence": [
117
+ "/Users/kearm/.local/share/mimeo-rl-audit/local-search.txt",
118
+ "/Users/kearm/.local/share/mimeo-rl-audit/local-search.txt.status.json",
119
+ "/Users/kearm/.local/share/mimeo-rl-audit/wandb-search.txt",
120
+ "/Users/kearm/.local/share/mimeo-rl-audit/wandb-search.txt.status.json",
121
+ "/Users/kearm/.local/share/mimeo-rl-audit/hf-search.txt",
122
+ "/Users/kearm/.local/share/mimeo-rl-audit/hf-search.txt.status.json"
123
+ ]
124
+ }
evidence/sampler-filter-query-check.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "page_size": 1000,
4
+ "keys": [
5
+ "source/time",
6
+ "source/step"
7
+ ],
8
+ "rows": 1043,
9
+ "unique": 1043,
10
+ "duplicates": 0,
11
+ "example_duplicate": null
12
+ },
13
+ {
14
+ "page_size": 2000,
15
+ "keys": [
16
+ "source/time",
17
+ "source/step"
18
+ ],
19
+ "rows": 1043,
20
+ "unique": 1043,
21
+ "duplicates": 0,
22
+ "example_duplicate": null
23
+ },
24
+ {
25
+ "page_size": 1000,
26
+ "keys": [
27
+ "_step",
28
+ "source/time",
29
+ "source/step"
30
+ ],
31
+ "rows": 1043,
32
+ "unique": 1043,
33
+ "duplicates": 0,
34
+ "example_duplicate": null
35
+ }
36
+ ]
evidence/sampler-health-flash.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "key": "flash@1789485389.264:sampler",
3
+ "rows": 1430,
4
+ "distinct": 1430,
5
+ "dupe_keys": 0,
6
+ "checkpoint": {
7
+ "source_time": 1789641808.264,
8
+ "sequence": 1429,
9
+ "wandb_id": "mimo-e66b1d685e38fc10",
10
+ "url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory/runs/mimo-e66b1d685e38fc10"
11
+ },
12
+ "samples": []
13
+ }
evidence/sampler-health-pro.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "key": "pro@1789468339.334:sampler",
3
+ "rows": 1043,
4
+ "distinct": 1043,
5
+ "dupe_keys": 0,
6
+ "checkpoint": {
7
+ "source_time": 1789632430.334,
8
+ "sequence": 1042,
9
+ "wandb_id": "mimo-7b2e8f3a67241dfd",
10
+ "url": "https://wandb.ai/RESMP-DEV/mimo-rl-observatory/runs/mimo-7b2e8f3a67241dfd"
11
+ },
12
+ "samples": []
13
+ }
evidence/stream-live-verification.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "verified_at_utc": "2026-09-16T22:24:11.773154+00:00",
3
+ "project": {
4
+ "name": "mimo-rl-observatory",
5
+ "access": "PRIVATE"
6
+ },
7
+ "reports": [
8
+ {
9
+ "source_run": "flash@1789485389.264",
10
+ "local_reports": 171,
11
+ "wandb_reports": 171,
12
+ "latest_local_source_time": 1789593692.264,
13
+ "latest_wandb_source_time": 1789593692.264,
14
+ "all_local_reports_visible": true,
15
+ "publisher_phase": "training"
16
+ },
17
+ {
18
+ "source_run": "pro@1789468339.334",
19
+ "local_reports": 222,
20
+ "wandb_reports": 222,
21
+ "latest_local_source_time": 1789594956.334,
22
+ "latest_wandb_source_time": 1789594956.334,
23
+ "all_local_reports_visible": true,
24
+ "publisher_phase": "training"
25
+ }
26
+ ],
27
+ "headlines": [
28
+ {
29
+ "run": "flash@1789485389.264:training",
30
+ "headline_refreshed_at": "2026-09-16T22:24:07.197182+00:00",
31
+ "completed_step": 15
32
+ },
33
+ {
34
+ "run": "pro@1789468339.334:training",
35
+ "headline_refreshed_at": "2026-09-16T22:24:07.188854+00:00",
36
+ "completed_step": 10
37
+ }
38
+ ],
39
+ "collector_interval_seconds": 10,
40
+ "mirror_interval_seconds": 120
41
+ }
evidence/training-history-query-check.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "use_cache": false,
4
+ "rows": 26,
5
+ "counts": {
6
+ "1": 2,
7
+ "2": 2,
8
+ "3": 2,
9
+ "4": 2,
10
+ "5": 2,
11
+ "6": 2,
12
+ "7": 2,
13
+ "8": 2,
14
+ "9": 2,
15
+ "10": 2,
16
+ "11": 2,
17
+ "12": 2,
18
+ "13": 1,
19
+ "14": 1
20
+ },
21
+ "duplicate_payloads_identical": true
22
+ },
23
+ {
24
+ "use_cache": true,
25
+ "rows": 26,
26
+ "counts": {
27
+ "1": 2,
28
+ "2": 2,
29
+ "3": 2,
30
+ "4": 2,
31
+ "5": 2,
32
+ "6": 2,
33
+ "7": 2,
34
+ "8": 2,
35
+ "9": 2,
36
+ "10": 2,
37
+ "11": 2,
38
+ "12": 2,
39
+ "13": 1,
40
+ "14": 1
41
+ },
42
+ "duplicate_payloads_identical": true
43
+ },
44
+ {
45
+ "sampled_history_rows": 14,
46
+ "counts": {
47
+ "1": 1,
48
+ "2": 1,
49
+ "3": 1,
50
+ "4": 1,
51
+ "5": 1,
52
+ "6": 1,
53
+ "7": 1,
54
+ "8": 1,
55
+ "9": 1,
56
+ "10": 1,
57
+ "11": 1,
58
+ "12": 1,
59
+ "13": 1,
60
+ "14": 1
61
+ }
62
+ }
63
+ ]
evidence/visualization-dependency-audit.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Python: pip-audit over exported uv.lock ===
2
+ WARNING:pip_audit._cli:--no-deps is supported, but users are encouraged to fully hash their pinned dependencies
3
+ WARNING:pip_audit._cli:Consider using a tool like `pip-compile`: https://pip-tools.readthedocs.io/en/latest/#using-hashes
4
+ No known vulnerabilities found
5
+
6
+ === Polyglot: OSV-Scanner ===
7
+ Scanning dir .
8
+ Starting filesystem walk for root: /
9
+ Scanned /Users/kearm/mimo-rl-observer/uv.lock file and found 25 packages
10
+ End status: 4 dirs visited, 14 inodes visited, 1 Extract calls, 4.534083ms elapsed, 4.534ms wall time
11
+
12
+ No issues found
13
+ dependency-audit: all applicable scans passed
evidence/wandb-report-and-resume.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "verified_at": 1789592852.881807,
3
+ "panels": 26,
4
+ "samplers": [
5
+ {
6
+ "source": "flash@1789485389.264:sampler",
7
+ "remote_reports": 110,
8
+ "checkpoint_reports": 110
9
+ },
10
+ {
11
+ "source": "pro@1789468339.334:sampler",
12
+ "remote_reports": 99,
13
+ "checkpoint_reports": 99
14
+ }
15
+ ]
16
+ }
evidence/wandb-report-before-prioritization.py ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Create a curated W&B report for the mirrored public MiMo telemetry."""
2
+
3
+ import json
4
+
5
+ import wandb_workspaces.reports.v2 as wr
6
+ from wandb_workspaces import expr
7
+
8
+ from collector import DEFAULT_DATA
9
+
10
+ TITLES = {
11
+ "dynsam/avg@n": "Mean prompt pass rate (fraction)",
12
+ "critic/rewards/mean": "Mean trajectory reward",
13
+ "actor/entropy_loss": "Policy entropy",
14
+ "actor/pg_loss": "Policy-gradient objective",
15
+ "actor/grad_norm": "Gradient norm before clipping",
16
+ "train_infer_diff/new_infer/kl": "Trainer / inference KL",
17
+ "ctx_total_length/mean": "Mean context length (tokens)",
18
+ "dynsam/agg_turn/mean": "Mean agent turns per trajectory",
19
+ "perf/total_num_tokens": "Tokens trained per step",
20
+ "timing_s/step": "Whole step duration (seconds)",
21
+ "timing_s/outer_gen": "Rollout generation (seconds)",
22
+ "timing_s/trainer_ops": "Trainer operations (seconds)",
23
+ "dynsam/passrate/zero": "Prompts with no successes (fraction)",
24
+ "dynsam/passrate/one": "Prompts with all attempts successful (fraction)",
25
+ "dynsam/infra_error/seq_rate": "Infrastructure failures (fraction of sequences)",
26
+ "env/active": "Sandbox environments in flight",
27
+ "partial/avg_staleness": "Mean policy staleness (versions)",
28
+ "dynsam/num_measurable": "Prompts with measurable pass rate",
29
+ }
30
+
31
+
32
+ def main():
33
+ root = DEFAULT_DATA
34
+ state_path = root / "presentation/wandb-report.json"
35
+ if state_path.exists():
36
+ raise SystemExit("Report already exists; load its saved URL to update it.")
37
+ state = json.loads((root / "presentation/wandb-state.json").read_text())
38
+ metadata = json.loads((root / "presentation/metadata.json").read_text())
39
+ entity, project = state["destination"].split("/")
40
+
41
+ def runset(kind):
42
+ return wr.Runset(
43
+ entity=entity,
44
+ project=project,
45
+ name=kind,
46
+ filters=[
47
+ expr.Config("stream_kind") == kind,
48
+ expr.Config("is_current") == True,
49
+ ],
50
+ )
51
+
52
+ def plot(tag, title=None, x="source/step", x_title="Training step"):
53
+ return wr.LinePlot(
54
+ title=title or TITLES.get(tag, tag),
55
+ x=x,
56
+ y=[tag],
57
+ title_x=x_title,
58
+ smoothing_factor=0,
59
+ smoothing_type="none",
60
+ aggregate=False,
61
+ max_runs_to_show=2,
62
+ )
63
+
64
+ blocks = [
65
+ wr.MarkdownBlock(
66
+ text="""# MiMo RL: Pro vs Flash
67
+
68
+ This is a mirror of Xiaomi's public aggregate RL telemetry, not a training run on the collector's Mac. The local SQLite archive remains authoritative. Capture runs every 10 seconds; this W&B mirror refreshes approximately every two minutes.
69
+
70
+ **Metric names are not observations.** Initial coverage: Pro 2,019 names × 10 steps and Flash 2,050 names × 15 steps = 50,940 slots. Of those, 47,934 are numeric and 3,006 are missing. There are 2,067 distinct names across the models.
71
+
72
+ | Run | Publisher run start (UTC) | First recorded metric, step 1 (UTC) |
73
+ | --- | --- | --- |
74
+ | Pro | 2026-09-15 10:32:19 | 2026-09-15 17:21:17 |
75
+ | Flash | 2026-09-15 15:16:29 | 2026-09-15 17:07:10 |
76
+
77
+ Publisher stream start: September 16, 04:00 UTC. Local capture began September 16, 20:53:37 UTC. Completed-step histories are backfilled; the sampler endpoint only supplies a recent window.
78
+
79
+ Values below use their original scale and no smoothing. A fraction of 0.59 remains 0.59; the source site's percentage formatting sometimes renders it as 59%. Benchmark scores are already on their published scale. The source site's optional time axis is elapsed time since each run's start.
80
+
81
+ The `mimo-effective-metadata` artifact contains every tag's display rule, definition where supplied, source/category fields, coverage, and source-code hashes. Xiaomi supplies effective UI descriptions for only 19 distinct names. Unknown units and descriptions remain unspecified.
82
+ """
83
+ ),
84
+ wr.H2(text="Training curves: shared step axis"),
85
+ wr.PanelGrid(
86
+ runsets=[runset("training")],
87
+ panels=[plot(tag) for tag in metadata["publisher_config"]["pins"]],
88
+ ),
89
+ wr.H2(text="Training curves: elapsed hours from each run's start"),
90
+ wr.PanelGrid(
91
+ runsets=[runset("training")],
92
+ panels=[
93
+ plot(
94
+ tag,
95
+ x="source/elapsed_hours",
96
+ x_title="Hours since publisher run start",
97
+ )
98
+ for tag in ("dynsam/avg@n", "critic/rewards/mean", "actor/entropy_loss")
99
+ ],
100
+ ),
101
+ wr.H2(text="Offline benchmark results"),
102
+ wr.MarkdownBlock(
103
+ text="Late benchmark results have their own histories. A revised benchmark snapshot supersedes the previous snapshot. It does not append fake training steps. DeepSWE uses the publisher's mini-swe-agent, avg@3 evaluation setting."
104
+ ),
105
+ wr.PanelGrid(
106
+ runsets=[runset("benchmarks")],
107
+ panels=[plot("benchmark/deepswe", "DeepSWE v1.1 — publisher score")],
108
+ ),
109
+ wr.H2(text="Sampler progress: elapsed hours"),
110
+ wr.MarkdownBlock(
111
+ text="These are report-level measurements, separate from completed training steps. Older reports may lack per-source details. The 25 source IDs are anonymized; their underlying datasets are not identified. Historical report corrections remain in the local archive; the mirror appends newly timestamped reports."
112
+ ),
113
+ wr.PanelGrid(
114
+ runsets=[runset("sampler")],
115
+ panels=[
116
+ plot(
117
+ tag,
118
+ title,
119
+ x="source/elapsed_hours",
120
+ x_title="Hours since publisher run start",
121
+ )
122
+ for tag, title in [
123
+ ("sampler/accept", "Accepted prompts"),
124
+ ("sampler/passrate", "Sampler pass rate (fraction)"),
125
+ ("sampler/working", "Working sampler count"),
126
+ ("sampler/remain", "Remaining sampler count"),
127
+ ]
128
+ ],
129
+ ),
130
+ wr.MarkdownBlock(
131
+ text="The publisher's trained-prompts composition chart is a derived estimate: previous held + accepted − current held, with a proportional carryover fallback when the source totals do not match the batch size within 5%. That derivation is documented in the metadata and is not presented here as an observed counter. W&B has its own rendering and smoothing behavior; these charts are not a pixel-for-pixel copy of the source website."
132
+ ),
133
+ ]
134
+ report = wr.Report(
135
+ entity=entity,
136
+ project=project,
137
+ title="MiMo RL — Pro vs Flash, coverage and metric semantics",
138
+ blocks=blocks,
139
+ )
140
+ report.save()
141
+ receipt = {
142
+ "url": report.url,
143
+ "panel_count": sum(
144
+ len(b.panels) for b in blocks if isinstance(b, wr.PanelGrid)
145
+ ),
146
+ "project": state["destination"],
147
+ "smoothing": "none",
148
+ "default_training_x": "source/step",
149
+ }
150
+ state_path.write_text(json.dumps(receipt, indent=2) + "\n")
151
+ print(json.dumps(receipt, indent=2))
152
+
153
+
154
+ if __name__ == "__main__":
155
+ main()
evidence/wandb-report-layout-1789593975.json ADDED
@@ -0,0 +1,2162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "VmlldzoxNzk0ODYzNw==",
3
+ "name": "",
4
+ "display_name": "MiMo RL — Pro vs Flash, coverage and metric semantics",
5
+ "description": "",
6
+ "project": {
7
+ "name": "mimo-rl-observatory",
8
+ "entity_name": "RESMP-DEV",
9
+ "id": null
10
+ },
11
+ "created_at": "2026-09-16T21:05:22Z",
12
+ "updated_at": "2026-09-16T21:05:22Z",
13
+ "spec": {
14
+ "version": 5,
15
+ "panel_settings": {},
16
+ "blocks": [
17
+ {
18
+ "type": "paragraph",
19
+ "children": [
20
+ {
21
+ "text": "",
22
+ "inline_code": null,
23
+ "inline_comments": null
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "type": "markdown-block",
29
+ "children": [
30
+ {
31
+ "text": "",
32
+ "inline_code": null,
33
+ "inline_comments": null
34
+ }
35
+ ],
36
+ "content": "# MiMo RL: Pro vs Flash\n\nThis is a mirror of Xiaomi's public aggregate RL telemetry, not a training run on the collector's Mac. The local SQLite archive remains authoritative. Capture runs every 10 seconds; this W&B mirror refreshes approximately every two minutes.\n\n**Metric names are not observations.** Initial coverage: Pro 2,019 names × 10 steps and Flash 2,050 names × 15 steps = 50,940 slots. Of those, 47,934 are numeric and 3,006 are missing. There are 2,067 distinct names across the models.\n\n| Run | Publisher run start (UTC) | First recorded metric, step 1 (UTC) |\n| --- | --- | --- |\n| Pro | 2026-09-15 10:32:19 | 2026-09-15 17:21:17 |\n| Flash | 2026-09-15 15:16:29 | 2026-09-15 17:07:10 |\n\nPublisher stream start: September 16, 04:00 UTC. Local capture began September 16, 20:53:37 UTC. Completed-step histories are backfilled; the sampler endpoint only supplies a recent window.\n\nValues below use their original scale and no smoothing. A fraction of 0.59 remains 0.59; the source site's percentage formatting sometimes renders it as 59%. Benchmark scores are already on their published scale. The source site's optional time axis is elapsed time since each run's start.\n\nThe `mimo-effective-metadata` artifact contains every tag's display rule, definition where supplied, source/category fields, coverage, and source-code hashes. Xiaomi supplies effective UI descriptions for only 19 distinct names. Unknown units and descriptions remain unspecified.\n"
37
+ },
38
+ {
39
+ "type": "heading",
40
+ "children": [
41
+ {
42
+ "text": "Training curves: shared step axis",
43
+ "inline_code": null,
44
+ "inline_comments": null
45
+ }
46
+ ],
47
+ "collapsed_children": null,
48
+ "level": 2
49
+ },
50
+ {
51
+ "type": "panel-grid",
52
+ "children": [
53
+ {
54
+ "text": "",
55
+ "inline_code": null,
56
+ "inline_comments": null
57
+ }
58
+ ],
59
+ "metadata": {
60
+ "open_viz": true,
61
+ "open_run_set": 0,
62
+ "name": "unused-name",
63
+ "run_sets": [
64
+ {
65
+ "id": "58yumx077bw",
66
+ "run_feed": {
67
+ "version": 2,
68
+ "column_visible": {},
69
+ "column_pinned": {},
70
+ "column_widths": {},
71
+ "column_order": [],
72
+ "page_size": 10,
73
+ "only_show_selected": false,
74
+ "lock_columns": null
75
+ },
76
+ "enabled": true,
77
+ "project": {
78
+ "name": "mimo-rl-observatory",
79
+ "entity_name": "RESMP-DEV",
80
+ "id": "UHJvamVjdEludGVybmFsSWQ6NDUxNDM5MTA="
81
+ },
82
+ "name": "training",
83
+ "search": {
84
+ "query": "",
85
+ "is_regex": null
86
+ },
87
+ "filters": {
88
+ "filterFormat": "filterV2",
89
+ "filters": [
90
+ {
91
+ "key": {
92
+ "section": "config",
93
+ "name": "stream_kind"
94
+ },
95
+ "op": "=",
96
+ "value": "training",
97
+ "disabled": false
98
+ },
99
+ {
100
+ "key": {
101
+ "section": "config",
102
+ "name": "is_current"
103
+ },
104
+ "op": "=",
105
+ "value": true,
106
+ "disabled": false,
107
+ "connector": "AND"
108
+ }
109
+ ]
110
+ },
111
+ "grouping": [],
112
+ "sort": {
113
+ "keys": [
114
+ {
115
+ "key": {
116
+ "section": "run",
117
+ "name": "createdAt"
118
+ },
119
+ "ascending": false
120
+ }
121
+ ]
122
+ },
123
+ "selections": {
124
+ "root": 1,
125
+ "bounds": [],
126
+ "tree": []
127
+ },
128
+ "expanded_row_addresses": [],
129
+ "baseline_run_id": null,
130
+ "pinned_run_ids": null
131
+ }
132
+ ],
133
+ "hide_run_sets": false,
134
+ "panels": {
135
+ "views": {
136
+ "0": {
137
+ "name": "Panels",
138
+ "defaults": [],
139
+ "config": []
140
+ }
141
+ },
142
+ "tabs": [
143
+ "0"
144
+ ]
145
+ },
146
+ "panel_bank_config": {
147
+ "state": 0,
148
+ "settings": {
149
+ "auto_organize_prefix": 2,
150
+ "show_empty_sections": false,
151
+ "sort_alphabetically": false,
152
+ "search_query": null,
153
+ "search_history": null,
154
+ "auto_expand_search_results": null
155
+ },
156
+ "sections": [
157
+ {
158
+ "id": null,
159
+ "name": "Hidden Panels",
160
+ "is_open": false,
161
+ "type": "flow",
162
+ "flow_config": {
163
+ "snap_to_columns": true,
164
+ "columns_per_page": 3,
165
+ "rows_per_page": 2,
166
+ "gutter_width": 16,
167
+ "box_width": 460,
168
+ "box_height": 300
169
+ },
170
+ "sorted": 0,
171
+ "local_panel_settings": {
172
+ "smoothing_weight": 0,
173
+ "smoothing_type": "exponential",
174
+ "x_axis": "_step",
175
+ "ignore_outliers": false,
176
+ "use_runs_table_grouping_in_panels": true,
177
+ "x_axis_min": null,
178
+ "x_axis_max": null,
179
+ "color_run_names": null,
180
+ "max_runs": null,
181
+ "point_visualization_method": null,
182
+ "suppress_legends": null,
183
+ "tooltip_number_of_runs": null,
184
+ "smoothing_active": true,
185
+ "x_axis_active": false
186
+ },
187
+ "panels": [],
188
+ "pinned": null,
189
+ "is_panels_auto": null,
190
+ "default_name": null
191
+ }
192
+ ],
193
+ "panel_config_overrides": null,
194
+ "panel_placement_overrides": null
195
+ },
196
+ "panel_bank_section_config": {
197
+ "name": "Report Panels",
198
+ "is_open": false,
199
+ "panels": [
200
+ {
201
+ "id": "1jtynnoygch",
202
+ "layout": {
203
+ "x": 0,
204
+ "y": 0,
205
+ "w": 8,
206
+ "h": 6
207
+ },
208
+ "is_auto": null,
209
+ "view_type": "Run History Line Plot",
210
+ "config": {
211
+ "chart_title": "Mean prompt pass rate (fraction)",
212
+ "x_axis": "source/step",
213
+ "metrics": [
214
+ "dynsam/avg@n"
215
+ ],
216
+ "x_axis_min": null,
217
+ "x_axis_max": null,
218
+ "y_axis_min": null,
219
+ "y_axis_max": null,
220
+ "x_log_scale": null,
221
+ "y_log_scale": null,
222
+ "x_axis_title": "Training step",
223
+ "y_axis_title": null,
224
+ "ignore_outliers": null,
225
+ "group_by": null,
226
+ "group_agg": null,
227
+ "group_area": null,
228
+ "smoothing_weight": 0.0,
229
+ "smoothing_type": "none",
230
+ "show_original_after_smoothing": null,
231
+ "limit": 2,
232
+ "expressions": null,
233
+ "plot_type": null,
234
+ "font_size": null,
235
+ "legend_position": null,
236
+ "legend_template": null,
237
+ "aggregate": false,
238
+ "x_expression": null,
239
+ "x_axis_format": null,
240
+ "point_visualization_method": null,
241
+ "override_line_widths": null,
242
+ "override_colors": null,
243
+ "override_series_titles": null,
244
+ "override_marks": null,
245
+ "legend_fields": null,
246
+ "metric_regex": null,
247
+ "use_metric_regex": null
248
+ }
249
+ },
250
+ {
251
+ "id": "2g00iuyw5vv",
252
+ "layout": {
253
+ "x": 8,
254
+ "y": 0,
255
+ "w": 8,
256
+ "h": 6
257
+ },
258
+ "is_auto": null,
259
+ "view_type": "Run History Line Plot",
260
+ "config": {
261
+ "chart_title": "Mean trajectory reward",
262
+ "x_axis": "source/step",
263
+ "metrics": [
264
+ "critic/rewards/mean"
265
+ ],
266
+ "x_axis_min": null,
267
+ "x_axis_max": null,
268
+ "y_axis_min": null,
269
+ "y_axis_max": null,
270
+ "x_log_scale": null,
271
+ "y_log_scale": null,
272
+ "x_axis_title": "Training step",
273
+ "y_axis_title": null,
274
+ "ignore_outliers": null,
275
+ "group_by": null,
276
+ "group_agg": null,
277
+ "group_area": null,
278
+ "smoothing_weight": 0.0,
279
+ "smoothing_type": "none",
280
+ "show_original_after_smoothing": null,
281
+ "limit": 2,
282
+ "expressions": null,
283
+ "plot_type": null,
284
+ "font_size": null,
285
+ "legend_position": null,
286
+ "legend_template": null,
287
+ "aggregate": false,
288
+ "x_expression": null,
289
+ "x_axis_format": null,
290
+ "point_visualization_method": null,
291
+ "override_line_widths": null,
292
+ "override_colors": null,
293
+ "override_series_titles": null,
294
+ "override_marks": null,
295
+ "legend_fields": null,
296
+ "metric_regex": null,
297
+ "use_metric_regex": null
298
+ }
299
+ },
300
+ {
301
+ "id": "178pcwwonm6",
302
+ "layout": {
303
+ "x": 16,
304
+ "y": 0,
305
+ "w": 8,
306
+ "h": 6
307
+ },
308
+ "is_auto": null,
309
+ "view_type": "Run History Line Plot",
310
+ "config": {
311
+ "chart_title": "Policy entropy",
312
+ "x_axis": "source/step",
313
+ "metrics": [
314
+ "actor/entropy_loss"
315
+ ],
316
+ "x_axis_min": null,
317
+ "x_axis_max": null,
318
+ "y_axis_min": null,
319
+ "y_axis_max": null,
320
+ "x_log_scale": null,
321
+ "y_log_scale": null,
322
+ "x_axis_title": "Training step",
323
+ "y_axis_title": null,
324
+ "ignore_outliers": null,
325
+ "group_by": null,
326
+ "group_agg": null,
327
+ "group_area": null,
328
+ "smoothing_weight": 0.0,
329
+ "smoothing_type": "none",
330
+ "show_original_after_smoothing": null,
331
+ "limit": 2,
332
+ "expressions": null,
333
+ "plot_type": null,
334
+ "font_size": null,
335
+ "legend_position": null,
336
+ "legend_template": null,
337
+ "aggregate": false,
338
+ "x_expression": null,
339
+ "x_axis_format": null,
340
+ "point_visualization_method": null,
341
+ "override_line_widths": null,
342
+ "override_colors": null,
343
+ "override_series_titles": null,
344
+ "override_marks": null,
345
+ "legend_fields": null,
346
+ "metric_regex": null,
347
+ "use_metric_regex": null
348
+ }
349
+ },
350
+ {
351
+ "id": "2ikw0as20hs",
352
+ "layout": {
353
+ "x": 0,
354
+ "y": 6,
355
+ "w": 8,
356
+ "h": 6
357
+ },
358
+ "is_auto": null,
359
+ "view_type": "Run History Line Plot",
360
+ "config": {
361
+ "chart_title": "Policy-gradient objective",
362
+ "x_axis": "source/step",
363
+ "metrics": [
364
+ "actor/pg_loss"
365
+ ],
366
+ "x_axis_min": null,
367
+ "x_axis_max": null,
368
+ "y_axis_min": null,
369
+ "y_axis_max": null,
370
+ "x_log_scale": null,
371
+ "y_log_scale": null,
372
+ "x_axis_title": "Training step",
373
+ "y_axis_title": null,
374
+ "ignore_outliers": null,
375
+ "group_by": null,
376
+ "group_agg": null,
377
+ "group_area": null,
378
+ "smoothing_weight": 0.0,
379
+ "smoothing_type": "none",
380
+ "show_original_after_smoothing": null,
381
+ "limit": 2,
382
+ "expressions": null,
383
+ "plot_type": null,
384
+ "font_size": null,
385
+ "legend_position": null,
386
+ "legend_template": null,
387
+ "aggregate": false,
388
+ "x_expression": null,
389
+ "x_axis_format": null,
390
+ "point_visualization_method": null,
391
+ "override_line_widths": null,
392
+ "override_colors": null,
393
+ "override_series_titles": null,
394
+ "override_marks": null,
395
+ "legend_fields": null,
396
+ "metric_regex": null,
397
+ "use_metric_regex": null
398
+ }
399
+ },
400
+ {
401
+ "id": "1et6nrnyu7w",
402
+ "layout": {
403
+ "x": 8,
404
+ "y": 6,
405
+ "w": 8,
406
+ "h": 6
407
+ },
408
+ "is_auto": null,
409
+ "view_type": "Run History Line Plot",
410
+ "config": {
411
+ "chart_title": "Gradient norm before clipping",
412
+ "x_axis": "source/step",
413
+ "metrics": [
414
+ "actor/grad_norm"
415
+ ],
416
+ "x_axis_min": null,
417
+ "x_axis_max": null,
418
+ "y_axis_min": null,
419
+ "y_axis_max": null,
420
+ "x_log_scale": null,
421
+ "y_log_scale": null,
422
+ "x_axis_title": "Training step",
423
+ "y_axis_title": null,
424
+ "ignore_outliers": null,
425
+ "group_by": null,
426
+ "group_agg": null,
427
+ "group_area": null,
428
+ "smoothing_weight": 0.0,
429
+ "smoothing_type": "none",
430
+ "show_original_after_smoothing": null,
431
+ "limit": 2,
432
+ "expressions": null,
433
+ "plot_type": null,
434
+ "font_size": null,
435
+ "legend_position": null,
436
+ "legend_template": null,
437
+ "aggregate": false,
438
+ "x_expression": null,
439
+ "x_axis_format": null,
440
+ "point_visualization_method": null,
441
+ "override_line_widths": null,
442
+ "override_colors": null,
443
+ "override_series_titles": null,
444
+ "override_marks": null,
445
+ "legend_fields": null,
446
+ "metric_regex": null,
447
+ "use_metric_regex": null
448
+ }
449
+ },
450
+ {
451
+ "id": "883ei15yihk",
452
+ "layout": {
453
+ "x": 16,
454
+ "y": 6,
455
+ "w": 8,
456
+ "h": 6
457
+ },
458
+ "is_auto": null,
459
+ "view_type": "Run History Line Plot",
460
+ "config": {
461
+ "chart_title": "Trainer / inference KL",
462
+ "x_axis": "source/step",
463
+ "metrics": [
464
+ "train_infer_diff/new_infer/kl"
465
+ ],
466
+ "x_axis_min": null,
467
+ "x_axis_max": null,
468
+ "y_axis_min": null,
469
+ "y_axis_max": null,
470
+ "x_log_scale": null,
471
+ "y_log_scale": null,
472
+ "x_axis_title": "Training step",
473
+ "y_axis_title": null,
474
+ "ignore_outliers": null,
475
+ "group_by": null,
476
+ "group_agg": null,
477
+ "group_area": null,
478
+ "smoothing_weight": 0.0,
479
+ "smoothing_type": "none",
480
+ "show_original_after_smoothing": null,
481
+ "limit": 2,
482
+ "expressions": null,
483
+ "plot_type": null,
484
+ "font_size": null,
485
+ "legend_position": null,
486
+ "legend_template": null,
487
+ "aggregate": false,
488
+ "x_expression": null,
489
+ "x_axis_format": null,
490
+ "point_visualization_method": null,
491
+ "override_line_widths": null,
492
+ "override_colors": null,
493
+ "override_series_titles": null,
494
+ "override_marks": null,
495
+ "legend_fields": null,
496
+ "metric_regex": null,
497
+ "use_metric_regex": null
498
+ }
499
+ },
500
+ {
501
+ "id": "26sqpwi1wes",
502
+ "layout": {
503
+ "x": 0,
504
+ "y": 12,
505
+ "w": 8,
506
+ "h": 6
507
+ },
508
+ "is_auto": null,
509
+ "view_type": "Run History Line Plot",
510
+ "config": {
511
+ "chart_title": "Mean context length (tokens)",
512
+ "x_axis": "source/step",
513
+ "metrics": [
514
+ "ctx_total_length/mean"
515
+ ],
516
+ "x_axis_min": null,
517
+ "x_axis_max": null,
518
+ "y_axis_min": null,
519
+ "y_axis_max": null,
520
+ "x_log_scale": null,
521
+ "y_log_scale": null,
522
+ "x_axis_title": "Training step",
523
+ "y_axis_title": null,
524
+ "ignore_outliers": null,
525
+ "group_by": null,
526
+ "group_agg": null,
527
+ "group_area": null,
528
+ "smoothing_weight": 0.0,
529
+ "smoothing_type": "none",
530
+ "show_original_after_smoothing": null,
531
+ "limit": 2,
532
+ "expressions": null,
533
+ "plot_type": null,
534
+ "font_size": null,
535
+ "legend_position": null,
536
+ "legend_template": null,
537
+ "aggregate": false,
538
+ "x_expression": null,
539
+ "x_axis_format": null,
540
+ "point_visualization_method": null,
541
+ "override_line_widths": null,
542
+ "override_colors": null,
543
+ "override_series_titles": null,
544
+ "override_marks": null,
545
+ "legend_fields": null,
546
+ "metric_regex": null,
547
+ "use_metric_regex": null
548
+ }
549
+ },
550
+ {
551
+ "id": "262s1vbhsjn",
552
+ "layout": {
553
+ "x": 8,
554
+ "y": 12,
555
+ "w": 8,
556
+ "h": 6
557
+ },
558
+ "is_auto": null,
559
+ "view_type": "Run History Line Plot",
560
+ "config": {
561
+ "chart_title": "Mean agent turns per trajectory",
562
+ "x_axis": "source/step",
563
+ "metrics": [
564
+ "dynsam/agg_turn/mean"
565
+ ],
566
+ "x_axis_min": null,
567
+ "x_axis_max": null,
568
+ "y_axis_min": null,
569
+ "y_axis_max": null,
570
+ "x_log_scale": null,
571
+ "y_log_scale": null,
572
+ "x_axis_title": "Training step",
573
+ "y_axis_title": null,
574
+ "ignore_outliers": null,
575
+ "group_by": null,
576
+ "group_agg": null,
577
+ "group_area": null,
578
+ "smoothing_weight": 0.0,
579
+ "smoothing_type": "none",
580
+ "show_original_after_smoothing": null,
581
+ "limit": 2,
582
+ "expressions": null,
583
+ "plot_type": null,
584
+ "font_size": null,
585
+ "legend_position": null,
586
+ "legend_template": null,
587
+ "aggregate": false,
588
+ "x_expression": null,
589
+ "x_axis_format": null,
590
+ "point_visualization_method": null,
591
+ "override_line_widths": null,
592
+ "override_colors": null,
593
+ "override_series_titles": null,
594
+ "override_marks": null,
595
+ "legend_fields": null,
596
+ "metric_regex": null,
597
+ "use_metric_regex": null
598
+ }
599
+ },
600
+ {
601
+ "id": "c9alhkb2u4w",
602
+ "layout": {
603
+ "x": 16,
604
+ "y": 12,
605
+ "w": 8,
606
+ "h": 6
607
+ },
608
+ "is_auto": null,
609
+ "view_type": "Run History Line Plot",
610
+ "config": {
611
+ "chart_title": "Tokens trained per step",
612
+ "x_axis": "source/step",
613
+ "metrics": [
614
+ "perf/total_num_tokens"
615
+ ],
616
+ "x_axis_min": null,
617
+ "x_axis_max": null,
618
+ "y_axis_min": null,
619
+ "y_axis_max": null,
620
+ "x_log_scale": null,
621
+ "y_log_scale": null,
622
+ "x_axis_title": "Training step",
623
+ "y_axis_title": null,
624
+ "ignore_outliers": null,
625
+ "group_by": null,
626
+ "group_agg": null,
627
+ "group_area": null,
628
+ "smoothing_weight": 0.0,
629
+ "smoothing_type": "none",
630
+ "show_original_after_smoothing": null,
631
+ "limit": 2,
632
+ "expressions": null,
633
+ "plot_type": null,
634
+ "font_size": null,
635
+ "legend_position": null,
636
+ "legend_template": null,
637
+ "aggregate": false,
638
+ "x_expression": null,
639
+ "x_axis_format": null,
640
+ "point_visualization_method": null,
641
+ "override_line_widths": null,
642
+ "override_colors": null,
643
+ "override_series_titles": null,
644
+ "override_marks": null,
645
+ "legend_fields": null,
646
+ "metric_regex": null,
647
+ "use_metric_regex": null
648
+ }
649
+ },
650
+ {
651
+ "id": "516fopf8fxw",
652
+ "layout": {
653
+ "x": 0,
654
+ "y": 18,
655
+ "w": 8,
656
+ "h": 6
657
+ },
658
+ "is_auto": null,
659
+ "view_type": "Run History Line Plot",
660
+ "config": {
661
+ "chart_title": "Whole step duration (seconds)",
662
+ "x_axis": "source/step",
663
+ "metrics": [
664
+ "timing_s/step"
665
+ ],
666
+ "x_axis_min": null,
667
+ "x_axis_max": null,
668
+ "y_axis_min": null,
669
+ "y_axis_max": null,
670
+ "x_log_scale": null,
671
+ "y_log_scale": null,
672
+ "x_axis_title": "Training step",
673
+ "y_axis_title": null,
674
+ "ignore_outliers": null,
675
+ "group_by": null,
676
+ "group_agg": null,
677
+ "group_area": null,
678
+ "smoothing_weight": 0.0,
679
+ "smoothing_type": "none",
680
+ "show_original_after_smoothing": null,
681
+ "limit": 2,
682
+ "expressions": null,
683
+ "plot_type": null,
684
+ "font_size": null,
685
+ "legend_position": null,
686
+ "legend_template": null,
687
+ "aggregate": false,
688
+ "x_expression": null,
689
+ "x_axis_format": null,
690
+ "point_visualization_method": null,
691
+ "override_line_widths": null,
692
+ "override_colors": null,
693
+ "override_series_titles": null,
694
+ "override_marks": null,
695
+ "legend_fields": null,
696
+ "metric_regex": null,
697
+ "use_metric_regex": null
698
+ }
699
+ },
700
+ {
701
+ "id": "1xo31hg7wzh",
702
+ "layout": {
703
+ "x": 8,
704
+ "y": 18,
705
+ "w": 8,
706
+ "h": 6
707
+ },
708
+ "is_auto": null,
709
+ "view_type": "Run History Line Plot",
710
+ "config": {
711
+ "chart_title": "Rollout generation (seconds)",
712
+ "x_axis": "source/step",
713
+ "metrics": [
714
+ "timing_s/outer_gen"
715
+ ],
716
+ "x_axis_min": null,
717
+ "x_axis_max": null,
718
+ "y_axis_min": null,
719
+ "y_axis_max": null,
720
+ "x_log_scale": null,
721
+ "y_log_scale": null,
722
+ "x_axis_title": "Training step",
723
+ "y_axis_title": null,
724
+ "ignore_outliers": null,
725
+ "group_by": null,
726
+ "group_agg": null,
727
+ "group_area": null,
728
+ "smoothing_weight": 0.0,
729
+ "smoothing_type": "none",
730
+ "show_original_after_smoothing": null,
731
+ "limit": 2,
732
+ "expressions": null,
733
+ "plot_type": null,
734
+ "font_size": null,
735
+ "legend_position": null,
736
+ "legend_template": null,
737
+ "aggregate": false,
738
+ "x_expression": null,
739
+ "x_axis_format": null,
740
+ "point_visualization_method": null,
741
+ "override_line_widths": null,
742
+ "override_colors": null,
743
+ "override_series_titles": null,
744
+ "override_marks": null,
745
+ "legend_fields": null,
746
+ "metric_regex": null,
747
+ "use_metric_regex": null
748
+ }
749
+ },
750
+ {
751
+ "id": "8ieuf44rbb",
752
+ "layout": {
753
+ "x": 16,
754
+ "y": 18,
755
+ "w": 8,
756
+ "h": 6
757
+ },
758
+ "is_auto": null,
759
+ "view_type": "Run History Line Plot",
760
+ "config": {
761
+ "chart_title": "Trainer operations (seconds)",
762
+ "x_axis": "source/step",
763
+ "metrics": [
764
+ "timing_s/trainer_ops"
765
+ ],
766
+ "x_axis_min": null,
767
+ "x_axis_max": null,
768
+ "y_axis_min": null,
769
+ "y_axis_max": null,
770
+ "x_log_scale": null,
771
+ "y_log_scale": null,
772
+ "x_axis_title": "Training step",
773
+ "y_axis_title": null,
774
+ "ignore_outliers": null,
775
+ "group_by": null,
776
+ "group_agg": null,
777
+ "group_area": null,
778
+ "smoothing_weight": 0.0,
779
+ "smoothing_type": "none",
780
+ "show_original_after_smoothing": null,
781
+ "limit": 2,
782
+ "expressions": null,
783
+ "plot_type": null,
784
+ "font_size": null,
785
+ "legend_position": null,
786
+ "legend_template": null,
787
+ "aggregate": false,
788
+ "x_expression": null,
789
+ "x_axis_format": null,
790
+ "point_visualization_method": null,
791
+ "override_line_widths": null,
792
+ "override_colors": null,
793
+ "override_series_titles": null,
794
+ "override_marks": null,
795
+ "legend_fields": null,
796
+ "metric_regex": null,
797
+ "use_metric_regex": null
798
+ }
799
+ },
800
+ {
801
+ "id": "5ldjllsb7cs",
802
+ "layout": {
803
+ "x": 0,
804
+ "y": 24,
805
+ "w": 8,
806
+ "h": 6
807
+ },
808
+ "is_auto": null,
809
+ "view_type": "Run History Line Plot",
810
+ "config": {
811
+ "chart_title": "Prompts with no successes (fraction)",
812
+ "x_axis": "source/step",
813
+ "metrics": [
814
+ "dynsam/passrate/zero"
815
+ ],
816
+ "x_axis_min": null,
817
+ "x_axis_max": null,
818
+ "y_axis_min": null,
819
+ "y_axis_max": null,
820
+ "x_log_scale": null,
821
+ "y_log_scale": null,
822
+ "x_axis_title": "Training step",
823
+ "y_axis_title": null,
824
+ "ignore_outliers": null,
825
+ "group_by": null,
826
+ "group_agg": null,
827
+ "group_area": null,
828
+ "smoothing_weight": 0.0,
829
+ "smoothing_type": "none",
830
+ "show_original_after_smoothing": null,
831
+ "limit": 2,
832
+ "expressions": null,
833
+ "plot_type": null,
834
+ "font_size": null,
835
+ "legend_position": null,
836
+ "legend_template": null,
837
+ "aggregate": false,
838
+ "x_expression": null,
839
+ "x_axis_format": null,
840
+ "point_visualization_method": null,
841
+ "override_line_widths": null,
842
+ "override_colors": null,
843
+ "override_series_titles": null,
844
+ "override_marks": null,
845
+ "legend_fields": null,
846
+ "metric_regex": null,
847
+ "use_metric_regex": null
848
+ }
849
+ },
850
+ {
851
+ "id": "1fenglqwd31",
852
+ "layout": {
853
+ "x": 8,
854
+ "y": 24,
855
+ "w": 8,
856
+ "h": 6
857
+ },
858
+ "is_auto": null,
859
+ "view_type": "Run History Line Plot",
860
+ "config": {
861
+ "chart_title": "Prompts with all attempts successful (fraction)",
862
+ "x_axis": "source/step",
863
+ "metrics": [
864
+ "dynsam/passrate/one"
865
+ ],
866
+ "x_axis_min": null,
867
+ "x_axis_max": null,
868
+ "y_axis_min": null,
869
+ "y_axis_max": null,
870
+ "x_log_scale": null,
871
+ "y_log_scale": null,
872
+ "x_axis_title": "Training step",
873
+ "y_axis_title": null,
874
+ "ignore_outliers": null,
875
+ "group_by": null,
876
+ "group_agg": null,
877
+ "group_area": null,
878
+ "smoothing_weight": 0.0,
879
+ "smoothing_type": "none",
880
+ "show_original_after_smoothing": null,
881
+ "limit": 2,
882
+ "expressions": null,
883
+ "plot_type": null,
884
+ "font_size": null,
885
+ "legend_position": null,
886
+ "legend_template": null,
887
+ "aggregate": false,
888
+ "x_expression": null,
889
+ "x_axis_format": null,
890
+ "point_visualization_method": null,
891
+ "override_line_widths": null,
892
+ "override_colors": null,
893
+ "override_series_titles": null,
894
+ "override_marks": null,
895
+ "legend_fields": null,
896
+ "metric_regex": null,
897
+ "use_metric_regex": null
898
+ }
899
+ },
900
+ {
901
+ "id": "18grageb0yp",
902
+ "layout": {
903
+ "x": 16,
904
+ "y": 24,
905
+ "w": 8,
906
+ "h": 6
907
+ },
908
+ "is_auto": null,
909
+ "view_type": "Run History Line Plot",
910
+ "config": {
911
+ "chart_title": "Infrastructure failures (fraction of sequences)",
912
+ "x_axis": "source/step",
913
+ "metrics": [
914
+ "dynsam/infra_error/seq_rate"
915
+ ],
916
+ "x_axis_min": null,
917
+ "x_axis_max": null,
918
+ "y_axis_min": null,
919
+ "y_axis_max": null,
920
+ "x_log_scale": null,
921
+ "y_log_scale": null,
922
+ "x_axis_title": "Training step",
923
+ "y_axis_title": null,
924
+ "ignore_outliers": null,
925
+ "group_by": null,
926
+ "group_agg": null,
927
+ "group_area": null,
928
+ "smoothing_weight": 0.0,
929
+ "smoothing_type": "none",
930
+ "show_original_after_smoothing": null,
931
+ "limit": 2,
932
+ "expressions": null,
933
+ "plot_type": null,
934
+ "font_size": null,
935
+ "legend_position": null,
936
+ "legend_template": null,
937
+ "aggregate": false,
938
+ "x_expression": null,
939
+ "x_axis_format": null,
940
+ "point_visualization_method": null,
941
+ "override_line_widths": null,
942
+ "override_colors": null,
943
+ "override_series_titles": null,
944
+ "override_marks": null,
945
+ "legend_fields": null,
946
+ "metric_regex": null,
947
+ "use_metric_regex": null
948
+ }
949
+ },
950
+ {
951
+ "id": "6n2giasb1lg",
952
+ "layout": {
953
+ "x": 0,
954
+ "y": 30,
955
+ "w": 8,
956
+ "h": 6
957
+ },
958
+ "is_auto": null,
959
+ "view_type": "Run History Line Plot",
960
+ "config": {
961
+ "chart_title": "Sandbox environments in flight",
962
+ "x_axis": "source/step",
963
+ "metrics": [
964
+ "env/active"
965
+ ],
966
+ "x_axis_min": null,
967
+ "x_axis_max": null,
968
+ "y_axis_min": null,
969
+ "y_axis_max": null,
970
+ "x_log_scale": null,
971
+ "y_log_scale": null,
972
+ "x_axis_title": "Training step",
973
+ "y_axis_title": null,
974
+ "ignore_outliers": null,
975
+ "group_by": null,
976
+ "group_agg": null,
977
+ "group_area": null,
978
+ "smoothing_weight": 0.0,
979
+ "smoothing_type": "none",
980
+ "show_original_after_smoothing": null,
981
+ "limit": 2,
982
+ "expressions": null,
983
+ "plot_type": null,
984
+ "font_size": null,
985
+ "legend_position": null,
986
+ "legend_template": null,
987
+ "aggregate": false,
988
+ "x_expression": null,
989
+ "x_axis_format": null,
990
+ "point_visualization_method": null,
991
+ "override_line_widths": null,
992
+ "override_colors": null,
993
+ "override_series_titles": null,
994
+ "override_marks": null,
995
+ "legend_fields": null,
996
+ "metric_regex": null,
997
+ "use_metric_regex": null
998
+ }
999
+ },
1000
+ {
1001
+ "id": "2abqib8y84d",
1002
+ "layout": {
1003
+ "x": 8,
1004
+ "y": 30,
1005
+ "w": 8,
1006
+ "h": 6
1007
+ },
1008
+ "is_auto": null,
1009
+ "view_type": "Run History Line Plot",
1010
+ "config": {
1011
+ "chart_title": "Mean policy staleness (versions)",
1012
+ "x_axis": "source/step",
1013
+ "metrics": [
1014
+ "partial/avg_staleness"
1015
+ ],
1016
+ "x_axis_min": null,
1017
+ "x_axis_max": null,
1018
+ "y_axis_min": null,
1019
+ "y_axis_max": null,
1020
+ "x_log_scale": null,
1021
+ "y_log_scale": null,
1022
+ "x_axis_title": "Training step",
1023
+ "y_axis_title": null,
1024
+ "ignore_outliers": null,
1025
+ "group_by": null,
1026
+ "group_agg": null,
1027
+ "group_area": null,
1028
+ "smoothing_weight": 0.0,
1029
+ "smoothing_type": "none",
1030
+ "show_original_after_smoothing": null,
1031
+ "limit": 2,
1032
+ "expressions": null,
1033
+ "plot_type": null,
1034
+ "font_size": null,
1035
+ "legend_position": null,
1036
+ "legend_template": null,
1037
+ "aggregate": false,
1038
+ "x_expression": null,
1039
+ "x_axis_format": null,
1040
+ "point_visualization_method": null,
1041
+ "override_line_widths": null,
1042
+ "override_colors": null,
1043
+ "override_series_titles": null,
1044
+ "override_marks": null,
1045
+ "legend_fields": null,
1046
+ "metric_regex": null,
1047
+ "use_metric_regex": null
1048
+ }
1049
+ },
1050
+ {
1051
+ "id": "2q7szek853u",
1052
+ "layout": {
1053
+ "x": 16,
1054
+ "y": 30,
1055
+ "w": 8,
1056
+ "h": 6
1057
+ },
1058
+ "is_auto": null,
1059
+ "view_type": "Run History Line Plot",
1060
+ "config": {
1061
+ "chart_title": "Prompts with measurable pass rate",
1062
+ "x_axis": "source/step",
1063
+ "metrics": [
1064
+ "dynsam/num_measurable"
1065
+ ],
1066
+ "x_axis_min": null,
1067
+ "x_axis_max": null,
1068
+ "y_axis_min": null,
1069
+ "y_axis_max": null,
1070
+ "x_log_scale": null,
1071
+ "y_log_scale": null,
1072
+ "x_axis_title": "Training step",
1073
+ "y_axis_title": null,
1074
+ "ignore_outliers": null,
1075
+ "group_by": null,
1076
+ "group_agg": null,
1077
+ "group_area": null,
1078
+ "smoothing_weight": 0.0,
1079
+ "smoothing_type": "none",
1080
+ "show_original_after_smoothing": null,
1081
+ "limit": 2,
1082
+ "expressions": null,
1083
+ "plot_type": null,
1084
+ "font_size": null,
1085
+ "legend_position": null,
1086
+ "legend_template": null,
1087
+ "aggregate": false,
1088
+ "x_expression": null,
1089
+ "x_axis_format": null,
1090
+ "point_visualization_method": null,
1091
+ "override_line_widths": null,
1092
+ "override_colors": null,
1093
+ "override_series_titles": null,
1094
+ "override_marks": null,
1095
+ "legend_fields": null,
1096
+ "metric_regex": null,
1097
+ "use_metric_regex": null
1098
+ }
1099
+ }
1100
+ ],
1101
+ "type": "grid",
1102
+ "flow_config": {
1103
+ "snap_to_columns": true,
1104
+ "columns_per_page": 3,
1105
+ "rows_per_page": 2,
1106
+ "gutter_width": 16,
1107
+ "box_width": 460,
1108
+ "box_height": 300
1109
+ },
1110
+ "sorted": 0,
1111
+ "local_panel_settings": {
1112
+ "smoothing_weight": 0,
1113
+ "smoothing_type": "exponential",
1114
+ "x_axis": "_step",
1115
+ "ignore_outliers": false,
1116
+ "use_runs_table_grouping_in_panels": true,
1117
+ "x_axis_min": null,
1118
+ "x_axis_max": null,
1119
+ "color_run_names": null,
1120
+ "max_runs": null,
1121
+ "point_visualization_method": null,
1122
+ "suppress_legends": null,
1123
+ "tooltip_number_of_runs": null,
1124
+ "smoothing_active": true,
1125
+ "x_axis_active": false
1126
+ },
1127
+ "pinned": null
1128
+ },
1129
+ "custom_run_colors": {}
1130
+ }
1131
+ },
1132
+ {
1133
+ "type": "heading",
1134
+ "children": [
1135
+ {
1136
+ "text": "Training curves: elapsed hours from each run's start",
1137
+ "inline_code": null,
1138
+ "inline_comments": null
1139
+ }
1140
+ ],
1141
+ "collapsed_children": null,
1142
+ "level": 2
1143
+ },
1144
+ {
1145
+ "type": "panel-grid",
1146
+ "children": [
1147
+ {
1148
+ "text": "",
1149
+ "inline_code": null,
1150
+ "inline_comments": null
1151
+ }
1152
+ ],
1153
+ "metadata": {
1154
+ "open_viz": true,
1155
+ "open_run_set": 0,
1156
+ "name": "unused-name",
1157
+ "run_sets": [
1158
+ {
1159
+ "id": "cz5evs1g8j",
1160
+ "run_feed": {
1161
+ "version": 2,
1162
+ "column_visible": {},
1163
+ "column_pinned": {},
1164
+ "column_widths": {},
1165
+ "column_order": [],
1166
+ "page_size": 10,
1167
+ "only_show_selected": false,
1168
+ "lock_columns": null
1169
+ },
1170
+ "enabled": true,
1171
+ "project": {
1172
+ "name": "mimo-rl-observatory",
1173
+ "entity_name": "RESMP-DEV",
1174
+ "id": "UHJvamVjdEludGVybmFsSWQ6NDUxNDM5MTA="
1175
+ },
1176
+ "name": "training",
1177
+ "search": {
1178
+ "query": "",
1179
+ "is_regex": null
1180
+ },
1181
+ "filters": {
1182
+ "filterFormat": "filterV2",
1183
+ "filters": [
1184
+ {
1185
+ "key": {
1186
+ "section": "config",
1187
+ "name": "stream_kind"
1188
+ },
1189
+ "op": "=",
1190
+ "value": "training",
1191
+ "disabled": false
1192
+ },
1193
+ {
1194
+ "key": {
1195
+ "section": "config",
1196
+ "name": "is_current"
1197
+ },
1198
+ "op": "=",
1199
+ "value": true,
1200
+ "disabled": false,
1201
+ "connector": "AND"
1202
+ }
1203
+ ]
1204
+ },
1205
+ "grouping": [],
1206
+ "sort": {
1207
+ "keys": [
1208
+ {
1209
+ "key": {
1210
+ "section": "run",
1211
+ "name": "createdAt"
1212
+ },
1213
+ "ascending": false
1214
+ }
1215
+ ]
1216
+ },
1217
+ "selections": {
1218
+ "root": 1,
1219
+ "bounds": [],
1220
+ "tree": []
1221
+ },
1222
+ "expanded_row_addresses": [],
1223
+ "baseline_run_id": null,
1224
+ "pinned_run_ids": null
1225
+ }
1226
+ ],
1227
+ "hide_run_sets": false,
1228
+ "panels": {
1229
+ "views": {
1230
+ "0": {
1231
+ "name": "Panels",
1232
+ "defaults": [],
1233
+ "config": []
1234
+ }
1235
+ },
1236
+ "tabs": [
1237
+ "0"
1238
+ ]
1239
+ },
1240
+ "panel_bank_config": {
1241
+ "state": 0,
1242
+ "settings": {
1243
+ "auto_organize_prefix": 2,
1244
+ "show_empty_sections": false,
1245
+ "sort_alphabetically": false,
1246
+ "search_query": null,
1247
+ "search_history": null,
1248
+ "auto_expand_search_results": null
1249
+ },
1250
+ "sections": [
1251
+ {
1252
+ "id": null,
1253
+ "name": "Hidden Panels",
1254
+ "is_open": false,
1255
+ "type": "flow",
1256
+ "flow_config": {
1257
+ "snap_to_columns": true,
1258
+ "columns_per_page": 3,
1259
+ "rows_per_page": 2,
1260
+ "gutter_width": 16,
1261
+ "box_width": 460,
1262
+ "box_height": 300
1263
+ },
1264
+ "sorted": 0,
1265
+ "local_panel_settings": {
1266
+ "smoothing_weight": 0,
1267
+ "smoothing_type": "exponential",
1268
+ "x_axis": "_step",
1269
+ "ignore_outliers": false,
1270
+ "use_runs_table_grouping_in_panels": true,
1271
+ "x_axis_min": null,
1272
+ "x_axis_max": null,
1273
+ "color_run_names": null,
1274
+ "max_runs": null,
1275
+ "point_visualization_method": null,
1276
+ "suppress_legends": null,
1277
+ "tooltip_number_of_runs": null,
1278
+ "smoothing_active": true,
1279
+ "x_axis_active": false
1280
+ },
1281
+ "panels": [],
1282
+ "pinned": null,
1283
+ "is_panels_auto": null,
1284
+ "default_name": null
1285
+ }
1286
+ ],
1287
+ "panel_config_overrides": null,
1288
+ "panel_placement_overrides": null
1289
+ },
1290
+ "panel_bank_section_config": {
1291
+ "name": "Report Panels",
1292
+ "is_open": false,
1293
+ "panels": [
1294
+ {
1295
+ "id": "tqg20o7o9m",
1296
+ "layout": {
1297
+ "x": 0,
1298
+ "y": 0,
1299
+ "w": 8,
1300
+ "h": 6
1301
+ },
1302
+ "is_auto": null,
1303
+ "view_type": "Run History Line Plot",
1304
+ "config": {
1305
+ "chart_title": "Mean prompt pass rate (fraction)",
1306
+ "x_axis": "source/elapsed_hours",
1307
+ "metrics": [
1308
+ "dynsam/avg@n"
1309
+ ],
1310
+ "x_axis_min": null,
1311
+ "x_axis_max": null,
1312
+ "y_axis_min": null,
1313
+ "y_axis_max": null,
1314
+ "x_log_scale": null,
1315
+ "y_log_scale": null,
1316
+ "x_axis_title": "Hours since publisher run start",
1317
+ "y_axis_title": null,
1318
+ "ignore_outliers": null,
1319
+ "group_by": null,
1320
+ "group_agg": null,
1321
+ "group_area": null,
1322
+ "smoothing_weight": 0.0,
1323
+ "smoothing_type": "none",
1324
+ "show_original_after_smoothing": null,
1325
+ "limit": 2,
1326
+ "expressions": null,
1327
+ "plot_type": null,
1328
+ "font_size": null,
1329
+ "legend_position": null,
1330
+ "legend_template": null,
1331
+ "aggregate": false,
1332
+ "x_expression": null,
1333
+ "x_axis_format": null,
1334
+ "point_visualization_method": null,
1335
+ "override_line_widths": null,
1336
+ "override_colors": null,
1337
+ "override_series_titles": null,
1338
+ "override_marks": null,
1339
+ "legend_fields": null,
1340
+ "metric_regex": null,
1341
+ "use_metric_regex": null
1342
+ }
1343
+ },
1344
+ {
1345
+ "id": "2pjmv5d0a3i",
1346
+ "layout": {
1347
+ "x": 8,
1348
+ "y": 0,
1349
+ "w": 8,
1350
+ "h": 6
1351
+ },
1352
+ "is_auto": null,
1353
+ "view_type": "Run History Line Plot",
1354
+ "config": {
1355
+ "chart_title": "Mean trajectory reward",
1356
+ "x_axis": "source/elapsed_hours",
1357
+ "metrics": [
1358
+ "critic/rewards/mean"
1359
+ ],
1360
+ "x_axis_min": null,
1361
+ "x_axis_max": null,
1362
+ "y_axis_min": null,
1363
+ "y_axis_max": null,
1364
+ "x_log_scale": null,
1365
+ "y_log_scale": null,
1366
+ "x_axis_title": "Hours since publisher run start",
1367
+ "y_axis_title": null,
1368
+ "ignore_outliers": null,
1369
+ "group_by": null,
1370
+ "group_agg": null,
1371
+ "group_area": null,
1372
+ "smoothing_weight": 0.0,
1373
+ "smoothing_type": "none",
1374
+ "show_original_after_smoothing": null,
1375
+ "limit": 2,
1376
+ "expressions": null,
1377
+ "plot_type": null,
1378
+ "font_size": null,
1379
+ "legend_position": null,
1380
+ "legend_template": null,
1381
+ "aggregate": false,
1382
+ "x_expression": null,
1383
+ "x_axis_format": null,
1384
+ "point_visualization_method": null,
1385
+ "override_line_widths": null,
1386
+ "override_colors": null,
1387
+ "override_series_titles": null,
1388
+ "override_marks": null,
1389
+ "legend_fields": null,
1390
+ "metric_regex": null,
1391
+ "use_metric_regex": null
1392
+ }
1393
+ },
1394
+ {
1395
+ "id": "2h1w92vq5zq",
1396
+ "layout": {
1397
+ "x": 16,
1398
+ "y": 0,
1399
+ "w": 8,
1400
+ "h": 6
1401
+ },
1402
+ "is_auto": null,
1403
+ "view_type": "Run History Line Plot",
1404
+ "config": {
1405
+ "chart_title": "Policy entropy",
1406
+ "x_axis": "source/elapsed_hours",
1407
+ "metrics": [
1408
+ "actor/entropy_loss"
1409
+ ],
1410
+ "x_axis_min": null,
1411
+ "x_axis_max": null,
1412
+ "y_axis_min": null,
1413
+ "y_axis_max": null,
1414
+ "x_log_scale": null,
1415
+ "y_log_scale": null,
1416
+ "x_axis_title": "Hours since publisher run start",
1417
+ "y_axis_title": null,
1418
+ "ignore_outliers": null,
1419
+ "group_by": null,
1420
+ "group_agg": null,
1421
+ "group_area": null,
1422
+ "smoothing_weight": 0.0,
1423
+ "smoothing_type": "none",
1424
+ "show_original_after_smoothing": null,
1425
+ "limit": 2,
1426
+ "expressions": null,
1427
+ "plot_type": null,
1428
+ "font_size": null,
1429
+ "legend_position": null,
1430
+ "legend_template": null,
1431
+ "aggregate": false,
1432
+ "x_expression": null,
1433
+ "x_axis_format": null,
1434
+ "point_visualization_method": null,
1435
+ "override_line_widths": null,
1436
+ "override_colors": null,
1437
+ "override_series_titles": null,
1438
+ "override_marks": null,
1439
+ "legend_fields": null,
1440
+ "metric_regex": null,
1441
+ "use_metric_regex": null
1442
+ }
1443
+ }
1444
+ ],
1445
+ "type": "grid",
1446
+ "flow_config": {
1447
+ "snap_to_columns": true,
1448
+ "columns_per_page": 3,
1449
+ "rows_per_page": 2,
1450
+ "gutter_width": 16,
1451
+ "box_width": 460,
1452
+ "box_height": 300
1453
+ },
1454
+ "sorted": 0,
1455
+ "local_panel_settings": {
1456
+ "smoothing_weight": 0,
1457
+ "smoothing_type": "exponential",
1458
+ "x_axis": "_step",
1459
+ "ignore_outliers": false,
1460
+ "use_runs_table_grouping_in_panels": true,
1461
+ "x_axis_min": null,
1462
+ "x_axis_max": null,
1463
+ "color_run_names": null,
1464
+ "max_runs": null,
1465
+ "point_visualization_method": null,
1466
+ "suppress_legends": null,
1467
+ "tooltip_number_of_runs": null,
1468
+ "smoothing_active": true,
1469
+ "x_axis_active": false
1470
+ },
1471
+ "pinned": null
1472
+ },
1473
+ "custom_run_colors": {}
1474
+ }
1475
+ },
1476
+ {
1477
+ "type": "heading",
1478
+ "children": [
1479
+ {
1480
+ "text": "Offline benchmark results",
1481
+ "inline_code": null,
1482
+ "inline_comments": null
1483
+ }
1484
+ ],
1485
+ "collapsed_children": null,
1486
+ "level": 2
1487
+ },
1488
+ {
1489
+ "type": "markdown-block",
1490
+ "children": [
1491
+ {
1492
+ "text": "",
1493
+ "inline_code": null,
1494
+ "inline_comments": null
1495
+ }
1496
+ ],
1497
+ "content": "Late benchmark results have their own histories. A revised benchmark snapshot supersedes the previous snapshot. It does not append fake training steps. DeepSWE uses the publisher's mini-swe-agent, avg@3 evaluation setting."
1498
+ },
1499
+ {
1500
+ "type": "panel-grid",
1501
+ "children": [
1502
+ {
1503
+ "text": "",
1504
+ "inline_code": null,
1505
+ "inline_comments": null
1506
+ }
1507
+ ],
1508
+ "metadata": {
1509
+ "open_viz": true,
1510
+ "open_run_set": 0,
1511
+ "name": "unused-name",
1512
+ "run_sets": [
1513
+ {
1514
+ "id": "1ermmj4owrm",
1515
+ "run_feed": {
1516
+ "version": 2,
1517
+ "column_visible": {},
1518
+ "column_pinned": {},
1519
+ "column_widths": {},
1520
+ "column_order": [],
1521
+ "page_size": 10,
1522
+ "only_show_selected": false,
1523
+ "lock_columns": null
1524
+ },
1525
+ "enabled": true,
1526
+ "project": {
1527
+ "name": "mimo-rl-observatory",
1528
+ "entity_name": "RESMP-DEV",
1529
+ "id": "UHJvamVjdEludGVybmFsSWQ6NDUxNDM5MTA="
1530
+ },
1531
+ "name": "benchmarks",
1532
+ "search": {
1533
+ "query": "",
1534
+ "is_regex": null
1535
+ },
1536
+ "filters": {
1537
+ "filterFormat": "filterV2",
1538
+ "filters": [
1539
+ {
1540
+ "key": {
1541
+ "section": "config",
1542
+ "name": "stream_kind"
1543
+ },
1544
+ "op": "=",
1545
+ "value": "benchmarks",
1546
+ "disabled": false
1547
+ },
1548
+ {
1549
+ "key": {
1550
+ "section": "config",
1551
+ "name": "is_current"
1552
+ },
1553
+ "op": "=",
1554
+ "value": true,
1555
+ "disabled": false,
1556
+ "connector": "AND"
1557
+ }
1558
+ ]
1559
+ },
1560
+ "grouping": [],
1561
+ "sort": {
1562
+ "keys": [
1563
+ {
1564
+ "key": {
1565
+ "section": "run",
1566
+ "name": "createdAt"
1567
+ },
1568
+ "ascending": false
1569
+ }
1570
+ ]
1571
+ },
1572
+ "selections": {
1573
+ "root": 1,
1574
+ "bounds": [],
1575
+ "tree": []
1576
+ },
1577
+ "expanded_row_addresses": [],
1578
+ "baseline_run_id": null,
1579
+ "pinned_run_ids": null
1580
+ }
1581
+ ],
1582
+ "hide_run_sets": false,
1583
+ "panels": {
1584
+ "views": {
1585
+ "0": {
1586
+ "name": "Panels",
1587
+ "defaults": [],
1588
+ "config": []
1589
+ }
1590
+ },
1591
+ "tabs": [
1592
+ "0"
1593
+ ]
1594
+ },
1595
+ "panel_bank_config": {
1596
+ "state": 0,
1597
+ "settings": {
1598
+ "auto_organize_prefix": 2,
1599
+ "show_empty_sections": false,
1600
+ "sort_alphabetically": false,
1601
+ "search_query": null,
1602
+ "search_history": null,
1603
+ "auto_expand_search_results": null
1604
+ },
1605
+ "sections": [
1606
+ {
1607
+ "id": null,
1608
+ "name": "Hidden Panels",
1609
+ "is_open": false,
1610
+ "type": "flow",
1611
+ "flow_config": {
1612
+ "snap_to_columns": true,
1613
+ "columns_per_page": 3,
1614
+ "rows_per_page": 2,
1615
+ "gutter_width": 16,
1616
+ "box_width": 460,
1617
+ "box_height": 300
1618
+ },
1619
+ "sorted": 0,
1620
+ "local_panel_settings": {
1621
+ "smoothing_weight": 0,
1622
+ "smoothing_type": "exponential",
1623
+ "x_axis": "_step",
1624
+ "ignore_outliers": false,
1625
+ "use_runs_table_grouping_in_panels": true,
1626
+ "x_axis_min": null,
1627
+ "x_axis_max": null,
1628
+ "color_run_names": null,
1629
+ "max_runs": null,
1630
+ "point_visualization_method": null,
1631
+ "suppress_legends": null,
1632
+ "tooltip_number_of_runs": null,
1633
+ "smoothing_active": true,
1634
+ "x_axis_active": false
1635
+ },
1636
+ "panels": [],
1637
+ "pinned": null,
1638
+ "is_panels_auto": null,
1639
+ "default_name": null
1640
+ }
1641
+ ],
1642
+ "panel_config_overrides": null,
1643
+ "panel_placement_overrides": null
1644
+ },
1645
+ "panel_bank_section_config": {
1646
+ "name": "Report Panels",
1647
+ "is_open": false,
1648
+ "panels": [
1649
+ {
1650
+ "id": "43ew27h2jw4",
1651
+ "layout": {
1652
+ "x": 0,
1653
+ "y": 0,
1654
+ "w": 8,
1655
+ "h": 6
1656
+ },
1657
+ "is_auto": null,
1658
+ "view_type": "Run History Line Plot",
1659
+ "config": {
1660
+ "chart_title": "DeepSWE v1.1 — publisher score",
1661
+ "x_axis": "source/step",
1662
+ "metrics": [
1663
+ "benchmark/deepswe"
1664
+ ],
1665
+ "x_axis_min": null,
1666
+ "x_axis_max": null,
1667
+ "y_axis_min": null,
1668
+ "y_axis_max": null,
1669
+ "x_log_scale": null,
1670
+ "y_log_scale": null,
1671
+ "x_axis_title": "Training step",
1672
+ "y_axis_title": null,
1673
+ "ignore_outliers": null,
1674
+ "group_by": null,
1675
+ "group_agg": null,
1676
+ "group_area": null,
1677
+ "smoothing_weight": 0.0,
1678
+ "smoothing_type": "none",
1679
+ "show_original_after_smoothing": null,
1680
+ "limit": 2,
1681
+ "expressions": null,
1682
+ "plot_type": null,
1683
+ "font_size": null,
1684
+ "legend_position": null,
1685
+ "legend_template": null,
1686
+ "aggregate": false,
1687
+ "x_expression": null,
1688
+ "x_axis_format": null,
1689
+ "point_visualization_method": null,
1690
+ "override_line_widths": null,
1691
+ "override_colors": null,
1692
+ "override_series_titles": null,
1693
+ "override_marks": null,
1694
+ "legend_fields": null,
1695
+ "metric_regex": null,
1696
+ "use_metric_regex": null
1697
+ }
1698
+ }
1699
+ ],
1700
+ "type": "grid",
1701
+ "flow_config": {
1702
+ "snap_to_columns": true,
1703
+ "columns_per_page": 3,
1704
+ "rows_per_page": 2,
1705
+ "gutter_width": 16,
1706
+ "box_width": 460,
1707
+ "box_height": 300
1708
+ },
1709
+ "sorted": 0,
1710
+ "local_panel_settings": {
1711
+ "smoothing_weight": 0,
1712
+ "smoothing_type": "exponential",
1713
+ "x_axis": "_step",
1714
+ "ignore_outliers": false,
1715
+ "use_runs_table_grouping_in_panels": true,
1716
+ "x_axis_min": null,
1717
+ "x_axis_max": null,
1718
+ "color_run_names": null,
1719
+ "max_runs": null,
1720
+ "point_visualization_method": null,
1721
+ "suppress_legends": null,
1722
+ "tooltip_number_of_runs": null,
1723
+ "smoothing_active": true,
1724
+ "x_axis_active": false
1725
+ },
1726
+ "pinned": null
1727
+ },
1728
+ "custom_run_colors": {}
1729
+ }
1730
+ },
1731
+ {
1732
+ "type": "heading",
1733
+ "children": [
1734
+ {
1735
+ "text": "Sampler progress: elapsed hours",
1736
+ "inline_code": null,
1737
+ "inline_comments": null
1738
+ }
1739
+ ],
1740
+ "collapsed_children": null,
1741
+ "level": 2
1742
+ },
1743
+ {
1744
+ "type": "markdown-block",
1745
+ "children": [
1746
+ {
1747
+ "text": "",
1748
+ "inline_code": null,
1749
+ "inline_comments": null
1750
+ }
1751
+ ],
1752
+ "content": "These are report-level measurements, separate from completed training steps. Older reports may lack per-source details. The 25 source IDs are anonymized; their underlying datasets are not identified. Historical report corrections remain in the local archive; the mirror appends newly timestamped reports."
1753
+ },
1754
+ {
1755
+ "type": "panel-grid",
1756
+ "children": [
1757
+ {
1758
+ "text": "",
1759
+ "inline_code": null,
1760
+ "inline_comments": null
1761
+ }
1762
+ ],
1763
+ "metadata": {
1764
+ "open_viz": true,
1765
+ "open_run_set": 0,
1766
+ "name": "unused-name",
1767
+ "run_sets": [
1768
+ {
1769
+ "id": "2hmhlripqyc",
1770
+ "run_feed": {
1771
+ "version": 2,
1772
+ "column_visible": {},
1773
+ "column_pinned": {},
1774
+ "column_widths": {},
1775
+ "column_order": [],
1776
+ "page_size": 10,
1777
+ "only_show_selected": false,
1778
+ "lock_columns": null
1779
+ },
1780
+ "enabled": true,
1781
+ "project": {
1782
+ "name": "mimo-rl-observatory",
1783
+ "entity_name": "RESMP-DEV",
1784
+ "id": "UHJvamVjdEludGVybmFsSWQ6NDUxNDM5MTA="
1785
+ },
1786
+ "name": "sampler",
1787
+ "search": {
1788
+ "query": "",
1789
+ "is_regex": null
1790
+ },
1791
+ "filters": {
1792
+ "filterFormat": "filterV2",
1793
+ "filters": [
1794
+ {
1795
+ "key": {
1796
+ "section": "config",
1797
+ "name": "stream_kind"
1798
+ },
1799
+ "op": "=",
1800
+ "value": "sampler",
1801
+ "disabled": false
1802
+ },
1803
+ {
1804
+ "key": {
1805
+ "section": "config",
1806
+ "name": "is_current"
1807
+ },
1808
+ "op": "=",
1809
+ "value": true,
1810
+ "disabled": false,
1811
+ "connector": "AND"
1812
+ }
1813
+ ]
1814
+ },
1815
+ "grouping": [],
1816
+ "sort": {
1817
+ "keys": [
1818
+ {
1819
+ "key": {
1820
+ "section": "run",
1821
+ "name": "createdAt"
1822
+ },
1823
+ "ascending": false
1824
+ }
1825
+ ]
1826
+ },
1827
+ "selections": {
1828
+ "root": 1,
1829
+ "bounds": [],
1830
+ "tree": []
1831
+ },
1832
+ "expanded_row_addresses": [],
1833
+ "baseline_run_id": null,
1834
+ "pinned_run_ids": null
1835
+ }
1836
+ ],
1837
+ "hide_run_sets": false,
1838
+ "panels": {
1839
+ "views": {
1840
+ "0": {
1841
+ "name": "Panels",
1842
+ "defaults": [],
1843
+ "config": []
1844
+ }
1845
+ },
1846
+ "tabs": [
1847
+ "0"
1848
+ ]
1849
+ },
1850
+ "panel_bank_config": {
1851
+ "state": 0,
1852
+ "settings": {
1853
+ "auto_organize_prefix": 2,
1854
+ "show_empty_sections": false,
1855
+ "sort_alphabetically": false,
1856
+ "search_query": null,
1857
+ "search_history": null,
1858
+ "auto_expand_search_results": null
1859
+ },
1860
+ "sections": [
1861
+ {
1862
+ "id": null,
1863
+ "name": "Hidden Panels",
1864
+ "is_open": false,
1865
+ "type": "flow",
1866
+ "flow_config": {
1867
+ "snap_to_columns": true,
1868
+ "columns_per_page": 3,
1869
+ "rows_per_page": 2,
1870
+ "gutter_width": 16,
1871
+ "box_width": 460,
1872
+ "box_height": 300
1873
+ },
1874
+ "sorted": 0,
1875
+ "local_panel_settings": {
1876
+ "smoothing_weight": 0,
1877
+ "smoothing_type": "exponential",
1878
+ "x_axis": "_step",
1879
+ "ignore_outliers": false,
1880
+ "use_runs_table_grouping_in_panels": true,
1881
+ "x_axis_min": null,
1882
+ "x_axis_max": null,
1883
+ "color_run_names": null,
1884
+ "max_runs": null,
1885
+ "point_visualization_method": null,
1886
+ "suppress_legends": null,
1887
+ "tooltip_number_of_runs": null,
1888
+ "smoothing_active": true,
1889
+ "x_axis_active": false
1890
+ },
1891
+ "panels": [],
1892
+ "pinned": null,
1893
+ "is_panels_auto": null,
1894
+ "default_name": null
1895
+ }
1896
+ ],
1897
+ "panel_config_overrides": null,
1898
+ "panel_placement_overrides": null
1899
+ },
1900
+ "panel_bank_section_config": {
1901
+ "name": "Report Panels",
1902
+ "is_open": false,
1903
+ "panels": [
1904
+ {
1905
+ "id": "wn69n515sq",
1906
+ "layout": {
1907
+ "x": 0,
1908
+ "y": 0,
1909
+ "w": 8,
1910
+ "h": 6
1911
+ },
1912
+ "is_auto": null,
1913
+ "view_type": "Run History Line Plot",
1914
+ "config": {
1915
+ "chart_title": "Accepted prompts",
1916
+ "x_axis": "source/elapsed_hours",
1917
+ "metrics": [
1918
+ "sampler/accept"
1919
+ ],
1920
+ "x_axis_min": null,
1921
+ "x_axis_max": null,
1922
+ "y_axis_min": null,
1923
+ "y_axis_max": null,
1924
+ "x_log_scale": null,
1925
+ "y_log_scale": null,
1926
+ "x_axis_title": "Hours since publisher run start",
1927
+ "y_axis_title": null,
1928
+ "ignore_outliers": null,
1929
+ "group_by": null,
1930
+ "group_agg": null,
1931
+ "group_area": null,
1932
+ "smoothing_weight": 0.0,
1933
+ "smoothing_type": "none",
1934
+ "show_original_after_smoothing": null,
1935
+ "limit": 2,
1936
+ "expressions": null,
1937
+ "plot_type": null,
1938
+ "font_size": null,
1939
+ "legend_position": null,
1940
+ "legend_template": null,
1941
+ "aggregate": false,
1942
+ "x_expression": null,
1943
+ "x_axis_format": null,
1944
+ "point_visualization_method": null,
1945
+ "override_line_widths": null,
1946
+ "override_colors": null,
1947
+ "override_series_titles": null,
1948
+ "override_marks": null,
1949
+ "legend_fields": null,
1950
+ "metric_regex": null,
1951
+ "use_metric_regex": null
1952
+ }
1953
+ },
1954
+ {
1955
+ "id": "sqgktdn1qz",
1956
+ "layout": {
1957
+ "x": 8,
1958
+ "y": 0,
1959
+ "w": 8,
1960
+ "h": 6
1961
+ },
1962
+ "is_auto": null,
1963
+ "view_type": "Run History Line Plot",
1964
+ "config": {
1965
+ "chart_title": "Sampler pass rate (fraction)",
1966
+ "x_axis": "source/elapsed_hours",
1967
+ "metrics": [
1968
+ "sampler/passrate"
1969
+ ],
1970
+ "x_axis_min": null,
1971
+ "x_axis_max": null,
1972
+ "y_axis_min": null,
1973
+ "y_axis_max": null,
1974
+ "x_log_scale": null,
1975
+ "y_log_scale": null,
1976
+ "x_axis_title": "Hours since publisher run start",
1977
+ "y_axis_title": null,
1978
+ "ignore_outliers": null,
1979
+ "group_by": null,
1980
+ "group_agg": null,
1981
+ "group_area": null,
1982
+ "smoothing_weight": 0.0,
1983
+ "smoothing_type": "none",
1984
+ "show_original_after_smoothing": null,
1985
+ "limit": 2,
1986
+ "expressions": null,
1987
+ "plot_type": null,
1988
+ "font_size": null,
1989
+ "legend_position": null,
1990
+ "legend_template": null,
1991
+ "aggregate": false,
1992
+ "x_expression": null,
1993
+ "x_axis_format": null,
1994
+ "point_visualization_method": null,
1995
+ "override_line_widths": null,
1996
+ "override_colors": null,
1997
+ "override_series_titles": null,
1998
+ "override_marks": null,
1999
+ "legend_fields": null,
2000
+ "metric_regex": null,
2001
+ "use_metric_regex": null
2002
+ }
2003
+ },
2004
+ {
2005
+ "id": "6p5t91d2sag",
2006
+ "layout": {
2007
+ "x": 16,
2008
+ "y": 0,
2009
+ "w": 8,
2010
+ "h": 6
2011
+ },
2012
+ "is_auto": null,
2013
+ "view_type": "Run History Line Plot",
2014
+ "config": {
2015
+ "chart_title": "Working sampler count",
2016
+ "x_axis": "source/elapsed_hours",
2017
+ "metrics": [
2018
+ "sampler/working"
2019
+ ],
2020
+ "x_axis_min": null,
2021
+ "x_axis_max": null,
2022
+ "y_axis_min": null,
2023
+ "y_axis_max": null,
2024
+ "x_log_scale": null,
2025
+ "y_log_scale": null,
2026
+ "x_axis_title": "Hours since publisher run start",
2027
+ "y_axis_title": null,
2028
+ "ignore_outliers": null,
2029
+ "group_by": null,
2030
+ "group_agg": null,
2031
+ "group_area": null,
2032
+ "smoothing_weight": 0.0,
2033
+ "smoothing_type": "none",
2034
+ "show_original_after_smoothing": null,
2035
+ "limit": 2,
2036
+ "expressions": null,
2037
+ "plot_type": null,
2038
+ "font_size": null,
2039
+ "legend_position": null,
2040
+ "legend_template": null,
2041
+ "aggregate": false,
2042
+ "x_expression": null,
2043
+ "x_axis_format": null,
2044
+ "point_visualization_method": null,
2045
+ "override_line_widths": null,
2046
+ "override_colors": null,
2047
+ "override_series_titles": null,
2048
+ "override_marks": null,
2049
+ "legend_fields": null,
2050
+ "metric_regex": null,
2051
+ "use_metric_regex": null
2052
+ }
2053
+ },
2054
+ {
2055
+ "id": "22akdb1ars1",
2056
+ "layout": {
2057
+ "x": 0,
2058
+ "y": 6,
2059
+ "w": 8,
2060
+ "h": 6
2061
+ },
2062
+ "is_auto": null,
2063
+ "view_type": "Run History Line Plot",
2064
+ "config": {
2065
+ "chart_title": "Remaining sampler count",
2066
+ "x_axis": "source/elapsed_hours",
2067
+ "metrics": [
2068
+ "sampler/remain"
2069
+ ],
2070
+ "x_axis_min": null,
2071
+ "x_axis_max": null,
2072
+ "y_axis_min": null,
2073
+ "y_axis_max": null,
2074
+ "x_log_scale": null,
2075
+ "y_log_scale": null,
2076
+ "x_axis_title": "Hours since publisher run start",
2077
+ "y_axis_title": null,
2078
+ "ignore_outliers": null,
2079
+ "group_by": null,
2080
+ "group_agg": null,
2081
+ "group_area": null,
2082
+ "smoothing_weight": 0.0,
2083
+ "smoothing_type": "none",
2084
+ "show_original_after_smoothing": null,
2085
+ "limit": 2,
2086
+ "expressions": null,
2087
+ "plot_type": null,
2088
+ "font_size": null,
2089
+ "legend_position": null,
2090
+ "legend_template": null,
2091
+ "aggregate": false,
2092
+ "x_expression": null,
2093
+ "x_axis_format": null,
2094
+ "point_visualization_method": null,
2095
+ "override_line_widths": null,
2096
+ "override_colors": null,
2097
+ "override_series_titles": null,
2098
+ "override_marks": null,
2099
+ "legend_fields": null,
2100
+ "metric_regex": null,
2101
+ "use_metric_regex": null
2102
+ }
2103
+ }
2104
+ ],
2105
+ "type": "grid",
2106
+ "flow_config": {
2107
+ "snap_to_columns": true,
2108
+ "columns_per_page": 3,
2109
+ "rows_per_page": 2,
2110
+ "gutter_width": 16,
2111
+ "box_width": 460,
2112
+ "box_height": 300
2113
+ },
2114
+ "sorted": 0,
2115
+ "local_panel_settings": {
2116
+ "smoothing_weight": 0,
2117
+ "smoothing_type": "exponential",
2118
+ "x_axis": "_step",
2119
+ "ignore_outliers": false,
2120
+ "use_runs_table_grouping_in_panels": true,
2121
+ "x_axis_min": null,
2122
+ "x_axis_max": null,
2123
+ "color_run_names": null,
2124
+ "max_runs": null,
2125
+ "point_visualization_method": null,
2126
+ "suppress_legends": null,
2127
+ "tooltip_number_of_runs": null,
2128
+ "smoothing_active": true,
2129
+ "x_axis_active": false
2130
+ },
2131
+ "pinned": null
2132
+ },
2133
+ "custom_run_colors": {}
2134
+ }
2135
+ },
2136
+ {
2137
+ "type": "markdown-block",
2138
+ "children": [
2139
+ {
2140
+ "text": "",
2141
+ "inline_code": null,
2142
+ "inline_comments": null
2143
+ }
2144
+ ],
2145
+ "content": "The publisher's trained-prompts composition chart is a derived estimate: previous held + accepted − current held, with a proportional carryover fallback when the source totals do not match the batch size within 5%. That derivation is documented in the metadata and is not presented here as an observed counter. W&B has its own rendering and smoothing behavior; these charts are not a pixel-for-pixel copy of the source website."
2146
+ },
2147
+ {
2148
+ "type": "paragraph",
2149
+ "children": [
2150
+ {
2151
+ "text": "",
2152
+ "inline_code": null,
2153
+ "inline_comments": null
2154
+ }
2155
+ ]
2156
+ }
2157
+ ],
2158
+ "width": "readable",
2159
+ "authors": [],
2160
+ "discussion_threads": []
2161
+ }
2162
+ }
evidence/wandb-report-layout-1789594041.json ADDED
The diff for this file is too large to render. See raw diff
 
evidence/wandb-roundtrip.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "verified_at": 1789592742.5528462,
3
+ "project": {
4
+ "name": "mimo-rl-observatory",
5
+ "access": "PRIVATE"
6
+ },
7
+ "training": [
8
+ {
9
+ "run": "flash",
10
+ "wandb_rows": 15,
11
+ "metric_slots_matched": 30750,
12
+ "numeric_points_matched": 28968
13
+ },
14
+ {
15
+ "run": "pro",
16
+ "wandb_rows": 10,
17
+ "metric_slots_matched": 20190,
18
+ "numeric_points_matched": 18966
19
+ }
20
+ ]
21
+ }
manifest.json ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": [
3
+ {
4
+ "bytes": 5416,
5
+ "path": "README.md",
6
+ "sha256": "7fc934a5c7bd387945bd7fc18440889fad28c22921619894532a5ab85418efff"
7
+ },
8
+ {
9
+ "bytes": 1498316800,
10
+ "path": "data/mimo.sqlite3",
11
+ "sha256": "81f443916125466ca541135b64762435e44f599475e5d586666dbfaf1708e02f"
12
+ },
13
+ {
14
+ "bytes": 32768,
15
+ "path": "data/mimo.sqlite3-shm",
16
+ "sha256": "fd4c9fda9cd3f9ae7c962b0ddf37232294d55580e1aa165aa06129b8549389eb"
17
+ },
18
+ {
19
+ "bytes": 0,
20
+ "path": "data/mimo.sqlite3-wal",
21
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
22
+ },
23
+ {
24
+ "bytes": 281016320,
25
+ "path": "data/raw-responses.tar",
26
+ "sha256": "611523cd58fb008aa8e0d828914e380eba719a70ab7843b78e7d9b1e1c688d3e"
27
+ },
28
+ {
29
+ "bytes": 413,
30
+ "path": "evidence/duplicate-audit-1789688611/flash-benchmarks-audit.json",
31
+ "sha256": "150f1661daec4568117359b188cf59c0c1eb23ee4a59616a0a268a202926ed16"
32
+ },
33
+ {
34
+ "bytes": 572,
35
+ "path": "evidence/duplicate-audit-1789688611/flash-benchmarks-raw.json.gz",
36
+ "sha256": "e1e9aaee3115d1aea2beae3c20cc6002da09fb2ee7495a07ec482032352467b2"
37
+ },
38
+ {
39
+ "bytes": 319262,
40
+ "path": "evidence/duplicate-audit-1789688611/flash-history.json.gz",
41
+ "sha256": "aee6718479c106fdcbef9bcb2b7a1586515384e5f5ff8ad83910670039426e46"
42
+ },
43
+ {
44
+ "bytes": 142324,
45
+ "path": "evidence/duplicate-audit-1789688611/flash-sampler-audit.json",
46
+ "sha256": "7399440b04a6b97ca945acd30d0b2a22bf44a3bdc0e759f441d4583fef07c42d"
47
+ },
48
+ {
49
+ "bytes": 342308,
50
+ "path": "evidence/duplicate-audit-1789688611/flash-sampler-raw.json.gz",
51
+ "sha256": "3673a4a78d70f1e5a2a8cf6b897d6b18d5405094f7c8041f11ecd7c9dfa61b01"
52
+ },
53
+ {
54
+ "bytes": 869010,
55
+ "path": "evidence/duplicate-audit-1789688611/flash-scan_single_page.json.gz",
56
+ "sha256": "e5831c99388a64f3a65ae5c4a54d9787ca875856701fa04df6b72cd3d57e88c1"
57
+ },
58
+ {
59
+ "bytes": 411,
60
+ "path": "evidence/duplicate-audit-1789688611/flash-training-audit.json",
61
+ "sha256": "6588c8ca99c0903f1b858c951ee857fca5104924fb142d0721c5b8857cfeba0e"
62
+ },
63
+ {
64
+ "bytes": 333554,
65
+ "path": "evidence/duplicate-audit-1789688611/flash-training-raw.json.gz",
66
+ "sha256": "2b034074ad90acacc3cdd5ae60d3d2aad810efe1caf7bd0bc8aa71bc4e1ade27"
67
+ },
68
+ {
69
+ "bytes": 411,
70
+ "path": "evidence/duplicate-audit-1789688611/pro-benchmarks-audit.json",
71
+ "sha256": "9ed4f535bd31b25cd5f7daa470337156f47e96c9daba12e6a696b7be3b8e996d"
72
+ },
73
+ {
74
+ "bytes": 448,
75
+ "path": "evidence/duplicate-audit-1789688611/pro-benchmarks-raw.json.gz",
76
+ "sha256": "070d7d71b0bf33756ef09b511afa4cdfc16922070f498476d9a8b5a42ece72d5"
77
+ },
78
+ {
79
+ "bytes": 258356,
80
+ "path": "evidence/duplicate-audit-1789688611/pro-history.json.gz",
81
+ "sha256": "3f260c8aee2573fb1416d5ce001f2abba95afa4e0920338de57cfedfca181838"
82
+ },
83
+ {
84
+ "bytes": 14610,
85
+ "path": "evidence/duplicate-audit-1789688611/pro-sampler-audit.json",
86
+ "sha256": "2ebb668b4d0216042dbcdc13a22f48b95157aff18eb12a80dc16c0e2340c05a5"
87
+ },
88
+ {
89
+ "bytes": 268697,
90
+ "path": "evidence/duplicate-audit-1789688611/pro-sampler-raw.json.gz",
91
+ "sha256": "dde32836e5f44b2839adc7c37f9d33b9c676f5e51baef0000bff998a5e35e667"
92
+ },
93
+ {
94
+ "bytes": 692319,
95
+ "path": "evidence/duplicate-audit-1789688611/pro-scan_single_page.json.gz",
96
+ "sha256": "3d74f9883cf4bd77b1622e6f7f7b1bb64ef28d3392dea2091edd37ba3d111222"
97
+ },
98
+ {
99
+ "bytes": 409,
100
+ "path": "evidence/duplicate-audit-1789688611/pro-training-audit.json",
101
+ "sha256": "f6e33deefb11d08aec15ee2c31e395eb05503909c0ed567fc26576735825eaaf"
102
+ },
103
+ {
104
+ "bytes": 225409,
105
+ "path": "evidence/duplicate-audit-1789688611/pro-training-raw.json.gz",
106
+ "sha256": "2b5a2a05380387ff65e6c84ab6e864e01717bb6c2690792f74427917af7cbe4a"
107
+ },
108
+ {
109
+ "bytes": 1587,
110
+ "path": "evidence/duplicate-audit-1789688611/retrieval-comparison.json",
111
+ "sha256": "97d5d882b540a41ab1d46178a9e9369a602cc56abaa390274196125843c18e09"
112
+ },
113
+ {
114
+ "bytes": 1648,
115
+ "path": "evidence/duplicate-audit-1789688611/state.json",
116
+ "sha256": "1720ff5976662ae823cb50081f4ad37d1d237e284fa58549d7f51f78b7c7ca22"
117
+ },
118
+ {
119
+ "bytes": 2523,
120
+ "path": "evidence/duplicate-audit-1789688611/summary.json",
121
+ "sha256": "869dfb718f29b9b8554d241ebd32c09e60cf69ab2b88d5084cd6c710d40d43fd"
122
+ },
123
+ {
124
+ "bytes": 2634,
125
+ "path": "evidence/health-check-20260917.json",
126
+ "sha256": "826f4039babc213ef9f66774f4cda4bee03491b182c144641803ef04f6af4a11"
127
+ },
128
+ {
129
+ "bytes": 279,
130
+ "path": "evidence/initial-acceptance.json",
131
+ "sha256": "4b21935a0bc66238c2422de5a7438876be4df0218c409f975a6d099b94c21bc0"
132
+ },
133
+ {
134
+ "bytes": 54320,
135
+ "path": "evidence/mimo-rl-app-prioritization.js",
136
+ "sha256": "b34d85daeaa0af7457460a7e91bf5b11371701fd2fb048dc36d8482ecae1fdff"
137
+ },
138
+ {
139
+ "bytes": 54320,
140
+ "path": "evidence/mimo-rl-app.js",
141
+ "sha256": "b34d85daeaa0af7457460a7e91bf5b11371701fd2fb048dc36d8482ecae1fdff"
142
+ },
143
+ {
144
+ "bytes": 23140,
145
+ "path": "evidence/mimo-rl-charts.js",
146
+ "sha256": "c63953e47d4ecc53a688a0b6179ae8c8e14e4a8c7c46f60efb4e46d41b119b62"
147
+ },
148
+ {
149
+ "bytes": 6442,
150
+ "path": "evidence/mimo-rl-format.js",
151
+ "sha256": "2d418fb3d9e1164a3262190d0f535030ec3fc68ffac6219daf5fd018a6968f18"
152
+ },
153
+ {
154
+ "bytes": 513,
155
+ "path": "evidence/mimo-rl-headers.txt",
156
+ "sha256": "66cd3b4fae16ca17f75afdb51a2b44a7d08d2e9b2b91aa5c38a14fd55cae97ab"
157
+ },
158
+ {
159
+ "bytes": 1997,
160
+ "path": "evidence/mimo-rl-index.html",
161
+ "sha256": "9c9d78f4507f689eddb980c7a3025f6a14641f25550db6d8c785c4d7d6b7e628"
162
+ },
163
+ {
164
+ "bytes": 3566,
165
+ "path": "evidence/mimo-rl-runs-prioritization.json",
166
+ "sha256": "06784c35fb303c2323497ee757533c2498a8338c982565fb5f1517ab5c84f25e"
167
+ },
168
+ {
169
+ "bytes": 285,
170
+ "path": "evidence/notices-wandb-acceptance.json",
171
+ "sha256": "fa0964f4a544e1818c4b8021465d8ccbb50b0247430506181ae90b3b493daa75"
172
+ },
173
+ {
174
+ "bytes": 1177,
175
+ "path": "evidence/prioritized-overview-acceptance.json",
176
+ "sha256": "2e7ee9f6017b4abdfc17d9ff6d6aec8dba2bd38ed1cc1bde1427ff85432d6a77"
177
+ },
178
+ {
179
+ "bytes": 5075,
180
+ "path": "evidence/remote-location-audit-20261022.json",
181
+ "sha256": "0c4a6648fb66feaad17d05abc00f76660104d15aeeef3294c93e1406c397f5c7"
182
+ },
183
+ {
184
+ "bytes": 567,
185
+ "path": "evidence/sampler-filter-query-check.json",
186
+ "sha256": "ea60aa234290df5e3c6a3b7ca69466b5711a5c68860ebd26291c692e4e4cec11"
187
+ },
188
+ {
189
+ "bytes": 323,
190
+ "path": "evidence/sampler-health-flash.json",
191
+ "sha256": "e8ce94e23c3ffd73e2c00f7943ff0ad4b6c08923187464e211c9969f90500100"
192
+ },
193
+ {
194
+ "bytes": 321,
195
+ "path": "evidence/sampler-health-pro.json",
196
+ "sha256": "8afb6e709a588f97105ae1a3b83c56f8bbcbc0485fd501080717666c5976e943"
197
+ },
198
+ {
199
+ "bytes": 1131,
200
+ "path": "evidence/stream-live-verification.json",
201
+ "sha256": "d4e5586442d79cc874a40b2eaa6a9a814ae85efc4e7f3e5e7cc9656e8bfcaf2b"
202
+ },
203
+ {
204
+ "bytes": 891,
205
+ "path": "evidence/training-history-query-check.json",
206
+ "sha256": "08532604ae3a1f9f1ef389a6021023f3a4bba69504dc4f633880412390a63d22"
207
+ },
208
+ {
209
+ "bytes": 634,
210
+ "path": "evidence/visualization-dependency-audit.txt",
211
+ "sha256": "288b636b0df17fea295943e34aa2afef2acbaf7b244c8f71583de42aeee41ff3"
212
+ },
213
+ {
214
+ "bytes": 315,
215
+ "path": "evidence/wandb-report-and-resume.json",
216
+ "sha256": "9cb525da44fd98053e88f68d840b984627665d906fe190178c13f8f468149969"
217
+ },
218
+ {
219
+ "bytes": 7200,
220
+ "path": "evidence/wandb-report-before-prioritization.py",
221
+ "sha256": "29b2189a9ab3ba8ad8c587c437606be90c1c56e48b17ed2712e43cc5651a19dd"
222
+ },
223
+ {
224
+ "bytes": 77198,
225
+ "path": "evidence/wandb-report-layout-1789593975.json",
226
+ "sha256": "50e0be32a5c0dcdd6c9fcb8ce6bf67018a4b4417e39f5a225d1dcf08d9d3f2be"
227
+ },
228
+ {
229
+ "bytes": 124542,
230
+ "path": "evidence/wandb-report-layout-1789594041.json",
231
+ "sha256": "00165264c9420567148bfc703a012ba34678a0781377b238d355ccd338581c01"
232
+ },
233
+ {
234
+ "bytes": 405,
235
+ "path": "evidence/wandb-roundtrip.json",
236
+ "sha256": "fccad314b3a59b1c71d7efdc832966dc65f84249865bf03e0265d4afc9c57089"
237
+ },
238
+ {
239
+ "bytes": 276480,
240
+ "path": "observer-source.tar",
241
+ "sha256": "8a7dcef680d5b485000bd0ce4b8960931dd2ad4231dca1e586ca49000b97a49f"
242
+ },
243
+ {
244
+ "bytes": 101064,
245
+ "path": "presentation/format-parity-input.json",
246
+ "sha256": "f3ac4f324d398fa4b9d067b2a854e762a57c884b6f3a60a3d1194fa955e5006b"
247
+ },
248
+ {
249
+ "bytes": 176,
250
+ "path": "presentation/format-parity-receipt.json",
251
+ "sha256": "e1a7ab2dffc5b597947c0ab37dc6a830458445b33adb1e243b67792c4cc1b41e"
252
+ },
253
+ {
254
+ "bytes": 4073796,
255
+ "path": "presentation/metadata.json",
256
+ "sha256": "c4f49f2a8fd2267907d292378031e93b16774dec16c302da2ed5deedf82da8e2"
257
+ },
258
+ {
259
+ "bytes": 1302131,
260
+ "path": "presentation/metric-catalog.csv",
261
+ "sha256": "ee505606f6707ce30b29e937eecb00a7f86c4099d2f9264fef71f5688e4d4185"
262
+ },
263
+ {
264
+ "bytes": 305,
265
+ "path": "presentation/notices-sync.json",
266
+ "sha256": "3268243b364aceeb9e3f90a847e21fd244c9212374f63a7435d616b6a2b3ba06"
267
+ },
268
+ {
269
+ "bytes": 1447,
270
+ "path": "presentation/notices.json",
271
+ "sha256": "c16d2b72a3275fe277d0c16d8608c462b6cbce5dff43d7141b05440cf6c19abd"
272
+ },
273
+ {
274
+ "bytes": 1630,
275
+ "path": "presentation/overview.json",
276
+ "sha256": "46a86e877af3d769136a6398d54632a7e22cd5a429c276e387aff017afc41f62"
277
+ },
278
+ {
279
+ "bytes": 968,
280
+ "path": "presentation/source-manifest.json",
281
+ "sha256": "45bde3c594fc01a3c9fc6ce4a2a5efe6bdc63d2ff9e32b3788850ca31ba90053"
282
+ },
283
+ {
284
+ "bytes": 976,
285
+ "path": "presentation/wandb-report.json",
286
+ "sha256": "9275acac40a27e9c97d360c5acda12cd91a2eb2adfa47cc4634b0fb04f96e601"
287
+ },
288
+ {
289
+ "bytes": 1650,
290
+ "path": "presentation/wandb-state.json",
291
+ "sha256": "a5835980b65deebb8409704ebec20b74a84fb33e7c5c5d6d436c7a1b0c211445"
292
+ }
293
+ ],
294
+ "generated_at": "2026-10-22T19:50:22Z",
295
+ "public_upstream_comparison": {
296
+ "exact_public_instance_id_hits_in_local_raw": 0,
297
+ "exact_public_prompt_hits_in_local_raw": 0,
298
+ "relationship": "complementary: public task environments versus private aggregate training telemetry",
299
+ "repo_files": 41292,
300
+ "repo_id": "XiaomiMiMo/MiMo-V2.6-RL-oss",
301
+ "revision": "e8e81e4945270b6212204bad99de1e598f7fb077",
302
+ "task_rows": 7684
303
+ },
304
+ "raw_archive": {
305
+ "format": "ustar",
306
+ "logical_payload_bytes": 174017502,
307
+ "members": 132263
308
+ },
309
+ "snapshot": {
310
+ "distinct_raw_sha256": 132263,
311
+ "integrity": "ok",
312
+ "table_counts": {
313
+ "benchmark_points": 168,
314
+ "cycles": 64807,
315
+ "events": 83,
316
+ "fetches": 499145,
317
+ "live_reports": 10000,
318
+ "metric_points": 122730,
319
+ "metric_revisions": 130930,
320
+ "notices": 6,
321
+ "runs": 2,
322
+ "series_snapshots": 376,
323
+ "status_samples": 123537
324
+ }
325
+ },
326
+ "source_root": "/Users/kearm/data/mimo-rl"
327
+ }
observer-source.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a7dcef680d5b485000bd0ce4b8960931dd2ad4231dca1e586ca49000b97a49f
3
+ size 276480