feat(web): complete product workflow implementation
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-06 08:33:27 +08:00
parent 7e3f6da78b
commit 1184a51ddf
39 changed files with 3736 additions and 160 deletions

View File

@@ -187,6 +187,16 @@ def write_status(backlog: dict, status: str, **extra: object) -> None:
def prompt(task: dict) -> str:
backlog = read_json(BACKLOG)
queue_task = str(backlog.get("queueTask", "WBV2-P1420-001"))
attempt = int(task.get("attempts", 1))
retry_rules = ""
if attempt > 1:
retry_rules = f"""
Retry continuation (attempt {attempt}):
- A previous attempt may already have changed owned files. Treat those edits as the starting point; do not recreate or discard them.
- After the mandatory queue/print/check commands, use at most 2 additional read/search commands.
- Inspect only the exact unfinished edited regions, fix the remaining integration issue, and write the result JSON immediately.
- Do not repeat broad discovery, reread unchanged context, or polish unrelated code.
"""
return f"""Implement exactly one Web Blender product workflow task in {ROOT}.
Task: {task['id']} - {task['title']}
@@ -208,6 +218,7 @@ Rules:
- Do not commit or push. The outer unattended scheduler owns rotation and repository handoff.
- Finish the implementation in this turn. Do not stop at a plan.
- At the end write {task['resultPath']} as JSON with schemaVersion=1, task={task['id']!r}, status='implemented', changedFiles, and a concise summary.
{retry_rules}
"""