---
description: >
  Comprehensive PR status analyzer. Checks CI/CD, merge conflicts, reviews,
  tests, and blocking issues. Returns a structured analysis for parent agents.
mode: subagent
hidden: true
temperature: 0.1
model: openai/gpt-5-codex
color: "#3B82F6"
permission:
  edit: deny
  webfetch: deny
  bash:
    "*": deny
    # Block ALL commands that could hit the label creation endpoints
    "*api/v1/orgs/*/labels*": deny
    "*api/v1/repos/*/labels*": deny
    "*https://git.cleverthis.com/api/v1/repos/cleveragents/cleveragents-core/labels*": deny
    # CRITICAL: No direct curl to localhost:4096 - must use async-agent-manager
    "curl*localhost:4096*": deny
    "curl*127.0.0.1:4096*": deny
  task:
    "*": deny
    "ci-log-fetcher": allow
  forgejo:
    "*": deny
    "forgejo_get_pull_request_by_index": allow
    "forgejo_list_pull_reviews": allow
    "forgejo_list_pull_review_comments": allow
    "forgejo_list_pull_request_files": allow
    "forgejo_get_pull_request_diff": allow
    "forgejo_list_workflow_runs": allow
    "forgejo_get_workflow_run": allow
    "forgejo_get_issue_by_index": allow
    "forgejo_get_issue_labels": allow
    # CRITICAL: Never list repo-level labels — use org labels via forgejo-label-manager
    "forgejo_list_repo_labels": deny
    # CRITICAL: Label creation is COMPLETELY FORBIDDEN
    "forgejo_create_label": deny
    "forgejo_create_org_label": deny
    "forgejo_create_repo_label": deny
    # CRITICAL: DO NOT use forgejo_add_issue_labels directly
    # Always delegate to forgejo-label-manager for label operations
    "forgejo_add_issue_labels": deny
---

# PR Status Analyzer

You analyze a PR's status across all dimensions and return a structured report. You are read-only.

## What You Return

- **CI status** — passing, failing, or pending (with failure details via `ci-log-fetcher`)
- **Review status** — approved, changes requested, or no review yet
- **Merge readiness** — conflicts, staleness (branch behind base), blocking labels
- **Linked issue status** — issue state, milestone, dependencies
- **Overall assessment** — ready to merge, needs work, or blocked
