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): Dockerfile, 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.
- Dockerfile +1 -1
- serve.py +19 -0
Dockerfile
CHANGED
|
@@ -1173,7 +1173,7 @@ COPY static/energy_3d.js ./static/energy_3d.js
|
|
| 1173 |
# GitHub-built image via this per-file COPY, served from /app/web/) and declared an
|
| 1174 |
# accepted divergence in .github/hf-module-drift-allow.json (same baked-only pattern
|
| 1175 |
# as web/immune.html + web/energy.html). Codename-free.
|
| 1176 |
-
COPY web/governance.html web/autoreview.html web/energy-holographic.html web/energy.html web/energy-3d.html web/energy-harvest.html web/immune.html web/materials.html ./web/
|
| 1177 |
|
| 1178 |
# git_sha wireup (FORGE-INSTRUCTION-gitsha-quiet-window): surface the deployed commit
|
| 1179 |
# at the /honest endpoint so a stale box or Space is self-detecting. Provided at build
|
|
|
|
| 1173 |
# GitHub-built image via this per-file COPY, served from /app/web/) and declared an
|
| 1174 |
# accepted divergence in .github/hf-module-drift-allow.json (same baked-only pattern
|
| 1175 |
# as web/immune.html + web/energy.html). Codename-free.
|
| 1176 |
+
COPY web/governance.html web/autoreview.html web/energy-holographic.html web/energy.html web/energy-3d.html web/energy-harvest.html web/immune.html web/materials.html web/proof.html ./web/
|
| 1177 |
|
| 1178 |
# git_sha wireup (FORGE-INSTRUCTION-gitsha-quiet-window): surface the deployed commit
|
| 1179 |
# at the /honest endpoint so a stale box or Space is self-detecting. Provided at build
|
serve.py
CHANGED
|
@@ -8825,6 +8825,25 @@ async def status_page() -> Response:
|
|
| 8825 |
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8826 |
|
| 8827 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8828 |
@app.get("/chaski")
|
| 8829 |
async def chaski_page() -> Response:
|
| 8830 |
f = PAGES_DIR / "chaski.html"
|
|
|
|
| 8825 |
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8826 |
|
| 8827 |
|
| 8828 |
+
# /proof — In-browser Lean 4 proof replay ("See the math"). web/proof.html is a
|
| 8829 |
+
# self-contained KANCHAY page: a Tao-Blueprint-style dependency graph (Cytoscape +
|
| 8830 |
+
# Dagre, vendored at /vendor/*) over SZL's REAL formal core. Each green node carries
|
| 8831 |
+
# verbatim Lean 4 source from the lutar-lean repo; the locked-8 formula snippets are
|
| 8832 |
+
# Mathlib-free / self-contained and type-check LIVE in the official Lean 4 web kernel
|
| 8833 |
+
# (live.lean-lang.org, opened with the source preloaded via #code=). Honest by design:
|
| 8834 |
+
# Theorem U = PROVEN but CONDITIONAL + axiom-free (green); Λ-uniqueness = Conjecture 1
|
| 8835 |
+
# = OPEN, machine-checked FALSE under A1–A5 (gray, preloads the real `sorry`); Khipu
|
| 8836 |
+
# BFT = Conjecture 2 (gray). 0 runtime CDN (KaTeX/Cytoscape/Dagre vendored). Registered
|
| 8837 |
+
# BEFORE the SPA /{full_path:path} catch-all so it wins the ordered match.
|
| 8838 |
+
# Signed-off-by: Stephen P. Lutar Jr. <stephenlutar2@gmail.com>
|
| 8839 |
+
@app.get("/proof")
|
| 8840 |
+
async def proof_replay_page() -> Response:
|
| 8841 |
+
f = Path("/app/web/proof.html")
|
| 8842 |
+
if f.is_file():
|
| 8843 |
+
return FileResponse(f, media_type="text/html")
|
| 8844 |
+
return FileResponse(INDEX_HTML, media_type="text/html")
|
| 8845 |
+
|
| 8846 |
+
|
| 8847 |
@app.get("/chaski")
|
| 8848 |
async def chaski_page() -> Response:
|
| 8849 |
f = PAGES_DIR / "chaski.html"
|