---
name: multi-agent-review-analysis
description: "Review a written analysis document instead of a diff: resolve it from a path, a Confluence page or a Jira issue, run the deterministic gates first, then a parallel model review. Findings cite the Locked rule they break. Never edits the document. Use when an analysis needs judging before development starts."
user-invocable: true
argument-hint: "[path | Confluence URL | pageId | JIRA-KEY] [--state <state.json>]  -  optional; with no argument, pick from recent analyses"
metadata:
  language: en
---

# multi-agent review-analysis  -  analysis document review

**Access check, before anything else.** This command can write outside this machine, so a login the site closed is stopped here, before any question or write.

```bash
ACCESS_LINE=$(node "$HOME/.copilot/scripts/usage-access.mjs"); ACCESS_RC=$?
```

`ACCESS_RC` 3: print `$ACCESS_LINE` as written and stop: no question, no write, attended or unattended. Any other exit continues (the check fails open). Contract: `$HOME/.claude/multi-agent-refs/features/usage-reporting.md` "The access check".

**Input**: $ARGUMENTS

`multi-agent-review` judges a diff. This judges the document that diff was supposed to come from, before the code exists. No worktree, no branch, no commit, and the reviewed document is never edited in place.

## Gotchas

- Validator ERRORs are Blockers and WARNs are Important, unless the document states why the warned-about item is acceptable.
- Every rubric class is printed, with `none` when empty. A class missing from the verdict did not run; it is not a clean result.

## Flow

Read `$HOME/.claude/multi-agent-refs/analysis/review.md` and execute it:

1. **Resolve** from a local path, a Confluence URL or `pageId`, or a Jira key. No argument -> pick from recent analyses in `~/Desktop/multiAgentAnalysis/` and each repo's `analysis/`.
2. **Deterministic gates first**, output reported verbatim before any model reads the document:
   `validate-analysis-doc.mjs <doc>`, and `build-references.mjs <state> --check <doc>` when a state JSON is available.
3. **Parallel model review** against the rubric: buildability, evidence, spine, altitude, admitted gaps, contradiction. With `review.personaWalk.enabled` (off by default), a persona walk runs beside them; `persona-walk-anchors.mjs` drops findings whose anchor is not in the document.
4. **Triage** into Blocker / Important / Suggestion.
5. **Report** the profile it judged against and, explicitly, what was NOT checked.
6. **Output** on request: chat (default), Confluence comment, Jira comment, or a `-review.md` beside the document.

Findings cite `Locked <n>` where one applies, so the author gets a rule and a fix rather than a preference. Anything with no rule behind it is marked as judgement.

## What it never does

Edits the reviewed document (that is `multi-agent-analysis-resolve`), touches a Jira description or a Confluence page body, chains into a dev run, branches, or commits.
