diff --git a/task-templates/workflow/airouter-impl-narrow@1.yaml b/task-templates/workflow/airouter-impl-narrow@1.yaml index fbe280d..18e776f 100644 --- a/task-templates/workflow/airouter-impl-narrow@1.yaml +++ b/task-templates/workflow/airouter-impl-narrow@1.yaml @@ -17,6 +17,13 @@ nodes: - id: agent kind: agent template: code-airouter-tdd-repo + runtime_env: + # WF-COMP-15: stage agents share one per-item work branch so their work + # accumulates (test-write -> scaffold -> impl -> integrate -> merge all + # see the same tree). Without AGENT_REPO_URL the agent-repo layer never + # clones and the agent's output evaporates (E2E 2026-07-04). + AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git" + AGENT_BRANCH: "task/${item.uuid}" prompt: "Implement the failing test. Test file: ${artifacts.test_file}. Skeleton: ${artifacts.impl_skeleton}." escalation: fixture_broken: fix-test-fixture-sonnet diff --git a/task-templates/workflow/airouter-impl-ready@1.yaml b/task-templates/workflow/airouter-impl-ready@1.yaml index 415cdad..4adb248 100644 --- a/task-templates/workflow/airouter-impl-ready@1.yaml +++ b/task-templates/workflow/airouter-impl-ready@1.yaml @@ -17,6 +17,13 @@ nodes: - id: agent kind: agent template: code-airouter-tdd-repo + runtime_env: + # WF-COMP-15: stage agents share one per-item work branch so their work + # accumulates (test-write -> scaffold -> impl -> integrate -> merge all + # see the same tree). Without AGENT_REPO_URL the agent-repo layer never + # clones and the agent's output evaporates (E2E 2026-07-04). + AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git" + AGENT_BRANCH: "task/${item.uuid}" labels: [airouter] prompt: "Implement the failing test. Test files: ${metadata.automation.test_files}. Spec IDs: ${metadata.automation.spec_ids}." escalation: diff --git a/task-templates/workflow/integration@1.yaml b/task-templates/workflow/integration@1.yaml index 0a1ca01..2e4106f 100644 --- a/task-templates/workflow/integration@1.yaml +++ b/task-templates/workflow/integration@1.yaml @@ -16,6 +16,13 @@ nodes: - id: agent kind: agent template: integration-direct + runtime_env: + # WF-COMP-15: stage agents share one per-item work branch so their work + # accumulates (test-write -> scaffold -> impl -> integrate -> merge all + # see the same tree). Without AGENT_REPO_URL the agent-repo layer never + # clones and the agent's output evaporates (E2E 2026-07-04). + AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git" + AGENT_BRANCH: "task/${item.uuid}" prompt: | You are the integration gate for this work item. diff --git a/task-templates/workflow/merge@1.yaml b/task-templates/workflow/merge@1.yaml index e50a849..aace22a 100644 --- a/task-templates/workflow/merge@1.yaml +++ b/task-templates/workflow/merge@1.yaml @@ -19,7 +19,7 @@ nodes: model: sonnet runtime_env: AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git" - AGENT_BRANCH: "spec/auto-draft" + AGENT_BRANCH: "task/${item.uuid}" AGENT_SKIP_BRANCH_PUSH: "true" AGENT_EMPTY_DELIVERABLE_CHECK: "false" prompt: "Review the implementation for '${item.title}' (project: ${item.project_id}). Write a concise merge checklist to /workspace/.agent-output/merge-checklist.md covering: (1) tests pass, (2) scope matches spec, (3) no regressions. End with MERGE_READY or NEEDS_REWORK." diff --git a/task-templates/workflow/scaffold@1.yaml b/task-templates/workflow/scaffold@1.yaml index b4ee9fb..0bbff15 100644 --- a/task-templates/workflow/scaffold@1.yaml +++ b/task-templates/workflow/scaffold@1.yaml @@ -16,6 +16,13 @@ nodes: - id: agent kind: agent template: scaffolding-repo + runtime_env: + # WF-COMP-15: stage agents share one per-item work branch so their work + # accumulates (test-write -> scaffold -> impl -> integrate -> merge all + # see the same tree). Without AGENT_REPO_URL the agent-repo layer never + # clones and the agent's output evaporates (E2E 2026-07-04). + AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git" + AGENT_BRANCH: "task/${item.uuid}" prompt: | Write stub implementations for the following task. diff --git a/task-templates/workflow/sonnet-impl-narrow@1.yaml b/task-templates/workflow/sonnet-impl-narrow@1.yaml index c218a71..e142951 100644 --- a/task-templates/workflow/sonnet-impl-narrow@1.yaml +++ b/task-templates/workflow/sonnet-impl-narrow@1.yaml @@ -16,6 +16,13 @@ nodes: - id: agent kind: agent template: code-sonnet-tdd-repo + runtime_env: + # WF-COMP-15: stage agents share one per-item work branch so their work + # accumulates (test-write -> scaffold -> impl -> integrate -> merge all + # see the same tree). Without AGENT_REPO_URL the agent-repo layer never + # clones and the agent's output evaporates (E2E 2026-07-04). + AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git" + AGENT_BRANCH: "task/${item.uuid}" prompt: "Implement the failing test. Test file: ${artifacts.test_file}. Skeleton: ${artifacts.impl_skeleton}." escalation: scope_exceeded: replan-spec-opus diff --git a/task-templates/workflow/sonnet-impl-ready@1.yaml b/task-templates/workflow/sonnet-impl-ready@1.yaml index 986e904..49c6d84 100644 --- a/task-templates/workflow/sonnet-impl-ready@1.yaml +++ b/task-templates/workflow/sonnet-impl-ready@1.yaml @@ -16,4 +16,11 @@ nodes: - id: agent kind: agent template: code-sonnet-tdd-repo + runtime_env: + # WF-COMP-15: stage agents share one per-item work branch so their work + # accumulates (test-write -> scaffold -> impl -> integrate -> merge all + # see the same tree). Without AGENT_REPO_URL the agent-repo layer never + # clones and the agent's output evaporates (E2E 2026-07-04). + AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git" + AGENT_BRANCH: "task/${item.uuid}" prompt: "Implement the task. ${metadata.automation.test_files}${metadata.automation.spec_ids}Task description: ${artifacts.item_title}. ${artifacts.item_body}" diff --git a/task-templates/workflow/test-write-minimax@2.yaml b/task-templates/workflow/test-write-minimax@2.yaml index 62a5110..8f0f223 100644 --- a/task-templates/workflow/test-write-minimax@2.yaml +++ b/task-templates/workflow/test-write-minimax@2.yaml @@ -15,4 +15,11 @@ scope_budget: nodes: - id: agent kind: agent - template: minimax-test-writer \ No newline at end of file + template: minimax-test-writer + runtime_env: + # WF-COMP-15: stage agents share one per-item work branch so their work + # accumulates (test-write -> scaffold -> impl -> integrate -> merge all + # see the same tree). Without AGENT_REPO_URL the agent-repo layer never + # clones and the agent's output evaporates (E2E 2026-07-04). + AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git" + AGENT_BRANCH: "task/${item.uuid}" \ No newline at end of file diff --git a/task-templates/workflow/test-write@1.yaml b/task-templates/workflow/test-write@1.yaml index 283a73b..d5dd2ea 100644 --- a/task-templates/workflow/test-write@1.yaml +++ b/task-templates/workflow/test-write@1.yaml @@ -16,6 +16,13 @@ nodes: - id: agent kind: agent template: test-writing-repo + runtime_env: + # WF-COMP-15: stage agents share one per-item work branch so their work + # accumulates (test-write -> scaffold -> impl -> integrate -> merge all + # see the same tree). Without AGENT_REPO_URL the agent-repo layer never + # clones and the agent's output evaporates (E2E 2026-07-04). + AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git" + AGENT_BRANCH: "task/${item.uuid}" prompt: | You are writing pytest tests for the following task.