Agents: ExecuteSubAgent drops parent downstream payload updates when resuming a sub-agent via resumeRunId

Aperta
#6,713 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
43/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Read packages/AI/Agents/src/base-agent.ts at ExecuteSubAgent and executeChildSubAgentStep, focusing on the resume payload and mergeUpstreamPayload paths described in the issue. Trace how the resumed child receives lastRun.FinalPayload and the parent’s current payload, then check how upstream merging handles shared paths. Done means parent updates survive child resumption and are not removed by the merge.

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 ExecuteSubAgent lines 14634-14635:

payload: verifiedResumeRunId ? undefined : payload,
...(verifiedResumeRunId ? { lastRunId: verifiedResumeRunId, autoPopulateLastRunPayload: true } : {}),
  1. Because payload is discarded whenever verifiedResumeRunId is set, any parent payload updates written between the child's Consult pause and its resumption are invisible to the resumed child run.
  2. In executeChildSubAgentStep, mergeUpstreamPayload merges the child's returned payload back against previousDecision.newPayload. If the child had stale state from lastRun.FinalPayload (missing keys added by the parent while paused), mergeUpstreamPayload can interpret absent keys on downstream/upstream-shared paths as deletions and wipe parent updates.
Suggested Fix

When verifiedResumeRunId is set, load lastRun.FinalPayload and merge the parent's current downstream payload updates onto it before invoking the resumed child run, and ensure upstream merge diffs only treat child-modified paths appropriately.

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.