Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Chiusa Adatta ai principianti
#4,251 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à
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
88/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
markdown
Ambito
documentation

Direzione di ricerca

Modifica workshop/26-manage-costs-and-budgets.md, sostituendo la spiegazione di max-daily-ai-credits secondo cui si applica un valore predefinito del sistema. L’issue fornisce il comportamento corretto e una formulazione suggerita; confrontali con il riferimento citato syntax-agentic.md. Il lavoro è completato quando il workshop afferma chiaramente che la protezione è disabilitata per impostazione predefinita e spiega come abilitarla.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
JavaScript
Stelle
53
Fork
35
Merge medio
1g 6h
PR unite (30g)
15

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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

Tutte le issue di githubnext/gh-aw-workshop

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.