Link agents to CMPA company, route CEO wakeup per-company
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 8s
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 8s
Created 7 agents in CMPA (betterment levy) company, mirroring the CMP agents with same config and hierarchy. CEO_AGENTS dict maps company_id to the correct CEO for wakeup routing. wake_ceo_agent and post_comment now resolve the correct CEO based on company_id. create_workflow_issue returns company_id. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2200,7 +2200,7 @@ async def api_start_workflow(case_number: str):
|
||||
|
||||
# 3. Wake the CEO agent
|
||||
try:
|
||||
wakeup = await pc_wake_ceo(issue["issue_id"], case_number)
|
||||
wakeup = await pc_wake_ceo(issue["issue_id"], case_number, issue.get("company_id", ""))
|
||||
except Exception as e:
|
||||
logger.warning("CEO wakeup failed for case %s: %s", case_number, e)
|
||||
wakeup = {"error": str(e)}
|
||||
|
||||
Reference in New Issue
Block a user