mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 17:05:56 +03:00
[PR #389] [MERGED] Add committee health precheck and orchestrator init state metadata #694
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#694
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/389
Author: @AJaySi
Created: 3/6/2026
Status: ✅ Merged
Merged: 3/8/2026
Merged by: @AJaySi
Base:
main← Head:codex/add-pre-check-for-committee-health-in-workflow📝 Commits (1)
15a9eaaAdd committee health precheck and orchestrator init state metadata📊 Changes
2 files changed (+204 additions, -71 deletions)
View changed files
📝
backend/services/intelligence/agents/agent_orchestrator.py(+20 -0)📝
backend/services/today_workflow_service.py(+184 -71)📄 Description
Motivation
Description
onboarding_gated_initializationandinitialization_state(includingactive_agent_countand sortedactive_agent_keys) toALwrityAgentOrchestratorinstances inAgentOrchestrationService.get_or_create_orchestratorso callers can branch intentionally when initialization was gated by onboarding or similar system checks.generate_agent_enhanced_planintroduced a committee health pre-check that computesactive_agent_namesandactive_agents_count, compares against a configurable minimum (min_active_agents = 2), and marks generation as degraded when below the threshold.committee_healthactivity event viaAgentActivityServicewith payload metadata including missing agents, onboarding-gated init flag, and orchestrator initialization state.metadata.generation_pathvalues (committee,llm_fallback, orcontrolled_fallback) and acommitteeblock with context anddegradedmetadata to clearly communicate how the plan was produced.Testing
python -m compileall backend/services/today_workflow_service.py backend/services/intelligence/agents/agent_orchestrator.pyand the files compiled successfully.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.