[Safe Outputs Conformance] MCE-001: add_comment tool description missing explicit CONSTRAINTS disclosure and "50 link" phrasing
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- github-actions, go, javascript
- 領域
- tooling
調査の方向性
actions/setup/js/safe_outputs_tools.jsonから始めて、add_commentの説明を探し、pkg/workflow/js/safe_outputs_tools.jsonにある同期済みのコピーと比較します。actions/setup/js/generate_safe_outputs_tools.cjsと指定されたテストを確認し、生成後も文言が保持され、期待どおりであることを確かめます。両方のコピーでCONSTRAINTSと文字どおりの50 linkという表現を使って制限が明示され、適合性チェックに合格すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Conformance Check Failure
Check ID: MCE-001
Severity: MEDIUM
Category: Implementation (Section 8.3 MCE2 — Tool Description Constraint Disclosure)
Problem Description
Per the Safe Outputs specification Section 8.3 (MCE2), the add_comment tool description MUST surface its enforcement constraints (character limit, mention limit, link limit) using recognizable, literal phrasing, and MUST contain an explicit CONSTRAINTS or IMPORTANT ... constraint disclosure block. The conformance checker (scripts/check-safe-outputs-conformance.sh, function check_mce_constraint_disclosure) scans pkg/workflow/js/safe_outputs_tools.json for these literal patterns and two sub-checks fail:
- No match for the literal phrase
50 link(case-insensitive). - No match for
CONSTRAINTS,IMPORTANT.*constraint, orvalidation constraintwithin theadd_commenttool entry.
Affected Components
-
Files:
actions/setup/js/safe_outputs_tools.json(canonical source of theadd_commenttool description)pkg/workflow/js/safe_outputs_tools.json(synced copy embedded for the Go compiler — keep both in sync)actions/setup/js/generate_safe_outputs_tools.cjs(runtime generator that composes the final description with suffixes/notes)
<b>🔍 Current vs Expected Behavior</b>
Current Behavior
The add_comment tool description (around line 525 of pkg/workflow/js/safe_outputs_tools.json) reads:
"...Input is limited to 524288 characters, 10 mentions, and configured max-links URL occurrences (default: 50). Oversized agent content is automatically replaced by notices to fit the complete 65536-character published comment..."
The 50-link default is disclosed, but phrased as "max-links URL occurrences (default: 50)" rather than the literal "50 link(s)" substring the spec checker expects, and there is no CONSTRAINTS: (or equivalent IMPORTANT ... constraint) lead-in labelling this as an enforced constraint block.
Expected Behavior
The description should contain a clearly labelled constraints section using literal, greppable phrasing, e.g.:
"CONSTRAINTS: Input is limited to 524288 characters, 10 mentions, and 50 links (configurable via max-links, default: 50)..."
This keeps the existing semantics identical (524288 chars / 10 mentions / default 50 links) while making the constraint disclosure explicit and literal, satisfying MCE2's requirement that agents reliably discover enforcement limits from the tool description text itself.
Remediation Steps
This task can be assigned to a Copilot coding agent with the following steps:
- In
actions/setup/js/safe_outputs_tools.json, edit theadd_commenttool'sdescriptionfield to prefix the constraint sentence withCONSTRAINTS:and rephrase the link limit using the literal substring50 link(e.g., "50 links") instead of "(default: 50)" alone, while preserving the existing 524288-character and 10-mention figures. - Apply the equivalent edit to
pkg/workflow/js/safe_outputs_tools.jsonso the embedded Go copy stays byte-identical to the canonical source (check for an existing sync/codegen step before hand-editing both). - Check
actions/setup/js/generate_safe_outputs_tools.cjsfor any place that appends additional suffixes to theadd_commentdescription (e.g. discussions notes) to confirm the new CONSTRAINTS phrasing survives suffix concatenation. - Update any tests asserting on the exact
add_commentdescription text (e.g.actions/setup/js/generate_safe_outputs_tools.test.cjs,actions/setup/js/safe_outputs_mcp_add_comment_constraints.test.cjs,pkg/workflow/safe_outputs_tools_test.go) to match the new wording.
Verification
After remediation, verify the fix by running:
bash scripts/check-safe-outputs-conformance.sh
The check MCE-001 should pass without errors (no [MEDIUM] MCE-001 lines in the output).
References
- Safe Outputs Specification: docs/src/content/docs/specs/safe-outputs-specification.md (Section 8.3, MCE2)
- Conformance Checker: scripts/check-safe-outputs-conformance.sh (check_mce_constraint_disclosure, line ~665)
- Run ID: 39206249052
- Date: 2026-10-19
Generated by ✅ Daily Safe Outputs Conformance Checker · claude · agent · 74.2 AIC · ⌖ 0.578 AIC · ⊞ 5.3K · ◷
- expires on Oct 19, 2026, 9:53 PM UTC-08:00
- 主要言語
- Go
- スター
- 5.4k
- フォーク
- 584
- 平均マージ
- 3時間 26分
- マージ済み PR(30日)
- 822
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-aw のほかの issue
-
automation models
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
ai-inspected
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
automation cli cookie documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/gh-aw#70526 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
automated conformance good-first-issue safe-outputs
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
aws/amazon-ecs-agent#5177 ·
メンテナーはふだん 2 日以内に返信
-
release-followup
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apache/rocketmq-dashboard#7292 ·
メンテナーはふだん 3 日以内に返信
-
[Bug]: Deleting an MCP proxy leaves its API keys in the gateway's memory and in the policy engineオープンAspect/API Aspect/Other Severity/Minor Type/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
wso2/api-platform#3852 ·
メンテナーはふだん 1 日以内に返信