chadstthomas commited on
Commit
b1c5baa
·
verified ·
1 Parent(s): 2b0eed3

Publish the versioned Rack Lab demo

Browse files
.gitattributes CHANGED
@@ -33,3 +33,11 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/relay-decisions.webp filter=lfs diff=lfs merge=lfs -text
37
+ assets/runtime-comparison.webp filter=lfs diff=lfs merge=lfs -text
38
+ assets/size-native-ncs1.webp filter=lfs diff=lfs merge=lfs -text
39
+ assets/size-portable-cpu.webp filter=lfs diff=lfs merge=lfs -text
40
+ assets/size-published-models.webp filter=lfs diff=lfs merge=lfs -text
41
+ assets/workbench-motion.gif filter=lfs diff=lfs merge=lfs -text
42
+ assets/workbench.webp filter=lfs diff=lfs merge=lfs -text
43
+ rack-lab-avatar.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,10 +1,14 @@
1
  ---
2
  title: MagicEightBall
3
- emoji: 🚀
4
  colorFrom: green
5
- colorTo: pink
6
  sdk: static
 
7
  pinned: false
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
  ---
2
  title: MagicEightBall
3
+ emoji: 🎱
4
  colorFrom: green
5
+ colorTo: purple
6
  sdk: static
7
+ app_file: index.html
8
  pinned: false
9
+ short_description: Recorded decisions and runtime comparisons
10
  ---
11
 
12
+ # MagicEightBall
13
+
14
+ Recorded decisions and runtime comparisons. This Space uses the recorded outputs and assets from its versioned Rack Lab page. [Evidence and downloads](https://huggingface.co/tablinum/MagicEightBall) · [GitHub Pages](https://chadstthomas-svg.github.io/myriadforge/magiceightball/) · [The Break Room](https://huggingface.co/spaces/racklab/The-Break-Room)
assets/relay-decisions-still.webp ADDED
assets/relay-decisions.webp ADDED

Git LFS Details

  • SHA256: 8159a4e6eee107efef2311842a81ec3dcf0a763dc6d7bf10dd969c43f3cebe99
  • Pointer size: 131 Bytes
  • Size of remote file: 550 kB
assets/runtime-comparison.webp ADDED

Git LFS Details

  • SHA256: c90018c0167aaf8fe20a8c66b29511a4a36432c8f66fd99fecacf66203770f8f
  • Pointer size: 131 Bytes
  • Size of remote file: 152 kB
assets/size-native-ncs1.webp ADDED

Git LFS Details

  • SHA256: fb76e4edb0ad96cc42a0ba14fa9c9ddfc2ffceadc1d27185341bc91475095030
  • Pointer size: 131 Bytes
  • Size of remote file: 118 kB
assets/size-portable-cpu.webp ADDED

Git LFS Details

  • SHA256: 131411b05c3bad3fcdeab208cb6f5d3634881e31084954ea570719244fd810b1
  • Pointer size: 131 Bytes
  • Size of remote file: 100 kB
assets/size-published-models.webp ADDED

Git LFS Details

  • SHA256: 3204876d0905390cf02ec37b61c629f97acbe6ac680c02a7f23601bef43c458e
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
assets/workbench-motion.gif ADDED

Git LFS Details

  • SHA256: 27de28ff46497302446f70359991afdf889aa462d1f16bae7f7f56f533df1559
  • Pointer size: 132 Bytes
  • Size of remote file: 1.58 MB
assets/workbench.webp ADDED

Git LFS Details

  • SHA256: e9775806f7bdc8b8d68c3dad5c83b289503110bed04a4596bf9662ee9ef801a1
  • Pointer size: 131 Bytes
  • Size of remote file: 169 kB
frontline-cases.json ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "dealership-service-intake",
4
+ "title": "Dealership • approved service intake",
5
+ "text": "Service desk ticket: service requested for the vehicle. Intake approved by the advisor.",
6
+ "expected": {
7
+ "answers": {
8
+ "may_route": true
9
+ },
10
+ "category": "service",
11
+ "action": "review_service_intake"
12
+ },
13
+ "cpu": {
14
+ "answers": {
15
+ "may_route": true
16
+ },
17
+ "category": "service",
18
+ "action": "review_service_intake"
19
+ },
20
+ "ncs1": {
21
+ "answers": {
22
+ "may_route": true
23
+ },
24
+ "category": "service",
25
+ "action": "review_service_intake"
26
+ }
27
+ },
28
+ {
29
+ "id": "dealership-missing-approval",
30
+ "title": "Dealership • approval pending",
31
+ "text": "Maintenance enquiry logged. The advisor decision is pending.",
32
+ "expected": {
33
+ "answers": {
34
+ "may_route": false
35
+ },
36
+ "category": "service",
37
+ "action": null
38
+ },
39
+ "cpu": {
40
+ "answers": {
41
+ "may_route": false
42
+ },
43
+ "category": "service",
44
+ "action": null
45
+ },
46
+ "ncs1": {
47
+ "answers": {
48
+ "may_route": false
49
+ },
50
+ "category": "service",
51
+ "action": null
52
+ }
53
+ },
54
+ {
55
+ "id": "dealership-customer-withdrew",
56
+ "title": "Dealership • customer withdrew",
57
+ "text": "Inspection referral. Intake approved earlier. Customer declined this morning.",
58
+ "expected": {
59
+ "answers": {
60
+ "may_route": false
61
+ },
62
+ "category": "inspection",
63
+ "action": null
64
+ },
65
+ "cpu": {
66
+ "answers": {
67
+ "may_route": false
68
+ },
69
+ "category": "inspection",
70
+ "action": null
71
+ },
72
+ "ncs1": {
73
+ "answers": {
74
+ "may_route": false
75
+ },
76
+ "category": "inspection",
77
+ "action": null
78
+ }
79
+ },
80
+ {
81
+ "id": "manufacturing-vibration",
82
+ "title": "Manufacturing • approved vibration alert",
83
+ "text": "Condition monitor reported a vibration alert. Maintenance review approved during shift handover.",
84
+ "expected": {
85
+ "answers": {
86
+ "may_route": true
87
+ },
88
+ "category": "mechanical",
89
+ "action": "review_mechanical_alert"
90
+ },
91
+ "cpu": {
92
+ "answers": {
93
+ "may_route": true
94
+ },
95
+ "category": "mechanical",
96
+ "action": "review_mechanical_alert"
97
+ },
98
+ "ncs1": {
99
+ "answers": {
100
+ "may_route": true
101
+ },
102
+ "category": "mechanical",
103
+ "action": "review_mechanical_alert"
104
+ }
105
+ },
106
+ {
107
+ "id": "manufacturing-work-order-blocked",
108
+ "title": "Manufacturing • blocked work order",
109
+ "text": "Lubrication low. Maintenance review approved before the isolation check. Work order blocked by the shift lead.",
110
+ "expected": {
111
+ "answers": {
112
+ "may_route": false
113
+ },
114
+ "category": "service",
115
+ "action": null
116
+ },
117
+ "cpu": {
118
+ "answers": {
119
+ "may_route": false
120
+ },
121
+ "category": "service",
122
+ "action": null
123
+ },
124
+ "ncs1": {
125
+ "answers": {
126
+ "may_route": false
127
+ },
128
+ "category": "service",
129
+ "action": null
130
+ }
131
+ },
132
+ {
133
+ "id": "manufacturing-boundary-guard",
134
+ "title": "Manufacturing • no configured alert",
135
+ "text": "No configured condition alert. The training glossary mentions a bearing overheated test label. Maintenance review approved for training.",
136
+ "expected": {
137
+ "answers": {
138
+ "may_route": false
139
+ },
140
+ "category": null,
141
+ "action": null
142
+ },
143
+ "cpu": {
144
+ "answers": {
145
+ "may_route": false
146
+ },
147
+ "category": null,
148
+ "action": null
149
+ },
150
+ "ncs1": {
151
+ "answers": {
152
+ "may_route": false
153
+ },
154
+ "category": null,
155
+ "action": null
156
+ }
157
+ },
158
+ {
159
+ "id": "retail-camera-event",
160
+ "title": "Store security • approved camera alert",
161
+ "text": "Camera offline at the receiving zone. Security review approved for the equipment alert.",
162
+ "expected": {
163
+ "answers": {
164
+ "may_route": true
165
+ },
166
+ "category": "camera_alert",
167
+ "action": "review_camera_alert"
168
+ },
169
+ "cpu": {
170
+ "answers": {
171
+ "may_route": true
172
+ },
173
+ "category": "camera_alert",
174
+ "action": "review_camera_alert"
175
+ },
176
+ "ncs1": {
177
+ "answers": {
178
+ "may_route": true
179
+ },
180
+ "category": "camera_alert",
181
+ "action": "review_camera_alert"
182
+ }
183
+ },
184
+ {
185
+ "id": "retail-drill-hold",
186
+ "title": "Store security • drill in progress",
187
+ "text": "Door forced training event. Security review approved earlier. Drill active at this store.",
188
+ "expected": {
189
+ "answers": {
190
+ "may_route": false
191
+ },
192
+ "category": "access_alert",
193
+ "action": null
194
+ },
195
+ "cpu": {
196
+ "answers": {
197
+ "may_route": false
198
+ },
199
+ "category": "access_alert",
200
+ "action": null
201
+ },
202
+ "ncs1": {
203
+ "answers": {
204
+ "may_route": false
205
+ },
206
+ "category": "access_alert",
207
+ "action": null
208
+ }
209
+ },
210
+ {
211
+ "id": "retail-boundary-guard",
212
+ "title": "Store security • unrelated equipment check",
213
+ "text": "Routine equipment check. A camera offliner demo label appears on the dashboard. Security review approved for the check.",
214
+ "expected": {
215
+ "answers": {
216
+ "may_route": false
217
+ },
218
+ "category": null,
219
+ "action": null
220
+ },
221
+ "cpu": {
222
+ "answers": {
223
+ "may_route": false
224
+ },
225
+ "category": null,
226
+ "action": null
227
+ },
228
+ "ncs1": {
229
+ "answers": {
230
+ "may_route": false
231
+ },
232
+ "category": null,
233
+ "action": null
234
+ }
235
+ }
236
+ ]
index.html CHANGED
@@ -1,19 +1,108 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="theme-color" content="#19111b">
7
+ <meta name="description" content="Explore MagicEightBall's compact Boolean decisions, recorded NCS1 and CPU examples, and model downloads.">
8
+ <title>MagicEightBall · Rack Lab</title>
9
+ <link rel="icon" href="./rack-lab-avatar.png" type="image/png">
10
+ <link rel="stylesheet" href="./style.css">
11
+ <link rel="stylesheet" href="./model-page.css">
12
+ <script defer src="./replay.js"></script>
13
+ </head>
14
+ <body>
15
+ <a class="skip-link" href="#content">Skip to MagicEightBall</a>
16
+ <header class="wrap masthead">
17
+ <a class="brand" href="https://racklab-the-break-room.static.hf.space/index.html"><img src="./rack-lab-avatar.png" width="34" height="34" alt="">The Break Room</a>
18
+ <nav aria-label="MagicEightBall"><a href="#examples">Examples</a><a href="#downloads">Downloads</a><a href="#benchmarks">Benchmarks</a></nav>
19
+ </header>
20
+ <main class="wrap" id="content">
21
+ <section class="model-hero" aria-labelledby="title">
22
+ <h1 id="title">MagicEightBall</h1>
23
+ <p>A Boolean decision engine that returns a yes or no, a category, and a proposed action. The host reads up to 131,072 Needle 3 tokens and extracts evidence. The original Intel Neural Compute Stick can run the 480-byte decision head.</p>
24
+ <picture>
25
+ <source media="(prefers-reduced-motion: no-preference)" srcset="./assets/workbench-motion.gif">
26
+ <img src="./assets/workbench.webp" width="1903" height="826" fetchpriority="high" alt="Eight, a black billiards 8-ball, and Relay light decision paths across a workbench.">
27
+ </picture>
28
+ </section>
29
+
30
+ <section class="model-section" id="examples" aria-labelledby="examples-title">
31
+ <h2 id="examples-title">Replay a decision</h2>
32
+ <p>Compare the expected decision with the recorded CPU and physical NCS1 results. The three industry simulations matched all 27 authored cases and 384 Boolean assignments on both runtimes. All 15 cases expected to produce no action passed.</p>
33
+ <div class="replay">
34
+ <label for="scenario">Case</label>
35
+ <select id="scenario" disabled></select>
36
+ <p id="replay-status" role="status">Loading recorded decisions…</p>
37
+ <noscript><p>Enable JavaScript to replay examples, or open the source reports below.</p></noscript>
38
+ <div id="case-output" hidden aria-live="polite">
39
+ <blockquote id="case-input"></blockquote>
40
+ <dl id="case-decisions" class="decisions"></dl>
41
+ </div>
42
+ </div>
43
+ <div class="model-links">
44
+ <a href="https://huggingface.co/tablinum/MagicEightBall/blob/2b48c99709675f23b2e15354a35219a9030fcbc1/measurements/industry-simulation-frontline-cpu.json">Full CPU report</a>
45
+ <a href="https://huggingface.co/tablinum/MagicEightBall/blob/2b48c99709675f23b2e15354a35219a9030fcbc1/measurements/industry-simulation-frontline-ncs1.json">Full NCS1 report</a>
46
+ <a href="https://racklab-the-break-room.static.hf.space/workflows/index.html">Rack Lab industry workflows</a>
47
+ </div>
48
+ <figure>
49
+ <picture>
50
+ <source media="(prefers-reduced-motion: no-preference)" srcset="./assets/relay-decisions.webp">
51
+ <img src="./assets/relay-decisions-still.webp" width="1080" height="444" loading="lazy" alt="Three support-policy examples show a billing proposal, a later hold that clears the proposal, and an unrelated request with no action.">
52
+ </picture>
53
+ </figure>
54
+ </section>
55
+
56
+ <section class="model-section" id="downloads" aria-labelledby="downloads-title">
57
+ <h2 id="downloads-title">Choose a format</h2>
58
+ <div class="formats">
59
+ <a href="https://huggingface.co/tablinum/MagicEightBall"><strong>Native NCS1</strong><span>480 B · OpenVINO 2020.3.2</span></a>
60
+ <a href="https://huggingface.co/tablinum/MagicEightBall-ONNX"><strong>ONNX radix</strong><span>192 B · ONNX Runtime CPU</span></a>
61
+ <a href="https://huggingface.co/tablinum/MagicEightBall-FP32"><strong>FP32 reference</strong><span>1,832 B · ONNX Runtime CPU</span></a>
62
+ <a href="https://huggingface.co/tablinum/MagicEightBall-GGUF"><strong>GGUF</strong><span>1,024 B · MagicEightBall CPU reader</span></a>
63
+ </div>
64
+ <p class="caption">Sizes cover the decision artifacts. The tokenizer, host code, and runtime have separate sizes.</p>
65
+ <a class="source-link" href="https://chadstthomas-svg.github.io/myriadforge/hardware/index.html#quickstart">Set up the original stick</a>
66
+ </section>
67
+
68
+ <section class="model-section" id="benchmarks" aria-labelledby="benchmarks-title">
69
+ <h2 id="benchmarks-title">Measured runtime comparisons</h2>
70
+ <p>All four formats matched 128 support-policy assignments and rejected 131,073 tokens. Timings include host text preparation and head execution on the same Intel Core i7-12650H host. The runtime versions and repeat counts are in the reports.</p>
71
+ <div class="timings" tabindex="0" role="region" aria-label="Runtime timing table">
72
+ <table>
73
+ <thead><tr><th scope="col">Runtime</th><th scope="col">128 short decisions, p50 / p95</th><th scope="col">131,072-token late veto, p50 / p95</th></tr></thead>
74
+ <tbody>
75
+ <tr><th scope="row">Native NCS1</th><td>5.31 / 5.87 ms</td><td>33.68 / 39.24 ms</td></tr>
76
+ <tr><th scope="row">ONNX radix CPU</th><td>2.55 / 3.01 ms</td><td>23.31 / 25.20 ms</td></tr>
77
+ <tr><th scope="row">ONNX FP32 CPU</th><td>4.80 / 5.25 ms</td><td>22.54 / 25.04 ms</td></tr>
78
+ <tr><th scope="row">GGUF CPU</th><td>2.90 / 3.61 ms</td><td>22.39 / 25.70 ms</td></tr>
79
+ </tbody>
80
+ </table>
81
+ </div>
82
+ <figure>
83
+ <a href="./assets/runtime-comparison.webp"><img src="./assets/runtime-comparison.webp" width="1600" height="1010" loading="lazy" alt="Runtime comparison chart for compact NCS1, radix ONNX, dense FP32, and GGUF. Exact timings appear in the table above."></a>
84
+ </figure>
85
+ <div class="model-links">
86
+ <a href="https://huggingface.co/tablinum/MagicEightBall/blob/2b48c99709675f23b2e15354a35219a9030fcbc1/measurements/compact-gather-physical-ncs1.json">Physical NCS1 measurements</a>
87
+ <a href="https://huggingface.co/tablinum/MagicEightBall/blob/2b48c99709675f23b2e15354a35219a9030fcbc1/measurements/portable-cpu-comparison.json">Portable CPU measurements</a>
88
+ </div>
89
+ </section>
90
+
91
+ <section class="model-section" aria-labelledby="size-title">
92
+ <h2 id="size-title">Model size comparisons</h2>
93
+ <div class="charts">
94
+ <figure>
95
+ <a href="./assets/size-native-ncs1.webp"><img src="./assets/size-native-ncs1.webp" width="1600" height="960" loading="lazy" alt="Six native NCS1 builds of the same policy. The compact model is 480 bytes, and the stock radix Gather is 512 bytes."></a>
96
+ <figcaption>Native NCS1 builds for the same policy</figcaption>
97
+ </figure>
98
+ <figure>
99
+ <a href="./assets/size-portable-cpu.webp"><img src="./assets/size-portable-cpu.webp" width="1600" height="910" loading="lazy" alt="Portable CPU artifacts. ONNX radix Gather is 192 bytes, GGUF is 1,024 bytes, and FP32 is 1,832 bytes."></a>
100
+ <figcaption>Portable CPU decision artifacts</figcaption>
101
+ </figure>
102
+ </div>
103
+ <p class="caption">Published peer examples use different tasks and count different parts of the runtime. <a class="source-link" href="./assets/size-published-models.webp">See the published-model chart</a>.</p>
104
+ </section>
105
+ </main>
106
+ <footer class="wrap model-footer"><a href="https://racklab-the-break-room.static.hf.space/index.html">The Break Room</a><a href="https://huggingface.co/tablinum/MagicEightBall">Hugging Face model card</a></footer>
107
+ </body>
108
+ </html>
model-page.css ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .masthead .brand img { border-radius: 50%; }
2
+ .masthead nav { flex-wrap: wrap; justify-content: flex-end; }
3
+ .model-hero h1 { font-size: clamp(38px, 8vw, 100px); letter-spacing: -.075em; line-height: .98; margin: 24px 0 14px; }
4
+ .model-hero p, .model-section > p { max-width: 75ch; color: var(--muted); line-height: 1.6; }
5
+ .model-hero img, .model-section figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; }
6
+ .model-hero img { margin-top: 20px; }
7
+ .model-section { margin: 36px 0; scroll-margin-block-start: 14px; }
8
+ .model-section h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.05em; line-height: 1.1; margin: 0 0 12px; }
9
+ .replay, .formats a, .timings { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
10
+ .replay { margin: 18px 0 12px; padding: clamp(16px, 3vw, 26px); }
11
+ .replay label { display: block; font-weight: 680; margin-bottom: 8px; }
12
+ .replay select { max-width: 100%; padding: 8px; border: 1px solid #7a6576; border-radius: 8px; background: var(--canvas); color: var(--ink); font: inherit; }
13
+ .replay blockquote { margin: 16px 0; padding: 8px 12px; border-inline-start: 3px solid var(--gold); line-height: 1.5; }
14
+ .decisions, .formats, .charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
15
+ .decisions { margin-block-end: 0; }
16
+ .decisions div { padding: 12px; background: var(--canvas); border-radius: 8px; }
17
+ .decisions dt { color: var(--mint); font-weight: 700; }
18
+ .decisions dd { margin: 6px 0 0; }
19
+ .decisions pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
20
+ .formats a { padding: 16px; display: grid; gap: 5px; }
21
+ .formats a:hover { border-color: var(--mint); }
22
+ .formats strong, .source-link, .model-section .model-links a { color: var(--mint); }
23
+ .formats span, .caption, figcaption { color: var(--muted); line-height: 1.5; }
24
+ .source-link, .model-section .model-links a { text-decoration: underline; text-underline-offset: 3px; }
25
+ .timings { overflow-x: auto; }
26
+ .timings table { width: 100%; border-collapse: collapse; text-align: start; }
27
+ .timings th, .timings td { padding: 12px; text-align: start; }
28
+ .timings tbody tr { border-top: 1px solid var(--line); }
29
+ .model-section figure { margin: 16px 0; }
30
+ .model-section figcaption { margin-top: 6px; }
31
+ .model-footer { display: flex; flex-wrap: wrap; gap: 16px; padding-block: 16px 28px; border-top: 1px solid var(--line); }
32
+ .model-footer a:hover { color: var(--mint); }
33
+ .replay-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; }
34
+ .replay-controls > div { min-width: 0; }
35
+ .replay-controls button { padding: 8px 12px; border: 1px solid var(--mint); border-radius: 8px; background: var(--mint); color: #11251a; font-weight: 700; }
36
+ .replay-controls button:disabled { opacity: .55; cursor: default; }
37
+ .recordings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
38
+ .recordings h3 { margin: 0 0 10px; }
39
+ .recordings article { margin: 0; }
40
+ audio { width: min(100%, 360px); display: block; }
41
+ @media (max-width: 460px) {
42
+ .masthead nav { gap: 6px 12px; }
43
+ .timings th, .timings td { padding: 8px; }
44
+ }
rack-lab-avatar.png ADDED

Git LFS Details

  • SHA256: 2d4f50923e6b50ad174996f5b9960dedc2082ae8a5225694482884d1d914614a
  • Pointer size: 131 Bytes
  • Size of remote file: 269 kB
replay.js ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (() => {
2
+ const picker = document.getElementById("scenario");
3
+ const status = document.getElementById("replay-status");
4
+ const input = document.getElementById("case-input");
5
+ const output = document.getElementById("case-output");
6
+ const results = document.getElementById("case-decisions");
7
+ const headings = [["Expected", "expected"], ["CPU", "cpu"], ["Physical NCS1", "ncs1"]];
8
+
9
+ function show(caseData) {
10
+ input.textContent = caseData.text;
11
+ results.replaceChildren(...headings.map(([label, key]) => {
12
+ const card = document.createElement("div");
13
+ const name = document.createElement("dt");
14
+ const value = document.createElement("dd");
15
+ const payload = document.createElement("pre");
16
+ const { answers, category, action } = caseData[key];
17
+ name.textContent = label;
18
+ payload.textContent = JSON.stringify({ may_route: answers.may_route, category, action }, null, 2);
19
+ value.append(payload);
20
+ card.append(name, value);
21
+ return card;
22
+ }));
23
+ output.hidden = false;
24
+ }
25
+
26
+ async function load() {
27
+ try {
28
+ const response = await fetch("./frontline-cases.json");
29
+ if (!response.ok) throw new Error("Cases unavailable");
30
+ const cases = await response.json();
31
+ for (const [index, item] of cases.entries()) picker.add(new Option(item.title, String(index)));
32
+ picker.addEventListener("change", () => show(cases[Number(picker.value)]));
33
+ show(cases[0]);
34
+ picker.disabled = false;
35
+ status.textContent = "";
36
+ } catch {
37
+ status.textContent = "Replay could not load. Open the CPU or NCS1 report to read the results.";
38
+ }
39
+ }
40
+
41
+ load();
42
+ })();
style.css CHANGED
@@ -1,28 +1,135 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :root {
2
+ color-scheme: dark;
3
+ --canvas: #19111b;
4
+ --panel: #241924;
5
+ --line: #40303d;
6
+ --ink: #fff1dd;
7
+ --muted: #cbb9c7;
8
+ --quiet: #a58e9c;
9
+ --mint: #a3e8b9;
10
+ --gold: #f2c78e;
11
+ --paper: #f8e8d2;
12
+ font-family: "Segoe UI", system-ui, sans-serif;
13
+ }
14
+ *, *::before, *::after { box-sizing: border-box; }
15
+ html { scroll-behavior: smooth; }
16
+ body { margin: 0; background: radial-gradient(ellipse at 48% 0%, #271827 0, var(--canvas) 60%); color: var(--ink); }
17
+ a { color: inherit; text-decoration: none; }
18
+ button { font: inherit; color: inherit; cursor: pointer; }
19
+ button[hidden], div[hidden] { display: none; }
20
+ a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
21
+ .wrap { width: min(1440px, calc(100% - 80px)); margin-inline: auto; }
22
+ .skip-link { position: absolute; z-index: 4; top: .5rem; left: 1rem; padding: .75rem 1rem; border-radius: 8px; background: var(--paper); color: #211422; transform: translateY(-150%); }
23
+ .skip-link:focus { transform: translateY(0); }
24
+ .masthead { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
25
+ .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 730; font-size: 18px; letter-spacing: -.025em; white-space: nowrap; }
26
+ .brand-ball { width: 20px; height: 20px; border-radius: 50%; flex: none; background: radial-gradient(circle at 37% 34%, #fff5e3 0 18%, #c69a74 75%); box-shadow: inset -2px -2px 4px #8a6148, 0 0 16px #e9ab6730; }
27
+ .masthead nav, .footer > div { display: flex; gap: clamp(15px, 3vw, 38px); align-items: center; color: var(--muted); font-size: 14px; font-weight: 610; }
28
+ .masthead nav a:hover, .footer a:hover, .roadmap a:hover { color: var(--mint); }
29
+ .nav-collection { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
30
+ .nav-collection span, .footer span:not(.brand-ball), .roadmap a span { margin-left: 3px; color: var(--quiet); }
31
+ .cover { overflow: hidden; position: relative; isolation: isolate; aspect-ratio: 1914 / 822; border: 1px solid #58404a; border-radius: 23px; background: #26161e; }
32
+ .cover picture { display: block; position: absolute; inset: 0; }
33
+ .cover-image { display: block; width: 100%; height: 100%; object-fit: cover; }
34
+ .cover-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #120b18d4, #170d1764 29%, transparent 54%), linear-gradient(0deg, #130c1588, transparent 20%); }
35
+ .cover-copy { position: absolute; top: clamp(25px, 3.4vw, 56px); left: clamp(25px, 5vw, 68px); z-index: 1; }
36
+ .cover h1 { margin: 0; font-size: clamp(42px, 6.9vw, 104px); line-height: .96; font-weight: 760; letter-spacing: -.09em; text-wrap: balance; }
37
+ .cover p { margin: clamp(11px, 1.5vw, 17px) 0 0; font-size: clamp(14px, 1.65vw, 23px); font-weight: 530; color: var(--paper); letter-spacing: -.017em; }
38
+ .motion-toggle { z-index: 2; position: absolute; bottom: 19px; right: 19px; display: inline-flex; gap: 8px; align-items: center; padding: 9px 13px; font-size: 12px; background: #1f1521ed; border: 1px solid #664c5a; border-radius: 999px; }
39
+ .motion-toggle:hover { background: #382438; }
40
+ #motion-icon { color: var(--mint); font-weight: 720; width: 12px; text-align: center; }
41
+ .lineup, .roadmap { scroll-margin-top: 18px; }
42
+ .roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin: 13px 0 21px; }
43
+ .roster button { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 13px; text-align: left; border-radius: 13px; border: 1px solid var(--line); background: #211721; }
44
+ .roster button:hover { background: #30212e; border-color: #654c5d; }
45
+ .roster button[aria-selected="true"] { background: #2b2230; border-color: #8eab92; box-shadow: inset 0 -2px #8dd2a6; }
46
+ .roster strong { display: block; font-size: clamp(12px, 1.44vw, 17px); letter-spacing: -.027em; overflow-wrap: anywhere; }
47
+ .roster small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
48
+ .ball { width: 37px; height: 37px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #241719; font-size: 13px; font-weight: 790; background: radial-gradient(circle at center, #fff1d5 0 28%, #fff1d500 30%), radial-gradient(circle at 33% 27%, #ffffff50, var(--tone) 46%, #140c14 100%); box-shadow: 0 2px 6px #0f080c80; }
49
+ .ball-gold { --tone: #e8ad3c; }
50
+ .ball-green { --tone: #308960; }
51
+ .ball-eight { --tone: #343142; }
52
+ .ball-blue { --tone: #548ac8; background: radial-gradient(circle at center, #fff1d5 0 29%, #fff1d500 30%), linear-gradient(#ead2b0 0 25%, #548ac8 25% 75%, #9f876f 75%); }
53
+ .ball-cue { background: radial-gradient(circle at 34% 30%, #fff8e8, #e4c5a6 58%, #635043); }
54
+ .model-panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); min-height: 295px; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, #2b1f2c, #201722 68%); overflow: hidden; }
55
+ .model-copy { padding: clamp(23px, 3vw, 42px); padding-right: 19px; }
56
+ .state { color: var(--mint); display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 670; }
57
+ .state span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
58
+ .state[data-stage="test"] { color: var(--gold); }
59
+ .state[data-stage="next"] { color: #c0b8e9; }
60
+ .model-copy h2 { margin: 9px 0 12px; font-size: clamp(32px, 4.1vw, 59px); line-height: 1; font-weight: 745; letter-spacing: -.066em; }
61
+ .model-description, .roadmap p { color: var(--muted); line-height: 1.55; }
62
+ .model-description { max-width: 43ch; margin: 0; font-size: clamp(14px, 1.32vw, 17px); }
63
+ .model-art { padding: 22px 22px 22px 12px; min-width: 0; }
64
+ .model-art img { display: block; width: 100%; height: auto; aspect-ratio: 2.33; object-fit: cover; border: 1px solid #58404a; border-radius: 13px; }
65
+ .facts { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 18px 26px; }
66
+ .facts div { display: grid; gap: 4px; }
67
+ .facts dt { color: var(--quiet); font-size: 12px; }
68
+ .facts dd { margin: 0; font-size: 17px; letter-spacing: -.025em; font-weight: 680; }
69
+ .model-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; font-size: 13px; color: var(--muted); font-weight: 650; }
70
+ .model-links a:hover { color: var(--mint); }
71
+ .model-links a.primary-link { padding: 10px 13px; border-radius: 8px; background: var(--mint); color: #192a20; }
72
+ .model-links a.primary-link:hover { background: #c7f4cf; }
73
+ .model-links span { margin-left: 4px; }
74
+ .sample-area { margin-top: 16px; }
75
+ .sample-toggle { display: inline-flex; gap: 8px; align-items: center; padding: 8px 11px; border: 1px solid #6a535f; border-radius: 8px; background: #372736; font-size: 13px; font-weight: 650; }
76
+ .sample-toggle:hover { border-color: var(--mint); }
77
+ .sample-toggle span:first-child { color: var(--mint); }
78
+ .sample-message { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
79
+ .roadmap { padding: clamp(48px, 8vw, 96px) 0 48px; }
80
+ .section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 22px; }
81
+ .section-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); font-weight: 744; line-height: 1; letter-spacing: -.07em; }
82
+ .section-heading p { margin: 0; font-size: 15px; }
83
+ .roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
84
+ .roadmap-stage { border: 1px solid var(--line); border-radius: 15px; background: #231923; padding: 20px; }
85
+ .roadmap-stage h3 { color: var(--stage-color); font-size: 14px; font-weight: 685; margin: 0 0 15px; }
86
+ .stage-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: .1em; }
87
+ .stage-done { --stage-color: var(--mint); }
88
+ .stage-test { --stage-color: var(--gold); }
89
+ .stage-next { --stage-color: #c0b8e9; }
90
+ .roadmap-item { border-top: 1px solid var(--line); padding-top: 13px; }
91
+ .roadmap-item + .roadmap-item { margin-top: 14px; }
92
+ .roadmap-item a { font-size: 17px; font-weight: 710; letter-spacing: -.03em; }
93
+ .roadmap-item p { margin: 6px 0 0; font-size: 14px; max-width: 42ch; }
94
+ .footer { padding: 20px 0 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 17px; }
95
+ @media (max-width: 1050px) {
96
+ .wrap { width: calc(100% - 48px); }
97
+ .roster button { gap: 7px; padding: 10px 8px; }
98
+ .ball { width: 30px; height: 30px; }
99
+ }
100
+ @media (max-width: 740px) {
101
+ .wrap { width: calc(100% - 28px); }
102
+ .masthead { min-height: 61px; }
103
+ .masthead nav { gap: 13px; font-size: 12px; }
104
+ .nav-collection { padding: 6px 8px; }
105
+ .brand { font-size: 16px; gap: 6px; }
106
+ .brand-ball { width: 16px; height: 16px; }
107
+ .cover { aspect-ratio: unset; height: auto; border-radius: 15px; padding-top: 113px; }
108
+ .cover picture { position: relative; display: block; }
109
+ .cover-image { height: auto; aspect-ratio: 1914 / 822; }
110
+ .cover-shade { background: linear-gradient(180deg, #1f1222, #1f122200 68%); }
111
+ .cover-copy { top: 23px; left: 17px; }
112
+ .cover h1 { font-size: clamp(39px, 8vw, 62px); line-height: .98; }
113
+ .cover p { font-size: 14px; margin-top: 9px; }
114
+ .motion-toggle { bottom: 8px; right: 8px; padding: 6px 8px; font-size: 10px; }
115
+ .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 13px; }
116
+ .roster strong { font-size: 13px; white-space: nowrap; }
117
+ .roster small { font-size: 11px; }
118
+ .roster button[data-model='magiceightball'] { grid-column: 1 / -1; }
119
+ .model-panel { grid-template-columns: minmax(0, 1fr); }
120
+ .model-art { padding: 0 13px 13px; }
121
+ .model-copy { padding: 21px 19px; }
122
+ .roadmap { padding-bottom: 34px; }
123
+ .roadmap-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
124
+ .roadmap-stage { padding: 17px; }
125
+ .footer > div { gap: 11px; font-size: 11px; flex-wrap: wrap; justify-content: flex-end; }
126
+ }
127
+ @media (prefers-reduced-motion: reduce) {
128
+ html { scroll-behavior: auto; }
129
+ }
130
+
131
+ @media (max-width: 355px) {
132
+ .masthead nav { gap: 8px; }
133
+ .masthead .nav-collection { padding-inline: 5px; }
134
+ .cover h1 { font-size: 34px; }
135
+ }