---
name: gate-attribution
description: Per-task gate dispatch protocol. Documents the single-taskId attribution rule and parallel-lane optimization for reviewer/test_engineer gates.
Gate Attribution
The rule
The gate tracker attributes reviewer/test_engineer dispatches PER TASK (single taskId in the prompt). Set-dispatches covering multiple tasks do NOT count per-task, even with per-task verdicts.
Protocol
For each task requiring a gate: Dispatch a separate reviewer and/or test_engineer with exactly ONE taskId
Minimize overhead via parallel dispatch:
dispatch_lanes_async with:
- common_prompt: shared verification context
- lanes: one lane per task, each with a single taskId
- max_concurrent: up to 3
Collect + attribute: Each lane result auto-attributes to its taskId
Do NOT batch: Even for identical reviews, dispatch separately
Optimization for trivial tasks
For pure ceremony gates (1-line doc fix):
TASK: Verify task X.Y. Run skill-mirrors.test.ts. PASS/FAIL.
taskId: X.Y
Why this exists
The gate tracker (src/hooks/delegation-gate.ts) keys delegation chains by taskId. Multi-taskId prompts don't create separate chains. Tracked in issue #1746 item 6.
1---2name: gate-attribution-23description: ---4---5---6name: gate-attribution7description: Per-task gate dispatch protocol. Documents the single-taskId attribution rule and parallel-lane optimization for reviewer/test_engineer gates.8---910# Gate Attribution1112## The rule13The gate tracker attributes reviewer/test_engineer dispatches PER TASK (single taskId in the prompt). Set-dispatches covering multiple tasks do NOT count per-task, even with per-task verdicts.1415## Protocol161. **For each task requiring a gate:** Dispatch a separate reviewer and/or test_engineer with exactly ONE taskId172. **Minimize overhead via parallel dispatch:**18 ```19 dispatch_lanes_async with:20 - common_prompt: shared verification context21 - lanes: one lane per task, each with a single taskId22 - max_concurrent: up to 323 ```243. **Collect + attribute:** Each lane result auto-attributes to its taskId254. **Do NOT batch:** Even for identical reviews, dispatch separately2627## Optimization for trivial tasks28For pure ceremony gates (1-line doc fix):29```30TASK: Verify task X.Y. Run skill-mirrors.test.ts. PASS/FAIL.31taskId: X.Y32```3334## Why this exists35The gate tracker (`src/hooks/delegation-gate.ts`) keys delegation chains by taskId. Multi-taskId prompts don't create separate chains. Tracked in issue #1746 item 6.
Run npx skillmds@latest add zaxbysauce/gate-attribution-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
--- It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
zaxbysauce (@zaxbysauce) published this skill. Their other Agent Skills are listed on their SkillMD profile.