perk /submit — your PR has merge conflicts against `{{ base }}`; resolve them before the work is submitted for review. This is attempt {{ attempt }} of {{ cap }}.
1. Dispatch the `perk.conflict-resolver` agent via ONE `subagent` call in `workflowScript` mode with top-level `async: false` and `context: "fresh"`{% if model %}, and pass top-level `model: "{{ model }}"` on that call (the configured [models.subagents] conflict-resolver model){% else %} (no model override — the agent's default model is used){% endif %} — direct `{agent, task}` execution was removed; the script is an explicit-return one-child run: `const r = await runs.run("resolve", {agent: "perk.conflict-resolver", task: "<the instruction of step 2>"}); return {key: r.key, ok: r.ok, error: r.error ?? null, output: r.output};`. A fresh context keeps this implementation session's history from biasing the resolution.
2. Tell it: rebase the PR branch onto `{{ base }}` and **carefully** resolve all merge conflicts so the resulting diff is **clean** (no stray markers, no unrelated churn) and **correct** (preserve the change's intent on both sides). The child reads its own plan + PR diff context first (it runs `perk pr review-context`) so it resolves with the change's intent in hand, verifies, and force-pushes — the raw diff never enters this session.
3. After the child reports success, call `/submit` again to re-verify mergeability. Do NOT edit or resolve conflicts yourself here — the child owns the rebase/resolve/push.