Agents: executeParallelSubAgents silently swallows non-Consult child Chat steps and over-cap Consult escalations

Aperta
#6,711 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Read packages/AI/Agents/src/base-agent.ts at mergeParallelExecutionsIntoParent and executeParallelSubAgents, then compare the parallel path with handleSingleSubAgentChatStep. Trace how non-Consult and over-cap child Chat results are validated and how feedback is raised. Done means these results follow the intended validation and feedback flow without incorrectly marking an awaiting parent as successful.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

From the post-release WS3 independent review of Consult & Handoff (PR #5055, tracked in PR #6482 / plans/video-studio-ws3-consult-handoff-review.md).

Location
Defect

In mergeParallelExecutionsIntoParent lines 18383-18406, when a parallel sub-agent finishes with agentRun.FinalStep === 'Chat', it only handles this.isSubAgentConsultActive(resolvedOption, params) when round <= maxRounds:

  • When resolvedOption !== 'Consult' (e.g., null, 'Failed', 'Retry', 'Success'), or when round > maxRounds, nothing sets execution.consult, triggers validateChatNextStep, or calls raiseFeedbackRequest.
  • mergeParallelExecutionsIntoParent falls through to normal completion, and if request.terminateAfter === true, shouldTerminateParent finishes the parent with step: 'Success' even though the child ended in AwaitingFeedback.
Suggested Fix

Route non-Consult and over-cap parallel child Chat results through validateChatNextStep (and raiseFeedbackRequest when validatedStep.step === 'Chat' && this._depth === 0) inside mergeParallelExecutionsIntoParent / executeParallelSubAgents, matching handleSingleSubAgentChatStep.

Lingua principale
TSQL
Stelle
32
Fork
7
Merge medio
1g 16h
PR unite (30g)
504

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MemberJunction/MJ

Tutte le issue di MemberJunction/MJ

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.