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

Đang mở Phù hợp với người mới
#588 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
markdown, python
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với phần ## Sibling ADR Amendments của .agents/skills/adr-supersession/SKILL.md (khoảng dòng 90–98) và so sánh nó với phần kiểm tra dấu đánh dấu chèn trong scripts/check_adr_amendments.py (dòng 544–570). Viết lại văn bản skill để nó nêu rằng mọi phạm vi được chèn bên ngoài các khối ẩn đều cần một dấu đánh dấu sửa đổi có ngày, và tách điều đó khỏi các quy tắc chuyển đổi supersession. Hoàn tất khi văn bản khớp với script và python scripts/lint.py --all-files chạy thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
7
Fork
9
Merge trung bình
22 giờ 37 phút
Pull request đã merge (30 ngày)
118

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của redhat-et/ProtoBot

Tất cả issue của redhat-et/ProtoBot

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.