Guardian asks child agents before PR feedback upkeep
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
- #2516 de @sentry-junior — fusionado
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- ai-infra-agents, security
Línea de trabajo
Start by reading packages/junior/src/chat/guardian/reviewer.ts, policy.ts, and packages/junior/src/chat/agent/index.ts, then review the discussion and related issue #2258 to understand the two proposed approaches. Check the Guardian eval coverage; done means the chosen behavior is implemented and covered for child-agent upkeep and parent turns started by child results.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When Junior hands PR review feedback to a child agent, Guardian returns ask for the child's github_updatePullRequestFeedback (👍) and github_resolvePullRequestReviewThread calls. The child reports the action as blocked, and the parent then asks the user to confirm in Slack. When the root run does the same work itself, Guardian allows these calls.
- Cause:
CHILD_AGENT_RULES(packages/junior/src/chat/guardian/reviewer.ts) accept authorization only from rootuser:andautomation:lines. The GitHub event that starts the work is anevent:line, and the parent task text is not user intent. So the upkeep exception inpolicy.ts(marking or resolving feedback on a resource that the agent made) does not apply. - Parent turns too: when a child result starts a parent turn, action review uses the child result as the user intent (
currentUserIntentinpackages/junior/src/chat/agent/index.ts). That turn also logsaskordenyfor these tools. - Evidence: Sentry
sentry/juniorspans show 9ask/denydecisions for these two tools between Oct 28 and Oct 30, all inagent:*conversations. Root runs that do this work logallow. - When it started: #2265 (Oct 28) began delegating to child agents implicitly. The child rules come from #2147.
- Coverage gap: no Guardian eval covers feedback upkeep by a child agent, or by a parent after a child result.
Proposed in discussion (two options):
- Parent does the upkeep (preferred). The child fixes the code and lists the comments it addressed. The parent adds 👍 and resolves. This needs a thread rule that treats this upkeep as allowed in a turn that a child result started. The child agent rules stay strict.
- Child does the upkeep. Treat 👍/resolve on feedback that the delegated work addressed, on a PR that Junior made, as upkeep in
CHILD_AGENT_RULES. Keep it narrow, because the child rules block prompt injection from parent task text.
Related: #2258
via @szokeasaurusrex.
--
- Lenguaje dominante
- TypeScript
- Estrellas
- 397
- Forks
- 43
- Merge medio
- 7 h 44 min
- PR fusionados (30 d)
- 607
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/junior
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
getsentry/junior#335 · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/junior
Issues similares
-
Billion-context documentation addendum: nudge is independent of window occupancy. | billion-context 文档补充:nudge 与窗口占用无关Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 86/100
ranxianglei/billion-context#5893 ·
Los mantenedores suelen responder en 1 día
-
stringify escapes leading digits in pseudo-class arguments (:nth-child(1) becomes :nth-child(\31 ))Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
enhancement security severity:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Battle-Cattle/BCUK-Bot-4#959 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Claude account rows no longer show the email (since #8055), so "Account 1, 2, 3" cannot be told apartPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoaccount-pool bug gui
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
lidge-jun/opencodex#8286 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día