# Review  -  reviewer panels, store compliance, summary and posting (Steps 3, 4, 6, 7)

> Loaded by `review/SKILL.md` and the Copilot `multi-agent-review` skill. The SKILL keeps the fable-rung resolution, the decision rule and the posting defaults; this file carries the per-host model panels, the store-compliance triggers, the chat summary template, the post prompt and the provider endpoints.

## Reviewers

The panel below is generated from the host registry (`schemas/hosts.json`); only
the second slot differs between hosts, because GPT-5.4 is reachable on two of
them and not on Claude Code, where Opus fills it.

<!-- hosts:panel -->
**Claude Code** (3 in parallel, one vendor):
- Agent 1: the `fable` rung -> security + architecture
- Agent 2: the `opus` rung -> edge cases, alternate perspective
- Agent 3: the `sonnet` rung -> general quality
- Triage: the `fable` rung

**Copilot CLI** (3 in parallel, two vendors):
- Agent 1: `claude-opus-4.7` -> security + architecture
- Agent 2: `gpt-5.4` -> edge cases, alternate perspective
- Agent 3: `claude-sonnet-4.6` -> general quality
- Triage: `claude-opus-4.7`

**Codex CLI** (3 in parallel, one vendor):
- Agent 1: `gpt-5.6` @ `xhigh` -> security + architecture
- Agent 2: `gpt-5.4` @ `high` -> edge cases, alternate perspective
- Agent 3: `gpt-5.6` @ `medium` -> general quality
- Triage: `gpt-5.6` @ `max`

**Local LLM** (1 in parallel, one vendor):
- Agent 1: `local` -> security + architecture
- Triage: `local`
<!-- /hosts -->

When `REVIEW_RUNG` is anything but `fable`, Agent 1 is dropped on Claude Code and the panel is Agent 2 + Agent 3.

## Store compliance

| Platform | Trigger files | Catalog |
| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| iOS | `**/Info.plist`, `**/PrivacyInfo.xcprivacy`, `**/*.entitlements`, `**/*App.swift`, `**/AppDelegate*.swift`, `**/SceneDelegate*.swift`, `**/project.pbxproj` | `$HOME/.claude/skills/apple-archive-compliance/SKILL.md`  -  18 rules + ITMS refs |
| Android | `**/AndroidManifest.xml`, `**/build.gradle(.kts)`, `**/proguard-rules.pro`, `**/network_security_config.xml` | `$HOME/.claude/skills/google-play-compliance/SKILL.md`  -  21 rules + Play policy refs |

Each finding gets the `ruleID` from the catalog plus the platform policy ref:

- iOS: `(apple-archive-compliance / info-plist  -  Guideline 5.1.1)`
- Android: `(google-play-compliance / dangerous-permissions  -  Policy  -  Permissions)`

## Summary

```
🔍 Review Complete  ·  PR #1250  ·  3 files +120 -45
| Model    | Verdict   | Blocking | Important | Suggestion |
|----------|-----------|----------|-----------|------------|
| Fable    | approved  | 0        | 1         | 3          |
| Opus     | approved  | 0        | 2         | 2          |
| Sonnet   | rejected  | 1        | 2         | 5          |

Consensus: ⚠ DISAGREEMENT  -  see triage
```

One row per reviewer that ran: Fable + Opus + Sonnet on Claude Code (Opus + Sonnet while the fable rung is off), Opus + GPT-5.4 + Sonnet on Copilot CLI, the three GPT rows on Codex CLI. The chat is the live conversation; on the PR side, the durable artifacts are inline comments + the review state (Step 7).

## Posting

Optional opt-out prompt (interactive mode only; autopilot skips and posts):

```
question (outputLanguage): "PR #{N} için review action gönderilsin mi?"
header   (English):        "Post review"
options (label + description in outputLanguage; semantics, not literals):
  - option 1  -  "Post review": inline comments + Request changes when there are
                 findings, Approve when there are none
  - option 2  -  "Chat only": leave the PR untouched, the chat summary is enough
default: option 1
```

`post-pr-review.sh` reads `agent-state.review.{input, findings, iterationNumber, headCommitSha}`, decides APPROVE vs NEEDS_WORK from the decision rule, posts one inline comment per accepted blocking + important finding (in `outputLanguage`), then sets the review state via the provider's API:

| Provider | Inline comment | State |
| ------------------ | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| `github` | `gh api -X POST /repos/{o}/{r}/pulls/{n}/comments` (path + line + commit_id) | `gh pr review --approve` / `--request-changes` |
| `bitbucket-server` | `POST /pull-requests/{n}/comments` with `anchor: { path, line, lineType:"ADDED", fileType:"TO" }` | `PUT /pull-requests/{n}/participants/{user}` body `{"status":"APPROVED"}` or `{"status":"NEEDS_WORK"}` |

If a finding's `line` lies outside the diff or `headCommitSha` is missing, the comment falls back to a top-level PR comment with the same body.

If the post fails (network, token, harness block), `post-pr-review.sh` exits non-zero and surfaces the failing endpoint on stderr  -  the chat summary remains the source of truth. The script reads `agent-state.review` and handles finding render, comment posts and review state end-to-end.
