mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 17:05:56 +03:00
[PR #357] [MERGED] Add pillar coverage guardrails to today workflow generation #327
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#327
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/357
Author: @AJaySi
Created: 3/1/2026
Status: ✅ Merged
Merged: 3/1/2026
Merged by: @AJaySi
Base:
main← Head:codex/enhance-agent-plan-for-pillar-coverage📝 Commits (1)
e7935afAdd pillar coverage guardrails for today workflow plans📊 Changes
2 files changed (+229 additions, -4 deletions)
View changed files
📝
backend/services/today_workflow_service.py(+124 -4)➕
backend/tests/test_today_workflow_pillar_coverage.py(+105 -0)📄 Description
Motivation
workflow_config.Description
backend/services/today_workflow_service.py:_is_coverage_guardrail_enabled,_sanitize_task,_build_single_task_for_missing_pillar, and_ensure_pillar_coverageto normalize tasks, check config flags, attempt LLM backfills for missing pillars, and fall back to controlled tasks when LLM generation fails.generate_agent_enhanced_planafter committee dedupe (preserving committee tasks) and after the LLM/fallback branch so the final output consistently covers allPILLAR_IDSwhen guardrails are enabled.OnboardingDataIntegrationServiceintobuild_grounding_context) to avoid heavy import-time side effects during tests.backend/tests/test_today_workflow_pillar_coverage.pyvalidating full-committee coverage, partial-committee backfill behavior, and the full fallback path (committee empty + LLM failure) while ensuring agent tasks are preserved.Testing
PYTHONPATH=/workspace/ALwrity/backend pytest -q backend/tests/test_today_workflow_pillar_coverage.pyand all tests passed (3 passed).pytestrun failed due to an import-time spaCy model dependency, which was resolved by deferring the onboarding import into function scope and re-running tests.3 passed(no failing tests remain for the added test file).Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.