| name | pg-task-orchestrator |
| description | Orchestrate PG delivery from planning to implementation by splitting tasks across BE/FE, managing handoff gates, executing staged implementation, running checks, and producing delivery summaries. Use when user asks PG to continue execution after task planning or to coordinate BE/FE implementation workflow. |
PG Task Orchestrator
Run this workflow to execute PG coordination and delivery end-to-end.
Workflow
- Load delivery context.
- Read
docs/tasks/*.md target plan.
- Read
docs/openapi.yaml, docs/schema/*.md, and docs/api/*.md.
- Apply built-in role boundaries:
- PG scope: planning, sequencing, dependency management, integration gate, and delivery summary.
- BE scope:
apps/api/** only, TDD-first, business-code-consistent API behavior.
- FE scope:
apps/web/** only, centralized API client, stable data-testid, business-code-based error mapping.
- QA scope: E2E scripts and QA report updates only.
- Confirm split ownership.
- Assign backend tasks to BE (
apps/api/**).
- Assign frontend tasks to FE (
apps/web/**).
- Keep PG as coordinator for sequencing, dependency management, and final integration gate.
- Keep design contract as immutable input unless user explicitly requests SD document updates.
- Execute by gates.
- Gate-A: BE completes contract-critical backend tasks (controller, validation, error mapping).
- Gate-B: BE completes backend integration checks and exposes API readiness notes.
- Gate-C: FE completes UI/client/data-testid implementation and frontend checks.
- Gate-D: PG verifies full checks and updates task status to delivery-complete.
- Enforce implementation rules.
- Follow TDD order for BE tasks: test first, then implementation.
- Use centralized API client on FE; avoid direct fetch/axios in UI components.
- Require business code based handling and stable
data-testid.
- Do not modify requirement/architecture/design docs unless user explicitly approves.
- Validate each stage.
- Backend: run Maven test/check commands and record outcomes.
- Frontend: run type-check/lint/e2e and record outcomes.
- If environment blockers appear (missing binary/network/port), report blocker and fallback path.
- Update delivery artifacts.
- Update
docs/tasks/{task-id}_{task_name}.md status and gate progress.
- Generate
docs/tasks/{task-id}_{task_name}-summary.md with completed scope, validations, blockers, and next actions.
Output Contract
When reporting progress or completion, include:
- Current gate status (A/B/C/D).
- What was implemented by BE and FE.
- Validation command results.
- Any blocker and exact remediation.
Reference
Use references/pg-delivery-checklist.md as the execution checklist.