betterwithage commited on
Commit
26ec027
·
verified ·
1 Parent(s): 5c2e47c

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): szl_v4_fleet.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 (1) hide show
  1. szl_v4_fleet.py +8 -0
szl_v4_fleet.py CHANGED
@@ -70,6 +70,12 @@ PEER_HEALTH_URLS: Dict[str, str] = {
70
  "amaru": "https://szlholdings-a11oy.hf.space/api/a11oy/v1/health",
71
  "rosie": "https://szlholdings-a11oy.hf.space/api/a11oy/v1/health",
72
  "killinchu": "https://szlholdings-killinchu.hf.space/api/killinchu/healthz",
 
 
 
 
 
 
73
  }
74
 
75
  ISO = lambda: datetime.now(timezone.utc).isoformat()
@@ -109,6 +115,7 @@ async def _probe_peer(ns: str, url: str) -> Dict[str, Any]:
109
  return {
110
  "flagship": ns,
111
  "quechua": QUECHUA_NAMES.get(ns, ns),
 
112
  "status": "ok" if ok else "degraded",
113
  "http_code": resp.status_code,
114
  "doctrine": body.get("doctrine"),
@@ -123,6 +130,7 @@ async def _probe_peer(ns: str, url: str) -> Dict[str, Any]:
123
  return {
124
  "flagship": ns,
125
  "quechua": QUECHUA_NAMES.get(ns, ns),
 
126
  "status": "unreachable",
127
  "error": str(exc)[:120],
128
  "url": url,
 
70
  "amaru": "https://szlholdings-a11oy.hf.space/api/a11oy/v1/health",
71
  "rosie": "https://szlholdings-a11oy.hf.space/api/a11oy/v1/health",
72
  "killinchu": "https://szlholdings-killinchu.hf.space/api/killinchu/healthz",
73
+ # Genuinely-live standalone Spaces (probed live 2026-07-03: /healthz = 200).
74
+ # These are surfaces, NOT flagship codenames — deliberately absent from
75
+ # QUECHUA_NAMES / _ROLE_TO_CODENAME (no G5 concern). Additive peer-health
76
+ # only; the honest _probe_peer reports up:false on any timeout/4xx/5xx.
77
+ "immune-standalone": "https://szlholdings-immune.hf.space/healthz",
78
+ "yarqa": "https://szlholdings-yarqa.hf.space/healthz",
79
  }
80
 
81
  ISO = lambda: datetime.now(timezone.utc).isoformat()
 
115
  return {
116
  "flagship": ns,
117
  "quechua": QUECHUA_NAMES.get(ns, ns),
118
+ "up": ok, # honest: True ONLY on a real 200, never fabricated
119
  "status": "ok" if ok else "degraded",
120
  "http_code": resp.status_code,
121
  "doctrine": body.get("doctrine"),
 
130
  return {
131
  "flagship": ns,
132
  "quechua": QUECHUA_NAMES.get(ns, ns),
133
+ "up": False, # honest: any timeout/connect error is down, never fabricated up
134
  "status": "unreachable",
135
  "error": str(exc)[:120],
136
  "url": url,