Commit 0bb4f9e
committed
fix(code-review): load a domain critic's own agent definition into its spawn prompt
A domain critic declared in a project's critic-gates.json spawns as the
generic code-review:code-review-worker and receives only its name as a
quoted CRITIC_DOMAIN string, so `.claude/agents/<critic-name>.md` — which
may define the critic's whole method — was never loaded. The only
context-loading line in that prompt was the unranked "Read the repository
CLAUDE.md for project context", which zero of twelve workers across three
real runs obeyed.
derive-spawn-spec now resolves the agent file and puts its path on the
domain critic descriptor as agent_definition_file; cmd_route does the same
for the fast path's PASS 3 under route.domain_critic_definitions. The
spawn-reviewers skill turns that path into a non-negotiable first step in
the critic's prompt. Both keys are omitted when the file does not exist, so
a critic without one keeps a byte-identical descriptor, routing payload,
and prompt.1 parent 70c6b9e commit 0bb4f9e
5 files changed
Lines changed: 248 additions & 3 deletions
File tree
- plugins/code-review
- .claude-plugin
- skills/spawn-reviewers
- tools/python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| 236 | + | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
240 | 259 | | |
241 | 260 | | |
242 | 261 | | |
| |||
441 | 460 | | |
442 | 461 | | |
443 | 462 | | |
| 463 | + | |
444 | 464 | | |
445 | 465 | | |
446 | 466 | | |
447 | 467 | | |
448 | 468 | | |
| 469 | + | |
| 470 | + | |
449 | 471 | | |
450 | 472 | | |
451 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1713 | 1713 | | |
1714 | 1714 | | |
1715 | 1715 | | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
1716 | 1728 | | |
1717 | 1729 | | |
1718 | 1730 | | |
| |||
1722 | 1734 | | |
1723 | 1735 | | |
1724 | 1736 | | |
| 1737 | + | |
| 1738 | + | |
1725 | 1739 | | |
1726 | 1740 | | |
1727 | 1741 | | |
| |||
7741 | 7755 | | |
7742 | 7756 | | |
7743 | 7757 | | |
| 7758 | + | |
| 7759 | + | |
| 7760 | + | |
| 7761 | + | |
| 7762 | + | |
| 7763 | + | |
| 7764 | + | |
| 7765 | + | |
| 7766 | + | |
| 7767 | + | |
| 7768 | + | |
| 7769 | + | |
| 7770 | + | |
| 7771 | + | |
| 7772 | + | |
| 7773 | + | |
| 7774 | + | |
| 7775 | + | |
| 7776 | + | |
| 7777 | + | |
| 7778 | + | |
| 7779 | + | |
| 7780 | + | |
| 7781 | + | |
| 7782 | + | |
| 7783 | + | |
| 7784 | + | |
| 7785 | + | |
| 7786 | + | |
| 7787 | + | |
| 7788 | + | |
| 7789 | + | |
| 7790 | + | |
| 7791 | + | |
| 7792 | + | |
| 7793 | + | |
| 7794 | + | |
| 7795 | + | |
| 7796 | + | |
| 7797 | + | |
7744 | 7798 | | |
7745 | 7799 | | |
7746 | 7800 | | |
| |||
11990 | 12044 | | |
11991 | 12045 | | |
11992 | 12046 | | |
| 12047 | + | |
11993 | 12048 | | |
11994 | 12049 | | |
11995 | 12050 | | |
| |||
12008 | 12063 | | |
12009 | 12064 | | |
12010 | 12065 | | |
| 12066 | + | |
| 12067 | + | |
| 12068 | + | |
| 12069 | + | |
| 12070 | + | |
| 12071 | + | |
12011 | 12072 | | |
12012 | 12073 | | |
12013 | 12074 | | |
| |||
12164 | 12225 | | |
12165 | 12226 | | |
12166 | 12227 | | |
12167 | | - | |
| 12228 | + | |
12168 | 12229 | | |
12169 | 12230 | | |
12170 | 12231 | | |
| |||
12173 | 12234 | | |
12174 | 12235 | | |
12175 | 12236 | | |
12176 | | - | |
| 12237 | + | |
| 12238 | + | |
| 12239 | + | |
| 12240 | + | |
| 12241 | + | |
| 12242 | + | |
| 12243 | + | |
| 12244 | + | |
12177 | 12245 | | |
12178 | 12246 | | |
12179 | 12247 | | |
| |||
0 commit comments