mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 17:05:56 +03:00
[PR #391] [MERGED] Add provenance-based plan quality metrics and classification to Today Workflow #695
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#695
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/391
Author: @AJaySi
Created: 3/6/2026
Status: ✅ Merged
Merged: 3/8/2026
Merged by: @AJaySi
Base:
main← Head:codex/add-second-quality-dimension-to-plans📝 Commits (1)
84babd0Add workflow provenance quality metrics and classification📊 Changes
2 files changed (+97 additions, -1 deletions)
View changed files
📝
backend/api/today_workflow.py(+4 -0)📝
backend/services/today_workflow_service.py(+93 -1)📄 Description
Motivation
/api/today-workflowresponse to enable transparency and threshold-based classification.Description
today_workflow_service.pyand ensure each task'smetadata.provenanceis one ofagent_proposal,llm_backfill, orcontrolled_fallbackvia_sanitize_taskand backfill paths._compute_plan_qualityto aggregate metrics (agent-origin ratio/percent, agent-origin task count, number of pillars with agent-origin tasks, fallback ratio/count/percent, total task count) and classification logic that usesworkflow_config.min_agent_origin_ratiowith a default of0.35to return eitherAI-personalizedorguided baseline.qualityblock onto generated plan payloads (generate_agent_enhanced_plan) soplan_jsonpersisted on creation contains the quality metrics.plan_json.qualityinget_or_create_daily_workflow_planto avoid API inconsistencies.data.plan.qualityto the/api/today-workflowresponse (readsplan.plan_json.quality).Testing
python -m py_compile backend/services/today_workflow_service.py backend/api/today_workflow.pyand the check succeeded.git commit) for the two modified files:backend/services/today_workflow_service.pyandbackend/api/today_workflow.py.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.