[Safe Outputs Conformance] USE-001: Five support scripts throw errors without standardized E0xx error codes
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 70/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- github-actions, javascript
調査の方向性
docs/src/content/docs/specs/safe-outputs-specification.md のセクション 9.5 を読み、次に、一覧にある 5 つの actions/setup/js/*.cjs ファイル内のエラー呼び出し箇所と、scripts/check-safe-outputs-conformance.sh の対応するルールを調べてください。チェッカーを実行して結果を確認してください。5 つすべてのファイルで USE-001 が合格と報告され、メッセージが読みやすい状態を保っていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Go
- スター
- 5.4k
- フォーク
- 596
- 平均マージ
- 3時間 24分
- マージ済み PR(30日)
- 824
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-aw のほかの issue
-
automation models
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
agent-research
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
agentic-workflows automation aw-essential cookie
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
automated conformance safe-outputs
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
automated conformance safe-outputs
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
native
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
prime-radiant-inc/evener#4839 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#4073 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
goharbor/terraform-provider-harbor#655 · コメント 1 件 ·