[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70FPDC53TN1D4X5VZED8MF8":3,"skill-same:01M70FPDC53TN1D4X5VZED8MF8":105},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":25,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":13,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M70FPDC53TN1D4X5VZED8MF8","adversarial-qa",null,"Adversarial QA framework for high-confidence verification of a running application after changes. Produces independent QA reports, a synthesis pass, a ranked `issues.md`, and a `test-plan.md` for missing coverage. Use this skill after `adversarial-proposal` or `adversarial-implementation`, after merging a feature branch, before deploy, when unit tests pass but UI or integration issues are still suspected, or when the user asks for adversarial QA, regression testing, a release check, or a high-confidence QA pass.","SirTheOracle\u002Fforge-toolkit","SirTheOracle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F264051384?v=4","01M70FNRYMQR4XHVN77S3NJPAW","01M70FNRZAGW58XJ1CC6JRY1PA",0,"MIT","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-qa\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"qa","adversarial qa","adversarial","deploy","implementation","integration","high","changes","check","unit tests","use","tests","for","ui","release","plan","release check","testing","branch","unit","2026-11-10 10:12:30",false,"---\nname: adversarial-qa\ndescription: >\n  Adversarial QA framework for high-confidence verification of a running application after changes.\n  Produces independent QA reports, a synthesis pass, a ranked `issues.md`, and a `test-plan.md`\n  for missing coverage. Use this skill after `adversarial-proposal` or\n  `adversarial-implementation`, after merging a feature branch, before deploy, when unit tests pass\n  but UI or integration issues are still suspected, or when the user asks for adversarial QA,\n  regression testing, a release check, or a high-confidence QA pass.\n---\n\n# Adversarial QA Framework\n\n## Overview\n\nThis Codex copy tracks the generalized adversarial QA workflow from the authoritative Claude skill. Two isolated QA testers independently test the application from different angles, then a QA Synthesizer cross-verifies their findings, deduplicates issues, and produces a ranked issues report plus a test plan for missing coverage.\n\nThe critical design principle is **information isolation**: QA Tester A and QA Tester B each have their own context window and test the application with zero knowledge of each other's findings. Only after both finish does the QA Synthesizer see both reports. Then A and B review the synthesizer's assessment, and the synthesizer reconciles everything into a final QA report.\n\nUnlike unit tests that validate isolated functions, this skill catches issues that only manifest in the running application: UI regressions, broken page loads, cross-stage interactions, API contract violations, and integration failures.\n\n## Non-Negotiable: Real Workflow Gate\n\nTreat fixture tests, mocked service tests, route-only unit tests, and direct helper assertions as supporting evidence only. They cannot prove the feature works.\n\nEvery QA pass must identify the real user workflow or live API\u002Fservice path that the changed feature is supposed to support, then attempt to execute that path against the running application or a real backend service instance. A QA report may not conclude `SHIP IT`, `accept`, `CLEAR`, or \"no confirmed product defects\" unless at least one tester or the synthesizer has exercised that live path and recorded the exact evidence.\n\nIf the live path is blocked by missing seed data, auth, browser launch failure, external service credentials, or environment instability, classify QA as **BLOCKED** or **NEEDS REAL-WORKFLOW TESTING**. Do not downgrade the missing live-path check into a harmless coverage note. File it as a top issue and make it the first item in `issues.md`.\n\nFor backend-heavy features, the live path can be an authenticated API request or service command that uses real database rows and the same endpoint\u002Fbackground job the product uses. It must not be only a mocked pytest fixture that creates idealized rows. For UI features, the live path must include browser interaction or a documented reason why browser execution is impossible plus an equivalent authenticated API reproduction.\n\n## When to Use\n\n- After an adversarial-proposal or adversarial-implementation produces changes\n- After merging a feature branch, before deploying\n- As a standalone regression check when something feels off\n- When unit tests pass but you suspect UI or integration issues\n- Any time you want high-confidence QA before shipping\n\n## Prerequisites\n\nThis skill follows the generalized multi-agent protocol from the authoritative Claude version.\n\n- In Codex, prefer native subagents to preserve A\u002FB\u002FC isolation.\n- When the upstream docs mention teammate APIs, map them to Codex delegation primitives such as `spawn_agent`, `send_input`, and `wait_agent`.\n- If you need a file-coordinated fallback instead of long-lived subagents, use `references\u002Fsubagent-fallback.md`.\n- `references\u002Fagent-teams-workflow.md` is retained as the upstream round-by-round protocol reference.\n\n### Runtime Prerequisites\n\nThe QA testers need a running application. Service commands come from the project config (`forge-project.yml`):\n\n- **Backend**: `{{backend_command}}` in `{{backend_working_dir}}\u002F` (or will be started by Playwright config)\n- **Frontend**: `{{frontend_command}}` in `{{frontend_working_dir}}\u002F` (or will be started by Playwright config)\n- **Playwright installed**: `cd {{frontend_working_dir}} && {{playwright_install}}`\n\nThe Playwright config (`{{frontend_working_dir}}\u002F{{playwright_config}}`) can auto-start servers (mode: `{{playwright_autostart}}`), so testers can also just run `{{e2e_command}}` directly.\n\n### Restart-on-entry (cross-worktree infra lock — qa \u002F qa-retry)\n\nThis QA stage runs under the cross-worktree **infra lock** (orchestrator-held;\nsee forge-orchestrator Hard Rule 23). All worktrees of this repo share one infra\nstack (fixed-port services + a shared DB), so a dev server left running by a\n*different* worktree's earlier stage would serve **that** worktree's code to your\ntests. Before testing, **restart the services against THIS worktree** so you\nexercise THIS worktree's code. This is config-driven and identity-checked — do\n**not** blindly kill whatever holds a port:\n\n1. **Expected service shape** (from the preamble \u002F `forge-project.yml`):\n   - backend: `{{backend_command}}` in `{{backend_working_dir}}\u002F`, URL `{{backend_url}}`\n   - frontend: `{{frontend_command}}` in `{{frontend_working_dir}}\u002F`, URL `{{frontend_url}}`\n   - the port is the `:PORT` in each URL.\n2. **Inspect each configured port:** `lsof -nP -iTCP:\u003Cport> -sTCP:LISTEN`; for any\n   listener get its command + cwd (`ps -o command= -p \u003Cpid>`, `lsof -p \u003Cpid> | grep -i cwd`).\n3. **Decide per listener:**\n   - **Matches the project's expected dev-server shape** (command matches\n     `{{backend_command}}`\u002F`{{frontend_command}}` AND cwd is a worktree of THIS\n     repo) → it is a Forge-owned server for some worktree. **Stop it** (`kill \u003Cpid>`;\n     `kill -9` only if it refuses) so you can start THIS worktree's server fresh.\n     **Log** pid, command, cwd, port, and the owning worktree.\n   - **Unknown process** (not the expected shape) → **STOP and ESCALATE — do NOT\n     kill it.** Report `INFRA ESCALATION: configured port \u003Cport> held by an unknown\n     process (pid=\u003Cpid> cmd=\u003Ccommand> cwd=\u003Ccwd>) not matching the expected\n     dev-server shape; refusing to kill.` Emit `FORGE_BLOCKED` and wait for a human.\n   - **Nothing listening** → proceed to start.\n4. **Start THIS worktree's services** from `{{backend_working_dir}}`\u002F`{{frontend_working_dir}}`,\n   or rely on Playwright `webServer` autostart **only if** it starts a fresh server\n   (NOT `reuseExistingServer: true`). Confirm the backend URL responds before testing.\n\nSafe under the lock: exactly one infra stage runs globally at a time, so stopping\na prior holder's leftover server cannot race another live QA run. (`coding` and\n`qa-fix` do NOT restart-on-entry — Hard Rule 23.)\n\n## Modes\n\n| Mode | Flag | Behavior |\n|------|------|----------|\n| **Default** | (none) | Fully automated. Lead orchestrates all rounds without pausing. |\n| **Interactive** | `--interactive` | Pauses after Round 1 (user reviews QA findings) and after Round 2 (user reviews synthesis). |\n\n## Input Modes\n\nThe skill adapts based on what artifacts are available:\n\n| Input | Behavior |\n|-------|----------|\n| **Adversarial artifacts exist** | Reads `final-plan.md` + `implementation.md` (if present) to understand what changed and what exact diffs were planned, focuses testing on affected areas |\n| **Git diff available** | Uses `git diff main...HEAD` to identify changed files and focus testing |\n| **Standalone** | Runs full regression suite — all smoke pages from config, API health |\n| **Scoped re-QA** | Receives a list of `still-open` \u002F `regressed` item IDs from a verification cycle, tests ONLY those areas |\n\n### Upstream Artifact Detection\n\nIn Step 0, check for these files in `.dev\u002Fproposals\u002F{slug}\u002F`:\n\n1. **`final-plan.md`** (from adversarial-proposal) — high-level plan, affected areas, design decisions\n2. **`implementation.md`** (from adversarial-implementation) — exact code diffs, file changes, test specs\n3. **`proposal-C.md`** (from adversarial-proposal) — synthesized investigation findings\n\nIf `implementation.md` exists, it provides the most precise testing scope: the exact files modified, the specific diffs applied, and the test specifications written. Embed a summary of these in the tester prompts so they know exactly what changed and can target their testing.\n\n## Architecture\n\n```\nROUND 0: Setup\n-----------------------------------------------------\n  Lead detects input mode (artifacts \u002F git diff \u002F standalone)\n  Lead identifies test scope and affected areas\n  Lead selects strategy pair:\n  +----------------------------------------------+\n  | QA Tester A: UI Regression Tester             |\n  |   - Page loads, component rendering           |\n  |   - Console errors, visual regressions        |\n  |   - Smoke tests for all pages from config      |\n  |   - Screenshot evidence                       |\n  |                                               |\n  | QA Tester B: Functional Integration Tester    |\n  |   - API endpoint contracts                    |\n  |   - Cross-stage data flow                     |\n  |   - Feature-specific E2E flows                |\n  |   - New\u002Fchanged functionality verification    |\n  +----------------------------------------------+\n\nROUND 1: Independent Testing (parallel)\n-----------------------------------------------------\n  QA Tester A (Strategy A)        QA Tester B (Strategy B)\n  +--------------------+          +--------------------+\n  | Own context         |          | Own context         |\n  |                     |          |                     |\n  | Sees ONLY:          |          | Sees ONLY:          |\n  | - Test scope        |          | - Test scope        |\n  | - Source files      |          | - Source files       |\n  | - Strategy A        |          | - Strategy B        |\n  |                     |          |                     |\n  | RUNS:               |          | RUNS:               |\n  | - Playwright tests  |          | - API curl tests    |\n  | - Screenshot checks |          | - Playwright E2E    |\n  | - Console error     |          | - pytest integration |\n  |   monitoring        |          |   tests             |\n  |                     |          |                     |\n  | CANNOT see B -------+-- X ----+-- CANNOT see A      |\n  |                     |          |                     |\n  | -> qa-report-A.md   |          | -> qa-report-B.md   |\n  +---------------------+          +---------------------+\n\n  \u003C-- Quality check: real test evidence, not speculation -->\n  \u003C-- [Interactive: Checkpoint 1] -->\n\nROUND 2: Synthesis + Cross-Verification\n-----------------------------------------------------\n  QA Synthesizer C (teammate)\n  +--------------------------------------+\n  | Phase 0: Runs own spot-checks        |\n  | Phase 1-2: Reads qa-report-A + B     |\n  | Phase 3: Cross-verifies key findings |\n  |   - Re-runs failing tests to confirm |\n  |   - Checks if A's issues reproduce   |\n  |   - Checks if B's issues reproduce   |\n  | Phase 4: Synthesizes + ranks         |\n  | Phase 5: Writes isolated review files|\n  |                                      |\n  | -> qa-synthesis.md   (lead-only)     |\n  | -> review-for-A.md   (A's eyes only) |\n  | -> review-for-B.md   (B's eyes only) |\n  +--------------------------------------+\n\n  \u003C-- [Interactive: Checkpoint 2] -->\n\nROUND 3: Feedback (parallel, ISOLATED)\n-----------------------------------------------------\n  QA Tester A (still alive)       QA Tester B (still alive)\n  +--------------------+           +--------------------+\n  | Reads ONLY:         |           | Reads ONLY:         |\n  | - review-for-A.md   |           | - review-for-B.md   |\n  | + own qa-report     |           | + own qa-report     |\n  |                     |           |                     |\n  | CANNOT see:         |           | CANNOT see:         |\n  | - qa-synthesis.md   |           | - qa-synthesis.md   |\n  | - review-for-B.md   |           | - review-for-A.md   |\n  | - qa-report-B.md    |           | - qa-report-A.md    |\n  |                     |           |                     |\n  | May re-run tests    |           | May re-run tests    |\n  | to defend findings  |           | to defend findings  |\n  |                     |           |                     |\n  | -> feedback to lead  |           | -> feedback to lead  |\n  +---------------------+           +---------------------+\n\nROUND 4: Reconciliation + Final Report\n-----------------------------------------------------\n  QA Synthesizer C (still alive)\n  +--------------------------------------+\n  | Receives feedback from A and B       |\n  | Reconciles into final QA report      |\n  | -> issues.md       (ranked issues)   |\n  | -> test-plan.md    (new test cases)  |\n  +--------------------------------------+\n```\n\n### Why Isolation Works for QA\n\nEach tester has its own context window. A and B share no findings during Round 1. This prevents:\n- **Confirmation bias**: If A finds an issue, B might unconsciously skip testing that area\n- **Tunnel vision**: Both testers following the same testing path\n- **False confidence**: One tester assuming the other covered something\n\n| Round | Who | Can See | Cannot See |\n|-------|-----|---------|------------|\n| 1 | A | Test scope + source files + Strategy A | B's report |\n| 1 | B | Test scope + source files + Strategy B | A's report |\n| 2 | C | Test scope + qa-report-A + qa-report-B + source files | -- |\n| 3 | A | review-for-A.md + its own qa-report-A.md | qa-synthesis.md, review-for-B.md, qa-report-B.md |\n| 3 | B | review-for-B.md + its own qa-report-B.md | qa-synthesis.md, review-for-A.md, qa-report-A.md |\n| 4 | C | A's feedback + B's feedback + its own prior synthesis | -- |\n\n### Why Teammates Stay Alive\n\nAll 3 teammates persist across rounds:\n- A and B retain their full testing context from Round 1 when reviewing C's assessment in Round 3\n- They can re-run specific tests to defend their findings\n- C retains its cross-verification notes from Round 2 when reconciling in Round 4\n\n---\n\n## How to Execute\n\nWhen the user triggers this skill, you (the lead) orchestrate the entire workflow. Read `references\u002Fagent-teams-workflow.md` for the complete tool call sequence.\n\nIn Codex, treat the teammate-specific calls in that reference as conceptual. Preserve the same isolation and sequencing with Codex subagents, or fall back to the file-based workflow when persistent subagent messaging is not practical.\n\n### Step 0: Load Project Config and Gather Context\n\n1. **Read project config**: `.claude\u002Fforge-project.yml`\n   - Extract all service, testing, auth, and QA config values\n   - Build the placeholder substitution map (see \"Config Substitution\" below)\n   - If the config file is missing, abort with: \"No forge-project.yml found. Create one before running adversarial QA.\"\n2. Get the **test scope** from the user (or auto-detect):\n   - If adversarial artifacts exist in `.dev\u002Fproposals\u002F{slug}\u002F`, read `final-plan.md` AND `implementation.md` (if present) to understand changes\n   - If `implementation.md` exists, extract the list of modified files, code diffs summary, and test specifications — this gives testers precise targeting\n   - If on a feature branch, run `git diff main...HEAD --name-only` to identify changed files\n   - If standalone, scope is \"full regression\"\n   - If scoped re-QA (from verification loop), scope is limited to the `still-open` \u002F `regressed` item IDs\n3. Identify **affected areas** using the smoke pages and core workflows from config\n4. Define the **real workflow gate** for this QA pass:\n   - Name the exact user action, API endpoint, background job, or service command that proves the changed feature works in the product.\n   - Identify the required real data row or setup, such as a candidate ID, draft ID, tenant, uploaded file, feed, or generated job.\n   - Decide how to create or locate that data without relying only on mocked fixtures.\n   - Add this gate to `test-scope.md` under `## Real Workflow Gate`.\n   - Tell both testers that this gate is mandatory. At least one tester must execute it, or the final QA status must be blocked.\n5. Check if both servers are running (backend on `{{backend_url}}`, frontend on `{{frontend_url}}`)\n6. Create output directory and evidence subdirectories:\n   ```\n   {project}\u002F.dev\u002Fqa\u002F{issue-slug}\u002F\n   {project}\u002F.dev\u002Fqa\u002F{issue-slug}\u002Fevidence\u002Fscreenshots\u002F\n   {project}\u002F.dev\u002Fqa\u002F{issue-slug}\u002Fevidence\u002Fapi-responses\u002F\n   {project}\u002F.dev\u002Fqa\u002F{issue-slug}\u002Fevidence\u002Ftest-results\u002F\n   ```\n7. Save the test scope as `test-scope.md`\n8. Read the agent role files to embed in teammate prompts:\n   - `agents\u002Fqa-tester.md`\n   - `agents\u002Fqa-synthesizer.md`\n   - `agents\u002Fqa-critic.md`\n   - `agents\u002Fqa-reconciler.md`\n   - `references\u002Fqa-report-format.md`\n\n### Step 1: Create Team and Tasks\n\n```\nTeamCreate({ team_name: \"adversarial-qa\" })\n```\n\nCreate 5 tasks with dependencies:\n\n| Task | Subject | Blocked By |\n|------|---------|-----------|\n| #1 | QA Report A: UI Regression Testing | -- |\n| #2 | QA Report B: Functional Integration Testing | -- |\n| #3 | QA Synthesis: Cross-verification + ranking | #1, #2 |\n| #4 | Feedback from A and B | #3 |\n| #5 | Final QA Report: issues.md + test-plan.md | #4 |\n\n### Step 2: Round 1 -- Spawn A and B (Parallel)\n\nSpawn both testers **in the same turn** so they run in parallel:\n\n```\nAgent({\n  team_name: \"adversarial-qa\",\n  name: \"qa-tester-a\",\n  subagent_type: \"general-purpose\",\n  prompt: \"{test scope + source files + qa-tester role + qa-report format\n            + Strategy A (UI Regression) assignment\n            + available test commands + Playwright helpers reference\n            + save as qa-report-A.md + ISOLATION RULE + wait for instructions}\",\n  run_in_background: true\n})\n\nAgent({\n  team_name: \"adversarial-qa\",\n  name: \"qa-tester-b\",\n  subagent_type: \"general-purpose\",\n  prompt: \"{same prompt but Strategy B (Functional Integration) assignment\n            + save as qa-report-B.md + ISOLATION RULE}\",\n  run_in_background: true\n})\n```\n\n**CRITICAL -- Isolation rule in both prompts:**\n> \"You are one of two independent QA testers. You must NOT read any other QA report files in the output directory. Do NOT look at any files named qa-report-B.md, qa-synthesis.md, review-for-A.md, review-for-B.md, issues.md, or test-plan.md. Only read the source files and test scope listed above.\"\n\n**CRITICAL -- Both prompts must instruct the teammate to WAIT after completing their report**, not exit. They will be needed again in Round 3.\n\nMonitor inbox for \"done\" messages from both A and B.\n\nAfter both arrive: **quality check** (real test evidence, actual pass\u002Ffail results, screenshots where applicable).\n\nReject the Round 1 reports as incomplete if neither report executed the real workflow gate. Send one or both testers back with explicit instructions to run the gate before synthesis. Do not let passing unit tests, mocked pytest tests, or route-only frontend tests substitute for the gate.\n\nFor wizard flows or multi-step forms, verify every step exposes its primary action in the expected navigation container, including the final step. Do not treat \"button exists somewhere on the page\" as sufficient.\n\n### Step 2.5: Convergence Check\n\nIf both testers find **zero issues**, all tests pass, and the real workflow gate was executed successfully, the synthesis adds limited value. In this case:\n1. Skip Rounds 2-3\n2. Spawn C for a lightweight review (spot-check a few areas neither explicitly tested)\n3. C writes `issues.md` (clean bill of health or minor findings) + `test-plan.md` directly\n\nIf both testers find zero issues but the real workflow gate was not executed, do not use convergence. Treat the QA pass as blocked and require a gate run.\n\n### Step 3: Round 2 -- Spawn C (After A and B Complete)\n\nWhen both \"done\" messages arrive and findings exist:\n\n```\nAgent({\n  team_name: \"adversarial-qa\",\n  name: \"qa-synthesizer-c\",\n  subagent_type: \"general-purpose\",\n  prompt: \"{instruction to run own spot-checks FIRST (Phase 0)\n            + then read qa-report-A.md and qa-report-B.md\n            + qa-synthesizer role\n            + cross-verify: re-run key failing tests to confirm\n            + verify whether the real workflow gate was actually executed\n            + produce THREE files: qa-synthesis.md, review-for-A.md, review-for-B.md\n            + isolation rules for review files\n            + wait for instructions}\",\n  run_in_background: true\n})\n```\n\nMonitor inbox for C's \"done\" message.\n\n### Step 4: Round 3 -- Message A and B with Their Review Files\n\nWhen C's \"done\" arrives, message both testers (they're still alive):\n\n```\nSendMessage({\n  type: \"message\",\n  recipient: \"qa-tester-a\",\n  content: \"Read review-for-A.md -- a QA reviewer's assessment of your findings.\n            ISOLATION RULE: Read ONLY review-for-A.md. Do NOT read qa-synthesis.md,\n            review-for-B.md, qa-report-B.md, or any other files in the output\n            directory. You may re-run tests to defend your findings. Give detailed feedback.\",\n  summary: \"Review feedback for QA Tester A\"\n})\n\nSendMessage({\n  type: \"message\",\n  recipient: \"qa-tester-b\",\n  content: \"Read review-for-B.md -- a QA reviewer's assessment of your findings.\n            ISOLATION RULE: Read ONLY review-for-B.md. Do NOT read qa-synthesis.md,\n            review-for-A.md, qa-report-A.md, or any other files in the output\n            directory. You may re-run tests to defend your findings. Give detailed feedback.\",\n  summary: \"Review feedback for QA Tester B\"\n})\n```\n\nMonitor inbox for feedback from both A and B.\n\n### Step 5: Round 4 -- Forward Feedback to C\n\nWhen both feedback messages arrive, forward them to C:\n\n```\nSendMessage({\n  type: \"message\",\n  recipient: \"qa-synthesizer-c\",\n  content: \"Both QA testers reviewed your assessment and responded. Reconcile\n            their feedback and produce the final QA report.\n\n            Feedback from QA Tester A:\n            {A's feedback from inbox}\n\n            Feedback from QA Tester B:\n            {B's feedback from inbox}\n\n            {qa-reconciler role embedded}\n\n            Save the final report as:\n            - {output_dir}\u002Fissues.md (ranked issues)\n            - {output_dir}\u002Ftest-plan.md (new test cases to add)\",\n  summary: \"Reconcile feedback into final QA report\"\n})\n```\n\nMonitor inbox for C's \"done\" message.\n\nWhen E2E covers wizard navigation, scope action assertions to the expected container (for example a `data-testid=\"wizard-nav\"` locator) instead of page-wide button selectors.\n\n### Step 6: Cleanup and Present\n\n```\nSendMessage({ type: \"shutdown_request\", recipient: \"qa-tester-a\", content: \"QA complete\" })\nSendMessage({ type: \"shutdown_request\", recipient: \"qa-tester-b\", content: \"QA complete\" })\nSendMessage({ type: \"shutdown_request\", recipient: \"qa-synthesizer-c\", content: \"QA complete\" })\n\u002F\u002F Wait for shutdown approvals\nTeamDelete()\n```\n\nPresent `issues.md` and `test-plan.md` to the user. Offer to:\n- Show the full QA trail (all reports)\n- Explain specific findings\n- Run additional targeted tests\n- Proceed to fix identified issues\n\n---\n\n## Building the Teammate Prompts\n\nEach teammate prompt must be **self-contained** -- embed everything inline since teammates don't inherit the lead's conversation.\n\n### Config Substitution\n\nBefore embedding agent role files and reference docs into sub-agent prompts, the orchestrator MUST substitute all `{{placeholder_tokens}}` with values from `forge-project.yml`. Sub-agents don't inherit the orchestrator's context, so they cannot read the config themselves.\n\nSubstitution map (built in Step 0):\n\n| Token | Config source |\n|-------|---------------|\n| `{{project_name}}` | `project.name` |\n| `{{backend_url}}` | `http:\u002F\u002Flocalhost:{services.backend.port}` |\n| `{{frontend_url}}` | `http:\u002F\u002Flocalhost:{services.frontend.port}` |\n| `{{backend_command}}` | `services.backend.command` |\n| `{{frontend_command}}` | `services.frontend.command` |\n| `{{frontend_working_dir}}` | `services.frontend.working_dir` |\n| `{{backend_working_dir}}` | `services.backend.working_dir` |\n| `{{activate_venv}}` | `services.backend.activate_venv` |\n| `{{test_command}}` | `testing.backend.command` |\n| `{{e2e_command}}` | `testing.frontend.e2e_command` |\n| `{{playwright_install}}` | `testing.frontend.playwright_install` |\n| `{{playwright_config}}` | `testing.frontend.playwright_config` |\n| `{{playwright_autostart}}` | `testing.frontend.playwright_autostart` |\n| `{{e2e_dir}}` | `testing.frontend.e2e_dir` |\n| `{{screenshot_full_page}}` | `testing.screenshot.full_page` |\n| `{{screenshot_viewport}}` | `testing.screenshot.viewport` |\n| `{{test_email}}` | `auth.test_email` |\n| `{{test_password}}` | `auth.test_password` |\n| `{{login_endpoint}}` | `auth.login_endpoint` |\n| `{{smoke_pages}}` | `qa.smoke_pages` (render as markdown list) |\n| `{{core_workflows}}` | `qa.core_workflows` (render as markdown list) |\n\nFor `{{smoke_pages}}`, render each entry as a markdown bullet with name, path, and auth requirement. For `{{core_workflows}}`, render each entry as a markdown bullet with name and description.\n\n### What to Embed in Every Prompt\n\n1. **The test scope** -- what to test and why (from test-scope.md)\n   - Include the `## Real Workflow Gate` verbatim and state that it is mandatory.\n2. **Affected source files** -- explicit list of files changed or relevant\n3. **The agent role** -- full content from the relevant `agents\u002F*.md` file\n4. **The QA report format** -- full content from `references\u002Fqa-report-format.md`\n5. **The output path and filename** -- exact save location\n6. **The isolation rule** -- for A and B in Rounds 1 and 3\n7. **The strategy assignment** -- for A and B in Round 1\n8. **The \"wait\" instruction** -- tell teammates to wait for further messages after completing\n9. **Available test commands** -- what tools they can use to test:\n\n```\n## Available Test Commands\n\n### Playwright (UI tests)\ncd {{frontend_working_dir}}\n\n# Run all existing Playwright tests\n{{e2e_command}}\n\n# Run a specific test file\n{{e2e_command}} {{e2e_dir}}\u002Fsome-test.spec.ts\n\n# Take a screenshot of any page\n{{screenshot_full_page}}\n\n# Run with headed browser for debugging\n{{e2e_command}} --headed\n\n### Backend (API tests)\ncd {{backend_working_dir}}\n{{activate_venv}}\n\n# Run all pytest tests\n{{test_command}}\n\n# Run specific test file\n{{test_command}} tests\u002Funit\u002Ftest_file.py -v\n\n# Run e2e tests\n{{test_command}} tests\u002Fe2e\u002F -v\n\n### API Smoke Tests (curl)\n# Health check\ncurl -s {{backend_url}}\u002Fdocs | head -20\n\n# Test authenticated endpoints (get token first)\ncurl -s -X POST {{backend_url}}{{login_endpoint}} \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"{{test_email}}\",\"password\":\"{{test_password}}\"}' | jq .token\n\n### Screenshots (always use Playwright CLI, never MCP)\n{{screenshot_full_page}}\n```\n\n### Strategy Details\n\n| Strategy | Focus | Test Types |\n|----------|-------|-----------|\n| **A: UI Regression** | Visual integrity, page loads, component rendering, console errors | Playwright screenshots, existing spec files, smoke test all pages from config |\n| **B: Functional Integration** | Data flow, API contracts, feature behavior, cross-component interactions | API curl tests, new Playwright E2E flows, pytest integration tests |\n\nBoth strategies must account for the real workflow gate. Strategy A may satisfy it through browser interaction. Strategy B may satisfy it through authenticated API calls, a real background job, or a service command that uses live database rows. If A cannot run browser automation, B's live API\u002Fservice evidence becomes mandatory.\n\n### Adapting to Input Mode\n\n| Input Mode | Tester A Emphasis | Tester B Emphasis |\n|-----------|-------------------|-------------------|\n| **Adversarial artifacts** | Regression test areas mentioned in final-plan.md | Test the specific changes proposed |\n| **Git diff** | Smoke test all pages, focus screenshots on changed components | Test changed API endpoints and service logic |\n| **Standalone** | Full smoke page regression (all pages from config) | Full API contract + core workflow E2E |\n\n---\n\n## Test Strategy Decision\n\nA key output of this skill is deciding whether to use existing test infrastructure or create new tests:\n\n### Use Existing Tests When\n- The change is in an area already covered by existing E2E specs in `{{frontend_working_dir}}\u002F{{e2e_dir}}\u002F`\n- Existing Playwright helpers cover the flow\n- The `tests\u002F` directory has relevant pytest tests\n\n### Create New Tests When\n- A new feature was added with no existing test coverage\n- The change affects a flow not covered by current specs\n- A gap is identified where regression could recur\n\nThe **test-plan.md** output explicitly recommends which approach for each area, referencing:\n- Existing test files that should be run\n- New test files that should be created (with skeleton code)\n- Whether tests should be Playwright (UI) or pytest (backend)\n\n---\n\n## Error Handling\n\n### Teammate Timeout \u002F Exit Recovery\n\n| Round | Failure | Recovery |\n|-------|---------|----------|\n| Round 1 | One tester fails | Wait for the other. C reviews single report for gaps. |\n| Round 1 | Both fail | Abort workflow. Report to user. |\n| Round 2 | Synthesizer fails | Re-spawn C. If second attempt fails, present raw reports. |\n| Round 3 | One tester fails | Proceed to Round 4 with available feedback. |\n| Round 3 | Both fail | C produces final report from synthesis alone. |\n| Round 4 | Synthesizer fails | Re-spawn reconciler. If fails again, present qa-synthesis.md. |\n\n### Test Infrastructure Failures\n\n| Failure | Recovery |\n|---------|----------|\n| Backend not running | Tester starts it: `cd {{backend_working_dir}} && {{activate_venv}} && {{backend_command}} &` |\n| Frontend not running | Tester starts it: `cd {{frontend_working_dir}} && {{frontend_command}} &` |\n| Playwright not installed | Tester runs: `cd {{frontend_working_dir}} && {{playwright_install}}` |\n| Database connection fails | Report as a critical issue in the QA report |\n\n---\n\n## Known Tradeoffs\n\n**Synthesizer bias toward dismissing findings**: C might dismiss legitimate issues as \"environment-specific\" or \"flaky\" rather than real bugs. The qa-reconciler role includes guidance to steelman findings and re-run tests before dismissing.\n\n**Test execution time**: Running Playwright tests takes real time. Each tester may take 3-5 minutes for UI tests. The parallel execution of A and B mitigates this.\n\n**Non-deterministic tests**: Some tests may be flaky. The QA report format requires testers to run failing tests multiple times and note consistency.\n\n---\n\n## Invoking the Skill\n\n### Direct Prompt\n\n```\nUse the adversarial QA framework to verify the changes in the current branch.\nThe relevant proposal is at .dev\u002Fproposals\u002Fpremium-lip-sync-regen\u002Ffinal-plan.md\n```\n\n### As a Reusable Command Wrapper\n\nInvoke with:\n```\n\u002Fadversarial-qa\n```\n\nWith specific scope:\n```\n\u002Fadversarial-qa Verify the BGM feature changes. Focus on Stage 9 assembly and the dashboard.\n```\n\nFor interactive mode:\n```\n\u002Fadversarial-qa --interactive Full regression check after the billing feature merge.\n```\n\n---\n\n## Output Directory\n\n```\n{project}\u002F.dev\u002Fqa\u002F{issue-slug}\u002F\n|-- test-scope.md             \u003C- Round 0: what we're testing and why\n|-- qa-report-A.md            \u003C- Round 1: QA Tester A (UI Regression)\n|-- qa-report-B.md            \u003C- Round 1: QA Tester B (Functional Integration)\n|-- qa-synthesis.md           \u003C- Round 2: Synthesizer C (lead-only)\n|-- review-for-A.md           \u003C- Round 2: C's review for A (no mention of B)\n|-- review-for-B.md           \u003C- Round 2: C's review for B (no mention of A)\n|-- manifest.yaml             \u003C- Round 4: Merged evidence manifest (machine-readable)\n|-- issues.md                 \u003C- Round 4: Final ranked issues (deliverable)\n|-- test-plan.md              \u003C- Round 4: Test cases to add (deliverable)\n|-- verification-report.yaml  \u003C- Round 5: Verification results (from adversarial-verify)\n+-- evidence\u002F\n    |-- screenshots\u002F          \u003C- All screenshots from QA testers\n    |-- api-responses\u002F        \u003C- Saved API response bodies\n    |-- test-results\u002F         \u003C- Test command stdout\u002Fstderr\n    |-- verify-cycle-1\u002F       \u003C- Re-taken screenshots + pixel diffs (from verify)\n    |   |-- screenshots\u002F\n    |   +-- diffs\u002F\n    +-- verify-cycle-2\u002F       \u003C- If second verification cycle runs\n        |-- screenshots\u002F\n        +-- diffs\u002F\n```\n\n---\n\n## Step 7: Verification Loop (Automated)\n\nAfter Step 6 (cleanup), the lead runs the verification loop. This is automatic -- no user intervention unless escalation is needed.\n\n### Cycle 1: Verify\n\n```\n1. Invoke adversarial-verify against {output_dir}\u002Fmanifest.yaml\n2. adversarial-verify re-runs all commands, re-takes all screenshots,\n   runs pixel-diff comparisons against baselines\n3. Produces verification-report.yaml with verdict: CLEAR or ISSUES_REMAIN\n```\n\n**If verdict = CLEAR**: Done. Present clean bill of health to user. Ship it.\n\n**If verdict = ISSUES_REMAIN**: Proceed to scoped re-QA.\n\n### Cycle 1.5: Scoped Re-QA\n\n```\n1. Read verification-report.yaml for still-open findings and regressed checks\n2. Re-run adversarial-qa in SCOPED mode:\n   - Only test the specific items that failed verification\n   - Input mode = \"scoped re-QA\" with the list of item IDs\n   - Same 4-round adversarial process, but narrower scope\n3. Produces updated manifest.yaml\n```\n\n### Cycle 2: Verify Again\n\n```\n1. Invoke adversarial-verify again (cycle 2)\n2. Same process: re-run commands, re-take screenshots, pixel-diff\n3. Produces updated verification-report.yaml\n```\n\n**If verdict = CLEAR**: Done. Ship it.\n\n**If verdict = ISSUES_REMAIN**: **Escalate to user.** Present:\n- The full evidence trail across both cycles\n- Which items remain unresolved\n- The verification-report.yaml with all evidence paths\n- Recommendation: manual investigation needed\n\n### Maximum Cycles\n\nThe verification loop runs at most **2 cycles**. If issues persist after 2 rounds of QA + verification, human intervention is required. This prevents infinite loops on genuinely hard-to-fix or environment-specific issues.\n\n```\nQA Round 1-4 → manifest.yaml\n  → Verify (cycle 1) → CLEAR? → done\n  → ISSUES_REMAIN → Scoped Re-QA → updated manifest.yaml\n    → Verify (cycle 2) → CLEAR? → done\n    → ISSUES_REMAIN → escalate to user\n```\n\n---\n\n## Reference Files\n\n| File | When to Read | Purpose |\n|------|-------------|---------|\n| `references\u002Fagent-teams-workflow.md` | Before starting orchestration | Complete tool call sequence for all rounds |\n| `references\u002Fqa-report-format.md` | When building tester prompts | QA report template with manifest requirements |\n| `references\u002Fsubagent-fallback.md` | If persistent teammate messaging is not available | Alternative workflow using Codex subagents or file coordination |\n| `agents\u002Fqa-tester.md` | When building A and B prompts | QA testing role, evidence collection protocol, manifest format |\n| `agents\u002Fqa-synthesizer.md` | When building C's Round 2 prompt | Cross-verification, synthesis, manifest merge |\n| `agents\u002Fqa-critic.md` | When messaging A and B in Round 3 | Feedback guidance for defending findings |\n| `agents\u002Fqa-reconciler.md` | When messaging C in Round 4 | Reconciliation + final report + manifest update |\n\n### Cross-Skill References\n\n| File | Skill | Purpose |\n|------|-------|---------|\n| `adversarial-verify\u002FSKILL.md` | adversarial-verify | Verification skill invoked in Step 7 |\n| `adversarial-verify\u002Freferences\u002Fmanifest-schema.md` | adversarial-verify | Canonical manifest.yaml schema (shared by both skills) |\n| `adversarial-verify\u002Freferences\u002Fverification-report-format.md` | adversarial-verify | Verification report output format |\n\n## Agent Roles Summary\n\n| Agent | File | Used In | Purpose |\n|-------|------|---------|---------|\n| QA Tester | `agents\u002Fqa-tester.md` | Round 1 (A and B) | Independent testing with assigned strategy + structured evidence |\n| QA Synthesizer | `agents\u002Fqa-synthesizer.md` | Round 2 (C) | Cross-verification, synthesis, manifest merge, isolated review files |\n| QA Critic | `agents\u002Fqa-critic.md` | Round 3 (A and B) | Review assessment, defend or accept findings |\n| QA Reconciler | `agents\u002Fqa-reconciler.md` | Round 4 (C) | Bias-aware reconciliation into final report + manifest update |\n","# Adversarial QA Framework\n\n## Overview\n\nThis Codex copy tracks the generalized adversarial QA workflow from the authoritative Claude skill. Two isolated QA testers independently test the application from different angles, then a QA Synthesizer cross-verifies their findings, deduplicates issues, and produces a ranked issues report plus a test plan for missing coverage.\n\nThe critical design principle is **information isolation**: QA Tester A and QA Tester B each have their own context window and test the application with zero knowledge of each other's findings. Only after both finish does the QA Synthesizer see both reports. Then A and B review the synthesizer's assessment, and the synthesizer reconciles everything into a final QA report.\n\nUnlike unit tests that validate isolated functions, this skill catches issues that only manifest in the running application: UI regressions, broken page loads, cross-stage interactions, API contract violations, and integration failures.\n\n## Non-Negotiable: Real Workflow Gate\n\nTreat fixture tests, mocked service tests, route-only unit tests, and direct helper assertions as supporting evidence only. They cannot prove the feature works.\n\nEvery QA pass must identify the real user workflow or live API\u002Fservice path that the changed feature is supposed to support, then attempt to execute that path against the running application or a real backend service instance. A QA report may not conclude `SHIP IT`, `accept`, `CLEAR`, or \"no confirmed product defects\" unless at least one tester or the synthesizer has exercised that live path and recorded the exact evidence.\n\nIf the live path is blocked by missing seed data, auth, browser launch failure, external service credentials, or environment instability, classify QA as **BLOCKED** or **NEEDS REAL-WORKFLOW TESTING**. Do not downgrade the missing live-path check into a harmless coverage note. File it as a top issue and make it the first item in `issues.md`.\n\nFor backend-heavy features, the live path can be an authenticated API request or service command that uses real database rows and the same endpoint\u002Fbackground job the product uses. It must not be only a mocked pytest fixture that creates idealized rows. For UI features, the live path must include browser interaction or a documented reason why browser execution is impossible plus an equivalent authenticated API reproduction.\n\n## When to Use\n\n- After an adversarial-proposal or adversarial-implementation produces changes\n- After merging a feature branch, before deploying\n- As a standalone regression check when something feels off\n- When unit tests pass but you suspect UI or integration issues\n- Any time you want high-confidence QA before shipping\n\n## Prerequisites\n\nThis skill follows the generalized multi-agent protocol from the authoritative Claude version.\n\n- In Codex, prefer native subagents to preserve A\u002FB\u002FC isolation.\n- When the upstream docs mention teammate APIs, map them to Codex delegation primitives such as `spawn_agent`, `send_input`, and `wait_agent`.\n- If you need a file-coordinated fallback instead of long-lived subagents, use `references\u002Fsubagent-fallback.md`.\n- `references\u002Fagent-teams-workflow.md` is retained as the upstream round-by-round protocol reference.\n\n### Runtime Prerequisites\n\nThe QA testers need a running application. Service commands come from the project config (`forge-project.yml`):\n\n- **Backend**: `{{backend_command}}` in `{{backend_working_dir}}\u002F` (or will be started by Playwright config)\n- **Frontend**: `{{frontend_command}}` in `{{frontend_working_dir}}\u002F` (or will be started by Playwright config)\n- **Playwright installed**: `cd {{frontend_working_dir}} && {{playwright_install}}`\n\nThe Playwright config (`{{frontend_working_dir}}\u002F{{playwright_config}}`) can auto-start servers (mode: `{{playwright_autostart}}`), so testers can also just run `{{e2e_command}}` directly.\n\n### Restart-on-entry (cross-worktree infra lock — qa \u002F qa-retry)\n\nThis QA stage runs under the cross-worktree **infra lock** (orchestrator-held;\nsee forge-orchestrator Hard Rule 23). All worktrees of this repo share one infra\nstack (fixed-port services + a shared DB), so a dev server left running by a\n*different* worktree's earlier stage would serve **that** worktree's code to your\ntests. Before testing, **restart the services against THIS worktree** so you\nexercise THIS worktree's code. This is config-driven and identity-checked — do\n**not** blindly kill whatever holds a port:\n\n1. **Expected service shape** (from the preamble \u002F `forge-project.yml`):\n   - backend: `{{backend_command}}` in `{{backend_working_dir}}\u002F`, URL `{{backend_url}}`\n   - frontend: `{{frontend_command}}` in `{{frontend_working_dir}}\u002F`, URL `{{frontend_url}}`\n   - the port is the `:PORT` in each URL.\n2. **Inspect each configured port:** `lsof -nP -iTCP:\u003Cport> -sTCP:LISTEN`; for any\n   listener get its command + cwd (`ps -o command= -p \u003Cpid>`, `lsof -p \u003Cpid> | grep -i cwd`).\n3. **Decide per listener:**\n   - **Matches the project's expected dev-server shape** (command matches\n     `{{backend_command}}`\u002F`{{frontend_command}}` AND cwd is a worktree of THIS\n     repo) → it is a Forge-owned server for some worktree. **Stop it** (`kill \u003Cpid>`;\n     `kill -9` only if it refuses) so you can start THIS worktree's server fresh.\n     **Log** pid, command, cwd, port, and the owning worktree.\n   - **Unknown process** (not the expected shape) → **STOP and ESCALATE — do NOT\n     kill it.** Report `INFRA ESCALATION: configured port \u003Cport> held by an unknown\n     process (pid=\u003Cpid> cmd=\u003Ccommand> cwd=\u003Ccwd>) not matching the expected\n     dev-server shape; refusing to kill.` Emit `FORGE_BLOCKED` and wait for a human.\n   - **Nothing listening** → proceed to start.\n4. **Start THIS worktree's services** from `{{backend_working_dir}}`\u002F`{{frontend_working_dir}}`,\n   or rely on Playwright `webServer` autostart **only if** it starts a fresh server\n   (NOT `reuseExistingServer: true`). Confirm the backend URL responds before testing.\n\nSafe under the lock: exactly one infra stage runs globally at a time, so stopping\na prior holder's leftover server cannot race another live QA run. (`coding` and\n`qa-fix` do NOT restart-on-entry — Hard Rule 23.)\n\n## Modes\n\n| Mode | Flag | Behavior |\n|------|------|----------|\n| **Default** | (none) | Fully automated. Lead orchestrates all rounds without pausing. |\n| **Interactive** | `--interactive` | Pauses after Round 1 (user reviews QA findings) and after Round 2 (user reviews synthesis). |\n\n## Input Modes\n\nThe skill adapts based on what artifacts are available:\n\n| Input | Behavior |\n|-------|----------|\n| **Adversarial artifacts exist** | Reads `final-plan.md` + `implementation.md` (if present) to understand what changed and what exact diffs were planned, focuses testing on affected areas |\n| **Git diff available** | Uses `git diff main...HEAD` to identify changed files and focus testing |\n| **Standalone** | Runs full regression suite — all smoke pages from config, API health |\n| **Scoped re-QA** | Receives a list of `still-open` \u002F `regressed` item IDs from a verification cycle, tests ONLY those areas |\n\n### Upstream Artifact Detection\n\nIn Step 0, check for these files in `.dev\u002Fproposals\u002F{slug}\u002F`:\n\n1. **`final-plan.md`** (from adversarial-proposal) — high-level plan, affected areas, design decisions\n2. **`implementation.md`** (from adversarial-implementation) — exact code diffs, file changes, test specs\n3. **`proposal-C.md`** (from adversarial-proposal) — synthesized investigation findings\n\nIf `implementation.md` exists, it provides the most precise testing scope: the exact files modified, the specific diffs applied, and the test specifications written. Embed a summary of these in the tester prompts so they know exactly what changed and can target their testing.\n\n## Architecture\n\n```\nROUND 0: Setup\n-----------------------------------------------------\n  Lead detects input mode (artifacts \u002F git diff \u002F standalone)\n  Lead identifies test scope and affected areas\n  Lead selects strategy pair:\n  +----------------------------------------------+\n  | QA Tester A: UI Regression Tester             |\n  |   - Page loads, component rendering           |\n  |   - Console errors, visual regressions        |\n  |   - Smoke tests for all pages from config      |\n  |   - Screenshot evidence                       |\n  |                                               |\n  | QA Tester B: Functional Integration Tester    |\n  |   - API endpoint contracts                    |\n  |   - Cross-stage data flow                     |\n  |   - Feature-specific E2E flows                |\n  |   - New\u002Fchanged functionality verification    |\n  +----------------------------------------------+\n\nROUND 1: Independent Testing (parallel)\n-----------------------------------------------------\n  QA Tester A (Strategy A)        QA Tester B (Strategy B)\n  +--------------------+          +--------------------+\n  | Own context         |          | Own context         |\n  |                     |          |                     |\n  | Sees ONLY:          |          | Sees ONLY:          |\n  | - Test scope        |          | - Test scope        |\n  | - Source files      |          | - Source files       |\n  | - Strategy A        |          | - Strategy B        |\n  |                     |          |                     |\n  | RUNS:               |          | RUNS:               |\n  | - Playwright tests  |          | - API curl tests    |\n  | - Screenshot checks |          | - Playwright E2E    |\n  | - Console error     |          | - pytest integration |\n  |   monitoring        |          |   tests             |\n  |                     |          |                     |\n  | CANNOT see B -------+-- X ----+-- CANNOT see A      |\n  |                     |          |                     |\n  | -> qa-report-A.md   |          | -> qa-report-B.md   |\n  +---------------------+          +---------------------+\n\n  \u003C-- Quality check: real test evidence, not speculation -->\n  \u003C-- [Interactive: Checkpoint 1] -->\n\nROUND 2: Synthesis + Cross-Verification\n-----------------------------------------------------\n  QA Synthesizer C (teammate)\n  +--------------------------------------+\n  | Phase 0: Runs own spot-checks        |\n  | Phase 1-2: Reads qa-report-A + B     |\n  | Phase 3: Cross-verifies key findings |\n  |   - Re-runs failing tests to confirm |\n  |   - Checks if A's issues reproduce   |\n  |   - Checks if B's issues reproduce   |\n  | Phase 4: Synthesizes + ranks         |\n  | Phase 5: Writes isolated review files|\n  |                                      |\n  | -> qa-synthesis.md   (lead-only)     |\n  | -> review-for-A.md   (A's eyes only) |\n  | -> review-for-B.md   (B's eyes only) |\n  +--------------------------------------+\n\n  \u003C-- [Interactive: Checkpoint 2] -->\n\nROUND 3: Feedback (parallel, ISOLATED)\n-----------------------------------------------------\n  QA Tester A (still alive)       QA Tester B (still alive)\n  +--------------------+           +--------------------+\n  | Reads ONLY:         |           | Reads ONLY:         |\n  | - review-for-A.md   |           | - review-for-B.md   |\n  | + own qa-report     |           | + own qa-report     |\n  |                     |           |                     |\n  | CANNOT see:         |           | CANNOT see:         |\n  | - qa-synthesis.md   |           | - qa-synthesis.md   |\n  | - review-for-B.md   |           | - review-for-A.md   |\n  | - qa-report-B.md    |           | - qa-report-A.md    |\n  |                     |           |                     |\n  | May re-run tests    |           | May re-run tests    |\n  | to defend findings  |           | to defend findings  |\n  |                     |           |                     |\n  | -> feedback to lead  |           | -> feedback to lead  |\n  +---------------------+           +---------------------+\n\nROUND 4: Reconciliation + Final Report\n-----------------------------------------------------\n  QA Synthesizer C (still alive)\n  +--------------------------------------+\n  | Receives feedback from A and B       |\n  | Reconciles into final QA report      |\n  | -> issues.md       (ranked issues)   |\n  | -> test-plan.md    (new test cases)  |\n  +--------------------------------------+\n```\n\n### Why Isolation Works for QA\n\nEach tester has its own context window. A and B share no findings during Round 1. This prevents:\n- **Confirmation bias**: If A finds an issue, B might unconsciously skip testing that area\n- **Tunnel vision**: Both testers following the same testing path\n- **False confidence**: One tester assuming the other covered something\n\n| Round | Who | Can See | Cannot See |\n|-------|-----|---------|------------|\n| 1 | A | Test scope + source files + Strategy A | B's report |\n| 1 | B | Test scope + source files + Strategy B | A's report |\n| 2 | C | Test scope + qa-report-A + qa-report-B + source files | -- |\n| 3 | A | review-for-A.md + its own qa-report-A.md | qa-synthesis.md, review-for-B.md, qa-report-B.md |\n| 3 | B | review-for-B.md + its own qa-report-B.md | qa-synthesis.md, review-for-A.md, qa-report-A.md |\n| 4 | C | A's feedback + B's feedback + its own prior synthesis | -- |\n\n### Why Teammates Stay Alive\n\nAll 3 teammates persist across rounds:\n- A and B retain their full testing context from Round 1 when reviewing C's assessment in Round 3\n- They can re-run specific tests to defend their findings\n- C retains its cross-verification notes from Round 2 when reconciling in Round 4\n\n---\n\n## How to Execute\n\nWhen the user triggers this skill, you (the lead) orchestrate the entire workflow. Read `references\u002Fagent-teams-workflow.md` for the complete tool call sequence.\n\nIn Codex, treat the teammate-specific calls in that reference as conceptual. Preserve the same isolation and sequencing with Codex subagents, or fall back to the file-based workflow when persistent subagent messaging is not practical.\n\n### Step 0: Load Project Config and Gather Context\n\n1. **Read project config**: `.claude\u002Fforge-project.yml`\n   - Extract all service, testing, auth, and QA config values\n   - Build the placeholder substitution map (see \"Config Substitution\" below)\n   - If the config file is missing, abort with: \"No forge-project.yml found. Create one before running adversarial QA.\"\n2. Get the **test scope** from the user (or auto-detect):\n   - If adversarial artifacts exist in `.dev\u002Fproposals\u002F{slug}\u002F`, read `final-plan.md` AND `implementation.md` (if present) to understand changes\n   - If `implementation.md` exists, extract the list of modified files, code diffs summary, and test specifications — this gives testers precise targeting\n   - If on a feature branch, run `git diff main...HEAD --name-only` to identify changed files\n   - If standalone, scope is \"full regression\"\n   - If scoped re-QA (from verification loop), scope is limited to the `still-open` \u002F `regressed` item IDs\n3. Identify **affected areas** using the smoke pages and core workflows from config\n4. Define the **real workflow gate** for this QA pass:\n   - Name the exact user action, API endpoint, background job, or service command that proves the changed feature works in the product.\n   - Identify the required real data row or setup, such as a candidate ID, draft ID, tenant, uploaded file, feed, or generated job.\n   - Decide how to create or locate that data without relying only on mocked fixtures.\n   - Add this gate to `test-scope.md` under `## Real Workflow Gate`.\n   - Tell both testers that this gate is mandatory. At least one tester must execute it, or the final QA status must be blocked.\n5. Check if both servers are running (backend on `{{backend_url}}`, frontend on `{{frontend_url}}`)\n6. Create output directory and evidence subdirectories:\n   ```\n   {project}\u002F.dev\u002Fqa\u002F{issue-slug}\u002F\n   {project}\u002F.dev\u002Fqa\u002F{issue-slug}\u002Fevidence\u002Fscreenshots\u002F\n   {project}\u002F.dev\u002Fqa\u002F{issue-slug}\u002Fevidence\u002Fapi-responses\u002F\n   {project}\u002F.dev\u002Fqa\u002F{issue-slug}\u002Fevidence\u002Ftest-results\u002F\n   ```\n7. Save the test scope as `test-scope.md`\n8. Read the agent role files to embed in teammate prompts:\n   - `agents\u002Fqa-tester.md`\n   - `agents\u002Fqa-synthesizer.md`\n   - `agents\u002Fqa-critic.md`\n   - `agents\u002Fqa-reconciler.md`\n   - `references\u002Fqa-report-format.md`\n\n### Step 1: Create Team and Tasks\n\n```\nTeamCreate({ team_name: \"adversarial-qa\" })\n```\n\nCreate 5 tasks with dependencies:\n\n| Task | Subject | Blocked By |\n|------|---------|-----------|\n| #1 | QA Report A: UI Regression Testing | -- |\n| #2 | QA Report B: Functional Integration Testing | -- |\n| #3 | QA Synthesis: Cross-verification + ranking | #1, #2 |\n| #4 | Feedback from A and B | #3 |\n| #5 | Final QA Report: issues.md + test-plan.md | #4 |\n\n### Step 2: Round 1 -- Spawn A and B (Parallel)\n\nSpawn both testers **in the same turn** so they run in parallel:\n\n```\nAgent({\n  team_name: \"adversarial-qa\",\n  name: \"qa-tester-a\",\n  subagent_type: \"general-purpose\",\n  prompt: \"{test scope + source files + qa-tester role + qa-report format\n            + Strategy A (UI Regression) assignment\n            + available test commands + Playwright helpers reference\n            + save as qa-report-A.md + ISOLATION RULE + wait for instructions}\",\n  run_in_background: true\n})\n\nAgent({\n  team_name: \"adversarial-qa\",\n  name: \"qa-tester-b\",\n  subagent_type: \"general-purpose\",\n  prompt: \"{same prompt but Strategy B (Functional Integration) assignment\n            + save as qa-report-B.md + ISOLATION RULE}\",\n  run_in_background: true\n})\n```\n\n**CRITICAL -- Isolation rule in both prompts:**\n> \"You are one of two independent QA testers. You must NOT read any other QA report files in the output directory. Do NOT look at any files named qa-report-B.md, qa-synthesis.md, review-for-A.md, review-for-B.md, issues.md, or test-plan.md. Only read the source files and test scope listed above.\"\n\n**CRITICAL -- Both prompts must instruct the teammate to WAIT after completing their report**, not exit. They will be needed again in Round 3.\n\nMonitor inbox for \"done\" messages from both A and B.\n\nAfter both arrive: **quality check** (real test evidence, actual pass\u002Ffail results, screenshots where applicable).\n\nReject the Round 1 reports as incomplete if neither report executed the real workflow gate. Send one or both testers back with explicit instructions to run the gate before synthesis. Do not let passing unit tests, mocked pytest tests, or route-only frontend tests substitute for the gate.\n\nFor wizard flows or multi-step forms, verify every step exposes its primary action in the expected navigation container, including the final step. Do not treat \"button exists somewhere on the page\" as sufficient.\n\n### Step 2.5: Convergence Check\n\nIf both testers find **zero issues**, all tests pass, and the real workflow gate was executed successfully, the synthesis adds limited value. In this case:\n1. Skip Rounds 2-3\n2. Spawn C for a lightweight review (spot-check a few areas neither explicitly tested)\n3. C writes `issues.md` (clean bill of health or minor findings) + `test-plan.md` directly\n\nIf both testers find zero issues but the real workflow gate was not executed, do not use convergence. Treat the QA pass as blocked and require a gate run.\n\n### Step 3: Round 2 -- Spawn C (After A and B Complete)\n\nWhen both \"done\" messages arrive and findings exist:\n\n```\nAgent({\n  team_name: \"adversarial-qa\",\n  name: \"qa-synthesizer-c\",\n  subagent_type: \"general-purpose\",\n  prompt: \"{instruction to run own spot-checks FIRST (Phase 0)\n            + then read qa-report-A.md and qa-report-B.md\n            + qa-synthesizer role\n            + cross-verify: re-run key failing tests to confirm\n            + verify whether the real workflow gate was actually executed\n            + produce THREE files: qa-synthesis.md, review-for-A.md, review-for-B.md\n            + isolation rules for review files\n            + wait for instructions}\",\n  run_in_background: true\n})\n```\n\nMonitor inbox for C's \"done\" message.\n\n### Step 4: Round 3 -- Message A and B with Their Review Files\n\nWhen C's \"done\" arrives, message both testers (they're still alive):\n\n```\nSendMessage({\n  type: \"message\",\n  recipient: \"qa-tester-a\",\n  content: \"Read review-for-A.md -- a QA reviewer's assessment of your findings.\n            ISOLATION RULE: Read ONLY review-for-A.md. Do NOT read qa-synthesis.md,\n            review-for-B.md, qa-report-B.md, or any other files in the output\n            directory. You may re-run tests to defend your findings. Give detailed feedback.\",\n  summary: \"Review feedback for QA Tester A\"\n})\n\nSendMessage({\n  type: \"message\",\n  recipient: \"qa-tester-b\",\n  content: \"Read review-for-B.md -- a QA reviewer's assessment of your findings.\n            ISOLATION RULE: Read ONLY review-for-B.md. Do NOT read qa-synthesis.md,\n            review-for-A.md, qa-report-A.md, or any other files in the output\n            directory. You may re-run tests to defend your findings. Give detailed feedback.\",\n  summary: \"Review feedback for QA Tester B\"\n})\n```\n\nMonitor inbox for feedback from both A and B.\n\n### Step 5: Round 4 -- Forward Feedback to C\n\nWhen both feedback messages arrive, forward them to C:\n\n```\nSendMessage({\n  type: \"message\",\n  recipient: \"qa-synthesizer-c\",\n  content: \"Both QA testers reviewed your assessment and responded. Reconcile\n            their feedback and produce the final QA report.\n\n            Feedback from QA Tester A:\n            {A's feedback from inbox}\n\n            Feedback from QA Tester B:\n            {B's feedback from inbox}\n\n            {qa-reconciler role embedded}\n\n            Save the final report as:\n            - {output_dir}\u002Fissues.md (ranked issues)\n            - {output_dir}\u002Ftest-plan.md (new test cases to add)\",\n  summary: \"Reconcile feedback into final QA report\"\n})\n```\n\nMonitor inbox for C's \"done\" message.\n\nWhen E2E covers wizard navigation, scope action assertions to the expected container (for example a `data-testid=\"wizard-nav\"` locator) instead of page-wide button selectors.\n\n### Step 6: Cleanup and Present\n\n```\nSendMessage({ type: \"shutdown_request\", recipient: \"qa-tester-a\", content: \"QA complete\" })\nSendMessage({ type: \"shutdown_request\", recipient: \"qa-tester-b\", content: \"QA complete\" })\nSendMessage({ type: \"shutdown_request\", recipient: \"qa-synthesizer-c\", content: \"QA complete\" })\n\u002F\u002F Wait for shutdown approvals\nTeamDelete()\n```\n\nPresent `issues.md` and `test-plan.md` to the user. Offer to:\n- Show the full QA trail (all reports)\n- Explain specific findings\n- Run additional targeted tests\n- Proceed to fix identified issues\n\n---\n\n## Building the Teammate Prompts\n\nEach teammate prompt must be **self-contained** -- embed everything inline since teammates don't inherit the lead's conversation.\n\n### Config Substitution\n\nBefore embedding agent role files and reference docs into sub-agent prompts, the orchestrator MUST substitute all `{{placeholder_tokens}}` with values from `forge-project.yml`. Sub-agents don't inherit the orchestrator's context, so they cannot read the config themselves.\n\nSubstitution map (built in Step 0):\n\n| Token | Config source |\n|-------|---------------|\n| `{{project_name}}` | `project.name` |\n| `{{backend_url}}` | `http:\u002F\u002Flocalhost:{services.backend.port}` |\n| `{{frontend_url}}` | `http:\u002F\u002Flocalhost:{services.frontend.port}` |\n| `{{backend_command}}` | `services.backend.command` |\n| `{{frontend_command}}` | `services.frontend.command` |\n| `{{frontend_working_dir}}` | `services.frontend.working_dir` |\n| `{{backend_working_dir}}` | `services.backend.working_dir` |\n| `{{activate_venv}}` | `services.backend.activate_venv` |\n| `{{test_command}}` | `testing.backend.command` |\n| `{{e2e_command}}` | `testing.frontend.e2e_command` |\n| `{{playwright_install}}` | `testing.frontend.playwright_install` |\n| `{{playwright_config}}` | `testing.frontend.playwright_config` |\n| `{{playwright_autostart}}` | `testing.frontend.playwright_autostart` |\n| `{{e2e_dir}}` | `testing.frontend.e2e_dir` |\n| `{{screenshot_full_page}}` | `testing.screenshot.full_page` |\n| `{{screenshot_viewport}}` | `testing.screenshot.viewport` |\n| `{{test_email}}` | `auth.test_email` |\n| `{{test_password}}` | `auth.test_password` |\n| `{{login_endpoint}}` | `auth.login_endpoint` |\n| `{{smoke_pages}}` | `qa.smoke_pages` (render as markdown list) |\n| `{{core_workflows}}` | `qa.core_workflows` (render as markdown list) |\n\nFor `{{smoke_pages}}`, render each entry as a markdown bullet with name, path, and auth requirement. For `{{core_workflows}}`, render each entry as a markdown bullet with name and description.\n\n### What to Embed in Every Prompt\n\n1. **The test scope** -- what to test and why (from test-scope.md)\n   - Include the `## Real Workflow Gate` verbatim and state that it is mandatory.\n2. **Affected source files** -- explicit list of files changed or relevant\n3. **The agent role** -- full content from the relevant `agents\u002F*.md` file\n4. **The QA report format** -- full content from `references\u002Fqa-report-format.md`\n5. **The output path and filename** -- exact save location\n6. **The isolation rule** -- for A and B in Rounds 1 and 3\n7. **The strategy assignment** -- for A and B in Round 1\n8. **The \"wait\" instruction** -- tell teammates to wait for further messages after completing\n9. **Available test commands** -- what tools they can use to test:\n\n```\n## Available Test Commands\n\n### Playwright (UI tests)\ncd {{frontend_working_dir}}\n\n# Run all existing Playwright tests\n{{e2e_command}}\n\n# Run a specific test file\n{{e2e_command}} {{e2e_dir}}\u002Fsome-test.spec.ts\n\n# Take a screenshot of any page\n{{screenshot_full_page}}\n\n# Run with headed browser for debugging\n{{e2e_command}} --headed\n\n### Backend (API tests)\ncd {{backend_working_dir}}\n{{activate_venv}}\n\n# Run all pytest tests\n{{test_command}}\n\n# Run specific test file\n{{test_command}} tests\u002Funit\u002Ftest_file.py -v\n\n# Run e2e tests\n{{test_command}} tests\u002Fe2e\u002F -v\n\n### API Smoke Tests (curl)\n# Health check\ncurl -s {{backend_url}}\u002Fdocs | head -20\n\n# Test authenticated endpoints (get token first)\ncurl -s -X POST {{backend_url}}{{login_endpoint}} \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"{{test_email}}\",\"password\":\"{{test_password}}\"}' | jq .token\n\n### Screenshots (always use Playwright CLI, never MCP)\n{{screenshot_full_page}}\n```\n\n### Strategy Details\n\n| Strategy | Focus | Test Types |\n|----------|-------|-----------|\n| **A: UI Regression** | Visual integrity, page loads, component rendering, console errors | Playwright screenshots, existing spec files, smoke test all pages from config |\n| **B: Functional Integration** | Data flow, API contracts, feature behavior, cross-component interactions | API curl tests, new Playwright E2E flows, pytest integration tests |\n\nBoth strategies must account for the real workflow gate. Strategy A may satisfy it through browser interaction. Strategy B may satisfy it through authenticated API calls, a real background job, or a service command that uses live database rows. If A cannot run browser automation, B's live API\u002Fservice evidence becomes mandatory.\n\n### Adapting to Input Mode\n\n| Input Mode | Tester A Emphasis | Tester B Emphasis |\n|-----------|-------------------|-------------------|\n| **Adversarial artifacts** | Regression test areas mentioned in final-plan.md | Test the specific changes proposed |\n| **Git diff** | Smoke test all pages, focus screenshots on changed components | Test changed API endpoints and service logic |\n| **Standalone** | Full smoke page regression (all pages from config) | Full API contract + core workflow E2E |\n\n---\n\n## Test Strategy Decision\n\nA key output of this skill is deciding whether to use existing test infrastructure or create new tests:\n\n### Use Existing Tests When\n- The change is in an area already covered by existing E2E specs in `{{frontend_working_dir}}\u002F{{e2e_dir}}\u002F`\n- Existing Playwright helpers cover the flow\n- The `tests\u002F` directory has relevant pytest tests\n\n### Create New Tests When\n- A new feature was added with no existing test coverage\n- The change affects a flow not covered by current specs\n- A gap is identified where regression could recur\n\nThe **test-plan.md** output explicitly recommends which approach for each area, referencing:\n- Existing test files that should be run\n- New test files that should be created (with skeleton code)\n- Whether tests should be Playwright (UI) or pytest (backend)\n\n---\n\n## Error Handling\n\n### Teammate Timeout \u002F Exit Recovery\n\n| Round | Failure | Recovery |\n|-------|---------|----------|\n| Round 1 | One tester fails | Wait for the other. C reviews single report for gaps. |\n| Round 1 | Both fail | Abort workflow. Report to user. |\n| Round 2 | Synthesizer fails | Re-spawn C. If second attempt fails, present raw reports. |\n| Round 3 | One tester fails | Proceed to Round 4 with available feedback. |\n| Round 3 | Both fail | C produces final report from synthesis alone. |\n| Round 4 | Synthesizer fails | Re-spawn reconciler. If fails again, present qa-synthesis.md. |\n\n### Test Infrastructure Failures\n\n| Failure | Recovery |\n|---------|----------|\n| Backend not running | Tester starts it: `cd {{backend_working_dir}} && {{activate_venv}} && {{backend_command}} &` |\n| Frontend not running | Tester starts it: `cd {{frontend_working_dir}} && {{frontend_command}} &` |\n| Playwright not installed | Tester runs: `cd {{frontend_working_dir}} && {{playwright_install}}` |\n| Database connection fails | Report as a critical issue in the QA report |\n\n---\n\n## Known Tradeoffs\n\n**Synthesizer bias toward dismissing findings**: C might dismiss legitimate issues as \"environment-specific\" or \"flaky\" rather than real bugs. The qa-reconciler role includes guidance to steelman findings and re-run tests before dismissing.\n\n**Test execution time**: Running Playwright tests takes real time. Each tester may take 3-5 minutes for UI tests. The parallel execution of A and B mitigates this.\n\n**Non-deterministic tests**: Some tests may be flaky. The QA report format requires testers to run failing tests multiple times and note consistency.\n\n---\n\n## Invoking the Skill\n\n### Direct Prompt\n\n```\nUse the adversarial QA framework to verify the changes in the current branch.\nThe relevant proposal is at .dev\u002Fproposals\u002Fpremium-lip-sync-regen\u002Ffinal-plan.md\n```\n\n### As a Reusable Command Wrapper\n\nInvoke with:\n```\n\u002Fadversarial-qa\n```\n\nWith specific scope:\n```\n\u002Fadversarial-qa Verify the BGM feature changes. Focus on Stage 9 assembly and the dashboard.\n```\n\nFor interactive mode:\n```\n\u002Fadversarial-qa --interactive Full regression check after the billing feature merge.\n```\n\n---\n\n## Output Directory\n\n```\n{project}\u002F.dev\u002Fqa\u002F{issue-slug}\u002F\n|-- test-scope.md             \u003C- Round 0: what we're testing and why\n|-- qa-report-A.md            \u003C- Round 1: QA Tester A (UI Regression)\n|-- qa-report-B.md            \u003C- Round 1: QA Tester B (Functional Integration)\n|-- qa-synthesis.md           \u003C- Round 2: Synthesizer C (lead-only)\n|-- review-for-A.md           \u003C- Round 2: C's review for A (no mention of B)\n|-- review-for-B.md           \u003C- Round 2: C's review for B (no mention of A)\n|-- manifest.yaml             \u003C- Round 4: Merged evidence manifest (machine-readable)\n|-- issues.md                 \u003C- Round 4: Final ranked issues (deliverable)\n|-- test-plan.md              \u003C- Round 4: Test cases to add (deliverable)\n|-- verification-report.yaml  \u003C- Round 5: Verification results (from adversarial-verify)\n+-- evidence\u002F\n    |-- screenshots\u002F          \u003C- All screenshots from QA testers\n    |-- api-responses\u002F        \u003C- Saved API response bodies\n    |-- test-results\u002F         \u003C- Test command stdout\u002Fstderr\n    |-- verify-cycle-1\u002F       \u003C- Re-taken screenshots + pixel diffs (from verify)\n    |   |-- screenshots\u002F\n    |   +-- diffs\u002F\n    +-- verify-cycle-2\u002F       \u003C- If second verification cycle runs\n        |-- screenshots\u002F\n        +-- diffs\u002F\n```\n\n---\n\n## Step 7: Verification Loop (Automated)\n\nAfter Step 6 (cleanup), the lead runs the verification loop. This is automatic -- no user intervention unless escalation is needed.\n\n### Cycle 1: Verify\n\n```\n1. Invoke adversarial-verify against {output_dir}\u002Fmanifest.yaml\n2. adversarial-verify re-runs all commands, re-takes all screenshots,\n   runs pixel-diff comparisons against baselines\n3. Produces verification-report.yaml with verdict: CLEAR or ISSUES_REMAIN\n```\n\n**If verdict = CLEAR**: Done. Present clean bill of health to user. Ship it.\n\n**If verdict = ISSUES_REMAIN**: Proceed to scoped re-QA.\n\n### Cycle 1.5: Scoped Re-QA\n\n```\n1. Read verification-report.yaml for still-open findings and regressed checks\n2. Re-run adversarial-qa in SCOPED mode:\n   - Only test the specific items that failed verification\n   - Input mode = \"scoped re-QA\" with the list of item IDs\n   - Same 4-round adversarial process, but narrower scope\n3. Produces updated manifest.yaml\n```\n\n### Cycle 2: Verify Again\n\n```\n1. Invoke adversarial-verify again (cycle 2)\n2. Same process: re-run commands, re-take screenshots, pixel-diff\n3. Produces updated verification-report.yaml\n```\n\n**If verdict = CLEAR**: Done. Ship it.\n\n**If verdict = ISSUES_REMAIN**: **Escalate to user.** Present:\n- The full evidence trail across both cycles\n- Which items remain unresolved\n- The verification-report.yaml with all evidence paths\n- Recommendation: manual investigation needed\n\n### Maximum Cycles\n\nThe verification loop runs at most **2 cycles**. If issues persist after 2 rounds of QA + verification, human intervention is required. This prevents infinite loops on genuinely hard-to-fix or environment-specific issues.\n\n```\nQA Round 1-4 → manifest.yaml\n  → Verify (cycle 1) → CLEAR? → done\n  → ISSUES_REMAIN → Scoped Re-QA → updated manifest.yaml\n    → Verify (cycle 2) → CLEAR? → done\n    → ISSUES_REMAIN → escalate to user\n```\n\n---\n\n## Reference Files\n\n| File | When to Read | Purpose |\n|------|-------------|---------|\n| `references\u002Fagent-teams-workflow.md` | Before starting orchestration | Complete tool call sequence for all rounds |\n| `references\u002Fqa-report-format.md` | When building tester prompts | QA report template with manifest requirements |\n| `references\u002Fsubagent-fallback.md` | If persistent teammate messaging is not available | Alternative workflow using Codex subagents or file coordination |\n| `agents\u002Fqa-tester.md` | When building A and B prompts | QA testing role, evidence collection protocol, manifest format |\n| `agents\u002Fqa-synthesizer.md` | When building C's Round 2 prompt | Cross-verification, synthesis, manifest merge |\n| `agents\u002Fqa-critic.md` | When messaging A and B in Round 3 | Feedback guidance for defending findings |\n| `agents\u002Fqa-reconciler.md` | When messaging C in Round 4 | Reconciliation + final report + manifest update |\n\n### Cross-Skill References\n\n| File | Skill | Purpose |\n|------|-------|---------|\n| `adversarial-verify\u002FSKILL.md` | adversarial-verify | Verification skill invoked in Step 7 |\n| `adversarial-verify\u002Freferences\u002Fmanifest-schema.md` | adversarial-verify | Canonical manifest.yaml schema (shared by both skills) |\n| `adversarial-verify\u002Freferences\u002Fverification-report-format.md` | adversarial-verify | Verification report output format |\n\n## Agent Roles Summary\n\n| Agent | File | Used In | Purpose |\n|-------|------|---------|---------|\n| QA Tester | `agents\u002Fqa-tester.md` | Round 1 (A and B) | Independent testing with assigned strategy + structured evidence |\n| QA Synthesizer | `agents\u002Fqa-synthesizer.md` | Round 2 (C) | Cross-verification, synthesis, manifest merge, isolated review files |\n| QA Critic | `agents\u002Fqa-critic.md` | Round 3 (A and B) | Review assessment, defend or accept findings |\n| QA Reconciler | `agents\u002Fqa-reconciler.md` | Round 4 (C) | Bias-aware reconciliation into final report + manifest update |\n",{"name":5,"description":7},"main","50bb36677eced958128cea262c304bf9ceee4d4e","codex-skills\u002Fadversarial-qa","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit","https:\u002F\u002Fgithub.com\u002FSirTheOracle","2026-10-20 00:50:37",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add SirTheOracle\u002Fforge-toolkit --skill adversarial-qa",{"tool":63,"command":64},"bunx","bunx skills add SirTheOracle\u002Fforge-toolkit --skill adversarial-qa",{"tool":66,"command":67},"pnpm","pnpm dlx skills add SirTheOracle\u002Fforge-toolkit --skill adversarial-qa","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-qa\u002FSKILL.md",true,[71,77,81,85,89,93,97,101],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"agents\u002Fopenai.yaml","REFERENCE","参考文档",242,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-qa\u002Fagents\u002Fopenai.yaml",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"agents\u002Fqa-critic.md",2213,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-qa\u002Fagents\u002Fqa-critic.md",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"agents\u002Fqa-reconciler.md",6459,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-qa\u002Fagents\u002Fqa-reconciler.md",{"path":86,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":87,"sourceHtmlUrl":88},"agents\u002Fqa-synthesizer.md",7288,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-qa\u002Fagents\u002Fqa-synthesizer.md",{"path":90,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":91,"sourceHtmlUrl":92},"agents\u002Fqa-tester.md",10761,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-qa\u002Fagents\u002Fqa-tester.md",{"path":94,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fagent-teams-workflow.md",19462,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-qa\u002Freferences\u002Fagent-teams-workflow.md",{"path":98,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fqa-report-format.md",8404,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-qa\u002Freferences\u002Fqa-report-format.md",{"path":102,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fsubagent-fallback.md",7067,"https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fcodex-skills\u002Fadversarial-qa\u002Freferences\u002Fsubagent-fallback.md",[106,132,154,171,192,215],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":46},"01M70FS350DG1MT6NBPYRPBFBQ","forge-orchestrator","tmux-based orchestrator for multi-agent building. Coordinates work across Claude Code and two Codex workers via forge-bridge. Translates user requests into dispatched tasks with structured audit logging. Replaces forge-dispatch, forge-state.yml, and stage-routing-map.yml.","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fforge-orchestrator\u002FSKILL.md",[],[113,114,115,116,117,118,119,120,121,122,123,124,125,38,126,127,128,129,130,131],"forge","orchestrator","forge orchestrator","bridge","map","code","tasks","across","work","audit","multi-agent","logging","tmux","audit logging","workers","stage","with","multi","state",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":46},"01M70FRYFZC51YWHVNNS3862PY","forge-fix-runner","Drain the GitHub `forge-fix` issue queue through the forge fix pipeline, one service at a time. Tallies actionable issues worst-first, scouts a service into a routing plan (clusters + quick\u002Ffull tiers), gets human approval, then dispatches fixes (quick = dispatched fix-code; full = forge-pipeline), gating every `Closes #N` on per-issue verification. Trigger when the user wants to fix triaged QA issues, \"work the forge-fix queue\", or \"run the fix runner\".","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fforge-fix-runner\u002FSKILL.md",[],[139,140,113,141,142,143,144,145,146,26,147,148,118,149,121,41,150,151,152,153],"runner","fix","forge fix runner","quick","pipeline","actionable","time","issues","gating","when","verification","human","run","at","issue",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":46},"01M70FRVVW3JAGQQK3FFR2VYRC","forge-coder","Procedural coding skill. Reads implementation.md, validates diffs against the codebase, applies changes in execution order, runs tests after each commit group, and produces a coder-report.md artifact.","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fforge-coder\u002FSKILL.md",[],[113,161,162,163,37,164,165,33,166,167,168,169,30,170],"forge coder","coder","diffs","execution","commit","artifact","procedural","report","codebase","coding",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":46},"01M70FRRYF6E22ECC8AGYYJEQ7","fix-reproducer","Optional first stage of the fix-pipeline. Verifies a reported bug is reproducible and captures deterministic repro steps, environment state, and evidence. Single procedural executor — does not spawn sub-agents and does not diagnose. Branches by environment: dev path runs the bug locally; prod path gathers observational evidence from the deployed environment. Always writes repro.md, even on NOT REPRODUCED. Trigger when the user invokes a fix-pipeline with the reproduce step enabled.","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ffix-reproducer\u002FSKILL.md",[],[178,179,140,180,181,182,183,143,184,185,186,187,188,189,190,148,128,129,131,191],"reproducer","fix reproducer","deterministic","evidence","executor","diagnose","Reproducible","environment","trigger","branches","dev","single","repro","first",{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"publishedAt":46},"01M70FRN8THYBT2DJVX99XQ3CM","fix-plan-reviewer","Single-agent adversarial reviewer for fix plans. Reads diagnosis.md and fix-plan.md, verifies the plan actually addresses the diagnosed cause, attacks the plan from multiple angles (cause coverage, defense adequacy, scope correctness, regression risk, rollback integrity, test plan integrity, risk honesty), and produces fix-review.md with severity-rated issues. Does NOT propose fixes for the issues — that is the revise mode of adversarial-fix-plan. Does NOT re-investigate the diagnosis. Trigger as the review stage of a fix-pipeline, after adversarial-fix-plan has produced fix-plan.md.","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ffix-plan-reviewer\u002FSKILL.md",[],[199,140,200,41,201,202,203,204,143,205,206,146,207,208,209,210,211,212,213,214],"fix plan reviewer","reviewer","plan reviewer","coverage","scope","regression","re","mode","review","diagnosis","defense","integrity","addresses","revise","attacks","as",{"skillNo":216,"name":217,"nameZh":6,"description":218,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":219,"categories":220,"keywords":221,"publishedAt":46},"01M70FRHGG6HN0VW483NDKX161","fix-coder","Mechanical single-executor that applies a vetted fix plan to the codebase. Reads fix-plan.md (the Changes, Defenses, and Test Plan sections), translates file-level changes into concrete diffs, applies them, runs the test plan, validates that the bug is no longer reproducible (dev) or that the test exercising the failing path passes (prod), and produces a single fix commit. Stays strictly in scope: does NOT modify the plan, does NOT re-investigate, does NOT touch files outside the plan. Always writes fix-coder-report.md, even on failure. Trigger as the implementation stage of a fix-pipeline, after fix-plan-reviewer has approved fix-plan.md.","https:\u002F\u002Fgithub.com\u002FSirTheOracle\u002Fforge-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ffix-coder\u002FSKILL.md",[],[140,222,162,182,203,143,205,223,224,163,225,165,200,41,226,227,214,228,184,186],"fix coder","failing","mechanical","files","bug","path","test plan"]