Skip to content

Add Kiro agent subagent invocation validation rules #604

@avifenesh

Description

@avifenesh

Summary

Research revealed Kiro has a working subagent system. Agents in .kiro/agents/*.json can be invoked as subagents by the primary agent. This creates new validation opportunities.

Context

From GitHub issues on kirodotdev/kiro:

  • #5743: Subagent spawning broke in v1.26.0 ("unable to find agent with name")
  • #4262: Multi-agent orchestration feature request (sync/async subagents)
  • #5449: Subagent permission inheritance request
  • #5071: Subagent tool approval improvements

New rules to consider

Rule What Confidence
KR-AG-006 Agent references non-existent subagent in prompt (mentions agent name not in .kiro/agents/) MEDIUM
KR-AG-007 Agent has broader tools than a subagent it invokes (permission escalation risk) MEDIUM
KR-AG-008 Agent prompt instructs parallel subagent spawning (not supported - sequential only) LOW

Depends on

Acceptance criteria

  • Evaluate feasibility of cross-agent reference validation
  • Add rules to rules.json if confidence is HIGH enough
  • Tests for subagent validation patterns

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions