Spaces:
Running
Running
chore(sync): mirror backend .py + Dockerfile to Space (hf-sync-backend)
Browse filesAutomated backend sync from szl-holdings/a11oy main via hf-sync-backend.
Updated (differed from the Space): serve.py
Deleted (gone from the repo + Dockerfile COPY set): (none)
Keeps the Space-built backend (serve.py + the Dockerfile-COPY'd .py
modules) identical to GitHub main so the Space never rebuilds from a
stale backend, new endpoints don't 404 there, and orphaned modules
removed from the repo don't linger in the Space tree.
serve.py
CHANGED
|
@@ -8357,6 +8357,26 @@ async def verify_demo_page() -> Response:
|
|
| 8357 |
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8358 |
|
| 8359 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8360 |
# /assurance — AI Assurance for WDP-era agentic AI.
|
| 8361 |
# Hero: verifiable AI assurance overlay; assurance matrix (CDAO/DoD/OMB requirements);
|
| 8362 |
# live proof widget (run governed decision -> WebCrypto verify); WILLAY for defense;
|
|
|
|
| 8357 |
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8358 |
|
| 8359 |
|
| 8360 |
+
# /pinn-console — Governed Inverse-PINN Console. Public front-end for the LIVE
|
| 8361 |
+
# governed inverse-PINN engine (POST /api/a11oy/v1/pinn/identify). Renders the
|
| 8362 |
+
# discovered parameter(s) + 95% CI, the GREEN/YELLOW/RED convergence badge, the
|
| 8363 |
+
# FIM identifiability / self-doubt REFUSAL (the honesty hero moment), the Λ
|
| 8364 |
+
# advisory (Conjecture 1, never a proof, never 1.0), the F19/Bekenstein check
|
| 8365 |
+
# (PROVEN inequality APPLIED, not re-claimed), and the signed receipt + a Khipu
|
| 8366 |
+
# ledger verify link. Distinct from /pinn (the physical-bounds certifier surface).
|
| 8367 |
+
# Pure HTML/JS/CSS (0 runtime CDN; no server-side numpy). Reuses the verify.html
|
| 8368 |
+
# design system. Served from pages/pinn-console.html (COPYed wholesale by the
|
| 8369 |
+
# Dockerfile COPY pages/ ./pages/). Registered BEFORE the SPA catch-all so it
|
| 8370 |
+
# returns the real page, not the SPA soft-404. ADDITIVE — no existing route touched.
|
| 8371 |
+
@app.get("/pinn-console")
|
| 8372 |
+
@app.get("/a11oy/pinn-console")
|
| 8373 |
+
async def pinn_console_page() -> Response:
|
| 8374 |
+
f = PAGES_DIR / "pinn-console.html"
|
| 8375 |
+
if f.is_file():
|
| 8376 |
+
return FileResponse(f, media_type="text/html")
|
| 8377 |
+
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8378 |
+
|
| 8379 |
+
|
| 8380 |
# /assurance — AI Assurance for WDP-era agentic AI.
|
| 8381 |
# Hero: verifiable AI assurance overlay; assurance matrix (CDAO/DoD/OMB requirements);
|
| 8382 |
# live proof widget (run governed decision -> WebCrypto verify); WILLAY for defense;
|