betterwithage commited on
Commit
b5398aa
·
verified ·
1 Parent(s): f0d3efb

chore(sync): mirror front-door files to Space (hf-sync)

Browse files

Automated front-door sync from szl-holdings/a11oy main via hf-sync.
Added/updated: cathedral.html, cathedral_genius.html, console/docs.html, console/index.html, console/pricing.html, console/throne-room.html, console/throne-room.js, live_wires.html, pages/api-keys.html, pages/audit.html, pages/ayni.html, pages/brain-dual.html, pages/brain-jack.html, pages/brain.html, pages/chaski.html, pages/codex-kernel.html, pages/company.html, pages/compliance.html, pages/console.html, pages/counter-uas.html, pages/cued-engagement.html, pages/docs.html, pages/energy-ops.html, pages/evidence.html, pages/fabric.html, pages/gap-report.html, pages/harvest.html, pages/hatun-mcp.html, pages/hub.html, pages/integrations.html, pages/landing.html, pages/mesh.html, pages/observability.html, pages/operator_organ.html, pages/pinn.html, pages/pnt.html, pages/pricing.html, pages/run-all.html, pages/sdk.html, pages/security.html, pages/status.html, pages/substrate.html, pages/superpowers.html, pages/throne-room.html, pages/throne-room.js, pages/uds.html, pages/upgrades.html, pages/wallpa.html, pages/warhacker.html, pages/wasi-rikuq.html, pages/wires.html, static/a11oy_cathedral.js, static/cathedral_app.js, static/shared/szl_codename_sanitizer.js, static/shared/szl_holo3d.js, static/shared/szl_label_engine.js, static/shared/szl_receipt_cosign.js
Deleted (gone from GitHub main): (none)

Keeps the served front-door (pages/*.html, console/*.html) identical
to GitHub main so an HF factory rebuild never drops a GitHub edit or
keeps serving a page that was deleted on GitHub.

Files changed (1) hide show
  1. pages/fabric.html +44 -17
pages/fabric.html CHANGED
@@ -318,6 +318,16 @@ function renderKVerify(hit){
318
  var el = $('kv-state');
319
  if(!hit){ el.innerHTML = pendingHTML('K-Verify endpoint not live this sweep'); return false; }
320
  var d = hit.data || {};
 
 
 
 
 
 
 
 
 
 
321
  var n = (d.n!=null?d.n:(d.count!=null?d.count:(d.items!=null?d.items:(d.total!=null?d.total:null))));
322
  var pass = (d.pass!=null?d.pass:(d.passed!=null?d.passed:(d.pass_count!=null?d.pass_count:null)));
323
  var rate = (d.pass_rate!=null?d.pass_rate:(d.accuracy!=null?d.accuracy:null));
@@ -344,17 +354,25 @@ function renderRag(hit){
344
  // Resolve an ask URL: explicit field, sibling of the status path, or default candidate.
345
  RAG_ASK_URL = d.query_endpoint || d.ask_endpoint || hit.url.replace(/\/(status|health|last)$/,'/query') || RAG_ASK_EPS[0];
346
  qa.style.display='flex';
347
- var corpus = d.corpus || d.corpus_id || d.index || null;
 
 
 
348
  var lastQ = d.last_question || (d.last && d.last.question) || null;
349
  var lastA = d.last_answer || (d.last && d.last.answer) || d.answer || null;
350
  var cites = d.citations || (d.last && d.last.citations) || d.sources || null;
351
- var html = '<div class="sub2">corpus: <b>'+(corpus||'governed corpus')+'</b> '+L('LIVE')+'</div>';
352
- if(lastA){
 
 
 
 
 
353
  html += '<div class="ans">'+(lastQ?'<b>Q:</b> '+escapeHTML(lastQ)+'<br>':'')+'<b>A:</b> '+escapeHTML(String(lastA))+'</div>';
354
- if(cites && cites.length){ html += '<div class="cite">cited: '+cites.map(function(c){ return escapeHTML(typeof c==='string'?c:(c.id||c.source||c.doc||JSON.stringify(c))); }).join(' · ')+'</div>'; }
355
  html += '<div class="lbls">'+L('LIVE','GROUNDED + CITED')+'</div>';
356
  } else {
357
- html += '<div class="sub2">Ask the doctrine — answers come only from the governed corpus, with citations.</div>';
358
  }
359
  el.innerHTML = html;
360
  return true;
@@ -392,23 +410,32 @@ function renderWatt(hit){
392
  var el = $('watt-state');
393
  if(!hit){ el.innerHTML = pendingHTML('cheapest-watt routing endpoint not live this sweep'); return false; }
394
  var d = hit.data || {};
395
- var dec = d.decision || d.last || d;
396
- var node = dec.node || dec.chosen_node || dec.placed_on || dec.target || null;
 
 
397
  var price = (dec.grid_price_eur_mwh!=null?dec.grid_price_eur_mwh:(dec.price_eur_mwh!=null?dec.price_eur_mwh:(dec.eur_mwh!=null?dec.eur_mwh:null)));
398
- var save = (dec.savings_pct!=null?dec.savings_pct:(dec.savings_percent!=null?dec.savings_percent:null));
399
- var saveAbs = (dec.savings_eur_mwh!=null?dec.savings_eur_mwh:null);
400
- var label = dec.savings_label || dec.label || (saveAbs!=null||save!=null ? 'MODELED' : null);
 
 
401
  var html = '';
402
  html += '<div class="big">'+(price!=null?fmt1(price)+' €/MWh':'—')+'</div>';
403
- html += '<div class="sub2">chosen node: <b>'+(node||'')+'</b> '+L('LIVE','LOWEST-€ REACHABLE')+'</div>';
404
- if(save!=null || saveAbs!=null){
405
- var sv = (save!=null? (save*( save<=1?100:1)).toFixed(1)+'%':'') + (saveAbs!=null? (save!=null?' · ':'')+fmt1(saveAbs)+'/MWh':'');
406
- var lk = (label==='MEASURED') ? L('MEASURED') : L('MODELED','ROUTING LAW');
407
- html += '<hr><div class="sub2">honest savings vs default placement: <b>'+sv+'</b> '+lk+'</div>';
 
 
 
408
  } else {
409
- html += '<hr><div class="sub2">savings: '+L('MODELED','NO BASELINE THIS SWEEP')+'</div>';
 
 
410
  }
411
- if(dec.receipt_hash||dec.receipt||dec.digest){ html += '<div class="receipt">receipt '+shortHash(dec.receipt_hash||dec.receipt||dec.digest)+'</div>'; }
412
  el.innerHTML = html;
413
  return true;
414
  }
 
318
  var el = $('kv-state');
319
  if(!hit){ el.innerHTML = pendingHTML('K-Verify endpoint not live this sweep'); return false; }
320
  var d = hit.data || {};
321
+ // Honest idle state: endpoint is LIVE but no run has executed yet this process.
322
+ // Surface that truthfully — never synthesize a zero-item "run" that didn't happen.
323
+ var runData = d.run || d.last_run || d.summary || d;
324
+ var hasRun = (d.ran === true) || (d.ran == null && (runData.n!=null || runData.count!=null || runData.items!=null || runData.total!=null || runData.pass!=null));
325
+ if(!hasRun){
326
+ el.innerHTML = '<div class="sub2"><b>endpoint live</b> '+L('LIVE','GOVERNED INFERENCE')+'</div>'+
327
+ '<div class="sub2">no run yet this process — a signed run posts N items, pass-rate, joules MEASURED + a receipt hash. Shown honestly: no fabricated run.</div>';
328
+ return true;
329
+ }
330
+ d = runData;
331
  var n = (d.n!=null?d.n:(d.count!=null?d.count:(d.items!=null?d.items:(d.total!=null?d.total:null))));
332
  var pass = (d.pass!=null?d.pass:(d.passed!=null?d.passed:(d.pass_count!=null?d.pass_count:null)));
333
  var rate = (d.pass_rate!=null?d.pass_rate:(d.accuracy!=null?d.accuracy:null));
 
354
  // Resolve an ask URL: explicit field, sibling of the status path, or default candidate.
355
  RAG_ASK_URL = d.query_endpoint || d.ask_endpoint || hit.url.replace(/\/(status|health|last)$/,'/query') || RAG_ASK_EPS[0];
356
  qa.style.display='flex';
357
+ var idx = d.index || {};
358
+ var chunks = idx.chunks || (d.corpus && d.corpus.chunks) || null;
359
+ var files = idx.files || null;
360
+ var repos = idx.repos || null;
361
  var lastQ = d.last_question || (d.last && d.last.question) || null;
362
  var lastA = d.last_answer || (d.last && d.last.answer) || d.answer || null;
363
  var cites = d.citations || (d.last && d.last.citations) || d.sources || null;
364
+ var stat = [];
365
+ if(chunks!=null) stat.push(fmt(chunks)+' chunks');
366
+ if(files!=null) stat.push(fmt(files)+' files');
367
+ if(repos!=null) stat.push(fmt(repos)+' repos');
368
+ var html = '<div class="sub2">governed corpus indexed: <b>'+(stat.length?stat.join(' · '):'ready')+'</b> '+L('LIVE')+'</div>';
369
+ // Only show a 'last answer' if it carries a real grounded answer string (status citations are not answers).
370
+ if(lastA && typeof lastA==='string'){
371
  html += '<div class="ans">'+(lastQ?'<b>Q:</b> '+escapeHTML(lastQ)+'<br>':'')+'<b>A:</b> '+escapeHTML(String(lastA))+'</div>';
372
+ if(cites && cites.length){ html += '<div class="cite">cited: '+cites.map(function(c){ return escapeHTML(typeof c==='string'?c:(c.citation||c.path||c.source||c.id||c.doc||JSON.stringify(c))); }).join(' · ')+'</div>'; }
373
  html += '<div class="lbls">'+L('LIVE','GROUNDED + CITED')+'</div>';
374
  } else {
375
+ html += '<div class="sub2">Ask the doctrine — answers come only from the governed corpus, with citations; off-corpus returns insufficient grounding.</div>';
376
  }
377
  el.innerHTML = html;
378
  return true;
 
410
  var el = $('watt-state');
411
  if(!hit){ el.innerHTML = pendingHTML('cheapest-watt routing endpoint not live this sweep'); return false; }
412
  var d = hit.data || {};
413
+ // Real shape: latest_decision.decision (nested) -> recent_decisions[0] -> flat fallback.
414
+ var dec = (d.latest_decision && d.latest_decision.decision) || (d.recent_decisions && d.recent_decisions[0]) || d.decision || d.last || d;
415
+ if(typeof dec !== 'object' || dec === null) dec = d;
416
+ var node = dec.chosen_node || dec.node || dec.placed_on || dec.target || null;
417
  var price = (dec.grid_price_eur_mwh!=null?dec.grid_price_eur_mwh:(dec.price_eur_mwh!=null?dec.price_eur_mwh:(dec.eur_mwh!=null?dec.eur_mwh:null)));
418
+ var priceL= dec.grid_price_label || 'MEASURED';
419
+ var save = (dec.saving!=null?dec.saving:(dec.savings_pct!=null?dec.savings_pct:(dec.savings_percent!=null?dec.savings_percent:null)));
420
+ var saveLabel = dec.saving_label || dec.savings_label || dec.label || null;
421
+ var reason = dec.reason || dec.detail || null;
422
+ var chHead = (d.chain && d.chain.head) || dec.receipt_hash || dec.receipt || dec.digest || null;
423
  var html = '';
424
  html += '<div class="big">'+(price!=null?fmt1(price)+' €/MWh':'—')+'</div>';
425
+ html += '<div class="sub2">live grid price at decision '+(priceL==='MEASURED'?L('MEASURED'):L('LIVE'))+'</div>';
426
+ if(node){
427
+ html += '<hr><div class="sub2">chosen node: <b>'+escapeHTML(node)+'</b> '+L('LIVE','LOWEST-€ REACHABLE')+'</div>';
428
+ if(save!=null){
429
+ var sv = (typeof save==='number') ? ((save<=1?(save*100):save).toFixed(1)+'%') : escapeHTML(String(save));
430
+ var lk = (saveLabel==='MEASURED') ? L('MEASURED') : L('MODELED','ROUTING LAW');
431
+ html += '<div class="sub2">honest savings vs most-expensive comparable: <b>'+sv+'</b> '+lk+'</div>';
432
+ }
433
  } else {
434
+ // No placement this tick is an HONEST outcome, not a gap — surface the reason verbatim.
435
+ html += '<hr><div class="sub2"><b>no placement this tick</b> '+L('LIVE','HONEST: NO FABRICATED SAVING')+'</div>';
436
+ if(reason) html += '<div class="sub2">'+escapeHTML(reason)+'</div>';
437
  }
438
+ if(chHead){ html += '<div class="receipt">receipt-chain '+shortHash(chHead)+(d.chain&&d.chain.length!=null?' · len '+fmt(d.chain.length):'')+'</div>'; }
439
  el.innerHTML = html;
440
  return true;
441
  }