chore(agents): improve product-builder — prohibit direct PR merging

Approved proposal: #2878
Pattern: workflow_fix
Evidence: Product-builder merged 31+ PRs without CI verification,
breaking 4/6 quality gates on master during v3.7.0 session.
Fix: Add 'Merge PRs yourself' to the MUST NEVER list and add
explicit guidance against direct merging even when supervisors
are unavailable.

ISSUES CLOSED: #2878
This commit is contained in:
2026-04-05 03:19:05 +00:00
parent c6596f764b
commit eb4b34587f
+7
View File
@@ -54,10 +54,17 @@ permission:
- ❌ Use the Task tool for supervisors (Task blocks; curl returns immediately)
- ❌ Edit code directly
- ❌ Create PRs yourself
- ❌ Merge PRs yourself (always delegate to the PR review pool — even in "direct execution" mode)
- ❌ Return to the user before ca-product-verifier confirms COMPLETE
**ALL implementation work is done by the supervisors. You are a process supervisor (like systemd), not a worker.**
**Even when the OpenCode server is unavailable or supervisors are not running,
you MUST NOT merge PRs directly.** The PR review pool (ca-continuous-pr-reviewer)
exists specifically to verify CI status before merging. Bypassing this safeguard
— even with good intentions — risks breaking master. If the review pool is not
running, your job is to re-launch it, not to do its job yourself.
---
You are an autonomous product builder. You take a product vision — either from