Spaces:
Runtime error
Runtime error
deploy(hf): sync szl-holdings/a11oy@main derived COPY set
Browse filesReusable 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>
- static/3d/surfaces/brain.js +61 -1
static/3d/surfaces/brain.js
CHANGED
|
@@ -39,6 +39,10 @@ const EP_REPAIR = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbra
|
|
| 39 |
const EP_PLAST = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/plasticity?seed=42&rounds=30";
|
| 40 |
// wave-18: write-back memory loop (HEART/BLOOD hash-chain + A-MEM reconsolidation)
|
| 41 |
const EP_MEM = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/memory?seed=42&sessions=5";
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
// tier -> colour. proof-teal for the proven core, lattice-blue for verified/experimental,
|
| 44 |
// violet-blue for borrowed fusions, GREY for conjectures (never green).
|
|
@@ -72,6 +76,10 @@ const S = {
|
|
| 72 |
lesion: null, bodyHealth: null, lam2Before: null, lam2After: null, connectedAfter: null,
|
| 73 |
lockedFrozen: null, plastScore: null, ewcCore: null,
|
| 74 |
beats: null, chainOk: null, reconsGain: null,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
};
|
| 76 |
|
| 77 |
// deterministic layout: concentric shells by tier (locked core -> outward),
|
|
@@ -110,6 +118,8 @@ function mount(ctx) {
|
|
| 110 |
_polls.push(ctx.live.poll(EP_REPAIR, 0, _onRepair, {}));
|
| 111 |
_polls.push(ctx.live.poll(EP_PLAST, 0, _onPlast, {}));
|
| 112 |
_polls.push(ctx.live.poll(EP_MEM, 0, _onMem, {}));
|
|
|
|
|
|
|
| 113 |
|
| 114 |
if (!_frameReg && _stage.onFrame) { _stage.onFrame(_animate); _frameReg = true; }
|
| 115 |
}
|
|
@@ -243,6 +253,32 @@ function _onMem(j) {
|
|
| 243 |
_paintOverlay();
|
| 244 |
}
|
| 245 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 246 |
// =============================================================================
|
| 247 |
// overlay HUD
|
| 248 |
// =============================================================================
|
|
@@ -278,6 +314,18 @@ function _buildOverlay(ctx) {
|
|
| 278 |
_row("Receipt beats written", "brain-beats") +
|
| 279 |
_row("Hash chain intact", "brain-chain") +
|
| 280 |
_row("Reconsolidation gain", "brain-recons") +
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
'<div id="brain-tiers" style="margin-top:6px;font-size:10.5px;color:#8fb3bd"></div>' +
|
| 282 |
'<div style="margin-top:8px;display:flex;gap:10px;flex-wrap:wrap;font-size:10px;color:#9fc">' +
|
| 283 |
_leg(C_LOCKED, "proven-8") + _leg(C_SEMANT, "verified") + _leg(C_BORROW, "borrowed") + _leg(C_CONJ, "conjecture (gray)") +
|
|
@@ -319,6 +367,14 @@ function _paintOverlay() {
|
|
| 319 |
_set("brain-beats", d || (S.beats != null ? String(S.beats) : "\u2014"));
|
| 320 |
_set("brain-chain", d || (S.chainOk != null ? (S.chainOk ? "yes (tamper-evident)" : "NO \u2014 alert") : "\u2014"));
|
| 321 |
_set("brain-recons", d || (S.reconsGain != null ? (S.reconsGain >= 0 ? "+" : "") + S.reconsGain + " nodes" : "\u2014"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 322 |
if (S.tierCounts) {
|
| 323 |
const t = S.tierCounts;
|
| 324 |
_set("brain-tiers", "tiers: locked " + (t.locked || 0) + " · semantic " + (t.semantic || 0) +
|
|
@@ -370,7 +426,11 @@ function unmount() {
|
|
| 370 |
S.lesion = S.bodyHealth = S.lam2Before = S.lam2After = S.connectedAfter = null;
|
| 371 |
S.lockedFrozen = S.plastScore = S.ewcCore = null;
|
| 372 |
S.beats = S.chainOk = S.reconsGain = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 373 |
S.state = "init";
|
| 374 |
}
|
| 375 |
|
| 376 |
-
export default { id: ID, title: TITLE, endpoints: [EP_GRAPH, EP_FIRE, EP_REPAIR, EP_PLAST, EP_MEM], mount, unmount };
|
|
|
|
| 39 |
const EP_PLAST = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/plasticity?seed=42&rounds=30";
|
| 40 |
// wave-18: write-back memory loop (HEART/BLOOD hash-chain + A-MEM reconsolidation)
|
| 41 |
const EP_MEM = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/memory?seed=42&sessions=5";
|
| 42 |
+
// wave-19: homeostatic self-regulation (MAPE-K + HRRL drive-reduction, meta-stats only)
|
| 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 |
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,
|
| 82 |
+
gateImmutable: null, claimPinningOk: null, rollbackRestored: null,
|
| 83 |
};
|
| 84 |
|
| 85 |
// deterministic layout: concentric shells by tier (locked core -> outward),
|
|
|
|
| 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 |
|
| 124 |
if (!_frameReg && _stage.onFrame) { _stage.onFrame(_animate); _frameReg = true; }
|
| 125 |
}
|
|
|
|
| 253 |
_paintOverlay();
|
| 254 |
}
|
| 255 |
|
| 256 |
+
function _onVitals(j) {
|
| 257 |
+
if (!j) return;
|
| 258 |
+
const p = j.payload || j;
|
| 259 |
+
S.driveFinal = p.drive_final != null ? p.drive_final : null;
|
| 260 |
+
S.viability = p.viability_horizon != null ? p.viability_horizon : null;
|
| 261 |
+
S.inBand = p.in_band_count != null ? p.in_band_count : null;
|
| 262 |
+
S.setpointCount = p.setpoint_count != null ? p.setpoint_count : null;
|
| 263 |
+
S.lockedUntouched = p.locked_untouched != null ? p.locked_untouched : null;
|
| 264 |
+
S.failClosed = p.fail_closed != null ? p.fail_closed : null;
|
| 265 |
+
if (p.locked_count != null) S.lockedCount = p.locked_count;
|
| 266 |
+
_paintOverlay();
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
+
function _onEvolve(j) {
|
| 270 |
+
if (!j) return;
|
| 271 |
+
const p = j.payload || j;
|
| 272 |
+
S.archiveCells = p.archive_cells_filled != null ? p.archive_cells_filled : null;
|
| 273 |
+
S.archiveCellsPossible = p.archive_cells_possible != null ? p.archive_cells_possible : null;
|
| 274 |
+
S.modeledPromotions = p.modeled_promotions != null ? p.modeled_promotions : null;
|
| 275 |
+
S.gateImmutable = p.gate_immutable != null ? p.gate_immutable : null;
|
| 276 |
+
S.claimPinningOk = p.claim_pinning_ok != null ? p.claim_pinning_ok : null;
|
| 277 |
+
S.rollbackRestored = p.rollback_restored != null ? p.rollback_restored : null;
|
| 278 |
+
if (p.locked_count != null) S.lockedCount = p.locked_count;
|
| 279 |
+
_paintOverlay();
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
// =============================================================================
|
| 283 |
// overlay HUD
|
| 284 |
// =============================================================================
|
|
|
|
| 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") +
|
| 320 |
+
_row("In-band set-points", "brain-inband") +
|
| 321 |
+
_row("Viability horizon", "brain-viab") +
|
| 322 |
+
_row("Locked untouched", "brain-untouched") +
|
| 323 |
+
'<hr style="border:0;border-top:1px solid #1b3a44;margin:8px 0">' +
|
| 324 |
+
'<div style="font-size:10.5px;color:#8fb3bd;margin-bottom:2px">Evolution (proposes; kernel disposes)</div>' +
|
| 325 |
+
_row("Archive cells filled", "brain-archive") +
|
| 326 |
+
_row("Promotions (MODELED)", "brain-promos") +
|
| 327 |
+
_row("Kernel gate immutable", "brain-gate") +
|
| 328 |
+
_row("Drift rollback restored", "brain-rollback") +
|
| 329 |
'<div id="brain-tiers" style="margin-top:6px;font-size:10.5px;color:#8fb3bd"></div>' +
|
| 330 |
'<div style="margin-top:8px;display:flex;gap:10px;flex-wrap:wrap;font-size:10px;color:#9fc">' +
|
| 331 |
_leg(C_LOCKED, "proven-8") + _leg(C_SEMANT, "verified") + _leg(C_BORROW, "borrowed") + _leg(C_CONJ, "conjecture (gray)") +
|
|
|
|
| 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"));
|
| 373 |
+
_set("brain-untouched", d || (S.lockedUntouched != null ? (S.lockedUntouched ? "yes (meta-stats only)" : "NO \u2014 alert") : "\u2014"));
|
| 374 |
+
_set("brain-archive", d || (S.archiveCells != null ? (S.archiveCells + (S.archiveCellsPossible != null ? " / " + S.archiveCellsPossible : "")) : "\u2014"));
|
| 375 |
+
_set("brain-promos", d || (S.modeledPromotions != null ? (S.modeledPromotions + " (MODELED, not locked-8)") : "\u2014"));
|
| 376 |
+
_set("brain-gate", d || (S.gateImmutable != null ? (S.gateImmutable ? "yes" : "NO \u2014 alert") : "\u2014"));
|
| 377 |
+
_set("brain-rollback", d || (S.rollbackRestored != null ? (S.rollbackRestored ? "yes" : "NO \u2014 alert") : "\u2014"));
|
| 378 |
if (S.tierCounts) {
|
| 379 |
const t = S.tierCounts;
|
| 380 |
_set("brain-tiers", "tiers: locked " + (t.locked || 0) + " · semantic " + (t.semantic || 0) +
|
|
|
|
| 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;
|
| 432 |
+
S.gateImmutable = S.claimPinningOk = S.rollbackRestored = null;
|
| 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 };
|