Send to Review: integrate agent work into live branch

t-694.7·WorkTask·
·
·
·Omni/Agents/Web.hs
Parent:t-694·Created1 month ago·Updated1 month ago·pipeline runs →

Description

Edit

Add a "Send to Review" action that hands off completed interactive agent work to the existing Pipeline integration flow.

Flow

1. User clicks "Send to Review" on an agent that has committed work in its worktree 2. Web UI verifies the worktree has commits ahead of live branch 3. Triggers the Pipeline verify + integrate flow:

  • Run bild <namespace> to verify the build
  • If passes, cherry-pick into live via Omni.Pipeline.Integrate

4. Show integration status on the agent detail page

Implementation Options

A. Direct: Import Omni.Pipeline.Verify and Omni.Pipeline.Integrate and call them directly from the web handler. This is the cleanest but couples the web module to pipeline internals. B. Via task system: Create/update a task to "Review" status and let the pipeline pick it up. This is more decoupled but requires the pipeline to be running. C. Shell out: Run the verify/integrate steps as shell commands. Simple but fragile.

Recommend option A for now — direct integration. The pipeline modules are already well-factored.

UI

  • Button on agent detail page: "Send to Review" (only shown when agent has commits and is idle/completed)
  • Confirmation dialog or just do it
  • Show result: "Integrated at commit abc123" or "Build failed: ..."
  • If integration fails, show the error and allow retrying after fixes

Prerequisites

  • Agent must have a worktree with commits on a branch
  • Agent should be idle or completed (not actively running)

Timeline (0)

No activity yet.