Operations & Runbooks¶
Operational procedures for the process workflow and worker.
Worker lifecycle¶
- Start:
uv run python -m agentsflow.worker --task-queue process-workflow - Stop:
Ctrl+C(returns 130). Restart after config changes or upgrades so Temporal reloads activities. - Logs: stdout/stderr; increase verbosity with
AGENTSFLOW_LOG_LEVEL=DEBUG.
Responding to clarifications¶
- When a run pauses for clarification, the CLI exits with status 2 and prints questions/assumptions.
- Provide answers via the MCP tool
provide_agentsflow_clarificationor a Temporal signal namedprovide_clarification(args: lists of answers and assumptions). - Re-run
await_agentsflow_result([workflow_id])(returns after the first workflow finishes/pauses; call again for others) or watch Temporal UI until the run resumes.
Provider and auth issues¶
- Jira: ensure
JIRA_EMAIL/JIRA_API_TOKENare set and the issue host matchesatlassian.net, containsjira, or is inJIRA_HOST_ALLOWLIST. - GitHub: set
GITHUB_TOKENfor private repos and to avoid anonymous rate limits. - Timeouts: adjust
JIRA_TIMEOUT_SECONDSorGITHUB_TIMEOUT_SECONDSwhen API latency is high.
ACP agent troubleshooting¶
- Missing binaries raise
FileNotFoundError; setACP_CLAUDE_BIN,ACP_GEMINI_BIN, orACP_CODEX_BINor place the binaries onPATH. - Disable auto-approval by exporting
ACP_AUTO_APPROVE=falseto require interactive confirmations in ACP sessions.
Git hygiene¶
- Worktrees are cleaned up after
finalize_git_changes, but interrupted runs may leavetemporal-worktree-*directories. Remove them manually when safe. - Commit and push errors are surfaced as workflow failures; rerun once repository permissions or remotes are fixed.
Health checks¶
- Temporal Web UI (port 8233 in Docker Compose) shows workflow status, queries, and history.
temporal workflow list --namespace <ns>confirms the worker is polling the expected task queue.- Automated verification:
uv run --extra dev pytest -k process_workflowexercises the workflow entrypoints.