Spaces:
Paused
Paused
deploy(hf): sync szl-holdings/a11oy@main derived COPY set
Browse filesReusable Dockerfile-COPY-derived deploy from szl-holdings/a11oy main.
Files: 884 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 +23 -1
static/3d/surfaces/brain.js
CHANGED
|
@@ -37,6 +37,8 @@ const EP_FIRE = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbra
|
|
| 37 |
const EP_REPAIR = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/repair?down=F1&steps=12";
|
| 38 |
// wave-17: multi-timescale plasticity probe (Hebb/BCM/STDP/EWC per-tier learning rates)
|
| 39 |
const EP_PLAST = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/plasticity?seed=42&rounds=30";
|
|
|
|
|
|
|
| 40 |
|
| 41 |
// tier -> colour. proof-teal for the proven core, lattice-blue for verified/experimental,
|
| 42 |
// violet-blue for borrowed fusions, GREY for conjectures (never green).
|
|
@@ -69,6 +71,7 @@ const S = {
|
|
| 69 |
nodesFired: null, conjGreen: null, state: "init",
|
| 70 |
lesion: null, bodyHealth: null, lam2Before: null, lam2After: null, connectedAfter: null,
|
| 71 |
lockedFrozen: null, plastScore: null, ewcCore: null,
|
|
|
|
| 72 |
};
|
| 73 |
|
| 74 |
// deterministic layout: concentric shells by tier (locked core -> outward),
|
|
@@ -106,6 +109,7 @@ function mount(ctx) {
|
|
| 106 |
_polls.push(ctx.live.poll(EP_FIRE, 5000, _onFire, { onState: (m) => { S.state = m.state; _paintOverlay(); } }));
|
| 107 |
_polls.push(ctx.live.poll(EP_REPAIR, 0, _onRepair, {}));
|
| 108 |
_polls.push(ctx.live.poll(EP_PLAST, 0, _onPlast, {}));
|
|
|
|
| 109 |
|
| 110 |
if (!_frameReg && _stage.onFrame) { _stage.onFrame(_animate); _frameReg = true; }
|
| 111 |
}
|
|
@@ -230,6 +234,15 @@ function _onPlast(j) {
|
|
| 230 |
_paintOverlay();
|
| 231 |
}
|
| 232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
// =============================================================================
|
| 234 |
// overlay HUD
|
| 235 |
// =============================================================================
|
|
@@ -260,6 +273,11 @@ function _buildOverlay(ctx) {
|
|
| 260 |
_row("Locked canon frozen", "brain-frozen") +
|
| 261 |
_row("Plasticity score", "brain-plast") +
|
| 262 |
_row("EWC core protection", "brain-ewc") +
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
'<div id="brain-tiers" style="margin-top:6px;font-size:10.5px;color:#8fb3bd"></div>' +
|
| 264 |
'<div style="margin-top:8px;display:flex;gap:10px;flex-wrap:wrap;font-size:10px;color:#9fc">' +
|
| 265 |
_leg(C_LOCKED, "proven-8") + _leg(C_SEMANT, "verified") + _leg(C_BORROW, "borrowed") + _leg(C_CONJ, "conjecture (gray)") +
|
|
@@ -298,6 +316,9 @@ function _paintOverlay() {
|
|
| 298 |
_set("brain-frozen", d || (S.lockedFrozen != null ? (S.lockedFrozen ? "yes (never drifts)" : "NO \u2014 alert") : "\u2014"));
|
| 299 |
_set("brain-plast", d || (S.plastScore != null ? S.plastScore.toFixed(3) : "\u2014"));
|
| 300 |
_set("brain-ewc", d || (S.ewcCore != null ? S.ewcCore.toFixed(5) : "\u2014"));
|
|
|
|
|
|
|
|
|
|
| 301 |
if (S.tierCounts) {
|
| 302 |
const t = S.tierCounts;
|
| 303 |
_set("brain-tiers", "tiers: locked " + (t.locked || 0) + " · semantic " + (t.semantic || 0) +
|
|
@@ -348,7 +369,8 @@ function unmount() {
|
|
| 348 |
S.lockedCount = S.rewardPerK = S.rewardFinal = S.nodesFired = S.conjGreen = null;
|
| 349 |
S.lesion = S.bodyHealth = S.lam2Before = S.lam2After = S.connectedAfter = null;
|
| 350 |
S.lockedFrozen = S.plastScore = S.ewcCore = null;
|
|
|
|
| 351 |
S.state = "init";
|
| 352 |
}
|
| 353 |
|
| 354 |
-
export default { id: ID, title: TITLE, endpoints: [EP_GRAPH, EP_FIRE, EP_REPAIR, EP_PLAST], mount, unmount };
|
|
|
|
| 37 |
const EP_REPAIR = "https://szlholdings-killinchu.hf.space/api/killinchu/v1/fgbrain/repair?down=F1&steps=12";
|
| 38 |
// wave-17: multi-timescale plasticity probe (Hebb/BCM/STDP/EWC per-tier learning rates)
|
| 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).
|
|
|
|
| 71 |
nodesFired: null, conjGreen: null, state: "init",
|
| 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),
|
|
|
|
| 109 |
_polls.push(ctx.live.poll(EP_FIRE, 5000, _onFire, { onState: (m) => { S.state = m.state; _paintOverlay(); } }));
|
| 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 |
}
|
|
|
|
| 234 |
_paintOverlay();
|
| 235 |
}
|
| 236 |
|
| 237 |
+
function _onMem(j) {
|
| 238 |
+
if (!j) return;
|
| 239 |
+
const p = j.payload || j;
|
| 240 |
+
S.beats = p.beats_written != null ? p.beats_written : null;
|
| 241 |
+
S.chainOk = p.chain_intact != null ? p.chain_intact : null;
|
| 242 |
+
S.reconsGain = p.reconsolidation_gain != null ? p.reconsolidation_gain : null;
|
| 243 |
+
_paintOverlay();
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
// =============================================================================
|
| 247 |
// overlay HUD
|
| 248 |
// =============================================================================
|
|
|
|
| 273 |
_row("Locked canon frozen", "brain-frozen") +
|
| 274 |
_row("Plasticity score", "brain-plast") +
|
| 275 |
_row("EWC core protection", "brain-ewc") +
|
| 276 |
+
'<hr style="border:0;border-top:1px solid #1b3a44;margin:8px 0">' +
|
| 277 |
+
'<div style="font-size:10.5px;color:#8fb3bd;margin-bottom:2px">Memory (write-back loop)</div>' +
|
| 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)") +
|
|
|
|
| 316 |
_set("brain-frozen", d || (S.lockedFrozen != null ? (S.lockedFrozen ? "yes (never drifts)" : "NO \u2014 alert") : "\u2014"));
|
| 317 |
_set("brain-plast", d || (S.plastScore != null ? S.plastScore.toFixed(3) : "\u2014"));
|
| 318 |
_set("brain-ewc", d || (S.ewcCore != null ? S.ewcCore.toFixed(5) : "\u2014"));
|
| 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) +
|
|
|
|
| 369 |
S.lockedCount = S.rewardPerK = S.rewardFinal = S.nodesFired = S.conjGreen = null;
|
| 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 };
|