[ARCH] Fitness endpoint: 18 items with honest statuses
This commit is contained in:
1 parent
019abfc4ef
commit
566df9bd73
1 file changed
+28
@@ -46,6 +46,31 @@ def prism_stats():
|
||||
return json.load(r)
|
||||
|
||||
|
||||
def fitness():
|
||||
items = [
|
||||
("FIT-01", "media without LLM", "not_verified"),
|
||||
("FIT-02", "media without Hub", "not_verified"),
|
||||
("FIT-03", "duplicate event", "not_implemented"),
|
||||
("FIT-04", "lost response", "not_implemented"),
|
||||
("FIT-05", "outbox recovery", "not_implemented"),
|
||||
("FIT-06", "projection rebuild", "not_implemented"),
|
||||
("FIT-07", "entity unmerge", "not_implemented"),
|
||||
("FIT-08", "ACL revocation from cache", "pass"),
|
||||
("FIT-09", "lease expiry/fencing", "not_implemented"),
|
||||
("FIT-10", "playback during AI load", "not_verified"),
|
||||
("FIT-11", "backup restore", "pass"),
|
||||
("FIT-12", "expired approval", "not_implemented"),
|
||||
("FIT-13", "prompt injection", "not_verified"),
|
||||
("FIT-14", "missing media mount", "not_verified"),
|
||||
("FIT-15", "catalog staleness", "not_implemented"),
|
||||
("FIT-16", "contract compatibility", "pass"),
|
||||
("FIT-17", "private facets", "not_implemented"),
|
||||
("FIT-18", "cancel/partial failure", "not_implemented"),
|
||||
]
|
||||
return {"ok": True, "total": len(items), "pass": sum(1 for x in items if x[2] == "pass"),
|
||||
"items": [{"id": i, "name": n, "status": s} for i, n, s in items]}
|
||||
|
||||
|
||||
def audit_status():
|
||||
try:
|
||||
import psycopg2
|
||||
@@ -233,6 +258,9 @@ class H(BaseHTTPRequestHandler):
|
||||
except Exception as e:
|
||||
self.out(502, {"ok": False, "error": str(e)[:300]})
|
||||
return
|
||||
if u.path == "/v1/fitness":
|
||||
self.out(200, fitness())
|
||||
return
|
||||
if u.path == "/v1/home/status":
|
||||
self.out(200, home_status())
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user