Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[workshop-sync] workshop/26-manage-costs-and-budgets.md: max-daily-ai-credits default behavior described incorrectly

Cerrado Apto para principiantes
#4,251 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
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
88/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
markdown

Línea de trabajo

Edita workshop/26-manage-costs-and-budgets.md y sustituye la explicación de max-daily-ai-credits que dice que se aplica un valor predeterminado del sistema. El issue proporciona el comportamiento corregido y una redacción sugerida; compáralos con la referencia citada syntax-agentic.md. El trabajo estará terminado cuando el taller indique claramente que la protección está desactivada de forma predeterminada y explique cómo activarla.

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

Descripción

documentation

Workshop file reviewed

workshop/26-manage-costs-and-budgets.md

Problem

The description of the max-daily-ai-credits frontmatter field incorrectly states that a system default threshold is applied when the field is omitted:

"A system default threshold applies when this field is omitted; set to -1 to disable the guardrail, or provide an explicit integer value to override the default."

This reverses the actual behavior: the guardrail is disabled by default, not enabled with a default threshold.

Current correct syntax

Per the gh-aw reference (syntax-agentic.md):

"Per-user 24-hour AI Credits (AIC) guardrail: activation blocks execution once the triggering user's aggregated AI Credits for this workflow over the last 24h exceed the threshold (integer or K/M short-form string, or -1). Disabled by default; omit the field to leave the guardrail off, or set an explicit threshold to enable it."

So omitting max-daily-ai-credits means no 24-hour cap is enforced at all — not that a hidden system default kicks in. Setting -1 is actually redundant with omitting the field (both leave the guardrail off); you need an explicit positive integer (or K/M short-form) to turn the guardrail on.

Suggested fix

Replace the max-daily-ai-credits bullet with wording consistent with the reference, e.g.:

max-daily-ai-credits caps the total AIC consumed by this workflow across the last 24 hours for the triggering user. Runs that would exceed the cap are blocked before they start. Disabled by default — omit the field (or set -1) to leave the guardrail off; provide an explicit integer value to enable it.

This also means the frontmatter example in the file (which sets max-daily-ai-credits: 2500) is itself fine as an example of enabling the guardrail, but the surrounding prose describing the default needs correcting so learners don't assume a cap exists by default.

Reference: https://github.github.com/gh-aw/reference/cost-management/#cap-daily-ai-credits-per-workflow

Generated by 🔍 Workshop Sync Check · copilot · auto · 186.6 AIC · ⌖ 4.99 AIC · ⊞ 9.2K · ◷

  • expires on Oct 7, 2026, 9:51 AM UTC
Lenguaje dominante
JavaScript
Estrellas
56
Forks
40
Merge medio
2 d 7 h
PR fusionados (30 d)
16

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

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 githubnext/gh-aw-workshop

Todos los issues de githubnext/gh-aw-workshop

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.