Spaces:
Running
Running
forge: reconcile HF Space to GitHub main — add web/immune.html (build-blocker) + refresh pages/docs.html (honest docs)
Browse filesFactory build failed because Dockerfile COPYs web/immune.html which was absent on the Space (hf-sync web/*.html gap). Sourced byte-for-byte from szl-holdings/a11oy@main. Doctrine v11; honest source of truth = GitHub.
- pages/docs.html +1 -1
- web/immune.html +241 -0
pages/docs.html
CHANGED
|
@@ -35,7 +35,7 @@ footer{border-top:1px solid var(--line);color:var(--mut);font-size:11.5px;paddin
|
|
| 35 |
<header><span class="brand">a11oy</span><span class="tag">Brand Orchestration Layer · the one place to see everything</span></header>
|
| 36 |
<nav><a href="/hub">Hub</a><a href="/a11oy.code">a11oy.code</a><a href="/docs" class="active">Docs</a><a href="/pricing">Pricing</a><a href="/api-keys">API Keys</a><a href="/sdk">SDK</a><a href="/status">Status</a><a href="/observability">Observability</a><a href="/security">Security</a><a href="/compliance">Compliance</a><a href="/cued-engagement">Cued Engagement</a><a href="/uds">UDS</a><a href="/counter-uas">Counter-UAS</a><a href="/evidence">Evidence</a><a href="/upgrades">Upgrades</a><a href="/audit">Audit</a><a href="/gap-report">Gap Report</a></nav>
|
| 37 |
<main><h1>Docs — customer-facing documentation</h1><p class="sub">Documentation is generated from each flagship's OpenAPI 3.1 spec. When the public docs site is live it serves at docs.szlholdings.com.</p>
|
| 38 |
-
<div class="note">Public docs site: <a href="https://docs.szlholdings.com">docs.szlholdings.com</a> (MkDocs Material + neoteroi OpenAPI plugin). Until DNS is live, this embedded tree is the source of truth.</div><h2>OpenAPI 3.1 per flagship</h2><table><tr><th>Flagship</th><th>Base path</th><th>/openapi.json</th></tr><tr><td>a11oy</td><td><code>/api/a11oy</code></td><td><span class="pill a">partial — pin 3.1, add Khipu components</span></td></tr><tr><td>
|
| 39 |
</main>
|
| 40 |
<footer>Doctrine v12 (PURIQ) additive · v11/v12 LOCKED: 749 declarations · 14 axioms · 163 sorries · 13-axis yuyay_v3 · lutar-v18.0.0 @ c7c0ba17 · SLSA L1 (honest) · Khipu signature = DSSE/cosign PLACEHOLDER<br>HfApi direct push only · IP-HOLD a11oy#57 untouched · ADDITIVE / zero-regression · Khipu receipt on every action · Signed <b>Yachay</b> · Co-author Perplexity Computer Agent</footer>
|
| 41 |
</body></html>
|
|
|
|
| 35 |
<header><span class="brand">a11oy</span><span class="tag">Brand Orchestration Layer · the one place to see everything</span></header>
|
| 36 |
<nav><a href="/hub">Hub</a><a href="/a11oy.code">a11oy.code</a><a href="/docs" class="active">Docs</a><a href="/pricing">Pricing</a><a href="/api-keys">API Keys</a><a href="/sdk">SDK</a><a href="/status">Status</a><a href="/observability">Observability</a><a href="/security">Security</a><a href="/compliance">Compliance</a><a href="/cued-engagement">Cued Engagement</a><a href="/uds">UDS</a><a href="/counter-uas">Counter-UAS</a><a href="/evidence">Evidence</a><a href="/upgrades">Upgrades</a><a href="/audit">Audit</a><a href="/gap-report">Gap Report</a></nav>
|
| 37 |
<main><h1>Docs — customer-facing documentation</h1><p class="sub">Documentation is generated from each flagship's OpenAPI 3.1 spec. When the public docs site is live it serves at docs.szlholdings.com.</p>
|
| 38 |
+
<div class="note">Public docs site: <a href="https://docs.szlholdings.com">docs.szlholdings.com</a> (MkDocs Material + neoteroi OpenAPI plugin). Until DNS is live, this embedded tree is the source of truth.</div><h2>OpenAPI 3.1 per flagship</h2><table><tr><th>Flagship</th><th>Base path</th><th>/openapi.json</th></tr><tr><td>a11oy</td><td><code>/api/a11oy</code></td><td><span class="pill a">partial — pin 3.1, add Khipu components</span></td></tr><tr><td>Reasoning tier (Memory)</td><td><code>/api/amaru</code></td><td><span class="pill a">author full 3.1</span></td></tr><tr><td>Sentinel (Immune)</td><td><code>/api/sentra</code></td><td><span class="pill a">author full 3.1</span></td></tr><tr><td>killinchu</td><td><code>/api/killinchu</code></td><td><span class="pill a">author 3.1 incl. /v1/cue</span></td></tr><tr><td>Operator (Companion)</td><td><code>/api/rosie</code></td><td><span class="pill a">partial — document public subset</span></td></tr></table><h2>Doc tree</h2><table><tr><td><b>Getting started</b></td><td>Install the SDK, mint an API key, make your first call</td></tr><tr><td><b>Authentication</b></td><td>API keys, scopes, per-flagship allowlists, cosign tamper-evidence — see <a href="/api-keys">/api-keys</a></td></tr><tr><td><b>SDKs</b></td><td>Python + TypeScript — see <a href="/sdk">/sdk</a></td></tr><tr><td><b>The Khipu receipt</b></td><td>Every response carries a hash-chained receipt; chain_verified=false raises HaltError</td></tr><tr><td><b>Cued engagement</b></td><td>The Yachay-Dome /v1/cue product — see <a href="/cued-engagement">/cued-engagement</a></td></tr></table><p class="sub">Source: customer_surface/PUBLIC_DOCS_SITE.md · OPENAPI_SPECS_PER_FLAGSHIP.md</p>
|
| 39 |
</main>
|
| 40 |
<footer>Doctrine v12 (PURIQ) additive · v11/v12 LOCKED: 749 declarations · 14 axioms · 163 sorries · 13-axis yuyay_v3 · lutar-v18.0.0 @ c7c0ba17 · SLSA L1 (honest) · Khipu signature = DSSE/cosign PLACEHOLDER<br>HfApi direct push only · IP-HOLD a11oy#57 untouched · ADDITIVE / zero-regression · Khipu receipt on every action · Signed <b>Yachay</b> · Co-author Perplexity Computer Agent</footer>
|
| 41 |
</body></html>
|
web/immune.html
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8"/>
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
| 6 |
+
<title>Immune (Hukulla) — fail-closed egress gate · SZL Holdings</title>
|
| 7 |
+
<meta name="description" content="Live, honest view of the Immune organ (Quechua role 'Hukulla') — a fail-closed, deny-by-default egress gate. Real threat-signature scan + 1 MB size guard + Lambda-gate floor, every verdict signed into the shared Khipu chain. Lean backing: ImmuneNeymanPearsonOpt + FrontierWelfordVariance. Lambda = Conjecture 1; Khipu = Conjecture 2; trust never 100%."/>
|
| 8 |
+
<!-- 0 runtime CDN (doctrine v11): system fonts only — no Google Fonts, no external assets. -->
|
| 9 |
+
<style>
|
| 10 |
+
:root{
|
| 11 |
+
--ground:#0a0a0a; --panel:#0e0e0e; --panel2:#080808; --rail:#0b0b0b;
|
| 12 |
+
--gold:#c9b787; --gold-bright:#d6c69a;
|
| 13 |
+
--teal:#5fb3a3; --teal-soft:rgba(95,179,163,0.10);
|
| 14 |
+
--cream:#f5f5f5; --paragraph:#9a9a9a; --muted:#888; --dim:#555;
|
| 15 |
+
--gold-line:rgba(201,183,135,0.15); --gold-soft:rgba(201,183,135,0.04);
|
| 16 |
+
--teal-line:rgba(95,179,163,0.22);
|
| 17 |
+
--live:#5a8a6e; --err:#b06a5a; --warn:#c9a05f;
|
| 18 |
+
--green:#39d98a; --yellow:#f5c451; --red:#ff6a5a; --blue:#5bc8ff;
|
| 19 |
+
--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
|
| 20 |
+
--display:ui-sans-serif,system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
|
| 21 |
+
}
|
| 22 |
+
*{box-sizing:border-box;}
|
| 23 |
+
html,body{margin:0;padding:0;background:var(--ground);color:var(--cream);font-family:var(--display);-webkit-font-smoothing:antialiased;}
|
| 24 |
+
.mono{font-family:var(--mono);}
|
| 25 |
+
a{color:inherit;text-decoration:none;}
|
| 26 |
+
.topbar{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:.5rem 1.1rem;background:rgba(10,10,10,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--gold-line);font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);}
|
| 27 |
+
.topbar .sep{color:var(--dim);}
|
| 28 |
+
.topbar .live{display:inline-flex;align-items:center;gap:.4rem;color:var(--cream);}
|
| 29 |
+
.live-dot{width:6px;height:6px;border-radius:50%;background:var(--live);box-shadow:0 0 6px var(--live);animation:pulse 2.2s ease-in-out infinite;}
|
| 30 |
+
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.35;}}
|
| 31 |
+
.switcher{margin-left:auto;display:flex;align-items:center;gap:.3rem;}
|
| 32 |
+
.flag{padding:.22rem .55rem;border-radius:6px;border:1px solid transparent;color:var(--muted);transition:.15s;}
|
| 33 |
+
.flag:hover{color:var(--cream);border-color:var(--gold-line);background:var(--gold-soft);}
|
| 34 |
+
.flag.active{color:var(--ground);background:var(--gold);border-color:var(--gold);font-weight:600;}
|
| 35 |
+
.wrap{max-width:1320px;margin:0 auto;padding:1.6rem 1.4rem 4rem;}
|
| 36 |
+
h1{font-size:1.7rem;font-weight:600;margin:.2rem 0 .3rem;letter-spacing:-.01em;}
|
| 37 |
+
.badge{display:inline-block;font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);border:1px solid var(--teal-line);background:var(--teal-soft);padding:.25rem .6rem;border-radius:5px;margin-left:.4rem;vertical-align:middle;}
|
| 38 |
+
.lede{color:var(--paragraph);font-size:.95rem;line-height:1.65;max-width:1180px;margin:.6rem 0 1rem;}
|
| 39 |
+
.lede b{color:var(--cream);font-weight:600;}
|
| 40 |
+
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;margin:0 0 1.2rem;}
|
| 41 |
+
.card{border:1px solid var(--gold-line);background:var(--panel);border-radius:8px;padding:.85rem 1rem;}
|
| 42 |
+
.card .lbl{font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);}
|
| 43 |
+
.card .big{font-size:1.5rem;font-weight:600;margin:.35rem 0 .15rem;color:var(--teal);}
|
| 44 |
+
.card .sub{font-family:var(--mono);font-size:10.5px;color:var(--muted);}
|
| 45 |
+
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
|
| 46 |
+
.panel{border:1px solid var(--gold-line);background:var(--panel);border-radius:10px;padding:1rem 1.1rem;margin-bottom:1rem;}
|
| 47 |
+
.panel h2{font-size:1.05rem;font-weight:600;margin:0 0 .2rem;display:flex;align-items:center;justify-content:space-between;}
|
| 48 |
+
.panel h2 .meta{font-family:var(--mono);font-size:10px;color:var(--dim);text-transform:uppercase;letter-spacing:.06em;}
|
| 49 |
+
.kv{font-family:var(--mono);font-size:12px;color:var(--paragraph);line-height:1.9;margin-top:.5rem;}
|
| 50 |
+
.kv .k{color:var(--dim);display:inline-block;min-width:150px;}
|
| 51 |
+
.kv .v{color:var(--cream);}
|
| 52 |
+
.pill{display:inline-block;font-family:var(--mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase;padding:.18rem .5rem;border-radius:5px;border:1px solid var(--gold-line);}
|
| 53 |
+
.pill.green{color:var(--green);border-color:rgba(57,217,138,.4);background:rgba(57,217,138,.08);}
|
| 54 |
+
.pill.yellow{color:var(--yellow);border-color:rgba(245,196,81,.4);background:rgba(245,196,81,.08);}
|
| 55 |
+
.pill.red{color:var(--red);border-color:rgba(255,106,90,.4);background:rgba(255,106,90,.08);}
|
| 56 |
+
.pill.dim{color:var(--muted);}
|
| 57 |
+
.simnote{border:1px solid var(--warn);background:rgba(201,160,95,.06);border-radius:8px;padding:.7rem .9rem;margin-top:.8rem;font-family:var(--mono);font-size:11px;color:#d8c39a;line-height:1.65;}
|
| 58 |
+
table{width:100%;border-collapse:collapse;font-family:var(--mono);font-size:11.5px;margin-top:.5rem;}
|
| 59 |
+
th,td{text-align:left;padding:.34rem .5rem;border-bottom:1px solid var(--gold-soft);color:var(--paragraph);vertical-align:top;}
|
| 60 |
+
th{color:var(--dim);text-transform:uppercase;letter-spacing:.06em;font-size:9.5px;}
|
| 61 |
+
td.deny{color:var(--red);}td.allow{color:var(--green);}
|
| 62 |
+
textarea,input{width:100%;background:var(--panel2);border:1px solid var(--gold-line);border-radius:7px;color:var(--cream);font-family:var(--mono);font-size:12.5px;padding:.6rem .7rem;resize:vertical;}
|
| 63 |
+
textarea:focus,input:focus{outline:none;border-color:var(--teal-line);}
|
| 64 |
+
button.run{margin-top:.6rem;padding:.55rem 1.1rem;border-radius:7px;border:1px solid var(--teal-line);background:var(--teal-soft);color:var(--teal);font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;transition:.15s;}
|
| 65 |
+
button.run:hover{background:rgba(95,179,163,.18);color:var(--cream);}
|
| 66 |
+
.preset{display:inline-block;margin:.3rem .3rem 0 0;padding:.2rem .5rem;border-radius:5px;border:1px solid var(--gold-line);color:var(--muted);font-family:var(--mono);font-size:10.5px;cursor:pointer;}
|
| 67 |
+
.preset:hover{color:var(--cream);border-color:var(--teal-line);}
|
| 68 |
+
.verdict-box{margin-top:.8rem;border:1px solid var(--gold-line);border-radius:8px;padding:.85rem 1rem;background:var(--panel2);font-family:var(--mono);font-size:12px;line-height:1.8;}
|
| 69 |
+
.verdict-box.deny{border-color:rgba(255,106,90,.5);}
|
| 70 |
+
.verdict-box.allow{border-color:rgba(57,217,138,.5);}
|
| 71 |
+
.sig{display:inline-block;margin:.15rem .3rem .15rem 0;padding:.12rem .45rem;border-radius:4px;border:1px solid rgba(255,106,90,.4);background:rgba(255,106,90,.08);color:var(--red);font-size:10.5px;}
|
| 72 |
+
.digest{color:var(--gold);word-break:break-all;}
|
| 73 |
+
code{font-family:var(--mono);color:var(--teal);}
|
| 74 |
+
.footnote{font-family:var(--mono);font-size:10px;color:var(--dim);margin-top:1.6rem;line-height:1.7;}
|
| 75 |
+
</style>
|
| 76 |
+
</head>
|
| 77 |
+
<body>
|
| 78 |
+
<div class="topbar">
|
| 79 |
+
<span>SZL HOLDINGS</span><span class="sep">/</span><span>a11oy</span>
|
| 80 |
+
<span class="live"><span class="live-dot"></span><span id="liveTag">IMMUNE · LIVE</span></span>
|
| 81 |
+
<span class="switcher">
|
| 82 |
+
<a class="flag active" href="/immune">Immune</a>
|
| 83 |
+
<a class="flag" href="/energy">Energy</a>
|
| 84 |
+
<a class="flag" href="/fleet-c2">Fleet C2</a>
|
| 85 |
+
<a class="flag" href="/living-anatomy">Living Anatomy</a>
|
| 86 |
+
<a class="flag" href="/code">Code</a>
|
| 87 |
+
</span>
|
| 88 |
+
</div>
|
| 89 |
+
|
| 90 |
+
<div class="wrap">
|
| 91 |
+
<h1>Immune (Hukulla) — fail-closed egress gate<span class="badge" id="organBadge">deny-by-default · real inspection · Khipu-signed</span></h1>
|
| 92 |
+
<p class="lede">
|
| 93 |
+
The <b>Immune</b> organ (Quechua role <b>Hukulla</b>) is a <b>fail-closed, deny-by-default</b> egress gate.
|
| 94 |
+
Every action is inspected against a real threat-signature corpus, a 1 MB size guard and a
|
| 95 |
+
<b>Λ-gate floor</b> (MIN of supplied trust axes < 0.5 → deny). Each verdict is signed into the
|
| 96 |
+
<b>shared Khipu chain</b> (<code>SZL.Immune.Verdict.v1</code>). Proven Lean backing:
|
| 97 |
+
<code>ImmuneNeymanPearsonOpt.lean</code> (Neyman–Pearson-optimal egress) and
|
| 98 |
+
<code>FrontierWelfordVariance.lean</code> (Welford online variance). These back the gate but are
|
| 99 |
+
<b>not</b> folded into the locked-8 proven set. Λ = <b>Conjecture 1</b> (not a theorem);
|
| 100 |
+
Khipu = Conjecture 2; trust is never 100%; effectors simulated; no fabricated data.
|
| 101 |
+
</p>
|
| 102 |
+
|
| 103 |
+
<div class="cards">
|
| 104 |
+
<div class="card"><div class="lbl">Verdicts (this process)</div><div class="big" id="cVerdicts">—</div><div class="sub" id="cVerdictsSub">resets on restart</div></div>
|
| 105 |
+
<div class="card"><div class="lbl">Deny rate</div><div class="big" id="cDenyRate">—</div><div class="sub" id="cDenySub">deny / total</div></div>
|
| 106 |
+
<div class="card"><div class="lbl">Signature corpus</div><div class="big" id="cCorpus">—</div><div class="sub" id="cCorpusSub">active signatures</div></div>
|
| 107 |
+
<div class="card"><div class="lbl">Khipu chain depth</div><div class="big" id="cChain">—</div><div class="sub" id="cChainSub">verified</div></div>
|
| 108 |
+
</div>
|
| 109 |
+
|
| 110 |
+
<div class="grid2">
|
| 111 |
+
<div class="panel">
|
| 112 |
+
<h2>Inspect an action <span class="meta" id="verdictEp">POST /api/a11oy/v1/immune/verdict</span></h2>
|
| 113 |
+
<p class="lede" style="margin:.2rem 0 .6rem;font-size:.86rem;">
|
| 114 |
+
Submit a real action payload. The gate runs the live inspection and signs a Khipu receipt.
|
| 115 |
+
Optionally include <code>axes</code> (a JSON array of trust scores) to exercise the Λ-gate floor.
|
| 116 |
+
</p>
|
| 117 |
+
<div>
|
| 118 |
+
<span class="preset" data-p='{"action":{"cmd":"rm -rf /"}}'>rm -rf /</span>
|
| 119 |
+
<span class="preset" data-p='{"action":{"q":"DROP TABLE users; --"}}'>DROP TABLE</span>
|
| 120 |
+
<span class="preset" data-p='{"action":{"html":"<script>alert(1)</script>"}}'><script> XSS</span>
|
| 121 |
+
<span class="preset" data-p='{"action":{"path":"../../etc/passwd"}}'>path traversal</span>
|
| 122 |
+
<span class="preset" data-p='{"action":{"cmd":"echo hello"}}'>echo hello (clean)</span>
|
| 123 |
+
<span class="preset" data-p='{"action":{"cmd":"read_file"},"axes":[0.9,0.3,0.8]}'>low Λ axis</span>
|
| 124 |
+
</div>
|
| 125 |
+
<textarea id="actionInput" rows="6" style="margin-top:.5rem;">{"action":{"cmd":"rm -rf /"}}</textarea>
|
| 126 |
+
<button class="run" id="runBtn">Inspect → verdict</button>
|
| 127 |
+
<div id="verdictOut"></div>
|
| 128 |
+
</div>
|
| 129 |
+
|
| 130 |
+
<div class="panel">
|
| 131 |
+
<h2>Live status <span class="meta" id="statusEp">GET /api/a11oy/v1/immune/status</span></h2>
|
| 132 |
+
<div class="kv" id="statusKv"><span class="k">loading…</span></div>
|
| 133 |
+
<div class="simnote" id="honestyNote">
|
| 134 |
+
Λ = Conjecture 1 (NOT a theorem). Khipu = Conjecture 2. Trust never 100%. Effectors simulated.
|
| 135 |
+
Decision feed is in-memory (resets on restart) — empty means IDLE, never faked.
|
| 136 |
+
</div>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
|
| 140 |
+
<div class="panel">
|
| 141 |
+
<h2>Gates <span class="meta" id="gatesEp">GET /api/a11oy/v1/immune/gates</span></h2>
|
| 142 |
+
<table id="gatesTable"><thead><tr><th>id</th><th>name</th><th>label</th><th>category</th><th>sample → expected</th></tr></thead><tbody><tr><td class="mono" colspan="5">loading…</td></tr></tbody></table>
|
| 143 |
+
</div>
|
| 144 |
+
|
| 145 |
+
<div class="panel">
|
| 146 |
+
<h2>Decision feed <span class="meta" id="feedEp">GET /api/a11oy/v1/immune/feed</span></h2>
|
| 147 |
+
<table id="feedTable"><thead><tr><th>time</th><th>decision</th><th>signals</th><th>Λ</th><th>receipt</th></tr></thead><tbody><tr><td class="mono" colspan="5">loading…</td></tr></tbody></table>
|
| 148 |
+
</div>
|
| 149 |
+
|
| 150 |
+
<div class="footnote" id="leanFoot">
|
| 151 |
+
Proven Lean backing: Lutar/Wave11/ImmuneNeymanPearsonOpt.lean · Lutar/Innovations/round11/FrontierWelfordVariance.lean.
|
| 152 |
+
Locked-proven set = EXACTLY 8 {F1,F4,F7,F11,F12,F18,F19,F22} @ kernel c7c0ba17 — the immune Lean backing is cited, NOT folded in.
|
| 153 |
+
SLSA L1/L2/L3-roadmap · 0 runtime CDN. This page reads only the live /api/a11oy/v1/immune/* endpoints.
|
| 154 |
+
</div>
|
| 155 |
+
</div>
|
| 156 |
+
|
| 157 |
+
<script>
|
| 158 |
+
const BASE = "/api/a11oy/v1/immune";
|
| 159 |
+
async function getJSON(u,opt){try{const r=await fetch(u,opt);if(!r.ok)return null;return await r.json();}catch(e){return null;}}
|
| 160 |
+
function esc(s){return String(s).replace(/[&<>]/g,c=>({"&":"&","<":"<",">":">"}[c]));}
|
| 161 |
+
|
| 162 |
+
async function loadStatus(){
|
| 163 |
+
const s = await getJSON(BASE + "/status");
|
| 164 |
+
const kv = document.getElementById("statusKv");
|
| 165 |
+
if(!s){kv.innerHTML='<span class="k">status</span><span class="v">unreachable — retrying</span>';return;}
|
| 166 |
+
document.getElementById("cVerdicts").textContent = (s.verdicts_this_process ?? 0);
|
| 167 |
+
document.getElementById("cDenyRate").textContent = (s.deny_rate==null?"—":(Math.round(s.deny_rate*1000)/10)+"%");
|
| 168 |
+
document.getElementById("cDenySub").textContent = (s.deny ?? 0)+" deny / "+(s.allow ?? 0)+" allow";
|
| 169 |
+
document.getElementById("cCorpus").textContent = (s.signature_corpus_size ?? "—");
|
| 170 |
+
document.getElementById("cCorpusSub").textContent = (s.threats_corpus_total ?? 0)+" STIX/MITRE in corpus";
|
| 171 |
+
const k = s.khipu||{};
|
| 172 |
+
document.getElementById("cChain").textContent = (k.chain_depth ?? "—");
|
| 173 |
+
document.getElementById("cChainSub").textContent = (k.chain_verified? "chain verified":"unverified");
|
| 174 |
+
kv.innerHTML =
|
| 175 |
+
'<div><span class="k">organ</span><span class="v">'+esc(s.organ||"Immune (Hukulla)")+'</span></div>'+
|
| 176 |
+
'<div><span class="k">role</span><span class="v">'+esc(s.role||"")+'</span></div>'+
|
| 177 |
+
'<div><span class="k">Λ-gate floor</span><span class="v">'+esc(s.lambda_gate_floor)+'</span></div>'+
|
| 178 |
+
'<div><span class="k">size guard</span><span class="v">'+esc(s.size_guard_bytes)+' bytes</span></div>'+
|
| 179 |
+
'<div><span class="k">signatures</span><span class="v">'+esc((s.signatures||[]).join(", "))+'</span></div>'+
|
| 180 |
+
'<div><span class="k">last receipt</span><span class="v digest">'+esc(s.last_receipt_digest||"(none yet)")+'</span></div>'+
|
| 181 |
+
'<div><span class="k">khipu head</span><span class="v digest">'+esc((k.head_digest||"").slice(0,32))+'…</span></div>'+
|
| 182 |
+
'<div><span class="k">status</span><span class="pill green">'+esc(s.status||"REAL")+'</span></div>';
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
async function loadGates(){
|
| 186 |
+
const g = await getJSON(BASE + "/gates");
|
| 187 |
+
const tb = document.querySelector("#gatesTable tbody");
|
| 188 |
+
if(!g || !g.gates){tb.innerHTML='<tr><td class="mono" colspan="5">unreachable</td></tr>';return;}
|
| 189 |
+
tb.innerHTML = g.gates.map(x=>
|
| 190 |
+
'<tr><td class="mono">'+esc(x.id)+'</td><td>'+esc(x.name)+'</td><td>'+esc(x.label)+'</td><td>'+esc(x.category)+'</td>'+
|
| 191 |
+
'<td><code>'+esc(String(x.sampleInput).slice(0,46))+'</code> → <b>'+esc(x.expectedDecision)+'</b></td></tr>').join("");
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
async function loadFeed(){
|
| 195 |
+
const f = await getJSON(BASE + "/feed?limit=20");
|
| 196 |
+
const tb = document.querySelector("#feedTable tbody");
|
| 197 |
+
if(!f || !f.verdicts || !f.verdicts.length){tb.innerHTML='<tr><td class="mono" colspan="5">IDLE — no verdicts buffered (resets on restart)</td></tr>';return;}
|
| 198 |
+
tb.innerHTML = f.verdicts.map(v=>
|
| 199 |
+
'<tr><td>'+esc((v.timestamp||"").slice(11,19))+'</td>'+
|
| 200 |
+
'<td class="'+esc(v.decision)+'">'+esc(v.decision)+'</td>'+
|
| 201 |
+
'<td>'+esc((v.signals||[]).join(", ")||"—")+'</td>'+
|
| 202 |
+
'<td>'+esc(v.lambda_value)+'</td>'+
|
| 203 |
+
'<td class="digest">'+esc(v.receipt_hash||"")+'</td></tr>').join("");
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
async function runVerdict(){
|
| 207 |
+
const out = document.getElementById("verdictOut");
|
| 208 |
+
let body;
|
| 209 |
+
try{ body = JSON.parse(document.getElementById("actionInput").value); }
|
| 210 |
+
catch(e){ out.innerHTML='<div class="verdict-box deny">Invalid JSON: '+esc(e.message)+'</div>'; return; }
|
| 211 |
+
out.innerHTML='<div class="verdict-box">inspecting…</div>';
|
| 212 |
+
const v = await getJSON(BASE + "/verdict", {method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(body)});
|
| 213 |
+
if(!v){ out.innerHTML='<div class="verdict-box deny">endpoint unreachable — retry</div>'; return; }
|
| 214 |
+
const cls = v.decision==="deny"?"deny":"allow";
|
| 215 |
+
const pill = v.decision==="deny"?'<span class="pill red">DENY</span>':'<span class="pill green">ALLOW</span>';
|
| 216 |
+
const sigs = (v.signals||[]).map(s=>'<span class="sig">'+esc(s)+'</span>').join("") || '<span class="pill dim">no signal</span>';
|
| 217 |
+
const rec = v.khipu_receipt||{};
|
| 218 |
+
out.innerHTML =
|
| 219 |
+
'<div class="verdict-box '+cls+'">'+
|
| 220 |
+
'<div>decision '+pill+' <span style="color:var(--dim)">Λ='+esc(v.lambda_value)+' (floor '+esc(v.lambda_floor)+')</span></div>'+
|
| 221 |
+
'<div style="margin:.4rem 0;color:var(--paragraph)">'+esc(v.reason)+'</div>'+
|
| 222 |
+
'<div style="margin:.3rem 0;">signals: '+sigs+'</div>'+
|
| 223 |
+
'<div><span style="color:var(--dim)">verdict hash</span> <span class="digest">'+esc(v.receipt_hash)+'</span></div>'+
|
| 224 |
+
'<div><span style="color:var(--dim)">Khipu receipt</span> <span class="digest">'+esc(rec.digest||"")+'</span> '+
|
| 225 |
+
'<span style="color:var(--dim)">seq '+esc(rec.seq)+' · '+esc(rec.receipt_type||"SZL.Immune.Verdict.v1")+'</span></div>'+
|
| 226 |
+
'<div style="color:var(--dim);margin-top:.3rem">fail-closed='+esc(v.fail_closed)+' · doctrine '+esc(v.doctrine)+'</div>'+
|
| 227 |
+
'</div>';
|
| 228 |
+
loadStatus(); loadFeed();
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
document.querySelectorAll(".preset").forEach(p=>p.addEventListener("click",()=>{
|
| 232 |
+
document.getElementById("actionInput").value = p.getAttribute("data-p");
|
| 233 |
+
}));
|
| 234 |
+
document.getElementById("runBtn").addEventListener("click",runVerdict);
|
| 235 |
+
|
| 236 |
+
async function loadAll(){ await Promise.all([loadStatus(),loadGates(),loadFeed()]); }
|
| 237 |
+
loadAll();
|
| 238 |
+
setInterval(loadStatus, 8000);
|
| 239 |
+
</script>
|
| 240 |
+
</body>
|
| 241 |
+
</html>
|