mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-26 01:15:52 +03:00
[PR #388] [MERGED] Add provenance fields to daily workflows and surface provenance in API/UI #692
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#692
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/388
Author: @AJaySi
Created: 3/6/2026
Status: ✅ Merged
Merged: 3/8/2026
Merged by: @AJaySi
Base:
main← Head:codex/improve-provenance-modeling-across-workflows📝 Commits (1)
81b2989Improve daily workflow provenance modeling and UI labels📊 Changes
6 files changed (+87 additions, -4 deletions)
View changed files
📝
backend/api/today_workflow.py(+22 -0)📝
backend/models/daily_workflow_models.py(+3 -0)📝
backend/services/today_workflow_service.py(+29 -4)📝
frontend/src/components/MainDashboard/components/WorkflowProgressBar.tsx(+19 -0)📝
frontend/src/stores/workflowStore.ts(+4 -0)📝
frontend/src/types/workflow.ts(+10 -0)📄 Description
Motivation
metadata.sourceis strict and normalized so downstream systems can reliably interpret provenance.Description
generation_mode,committee_agent_count, andfallback_usedinbackend/models/daily_workflow_models.pyand persisted those values when creating a plan.agent_committee,llm_generation,llm_pillar_backfill,controlled_fallback) and_normalize_task_metadatato enforcemetadata.sourceinbackend/services/today_workflow_service.py, plus stamped committee tasks withsource = "agent_committee"and included aprovenanceblock in generated plan payloads._build_provenance_summaryand included plan-level provenance fields andprovenanceSummaryin the/api/today-workflowresponse inbackend/api/today_workflow.py.frontend/src/types/workflow.ts, populatedprovenanceSummaryin the store (frontend/src/stores/workflowStore.ts), and rendered a calibrated provenance label in the workflow progress UI (frontend/src/components/MainDashboard/components/WorkflowProgressBar.tsx) with labels like "Personalized by Agents", "AI Personalized Guide", and "Baseline Daily Guide".Testing
python -m py_compile backend/models/daily_workflow_models.py backend/services/today_workflow_service.py backend/api/today_workflow.py, which succeeded.npm --prefix frontend run build, which failed in this environment due toreact-scriptsnot being available.http://127.0.0.1:3000, which failed because the frontend server was not running (network/server availability, not code correctness).Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.