Spaces:
Running
Running
Commit History
-
Upload folder using huggingface_hub
Verified signature41f4b01
-
Upload folder using huggingface_hub
Verified signaturee13b38a -
Upload folder using huggingface_hub
Verified signature1533d3f
-
fix: align customer tier enums, resolve JWT signature mismatch, and update console layout
Saibalaji Namburi7074f09 -
feat: add premium SPA operations console web interface on root route
Saibalaji Namburi80ee821 -
ci/cd: run CML on pushes, redirect space root to docs, and add conftest setup logs
Saibalaji Namburi2d87196 -
fix: conditionally omit X-Frame-Options DENY in HF Spaces
Saibalaji Namburice1b8da
-
feat(k8s): deploy api to kind multinode cluster and verify with adversarial red-teaming simulator
Saibalaji Namburi5553f71
-
feat(phase11): Langfuse LLM tracing + Constitutional Policy Engine
Saibalaji NamburiLangfuse Observability (src/monitoring/langfuse_tracer.py): - TriageTrace: trace/span/generation hierarchy per triage request - Graceful no-op degradation when LANGFUSE_PUBLIC_KEY not set - LiteLLM callback registration (auto-traces all LLM calls) - Quality scores: constitutional_compliance, resolution_quality, rag_grounding - Wired into API lifespan startup and triage background task Constitutional Policy Engine (src/responsible_ai/constitutional_policy.py): - 7 constitutional rules: PII_PROTECTION, AI_IDENTITY, TOXICITY_GUARD, NO_COMMITMENTS, SCOPE_LIMITATION, LANGUAGE_CONSISTENCY, COMPETITOR_NEUTRAL - 3 severity levels: CRITICAL (block), VIOLATION (regenerate/redact), WARNING (warn) - Fast regex-based checks (<5ms) for all rules - PolicyVerdict with score (0-1), action, violations, warnings, safe_fallback - Critical violations auto-trigger HITL escalation - Runtime rule addition/removal support Tests: 38 new tests, all passingbf95443 -
feat(phase10): FastAPI REST API + Dockerfile + SSE streaming
Saibalaji Namburi- src/api/main.py: FastAPI app factory, lifespan, CORS, security headers, structlog middleware, rate limiting (slowapi), global exception handler - src/api/auth.py: JWT authentication, tenant_id extraction, RBAC (require_role) - src/api/models.py: Pydantic v2 API request/response schemas (7 models) - src/api/store.py: In-memory triage store (Supabase PostgreSQL drop-in for Phase 12) - src/api/routers/triage.py: POST/GET /triage, HITL resume, tenant isolation - src/api/routers/health.py: Kubernetes liveness (/health) + readiness (/ready) probes - src/api/routers/stream.py: SSE real-time triage progress stream - src/api/routers/metrics.py: Prometheus metrics (counters + histograms) - Dockerfile: Multi-stage build, non-root user, JDK for PySpark, HEALTHCHECK - Dockerfile.hf: Lightweight HF Spaces image (port 7860, no PySpark) - tests/unit/test_phase10_api.py: 20 tests — all passing Routes: POST /triage, GET /triage, GET /triage/{id}, POST /triage/{id}/resume, GET /triage/{id}/s…8ce332b