feat(mcp): expose nested execution metadata in parse_mode (#1312)#1327
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Add executionPlan and teamsCapability fields to ParseModeResult. ModeHandler now injects TeamsCapabilityService, builds an ExecutionPlan from dispatchReady agents, and includes Teams runtime capability status in the parse_mode response. Nested plan (subagent+teams) is built when Teams coordination is enabled. All new fields are optional for backward compatibility.
99156c7 to
b9ca0d0
Compare
JeremyDev87
commented
Apr 4, 2026
JeremyDev87
left a comment
Owner
Author
There was a problem hiding this comment.
Review: ✅ APPROVE
CI Status: ALL PASS (26/26 including circular-check)
Code Quality:
- ParseModeResult extended:
executionPlan?andteamsCapability?fields added - mode.handler.ts: TeamsCapabilityService injected, execution plan + capability status surfaced in PLAN/EVAL modes
- execution-plan.types.ts: New dedicated types file — breaks circular dep cleanly
- InnerTeamsSpec: Added to execution-plan.types.ts for TaskmaestroAssignment
- Circular dep fix: agent.types uses local Mode alias, re-exports from execution-plan.types
- All spec files updated: mode.handler, abstract-handler, mcp.service
Architecture:
- Clean amend — single commit with all fixes included
- Rebase conflict with PR #1321 resolved (InnerTeamsSpec + re-export merged)
Checklist:
- CI ALL PASS (circular-check passes)
- No unused imports
- Backward compatible (new fields optional)
- Clean git history (amend, no fix commits)
✅ Nested execution metadata exposed in parse_mode responses.
Closed
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
executionPlanandteamsCapabilityoptional fields toParseModeResultinkeyword.types.tsTeamsCapabilityServiceintoModeHandlerto resolve runtime Teams capability statusExecutionPlanfromdispatchReadyagents: simple subagent plan or nested subagent+teams plan when Teams is enabledserializeExecutionPlan()for JSON-safe responseCloses #1312
Test plan
teamsCapabilitystatus (default: disabled)included_agentincludesexecutionPlanwithstrategy: "subagent"strategy: "subagent+teams"executionPlanwhen nodispatchReadyagentsTeamsCapabilityServicefailure handled gracefully (no crash)teamsCapability.source