Auto-detect agent author via OMNI_AUTHOR env var

t-635·WorkTask·
·
·
Parent:t-642·Created11 hours ago·Updated11 hours ago

Description

Edit

When agents run via the pipeline, their task comment calls default to --author human because agents forget to pass --author agent:engineer.

Fix: auto-detect agent context via environment variable.

1. In Omni/Pipeline/Dev.hs spawnDev, set OMNI_AUTHOR=agent:engineer in the spawned process environment. 2. In Omni/Task.hs parseAuthor, check OMNI_AUTHOR env var as fallback when no --author flag is given:

  • If --author is explicitly passed, use it (existing behavior)
  • If not passed, check OMNI_AUTHOR env var
  • If neither, default to Human (existing behavior)

This way agents running inside the pipeline automatically get correct attribution without needing to remember the flag.

Key files: Omni/Task.hs (parseAuthor, doComment), Omni/Pipeline/Dev.hs (spawnDev) Namespace: Omni/Task.hs

Timeline (9)

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

Pipeline: dev completed (run=dev-t-635-1771436547, cost=0.0c)

🔄[system]InProgress → Verified11 hours ago
💬[system]11 hours ago

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

🔄[system]Verified → Done11 hours ago
💬[system]11 hours ago

Pipeline: integrated into live at 7c9a3425706574f27753c548295234632ac77165