feat(web): complete product workflow implementation
This commit is contained in:
@@ -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}
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user