betterwithage commited on
Commit
941e7c8
·
verified ·
1 Parent(s): 7e18852

chore(sync): mirror backend .py + Dockerfile to Space (hf-sync-backend)

Browse files

Automated 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.

Files changed (2) hide show
  1. Dockerfile +7 -1
  2. serve.py +10 -0
Dockerfile CHANGED
@@ -318,6 +318,12 @@ COPY web/living-anatomy.html ./web/living-anatomy.html
318
  # _ptg_serve. Without these COPYs the guarded import falls back and /nemo 404s.
319
  COPY a11oy_nemo_core.py ./
320
  COPY web/nemo.html ./web/nemo.html
 
 
 
 
 
 
321
  # ADDITIVE (Lane A AGENTIC CORE, Dev A, 2026-06-14; QA9 restore 2026-06): the
322
  # resumable ReAct agent-loop core module. Per-file COPY (this Dockerfile uses no
323
  # COPY . .). a11oy_react_core.py is imported by serve.py (try/except guarded) and
@@ -757,7 +763,7 @@ COPY conduction_aphasia.py szl_a11oy_live_feeds.py szl_jack.py ./
757
 
758
  # --- ESTATE ECOSYSTEM FOUNDATION (Dev5, 2026-06): byte-identical shared modules ---
759
  # 3 shared JS (label engine / receipt-cosign / codename sanitizer) + codename gate + ecosystem router.
760
- COPY static/shared/szl_label_engine.js static/shared/szl_receipt_cosign.js static/shared/szl_codename_sanitizer.js ./static/shared/
761
  COPY szl_codename_gate.py szl_ecosystem_routes.py ./
762
 
763
  # --- GOVERNANCE / EVAL / CALIBRATION layer (Dev B, 2026-06): ADDITIVE ---
 
318
  # _ptg_serve. Without these COPYs the guarded import falls back and /nemo 404s.
319
  COPY a11oy_nemo_core.py ./
320
  COPY web/nemo.html ./web/nemo.html
321
+ # ADDITIVE (Lane F1, 2026-06-14): the 3D/holographic SUBSTRATE demo page, served at
322
+ # /holo + /a11oy/holo via _ptg_serve. Loads the shared kit /static/shared/szl_holo3d.js
323
+ # (0 CDN). image-only like the other web/*.html demo pages (declared in
324
+ # .github/copy-sync-lockstep.json image_only_assets; baked into the GitHub-built image,
325
+ # live after a factory rebuild). Without this COPY /holo would 404 to the SPA shell.
326
+ COPY web/holo.html ./web/holo.html
327
  # ADDITIVE (Lane A AGENTIC CORE, Dev A, 2026-06-14; QA9 restore 2026-06): the
328
  # resumable ReAct agent-loop core module. Per-file COPY (this Dockerfile uses no
329
  # COPY . .). a11oy_react_core.py is imported by serve.py (try/except guarded) and
 
763
 
764
  # --- ESTATE ECOSYSTEM FOUNDATION (Dev5, 2026-06): byte-identical shared modules ---
765
  # 3 shared JS (label engine / receipt-cosign / codename sanitizer) + codename gate + ecosystem router.
766
+ COPY static/shared/szl_label_engine.js static/shared/szl_receipt_cosign.js static/shared/szl_codename_sanitizer.js static/shared/szl_holo3d.js ./static/shared/
767
  COPY szl_codename_gate.py szl_ecosystem_routes.py ./
768
 
769
  # --- GOVERNANCE / EVAL / CALIBRATION layer (Dev B, 2026-06): ADDITIVE ---
serve.py CHANGED
@@ -987,6 +987,14 @@ try:
987
  app.add_api_route("/hologram", _ptg_serve("hologram.html"), methods=["GET"], include_in_schema=False)
988
  app.add_api_route("/a11oy/hologram", _ptg_serve("hologram.html"), methods=["GET"], include_in_schema=False)
989
 
 
 
 
 
 
 
 
 
990
  # /chat + /a11oy/chat -> /code consolidation (founder-directed; the only removal).
991
  async def _ptg_chat_to_code() -> Response:
992
  return _PTG_Redirect(url="/code", status_code=302)
@@ -6771,6 +6779,8 @@ try:
6771
  "szl_label_engine.js": _VENDOR_JS_CT,
6772
  "szl_receipt_cosign.js": _VENDOR_JS_CT,
6773
  "szl_codename_sanitizer.js": _VENDOR_JS_CT,
 
 
6774
  }
6775
 
6776
  @app.get("/static/shared/{fname}")
 
987
  app.add_api_route("/hologram", _ptg_serve("hologram.html"), methods=["GET"], include_in_schema=False)
988
  app.add_api_route("/a11oy/hologram", _ptg_serve("hologram.html"), methods=["GET"], include_in_schema=False)
989
 
990
+ # /holo — SZL 3D HOLOGRAPHIC SUBSTRATE demo (Lane F1). Full-screen sovereign page
991
+ # that loads the shared kit /static/shared/szl_holo3d.js (0 CDN) and renders the
992
+ # holographic shell + a SAMPLE proof-DAG + a Lambda-driven trust sphere + a
993
+ # signed-pulse edge animation, all with honest SAMPLE labels. WebGL2 baseline,
994
+ # honest 2D fallback. Lambda = Conjecture 1 (< 1.0). 0 visible codenames.
995
+ app.add_api_route("/holo", _ptg_serve("holo.html"), methods=["GET"], include_in_schema=False)
996
+ app.add_api_route("/a11oy/holo", _ptg_serve("holo.html"), methods=["GET"], include_in_schema=False)
997
+
998
  # /chat + /a11oy/chat -> /code consolidation (founder-directed; the only removal).
999
  async def _ptg_chat_to_code() -> Response:
1000
  return _PTG_Redirect(url="/code", status_code=302)
 
6779
  "szl_label_engine.js": _VENDOR_JS_CT,
6780
  "szl_receipt_cosign.js": _VENDOR_JS_CT,
6781
  "szl_codename_sanitizer.js": _VENDOR_JS_CT,
6782
+ # Lane F1: the shared 3D/holographic substrate kit (byte-identical a11oy<->killinchu).
6783
+ "szl_holo3d.js": _VENDOR_JS_CT,
6784
  }
6785
 
6786
  @app.get("/static/shared/{fname}")