Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(agents-orchestration): subagent tool-scoping + optional review gates - #6

Merged
meshin-dev merged 1 commit into
mainfrom
feat/subagent-review-gates
May 24, 2026
Merged

feat(agents-orchestration): subagent tool-scoping + optional review gates#6
meshin-dev merged 1 commit into
mainfrom
feat/subagent-review-gates

Conversation

@meshin-dev

Copy link
Copy Markdown
Contributor

Summary

  • agents-orchestration.md: NEW "Subagent tool scoping (keep fan-out alive)" section (the top-level oneOf/allOf/anyOf failure mode that silently kills all fan-out, and the least-privilege tools: allowlist rule) + NEW "Optional review gates" section (inline-gated by subagent_review): Gate 1 plan-review before confirmation, Gate 2 conformance-review at merge-prep, both opt-in and foreground.
  • New feature flag subagent_review (requires agents_orchestration) wired through scripts/lib/config.mjs FEATURE_NAMES, the Features tables, the preset matrix, and the 12 -> 13 counts.
  • Cross-links from parallel-validation.md, pr-loop.md, plan-to-issues.md. Companion scoped agents ship in .claude/agents/.

Closes #4. Supersedes #5 (GitHub auto-closed #5 when its stacked base branch was deleted on the #3 merge; this is the same commit rebased onto main).

…al review gates (subagent_review flag)

Add an always-on subagent tool-scoping resilience rule to agents-orchestration.md:
the Anthropic tool-use API rejects top-level oneOf/allOf/anyOf in a tool's
input_schema, and a subagent's init advertises its whole tool surface in one
request, so a single bad tool kills every subagent type at once and silently.
Read-only fan-out agents (explore / plan / review) must declare a least-privilege
tools allowlist (Read, Grep, Glob, Bash; WebFetch/WebSearch only for docs) so no
connector schema reaches their init request; for owned MCP servers, strip
top-level combinators from the advertised schema while keeping call-time
validation (the mcp-github pattern); disable third-party connectors you cannot edit.

Add two OPT-IN parallel-subagent review gates, gated by a new feature flag
subagent_review: Gate 1 offers a plan-review before a non-trivial plan is
confirmed; Gate 2 offers a conformance-review of the built work against the plan
at merge-prep. Both ask the user each time and use the scoped ctxr-* agents; the
foreground-only polling discipline is unchanged. Cross-link parallel-validation.md
as the issue-tree specialization, and reference the gates from pr-loop.md and
plan-to-issues.md.

Wire the new subagent_review flag everywhere the existing flags appear (12 -> 13):
FEATURE_NAMES in scripts/lib/config.mjs, the schema + flag-table + preset matrix
in local-config.md, templates/config.local.md, index.md, and README.md. The flag
conceptually requires agents_orchestration (stated in the flag-table row); it is
on for single-issue and full, off for pr-only. No frontmatter requires.config is
added; agents-orchestration.md keeps feature: agents_orchestration and gates the
new section with an inline Skip callout.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 24, 2026 07:58
@meshin-dev
meshin-dev merged commit e03d2d0 into main May 24, 2026
1 check failed
@meshin-dev
meshin-dev deleted the feat/subagent-review-gates branch May 24, 2026 07:58
@meshin-dev
meshin-dev removed the request for review from Copilot May 24, 2026 08:20
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.

Subagent tool-scoping resilience + optional parallel-review gates

1 participant