Skip to content

fix(document-review): add recursion guard to reviewer subagent template#523

Merged
tmchow merged 1 commit intomainfrom
tmchow/check-issue-520
Apr 6, 2026
Merged

fix(document-review): add recursion guard to reviewer subagent template#523
tmchow merged 1 commit intomainfrom
tmchow/check-issue-520

Conversation

@tmchow
Copy link
Copy Markdown
Collaborator

@tmchow tmchow commented Apr 6, 2026

Summary

Adds a recursion guard to the document-review subagent template so reviewer subagents cannot be routed back into compound-engineering skills or agents (e.g., re-entering document-review or ce:plan). The guard is intent-based and scoped to compound-engineering, so it survives skill/agent renames and doesn't block use of other plugins or platform tools.

Closes #520

Reviewer subagents spawned by document-review could be routed back into
the parent workflow by host skill-routing, causing nested reviewer trees.
Add an explicit guard telling leaf reviewers not to invoke
compound-engineering skills or agents unless the template instructs them to.

Closes #520

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tmchow tmchow merged commit 36d8119 into main Apr 6, 2026
2 checks passed
@github-actions github-actions bot mentioned this pull request Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[compound-engineering] Bug: document-review reviewer subagents recurse into document-review

1 participant