mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-26 09:25:55 +03:00
[PR #361] [MERGED] Add structured warning logs for task memory and semantic fallback paths #663
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#663
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/361
Author: @AJaySi
Created: 3/2/2026
Status: ✅ Merged
Merged: 3/2/2026
Merged by: @AJaySi
Base:
main← Head:codex/enhance-logging-in-workflow-and-services📝 Commits (1)
9d34753Add structured warning logs for memory and semantic fallback paths📊 Changes
3 files changed (+56 additions, -8 deletions)
View changed files
📝
backend/api/today_workflow.py(+8 -1)📝
backend/services/intelligence/monitoring/semantic_dashboard.py(+27 -5)📝
backend/services/task_memory_service.py(+21 -2)📄 Description
Motivation
Description
backend/api/today_workflow.pyreplace the silentexceptin task outcome recording with a structuredlogger.warningthat includesuser_id,task_id, exception class, and exception message.backend/services/task_memory_service.pyadd an in-memory metrics store (_metrics_counters) and_increment_metrichelper, and replace the broad silentexceptin the semantic-filter path with increments ofsemantic_filter_failuresandsemantic_filter_degraded_path_takenplus alogger.warningthat includesuser_id, proposal title, exception class, and message.backend/services/intelligence/monitoring/semantic_dashboard.pyremove placeholder no-op branches and add consistentlogger.warningmessages for skipped/degraded insight-generation branches (missing agent capability, missing dashboard context, or emptyai_insights), and replace a silent alert-persistence failure with a structured warning including error class/message.Testing
python -m py_compile backend/api/today_workflow.py backend/services/task_memory_service.py backend/services/intelligence/monitoring/semantic_dashboard.pyand compilation completed successfully.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.