routines: a bot can mark its own run as failed when the data it needs is broken
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
- 63/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend
Línea de trabajo
Start with the trigger tool's action=note handling and the routine prompt text that already teaches NOTHING NEW, then find where a run is currently set to failed for engine errors, non-zero script checks and timeouts, since the new fail action should reuse that same path so the strip, the once-per-streak notice, backoff and pause all follow. Add the reason to the failed run record and cover it with a test alongside the existing run-outcome tests. Done means a routine that ends its run via fail shows failed with the reason and enters backoff, with the prompt updated to say it is only for jobs that could not be done. The reporter offered to send a PR, so check with them before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The problem
A routine run fails today only when something around the AI fails: the engine errors, a script check exits non-zero, or a script times out. Then the run is failed, the owner hears once per failure streak, and the backoff starts.
But often the AI turn itself works and finds that the job can't be done:
- My weekly finance summary reads a snapshot from a script check. Some weeks the bank sync is broken and the snapshot says
ERROR|token expired. - My weekly review should commit a file to a git vault, and the push is refused.
The bot can say "I could not do this" in its reply, but the run is still done. It looks like a normal report on the strip, no failure notice is sent, and the next run doesn't back off. A broken job can then look healthy for weeks.
The trigger tool has action=note for notes to the next run, but nothing for "this run failed".
What you'd like
One way for the bot to end its own run as failed, with a short reason:
- A trigger action
failwith areason(one line), next tonote. Or a reserved last line, likeNOTHING NEWis for quiet runs. Use whichever fits better. - The run becomes
failedwith that reason. From there, everything works as for any other failed run: the strip, the one notice per streak, the backoff and the pause after repeated failures. - The routine prompt says when to use it: only when the job could not be done. Never for "nothing new".
Anything else
- The routine prompt already teaches
NOTHING NEWandaction=note, so one more line covers this. - I'm happy to send the PR if this shape works for you.
- Lenguaje dominante
- TypeScript
- Estrellas
- 277
- Forks
- 27
- Merge medio
- 7 h 8 min
- PR fusionados (30 d)
- 81
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 DuskBotAI/duskbot
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
Los mantenedores suelen responder en 1 día
-
time zone: a self-hosted server can tell time in its owner's zone, the way a Cloud home doesAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
Todos los issues de DuskBotAI/duskbot
Issues similares
-
MCP tool results drop structuredContent when text is only a summaryPosiblemente ocupada @Pankaj-bit361 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
n8n-io/nod#1474 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Clean-up indicator: two polish points from the dev look (kit clock spacing, row description)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
inblockio/siwx-oidc-matrix-server#101 ·
Los mantenedores suelen responder en 1 día
-
status:needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 3 días
-
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 72/100
pingdotgg/t3code#42253 · 1 comentario ·
Los mantenedores suelen responder en 1 día