Security/Agents: AgentRunner.buildHandoffTargetParams drops SearchScopeIDs, boundActionParams, SecurityEnvelope, and ParentRunTainted on handoff

Aperta
#6,716 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, security

Direzione di ricerca

Read packages/AI/Agents/src/AgentRunner.ts, especially buildHandoffTargetParams and its use in FollowHandoffs. Trace how the named scope, bound parameter, security envelope, and taint fields are represented in sourceParams and the source run, then check existing handoff tests. Done means those four values reach the target run while the listed source-specific execution fields remain omitted.

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

AgentRunner.buildHandoffTargetParams manually constructs a subset object from sourceParams that forwards PrimaryScopeEntityName, PrimaryScopeRecordID, SecondaryScopes, CredentialScope, Audience, ConversationBranchID, ConversationHistoryFrom, and provider, but omits:

  1. SearchScopeIDs
  2. boundActionParams (server-bound action parameters hidden from the model)
  3. SecurityEnvelope
  4. ParentRunTainted (and taint propagation from the source run)

As a result, handing off from a scoped/bound/tainted source run drops search-scope restrictions, bound action parameters, security-envelope constraints, and run taint on the target agent run.

Suggested Fix

Forward SearchScopeIDs, boundActionParams, SecurityEnvelope, and taint (ParentRunTainted) from sourceParams (and the source run) in buildHandoffTargetParams, while still omitting source-specific execution fields (payload, lastRunId, autoPopulateLastRunPayload, configurationId, override, parentRun, onAgentRunCreated, allowedAgentIds).

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.