betterwithage Claude Opus 4.7 commited on
Commit
d927a7d
·
verified ·
1 Parent(s): d238630

deploy(hf): sync szl-holdings/a11oy@main derived COPY set

Browse files

Reusable Dockerfile-COPY-derived deploy from szl-holdings/a11oy main.
Files: 1011 Pruned: 0
Derived from Dockerfile COPY sources (NO hand-maintained allowlist).

Signed-off-by: SZL Holdings <noreply@szlholdings.ai>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

static/3d/holographic.html CHANGED
@@ -318,6 +318,7 @@ const SURFACES = [
318
  { id: "confattest", cat: "governance", title: "Confidential-Compute Attestation + Action Gate · SIMULATED enclave quote → receipt · govern ACTIONS not reasoning (MODELED)", mod: "/static/3d/surfaces/confattest.js" },
319
  { id: "retrievalattn", cat: "attention", title: "Retrieval-Modulated Long-Context Attention · needle recall (MODELED)", mod: "/static/3d/surfaces/retrievalattn.js" },
320
  { id: "whatsnew", cat: "brain", title: "What's New · honest auto-derived estate changelog · recently-added surfaces w/ verbatim labels + citations from real git history (drift-proof)", mod: "/static/3d/surfaces/whatsnew.js" },
 
321
  ];
322
 
323
  const stageEl = document.getElementById("stage");
 
318
  { id: "confattest", cat: "governance", title: "Confidential-Compute Attestation + Action Gate · SIMULATED enclave quote → receipt · govern ACTIONS not reasoning (MODELED)", mod: "/static/3d/surfaces/confattest.js" },
319
  { id: "retrievalattn", cat: "attention", title: "Retrieval-Modulated Long-Context Attention · needle recall (MODELED)", mod: "/static/3d/surfaces/retrievalattn.js" },
320
  { id: "whatsnew", cat: "brain", title: "What's New · honest auto-derived estate changelog · recently-added surfaces w/ verbatim labels + citations from real git history (drift-proof)", mod: "/static/3d/surfaces/whatsnew.js" },
321
+ { id: "honestywall", cat: "governance", title: "Honesty Wall · live integrity aggregation · reads each surface's OWN honest label VERBATIM + estate honesty invariants → INTACT/DEGRADED/VIOLATED verdict, unsigned SHA-256 receipt-on-write (drift-proof)", mod: "/static/3d/surfaces/honestywall.js" },
322
  ];
323
 
324
  const stageEl = document.getElementById("stage");
static/3d/surfaces/honestywall.js ADDED
@@ -0,0 +1,430 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ // © 2026 Lutar, Stephen P. Jr. — SZL Holdings · ORCID 0009-0001-0110-4173 · Doctrine v11
3
+ //
4
+ // surfaces/honestywall.js — HONESTY WALL · live "can this system lie right now?" integrity wall.
5
+ //
6
+ // A WALL of bricks, one region per honesty status, sized by the live count of surfaces in that
7
+ // status this request. A KEYSTONE at the top carries the estate's single verdict — INTACT /
8
+ // DEGRADED / VIOLATED — read VERBATIM from the aggregate. HONEST BY CONSTRUCTION: every value is
9
+ // read from the same-origin feed, which is derived live from the Frontier Index catalog (surface
10
+ // registry + registered routes + each surface's OWN response) — never a hand-maintained scorecard.
11
+ //
12
+ // DATA: live snapshot from GET /api/a11oy/v1/govern/honestywall/status (PURE READ, mints nothing):
13
+ // ok, label (MODELED), verdict, verdict_reason,
14
+ // summary{ surfaces, surfaces_by_status{NATIVE-OK,UNKNOWN,NO-MANIFEST,...}, label_counts,
15
+ // invariants_satisfied, invariants_violated, reachable_violations, unknown_surfaces },
16
+ // doctrine{ lambda, locked_proven, trust_ceiling, trust_100_percent, adds_to_locked_8 }.
17
+ //
18
+ // VISUALIZES:
19
+ // 1. a KEYSTONE plate whose colour is the verdict (teal INTACT / amber DEGRADED / red VIOLATED).
20
+ // 2. a WALL of bricks below it — one column per surface-status, height by count. The wall reads
21
+ // solid (integrity) when INTACT, and a status region pulses red the instant it holds a
22
+ // reachable violation.
23
+ // 3. a scanning sweep that travels the wall so the feed reads as a living, watched surface.
24
+ //
25
+ // HONESTY LABEL: MODELED — this surface's own top label is MODELED (a derived aggregate digest, not
26
+ // a measurement). Per-surface labels are read VERBATIM and NEVER upgraded. The verdict is NEVER
27
+ // INTACT if anything is violated. No green "1.0 / VERIFIED" state. Trust ceiling 0.97, never 100%.
28
+ // COLOURS: proof-teal 0x3af4c8 (intact/native-ok), amber 0xf4b23a (degraded/unknown), crimson
29
+ // 0xff5964 (violated), grey 0x42505d (no-manifest/client-only), lattice-blue 0x5b8dee (frame).
30
+ // PURPLE BANNED (except 0x8a6bff, unused here). No green.
31
+ // 0 RUNTIME CDN. Vendored three.js via page importmap (ctx.THREE).
32
+ // DOCTRINE v11: OBSERVES only — adds NOTHING to the locked-8 {F1,F4,F7,F11,F12,F18,F19,F22} @
33
+ // c7c0ba17; Λ stays Conjecture 1; introduces no theorem. Degrades grey on 404/error; label shown.
34
+
35
+ import { createShowcase } from "./_showcase.js";
36
+
37
+ const ID = "honestywall";
38
+ const TITLE = "Honesty Wall · can this system lie right now? (live, drift-proof)";
39
+
40
+ // same-origin, relative — no CDN, no cross-origin fetch. PURE-READ status endpoint.
41
+ const EP = "/api/a11oy/v1/govern/honestywall/status";
42
+
43
+ // verdict / status hues — purple BANNED, no green
44
+ const C_INTACT = 0x3af4c8; // proof-teal — INTACT / native-ok
45
+ const C_DEGRADED = 0xf4b23a; // amber — DEGRADED / unknown
46
+ const C_VIOLATED = 0xff5964; // crimson — VIOLATED
47
+ const C_NEUTRAL = 0x42505d; // grey — no-manifest / client-only
48
+ const C_FRAME = 0x5b8dee; // lattice-blue — wall frame
49
+ const C_GRID = 0x1b3a44; // floor colour
50
+
51
+ // map an honest status token -> a brick colour
52
+ function _statusColor(status) {
53
+ const s = String(status || "").toUpperCase();
54
+ if (s === "NATIVE-OK" || s === "OK") return C_INTACT;
55
+ if (s === "UNKNOWN") return C_DEGRADED;
56
+ if (s === "VIOLATED") return C_VIOLATED;
57
+ return C_NEUTRAL; // NO-MANIFEST / anything else
58
+ }
59
+ function _verdictColor(v) {
60
+ const s = String(v || "").toUpperCase();
61
+ if (s === "INTACT") return C_INTACT;
62
+ if (s === "VIOLATED") return C_VIOLATED;
63
+ return C_DEGRADED; // DEGRADED / init
64
+ }
65
+
66
+ let _stage = null, _THREE = null, _ctx = null, _group = null, _show = null;
67
+ let _frameReg = false, _polls = [], _el = {}, _badge = null, _plain = false;
68
+
69
+ let _keystone = null; // THREE.Mesh — the verdict keystone
70
+ let _columns = []; // Array<{ mesh, status, count, violated }>
71
+ let _sweep = 0; // scanning-sweep phase
72
+
73
+ // live state (all read from JSON; nothing invented)
74
+ const S = {
75
+ label: null, // top honesty label VERBATIM (MODELED)
76
+ verdict: null, // INTACT | DEGRADED | VIOLATED
77
+ reason: null,
78
+ surfaces: null,
79
+ byStatus: {}, // { "NATIVE-OK": n, "UNKNOWN": n, "VIOLATED": n, ... }
80
+ satisfied:null,
81
+ violated: null,
82
+ reachV: null, // reachable_violations
83
+ unknown: null,
84
+ trustCeil:null,
85
+ lambda: null,
86
+ locked: null,
87
+ state: "init",
88
+ };
89
+
90
+ // =============================================================================
91
+ export function mount(ctx) {
92
+ _ctx = ctx; _stage = ctx.stage; _THREE = ctx.THREE;
93
+ _group = new _THREE.Group();
94
+ _stage.scene.add(_group);
95
+ _stage.camera.position.set(0, 4.5, 18);
96
+ try { if (_stage.controls && _stage.controls.target) { _stage.controls.target.set(0, 2.2, 0); _stage.controls.update(); } } catch (_) {}
97
+ try { _stage.setBloom(true); } catch (_) {}
98
+
99
+ _buildFloor();
100
+ _buildKeystone();
101
+
102
+ if (!_frameReg) { _stage.onFrame(_onFrame); _frameReg = true; }
103
+
104
+ _badge = ctx.live.createBadge();
105
+ _polls.push(ctx.live.poll(EP, 8000, _onData, {
106
+ badge: _badge, onState: (m) => { S.state = m.state; _paintOverlay(); _paintKeystone(); },
107
+ }));
108
+
109
+ _buildOverlay();
110
+ return { id: ID, started: true };
111
+ }
112
+
113
+ // =============================================================================
114
+ function _buildFloor() {
115
+ const THREE = _THREE;
116
+ const grid = new THREE.GridHelper(40, 40, C_GRID, 0x0f2027);
117
+ grid.material.opacity = 0.16; grid.material.transparent = true; grid.position.y = -0.01;
118
+ _group.add(grid);
119
+ }
120
+
121
+ function _buildKeystone() {
122
+ const THREE = _THREE;
123
+ const g = new THREE.BoxGeometry(6.4, 1.2, 0.6);
124
+ _keystone = new THREE.Mesh(g, new THREE.MeshStandardMaterial({
125
+ color: C_DEGRADED, emissive: C_DEGRADED, emissiveIntensity: 0.35,
126
+ transparent: true, opacity: 0.9,
127
+ }));
128
+ _keystone.position.set(0, 6.2, 0);
129
+ _group.add(_keystone);
130
+
131
+ // lattice frame beneath the keystone (the wall's top rail)
132
+ const rg = new THREE.BufferGeometry().setFromPoints([
133
+ new THREE.Vector3(-6, 5.4, 0), new THREE.Vector3(6, 5.4, 0),
134
+ ]);
135
+ const rail = new THREE.Line(rg, new THREE.LineBasicMaterial({
136
+ color: C_FRAME, transparent: true, opacity: 0.4,
137
+ }));
138
+ _group.add(rail);
139
+ }
140
+
141
+ // Build (or rebuild) one column per surface-status, height by count. Called on each live
142
+ // snapshot so the wall always mirrors the CURRENT feed (never a stale hard-coded set).
143
+ function _buildColumns() {
144
+ const THREE = _THREE;
145
+ _disposeColumns();
146
+
147
+ const entries = Object.keys(S.byStatus).map((k) => [k, S.byStatus[k]])
148
+ .filter((e) => typeof e[1] === "number" && e[1] > 0);
149
+ const n = entries.length;
150
+ if (!n) return;
151
+
152
+ const maxCount = entries.reduce((m, e) => Math.max(m, e[1]), 1);
153
+ const totalW = 11.0;
154
+ const step = n > 1 ? totalW / n : 0;
155
+ const startX = -totalW / 2 + step / 2;
156
+ const brickGeo = new THREE.BoxGeometry(Math.min(1.6, step * 0.8), 1.0, 0.9);
157
+
158
+ for (let i = 0; i < n; i++) {
159
+ const [status, count] = entries[i];
160
+ const color = _statusColor(status);
161
+ const violated = String(status).toUpperCase() === "VIOLATED";
162
+ const h = 0.6 + (count / maxCount) * 4.2; // height by share
163
+ const x = startX + step * i;
164
+
165
+ const mesh = new THREE.Mesh(brickGeo, new THREE.MeshStandardMaterial({
166
+ color, emissive: color, emissiveIntensity: 0.28, transparent: true, opacity: 0.92,
167
+ }));
168
+ mesh.scale.y = h;
169
+ mesh.position.set(x, h / 2, 0);
170
+ _group.add(mesh);
171
+
172
+ _columns.push({ mesh, status, count, violated });
173
+ }
174
+ }
175
+
176
+ function _disposeColumns() {
177
+ const rm = (o) => {
178
+ if (!o) return;
179
+ try {
180
+ if (o.geometry && o.geometry.dispose) o.geometry.dispose();
181
+ if (o.material) { const ms = Array.isArray(o.material) ? o.material : [o.material]; ms.forEach((m) => m.dispose && m.dispose()); }
182
+ if (_group) _group.remove(o);
183
+ } catch (_) {}
184
+ };
185
+ _columns.forEach((c) => rm(c.mesh));
186
+ _columns = [];
187
+ }
188
+
189
+ // =============================================================================
190
+ // live data handler — read VERBATIM, never upgrade
191
+ // =============================================================================
192
+ function _onData(j) {
193
+ S.label = (j && j.label ? String(j.label) : "MODELED").toUpperCase();
194
+ S.verdict = j && j.verdict ? String(j.verdict).toUpperCase() : null;
195
+ S.reason = j && j.verdict_reason ? String(j.verdict_reason) : null;
196
+
197
+ const sm = (j && j.summary) || {};
198
+ S.surfaces = typeof sm.surfaces === "number" ? sm.surfaces : null;
199
+ S.byStatus = (sm.surfaces_by_status && typeof sm.surfaces_by_status === "object") ? sm.surfaces_by_status : {};
200
+ S.satisfied = typeof sm.invariants_satisfied === "number" ? sm.invariants_satisfied : null;
201
+ S.violated = typeof sm.invariants_violated === "number" ? sm.invariants_violated : null;
202
+ S.reachV = typeof sm.reachable_violations === "number" ? sm.reachable_violations : null;
203
+ S.unknown = typeof sm.unknown_surfaces === "number" ? sm.unknown_surfaces : null;
204
+
205
+ const d = (j && j.doctrine) || {};
206
+ S.trustCeil = typeof d.trust_ceiling === "number" ? d.trust_ceiling : null;
207
+ S.lambda = typeof d.lambda === "string" ? d.lambda : null;
208
+ S.locked = typeof d.locked_proven === "number" ? d.locked_proven : null;
209
+
210
+ _buildColumns();
211
+ _paintKeystone();
212
+ _paintOverlay();
213
+ _paintList();
214
+ }
215
+
216
+ // =============================================================================
217
+ function _onFrame() {
218
+ const t = performance.now();
219
+ if (_group) _group.rotation.y = Math.sin(t * 0.00005) * 0.08;
220
+
221
+ const live = S.state === "live";
222
+ if (_keystone) {
223
+ const pulse = 0.35 + (live ? 0.25 : 0.08) * (0.5 + 0.5 * Math.sin(t * 0.003));
224
+ _keystone.material.emissiveIntensity = pulse;
225
+ }
226
+ if (_columns.length) {
227
+ _sweep = (t * 0.0002) % 1;
228
+ const lead = Math.floor(_sweep * _columns.length);
229
+ for (let i = 0; i < _columns.length; i++) {
230
+ const c = _columns[i];
231
+ const near = Math.abs(i - lead) <= 0;
232
+ // a violated region always glows hot; others follow the sweep when live.
233
+ const base = c.violated ? 0.6 : (live ? 0.28 : 0.12);
234
+ c.mesh.material.emissiveIntensity = (near && live) ? Math.max(base, 0.85) : base;
235
+ c.mesh.material.opacity = live ? 0.92 : 0.4;
236
+ }
237
+ }
238
+ }
239
+
240
+ // =============================================================================
241
+ function _paintKeystone() {
242
+ if (!_keystone) return;
243
+ const col = _verdictColor(S.state === "live" ? S.verdict : null);
244
+ _keystone.material.color.setHex(col);
245
+ _keystone.material.emissive.setHex(col);
246
+ }
247
+
248
+ // =============================================================================
249
+ // overlay (HUD)
250
+ // =============================================================================
251
+ function _buildOverlay() {
252
+ const ctx = _ctx;
253
+ _show = createShowcase(ctx, {
254
+ id: ID, title: TITLE, accent: "#5b8dee", badge: _badge,
255
+ chips: [{ label: "MODELED", text: "integrity", name: "lbl" },
256
+ { label: "—", text: "verdict", name: "vrd" }],
257
+ legend: ["MODELED"],
258
+ });
259
+ const host = _show.body;
260
+
261
+ const sub = document.createElement("div");
262
+ sub.style.cssText = "color:#9fb1bf;font-size:11px;line-height:1.55";
263
+ sub.innerHTML =
264
+ 'A live integrity wall answering one question: <b>can this system lie right now?</b> For every ' +
265
+ 'registered surface it reads that surface’s <b>own</b> honest data label <b>VERBATIM</b> and the ' +
266
+ 'estate’s honesty invariants (locked-8 exact, Λ = Conjecture 1 <b>not</b> a theorem, trust ceiling ' +
267
+ '≤ 0.97, no consciousness claim, writer ≠ judge), then rolls them into ONE verdict — ' +
268
+ '<b>INTACT / DEGRADED / VIOLATED</b>. <b>Never INTACT if anything is violated</b>; labels are ' +
269
+ 'never upgraded. Honest by construction — derived live from the Frontier Index, never a ' +
270
+ 'hand-maintained scorecard. 0 runtime CDN.';
271
+ host.appendChild(sub);
272
+
273
+ const card = document.createElement("div");
274
+ card.style.cssText = "background:#0a1117;border:1px solid #1d2a36;border-radius:9px;padding:9px 10px;display:flex;flex-direction:column;gap:6px";
275
+
276
+ const grid = document.createElement("div");
277
+ grid.style.cssText = "display:grid;grid-template-columns:1fr;gap:4px";
278
+ function kpiRow(id, label) {
279
+ const r = document.createElement("div");
280
+ r.style.cssText = "display:flex;justify-content:space-between;gap:10px;font-size:11px";
281
+ const l = document.createElement("span"); l.style.cssText = "color:#9fb1bf"; l.textContent = label;
282
+ const v = document.createElement("b");
283
+ v.id = id;
284
+ v.style.cssText = "font-variant-numeric:tabular-nums;color:#eef3f6;text-align:right;max-width:62%;overflow-wrap:anywhere";
285
+ v.textContent = "—";
286
+ _el[id] = v;
287
+ r.appendChild(l); r.appendChild(v); return r;
288
+ }
289
+ grid.appendChild(kpiRow("hw-verdict", "verdict"));
290
+ grid.appendChild(kpiRow("hw-surf", "surfaces observed"));
291
+ grid.appendChild(kpiRow("hw-sat", "invariants satisfied"));
292
+ grid.appendChild(kpiRow("hw-viol", "invariants violated"));
293
+ grid.appendChild(kpiRow("hw-reach", "reachable violations"));
294
+ grid.appendChild(kpiRow("hw-unk", "UNKNOWN this request"));
295
+ grid.appendChild(kpiRow("hw-locked", "locked proofs"));
296
+ grid.appendChild(kpiRow("hw-trust", "trust ceiling"));
297
+ grid.appendChild(kpiRow("hw-lambda", "Λ"));
298
+ card.appendChild(grid);
299
+ host.appendChild(card);
300
+
301
+ // scrollable per-status list (text mirror of the wall).
302
+ const listWrap = document.createElement("div");
303
+ listWrap.style.cssText = "display:flex;flex-direction:column;gap:4px;max-height:170px;overflow:auto";
304
+ _el["list"] = listWrap;
305
+ host.appendChild(listWrap);
306
+
307
+ const leg = document.createElement("div");
308
+ leg.style.cssText = "font-size:9.5px;color:#6b7a86;line-height:1.6";
309
+ leg.innerHTML =
310
+ '<span style="color:#3af4c8">■</span> native-ok / INTACT &nbsp; ' +
311
+ '<span style="color:#f4b23a">■</span> UNKNOWN / degraded &nbsp; ' +
312
+ '<span style="color:#ff5964">■</span> VIOLATED &nbsp; ' +
313
+ '<span style="color:#8494a1">■</span> no-manifest. ' +
314
+ 'MODELED · labels read verbatim, never upgraded · never INTACT if violated.';
315
+ card.appendChild(leg);
316
+
317
+ const pl = document.createElement("button");
318
+ pl.textContent = "◑ what this means";
319
+ pl.title = "Toggle plain-language explanation for investors & consumers.";
320
+ pl.style.cssText = "font:11px ui-monospace,monospace;padding:5px 11px;border-radius:7px;border:1px solid #3af4c8;background:#08140f;color:#3af4c8;cursor:pointer;width:fit-content";
321
+ pl.addEventListener("click", () => {
322
+ _plain = !_plain;
323
+ pl.style.background = _plain ? "#0f2a20" : "#08140f";
324
+ _applyPlain();
325
+ });
326
+ host.appendChild(pl);
327
+
328
+ const pd = document.createElement("div");
329
+ pd.id = "hw-plain";
330
+ pd.style.cssText = "font-size:10.5px;color:#c9d6df;line-height:1.55;border:1px dashed #26333f;border-radius:7px;padding:7px 9px;display:none";
331
+ _el["plain"] = pd;
332
+ host.appendChild(pd);
333
+
334
+ _paintOverlay();
335
+ }
336
+
337
+ function _applyPlain() {
338
+ const pd = _el["plain"];
339
+ if (!pd) return;
340
+ pd.style.display = _plain ? "block" : "none";
341
+ if (!_plain) return;
342
+ pd.innerHTML =
343
+ "<b>What this means:</b> a single, honest read on whether the platform is currently telling the " +
344
+ "truth about itself. It walks every live feature, reads that feature’s <b>own</b> honesty label " +
345
+ "word-for-word, and checks the house rules (only 8 proofs are locked; Λ is a conjecture, not a " +
346
+ "proven theorem; confidence is capped at 0.97, never 100%). If everything holds it reads " +
347
+ "<b>INTACT</b>; if some features couldn’t be reached it reads <b>DEGRADED</b>; and if even one " +
348
+ "rule is broken it reads <b>VIOLATED</b> — it can <b>never</b> claim INTACT while something is " +
349
+ "wrong. Because the wall is generated from the running app itself, it cannot quietly disagree " +
350
+ "with what is actually wired. No “verified / 1.0” state.";
351
+ }
352
+
353
+ function _tok(s) {
354
+ if (s === "live") return null;
355
+ if (s === "missing") return "NO-LIVE-DATA";
356
+ if (s === "degraded") return "DEGRADED";
357
+ if (s === "error") return "OFFLINE";
358
+ return "…";
359
+ }
360
+ function _set(id, v) { if (_el[id]) _el[id].textContent = v; }
361
+ function _n(v) { return v == null ? "—" : String(v); }
362
+
363
+ function _paintList() {
364
+ const wrap = _el["list"];
365
+ if (!wrap) return;
366
+ wrap.innerHTML = "";
367
+ const keys = Object.keys(S.byStatus).sort();
368
+ keys.forEach((k) => {
369
+ const count = S.byStatus[k];
370
+ const row = document.createElement("div");
371
+ row.style.cssText = "display:flex;justify-content:space-between;gap:8px;font-size:10.5px;border-bottom:1px solid #12202b;padding:2px 0";
372
+ const left = document.createElement("span");
373
+ left.style.cssText = "color:#c9d6df;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:66%";
374
+ left.textContent = k;
375
+ const val = document.createElement("b");
376
+ const hex = "#" + _statusColor(k).toString(16).padStart(6, "0");
377
+ val.style.cssText = "color:" + hex + ";font-variant-numeric:tabular-nums";
378
+ val.textContent = String(count);
379
+ row.appendChild(left); row.appendChild(val);
380
+ wrap.appendChild(row);
381
+ });
382
+ }
383
+
384
+ function _paintOverlay() {
385
+ const t = _tok(S.state);
386
+ const vrd = t || (S.verdict || "—");
387
+ if (_show) {
388
+ _show.setChip("lbl", S.label || "MODELED", { text: "integrity" });
389
+ _show.setChip("vrd", vrd, { text: "verdict" });
390
+ }
391
+ _set("hw-verdict", vrd + (S.reason && S.state === "live" ? "" : ""));
392
+ _set("hw-surf", t || _n(S.surfaces));
393
+ _set("hw-sat", t || _n(S.satisfied));
394
+ _set("hw-viol", t || _n(S.violated));
395
+ _set("hw-reach", t || _n(S.reachV));
396
+ _set("hw-unk", t || _n(S.unknown));
397
+ _set("hw-locked", t || (S.locked != null ? String(S.locked) : "—"));
398
+ _set("hw-trust", t || (S.trustCeil != null ? String(S.trustCeil) : "—"));
399
+ _set("hw-lambda", t || (S.lambda || "—"));
400
+ if (_plain) _applyPlain();
401
+ }
402
+
403
+ // =============================================================================
404
+ export function unmount() {
405
+ _polls.forEach((p) => { try { p.stop(); } catch (_) {} }); _polls = [];
406
+ try { if (_show) _show.destroy(); } catch (_) {}
407
+ try {
408
+ _disposeColumns();
409
+ if (_group && _stage) {
410
+ _group.traverse((o) => {
411
+ if (o.geometry && o.geometry.dispose) o.geometry.dispose();
412
+ if (o.material) {
413
+ const ms = Array.isArray(o.material) ? o.material : [o.material];
414
+ ms.forEach((mm) => { if (mm.dispose) mm.dispose(); });
415
+ }
416
+ });
417
+ _stage.scene.remove(_group);
418
+ }
419
+ } catch (_) {}
420
+ _group = _show = null;
421
+ _keystone = null; _columns = [];
422
+ _el = {}; _badge = null; _plain = false; _frameReg = false; _sweep = 0;
423
+ _stage = _THREE = _ctx = null;
424
+ S.label = S.verdict = S.reason = null;
425
+ S.surfaces = S.satisfied = S.violated = S.reachV = S.unknown = null;
426
+ S.byStatus = {};
427
+ S.trustCeil = S.lambda = S.locked = null; S.state = "init";
428
+ }
429
+
430
+ export default { id: ID, title: TITLE, endpoints: [EP], mount, unmount };