Fix server log warnings, conversation title persistence, and HyperNetX integration#19
Open
pformoso-deus-ai wants to merge 3 commits intomainfrom
Open
Fix server log warnings, conversation title persistence, and HyperNetX integration#19pformoso-deus-ai wants to merge 3 commits intomainfrom
pformoso-deus-ai wants to merge 3 commits intomainfrom
Conversation
- Initialize OpenSpec with Claude Code tooling (commands + skills) - Create hypernetx-integration change with full spec-driven workflow: proposal, design, 4 capability specs, and 30 implementation tasks - Capabilities: hypergraph-adapter, hypergraph-analytics, hypergraph-api, hypergraph-reasoning Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The auto-title pipeline had two strategies that both failed silently for non-medical conversations: intent-based topic extraction only matched 18 hardcoded terms, and the LLM fallback was unreachable when the first strategy produced no topic_hint. This left sessions stuck as "New Conversation" with no diagnostic logs. - Swap strategy order: LLM (gpt-4o-mini) is now primary, message-based fallback is secondary - Add _fallback_title_from_message() that strips greetings, title-cases, and truncates at word boundary (50 chars) - Add WARNING logs at every decision point (no messages, no user message, LLM error, empty response, persistence failure) - Log at startup when OPENAI_API_KEY is missing - Improve read-back verification log with expected vs actual title - Add 30s periodic refresh + visibility change listener to SessionList - Add 19 new tests (14 unit + 5 integration) covering all strategies and failure paths Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…lifespan
Address three deprecation/runtime warnings from server logs:
- Sanitize FalkorDB/Graphiti group_id format by replacing colons with dashes
and using -- as composite separator for patient/session IDs
- Replace all datetime.utcnow() calls with timezone-aware
datetime.now(timezone.utc) across 13 source files (40 occurrences)
- Migrate FastAPI @app.on_event("startup") to lifespan context manager
Also includes HyperNetX integration (hypergraph analytics service, adapter,
router, reasoning engine bridge) and archives completed OpenSpec changes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--as composite separator, fixing Graphiti validation failuresdatetime.now(timezone.utc)(Python 3.12+ deprecation)@app.on_event("startup")tolifespanasync context manager pattern (Starlette 0.26+ / FastAPI 0.93+)Test plan
🤖 Generated with Claude Code