feat(workflow): approve a PRD as one structured document
The prd step returns the PRD as structured fields and human.approve takes them as its document. The plan text every surface reads and the approval card's layout are both rendered from that one document, so what the human approves is what the implement workflow is handed. Replaces the separately generated OpenUI view, which could drift from the plan.
This commit is contained in:
1 parent
7a03e003a1
commit
d699b9afba
37 files changed
+509
-1021
No files matched your search
@@ -42,7 +42,7 @@ SELECT * FROM tasks WHERE owner = sqlc.arg(owner) AND repo = sqlc.arg(repo) AND
|
||||
-- answers"), and the round count is the cap's visible half.
|
||||
SELECT id, owner, repo, issue_number, title, status, workflow,
|
||||
pr_number, tokens_used, iterations, attempt, park_reason, retry_count,
|
||||
created_at, updated_at, plan, plan_view, source, identity, binding_id, binding_version,
|
||||
created_at, updated_at, plan, plan_document, source, identity, binding_id, binding_version,
|
||||
outputs, review_gate, rereview_rounds
|
||||
FROM tasks
|
||||
WHERE (sqlc.narg(scope_org)::text IS NULL OR org_id = sqlc.narg(scope_org))
|
||||
@@ -129,7 +129,7 @@ WHERE tasks.id = @id;
|
||||
-- name: UpdateTask :exec
|
||||
-- An update without a definition keeps the stored pin: a task's own
|
||||
-- credential sends none, so it cannot replace the definition it runs.
|
||||
UPDATE tasks SET workflow = @workflow, branch = @branch, plan = @plan, plan_view = @plan_view, notes = @notes,
|
||||
UPDATE tasks SET workflow = @workflow, branch = @branch, plan = @plan, plan_document = @plan_document, notes = @notes,
|
||||
pr_number = @pr_number, tokens_used = @tokens_used, iterations = @iterations, park_reason = @park_reason,
|
||||
watch_comment_id = @watch_comment_id, retry_count = @retry_count, remediation_rounds = @remediation_rounds,
|
||||
review_payload = @review_payload,
|
||||
|
||||
Reference in new issue
Block a user