# Ghosty Review — pull request review on GitHub

> What Ghosty reviews on every pull request, what it posts (threads, status comment and the «Ghosty Review» check), how it checks the issue the PR says it closes and where minor details go.

URL: https://www.ghosty.studio/en/docs/factory/ghosty-review

**Ghosty Review** reviews every pull request in the repos you connect at [/review](/review) and posts only what breaks: critical or real bugs (P0/P1) that a second model verified line by line. Each bug gets its own thread with the case that triggers it and the fix; once you fix it and push, the thread resolves itself. A clean PR gets no inline comments, just a green «Ghosty Review» check. The check never blocks the merge.

At the top of the PR there's **one status comment** that's edited on every review: open bugs with a link to their thread, how many were resolved and the reviewed commit. Repo rules are read from `.ghosty/review.md` on the base branch, never from the PR branch.

## The issue the PR says it closes

If the PR description links an issue (`closes #12`, `fixes #12`, `resolves #12`, or the Spanish `cierra #12`, `corrige #12`, `resuelve #12`), or GitHub has it linked in the sidebar, Ghosty reads the issue's title and body (not its comments) and reviews the PR against it. Requirements come from the issue's checkboxes (`- [ ]`) or, if it has none, from what it explicitly asks for. The status comment adds the **«Cumplimiento del issue #12»** (issue compliance) table with ✅ met, ❌ not met or ❓ can't confirm, and the reason for each. A ❌ sets the check to neutral (like a finding) and its title says so; ❓ is informational. An example of ❓: the issue asks for a 20 % discount, the math uses 20 %, but the headline hardcodes it instead of reading the same value. With no linked issue, the section doesn't show.

## Minor details

What doesn't break anything but is worth fixing (a value duplicated by hand, a missing test with a concrete risk) goes through the same verification as bugs and shows up collapsed in the status comment as **«Detalles menores (no bloquean)»** (minor details, non-blocking), five at most. It's never posted as an inline comment and doesn't count toward the status.

## Security

Besides hunting bugs, each batch of the PR is read a second time against a security checklist (OWASP Top 10, CWE and STRIDE): routes without a session or an owner check, SQL or command injection, XSS, SSRF, secrets in logs, open CSRF and CORS, predictable tokens, unvalidated uploads and unbounded loops. Only what this change introduces, with a concrete attack, is reported. Those findings go through the same verification as bugs and, when confirmed, are posted as P0 or P1 marked with 🔒 and their CWE (for example «🔒 Route without owner check (CWE-639)»).
