Skip to content

.NET: feat(samples): add Squad + DTS incident-response sample#6146

Open
tamirdresher wants to merge 2 commits into
microsoft:mainfrom
tamirdresher:add-squad-dts-sample
Open

.NET: feat(samples): add Squad + DTS incident-response sample#6146
tamirdresher wants to merge 2 commits into
microsoft:mainfrom
tamirdresher:add-squad-dts-sample

Conversation

@tamirdresher
Copy link
Copy Markdown

Motivation and Context

This sample contributes the squad-agent-framework-demo to the public MAF samples library as the first end-to-end example showing GitHub Copilot Squad composed with MAF + Durable Task Scheduler (DTS).

The sample directly complements the existing Harness samples — it explores the OnPermissionRequest governance pattern which sits at a different point on the trust spectrum from Harness's ToolApproval.

Description

Adds dotnet/samples/02-agents/SquadWithDTS/ — a self-contained, runnable incident-response demo.

New sample: SquadWithDTS

Key files:

  • Agents/SquadAgent.csSquadAgent : AIAgent wrapping GitHubCopilotAgent with OTel spans + metrics
  • Workflows/IncidentExample.cs — 9-executor DTS-backed durable workflow with diagnose-loop
  • Workflows/Executors/TriageExecutor.cs — AI triage via Squad: severity, subsystem, hypothesis
  • Workflows/Executors/DiagnoseExecutor.cs — Squad diagnose-loop: Resolved / NeedsMoreInvestigation / Inconclusive
  • Subsystems/*.cs — Dynamic AI subsystem squads (Database / Network / Auth / Payments) routed by triage
  • Squad.SquadWithDTS.AppHost/AppHost.cs — Aspire AppHost wiring DTS emulator + Foundry Local

Updated: Harness/README.md

Adds "Related samples" section with governance-pattern comparison (ToolApproval vs OnPermissionRequest).

Contribution Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation (updated README)
  • I have updated the documentation accordingly
  • I have added tests to cover my changes (sample code)
  • All new and existing tests passed

Adds a new sample at dotnet/samples/02-agents/SquadWithDTS/ demonstrating:
- SquadAgent : AIAgent wrapping GitHub Copilot Squad with OTel spans/metrics
- DTS-backed durable incident-response workflow (9 executors, diagnose-loop)
- Dynamic subsystem routing via conditional workflow edges
- Aspire AppHost wiring DTS emulator + Foundry Local
- Harness README cross-link to the governance-pattern comparison

Companion blog post: https://tamirdresher.com/2026/05/20/deterministic-meets-squads/
Related issue: microsoft#3485
Copilot AI review requested due to automatic review settings May 28, 2026 12:18
@moonbox3 moonbox3 added documentation Improvements or additions to documentation .NET labels May 28, 2026
@github-actions github-actions Bot changed the title feat(samples): add Squad + DTS incident-response sample .NET: feat(samples): add Squad + DTS incident-response sample May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants