Refusals are tamper-EVIDENT (alteration is detectable via the signed receipt), not tamper-proof. These are auditable rules — the inverse of a removed / hidden classifier. No Anthropic classifier code or weights are used.
';
});
b.innerHTML=h;
}).catch(function(e){ b.innerHTML=emptyState('WILLAY classifiers endpoint unreachable ('+e.message+'). No classifiers fabricated. Try again when '+EP.willay+' answers.'); });
}
/* ===================================================================
2. SOVEREIGN MESH — circulatory upgrade (live per-node up/DOWN)
=================================================================== */
function renderMesh(b){
getJSON(EP.mesh).then(function(d){
var nodes=(d&&d.mesh)||[];
var h='';
h+='
Governed inference mesh LIVE
';
h+='
engines live '+esc((d&&d.engines_live))+' / '+esc((d&&d.engines_total))+' · governance '+esc((d&&d.governance))+'
';
h+='
The circulatory system as a sovereign mesh. Each node’s status is read live — a node that is offline reads DOWN, never a fabricated green light. Per-node F11 Ayni reciprocity (LOCKED) keeps the mesh balanced.
';
nodes.forEach(function(n){
var live=!!n.live;
h+='
model '+esc(n.model||'—')+' · tier '+esc(n.tier||'—')+' · effort '+esc(n.effort||'—')+'
';
h+='
F11 Ayni reciprocity contribution: '+(live?'active (LOCKED)':'paused — node down')+'
';
});
// GLM honest status
var glm=d&&d.glm;
if(glm){
var glmLive=!!glm.on_metal_live;
h+='
GLM engine '+(glmLive?'LIVE':'DOWN')+'
';
h+='
'+esc(glm.model_tag||'')+'
'+esc(glm.note||'')+(glm.remote_provider_enabled?'':' Remote provider not enabled.')+'
';
}
h+='
roadmap · honest energy
VRAM-fusion across nodes is ROADMAP — today the mesh is a scheduler / router ("Smart Routing"), not a fused address space. Energy joules are UNAVAILABLE unless a live NVML meter answers; '+esc((d&&d.meter_fresh_live)?'a meter is fresh':'no fresh meter')+' — never fabricated.
';
b.innerHTML=h;
}).catch(function(e){ b.innerHTML=emptyState('Mesh /govern/health unreachable ('+e.message+'). No node is shown as up. Try again when '+EP.mesh+' answers.'); });
}
/* ===================================================================
3a. Ledger bloodstream counter (live) + 3b. buyer-verifiable receipt
=================================================================== */
var bloodHUD = el('div',{id:'v5-blood',title:'Receipt bloodstream — live unified ledger. Click to inspect + verify offline.','role':'button','tabindex':'0'},
'ledger …');
document.body.appendChild(bloodHUD);
function refreshBlood(){
getJSON(EP.ledger).then(function(d){
var n=(d&&d.total_receipts);
var alg=(d&&d.chain_alg)||'?';
var head='';
try{ var org=d.organs; for(var k in org){ if(org[k]&&org[k].chain_head){ head=org[k].chain_head; break; } } }catch(_){}
document.getElementById('v5-blood-txt').innerHTML='bloodstream · '+esc(n)+' receipts · '+esc(alg)+(head?' · head '+esc(head.slice(0,8)):'')+' · LIVE';
}).catch(function(){ document.getElementById('v5-blood-txt').textContent='bloodstream · ledger unreachable · honest empty-state'; });
}
bloodHUD.addEventListener('click',function(){ openPanel('ledger','Receipt bloodstream — unified ledger',renderLedger); });
bloodHUD.addEventListener('keydown',function(e){ if(e.key==='Enter'||e.key===' '){ e.preventDefault(); bloodHUD.click(); } });
function renderLedger(b){
getJSON(EP.ledger).then(function(d){
var head='', idx='';
try{ var org=d.organs; for(var k in org){ if(org[k]){ head=org[k].chain_head||''; idx=org[k].chain_index; break; } } }catch(_){}
var h='';
h+='
Unified ledger LIVE
';
h+='
total receipts '+esc(d.total_receipts)+' · chain '+esc(d.chain_alg)+' · schema '+esc(d.schema)+'
Verified locally with the browser WebCrypto API against cosign.pub — '+(v.ok?'this receipt is unaltered from the signer.':'do NOT trust this receipt.')+'
';
btn.disabled=false;
});
}).catch(function(e){ out.innerHTML=emptyState('Verify unavailable ('+e.message+'). Endpoints read-only; nothing fabricated.'); btn.disabled=false; });
});
}
/* in-scene: inject "Verify offline" into the open organ panel for
receipt-emitting organs (heart gate, bus, conscience, mesh, write, crown) */
var RECEIPT_ORGANS={yuyay:1,yawar:1,willay:1,sovereign_mesh:1,ruway:1,hatun:1,sentra:1};
root.addEventListener('szl:organ-open',function(ev){
var o=ev.detail; if(!o||!RECEIPT_ORGANS[o.key]) return;
var pb=document.getElementById('p-body'); if(!pb) return;
if(pb.querySelector('.v5-verify')) return;
var wrap=el('div'); wrap.innerHTML=verifyCardHTML(); var card=wrap.firstChild;
pb.appendChild(card); wireVerify(card);
});
/* ===================================================================
4. 8 locked-proven → organ map (verbatim Lean + axioms)
=================================================================== */
function leanStatement(fid){
var f=D.FORMULAS&&D.FORMULAS[fid]; if(!f) return fid;
return fid+' '+(f.name||'')+'\n'+(f.latex||'')+'\n#print axioms: '+(f.axioms||'');
}
function renderProofs(b){
var M=D.LEAN_MAP||{}; var h='';
h+='
Composes with the existing yarqa flow-compartments overlay in the v4 dissection dock (off by default). data.js stays the single source of truth; locked-proven count unchanged at 8.
';
b.innerHTML=h;
}
/* ===================================================================
7. GPU-SOVEREIGN STACK (SUBSTRATE) — vertical compute anatomy.
Static layer model from D.STACK_LAYER; live layers (runtime, mesh)
light up from EP.mesh /govern/health and degrade to DOWN when
unreachable — never a fabricated green light. The frontier layer is
buyer-verifiable in-scene via the shared WebCrypto verify card.
=================================================================== */
function renderStack(b){
var S=D.STACK_LAYER||{};
if(!S.layers){ b.innerHTML=emptyState('Stack-layer data not loaded.'); return; }
function paint(mesh, ledger){
var engLive=mesh&&mesh.engines_live, engTot=mesh&&mesh.engines_total;
var nodes=(mesh&&mesh.mesh&&mesh.mesh.length)||0;
var nodesLive=(mesh&&mesh.mesh&&mesh.mesh.filter)?mesh.mesh.filter(function(n){return n.live;}).length:0;
var meshUp=!!(mesh && ((engLive>0) || nodesLive>0));
var rcpt=ledger&&ledger.total_receipts, rcptAlg=(ledger&&ledger.chain_alg)||'sha3_256', rcptHead='';
if(ledger&&ledger.organs){ for(var k in ledger.organs){ var ch=ledger.organs[k]&&ledger.organs[k].chain_head; if(ch){ rcptHead=ch; break; } } }
var h='';
h+='