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, a11oy_nav_wireup.py, 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 +9 -0
- a11oy_nav_wireup.py +4 -0
- serve.py +19 -0
Dockerfile
CHANGED
|
@@ -364,6 +364,15 @@ COPY web/holo.html ./web/holo.html
|
|
| 364 |
COPY web/constitution.html ./web/constitution.html
|
| 365 |
COPY web/quant.html ./web/quant.html
|
| 366 |
COPY web/estate-hologram.html ./web/estate-hologram.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 367 |
# ADDITIVE (Lane A AGENTIC CORE, Dev A, 2026-06-14; QA9 restore 2026-06): the
|
| 368 |
# resumable ReAct agent-loop core module. Per-file COPY (this Dockerfile uses no
|
| 369 |
# COPY . .). a11oy_react_core.py is imported by serve.py (try/except guarded) and
|
|
|
|
| 364 |
COPY web/constitution.html ./web/constitution.html
|
| 365 |
COPY web/quant.html ./web/quant.html
|
| 366 |
COPY web/estate-hologram.html ./web/estate-hologram.html
|
| 367 |
+
# WARHACKER SHOWCASE PAGES (demo lane, 2026-06-14): two PUBLIC companion pages served
|
| 368 |
+
# at /signature-is-not-proof and /defense-readiness (+ /a11oy/* aliases) via _ptg_serve.
|
| 369 |
+
# System fonts, 0 runtime CDN, no external scripts; live claims fetch real a11oy
|
| 370 |
+
# endpoints with an honest NO-LIVE-DATA fallback. image-only like the other web/*.html
|
| 371 |
+
# demo pages (declared in copy-sync-lockstep.json image_only_assets; baked into the
|
| 372 |
+
# GitHub-built image, live after a factory rebuild + direct Space push). Without these
|
| 373 |
+
# COPYs the routes 404 to the SPA shell.
|
| 374 |
+
COPY web/signature-is-not-proof.html ./web/signature-is-not-proof.html
|
| 375 |
+
COPY web/defense-readiness.html ./web/defense-readiness.html
|
| 376 |
# ADDITIVE (Lane A AGENTIC CORE, Dev A, 2026-06-14; QA9 restore 2026-06): the
|
| 377 |
# resumable ReAct agent-loop core module. Per-file COPY (this Dockerfile uses no
|
| 378 |
# COPY . .). a11oy_react_core.py is imported by serve.py (try/except guarded) and
|
a11oy_nav_wireup.py
CHANGED
|
@@ -53,6 +53,10 @@ _SURFACES = [
|
|
| 53 |
# ladder) + its two-arm benchmark. Honest labels; no codenames.
|
| 54 |
("/restraint", "\u27C2", "Restraint (Governed Frugality)"), # ⟂ (perp)
|
| 55 |
("/restraint-bench", "\u2696", "Restraint Benchmark"), # ⚖
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
]
|
| 57 |
|
| 58 |
# Idempotency marker for the nav-group injection.
|
|
|
|
| 53 |
# ladder) + its two-arm benchmark. Honest labels; no codenames.
|
| 54 |
("/restraint", "\u27C2", "Restraint (Governed Frugality)"), # ⟂ (perp)
|
| 55 |
("/restraint-bench", "\u2696", "Restraint Benchmark"), # ⚖
|
| 56 |
+
# WarHacker showcase (demo lane, 2026-06-14): two PUBLIC companion pages.
|
| 57 |
+
# Honest labels; no codenames; 0 CDN. Served via _ptg_serve in serve.py.
|
| 58 |
+
("/signature-is-not-proof", "\u26A0", "Signature ≠ Proof (case study)"), # ⚠
|
| 59 |
+
("/defense-readiness", "\u2691", "Defense Readiness"), # ⚑
|
| 60 |
]
|
| 61 |
|
| 62 |
# Idempotency marker for the nav-group injection.
|
serve.py
CHANGED
|
@@ -1197,6 +1197,25 @@ try:
|
|
| 1197 |
app.add_api_route("/restraint-bench", _ptg_serve("restraint-bench.html"), methods=["GET"], include_in_schema=False)
|
| 1198 |
app.add_api_route("/a11oy/restraint-bench", _ptg_serve("restraint-bench.html"), methods=["GET"], include_in_schema=False)
|
| 1199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1200 |
# /chat + /a11oy/chat -> /code consolidation (founder-directed; the only removal).
|
| 1201 |
async def _ptg_chat_to_code() -> Response:
|
| 1202 |
return _PTG_Redirect(url="/code", status_code=302)
|
|
|
|
| 1197 |
app.add_api_route("/restraint-bench", _ptg_serve("restraint-bench.html"), methods=["GET"], include_in_schema=False)
|
| 1198 |
app.add_api_route("/a11oy/restraint-bench", _ptg_serve("restraint-bench.html"), methods=["GET"], include_in_schema=False)
|
| 1199 |
|
| 1200 |
+
# WARHACKER SHOWCASE PAGES (demo lane, 2026-06-14): two PUBLIC companion pages for
|
| 1201 |
+
# the June 16-19 WarHacker demo. Standalone sovereign pages (system fonts, 0 runtime
|
| 1202 |
+
# CDN, no external scripts). Where a claim can be proven LIVE they fetch a real
|
| 1203 |
+
# a11oy production endpoint (/api/a11oy/v1/{pinn/certificate,compliance,pnt/limits},
|
| 1204 |
+
# /elite, /elite-console) with an HONEST NO-LIVE-DATA fallback — never a fabricated
|
| 1205 |
+
# value. Every maturity claim is labelled LIVE-today vs MODELED/ROADMAP (doctrine v11).
|
| 1206 |
+
# /signature-is-not-proof — the "A Signature Is Not Proof of Safety" case study
|
| 1207 |
+
# (Mini Shai-Hulud May 2026; the 5 a11oy mechanisms).
|
| 1208 |
+
# /defense-readiness — federal/allied pathway FIT + honest maturity summary
|
| 1209 |
+
# (DARPA PINPOINT, JIATF 401, NATO DIANA, AFWERX); no
|
| 1210 |
+
# private submission content exposed.
|
| 1211 |
+
# image-only like the other web/*.html demo pages (per-file Dockerfile COPY +
|
| 1212 |
+
# copy-sync-lockstep.json image_only_assets); pushed direct-to-Space so they are
|
| 1213 |
+
# live immediately. Without the COPYs the routes 404 to the SPA shell.
|
| 1214 |
+
app.add_api_route("/signature-is-not-proof", _ptg_serve("signature-is-not-proof.html"), methods=["GET"], include_in_schema=False)
|
| 1215 |
+
app.add_api_route("/a11oy/signature-is-not-proof", _ptg_serve("signature-is-not-proof.html"), methods=["GET"], include_in_schema=False)
|
| 1216 |
+
app.add_api_route("/defense-readiness", _ptg_serve("defense-readiness.html"), methods=["GET"], include_in_schema=False)
|
| 1217 |
+
app.add_api_route("/a11oy/defense-readiness", _ptg_serve("defense-readiness.html"), methods=["GET"], include_in_schema=False)
|
| 1218 |
+
|
| 1219 |
# /chat + /a11oy/chat -> /code consolidation (founder-directed; the only removal).
|
| 1220 |
async def _ptg_chat_to_code() -> Response:
|
| 1221 |
return _PTG_Redirect(url="/code", status_code=302)
|