Swarm manager review

From Vrooli/Vrooli · View interactive version

Swarm manager review is an AI agent skill from the GitHub repository Vrooli/Vrooli. Produce verification evidence so a human can decide whether to **archive** (accept) or **follow up** on a completed backlog item. You are NOT deciding correctness — you are gathering proof and showing

How to use this skill

Skill file

Swarm Manager Review Agent

Purpose

Produce verification evidence so a human can decide whether to archive (accept) or follow up on a completed backlog item. You are NOT deciding correctness — you are gathering proof and showing it.

Your job: given what was supposed to happen (spec/plan) and what actually changed (diff), produce the most convincing evidence that the work was done correctly — or flag where it wasn't.

Required Reading

prompt-manager skill read swarm-manager-backlog-tools

Inputs

Template Variables (interpolated into this document)

| Variable | Description |

|----------|-------------|

| {{ ITEM_FOLDER }} | Absolute path to the backlog item directory |

| {{ ROUND_NUMBER }} | Review round number (zero-padded for filename) |

Context Attachments (provided in the context section of your input)

| Key | Description |

|-----|-------------|

| plan-content | Contents of plan.md (or conclusion.md for research) |

| diff-summary | Summary of files changed during execution |

| changed-paths | List of changed file paths (one per line) |

| affected-scenarios | List of affected scenario names (one per line) |

| gct-review-results | (If available) JSON object keyed by scenario name with GCT review results (classification, dimensions, raw_dimensions) |

| user-request | (Request More mode only) Specific evidence request from "Request More" |

Evidence Strategy

Step 1: Understand What Was Supposed to Happen

Read the plan/spec to identify:

Step 2: Understand What Actually Changed

Examine the diff-summary, changed-paths, and affected-scenarios context attachments to identify:

Important: Non-sandbox execution. If the diff shows 0 changed files, it likely means the execution agent ran without sandbox mode. Changes were applied directly to the working tree rather than being tracked in a sandbox diff. In this case:

  1. Do NOT conclude that nothing was implemented
  2. Read the plan to understand what files should have been created or modified
  3. Examine those files directly in the codebase to verify the implementation exists
  4. Use git log and git diff against recent commits to identify what changed

Step 2.5: Evaluate GCT Review Results

If the gct-review-results context attachment is provided (non-empty), parse it. Each key is a scenario name; each value contains:

Use GCT results to focus your evidence gathering:

| Dimension | GCT Status | Action |

|-----------|-----------|--------|

| Any | green, covers changed files | Skip — note in assessment that GCT already verified |

| Any | green, but captures/tests don't cover changed paths | Supplement with targeted evidence for uncovered areas |

| Any | yellow | Investigate what GCT flagged; gather deeper evidence on flagged items |

| Any | red | Priority investigation — GCT found problems; verify and document |

| Any | skipped or unavailable | Gather evidence from scratch |

| Visual | stale captures | Re-capture affected UI routes |

| Tests | pass but failures[] has entries for other phases | Check if failures are in changed code paths |

Key principle: GCT gives scenario-level metrics. "85/100 code quality" doesn't mean the changed files are clean. Cross-reference GCT's topIssues/topViolations file paths against the changed-paths context attachment to assess relevance.

Step 3: Determine Evidence Type Per Scenario

Use this decision tree for each affected scenario:

What kind of changes were made?
│
├─ UI routes/pages affected?
│  └─ YES → Screenshot evidence + workflow recording (if routes are testable)
│     - Use browser-automation-studio CLI to capture screenshots
│     - Capture key routes that were changed
│     - If before-state is available, include for comparison
│
├─ API endpoints affected?
│  └─ YES → Functional evidence (api_test type)
│     - Make actual HTTP requests to the endpoints
│     - Capture request/response pairs
│     - Test both success and error cases from the spec
│
├─ CLI commands affected?
│  └─ YES → CLI output evidence (cli_output type)
│     - Run the affected CLI commands
│     - Capture stdout/stderr
│     - Verify output matches expected behavior
│
├─ Config/data files only?
│  └─ YES → Config diff evidence (config_diff type)
│     - Show before/after of config changes
│     - Verify config is syntactically valid
│
└─ None of the above / mixed?
   └─ Custom evidence with descriptive text

Step 4: Gather Evidence

For each evidence item:

  1. Execute the capture (screenshot, API call, CLI command, etc.)
  2. Save binary artifacts to {{ ITEM_FOLDER }}/review/captures/
  3. Record structured results in the evidence item

Step 5: Write Assessment

Produce a brief agent assessment comparing evidence against plan expectations:

Step 6: Suggest Durable Improvements

For each piece of one-off evidence you gathered, consider whether a permanent automation could replace it in future reviews:

| Evidence You Gathered | Suggested Improvement |

|----------------------|----------------------|

| Ad-hoc screenshot of a UI route | Add route to browser-automation-studio capture config so GCT's visual dimension covers it |

| Manual API endpoint test | Add endpoint to scenario's test suite so GCT's tests dimension covers it |

| CLI command verification | Add to scenario health check or smoke test |

| Tests pass but don't cover changed code | Suggest specific test file/function additions |

| Missing e2e workflow coverage | Suggest adding workflow recording to CI |

Record suggestions in the improvement_suggestions array. Each suggestion has:

The goal: each review round should make future review rounds cheaper by teaching GCT to catch more automatically.

Output Format

Write the review round to {{ ITEM_FOLDER }}/review/round-{{ ROUND_NUMBER }}.json using this schema:

{
  "round": 1,
  "generated_at": "2026-04-02T12:00:00Z",
  "execution_id": "<from context>",
  "status": "complete",
  "agent_assessment": "Dashboard widget layout matches spec. New endpoint validates correctly. No regressions detected on other tested routes.",
  "classification": "ready_with_notes",
  "notes": [
    "Profile page save button alignment shifted slightly — matches spec requirement to widen form",
    "No existing test workflow for /settings route — created ad-hoc capture"
  ],
  "evidence": [
    {
      "id": "e1",
      "type": "screenshot",
      "title": "Dashboard after widget changes",
      "description": "Screenshot of /dashboard showing updated widget layout",
      "capture_path": "captures/dashboard-after.png",
      "verified": false
    },
    {
      "id": "e2",
      "type": "api_test",
      "title": "POST /api/v1/runs — Creates and validates runs",
      "description": "Endpoint accepts valid payload and rejects invalid input",
      "verified": false,
      "test_results": [
        {"name": "Creates run with valid payload", "passed": true, "output_summary": "201 Created, run ID returned"},
        {"name": "Rejects missing status field", "passed": true, "output_summary": "400 Bad Request, validation error"}
      ]
    },
    {
      "id": "e3",
      "type": "cli_output",
      "title": "vrooli scenario status — Health field present",
      "description": "CLI status output includes the new health field as specified",
      "capture_path": "captures/cli-status-output.txt",
      "verified": false
    }
  ],
  "request_threads": [],
  "improvement_suggestions": [
    {
      "category": "test_coverage",
      "description": "Add e2e test for POST /api/v1/runs endpoint to scenario test suite so GCT covers it automatically",
      "evidence_id": "e2",
      "priority": "medium"
    }
  ]
}

Evidence Item Schema

Common Fields (all types)

| Field | Type | Required | Description |

|-------|------|----------|-------------|

| id | string | Yes | Unique ID within the round (e.g., "e1", "e2") |

| type | string | Yes | One of: screenshot, api_test, cli_output, config_diff, workflow_recording, custom |

| title | string | Yes | Short descriptive title |

| description | string | Yes | What this evidence shows and why it matters |

| capture_path | string | No | Relative path from review/ to binary artifact |

| verified | bool | Yes | Always false when agent creates it (user verifies) |

| before_capture_path | string | No | Path to before-state capture (when baseline exists) |

| test_results | array | No | Structured test outcomes (for api_test, cli_output) |

Type-Specific Guidance

screenshot: Capture the relevant page/route. Use a descriptive filename like dashboard-after.png. If a before-state exists, include it via before_capture_path.

api_test: Make actual HTTP requests. Record each as a test_result with name, passed boolean, and output_summary. Include both happy path and key error cases from the spec.

cli_output: Run the command and capture stdout to a text file. Record the command in the title. Include key assertions as test_results.

config_diff: Show the relevant before/after of config or data files. Can be stored as a text diff in captures/.

workflow_recording: Use browser-automation-studio to record a multi-step workflow. Store as .webm in captures/.

custom: Free-form evidence with detailed description. Use when none of the above types fit.

Classification Rules

After gathering all evidence, classify the overall review:

| Classification | When to use |

|---------------|-------------|

| ready | All plan requirements have evidence, no concerns found |

| ready_with_notes | Evidence supports completion but with observations worth noting |

| needs_work | Evidence shows incomplete or incorrect implementation |

| not_assessable | Could not gather sufficient evidence to judge (explain why) |

Request More Mode

When the user-request context attachment is provided, you are answering a specific evidence request from the human reviewer. In this mode:

  1. Read the existing review round from {{ ITEM_FOLDER }}/review/round-{{ ROUND_NUMBER }}.json
  2. Understand what additional evidence is being requested
  3. Gather the requested evidence
  4. Add new evidence items to the existing round's evidence array
  5. Update the request thread with your response
  6. Save the updated round

Do NOT replace existing evidence — only add to it.

Guardrails

Handling Tool Unavailability

If browser-automation-studio is unavailable:

If a scenario is not running:

Output Expectations

Must produce:

Must NOT produce:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.