betterwithage Claude Opus 4.7 commited on
Commit
b2c6f21
·
verified ·
1 Parent(s): 344ae99

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

Browse files

Reusable Dockerfile-COPY-derived deploy from szl-holdings/a11oy main.
Files: 886 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>

Files changed (1) hide show
  1. static/3d/surfaces/brain.js +17 -1
static/3d/surfaces/brain.js CHANGED
@@ -43,6 +43,8 @@ const EP_MEM = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbra
43
  const EP_VITALS = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/vitals?seed=42&rounds=12";
44
  // wave-20: evolutionary self-improvement (MAP-Elites/DGM archive; kernel gate disposes)
45
  const EP_EVOLVE = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/evolve?seed=42&generations=15";
 
 
46
 
47
  // tier -> colour. proof-teal for the proven core, lattice-blue for verified/experimental,
48
  // violet-blue for borrowed fusions, GREY for conjectures (never green).
@@ -76,6 +78,7 @@ const S = {
76
  lesion: null, bodyHealth: null, lam2Before: null, lam2After: null, connectedAfter: null,
77
  lockedFrozen: null, plastScore: null, ewcCore: null,
78
  beats: null, chainOk: null, reconsGain: null,
 
79
  driveFinal: null, viability: null, inBand: null, setpointCount: null,
80
  lockedUntouched: null, failClosed: null,
81
  archiveCells: null, archiveCellsPossible: null, modeledPromotions: null,
@@ -118,6 +121,7 @@ function mount(ctx) {
118
  _polls.push(ctx.live.poll(EP_REPAIR, 0, _onRepair, {}));
119
  _polls.push(ctx.live.poll(EP_PLAST, 0, _onPlast, {}));
120
  _polls.push(ctx.live.poll(EP_MEM, 0, _onMem, {}));
 
121
  _polls.push(ctx.live.poll(EP_VITALS, 0, _onVitals, {}));
122
  _polls.push(ctx.live.poll(EP_EVOLVE, 0, _onEvolve, {}));
123
 
@@ -279,6 +283,15 @@ function _onEvolve(j) {
279
  _paintOverlay();
280
  }
281
 
 
 
 
 
 
 
 
 
 
282
  // =============================================================================
283
  // overlay HUD
284
  // =============================================================================
@@ -314,6 +327,7 @@ function _buildOverlay(ctx) {
314
  _row("Receipt beats written", "brain-beats") +
315
  _row("Hash chain intact", "brain-chain") +
316
  _row("Reconsolidation gain", "brain-recons") +
 
317
  '<hr style="border:0;border-top:1px solid #1b3a44;margin:8px 0">' +
318
  '<div style="font-size:10.5px;color:#8fb3bd;margin-bottom:2px">Homeostasis (self-regulation)</div>' +
319
  _row("Drive (final)", "brain-drive") +
@@ -367,6 +381,7 @@ function _paintOverlay() {
367
  _set("brain-beats", d || (S.beats != null ? String(S.beats) : "\u2014"));
368
  _set("brain-chain", d || (S.chainOk != null ? (S.chainOk ? "yes (tamper-evident)" : "NO \u2014 alert") : "\u2014"));
369
  _set("brain-recons", d || (S.reconsGain != null ? (S.reconsGain >= 0 ? "+" : "") + S.reconsGain + " nodes" : "\u2014"));
 
370
  _set("brain-drive", d || (S.driveFinal != null ? S.driveFinal.toFixed(4) + (S.failClosed ? " (fail-closed)" : "") : "\u2014"));
371
  _set("brain-inband", d || (S.inBand != null && S.setpointCount != null ? S.inBand + " / " + S.setpointCount : "\u2014"));
372
  _set("brain-viab", d || (S.viability != null ? S.viability + " cycles" : "\u2014"));
@@ -426,6 +441,7 @@ function unmount() {
426
  S.lesion = S.bodyHealth = S.lam2Before = S.lam2After = S.connectedAfter = null;
427
  S.lockedFrozen = S.plastScore = S.ewcCore = null;
428
  S.beats = S.chainOk = S.reconsGain = null;
 
429
  S.driveFinal = S.viability = S.inBand = S.setpointCount = null;
430
  S.lockedUntouched = S.failClosed = null;
431
  S.archiveCells = S.archiveCellsPossible = S.modeledPromotions = null;
@@ -433,4 +449,4 @@ function unmount() {
433
  S.state = "init";
434
  }
435
 
436
- export default { id: ID, title: TITLE, endpoints: [EP_GRAPH, EP_FIRE, EP_REPAIR, EP_PLAST, EP_MEM, EP_VITALS, EP_EVOLVE], mount, unmount };
 
43
  const EP_VITALS = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/vitals?seed=42&rounds=12";
44
  // wave-20: evolutionary self-improvement (MAP-Elites/DGM archive; kernel gate disposes)
45
  const EP_EVOLVE = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/evolve?seed=42&generations=15";
46
+ // wave-21: one authoritative energy signal (szl-energy-attest; MEASURED or honest UNAVAILABLE)
47
+ const EP_ENERGY = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/vitals/energy";
48
 
49
  // tier -> colour. proof-teal for the proven core, lattice-blue for verified/experimental,
50
  // violet-blue for borrowed fusions, GREY for conjectures (never green).
 
78
  lesion: null, bodyHealth: null, lam2Before: null, lam2After: null, connectedAfter: null,
79
  lockedFrozen: null, plastScore: null, ewcCore: null,
80
  beats: null, chainOk: null, reconsGain: null,
81
+ energyStatus: null, energyJoules: null,
82
  driveFinal: null, viability: null, inBand: null, setpointCount: null,
83
  lockedUntouched: null, failClosed: null,
84
  archiveCells: null, archiveCellsPossible: null, modeledPromotions: null,
 
121
  _polls.push(ctx.live.poll(EP_REPAIR, 0, _onRepair, {}));
122
  _polls.push(ctx.live.poll(EP_PLAST, 0, _onPlast, {}));
123
  _polls.push(ctx.live.poll(EP_MEM, 0, _onMem, {}));
124
+ _polls.push(ctx.live.poll(EP_ENERGY, 0, _onEnergy, {}));
125
  _polls.push(ctx.live.poll(EP_VITALS, 0, _onVitals, {}));
126
  _polls.push(ctx.live.poll(EP_EVOLVE, 0, _onEvolve, {}));
127
 
 
283
  _paintOverlay();
284
  }
285
 
286
+ function _onEnergy(j) {
287
+ if (!j) return;
288
+ const p = j.payload || j;
289
+ const e = p.energy || {};
290
+ S.energyStatus = e.status != null ? e.status : null;
291
+ S.energyJoules = e.joules != null ? e.joules : null;
292
+ _paintOverlay();
293
+ }
294
+
295
  // =============================================================================
296
  // overlay HUD
297
  // =============================================================================
 
327
  _row("Receipt beats written", "brain-beats") +
328
  _row("Hash chain intact", "brain-chain") +
329
  _row("Reconsolidation gain", "brain-recons") +
330
+ _row("Energy (authoritative)", "brain-energy") +
331
  '<hr style="border:0;border-top:1px solid #1b3a44;margin:8px 0">' +
332
  '<div style="font-size:10.5px;color:#8fb3bd;margin-bottom:2px">Homeostasis (self-regulation)</div>' +
333
  _row("Drive (final)", "brain-drive") +
 
381
  _set("brain-beats", d || (S.beats != null ? String(S.beats) : "\u2014"));
382
  _set("brain-chain", d || (S.chainOk != null ? (S.chainOk ? "yes (tamper-evident)" : "NO \u2014 alert") : "\u2014"));
383
  _set("brain-recons", d || (S.reconsGain != null ? (S.reconsGain >= 0 ? "+" : "") + S.reconsGain + " nodes" : "\u2014"));
384
+ _set("brain-energy", d || (S.energyStatus != null ? (S.energyStatus === "MEASURED" ? (S.energyJoules + " J") : "UNAVAILABLE (honest)") : "\u2014"));
385
  _set("brain-drive", d || (S.driveFinal != null ? S.driveFinal.toFixed(4) + (S.failClosed ? " (fail-closed)" : "") : "\u2014"));
386
  _set("brain-inband", d || (S.inBand != null && S.setpointCount != null ? S.inBand + " / " + S.setpointCount : "\u2014"));
387
  _set("brain-viab", d || (S.viability != null ? S.viability + " cycles" : "\u2014"));
 
441
  S.lesion = S.bodyHealth = S.lam2Before = S.lam2After = S.connectedAfter = null;
442
  S.lockedFrozen = S.plastScore = S.ewcCore = null;
443
  S.beats = S.chainOk = S.reconsGain = null;
444
+ S.energyStatus = S.energyJoules = null;
445
  S.driveFinal = S.viability = S.inBand = S.setpointCount = null;
446
  S.lockedUntouched = S.failClosed = null;
447
  S.archiveCells = S.archiveCellsPossible = S.modeledPromotions = null;
 
449
  S.state = "init";
450
  }
451
 
452
+ export default { id: ID, title: TITLE, endpoints: [EP_GRAPH, EP_FIRE, EP_REPAIR, EP_PLAST, EP_MEM, EP_VITALS, EP_ENERGY, EP_EVOLVE], mount, unmount };