Update adr-supersession skill to document that adr-amendments requires dated markers in all inserted ranges
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ả
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:
- Update lines 90–98 in section
## Sibling ADR Amendmentsto explicitly state thatscripts/check_adr_amendments.pyrequires every inserted range outside hidden regions to contain a dated amendment marker (e.g.**[Amended Month Year]**or**[Amended Month Year, #NNN]**). - 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 Yearpaired with a standalone tail amendment block starting at or after the last baseline line.
Validation criteria
.agents/skills/adr-supersession/SKILL.mdaccurately describes the insertion-marker rule enforced byscripts/check_adr_amendments.py:544-570.- 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.pypasses on the first attempt without insertion errors. python scripts/lint.py --all-filespasses.
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của redhat-et/ProtoBot
-
bug component:validator triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
redhat-et/ProtoBot#596 · 5 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation triaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
redhat-et/ProtoBot#589 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature infra needs-human risk/low triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
redhat-et/ProtoBot#579 · 6 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
blocked documentation infra risk/low triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
redhat-et/ProtoBot#552 · 6 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug infra triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
redhat-et/ProtoBot#543 · 4 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của redhat-et/ProtoBot
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sresarehumantoo/cc-artex#456 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ollama/ollama#20021 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
factory:subtask
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
release
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
github/gh-aw-mcpg#17603 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
avr: SPI Mode2 runs as mode 1Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tinygo-org/tinygo#6727 ·
Maintainer thường phản hồi trong vòng 1 ngày