Update adr-supersession skill to document that adr-amendments requires dated markers in all inserted ranges

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
markdown, python
領域
documentation

調査の方向性

## Sibling ADR Amendments セクション(.agents/skills/adr-supersession/SKILL.md の 90–98 行目あたり)から始め、scripts/check_adr_amendments.py(544–570 行目)の挿入マーカーのチェックと比較してください。スキルのテキストを書き換えて、隠しブロックの外側にある挿入範囲にはすべて日付付きの修正マーカーが必要であることを述べ、それを supersession の遷移ルールから分離してください。テキストがスクリプトと一致し、python scripts/lint.py --all-files が通れば完了です。

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

説明

documentation risk/low triaged

What happened

During PR #583, commit da97d3a relaxed AGENTS.md Rule 7 to make dated amendments permissive ("A record may append..."), and scripts/check_adr_amendments.py allowed arbitrary undated insertions in accepted ADRs. In review 6042739961, reviewer @jerry-ng2 issued blocking finding B3:

"An accepted ADR can receive undated body text anywhere and still pass the gate... Restore the mandatory dated-amendment clause and reject insertions that are not part of the appended dated block."

In commit 986cfaf, author @JohnStrunk resolved B3 by updating scripts/check_adr_amendments.py:544-570 so that every inserted range outside hidden blocks must contain a dated amendment marker. However, .agents/skills/adr-supersession/SKILL.md:95 was not updated and retains stale guidance stating that the hook "enforces only insertions for these amendments; the marker format above is required for the authorized supersession transition". In final review 6043696279, @jerry-ng2 noted finding I1 pointing out this contradiction. PR #583 merged without updating the skill.

What could go better

Agent skills under .agents/skills/ guide autonomous agents when performing repository operations. Because .agents/skills/adr-supersession/SKILL.md states that the hook "enforces only insertions" for ordinary amendments and implies dated markers are only required for supersession transitions, an agent following the skill will insert unmarked paragraphs when updating an ADR. The adr-amendments hook will then fail closed with:
Inserted lines must contain a dated amendment marker outside hidden blocks.

Aligning the skill with pre-commit gate invariants prevents agent thrashing and avoidable CI failures.

Confidence: High. The contradiction between .agents/skills/adr-supersession/SKILL.md:95 and scripts/check_adr_amendments.py:544-570 is direct and verifiable.

Proposed change

In .agents/skills/adr-supersession/SKILL.md:

  1. Update lines 90–98 in section ## Sibling ADR Amendments to explicitly state that scripts/check_adr_amendments.py requires every inserted range outside hidden regions to contain a dated amendment marker (e.g. **[Amended Month Year]** or **[Amended Month Year, #NNN]**).
  2. Clarify the distinction between ordinary amendments and supersession transitions:
    • Ordinary amendments: insertions anywhere in the document are accepted as long as every inserted range contains a dated amendment marker (which may share a line with prose and sit before trailing sections).
    • Supersession transitions: strictly require exactly one in-place status line edit to > Status: **Superseded by ADR-NNNN** — Month Year paired with a standalone tail amendment block starting at or after the last baseline line.

Validation criteria

  1. .agents/skills/adr-supersession/SKILL.md accurately describes the insertion-marker rule enforced by scripts/check_adr_amendments.py:544-570.
  2. An agent amending an accepted ADR following the revised skill instructions places dated amendment markers in all inserted ranges, and python scripts/check_adr_amendments.py passes on the first attempt without insertion errors.
  3. python scripts/lint.py --all-files passes.

Related issues checked

Searched: adr-supersession marker repo:redhat-et/ProtoBot is:issue; adr-supersession ordinary amendments repo:redhat-et/ProtoBot is:issue; dated amendment marker inserted ranges repo:fullsend-ai/fullsend repo:fullsend-ai/agents repo:redhat-et/ProtoBot is:issue; check_adr_amendments skill parity repo:fullsend-ai/fullsend repo:fullsend-ai/agents repo:redhat-et/ProtoBot is:issue
Considered: #442
#442: Closed by PR #583; implemented the supersession lifecycle but left post-merge text drift between SKILL.md and check_adr_amendments.py.


Generated by retro agent from https://github.com/redhat-et/ProtoBot/pull/583

主要言語
Go
スター
7
フォーク
9
平均マージ
22時間 37分
マージ済み PR(30日)
118

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

redhat-et/ProtoBot のほかの issue

redhat-et/ProtoBot の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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