Pipeline scheduler - task-to-agent orchestration

t-623·WorkTask·
·
·
·Omni/Pipeline.hs
Created2 days ago·Updated1 hour ago

Dependencies

Description

Edit

Omni/Pipeline becomes the orchestrator that connects tasks, fund, and agentd:

1. Periodically scans task ready per namespace/domain 2. Checks fund for available budget in that domain 3. If budget available → spawns agent via agentd, tagged with domain 4. Agent works tasks, cost accumulates against domain budget 5. Agent finishes → sets task to review status 6. Loop

This replaces ad-hoc agent spawning with a systematic scheduler. Each domain's agent only works tasks in its namespace, only if it has budget.

Dependencies: fund command (for budget checks), agentd domain tagging, task inbox/review workflow (t-608).

The pipeline should be independently runnable (cron, systemd timer, or long-lived process) and Ava can also trigger it manually.

Timeline (6)

🔄[system]Open → InProgress1 hour ago
💬[system]1 hour ago

Pipeline: dev completed (run=dev-t-623-1771469578, cost=0.0c)

🔄[system]InProgress → Open1 hour ago
💬[system]1 hour ago

Pipeline: verification failed: Build failed for Omni/Pipeline.hs (exit 1): bild: TERM: getEnv: does not exist (no environment variable)