[workshop-sync] workshop/26-manage-costs-and-budgets.md: max-daily-ai-credits default behavior described incorrectly
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
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
-1to 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/Mshort-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-creditscaps 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
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di githubnext/gh-aw-workshop
-
broken-image
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
githubnext/gh-aw-workshop#4787 ·
I maintainer di solito rispondono entro 1 giorno
-
curriculum documentation quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
githubnext/gh-aw-workshop#4786 ·
I maintainer di solito rispondono entro 1 giorno
-
[curriculum-eval] side-quest-17-07-repo-poisoning.md: cognitive_load — 23 new concepts in 1234 wordsApertacurriculum documentation quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
githubnext/gh-aw-workshop#4784 ·
I maintainer di solito rispondono entro 1 giorno
-
[curriculum-eval] 04-github-actions-intro.md: cognitive_load — 28 new concepts in an intro pageApertacurriculum documentation quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
githubnext/gh-aw-workshop#4785 ·
I maintainer di solito rispondono entro 1 giorno
-
curriculum documentation quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
githubnext/gh-aw-workshop#4782 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di githubnext/gh-aw-workshop
Issue simili
-
fix(套件): test_bundle 往仓库的 preset/skills 写哨兵,并发跑的 test_installer 拷贝时撞 ENOENT(CI 红)Forse già presa @Miaotofu01 l’ha presa oggi. Apertaneeds-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Miaotofu01/Study-Mate#216 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
-
beginner-friendly category:fixtures community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
Berserk-hub150/skillhawk#229 · 1 commento ·
I maintainer di solito rispondono entro 8 giorni
-
WlanConfUpdateSensor falsely reports wifi interface appearing when sysfs inode cache is reclaimedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
firewalla/firerouter#2180 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
andromarces/agent-loops#976 ·
I maintainer di solito rispondono entro 1 giorno