Skip to content

MIL-115 Add A2A HITL skill loading demo#1860

Open
davidmarkgardiner wants to merge 1 commit into
kagent-dev:mainfrom
davidmarkgardiner:symphony/MIL-115-a2a-hitl-skills
Open

MIL-115 Add A2A HITL skill loading demo#1860
davidmarkgardiner wants to merge 1 commit into
kagent-dev:mainfrom
davidmarkgardiner:symphony/MIL-115-a2a-hitl-skills

Conversation

@davidmarkgardiner
Copy link
Copy Markdown

@davidmarkgardiner davidmarkgardiner commented May 13, 2026

Refs MIL-115

Summary

  • add an examples/a2a-human-in-the-loop kustomize demo with coordinator and specialist agents
  • demonstrate A2A delegation from coordinator to specialist
  • demonstrate a human approval checkpoint with the built-in ask_user HITL tool
  • demonstrate runtime skill loading from https://github.com/kagent-dev/kagent.git via spec.skills.gitRefs

Validation

  • kubectl kustomize examples/a2a-human-in-the-loop
  • kubectl apply --dry-run=server -k examples/a2a-human-in-the-loop
  • temporary live deploy with placeholder model secret: both agent/a2a-hitl-specialist and agent/a2a-hitl-coordinator reached Ready=True; demo resources and secret were deleted afterward

Note: actual chat completion still requires a real OPENAI_API_KEY secret as documented in the README.

Copilot AI review requested due to automatic review settings May 13, 2026 06:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new kustomize-based example demonstrating A2A delegation with a human-in-the-loop checkpoint and runtime skill loading from a Git repository, intended as a runnable demo for MIL-115.

Changes:

  • Introduces a new examples/a2a-human-in-the-loop kustomize demo (ModelConfig + two declarative Agents).
  • Implements coordinator→specialist delegation over A2A, with the specialist pausing on ask_user approval before proceeding.
  • Demonstrates dynamic skill loading via spec.skills.gitRefs and running the loaded skill via the skills + bash tools.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
examples/a2a-human-in-the-loop/README.md Deployment/run/cleanup instructions for the A2A + HITL + git skill loading demo.
examples/a2a-human-in-the-loop/modelconfig.yaml Adds an OpenAI-backed ModelConfig used by the demo agents.
examples/a2a-human-in-the-loop/kustomization.yaml Wires the example resources together for kubectl apply -k.
examples/a2a-human-in-the-loop/agents.yaml Defines the coordinator and specialist agents, including A2A config and git skill loading.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

skills:
gitRefs:
- url: https://github.com/kagent-dev/kagent.git
ref: main
Comment on lines +5 to +6
- `a2a-hitl-coordinator` receives the user request and delegates to the specialist by using kagent's Agent tool, which communicates over A2A.
- `a2a-hitl-specialist` pauses at a human approval checkpoint with the built-in `ask_user` tool, then loads and runs the `kebab-maker` skill from `https://github.com/kagent-dev/kagent.git` at runtime through `spec.skills.gitRefs`.
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.

2 participants