{"spec_id":"coherence-network-agent-pipeline","title":"... 4 more in Requirements section below","summary":"The project currently requires manual orchestration to move ideas through the development pipeline — an operator must identify which opportunities are highest-ROI, create tasks, monitor execution, and advance idea stages. This spec defines a persistent background loop (\"agent pipeline\") that continuously selects the highest-ROI pending task candidate from the portfolio, generates and executes work via `local_runner.py`, and auto-advances ideas through lifecycle stages (none → specced → implement","potential_value":0.0,"actual_value":1.0,"estimated_cost":0.0,"actual_cost":1.0,"value_gap":0.0,"cost_gap":1.0,"estimated_roi":0.0,"actual_roi":1.0,"idea_id":"agent-pipeline","process_summary":"R1: A new `api/scripts/agent_pipeline.py` script implements a persistent background loop that polls the idea portfolio a; R2: Each poll cycle builds a pending-task candidate set from idea stages and ranks candidates by ROI score (coherence_sc; R3: For each selected idea, the pipeline determines the next required task type based on the idea's current stage: `none; R4: The pipeline creates an `AgentTask` via the agent API (`POST /api/agent/tasks`) with the idea's context, then delega; R5: On successful task completion, the pipeline calls the idea auto-advance endpoint (`POST /api/ideas/{idea_id}/advance","pseudocode_summary":null,"implementation_summary":"api/app/services/pipeline_service.py (pipeline orchestration); api/app/services/pipeline_pulse_service.py (compute_pulse()); api/app/services/pipeline_advance_service.py (auto-advance, auto-retry, escalation)","created_by_contributor_id":null,"updated_by_contributor_id":null,"created_at":"2026-04-09T03:10:08.851505Z","updated_at":"2026-04-09T03:10:08.851505Z","content_path":"specs/coherence-network-agent-pipeline.md","content_hash":"a2323b9fbd20ed4b","workspace_id":"coherence-network"}