Skip to content

Add main_orchestrator.py as background-runnable agent coordinator#158

Open
Copilot wants to merge 2 commits into
mainfrom
copilot/run-main-orchestrator-in-background
Open

Add main_orchestrator.py as background-runnable agent coordinator#158
Copilot wants to merge 2 commits into
mainfrom
copilot/run-main-orchestrator-in-background

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 9, 2026

No main_orchestrator.py existed, making nohup python3 main_orchestrator.py > agentes.log 2>&1 & impossible. This adds the missing entry point.

Changes

  • main_orchestrator.py — root-level orchestrator that sequences four subsystems in order: Peacock Core → Robert Engine → Sovereign Sale → Billing. Each step logs timestamped output to stdout (captured by nohup redirect). Exits 0 on full success, 1 on any agent failure.
  • tests/test_main_orchestrator.py — 13 unittest cases covering each agent function individually plus main() success/partial-error paths.

Usage

nohup python3 main_orchestrator.py > agentes.log 2>&1 &

Sample output in agentes.log:

[2026-04-09T04:23:15Z] [MAIN_ORCHESTRATOR] === V10-MAIN-ORCHESTRATOR — PCT/EP2025/067317 ===
[2026-04-09T04:23:15Z] [MAIN_ORCHESTRATOR] Starting agent sequence...
[2026-04-09T04:23:15Z] [PEACOCK_CORE] Latency budget: 25 ms
[2026-04-09T04:23:15Z] [PEACOCK_CORE] Forbidden-webhook guard active: True
[2026-04-09T04:23:15Z] [ROBERT_ENGINE] Status: OPERATIONAL
[2026-04-09T04:23:15Z] [ROBERT_ENGINE] Fit verdict: PERFECT_FIT | Score: 100.0
[2026-04-09T04:23:15Z] [SOVEREIGN_SALE] Status: SUCCESS | Commission: 600.0 €
[2026-04-09T04:23:15Z] [BILLING] Stripe key present: False
[2026-04-09T04:23:15Z] [MAIN_ORCHESTRATOR] All agents completed successfully.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tryonyou-app Ready Ready Preview, Comment Apr 9, 2026 4:26am
tryonyou-pilot Error Error Apr 9, 2026 4:26am

Request Review

Copilot AI changed the title [WIP] Run main orchestrator in background using nohup Add main_orchestrator.py as background-runnable agent coordinator Apr 9, 2026
Copilot AI requested a review from LVT-ENG April 9, 2026 04:26
@cursor cursor Bot deleted the copilot/run-main-orchestrator-in-background branch April 9, 2026 08:21
@LVT-ENG LVT-ENG force-pushed the main branch 2 times, most recently from 6ddd408 to 008228f Compare April 19, 2026 04:55
Copy link
Copy Markdown
Member

@LVT-ENG LVT-ENG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@LVT-ENG LVT-ENG marked this pull request as ready for review April 21, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants