Spaces:
Running
Running
refs: migrate a11oy.net->a-11-oy.com + trim top-level routes to 25
Browse files- pages/console.html +10 -10
- serve.py +32 -36
pages/console.html
CHANGED
|
@@ -5485,7 +5485,7 @@ window.warboard_init=warboard_init; window.warboard_all=warboard_all;
|
|
| 5485 |
// paint the honest organs count IMMEDIATELY (same-origin) so we never linger on 'probing'
|
| 5486 |
if(reachable!=null){ if(n){ n.textContent=reachable+(total!=null?(' / '+total):''); n.className='v teal'; } if(d) d.textContent='organs reachable'; }
|
| 5487 |
// then ENHANCE the sub-label with the GPU-node probe if/when it resolves (cross-origin, may be slow/blocked — non-blocking to the count)
|
| 5488 |
-
try{ var cp=await gj('https://
|
| 5489 |
if(reachable!=null){
|
| 5490 |
if(d) d.textContent='organs reachable'+(gpu!=null?(' \u00b7 '+gpu+' GPU nodes'):'');
|
| 5491 |
} else if(drewGraph){
|
|
@@ -9414,7 +9414,7 @@ window.warboard_init=warboard_init; window.warboard_all=warboard_all;
|
|
| 9414 |
'<div class="brain-note">This 6/6 / 4-of-4 quorum is the <b>in-image capability mesh</b> a11oy actually runs on (probed live, same-origin, 0 CDN). It is <b>NOT</b> the same probe as Command Center’s “Services up”, which reports the <b>organ backends (Reasoning/Policy/Operator/Receipts)</b> that run on <b>dedicated infrastructure (roadmap)</b> — on this demo Space they are shown honestly as <b>not-deployed-here</b> rather than faked “up”. Same honest story, two probes: governed mesh healthy; organ backends not deployed on this Space.</div></div>'+
|
| 9415 |
'<div class="card"><div class="card-h"><span class="card-t">Deploy targets — same UDS bundle, cloud → edge → air-gap</span><span class="card-ep">honest · no secrets</span></div>'+
|
| 9416 |
'<div class="row"><span class="badge b-live">LIVE</span><span style="color:'+CR+'">Cloud — HF Space</span><span class="spacer mono dim">szlholdings-a11oy.hf.space · this demo deploy</span></div>'+
|
| 9417 |
-
'<div class="row"><span class="badge b-live">LIVE</span><span style="color:'+CR+'">Hetzner —
|
| 9418 |
'<div class="row"><span class="badge b-gold">ROADMAP</span><span style="color:'+CR+'">Tactical edge / air-gap</span><span class="spacer mono dim">same UDS bundle · offline-verifiable (cosign verify-blob, no egress)</span></div>'+
|
| 9419 |
'<div class="brain-note">One artifact, three targets: the same cosign-signed UDS/Zarf bundle deploys to cloud, on-prem, and a disconnected tactical edge. Air-gap is offline-<i>verifiable</i> (provenance checks run with zero network) — labelled ROADMAP because no air-gapped deploy is claimed live today. No hardcoded env / secrets surfaced. See the <b>Deploy Posture</b> tab for the bundle → SBOM → cosign → OCI artifact chain.</div></div>'+HON;
|
| 9420 |
poll(async function(){
|
|
@@ -10937,7 +10937,7 @@ window.warboard_init=warboard_init; window.warboard_all=warboard_all;
|
|
| 10937 |
(function(){
|
| 10938 |
"use strict";
|
| 10939 |
function esc(s){ return window.esc?window.esc(s):String(s==null?'':s).replace(/[&<>"]/g,function(c){return{'&':'&','<':'<','>':'>','"':'"'}[c];}); }
|
| 10940 |
-
var KB='https://killinchu.
|
| 10941 |
var CN_REFRESH_MS=30000;
|
| 10942 |
function cnAutoOn(){ return window.__cn_auto!==false; }
|
| 10943 |
var COL={good:['#4fb37f','#5fe39a'],warn:['#c0a05a','#e6c87a'],bad:['#c06a5a','#ff7b6b'],info:['#5aa0d0','#7ab8e6'],dim:['#6b6b6b','#9a9a9a']};
|
|
@@ -12457,7 +12457,7 @@ window.warboard_init=warboard_init; window.warboard_all=warboard_all;
|
|
| 12457 |
<script>
|
| 12458 |
/* anatomy-map-tab-patch :: SZL Anatomy — single honest map (formulas + agentic capabilities) ::
|
| 12459 |
Additive, self-contained, NS-aware. Snapshot mirror of the standalone deck
|
| 12460 |
-
(
|
| 12461 |
8 LOCKED formulas {F1,F4,F7,F11,F12,F18,F19,F22}; Λ = Conjecture 1. No fabricated live pills. */
|
| 12462 |
(function(){
|
| 12463 |
var NS=(window.__rd_ns||(location.pathname.indexOf('killinchu')>=0?'killinchu':'a11oy'));
|
|
@@ -12479,8 +12479,8 @@ window.warboard_init=warboard_init; window.warboard_all=warboard_all;
|
|
| 12479 |
p:'Append-only SIGNED receipt DAG (Khipu) + quorum consensus: acyclic (F4 locked), FIFO-ordered (F7 locked), emit-monotone (F22 locked), CONDITIONAL Byzantine safety under 3-of-4 quorum. Unconditional safety stays Conjecture 2.',
|
| 12480 |
e:'szl_khipu_lmdb.py \u00b7 MCP khipu_sign / khipu_verify (live)', f:'F4, F7, F22 (locked) \u00b7 B2 quorum'},
|
| 12481 |
{k:'receipts', n:'Receipt store (YAWAR / szl-receipts)', s:'LIVE',
|
| 12482 |
-
p:'Append-only SHA-256 receipt bus: h=sha256(canonical(packet)), never mutated/deleted. Ed25519/DSSE signing, Merkle inclusion (F18 locked), receipt-completeness (P1), replay-determinism, hash-chain tamper-evidence (P5). Live chain at
|
| 12483 |
-
e:'YAWAR bus \u00b7 szl-receipts server + Pepr webhook (repo PRIVATE) \u00b7
|
| 12484 |
{k:'mesh', n:'Mesh + OTel observability (UDS / VSP)', s:'CI-GREEN',
|
| 12485 |
p:'UDS Core ambient mesh (Istio, restricted PSA) carrying W3C TraceContext span lineage across brain\u2192effectors (efferent / afferent / proprioceptive). Replay verifier checks child.parent_span_id == parent.span_id over a cycle (P4); Menger cut/path + reachability monotonicity back the resilience claims.',
|
| 12486 |
e:'szl-uds-deployment (k3d uds-szl-demo) \u00b7 vsp-otel \u00b7 HUKLLA deadman reflex', f:'P4, F1 \u00b7 W9_MENGER, W10_REACH'},
|
|
@@ -12493,7 +12493,7 @@ window.warboard_init=warboard_init; window.warboard_all=warboard_all;
|
|
| 12493 |
h+='<div style="border:1px solid #2a2f37;border-radius:10px;padding:14px 16px;margin-bottom:14px;background:#11151a">'
|
| 12494 |
+'<div style="font-family:var(--mono,monospace);font-size:11px;color:'+DIM+';letter-spacing:.08em">SINGLE HONEST MAP</div>'
|
| 12495 |
+'<div style="font-size:13px;color:#cfd4da;margin-top:6px;line-height:1.5">Every agentic capability mapped to the <b>real</b> app(s)/repo(s) that implement it, alongside the formula/theorem ladder. Snapshot mirror of the full interactive deck \u2014 '
|
| 12496 |
-
+'<a href="https://
|
| 12497 |
+'<a href="https://szlholdings-anatomy.hf.space/" target="_blank" rel="noopener" style="color:'+TEAL+'">HF Space</a>. '
|
| 12498 |
+'Honesty: <b>8 LOCKED</b> kernel-verified formulas {F1, F4, F7, F11, F12, F18, F19, F22}; \u039b uniqueness = <b>Conjecture 1</b> (advisory, never a pass/fail oracle).</div></div>';
|
| 12499 |
CAPS.forEach(function(c){
|
|
@@ -12512,7 +12512,7 @@ window.warboard_init=warboard_init; window.warboard_all=warboard_all;
|
|
| 12512 |
function reg(){
|
| 12513 |
var V=window.VIEWS; if(!V){ return setTimeout(reg,80); }
|
| 12514 |
V.anatomymap={ title:'Anatomy Map', badge:(CAPS.length+' capabilities \u00b7 8 LOCKED'),
|
| 12515 |
-
sub:'The single honest map: every agentic capability (RAG, MCP, ouroboros loop, khipu/consensus, receipt store, mesh/OTel, math/AP-12) mapped to the real app(s)/repo(s) that implement it \u2014 mirrored from the
|
| 12516 |
render:render };
|
| 12517 |
}
|
| 12518 |
reg();
|
|
@@ -14699,7 +14699,7 @@ window.warboard_init=warboard_init; window.warboard_all=warboard_all;
|
|
| 14699 |
|
| 14700 |
<!-- energy-harvest-tab-patch — live wasted-energy grid signal (a11oy console tab).
|
| 14701 |
Additive: registers V['energy'] + injects a nav item. Fetches the ABSOLUTE public
|
| 14702 |
-
|
| 14703 |
mirrored HuggingFace Space. Doctrine v11: real grid data only, joules SAMPLE,
|
| 14704 |
sovereign untouched, no free-energy, honest degradation when feeds are down. -->
|
| 14705 |
<script>
|
|
@@ -14842,7 +14842,7 @@ window.warboard_init=warboard_init; window.warboard_all=warboard_all;
|
|
| 14842 |
(NOT measured) — it never claims joules, never creates energy. Doctrine v11. */
|
| 14843 |
h+=await ehThermalPanel();
|
| 14844 |
h+='<div class="dim" style="font-size:11px;margin-top:.5rem">'+esc(d.feeds_live)+'/'+esc(d.feeds_total)+' feeds live · '+(d.cached?'cached':'fresh')+' · '+esc(when)
|
| 14845 |
-
+' · <a href="'+EH_API+'/posture" target="_blank" rel="noopener">raw API</a> · <a href="https://
|
| 14846 |
c.innerHTML=h;
|
| 14847 |
/* BATCH2B: animate the hero count-up to the real measured price via requestAnimationFrame. */
|
| 14848 |
(function(){ var el=document.getElementById('eh-hero-num'); if(!el) return; var target=d.price_now_eur_mwh; if(target==null) return;
|
|
|
|
| 5485 |
// paint the honest organs count IMMEDIATELY (same-origin) so we never linger on 'probing'
|
| 5486 |
if(reachable!=null){ if(n){ n.textContent=reachable+(total!=null?(' / '+total):''); n.className='v teal'; } if(d) d.textContent='organs reachable'; }
|
| 5487 |
// then ENHANCE the sub-label with the GPU-node probe if/when it resolves (cross-origin, may be slow/blocked — non-blocking to the count)
|
| 5488 |
+
try{ var cp=await gj('https://a-11-oy.com/api/a11oy/v1/compute-pool-hardened'); if(cp&&cp.counts){ gpu=cp.counts.gpu_nodes_reachable; } }catch(_e){}
|
| 5489 |
if(reachable!=null){
|
| 5490 |
if(d) d.textContent='organs reachable'+(gpu!=null?(' \u00b7 '+gpu+' GPU nodes'):'');
|
| 5491 |
} else if(drewGraph){
|
|
|
|
| 9414 |
'<div class="brain-note">This 6/6 / 4-of-4 quorum is the <b>in-image capability mesh</b> a11oy actually runs on (probed live, same-origin, 0 CDN). It is <b>NOT</b> the same probe as Command Center’s “Services up”, which reports the <b>organ backends (Reasoning/Policy/Operator/Receipts)</b> that run on <b>dedicated infrastructure (roadmap)</b> — on this demo Space they are shown honestly as <b>not-deployed-here</b> rather than faked “up”. Same honest story, two probes: governed mesh healthy; organ backends not deployed on this Space.</div></div>'+
|
| 9415 |
'<div class="card"><div class="card-h"><span class="card-t">Deploy targets — same UDS bundle, cloud → edge → air-gap</span><span class="card-ep">honest · no secrets</span></div>'+
|
| 9416 |
'<div class="row"><span class="badge b-live">LIVE</span><span style="color:'+CR+'">Cloud — HF Space</span><span class="spacer mono dim">szlholdings-a11oy.hf.space · this demo deploy</span></div>'+
|
| 9417 |
+
'<div class="row"><span class="badge b-live">LIVE</span><span style="color:'+CR+'">Hetzner — a-11-oy.com</span><span class="spacer mono dim">167.233.50.75 · self-hosted</span></div>'+
|
| 9418 |
'<div class="row"><span class="badge b-gold">ROADMAP</span><span style="color:'+CR+'">Tactical edge / air-gap</span><span class="spacer mono dim">same UDS bundle · offline-verifiable (cosign verify-blob, no egress)</span></div>'+
|
| 9419 |
'<div class="brain-note">One artifact, three targets: the same cosign-signed UDS/Zarf bundle deploys to cloud, on-prem, and a disconnected tactical edge. Air-gap is offline-<i>verifiable</i> (provenance checks run with zero network) — labelled ROADMAP because no air-gapped deploy is claimed live today. No hardcoded env / secrets surfaced. See the <b>Deploy Posture</b> tab for the bundle → SBOM → cosign → OCI artifact chain.</div></div>'+HON;
|
| 9420 |
poll(async function(){
|
|
|
|
| 10937 |
(function(){
|
| 10938 |
"use strict";
|
| 10939 |
function esc(s){ return window.esc?window.esc(s):String(s==null?'':s).replace(/[&<>"]/g,function(c){return{'&':'&','<':'<','>':'>','"':'"'}[c];}); }
|
| 10940 |
+
var KB='https://killinchu.a-11-oy.com';
|
| 10941 |
var CN_REFRESH_MS=30000;
|
| 10942 |
function cnAutoOn(){ return window.__cn_auto!==false; }
|
| 10943 |
var COL={good:['#4fb37f','#5fe39a'],warn:['#c0a05a','#e6c87a'],bad:['#c06a5a','#ff7b6b'],info:['#5aa0d0','#7ab8e6'],dim:['#6b6b6b','#9a9a9a']};
|
|
|
|
| 12457 |
<script>
|
| 12458 |
/* anatomy-map-tab-patch :: SZL Anatomy — single honest map (formulas + agentic capabilities) ::
|
| 12459 |
Additive, self-contained, NS-aware. Snapshot mirror of the standalone deck
|
| 12460 |
+
(a-11-oy.com/anatomy-map · HF static Space SZLHOLDINGS/anatomy). Honest by construction:
|
| 12461 |
8 LOCKED formulas {F1,F4,F7,F11,F12,F18,F19,F22}; Λ = Conjecture 1. No fabricated live pills. */
|
| 12462 |
(function(){
|
| 12463 |
var NS=(window.__rd_ns||(location.pathname.indexOf('killinchu')>=0?'killinchu':'a11oy'));
|
|
|
|
| 12479 |
p:'Append-only SIGNED receipt DAG (Khipu) + quorum consensus: acyclic (F4 locked), FIFO-ordered (F7 locked), emit-monotone (F22 locked), CONDITIONAL Byzantine safety under 3-of-4 quorum. Unconditional safety stays Conjecture 2.',
|
| 12480 |
e:'szl_khipu_lmdb.py \u00b7 MCP khipu_sign / khipu_verify (live)', f:'F4, F7, F22 (locked) \u00b7 B2 quorum'},
|
| 12481 |
{k:'receipts', n:'Receipt store (YAWAR / szl-receipts)', s:'LIVE',
|
| 12482 |
+
p:'Append-only SHA-256 receipt bus: h=sha256(canonical(packet)), never mutated/deleted. Ed25519/DSSE signing, Merkle inclusion (F18 locked), receipt-completeness (P1), replay-determinism, hash-chain tamper-evidence (P5). Live chain at a-11-oy.com/receipts.',
|
| 12483 |
+
e:'YAWAR bus \u00b7 szl-receipts server + Pepr webhook (repo PRIVATE) \u00b7 a-11-oy.com/receipts/', f:'F1, F18 (locked) \u00b7 P1, P5'},
|
| 12484 |
{k:'mesh', n:'Mesh + OTel observability (UDS / VSP)', s:'CI-GREEN',
|
| 12485 |
p:'UDS Core ambient mesh (Istio, restricted PSA) carrying W3C TraceContext span lineage across brain\u2192effectors (efferent / afferent / proprioceptive). Replay verifier checks child.parent_span_id == parent.span_id over a cycle (P4); Menger cut/path + reachability monotonicity back the resilience claims.',
|
| 12486 |
e:'szl-uds-deployment (k3d uds-szl-demo) \u00b7 vsp-otel \u00b7 HUKLLA deadman reflex', f:'P4, F1 \u00b7 W9_MENGER, W10_REACH'},
|
|
|
|
| 12493 |
h+='<div style="border:1px solid #2a2f37;border-radius:10px;padding:14px 16px;margin-bottom:14px;background:#11151a">'
|
| 12494 |
+'<div style="font-family:var(--mono,monospace);font-size:11px;color:'+DIM+';letter-spacing:.08em">SINGLE HONEST MAP</div>'
|
| 12495 |
+'<div style="font-size:13px;color:#cfd4da;margin-top:6px;line-height:1.5">Every agentic capability mapped to the <b>real</b> app(s)/repo(s) that implement it, alongside the formula/theorem ladder. Snapshot mirror of the full interactive deck \u2014 '
|
| 12496 |
+
+'<a href="https://a-11-oy.com/anatomy-map/" target="_blank" rel="noopener" style="color:'+TEAL+'">a-11-oy.com/anatomy-map</a> \u00b7 '
|
| 12497 |
+'<a href="https://szlholdings-anatomy.hf.space/" target="_blank" rel="noopener" style="color:'+TEAL+'">HF Space</a>. '
|
| 12498 |
+'Honesty: <b>8 LOCKED</b> kernel-verified formulas {F1, F4, F7, F11, F12, F18, F19, F22}; \u039b uniqueness = <b>Conjecture 1</b> (advisory, never a pass/fail oracle).</div></div>';
|
| 12499 |
CAPS.forEach(function(c){
|
|
|
|
| 12512 |
function reg(){
|
| 12513 |
var V=window.VIEWS; if(!V){ return setTimeout(reg,80); }
|
| 12514 |
V.anatomymap={ title:'Anatomy Map', badge:(CAPS.length+' capabilities \u00b7 8 LOCKED'),
|
| 12515 |
+
sub:'The single honest map: every agentic capability (RAG, MCP, ouroboros loop, khipu/consensus, receipt store, mesh/OTel, math/AP-12) mapped to the real app(s)/repo(s) that implement it \u2014 mirrored from the a-11-oy.com/anatomy-map deck. 8 LOCKED formulas; \u039b = Conjecture 1.',
|
| 12516 |
render:render };
|
| 12517 |
}
|
| 12518 |
reg();
|
|
|
|
| 14699 |
|
| 14700 |
<!-- energy-harvest-tab-patch — live wasted-energy grid signal (a11oy console tab).
|
| 14701 |
Additive: registers V['energy'] + injects a nav item. Fetches the ABSOLUTE public
|
| 14702 |
+
a-11-oy.com harvest API so this tab renders identically on a-11-oy.com/console AND the
|
| 14703 |
mirrored HuggingFace Space. Doctrine v11: real grid data only, joules SAMPLE,
|
| 14704 |
sovereign untouched, no free-energy, honest degradation when feeds are down. -->
|
| 14705 |
<script>
|
|
|
|
| 14842 |
(NOT measured) — it never claims joules, never creates energy. Doctrine v11. */
|
| 14843 |
h+=await ehThermalPanel();
|
| 14844 |
h+='<div class="dim" style="font-size:11px;margin-top:.5rem">'+esc(d.feeds_live)+'/'+esc(d.feeds_total)+' feeds live · '+(d.cached?'cached':'fresh')+' · '+esc(when)
|
| 14845 |
+
+' · <a href="'+EH_API+'/posture" target="_blank" rel="noopener">raw API</a> · <a href="https://a-11-oy.com/energy/" target="_blank" rel="noopener">standalone page ↗</a></div>';
|
| 14846 |
c.innerHTML=h;
|
| 14847 |
/* BATCH2B: animate the hero count-up to the real measured price via requestAnimationFrame. */
|
| 14848 |
(function(){ var el=document.getElementById('eh-hero-num'); if(!el) return; var target=d.price_now_eur_mwh; if(target==null) return;
|
serve.py
CHANGED
|
@@ -1300,7 +1300,7 @@ except Exception as _prov_e:
|
|
| 1300 |
# their fetch() calls keep working.
|
| 1301 |
#
|
| 1302 |
# allow_origin_regex covers the HF Space wildcard (szlholdings-*.hf.space) and the
|
| 1303 |
-
# planned
|
| 1304 |
# allow_credentials=True (cookies/Authorization are not used cross-origin), so
|
| 1305 |
# there is no "* + credentials" footgun and the allow-list stays the security
|
| 1306 |
# boundary. Methods/headers are scoped to what the read+governed-write API uses.
|
|
@@ -1309,9 +1309,9 @@ except Exception as _prov_e:
|
|
| 1309 |
import os as _cors_os
|
| 1310 |
|
| 1311 |
_CORS_ALLOWED_ORIGINS = [
|
| 1312 |
-
"https://
|
| 1313 |
-
"https://www.
|
| 1314 |
-
"https://killinchu.
|
| 1315 |
"https://szlholdings-a11oy.hf.space",
|
| 1316 |
"https://szlholdings-killinchu.hf.space",
|
| 1317 |
"http://localhost:8000",
|
|
@@ -1325,9 +1325,9 @@ if _cors_extra:
|
|
| 1325 |
)
|
| 1326 |
|
| 1327 |
# Regex catch-all for the HF Space subdomains (szlholdings-<name>.hf.space) and
|
| 1328 |
-
# any *.
|
| 1329 |
_CORS_ALLOWED_ORIGIN_REGEX = (
|
| 1330 |
-
r"^https://(szlholdings-[a-z0-9-]+\.hf\.space|([a-z0-9-]+\.)?
|
| 1331 |
)
|
| 1332 |
|
| 1333 |
app.add_middleware(
|
|
@@ -1444,7 +1444,7 @@ def _ptg_serve(filename: str):
|
|
| 1444 |
|
| 1445 |
try:
|
| 1446 |
# Upgraded genius surfaces (win over module + SPA handlers by ordered match).
|
| 1447 |
-
app.add_api_route("/conduction",
|
| 1448 |
app.add_api_route("/bridge", _ptg_serve("bridge.html"), methods=["GET"], include_in_schema=False)
|
| 1449 |
app.add_api_route("/agent", _ptg_serve("agent.html"), methods=["GET"], include_in_schema=False)
|
| 1450 |
app.add_api_route("/predict", _ptg_serve("predict.html"), methods=["GET"], include_in_schema=False)
|
|
@@ -1501,7 +1501,7 @@ try:
|
|
| 1501 |
app.add_api_route("/sda", _ptg_serve("sda.html"), methods=["GET"], include_in_schema=False)
|
| 1502 |
app.add_api_route("/a11oy/sda", _ptg_serve("sda.html"), methods=["GET"], include_in_schema=False)
|
| 1503 |
# DNS & SUBDOMAINS tab (2026-06-16): a static, honest internal infrastructure
|
| 1504 |
-
# roadmap that tracks the DNS records we want to add (e.g. immune.
|
| 1505 |
# 167.233.50.75, on hold until founder is back from the trip; immune itself is
|
| 1506 |
# already served on Hugging Face so there is no outage). Standalone page, 0
|
| 1507 |
# runtime CDN, NO live data (statuses are hand-maintained + dated). NEVER a
|
|
@@ -8030,7 +8030,7 @@ async def _hero_vendor(fname: str) -> Response:
|
|
| 8030 |
|
| 8031 |
|
| 8032 |
# === ADDITIVE: /cathedral — the ONE canonical genius cathedral, GitHub-aligned. ===
|
| 8033 |
-
# Unifies the cathedral front door so
|
| 8034 |
# "Constellation · Khipu" scene as the SZLHOLDINGS/cathedral HF static space and
|
| 8035 |
# killinchu/cathedral. The page (cathedral_genius.html at the repo root) is the
|
| 8036 |
# canonical HF index.html byte-for-byte EXCEPT its two asset paths, which are
|
|
@@ -8137,18 +8137,14 @@ async def chaski_page() -> Response:
|
|
| 8137 |
|
| 8138 |
@app.get("/wallpa")
|
| 8139 |
async def wallpa_page() -> Response:
|
| 8140 |
-
|
| 8141 |
-
|
| 8142 |
-
return FileResponse(f, media_type="text/html")
|
| 8143 |
-
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8144 |
|
| 8145 |
|
| 8146 |
@app.get("/wasi-rikuq")
|
| 8147 |
async def wasi_rikuq_page() -> Response:
|
| 8148 |
-
|
| 8149 |
-
|
| 8150 |
-
return FileResponse(f, media_type="text/html")
|
| 8151 |
-
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8152 |
|
| 8153 |
|
| 8154 |
# /superpowers — Five live, screenshot-provable superpowers (Decision Replay,
|
|
@@ -8182,7 +8178,7 @@ async def command_console_page() -> Response:
|
|
| 8182 |
# demo is the console SPA view V.wowtoggle, reachable today via the left-nav
|
| 8183 |
# but NOT via its obvious top-level URLs: /ungoverned, /ungoverned-vs-a11oy,
|
| 8184 |
# /vs, /compare all fell through to the SPA catch-all → generic Command Center,
|
| 8185 |
-
# so a founder/investor typing
|
| 8186 |
# "nothing happened." The console boots into the view named by location.hash
|
| 8187 |
# (pages/console.html: `start=(location.hash||'#command').slice(1)`), so these
|
| 8188 |
# pretty paths just need to land on /console#wowtoggle. Registered BEFORE the
|
|
@@ -8208,7 +8204,7 @@ async def marketing_landing_page() -> Response:
|
|
| 8208 |
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8209 |
|
| 8210 |
|
| 8211 |
-
# /company — SZL Holdings story folded into
|
| 8212 |
# door: "Governed AI, proven in Lean", the PURIQ doctrine, the five flagships, and
|
| 8213 |
# the evidence/proof framing). Replaces the retired standalone szlholdings.com site.
|
| 8214 |
# Served from pages/company.html (COPYed wholesale by the Dockerfile). Registered
|
|
@@ -8250,8 +8246,6 @@ async def wires_page() -> Response:
|
|
| 8250 |
# /fabric keeps working unchanged. Both registered before the SPA catch-all.
|
| 8251 |
@app.get("/fabric")
|
| 8252 |
@app.get("/a11oy/fabric")
|
| 8253 |
-
@app.get("/tawantin")
|
| 8254 |
-
@app.get("/a11oy/tawantin")
|
| 8255 |
async def fabric_page() -> Response:
|
| 8256 |
f = PAGES_DIR / "fabric.html"
|
| 8257 |
if f.is_file():
|
|
@@ -8259,13 +8253,18 @@ async def fabric_page() -> Response:
|
|
| 8259 |
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8260 |
|
| 8261 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8262 |
@app.get("/ayni")
|
| 8263 |
async def ayni_page() -> Response:
|
| 8264 |
-
#
|
| 8265 |
-
|
| 8266 |
-
if f.is_file():
|
| 8267 |
-
return FileResponse(f, media_type="text/html")
|
| 8268 |
-
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8269 |
|
| 8270 |
|
| 8271 |
# --- Throne Room (ADDITIVE; Doctrine v12 PURIQ / Yachay CTO) ---
|
|
@@ -8275,10 +8274,9 @@ async def ayni_page() -> Response:
|
|
| 8275 |
@app.get("/throne-room")
|
| 8276 |
@app.get("/throne")
|
| 8277 |
async def throne_room_page() -> Response:
|
| 8278 |
-
|
| 8279 |
-
|
| 8280 |
-
|
| 8281 |
-
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8282 |
|
| 8283 |
|
| 8284 |
@app.get("/throne-room.js")
|
|
@@ -8683,10 +8681,8 @@ async def api_a11oy_v4_fleet() -> JSONResponse:
|
|
| 8683 |
# by the Dockerfile) so no image-layout change. ADDITIVE.
|
| 8684 |
@app.get("/warhacker")
|
| 8685 |
async def warhacker_page() -> Response:
|
| 8686 |
-
|
| 8687 |
-
|
| 8688 |
-
return FileResponse(f, media_type="text/html")
|
| 8689 |
-
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8690 |
|
| 8691 |
|
| 8692 |
# ---------------------------------------------------------------------------
|
|
@@ -9784,7 +9780,7 @@ except Exception as _szlfac_e: # pragma: no cover
|
|
| 9784 |
|
| 9785 |
|
| 9786 |
# ============================================================================
|
| 9787 |
-
# SPACES ON
|
| 9788 |
# (1) szl_spaces_proxy: reverse-proxy each Space under /spaces/<name> (server-side
|
| 9789 |
# fetch, honest 502 on flap, allowlist only, a11oy/killinchu skipped as self/own-
|
| 9790 |
# host). (2) szl_spaces_surface: /api/<ns>/v1/spaces/health (REAL probe + HF-API
|
|
@@ -9811,7 +9807,7 @@ try:
|
|
| 9811 |
except Exception as _szl_ss_e: # pragma: no cover
|
| 9812 |
print(f"[a11oy] Spaces surface NOT registered: {_szl_ss_e!r}; SPA + API unaffected", file=__import__("sys").stderr)
|
| 9813 |
# ============================================================================
|
| 9814 |
-
# END: SPACES ON
|
| 9815 |
# ============================================================================
|
| 9816 |
|
| 9817 |
|
|
|
|
| 1300 |
# their fetch() calls keep working.
|
| 1301 |
#
|
| 1302 |
# allow_origin_regex covers the HF Space wildcard (szlholdings-*.hf.space) and the
|
| 1303 |
+
# planned a-11-oy.com / killinchu.a-11-oy.com subdomains in one place. We do NOT set
|
| 1304 |
# allow_credentials=True (cookies/Authorization are not used cross-origin), so
|
| 1305 |
# there is no "* + credentials" footgun and the allow-list stays the security
|
| 1306 |
# boundary. Methods/headers are scoped to what the read+governed-write API uses.
|
|
|
|
| 1309 |
import os as _cors_os
|
| 1310 |
|
| 1311 |
_CORS_ALLOWED_ORIGINS = [
|
| 1312 |
+
"https://a-11-oy.com",
|
| 1313 |
+
"https://www.a-11-oy.com",
|
| 1314 |
+
"https://killinchu.a-11-oy.com",
|
| 1315 |
"https://szlholdings-a11oy.hf.space",
|
| 1316 |
"https://szlholdings-killinchu.hf.space",
|
| 1317 |
"http://localhost:8000",
|
|
|
|
| 1325 |
)
|
| 1326 |
|
| 1327 |
# Regex catch-all for the HF Space subdomains (szlholdings-<name>.hf.space) and
|
| 1328 |
+
# any *.a-11-oy.com subdomain (immune.a-11-oy.com, killinchu.a-11-oy.com, ...).
|
| 1329 |
_CORS_ALLOWED_ORIGIN_REGEX = (
|
| 1330 |
+
r"^https://(szlholdings-[a-z0-9-]+\.hf\.space|([a-z0-9-]+\.)?a-11-oy\.com)$"
|
| 1331 |
)
|
| 1332 |
|
| 1333 |
app.add_middleware(
|
|
|
|
| 1444 |
|
| 1445 |
try:
|
| 1446 |
# Upgraded genius surfaces (win over module + SPA handlers by ordered match).
|
| 1447 |
+
app.add_api_route("/conduction", lambda: _PTG_Redirect(url="/console", status_code=307), methods=["GET"], include_in_schema=False)
|
| 1448 |
app.add_api_route("/bridge", _ptg_serve("bridge.html"), methods=["GET"], include_in_schema=False)
|
| 1449 |
app.add_api_route("/agent", _ptg_serve("agent.html"), methods=["GET"], include_in_schema=False)
|
| 1450 |
app.add_api_route("/predict", _ptg_serve("predict.html"), methods=["GET"], include_in_schema=False)
|
|
|
|
| 1501 |
app.add_api_route("/sda", _ptg_serve("sda.html"), methods=["GET"], include_in_schema=False)
|
| 1502 |
app.add_api_route("/a11oy/sda", _ptg_serve("sda.html"), methods=["GET"], include_in_schema=False)
|
| 1503 |
# DNS & SUBDOMAINS tab (2026-06-16): a static, honest internal infrastructure
|
| 1504 |
+
# roadmap that tracks the DNS records we want to add (e.g. immune.a-11-oy.com A
|
| 1505 |
# 167.233.50.75, on hold until founder is back from the trip; immune itself is
|
| 1506 |
# already served on Hugging Face so there is no outage). Standalone page, 0
|
| 1507 |
# runtime CDN, NO live data (statuses are hand-maintained + dated). NEVER a
|
|
|
|
| 8030 |
|
| 8031 |
|
| 8032 |
# === ADDITIVE: /cathedral — the ONE canonical genius cathedral, GitHub-aligned. ===
|
| 8033 |
+
# Unifies the cathedral front door so a-11-oy.com/cathedral renders the IDENTICAL
|
| 8034 |
# "Constellation · Khipu" scene as the SZLHOLDINGS/cathedral HF static space and
|
| 8035 |
# killinchu/cathedral. The page (cathedral_genius.html at the repo root) is the
|
| 8036 |
# canonical HF index.html byte-for-byte EXCEPT its two asset paths, which are
|
|
|
|
| 8137 |
|
| 8138 |
@app.get("/wallpa")
|
| 8139 |
async def wallpa_page() -> Response:
|
| 8140 |
+
# RETIRED 2026-06-27: codename violates NO user-visible codenames doctrine.
|
| 8141 |
+
return _PTG_Redirect(url="/console", status_code=307)
|
|
|
|
|
|
|
| 8142 |
|
| 8143 |
|
| 8144 |
@app.get("/wasi-rikuq")
|
| 8145 |
async def wasi_rikuq_page() -> Response:
|
| 8146 |
+
# RETIRED 2026-06-27: Quechua codename violates NO user-visible codenames doctrine.
|
| 8147 |
+
return _PTG_Redirect(url="/console", status_code=307)
|
|
|
|
|
|
|
| 8148 |
|
| 8149 |
|
| 8150 |
# /superpowers — Five live, screenshot-provable superpowers (Decision Replay,
|
|
|
|
| 8178 |
# demo is the console SPA view V.wowtoggle, reachable today via the left-nav
|
| 8179 |
# but NOT via its obvious top-level URLs: /ungoverned, /ungoverned-vs-a11oy,
|
| 8180 |
# /vs, /compare all fell through to the SPA catch-all → generic Command Center,
|
| 8181 |
+
# so a founder/investor typing a-11-oy.com/ungoverned saw the wrong page and
|
| 8182 |
# "nothing happened." The console boots into the view named by location.hash
|
| 8183 |
# (pages/console.html: `start=(location.hash||'#command').slice(1)`), so these
|
| 8184 |
# pretty paths just need to land on /console#wowtoggle. Registered BEFORE the
|
|
|
|
| 8204 |
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8205 |
|
| 8206 |
|
| 8207 |
+
# /company — SZL Holdings story folded into a-11-oy.com (the holding-company front
|
| 8208 |
# door: "Governed AI, proven in Lean", the PURIQ doctrine, the five flagships, and
|
| 8209 |
# the evidence/proof framing). Replaces the retired standalone szlholdings.com site.
|
| 8210 |
# Served from pages/company.html (COPYed wholesale by the Dockerfile). Registered
|
|
|
|
| 8246 |
# /fabric keeps working unchanged. Both registered before the SPA catch-all.
|
| 8247 |
@app.get("/fabric")
|
| 8248 |
@app.get("/a11oy/fabric")
|
|
|
|
|
|
|
| 8249 |
async def fabric_page() -> Response:
|
| 8250 |
f = PAGES_DIR / "fabric.html"
|
| 8251 |
if f.is_file():
|
|
|
|
| 8253 |
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8254 |
|
| 8255 |
|
| 8256 |
+
# RETIRED 2026-06-27: /tawantin + /a11oy/tawantin were codename aliases for
|
| 8257 |
+
# /fabric. Quechua codename violates NO user-visible codenames doctrine.
|
| 8258 |
+
@app.get("/tawantin")
|
| 8259 |
+
@app.get("/a11oy/tawantin")
|
| 8260 |
+
async def tawantin_redirect() -> Response:
|
| 8261 |
+
return _PTG_Redirect(url="/console", status_code=307)
|
| 8262 |
+
|
| 8263 |
+
|
| 8264 |
@app.get("/ayni")
|
| 8265 |
async def ayni_page() -> Response:
|
| 8266 |
+
# RETIRED 2026-06-27: Quechua codename violates NO user-visible codenames doctrine.
|
| 8267 |
+
return _PTG_Redirect(url="/console", status_code=307)
|
|
|
|
|
|
|
|
|
|
| 8268 |
|
| 8269 |
|
| 8270 |
# --- Throne Room (ADDITIVE; Doctrine v12 PURIQ / Yachay CTO) ---
|
|
|
|
| 8274 |
@app.get("/throne-room")
|
| 8275 |
@app.get("/throne")
|
| 8276 |
async def throne_room_page() -> Response:
|
| 8277 |
+
# RETIRED 2026-06-27: internal codenames (PURIQ/Yachay) violate NO user-visible
|
| 8278 |
+
# codenames doctrine. Old bookmarks preserved via 307.
|
| 8279 |
+
return _PTG_Redirect(url="/console", status_code=307)
|
|
|
|
| 8280 |
|
| 8281 |
|
| 8282 |
@app.get("/throne-room.js")
|
|
|
|
| 8681 |
# by the Dockerfile) so no image-layout change. ADDITIVE.
|
| 8682 |
@app.get("/warhacker")
|
| 8683 |
async def warhacker_page() -> Response:
|
| 8684 |
+
# RETIRED 2026-06-27: archived per founder (BRIEF.md: "warhacker is ARCHIVED").
|
| 8685 |
+
return _PTG_Redirect(url="/console", status_code=307)
|
|
|
|
|
|
|
| 8686 |
|
| 8687 |
|
| 8688 |
# ---------------------------------------------------------------------------
|
|
|
|
| 9780 |
|
| 9781 |
|
| 9782 |
# ============================================================================
|
| 9783 |
+
# SPACES ON a-11-oy.com (Dev2+3) — surface all 11 live HF Spaces same-origin.
|
| 9784 |
# (1) szl_spaces_proxy: reverse-proxy each Space under /spaces/<name> (server-side
|
| 9785 |
# fetch, honest 502 on flap, allowlist only, a11oy/killinchu skipped as self/own-
|
| 9786 |
# host). (2) szl_spaces_surface: /api/<ns>/v1/spaces/health (REAL probe + HF-API
|
|
|
|
| 9807 |
except Exception as _szl_ss_e: # pragma: no cover
|
| 9808 |
print(f"[a11oy] Spaces surface NOT registered: {_szl_ss_e!r}; SPA + API unaffected", file=__import__("sys").stderr)
|
| 9809 |
# ============================================================================
|
| 9810 |
+
# END: SPACES ON a-11-oy.com (Dev2+3)
|
| 9811 |
# ============================================================================
|
| 9812 |
|
| 9813 |
|