Creator App Tests / PR Spam Gate (push) Skipped
Frontend Tests / PR Spam Gate (push) Skipped
NPM Format (website & console) / PR Spam Gate (push) Skipped
Pre-commit Checks / PR Spam Gate (push) Skipped
QwenPaw Creator Plugin Release / check-version (push) Canceled after 0s
QwenPaw Creator Plugin Release / upload-oss (push) Canceled after 0s
Tests / PR Spam Gate (push) Skipped
CodeQL / CodeQL (python) (push) Canceled after 0s
CodeQL / CodeQL (typescript) (push) Canceled after 0s
Creator App Tests / Creator Backend Tests (push) Canceled after 0s
Creator App Tests / Creator UI Build & Tests (push) Canceled after 0s
E2E Smoke Tests / Playwright UI Smoke (push) Canceled after 0s
Frontend Tests / Detect console changes (push) Canceled after 0s
NPM Format (website & console) / website format check (push) Canceled after 0s
NPM Format (website & console) / console format check (push) Canceled after 0s
Pre-commit Checks / Pre-commit (push) Canceled after 0s
QwenPaw Data Plugin Release / check-version (push) Canceled after 0s
Tests / Detect code changes (push) Canceled after 0s
Frontend Tests / Vitest Unit Tests (push) Canceled after 0s
Frontend Tests / Frontend Summary (push) Canceled after 0s
QwenPaw Data Plugin Release / upload-oss (push) Canceled after 0s
Tests / Maintainer Approval (push) Canceled after 0s
Tests / Unit Tests - py3.11 - macos-latest (push) Canceled after 0s
Tests / Unit Tests - py3.11 - ubuntu-latest (push) Canceled after 0s
Tests / Unit Tests - py3.13 - ubuntu-latest (push) Canceled after 0s
Tests / Unit Tests - py3.11 - windows-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - macos-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - ubuntu-latest (push) Canceled after 0s
Tests / Contract Tests - py3.13 - ubuntu-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - windows-latest (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - fallback (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p2 (push) Canceled after 0s
Tests / Coverage Report (push) Canceled after 0s
Tests / Test Summary (push) Canceled after 0s
68 lines
1.8 KiB
Python
68 lines
1.8 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""Ultrawork continuation prompt templates."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
from ..shared.constants import ULTRAWORK_MAX_ITERATIONS
|
|
from ..shared.role_prompts import (
|
|
fork_merge_instructions,
|
|
format_batch_item,
|
|
tools_literal,
|
|
)
|
|
|
|
|
|
def build_continuation(
|
|
loop_dir: Path,
|
|
iteration: int = 0,
|
|
max_iterations: int = ULTRAWORK_MAX_ITERATIONS,
|
|
) -> str:
|
|
"""Build the controller prompt for the working phase."""
|
|
item1 = format_batch_item(
|
|
"executor",
|
|
"<sub-task 1>",
|
|
fork=True,
|
|
)
|
|
item2 = format_batch_item(
|
|
"executor",
|
|
"<sub-task 2>",
|
|
fork=True,
|
|
)
|
|
# Shown so controllers know the canonical tool list source.
|
|
executor_tools = tools_literal("executor")
|
|
tools_note = (
|
|
"omit allowed_tools (inherit all)"
|
|
if executor_tools is None
|
|
else f"allowed_tools={executor_tools}"
|
|
)
|
|
|
|
return f"""\
|
|
You are the Ultrawork parallel execution controller.
|
|
|
|
Current phase: working
|
|
Iteration: {iteration}/{max_iterations}
|
|
|
|
Use the omp-roles skill for role tool/skill config
|
|
(executor: {tools_note}).
|
|
|
|
Execute:
|
|
1. Analyze the task and decompose it into independent sub-tasks.
|
|
2. For each sub-task, determine whether it depends on other sub-tasks.
|
|
3. Use spawn_subagent batch mode to dispatch all
|
|
independent sub-tasks at once:
|
|
spawn_subagent(task="", batch=[
|
|
{item1},
|
|
{item2},
|
|
...
|
|
])
|
|
4. Use check_agent_task to poll each sub-task status
|
|
(wait >= 30s between polls).
|
|
5. Integrate forked worker results:
|
|
{fork_merge_instructions()}
|
|
6. After successful merges, update {loop_dir}/state.json:
|
|
set forks_integrated=true.
|
|
7. Summarize results.
|
|
8. Update {loop_dir}/state.json: set phase="done".
|
|
The gate rejects phase="done" until forks_integrated=true."""
|