mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #356] [MERGED] Enable Phase‑3 task‑memory filtering and implement semantic suppression in TaskMemoryService #322
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#322
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/356
Author: @AJaySi
Created: 3/1/2026
Status: ✅ Merged
Merged: 3/1/2026
Merged by: @AJaySi
Base:
main← Head:codex/enable-phase-3-call-and-fix-async-usage📝 Commits (1)
e2718e3Enable phase-3 task memory filtering and add coverage📊 Changes
3 files changed (+147 additions, -14 deletions)
View changed files
📝
backend/services/task_memory_service.py(+45 -12)📝
backend/services/today_workflow_service.py(+1 -2)➕
backend/test/test_task_memory_service.py(+101 -0)📄 Description
Motivation
Description
generate_agent_enhanced_planto pass deduped proposals throughTaskMemoryService.filter_redundant_proposalsfor memory-based filtering.await self.intelligence.search(...)) and add clear constantsEXACT_DUPLICATE_LOOKBACK_DAYS,SEMANTIC_SUPPRESSION_SCORE_THRESHOLD, andSUPPRESSED_STATUSESfor tuning._extract_indexed_status) and then falls back to aTaskHistorylookup byvector_idwhen needed, while preserving exact-hash filtering._extract_indexed_statusto extract status from txtai search result metadata and use it to suppress proposals when status isdismissedorrejected.Testing
backend/test/test_task_memory_service.pycovering exact-hash suppression, semantic suppression viavector_idlookup, and non‑duplicate pass-through.PYTHONPATH=backend pytest -q backend/test/test_task_memory_service.pyand all tests passed (3 passed).Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.