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
|
@@ -278,7 +278,10 @@ except Exception as _a11oy_ti_e: # pragma: no cover
|
|
| 278 |
# live/cached/unreachable labels. Same resilience pattern as evidence module.
|
| 279 |
# Additive, try/except-guarded, registered EARLY (before the SPA catch-all). Pure stdlib.
|
| 280 |
try:
|
| 281 |
-
|
|
|
|
|
|
|
|
|
|
| 282 |
_szl_readiness.register(app, ns="a11oy")
|
| 283 |
print("[a11oy] Operational Readiness registered: /api/a11oy/v1/readiness", file=__import__("sys").stderr)
|
| 284 |
except Exception as _szl_rd_e: # pragma: no cover
|
|
@@ -302,7 +305,10 @@ except Exception as _szl_rk_e: # pragma: no cover
|
|
| 302 |
# engineering gate (PROPOSED), NOT the formal uniqueness Λ (Conjecture 1). Additive,
|
| 303 |
# try/except-guarded, pure stdlib (+optional numpy). Registered before the SPA catch-all.
|
| 304 |
try:
|
| 305 |
-
|
|
|
|
|
|
|
|
|
|
| 306 |
_szl_quantum_bio.register(app, ns="a11oy")
|
| 307 |
print("[a11oy] Quantum-Bio Λ-v5 registered: /api/a11oy/v1/qbio/*", file=__import__("sys").stderr)
|
| 308 |
except Exception as _szl_qb_e: # pragma: no cover
|
|
@@ -414,7 +420,10 @@ except Exception as _szl_tee_e: # pragma: no cover
|
|
| 414 |
# /energy tab + /api/a11oy/v1/energy/{sovereign,jtoken,throughput,kvcache,gateway,router,
|
| 415 |
# carbon}. Additive, try/except-guarded, before the SPA catch-all. window.SZLLabels.
|
| 416 |
try:
|
| 417 |
-
|
|
|
|
|
|
|
|
|
|
| 418 |
_szl_energy_sovereign.register(app, ns="a11oy")
|
| 419 |
print("[a11oy] Energy/Sovereign-Compute registered: /energy + /api/a11oy/v1/energy/*", file=__import__("sys").stderr)
|
| 420 |
except Exception as _szl_es_e: # pragma: no cover
|
|
@@ -1327,7 +1336,10 @@ except Exception as _szl_e8_e: # pragma: no cover
|
|
| 1327 |
# reclaimed). coherence_crossing is PROPOSED (mirrors lutar-lean CoherenceDecay, Wave24 merged).
|
| 1328 |
# Shared module byte-identical a11oy↔killinchu. Additive, try/except-guarded, before the SPA catch-all.
|
| 1329 |
try:
|
| 1330 |
-
|
|
|
|
|
|
|
|
|
|
| 1331 |
_szl_unified.register(app, ns="a11oy")
|
| 1332 |
print("[a11oy] Unified formulas registered: /api/a11oy/v1/unified/*", file=__import__("sys").stderr)
|
| 1333 |
except Exception as _szl_uf_e: # pragma: no cover
|
|
@@ -1343,7 +1355,10 @@ except Exception as _szl_uf_e: # pragma: no cover
|
|
| 1343 |
# effector stays SIMULATED; trust never 100%. Shared module byte-identical
|
| 1344 |
# a11oy↔killinchu. Additive, try/except-guarded, before the SPA catch-all.
|
| 1345 |
try:
|
| 1346 |
-
|
|
|
|
|
|
|
|
|
|
| 1347 |
_szl_cuas.register(app, ns="a11oy")
|
| 1348 |
print("[a11oy] CUAS formulas registered: /api/a11oy/v1/cuas/*", file=__import__("sys").stderr)
|
| 1349 |
except Exception as _szl_cuas_e: # pragma: no cover
|
|
@@ -4033,7 +4048,10 @@ except Exception as _obs_e: # pragma: no cover - defensive, additive-only
|
|
| 4033 |
# ===========================================================================
|
| 4034 |
try:
|
| 4035 |
import sys as _sys_rc
|
| 4036 |
-
|
|
|
|
|
|
|
|
|
|
| 4037 |
|
| 4038 |
_A11OY_SHADOW = _rc.RosieShadow("a11oy") # internal handle; label is "Companion"
|
| 4039 |
|
|
@@ -6493,7 +6511,10 @@ except Exception as _sc_e: # pragma: no cover - additive, defensive
|
|
| 6493 |
# Marker: a11oy-govern-rag-powerd2.
|
| 6494 |
# ===========================================================================
|
| 6495 |
try:
|
| 6496 |
-
|
|
|
|
|
|
|
|
|
|
| 6497 |
import threading as _rag_threading
|
| 6498 |
from fastapi import Request as _RAGRequest
|
| 6499 |
from fastapi.responses import JSONResponse as _RAGJSON
|
|
@@ -10604,7 +10625,10 @@ except Exception:
|
|
| 10604 |
pass
|
| 10605 |
|
| 10606 |
try:
|
| 10607 |
-
|
|
|
|
|
|
|
|
|
|
| 10608 |
import sys as _loop_sys
|
| 10609 |
|
| 10610 |
def _a11oy_loop_verify(env):
|
|
@@ -10756,7 +10780,10 @@ except Exception as _gcak_e:
|
|
| 10756 |
# ============================================================================
|
| 10757 |
_FORMULA_WIRING_DIAG = {"status": "not-run"}
|
| 10758 |
try:
|
| 10759 |
-
|
|
|
|
|
|
|
|
|
|
| 10760 |
import sys as _fw_sys
|
| 10761 |
_fw_status = _szl_fw.register(app, "a11oy")
|
| 10762 |
print(f"[a11oy] formula-wiring surface registered: {_fw_status}", file=_fw_sys.stderr)
|
|
@@ -10919,7 +10946,10 @@ try:
|
|
| 10919 |
except Exception:
|
| 10920 |
pass
|
| 10921 |
try:
|
| 10922 |
-
|
|
|
|
|
|
|
|
|
|
| 10923 |
import sys as _code_sys
|
| 10924 |
_code_verify = _a11oy_loop_verify if "_a11oy_loop_verify" in dir() else None
|
| 10925 |
_code_status = _a11oy_code.register(
|
|
@@ -11857,14 +11887,20 @@ except Exception as _szlfac_e: # pragma: no cover
|
|
| 11857 |
# Co-Authored-By: Perplexity Computer Agent <agent@perplexity.ai>
|
| 11858 |
# ============================================================================
|
| 11859 |
try:
|
| 11860 |
-
|
|
|
|
|
|
|
|
|
|
| 11861 |
_szl_spaces_proxy_status = _szl_spaces_proxy.register(app, ns="a11oy")
|
| 11862 |
print(f"[a11oy] Spaces reverse-proxy registered: {_szl_spaces_proxy_status}", file=__import__("sys").stderr)
|
| 11863 |
except Exception as _szl_sp_e: # pragma: no cover
|
| 11864 |
print(f"[a11oy] Spaces reverse-proxy NOT registered: {_szl_sp_e!r}; SPA + API unaffected", file=__import__("sys").stderr)
|
| 11865 |
|
| 11866 |
try:
|
| 11867 |
-
|
|
|
|
|
|
|
|
|
|
| 11868 |
_szl_spaces_surface_status = _szl_spaces_surface.register(app, ns="a11oy")
|
| 11869 |
print(f"[a11oy] Spaces surface registered: {_szl_spaces_surface_status}", file=__import__("sys").stderr)
|
| 11870 |
except Exception as _szl_ss_e: # pragma: no cover
|
|
|
|
| 278 |
# live/cached/unreachable labels. Same resilience pattern as evidence module.
|
| 279 |
# Additive, try/except-guarded, registered EARLY (before the SPA catch-all). Pure stdlib.
|
| 280 |
try:
|
| 281 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 282 |
+
from szl_substrate import szl_readiness as _szl_readiness # single source of truth
|
| 283 |
+
except Exception:
|
| 284 |
+
import szl_readiness as _szl_readiness
|
| 285 |
_szl_readiness.register(app, ns="a11oy")
|
| 286 |
print("[a11oy] Operational Readiness registered: /api/a11oy/v1/readiness", file=__import__("sys").stderr)
|
| 287 |
except Exception as _szl_rd_e: # pragma: no cover
|
|
|
|
| 305 |
# engineering gate (PROPOSED), NOT the formal uniqueness Λ (Conjecture 1). Additive,
|
| 306 |
# try/except-guarded, pure stdlib (+optional numpy). Registered before the SPA catch-all.
|
| 307 |
try:
|
| 308 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 309 |
+
from szl_substrate import szl_quantum_bio as _szl_quantum_bio # single source of truth
|
| 310 |
+
except Exception:
|
| 311 |
+
import szl_quantum_bio as _szl_quantum_bio
|
| 312 |
_szl_quantum_bio.register(app, ns="a11oy")
|
| 313 |
print("[a11oy] Quantum-Bio Λ-v5 registered: /api/a11oy/v1/qbio/*", file=__import__("sys").stderr)
|
| 314 |
except Exception as _szl_qb_e: # pragma: no cover
|
|
|
|
| 420 |
# /energy tab + /api/a11oy/v1/energy/{sovereign,jtoken,throughput,kvcache,gateway,router,
|
| 421 |
# carbon}. Additive, try/except-guarded, before the SPA catch-all. window.SZLLabels.
|
| 422 |
try:
|
| 423 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 424 |
+
from szl_substrate import szl_energy_sovereign as _szl_energy_sovereign # single source of truth
|
| 425 |
+
except Exception:
|
| 426 |
+
import szl_energy_sovereign as _szl_energy_sovereign
|
| 427 |
_szl_energy_sovereign.register(app, ns="a11oy")
|
| 428 |
print("[a11oy] Energy/Sovereign-Compute registered: /energy + /api/a11oy/v1/energy/*", file=__import__("sys").stderr)
|
| 429 |
except Exception as _szl_es_e: # pragma: no cover
|
|
|
|
| 1336 |
# reclaimed). coherence_crossing is PROPOSED (mirrors lutar-lean CoherenceDecay, Wave24 merged).
|
| 1337 |
# Shared module byte-identical a11oy↔killinchu. Additive, try/except-guarded, before the SPA catch-all.
|
| 1338 |
try:
|
| 1339 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 1340 |
+
from szl_substrate import szl_unified_formulas as _szl_unified # single source of truth
|
| 1341 |
+
except Exception:
|
| 1342 |
+
import szl_unified_formulas as _szl_unified
|
| 1343 |
_szl_unified.register(app, ns="a11oy")
|
| 1344 |
print("[a11oy] Unified formulas registered: /api/a11oy/v1/unified/*", file=__import__("sys").stderr)
|
| 1345 |
except Exception as _szl_uf_e: # pragma: no cover
|
|
|
|
| 1355 |
# effector stays SIMULATED; trust never 100%. Shared module byte-identical
|
| 1356 |
# a11oy↔killinchu. Additive, try/except-guarded, before the SPA catch-all.
|
| 1357 |
try:
|
| 1358 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 1359 |
+
from szl_substrate import szl_cuas_formulas as _szl_cuas # single source of truth
|
| 1360 |
+
except Exception:
|
| 1361 |
+
import szl_cuas_formulas as _szl_cuas
|
| 1362 |
_szl_cuas.register(app, ns="a11oy")
|
| 1363 |
print("[a11oy] CUAS formulas registered: /api/a11oy/v1/cuas/*", file=__import__("sys").stderr)
|
| 1364 |
except Exception as _szl_cuas_e: # pragma: no cover
|
|
|
|
| 4048 |
# ===========================================================================
|
| 4049 |
try:
|
| 4050 |
import sys as _sys_rc
|
| 4051 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 4052 |
+
from szl_substrate import szl_rosie_companion as _rc # single source of truth
|
| 4053 |
+
except Exception:
|
| 4054 |
+
import szl_rosie_companion as _rc # internal wiring only; never user-visible
|
| 4055 |
|
| 4056 |
_A11OY_SHADOW = _rc.RosieShadow("a11oy") # internal handle; label is "Companion"
|
| 4057 |
|
|
|
|
| 6511 |
# Marker: a11oy-govern-rag-powerd2.
|
| 6512 |
# ===========================================================================
|
| 6513 |
try:
|
| 6514 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 6515 |
+
from szl_substrate import a11oy_org_rag as _rag_engine # single source of truth
|
| 6516 |
+
except Exception:
|
| 6517 |
+
import a11oy_org_rag as _rag_engine
|
| 6518 |
import threading as _rag_threading
|
| 6519 |
from fastapi import Request as _RAGRequest
|
| 6520 |
from fastapi.responses import JSONResponse as _RAGJSON
|
|
|
|
| 10625 |
pass
|
| 10626 |
|
| 10627 |
try:
|
| 10628 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 10629 |
+
from szl_substrate import szl_agentic_loop as _szl_loop # single source of truth
|
| 10630 |
+
except Exception:
|
| 10631 |
+
import szl_agentic_loop as _szl_loop
|
| 10632 |
import sys as _loop_sys
|
| 10633 |
|
| 10634 |
def _a11oy_loop_verify(env):
|
|
|
|
| 10780 |
# ============================================================================
|
| 10781 |
_FORMULA_WIRING_DIAG = {"status": "not-run"}
|
| 10782 |
try:
|
| 10783 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 10784 |
+
from szl_substrate import szl_formula_wiring as _szl_fw # single source of truth
|
| 10785 |
+
except Exception:
|
| 10786 |
+
import szl_formula_wiring as _szl_fw
|
| 10787 |
import sys as _fw_sys
|
| 10788 |
_fw_status = _szl_fw.register(app, "a11oy")
|
| 10789 |
print(f"[a11oy] formula-wiring surface registered: {_fw_status}", file=_fw_sys.stderr)
|
|
|
|
| 10946 |
except Exception:
|
| 10947 |
pass
|
| 10948 |
try:
|
| 10949 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 10950 |
+
from szl_substrate import a11oy_code_engine as _a11oy_code # single source of truth
|
| 10951 |
+
except Exception:
|
| 10952 |
+
import a11oy_code_engine as _a11oy_code
|
| 10953 |
import sys as _code_sys
|
| 10954 |
_code_verify = _a11oy_loop_verify if "_a11oy_loop_verify" in dir() else None
|
| 10955 |
_code_status = _a11oy_code.register(
|
|
|
|
| 11887 |
# Co-Authored-By: Perplexity Computer Agent <agent@perplexity.ai>
|
| 11888 |
# ============================================================================
|
| 11889 |
try:
|
| 11890 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 11891 |
+
from szl_substrate import szl_spaces_proxy as _szl_spaces_proxy # single source of truth
|
| 11892 |
+
except Exception:
|
| 11893 |
+
import szl_spaces_proxy as _szl_spaces_proxy
|
| 11894 |
_szl_spaces_proxy_status = _szl_spaces_proxy.register(app, ns="a11oy")
|
| 11895 |
print(f"[a11oy] Spaces reverse-proxy registered: {_szl_spaces_proxy_status}", file=__import__("sys").stderr)
|
| 11896 |
except Exception as _szl_sp_e: # pragma: no cover
|
| 11897 |
print(f"[a11oy] Spaces reverse-proxy NOT registered: {_szl_sp_e!r}; SPA + API unaffected", file=__import__("sys").stderr)
|
| 11898 |
|
| 11899 |
try:
|
| 11900 |
+
try: # substrate-finish repoint: prefer shared pkg, fall back to vendored copy
|
| 11901 |
+
from szl_substrate import szl_spaces_surface as _szl_spaces_surface # single source of truth
|
| 11902 |
+
except Exception:
|
| 11903 |
+
import szl_spaces_surface as _szl_spaces_surface
|
| 11904 |
_szl_spaces_surface_status = _szl_spaces_surface.register(app, ns="a11oy")
|
| 11905 |
print(f"[a11oy] Spaces surface registered: {_szl_spaces_surface_status}", file=__import__("sys").stderr)
|
| 11906 |
except Exception as _szl_ss_e: # pragma: no cover
|