Pipeline: implement comment-based agent-human communication

t-634·WorkTask·
·
·
Parent:t-642·Created11 hours ago·Updated10 hours ago

Description

Edit

Design and implement pipeline communication via task comments.

Current flow: pipeline spawns agent → agent works → commits → done/fail.

Desired flow: 1. Pipeline picks up ready task, reads description + comments 2. Agent reads context. If unclear, posts a comment with questions, sets status to NeedsHelp 3. Human answers via web UI comment 4. Pipeline detects answer, re-spawns agent with full comment history 5. Agent completes work, commits 6. Pipeline verifies, integrates, sets to Done (or Review for human final approval)

Implementation:

  • Dev.hs buildDevPrompt already includes task description. Ensure it includes ALL comments (it may already).
  • Add a new DevResult variant: DevNeedsInput Text — agent exited cleanly but posted a question comment instead of committing.
  • Pipeline sets status to NeedsHelp when agent needs input.
  • Pipeline skips NeedsHelp tasks until a new Human comment appears (check comment timestamps vs last agent run).
  • The dev workflow prompt (Omni/Ide/Workflows/dev.md) needs instructions: "If the task description is ambiguous or missing critical details, post a comment with your questions using task comment <id> 'your questions' --author agent:engineer --json and exit 0 without committing."

Key files: Omni/Pipeline.hs, Omni/Pipeline/Dev.hs, Omni/Pipeline/Core.hs, Omni/Ide/Workflows/dev.md

Timeline (9)

🔄[system]Open → InProgress11 hours ago
💬[system]10 hours ago

Pipeline: dev completed (run=dev-t-634-1771436546, cost=0.0c)

🔄[system]InProgress → Verified10 hours ago
💬[system]10 hours ago

Pipeline: verification skipped (No namespace set, skipping build verification), promoting

🔄[system]Verified → Done10 hours ago
💬[system]10 hours ago

Pipeline: integrated into live at 96d9eb0f5847ed4aebdb86365c4c5cad1d9e9286