--- name: wingwire-parallel-sprint description: Use when running parallel WebDev WingWire sprints. license: MIT author: HamaratLabs version: 1.0.0 --- # WingWire Web — parallel WebDev sprint (PM agent) ## Flow that worked 1. PM writes the contract file first (types only, e.g. `src/agents/contract.ts`), commits it. 2. One WebDev "Faz 0" run builds the skeleton: file boundaries, stubs, routes, plugin, playwright config. Commit. 3. Parallel parts in sibling worktrees from that commit; symlink `node_modules` to the main track worktree (ignored via `.git/info/exclude`). 4. Review each part (subagent or a separate read-only WebDev run writing findings to a scratch file), send a fix brief, merge into the track branch, then one integration WebDev run. 5. PM re-runs build/test/e2e (fake + `WW_E2E_LIVE=1`) under `heavy.lock` and checks screenshots with vision before reporting. ## Pitfalls - `git -C worktree add ../.worktrees/x` resolves relative to the worktree → nested `.worktrees/.worktrees/`. Use absolute paths. - One-shot sessions may restrict some inline-script and backgrounding commands; write scripts to files and use the agent's own file/background tools instead of working around the restriction. - `delegate_task` budget in one-shot runs is 2 children total; plan reviews as WebDev read-only runs instead. - Agent write tools protect files named `SOUL.md`/`AGENTS.md` (also as test fixtures). Do not route around this (no renamed copies that get renamed back); if a test truly needs such a fixture, ask the user for explicit approval and let them create it. - If the user restricts model providers, pin them explicitly (never switch provider, never let the worker profile fall back): e.g. `hermes -p chat --provider -m ...`, and cite the per-session provider counts from the worker's `agent.log` in the report. On HTTP 429: commit work, report "kota", exit — no sleep loop. - Before merging, audit model provenance: grep the worker's `agent.log` by session id for `provider=`; "registered ... provider" lines of the OpenAI Codex plugin are NOT model calls. - When WebDev "fixes" a flaky screenshot/e2e with reload/retry, find the root cause first — it was masking a real product bug (archived-video duration pill missing until reload). - Contact sheets for vision review: `env -u PYTHONPATH /usr/local/bin/python3 sheets.py ` (Hermes venv PYTHONPATH breaks PIL). - Quiet-mode WebDev output appears only at exit; poll progress with `git log`/`git status` in the worktree. - Profile introspection can misreport which toolsets are enabled; confirm from the profile config instead of trusting a single `enabled` flag. - Hook matchers must use the agent's actual tool names; a matcher written for another agent's tool name never fires. Report it as ineffective, don't edit real profiles. - Shot/e2e specs that write `docs/screenshots` must be gated behind `WW_E2E_SHOTS=1`, otherwise live runs dirty the tree.