Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[deep-report] Make shared-workflow forbidden-field validation errors deterministic in schema_validation.go

オープン 初心者向け
#66,972 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1時間未満
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
backend

調査の方向性

まず pkg/parser/schema_validation.go:52-86、特に validateSharedWorkflowFields を確認し、forbiddenFound の構築方法とエラーのフォーマット方法を調べてください。フォーマットする前に禁止フィールドをソートしてください。また、sharedWorkflowAllowedOnFieldList をガイダンスに反映すべきか検討してください。複数の禁止フィールドがある場合にエラーが決定的になり、追加したガイダンスが関連するテストでカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

automation code-quality cookie deep-report improvement quick-win task-mining
Description

validateSharedWorkflowFields (pkg/parser/schema_validation.go:52-86) iterates frontmatter via for key := range frontmatter — a Go map, whose iteration order is randomized per-run. When a shared workflow has multiple forbidden fields, the resulting error message (built from forbiddenFound at lines 83/85) lists them in non-deterministic order across compiler runs. The generic forbidden-field error also omits any "here's what IS allowed" guidance, even though the file already has that list (sharedWorkflowAllowedOnFieldList, used for the on-field case at line 155).

Expected Impact

Deterministic, reproducible error messages (useful for golden tests and bug reports that currently can't rely on message stability), plus more actionable guidance for authors fixing a shared-workflow frontmatter.

Suggested Fix

Sort forbiddenFound before formatting the multi-field error (line 85). Consider enriching the single/multi-field forbidden-field messages with a short pointer to what IS allowed in shared workflows, mirroring the existing on-field error's use of sharedWorkflowAllowedOnFieldList.

Code Region: pkg/parser/schema_validation.go:52-86

Suggested Agent

Developer (Go)

Estimated Effort

Quick (< 1 hour)

Data Source

DeepReport Intelligence Briefing, 2026-10-08 (cycle 3). Source discussion #66921. Live-verified today: validateSharedWorkflowFields does iterate a map with for key := range frontmatter, and the forbidden-field error at lines 83/85 does not reference the allowed-field list.

Generated by 🔬 Deep Report · claude · agent · 343.4 AIC · ⌖ 9.25 AIC · ⊞ 7.1K · ◷

  • expires on Oct 10, 2026, 10:47 AM UTC-08:00
主要言語
Go
スター
5.4k
フォーク
576
平均マージ
8時間 29分
マージ済み PR(30日)
783

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/gh-aw のほかの issue

github/gh-aw の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。