feat(analysis): add check_analysis_approved QG with stakeholder approval requirement
- stages.py: QG renamed to check_analysis_approved (requires :approved: comment) - qg/checks.py: new check_analysis_approved verifies files + Plane :approved: comment - launcher.py: skip auto-advance for analysis stage (requires human approval) - plane.py: route check_analysis_approved in _try_advance_stage - docs/ARCHITECTURE.md: updated QG table and flow description
This commit is contained in:
@@ -24,7 +24,7 @@ Orchestrator — event-driven FastAPI сервис, который управл
|
||||
```
|
||||
STAGE_TRANSITIONS = {
|
||||
created: → analysis (agent: None)
|
||||
analysis: → architecture (agent: architect, QG: check_analysis_complete)
|
||||
analysis: → architecture (agent: architect, QG: check_analysis_approved)
|
||||
architecture: → development (agent: developer, QG: check_architecture_done)
|
||||
development: → review (agent: reviewer, QG: check_ci_green)
|
||||
review: → testing (agent: tester, QG: check_review_approved)
|
||||
@@ -37,7 +37,7 @@ STAGE_TRANSITIONS = {
|
||||
|
||||
| Check | Метод проверки |
|
||||
|-------|---------------|
|
||||
| check_analysis_complete | Filesystem: 4 файла в docs/work-items/{id}/ |
|
||||
| check_analysis_approved | Filesystem: 4 файла + :approved: comment в Plane |
|
||||
| check_architecture_done | Filesystem: ADR dir или infra-requirements.md |
|
||||
| check_ci_green | Gitea API: GET /commits/{branch}/status |
|
||||
| check_review_approved | Gitea API: GET /pulls/{n}/reviews (skip stale) |
|
||||
@@ -145,7 +145,7 @@ services:
|
||||
```
|
||||
1. Plane webhook: work_item.created → task created, analyst launched
|
||||
2. Analyst: пишет BRD/TRZ/AC/TestPlan → git push docs/
|
||||
3. Gitea push webhook: docs/ detected → QG check_analysis_complete → PASS
|
||||
3. Plane comment :approved: → QG check_analysis_approved → PASS
|
||||
4. Auto-advance: analysis → architecture, architect launched
|
||||
5. Architect: пишет ADR, infra-requirements → git push docs/
|
||||
6. Gitea push webhook: ADR detected → QG check_architecture_done → PASS
|
||||
|
||||
Reference in New Issue
Block a user