Spaces:
Paused
Paused
Commit History
-
fix: responder deflects 'identical to original ticket'; rate limits on responder LLM
dushyantsingh0 +1: Claude Sonnet 4.6prompts.py — Rule 4: ban 'identical to original ticket' and similar lazy deflections; explicit directive to always present full ticket details when GET_TICKET_DETAILS returns data, regardless of conversation history. nexus_master.py — two changes: 1. Switch responder from use_fast_model=True (llama-3.1-8b-instant, 6k TPM shared with router) to get_llm() (llama-3.3-70b-versatile, separate TPM bucket). Router burns 8b-instant budget; responder was starved when tool output was large. 2. Hard-cap effective_tool_output at 4000 chars (~2500 tokens) with a trim note. SEARCH_TICKETS was returning 8584 chars which alone exceeded the 6k TPM limit, causing 429 → ollama failover. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>513c876 -
fix: router mis-routes 'my active tickets' to SUMMARIZE_WORKSPACE; responder deflects with no-data despite tool output
dushyantsingh0 +1: Claude Sonnet 4.6Router: strengthen SUMMARIZE_WORKSPACE exclusion to explicitly cover 'my tickets / my active tickets / my requests' queries (always SEARCH_TICKETS), and add two new few-shot examples to anchor the LLM. Responder Rule 2: flip the default — ALWAYS synthesize non-empty tool output before asking a clarifying question. Remove the old guard that only covered ticket-specific fields (workspace snapshot slipped through), replace with a hard rule: non-empty TOOL OUTPUT = present it, never open with a clarifying question. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e46996d
-
feat: pin tool steps to messages + robust mermaid multi-diagram rendering
dushyantsingh0 +1: Claude Sonnet 4.6- NexusContext: add _toolSteps to NexusMessage; on SSE done, snapshot completed tool steps into the assistant message before clearing live state - NexusHub + both NexusMasterAgent: render pinned tool pills (green) above message content when _toolSteps present on a completed message - NexusMarkdown: split multi-diagram mermaid blocks into separate renders so each chart renders independently instead of all failing together - NexusMermaid: strip trailing 'end' keyword, convert bracket-style xychart data ('0' [16] → bar [16, ...]), fix colon-style headers (title: X → title "X") for both xychart and pie charts - prompts.py: instruct both responders to put each diagram in its own separate mermaid block, no 'end' keyword, no colon-style headers Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>92c20b5 -
fix: delete thread drops paginated sessions, Groq 20s retry, empty response, invisible NX avatar
dushyantsingh0 +1: Claude Sonnet 4.6deleteThread: optimistic removal instead of fetchSessions() refetch — refetching only page 1 caused sessions loaded via scroll-pagination to disappear temporarily Groq LLM: max_retries=0 disables Groq's internal 20s exponential backoff so LazyFailoverChatModel immediately catches the rate-limit error and switches to the backup provider instead of stalling the response for 20+ seconds Responder prompt: replaced vague 'synthesize into briefing' + '2-4 sentences max' with explicit rule — response IS the delivery channel, never say 'I've provided', always present full ticket data inline with GFM tables. Length scales with data. NexusHub: fix invisible NX avatar in loading indicator (var(--primary-gradient) → var(--banner-gradient) which actually exists in the design tokens) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>53d8723 -
fix: resolve creator/assignee names and expose all ticket fields in tools
dushyantsingh0 +1: Claude Sonnet 4.6get_ticket_details_tool: - JOIN User table 3x (creator, assignee, resolver) — now answers 'who created/assigned this' - JOIN User on messages — shows sender names instead of raw UUIDs - JOIN User on audit events — shows actor names in activity history - Include: created_at, sla_deadline, expected_resolution_at, estimated_effort_hours, category, is_escalated, resolved_by — all fields an agent needs to answer basic questions - Staff sees creator email too; customers see only name search_tickets_tool: - JOIN assignee + creator — shows names in list results - Include created_at, sla_deadline, category per ticket row Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>76bd96a -
fix: CLARIFY misfires on explicit ticket IDs, add audit history to ticket details
dushyantsingh0 +1: Claude Sonnet 4.6- Router: add CLARIFY guard (never CLARIFY when ticket ID present or active ticket in context) - Router: add few-shot examples for 'activities/history/summary on ticket X' → GET_TICKET_DETAILS - Fast-track: new rule matching 'activities/history/timeline on ticket' → GET_TICKET_DETAILS with proper ticket_id extraction (not generic query arg) - get_ticket_details_tool: fetch AuditLog events and include as ACTIVITY HISTORY section so ticket history events (SLA breaches, escalations) are visible to the agent - Responder prompt: do not ask for 'more context' when tool output contains ticket details (empty conversation != empty data) - Graph cache key bumped nexus_v2 → nexus_v3 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1181145 -
backend
dushyantsingh0fee8487 -
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
dushyantsingh0d050df5
-
backend sprint
dushyantsingh077de24c -
backend sprint
dushyantsingh08f627ba -
backend sprint
dushyantsingh0ecca730
-
Initial commit
dushyantsingh0aa510be -
Initial commit
dushyantsingh058231d3 -
backend change
dushyantsingh0f6cdafe
-
security: hardened context isolation and enforced brevity for customer replies
dushyantsingh0e3f9f1f -
fix: standardized token retrieval in rich editor paste handler
dushyantsingh0fdc2199 -
backend stabilisation
dushyantsingh02720670 -
backend stabilisation
dushyantsingh07b7b4ef -
migrated to langgraph 0.3.0 and fixed serialization paradigm
dushyantsingh065c93f2 -
restored checkpointer stability
dushyantsingh0d3bd39d -
backend stabilisation
dushyantsingh06bf2d17 -
backend stabilisation
dushyantsingh0e190dbe
-
backend stabilisation
dushyantsingh0f74e411 -
backend stabilisation
dushyantsingh09076bea -
backend stabilisation
dushyantsingh09377380 -
backend stabilisation
dushyantsingh00bef0e6
-
backend stabilisation
dushyantsingh0ada15f3 -
feat: promote admins to full write authority and implement HITL bypass
dushyantsingh05208f30 -
fix: implement multi-layer markdown flattening and strict AI prompt guards
dushyantsingh0327eb16 -
ui: fix assignee dropdown and add visual cues for editability
dushyantsingh0c52610e -
feat: implement comprehensive reopen and retriage logic
dushyantsingh0f02bddf
-
backend stabilisation
dushyantsingh055be46c -
backend stabilisation
dushyantsingh0efe35f7 -
backend stabilisation
dushyantsingh0196743d -
backend stabilisation
dushyantsingh033d43ee -
backend stabilisation
dushyantsingh06372766 -
backend stabilisation
dushyantsingh0e68bd8d -
backend stabilisation
dushyantsingh0eb11b39 -
backend stabilisation
dushyantsingh0d01b52d -
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
-
Merge branch 'claude/clever-hellman-1570e3'
dushyantsingh09fbf47e -
Fix: responder re-surfacing previous turn data in follow-up answers
dushyantsingh0 +1: Claude Sonnet 4.6Added a FOCUS RULE to RESPONDER_SYSTEM_PROMPT_V1 instructing the LLM to: - Answer only the most recent user question using the current TOOL OUTPUT - Treat conversation history as context, not content to re-present - Produce fresh self-contained answers for follow-up queries (e.g. "try again") Root cause: the responder prompt said "synthesise tool data into a briefing" but never told the LLM to focus on the current question. With 10 messages of history in context (including previous ToolMessage data blobs), the LLM would blend old ticket lists into new answers — e.g. an SLA breach query would re-show the full ticket table from the prior summary query. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>59d17d0 -
backend stabilisation
dushyantsingh03e02241 -
Merge branch 'claude/clever-hellman-1570e3'
dushyantsingh0ee33c8e -
Fix: security gaps, silent failures, and validation holes found in codebase audit
dushyantsingh0 +1: Claude Sonnet 4.6- agents/nexus_master.py: Replace bare except: with except Exception: in router fallback to stop masking KeyboardInterrupt/SystemExit - core/cache.py: Log instead of silently swallow errors in invalidate_cache and delete_by_pattern; add 10s asyncio.wait_for timeout around both embedding calls in SemanticCacheManager (check_cache + set_cache) to prevent indefinite hangs - api/v1/nexus_stream.py: Add workspace-level rate limit (50 req/min customers, 200 req/min staff) on top of per-user limit to prevent coordinated flooding; add UserWorkspace.is_active==True filter in cross-workspace membership check so deactivated users cannot bypass the guard - api/v1/tickets.py: Clamp limit query param with Query(le=500) on list endpoint and Query(le=200) on paginated endpoint to prevent bulk data extraction; replace untyped payload: dict in reopen_ticket with typed TicketReopenRequest - schemas/ticket.py: Add TicketReopenRequest Pydantic model with max_length=2000 on reason field C…55ffd6d -
backend stabilisation
dushyantsingh09dfdacd -
backend stabilisation
dushyantsingh02ca66ce
-
backend stabilization
dushyantsingh00dcb0b7
-
Fix: job ID sync and worker health visibility
dushyantsingh08c5af7e