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

Abierto
#6,716 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
70/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
backend, security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
TSQL
Estrellas
32
Forks
7
Merge medio
1 d 16 h
PR fusionados (30 d)
504

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MemberJunction/MJ

Todos los issues de MemberJunction/MJ

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.