Fetching metadata from the HF Docker repository...
Jun 21 12:16 fix: apply deep audit — 35+ bug fixes across backend, engine, and frontend baljot07 +1: Claude Sonnet 4.6 Critical fixes:
- base_agent: queue drain TOCTOU race + per-message exception isolation
- base_agent: TimeoutError no longer broadcasts alert (avoids premature run-lock release)
- main: alert grace-period (8s) before clearing run lock; wrong incident_id in _trigger_mp_verdict
- main: ContextVar reset in broadcast_event_to_websockets + middleware finally block
- main: session quota not consumed until deal actually starts
- main: watchdog treats active_incident_id=None as transient, not deal-over
- main: score fields use `or 5` to handle None when coverage < 40
- v1: chat-triggered deals now start pipeline watchdog; HTTP 404 for deal-not-found
- memory_graph: async lock in record_attack_pattern; None uid guard for Firestore calls
- base_agent: queue drain uses get_nowait() + QueueEmpty instead of polling empty()
Engine / data fixes:
- diligence_engine: cliff-check now searches financials.red_flags + customer_revenue_breakdown
(not all of pitch_data) — fin_score for NovaPay restored to… Jun 20 17:56 fix: apply all 15 code-review findings across backend and frontend baljot07 +1: Claude Opus 4.8 Security:
- Sanitize uid in memory_graph base_path to block path traversal (#1)
- Remove _AUTH_DISABLED bypass from HMAC verify_uid_signature (#2)
- Scope uploaded pitch files to uid directory instead of shared data/ (#3)
- Require auth (get_uid) on all destructive REST endpoints (#4)
- Fix /api/reset guard to block anonymous callers when a session is active (#8)
- Remove compute_deal_snapshot cross-user __public__ fallback (#6/#7)
Correctness:
- Mirror Firestore delete in clear_chat_history (#5)
- Pass resolved uid (not None) to Firestore in delete_incident (#9)
- Replace threading.Lock with asyncio.Lock in async log_finding (#10)
- Add parentheses to fix and/or precedence in mention filter (#11)
- Fall back to current_incident_id ContextVar in real-Band event routing (#12)
Frontend:
- Block auto-restore race during deleteSession with isDeletingSessionRef (#13)
- Don't erase localStorage key when backend returns null on cold-start (#14)
- Clear __public__ localStorage keys on sign-o… 07:27 refactor: implement uid-scoped data isolation and security hardening across the stack Jun 19 20:28 fix: resolve simulation state bucket mismatch by setting incident context early 16:46 feat: per-user MCP isolation, remove limits for signed-in users, fix chat green baljot07 +1: Claude Sonnet 4.6 - MCP: fus_<uid> personal keys bypass all rate limits and auth gates; per-user
memory isolation propagated through middleware → sub-request chain
- Signed-in users: unlimited committee sessions (no cooldown, no weekly cap),
unlimited MCP calls, unlimited chat
- Anonymous limits: 14 committee sessions/week, 1,000 MCP calls/hr, 100 chat/hr
- Settings: VS Code / Cursor / Claude Code / Claude Desktop MCP config tabs,
personal key display, per-tier usage display (∞ vs counts)
- Chat UI: removed all green accent from chat box (avatar, thinking dots, send
button, mention popup, upload hover) — replaced with slate neutrals
- Removed voice/speech synthesis from verdict panel
- Debate, memory-match banner, and partial confidence bar during deliberation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> 08:23 fix: harden multi-user isolation, auth persistence, and data safety baljot07 +1: Claude Sonnet 4.6 Frontend:
- Firebase auth: explicit browserLocalPersistence so sessions survive browser close
- _app.tsx: single onAuthStateChanged listener with 8s timeout; exports AuthContext
- index.tsx: auth gate is now !isLoggedIn only — logged-in users always land in boardroom
- handleSignOut: clears chatSessions, activeSessionId, activeIncidentId, activeCompany
- ErrorBoundary: resetKey counter forces remount to break re-throw loop
- useAgentWebSocket: cancelled flag guards all setState after unmount; story feed built from real backend output
- AgentCard: fix invalid slate-350 token; fix plainEnglish ellipsis
- Clipboard writes awaited across SettingsView, IntegrationsView, DocsView
- _document.tsx: add charSet + viewport meta tags
Backend:
- base_agent.py: LangGraph thread_id is now name:uid:incident_id for per-user agent memory isolation
- main.py: /api/trigger-attack passes request; /api/reset enforces session ownership; trigger_deal sets current_uid ContextVar before background tasks
- v1.… 06:58 feat: implement request security isolation, rtdb paths cleanup, deal & session deletion, sidebar chat history, UI adjustments, and fix integration test race condition Jun 18 10:11 feat: add token-based authentication for report downloads and update decision parsing to support varied formatting 09:30 feat: increase document upload limit to 10MB and fix frontend compilation 09:13 feat: add support for FIREBASE_SERVICE_ACCOUNT_JSON 08:31 fix: re-pad FIREBASE_SERVICE_ACCOUNT_B64 before base64 decode baljot07 +1: Claude Sonnet 4.6 HF Spaces strips trailing '=' characters from secret values, which makes
base64.b64decode raise 'Incorrect padding'. Adding back the padding with
-len % 4 fixes the decode, allowing Firebase Admin to initialize correctly.
Without this, ALL auth token verification was silently failing and every
WebSocket connection landed as uid=__public__ — no user data was isolated
and RTDB received nothing.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> 08:26 fix: pass databaseURL to Firebase Admin + write presence on WS connect baljot07 +1: Claude Sonnet 4.6 - core/auth.py: initialize_app now includes databaseURL from env — without
this, all firebase_admin.db.reference() calls raised ValueError and RTDB
was silently disabled even when FIREBASE_DATABASE_URL was set.
- api/main.py: on WebSocket connect, upsert user profile and write a
session_connected activity so the Firebase Console shows live users
the moment they open the dashboard (not just on deal trigger).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Jun 17 05:26 feat: Firebase Google + Guest auth & per-user isolation