[Safe Outputs Conformance] USE-001: Five support scripts throw errors without standardized E0xx error codes
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 70/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, javascript
Direzione di ricerca
Leggi la sezione 9.5 di docs/src/content/docs/specs/safe-outputs-specification.md, poi esamina i punti di chiamata degli errori nei cinque file actions/setup/js/*.cjs elencati e le regole corrispondenti in scripts/check-safe-outputs-conformance.sh. Esegui il verificatore per vedere i risultati; il lavoro è terminato quando USE-001 risulta superato per tutti e cinque i file e i messaggi restano leggibili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Conformance Check Failure
Check ID: USE-001
Severity: LOW (5 occurrences in same category)
Category: Usability
Problem Description
scripts/check-safe-outputs-conformance.sh (Error Code Standardization) flags five files that throw errors or call core.setFailed without a standardized error code (E[0-9]{3}, ERROR_, or ERR_ prefix):
[LOW] USE-001: actions/setup/js/check_version_updates.cjs may not use standardized error codes
[LOW] USE-001: actions/setup/js/grader_session.cjs may not use standardized error codes
[LOW] USE-001: actions/setup/js/model_pin_check.cjs may not use standardized error codes
[LOW] USE-001: actions/setup/js/reconcile_work_queue_run.cjs may not use standardized error codes
[LOW] USE-001: actions/setup/js/start_mcp_gateway.cjs may not use standardized error codes
Unlike the core safe-output type handlers (create_issue.cjs, add_comment.cjs, etc.), which already pass the E001-E010 catalog completeness check (SEC-006), these five support/utility scripts throw plain Error objects with free-form messages, e.g. throw new Error(work_queue_worker_job_context_invalid) in reconcile_work_queue_run.cjs, or throw new Error(MCP gateway safeoutputs readiness requires a numeric MCP_GATEWAY_PORT) in start_mcp_gateway.cjs. This makes errors from these scripts harder to triage consistently with the rest of the codebase.
Affected Components
- actions/setup/js/check_version_updates.cjs
- actions/setup/js/grader_session.cjs
- actions/setup/js/model_pin_check.cjs
- actions/setup/js/reconcile_work_queue_run.cjs
- actions/setup/js/start_mcp_gateway.cjs
Current vs Expected Behavior
Current Behavior
These scripts throw errors / call core.setFailed with descriptive but unprefixed messages (no E0xx-style or ERROR_/ERR_ prefix).
Expected Behavior
Per the Safe Outputs specification error-handling conventions (Section 9.5), thrown errors in scripts that interact with octokit or record safe-output operations should use a consistent, greppable error-code convention so failures can be triaged and documented the same way as the core E001-E010 catalog.
Remediation Steps
This task can be assigned to a Copilot coding agent with the following steps:
- Review the Error Code Catalog in docs/src/content/docs/specs/safe-outputs-specification.md (Section 9.5, E001-E010) to see if any existing code semantically matches these errors; reuse it where it fits.
- For errors that do not fit the existing E001-E010 catalog (these are mostly internal CLI/work-queue/gateway-readiness scripts, not GitHub-facing safe-output handlers), introduce a consistent prefixed code convention for this class of script (e.g. a distinct series, or reuse ERROR_/ERR_ prefixing already recognized by the checker) and apply it to each throw new Error(...) / core.setFailed(...) call site in the five files above.
- Keep messages human-readable - the code should prefix or tag the message, not replace it.
- Re-run bash scripts/check-safe-outputs-conformance.sh and confirm USE-001 reports PASS (no remaining LOW findings for these files).
Verification
After remediation, verify the fix by running: bash scripts/check-safe-outputs-conformance.sh
The check USE-001 should pass without errors for these five files.
References
- Safe Outputs Specification: docs/src/content/docs/specs/safe-outputs-specification.md
- Conformance Checker: scripts/check-safe-outputs-conformance.sh
- Run ID: 39376524099
- Date: 2026-10-20
Generated by ✅ Daily Safe Outputs Conformance Checker · claude · agent · 98 AIC · ⌖ 0.625 AIC · ⊞ 5.4K · ◷
- expires on Oct 20, 2026, 9:53 PM UTC-08:00
- Lingua principale
- Go
- Stelle
- 5.4k
- Fork
- 596
- Merge medio
- 3h 40m
- PR unite (30g)
- 830
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la 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 github/gh-aw
-
automation models
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
automated-analysis code-quality cookie testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
automated conformance safe-outputs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
automated conformance safe-outputs
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
wgdonenotdeferred: parenthesized Done() statement escapes non-deferred detection (paren_unwrap_gap)Apertacookie sergo
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di github/gh-aw
Issue simili
-
[BUG] deploy.restart_policy without condition drops the restart policyForse già presa @akshat-lakhera l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
docker/compose#14383 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
AvengeMedia/dank-greeter#39 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
dokku/dokku-datastore#367 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: ap gateway image build cannot find local policies on WindowsForse già presa @Jayzilva l’ha presa oggi. ApertaAspect/Configuration Severity/Major
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
wso2/api-platform#3912 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni