Spaces:
Paused
Paused
Commit History
-
fix: normalize naive DB datetimes to UTC-aware in personnel analytics
dushyantsingh0 +1: Claude Sonnet 4.6created_at and resolved_at come from the DB as offset-naive datetimes while datetime.now(timezone.utc) is offset-aware. Subtracting them raised TypeError. Wrap both with .replace(tzinfo=timezone.utc) when tzinfo is None before computing duration_mins. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>94afd06 -
chore: remove stale nexus_stream_task dead code and dead variable
dushyantsingh0 +1: Claude Sonnet 4.6- tasks/system.py: remove nexus_stream_task from HEAVY_TASKS, THROTTLE_EXCLUDED, and workspace_id Pattern D extraction — task is never enqueued since chat moved to direct async SSE - nexus_worker.py: update stale comment referencing old admission control - NexusMermaid.tsx: remove lastInitializedTheme module variable — it was only used as a guard that was removed; now just a dead write Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>aa34d3f -
refactor: replace ARQ+Redis stream with direct async SSE for Nexus chat
dushyantsingh0 +1: Claude Sonnet 4.6LangGraph/LLM work is pure async I/O, so running it directly in a FastAPI coroutine eliminates the ARQ enqueue hop, Redis Stream relay, and 50-300ms pickup lag. Browser disconnects now cancel the LangGraph coroutine via asyncio.CancelledError (no wasted LLM tokens). - nexus_stream.py: full rewrite — event_generator() runs astream_events() directly and yields SSE tokens; _persist_interaction fire-and-forget via safe_create_task after 'done' - tasks/nexus_ai.py: remove nexus_stream_task; keep _persist_interaction - core/tasks.py: drop nexus_stream_task re-export - nexus_worker.py: remove nexus_stream_task from imports and HeavyWorkerSettings Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>2e01964
-
backend
dushyantsingh05813b86 -
Optimize Nexus Hub: align workspace checks, fix worker backoff, frontend approval HUD, Mermaid validation & high-contrast theme variables, and simplify backend response handling
dushyantsingh00ae165b -
backend sprint
dushyantsingh05a41337
-
backend sprint
dushyantsingh0ecca730
-
Initial commit
dushyantsingh0aa510be -
Initial commit
dushyantsingh0d8744fd
-
backend stabilisation
dushyantsingh0eced686 -
fix: allowed superadmins to access cross-workspace attachments
dushyantsingh0558f1c4 -
fix: route ai tasks to heavy worker queue
dushyantsingh0baf85c2 -
backend stabilisation
dushyantsingh06bf2d17 -
backend stabilisation
dushyantsingh01aa7d27 -
backend stabilisation
dushyantsingh004b3d6d
-
backend stabilisation
dushyantsingh0f74e411 -
backend stabilisation
dushyantsingh09076bea -
backend stabilisation
dushyantsingh09377380
-
backend stabilisation
dushyantsingh0ada15f3 -
fix: apply critical markdown layout constraints and AI prompting guards
dushyantsingh01318488 -
fix: resolve fragmented markdown rendering and optimize code block density
dushyantsingh0cf3235b -
ui: fix assignee dropdown and add visual cues for editability
dushyantsingh0c52610e
-
backend stabilisation
dushyantsingh033a5449 -
Fix: follow-up messages silently dropped + Hydra UnboundLocalError in initializer
dushyantsingh0 +1: Claude Sonnet 4.6nexus_stream_task was being throttled by the same 120s dedup guard used for background batch jobs — entity_id is the thread_id, so the second message in any conversation was silently skipped for two minutes. Exclude interactive stream tasks from throttle via THROTTLE_EXCLUDED set. sync_ticket_context() imported get_ticket_details_tool inside the final async-with block but referenced it in an earlier branch. Python's scoping rules made it an UnboundLocalError whenever the early branch executed. Hoisted the import to the top of the function and removed the now-unnecessary async_session_factory wrapper around the plain tool call. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>6cc0dee
-
backend stabilisation
dushyantsingh0b04413b -
Fix: workspace_id popped from task_kwargs before reaching worker
dushyantsingh0 +1: Claude Sonnet 4.6enqueue_task() was moving workspace_id into metadata_json via .pop(), so the actual ARQ job never received it. generate_nightly_personnel_analytics called without workspace_id hit the cron lock guard and was skipped every time the manual REGENERATE OPINIONS button was clicked. Change pop → copy so the kwarg reaches the task function, and update the log message to display the effective entity so it doesn't say "for none". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>774e02c -
Improve AI performance narrative: tier badges, insight-driven prompts
dushyantsingh0 +1: Claude Sonnet 4.6- Add _compute_tier() to classify agents as TOP/STRONG/STEADY/AT_RISK/CRITICAL based on SLA compliance and resolved-ticket thresholds - Store tier in activity_summary JSON for frontend consumption - Rewrite LLM prompt: produces a single insight sentence focused on implication rather than repeating numbers already visible in adjacent table columns; bans repetitive openers like "Over the past 30 days, the staff member..." - Frontend: replace sparkle+plain-text narrative cell with color-coded tier badge + insight text in a column layout - Add TIER_CONFIG map and getSlaColor() helper (3-tier: green/amber/red) - Add .tierBadge, .narrativeText, .narrativeCellTd CSS classes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>548b54e -
backend stabilisation
dushyantsingh0ed4917c
-
fix job synchronization and worker lab UI
dushyantsingh0e343b22 -
backend stabilization
dushyantsingh01c7bba3 -
backend stabilization
dushyantsingh047835df
-
fix: align background analytics with API logic to prevent AI hallucinations
dushyantsingh06cdfafa -
fix: enable real-time synchronization for personnel analytics
dushyantsingh007b09f1 -
fix: resolve NameError in personnel analytics task
dushyantsingh0fb01f3e -
fix: correctly route heavy tasks to arq:heavy queue
dushyantsingh0ef24f33 -
feat: leadership-driven personnel AI narrative refresh with 24h throttle
dushyantsingh01e6a00d -
Merge branch 'claude/heuristic-grothendieck-4ee85e'
dushyantsingh04dd0b8a -
backend stabilization
dushyantsingh0f2e2626 -
fix pdf crash on unicode chars from llm output
dushyantsingh0 +1: Claude Sonnet 4.6Add _s() sanitizer that translates em-dashes, smart quotes, ellipsis and other common LLM Unicode chars to Latin-1 equivalents before any text reaches fpdf2's helvetica renderer (which is Latin-1 only). Apply _s() to: report title, executive summary, section titles, section content, highlights, roadmap items, analytical insight, and recent ticket titles in the signals table. Fixes: FPDFUnicodeEncodingException on em-dash in report title. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>d6c6633 -
enterprise pptx/pdf report overhaul with role-aware content
dushyantsingh0 +1: Claude Sonnet 4.6Complete rewrite of generate_enterprise_pptx and generate_enterprise_pdf in tasks/stories.py for production-grade visual output. PPTX (10+ slides, was ~5): - Title slide: dark navy + brand identity panel + KPI strip - TOC slide with numbered section descriptions - KPI Dashboard: 6 color-coded metric cards (CSAT, resolution time, velocity, priority counts, resolution rate) - Status Distribution: native PPTX column chart + breakdown panel - 30-Day Trends: 3 native line charts (velocity / CSAT / resolution hours) - Priority Analysis: native column chart + color-coded progress bars - Role-specific section slides: content + highlights panel layout - Strategic Roadmap: phase cards with arrow connectors - Signals Audit: color-coded table (status/priority highlighted) - Consistent footer with slide numbers on every slide PDF improvements: - KPI strip on title page and KPI row on executive summary - Bar charts: gridlines, drop-shadow, value labels above bars - Line charts: gridlines, y-axis…f2cc4e3 -
backend stabilization
dushyantsingh07b2ff9f -
backend stabilization
dushyantsingh08a37e38 -
backend stabilization
dushyantsingh0889b8e0 -
backend stabilization
dushyantsingh08856a77 -
backend stabilization
dushyantsingh0403ca47 -
backend stabilization
dushyantsingh0543a057 -
backend stabilization
dushyantsingh0882becf -
backend stabilization
dushyantsingh08391be8 -
backend stabilization
dushyantsingh04fa956a
-
fix: stabilize analytics sla and insight json parsing
dushyantsingh079f9ffd