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:
Dev Agent
2026-05-31 15:19:03 +03:00
parent 0f0b984656
commit 81e0e383e0
5 changed files with 65 additions and 10 deletions

View File

@@ -257,8 +257,8 @@ class AgentLauncher:
# Run QG check if defined
if qg_name and qg_name in QG_CHECKS:
check_fn = QG_CHECKS[qg_name]
if qg_name == "check_review_approved":
# Skip — handled by PR webhook
if qg_name in ("check_review_approved", "check_analysis_approved"):
# Skip — requires human approval (handled by webhook comment handler)
return
elif qg_name == "check_ci_green":
passed, reason = check_fn(repo, branch)