betterwithage Claude Opus 4.7 commited on
Commit
1876cf7
·
verified ·
1 Parent(s): 64dac23

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

Browse files

Reusable Dockerfile-COPY-derived deploy from szl-holdings/a11oy main.
Files: 976 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
@@ -217,6 +217,7 @@ const SURFACES = [
217
  { id: "braincommand", cat: "brain", title: "Brain Command · pulse · subscribe/budget · signed receipt (Brain powering the ecosystem)", mod: "/static/3d/surfaces/braincommand.js" },
218
  { id: "mesh", cat: "defense", title: "Sovereign Mesh · Cross-Node Orchestration (status/route/quorum)", mod: "/static/3d/surfaces/mesh.js" },
219
  { id: "agenttts", cat: "reasoning", title: "Agent Test-Time Compute · Multi-Agent TTC (live)", mod: "/static/3d/surfaces/agenttts.js" },
 
220
  ];
221
 
222
  const stageEl = document.getElementById("stage");
 
217
  { id: "braincommand", cat: "brain", title: "Brain Command · pulse · subscribe/budget · signed receipt (Brain powering the ecosystem)", mod: "/static/3d/surfaces/braincommand.js" },
218
  { id: "mesh", cat: "defense", title: "Sovereign Mesh · Cross-Node Orchestration (status/route/quorum)", mod: "/static/3d/surfaces/mesh.js" },
219
  { id: "agenttts", cat: "reasoning", title: "Agent Test-Time Compute · Multi-Agent TTC (live)", mod: "/static/3d/surfaces/agenttts.js" },
220
+ { id: "cryptopipeline", cat: "proof", title: "Crypto-Pipeline · End-to-End AI Lifecycle Verifiable Transcript (MODELED)", mod: "/static/3d/surfaces/cryptopipeline.js" },
221
  ];
222
 
223
  const stageEl = document.getElementById("stage");
static/3d/surfaces/cryptopipeline.js ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ // © 2026 Lutar, Stephen P. — SZL Holdings · ORCID 0009-0001-0110-4173 · Doctrine v11
3
+ //
4
+ // surfaces/cryptopipeline.js — CRYPTO-PIPELINE end-to-end AI-lifecycle verifiable
5
+ // transcript organ for the holographic frontier ring. Renders the four lifecycle
6
+ // stages — data-sourcing → training → inference → unlearning — as a hash-linked
7
+ // chain of commitment nodes: each stage node glows proof-teal when its recomputed
8
+ // link checks out, and the linking edges + a transcript-root glyph above show the
9
+ // composed end-to-end transcript. A tampered stage flips grey/broken to make the
10
+ // honesty legible: the hash chain DETECTS mutation.
11
+ //
12
+ // Distinct from zkinfer/attestinfer (inference-only). Here the whole PIPELINE is
13
+ // committed and linked. Honesty label "MODELED" is read VERBATIM from the JSON and
14
+ // displayed as-is; it is NEVER upgraded. The commit/link/root hashing is REAL and
15
+ // recomputable; the per-stage zk PROOF objects are SIMULATED (no SNARK). No
16
+ // PROVEN/VERIFIED/1.0 state anywhere.
17
+ //
18
+ // Surface export shape (mirrors kvcache.js / zkinfer.js exactly):
19
+ // export default { id, title, endpoints, mount(ctx), unmount() }
20
+ // ctx = { stage, container, live, label, THREE, szl3d }
21
+ //
22
+ // DATA SHOWN (all from same-origin live endpoint, szl_crypto_pipeline.py):
23
+ // label, lifecycle[], stages[]{stage,title,commit,link,tampered,proof{label,...}},
24
+ // transcript_root, chain_consistent, verify{per_link[],root_ok}, tamper{...},
25
+ // spine{dsse,ledger,signed_on_read}, receipt{digest_sha256,signature}
26
+ //
27
+ // PRIMARY SOURCES (cited verbatim on-surface; IDs only — 0 runtime CDN):
28
+ // End-to-End AI-Pipeline Verifiability arXiv:2503.22573 · zkLLM arXiv:2404.16109 ·
29
+ // Artemis commit-and-prove zkML arXiv:2409.12055 · SafetyNets arXiv:1706.10268.
30
+ //
31
+ // HONESTY LABEL: MODELED — real SHA-256 commitment/link/root chaining; per-stage zk
32
+ // proofs SIMULATED (hash-commit chain, NOT a real SNARK/zk proof). Read verbatim;
33
+ // never upgraded here. Trust ceiling 0.97, never 100%.
34
+ // COLOURS: lattice-blue 0x5b8dee (chain spine / stage body), proof-teal 0x3af4c8
35
+ // (consistent link / transcript root), greys (broken/tampered/degraded). Purple
36
+ // BANNED. No green/1.0 verified state.
37
+ // 0 RUNTIME CDN. Vendored three.js r170 via page importmap (ctx.THREE).
38
+ // DOCTRINE v11: adds NOTHING to the locked-8 {F1,F4,F7,F11,F12,F18,F19,F22}; Λ stays
39
+ // Conjecture 1; introduces no theorem. Degrades grey on 404/error; label shown.
40
+
41
+ import { createShowcase } from "./_showcase.js";
42
+
43
+ const ID = "cryptopipeline";
44
+ const TITLE = "Crypto-Pipeline · End-to-End AI Lifecycle Verifiable Transcript (live)";
45
+
46
+ // same-origin, relative — a11oy-NATIVE self-hosted primary (no CDN, no cross-origin).
47
+ const EP = "/api/a11oy/v1/cryptopipeline/transcript?seed=42";
48
+
49
+ // data-viz hues — purple BANNED, no green
50
+ const C_STAGE = 0x5b8dee; // lattice-blue (stage commitment node / chain spine)
51
+ const C_OK = 0x3af4c8; // proof-teal (consistent link / transcript root)
52
+ const C_BROKEN = 0x5a6570; // grey (tampered / broken link)
53
+ const C_DIM = 0x42505d; // grey (degraded / no-live-data)
54
+ const C_GRID = 0x1b3a44; // floor / link colour
55
+
56
+ const STAGE_GAP = 3.2; // world-units between stage nodes along X
57
+ const ROW_Y = 0.6; // resting height of a stage node
58
+ const ROOT_Y = 4.2; // height of the transcript-root glyph
59
+
60
+ let _stage = null, _THREE = null, _ctx = null, _group = null, _show = null;
61
+ let _frameReg = false, _polls = [], _el = {}, _badge = null;
62
+
63
+ let _floor = null, _root = null;
64
+ let _nodeMesh = []; // Array<THREE.Mesh> — one per lifecycle stage
65
+ let _edgeLine = []; // Array<THREE.Line> — chain link edges + root spokes
66
+
67
+ const S = {
68
+ label: null,
69
+ lifecycle: null, // string[]
70
+ stages: null, // object[]
71
+ transcriptRoot: null, // string (hex)
72
+ chainConsistent: null, // bool
73
+ tamperStage: null, // string
74
+ tamperOk: null, // bool (chain_consistent_after_tamper)
75
+ dsse: null, // spine.dsse
76
+ ledger: null, // spine.ledger
77
+ signedOnRead: null, // spine.signed_on_read
78
+ receiptSig: null, // receipt.signature
79
+ state: "init",
80
+ };
81
+
82
+ // =============================================================================
83
+ // mount(ctx)
84
+ // =============================================================================
85
+ export function mount(ctx) {
86
+ _ctx = ctx; _stage = ctx.stage; _THREE = ctx.THREE;
87
+ _group = new _THREE.Group();
88
+ _stage.scene.add(_group);
89
+ _stage.camera.position.set(5, 6, 16);
90
+ try { if (_stage.controls && _stage.controls.target) { _stage.controls.target.set(4.8, 1.5, 0); _stage.controls.update(); } } catch (_) {}
91
+ try { _stage.setBloom(true); } catch (_) {}
92
+
93
+ _buildFloor();
94
+ _buildChain();
95
+
96
+ if (!_frameReg) { _stage.onFrame(_onFrame); _frameReg = true; }
97
+
98
+ _badge = ctx.live.createBadge();
99
+ _polls.push(ctx.live.poll(EP, 5000, _onData, { badge: _badge, onState: (m) => { S.state = m.state; _paintOverlay(); } }));
100
+
101
+ _buildOverlay();
102
+ return { id: ID, started: true };
103
+ }
104
+
105
+ // =============================================================================
106
+ // builders
107
+ // =============================================================================
108
+ function _buildFloor() {
109
+ const THREE = _THREE;
110
+ const grid = new THREE.GridHelper(40, 40, C_GRID, 0x0f2027);
111
+ grid.material.opacity = 0.18; grid.material.transparent = true; grid.position.y = -0.01;
112
+ _group.add(grid);
113
+ _floor = grid;
114
+ }
115
+
116
+ // Four stage nodes in a row, chained left→right, each also spoked up to a
117
+ // transcript-root glyph. Built once; colours/positions toggle in-place on poll.
118
+ function _buildChain() {
119
+ const THREE = _THREE;
120
+ const N = 4; // data-sourcing, training, inference, unlearning
121
+
122
+ // transcript-root glyph (the composed end-to-end commitment)
123
+ _root = new THREE.Mesh(
124
+ new THREE.IcosahedronGeometry(0.5, 1),
125
+ new THREE.MeshStandardMaterial({ color: C_OK, emissive: C_OK, emissiveIntensity: 0.5, wireframe: true, transparent: true, opacity: 0.5 }),
126
+ );
127
+ _root.position.set(STAGE_GAP * (N - 1) / 2, ROOT_Y, 0);
128
+ _group.add(_root);
129
+
130
+ const nodeGeo = new THREE.BoxGeometry(0.7, 0.7, 0.7);
131
+ for (let i = 0; i < N; i++) {
132
+ const x = i * STAGE_GAP;
133
+ const mesh = new THREE.Mesh(
134
+ nodeGeo,
135
+ new THREE.MeshStandardMaterial({ color: C_DIM, emissive: C_DIM, emissiveIntensity: 0.2, transparent: true, opacity: 0.35 }),
136
+ );
137
+ mesh.position.set(x, ROW_Y, 0);
138
+ _group.add(mesh);
139
+ _nodeMesh.push(mesh);
140
+
141
+ // spoke up to the transcript root
142
+ const spoke = _mkLine(new THREE.Vector3(x, ROW_Y, 0), _root.position.clone(), C_GRID, 0.2);
143
+ _group.add(spoke); _edgeLine.push(spoke);
144
+
145
+ // chain link edge to previous stage
146
+ if (i > 0) {
147
+ const edge = _mkLine(new THREE.Vector3((i - 1) * STAGE_GAP, ROW_Y, 0),
148
+ new THREE.Vector3(x, ROW_Y, 0), C_STAGE, 0.5);
149
+ _group.add(edge); _edgeLine.push(edge);
150
+ }
151
+ }
152
+ }
153
+
154
+ function _mkLine(a, b, color, opacity) {
155
+ const THREE = _THREE;
156
+ const geo = new THREE.BufferGeometry().setFromPoints([a, b]);
157
+ const mat = new THREE.LineBasicMaterial({ color, transparent: true, opacity });
158
+ return new THREE.Line(geo, mat);
159
+ }
160
+
161
+ // =============================================================================
162
+ // live data handler
163
+ // =============================================================================
164
+ function _onData(j) {
165
+ S.label = (j.label || "MODELED").toUpperCase();
166
+ S.lifecycle = Array.isArray(j.lifecycle) ? j.lifecycle : null;
167
+ S.stages = Array.isArray(j.stages) ? j.stages : null;
168
+ S.transcriptRoot = typeof j.transcript_root === "string" ? j.transcript_root : null;
169
+ S.chainConsistent = typeof j.chain_consistent === "boolean" ? j.chain_consistent : null;
170
+ const tam = j.tamper || {};
171
+ S.tamperStage = typeof tam.tampered_stage === "string" ? tam.tampered_stage : null;
172
+ S.tamperOk = typeof tam.chain_consistent_after_tamper === "boolean" ? tam.chain_consistent_after_tamper : null;
173
+ const sp = j.spine || {};
174
+ S.dsse = typeof sp.dsse === "string" ? sp.dsse : null;
175
+ S.ledger = typeof sp.ledger === "string" ? sp.ledger : null;
176
+ S.signedOnRead = typeof sp.signed_on_read === "boolean" ? sp.signed_on_read : null;
177
+ const rc = j.receipt || {};
178
+ S.receiptSig = typeof rc.signature === "string" ? rc.signature : null;
179
+
180
+ _updateChain();
181
+ _paintOverlay();
182
+ }
183
+
184
+ // =============================================================================
185
+ // geometry updater
186
+ // =============================================================================
187
+ function _updateChain() {
188
+ const live = S.state === "live" && S.stages && S.stages.length;
189
+ const perLink = live ? S.stages : [];
190
+
191
+ for (let i = 0; i < _nodeMesh.length; i++) {
192
+ const mesh = _nodeMesh[i];
193
+ if (!live || i >= perLink.length) {
194
+ mesh.material.color.setHex(C_DIM); mesh.material.emissive.setHex(C_DIM);
195
+ mesh.material.emissiveIntensity = 0.15; mesh.material.opacity = 0.3;
196
+ continue;
197
+ }
198
+ const st = perLink[i];
199
+ const broken = !!st.tampered;
200
+ const color = broken ? C_BROKEN : C_STAGE;
201
+ mesh.material.color.setHex(color);
202
+ mesh.material.emissive.setHex(broken ? C_BROKEN : C_OK);
203
+ mesh.material.emissiveIntensity = broken ? 0.15 : 0.55;
204
+ mesh.material.opacity = broken ? 0.4 : 0.95;
205
+ }
206
+
207
+ // chain link edges + root spokes reflect whole-chain consistency
208
+ const ok = live && S.chainConsistent === true;
209
+ for (const ln of _edgeLine) {
210
+ ln.material.color.setHex(ok ? C_STAGE : (live ? C_BROKEN : C_DIM));
211
+ ln.material.opacity = ok ? 0.5 : (live ? 0.3 : 0.15);
212
+ }
213
+ if (_root) {
214
+ const rc = ok ? C_OK : (live ? C_BROKEN : C_DIM);
215
+ _root.material.color.setHex(rc);
216
+ _root.material.emissive.setHex(rc);
217
+ _root.material.opacity = ok ? 0.6 : 0.3;
218
+ }
219
+ }
220
+
221
+ // =============================================================================
222
+ // per-frame animation
223
+ // =============================================================================
224
+ function _onFrame() {
225
+ const t = performance.now();
226
+ if (_group) _group.rotation.y = Math.sin(t * 0.00009) * 0.1;
227
+ if (_root) {
228
+ _root.rotation.y += 0.02; _root.rotation.x += 0.008;
229
+ const pulse = 1.0 + 0.12 * Math.sin(t * 0.004);
230
+ _root.scale.setScalar(pulse);
231
+ }
232
+ }
233
+
234
+ // =============================================================================
235
+ // overlay
236
+ // =============================================================================
237
+ function _buildOverlay() {
238
+ const ctx = _ctx;
239
+ _show = createShowcase(ctx, {
240
+ id: ID, title: TITLE, accent: "#3af4c8",
241
+ badge: _badge,
242
+ chips: [{ label: "MODELED", text: "hash-commit chain", name: "cp" }],
243
+ legend: ["MODELED", "SIMULATED"],
244
+ description:
245
+ 'The full AI lifecycle — <b>data-sourcing → training → inference → unlearning</b> ' +
246
+ '— as a hash-linked chain of commitments composing into ONE end-to-end verifiable ' +
247
+ 'transcript. Each stage takes a real SHA-256 commitment over its content and links it to ' +
248
+ 'the previous stage; a transcript root binds them all. The <b>commit/link/root hashing is ' +
249
+ 'REAL and recomputable</b>; the per-stage zk proofs are <b>SIMULATED</b> (hash-commit chain, ' +
250
+ 'NOT a real SNARK). A tampered stage is shown breaking the chain. Honesty label ' +
251
+ '<b>MODELED</b>, read verbatim. 0 runtime CDN.',
252
+ citations:
253
+ "End-to-End Pipeline Verifiability arXiv:2503.22573 · zkLLM arXiv:2404.16109 · " +
254
+ "Artemis arXiv:2409.12055 · SafetyNets arXiv:1706.10268. MODELED/SIMULATED · not claimed-as.",
255
+ plain: { html: _plainHtml },
256
+ });
257
+
258
+ _el["cp-lifecycle"] = _show.addField("lifecycle stages");
259
+ _el["cp-root"] = _show.addField("transcript_root (sha256)");
260
+ _el["cp-consistent"]= _show.addField("chain_consistent (hash chain) — MODELED");
261
+ _el["cp-proof"] = _show.addField("per-stage zk proof");
262
+ _el["cp-tamper"] = _show.addField("tamper demo (mutated stage → chain)");
263
+ _el["cp-dsse"] = _show.addField("DSSE spine (advisory, read-only)");
264
+ _el["cp-ledger"] = _show.addField("durable-ledger spine (advisory)");
265
+ _el["cp-sign"] = _show.addField("signed on this GET?");
266
+ _el["cp-receipt"] = _show.addField("local receipt signature");
267
+ _el["cp-label"] = _show.addField("honesty label");
268
+
269
+ _paintOverlay();
270
+ }
271
+
272
+ function _plainHtml() {
273
+ const root = S.transcriptRoot ? S.transcriptRoot.slice(0, 12) + "…" : "loading…";
274
+ const cons = S.chainConsistent == null ? "loading…" : (S.chainConsistent ? "yes" : "no (tampered)");
275
+ return (
276
+ "<b>What this means:</b> An AI system passes through four life stages — collecting data, " +
277
+ "training on it, answering questions (inference), and later forgetting a record (unlearning). " +
278
+ "At each stage we take a tamper-evident fingerprint (a hash) of what happened and chain it to the " +
279
+ "one before, ending in a single <b>transcript root</b> (" + root + ") that stands for the whole " +
280
+ "history. Anyone can re-derive the chain and check it matches — here it is <b>" + cons + "</b>. " +
281
+ "If any stage were altered, the chain would visibly break. This is a <b>MODELED</b> hash-commit " +
282
+ "chain: the linking is real, but the zero-knowledge proofs are <b>SIMULATED</b> — we do NOT " +
283
+ "generate or check a real SNARK, and never claim one.");
284
+ }
285
+
286
+ function _tok(s) {
287
+ if (s === "live") return null;
288
+ if (s === "missing") return "NO-LIVE-DATA";
289
+ if (s === "degraded") return "DEGRADED";
290
+ if (s === "error") return "OFFLINE";
291
+ return "…";
292
+ }
293
+
294
+ function _set(id, v) { if (_el[id]) _el[id].textContent = v; }
295
+
296
+ function _paintOverlay() {
297
+ const t = _tok(S.state);
298
+ _set("cp-lifecycle", t || (S.lifecycle ? S.lifecycle.join(" → ") : "—"));
299
+ _set("cp-root", t || (S.transcriptRoot ? S.transcriptRoot.slice(0, 24) + "…" : "—"));
300
+ _set("cp-consistent",t || (S.chainConsistent == null ? "—" : (S.chainConsistent ? "true" : "false (tampered)")));
301
+ _set("cp-proof", t || "SIMULATED (no SNARK generated)");
302
+ _set("cp-tamper", t || (S.tamperStage ? (S.tamperStage + " → consistent=" + (S.tamperOk === false ? "false (chain breaks)" : String(S.tamperOk))) : "—"));
303
+ _set("cp-dsse", t || (S.dsse || "—"));
304
+ _set("cp-ledger", t || (S.ledger || "—"));
305
+ _set("cp-sign", t || (S.signedOnRead === false ? "no (receipt-on-write only)" : String(S.signedOnRead)));
306
+ _set("cp-receipt", t || (S.receiptSig || "—"));
307
+ // honesty label verbatim — never upgraded
308
+ _set("cp-label", t || (S.label || "MODELED"));
309
+ if (_show) { _show.setChip("cp", S.label || "MODELED", { text: "hash-commit chain" }); _show.refreshPlain(); }
310
+ }
311
+
312
+ // =============================================================================
313
+ // unmount
314
+ // =============================================================================
315
+ export function unmount() {
316
+ _polls.forEach((p) => { try { p.stop(); } catch (_) {} }); _polls = [];
317
+ try { if (_show) _show.destroy(); } catch (_) {}
318
+ try {
319
+ if (_group && _stage) {
320
+ _group.traverse((o) => {
321
+ if (o.geometry && o.geometry.dispose) o.geometry.dispose();
322
+ if (o.material) {
323
+ const ms = Array.isArray(o.material) ? o.material : [o.material];
324
+ ms.forEach((m) => { if (m.dispose) m.dispose(); });
325
+ }
326
+ });
327
+ _stage.scene.remove(_group);
328
+ }
329
+ } catch (_) {}
330
+ _group = _show = null;
331
+ _floor = null; _root = null; _nodeMesh = []; _edgeLine = [];
332
+ _el = {}; _badge = null; _frameReg = false;
333
+ _stage = _THREE = _ctx = null;
334
+ S.label = S.lifecycle = S.stages = S.transcriptRoot = S.chainConsistent = null;
335
+ S.tamperStage = S.tamperOk = S.dsse = S.ledger = S.signedOnRead = S.receiptSig = null;
336
+ S.state = "init";
337
+ }
338
+
339
+ export default { id: ID, title: TITLE, endpoints: [EP], mount, unmount };