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

Abierto Apto para principiantes
#588 2 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
62/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
markdown, python

Línea de trabajo

Empieza por la sección ## Sibling ADR Amendments de .agents/skills/adr-supersession/SKILL.md (alrededor de las líneas 90–98) y compárala con la comprobación de marcadores de inserción en scripts/check_adr_amendments.py (líneas 544–570). Reescribe el texto de la skill para que indique que cada rango insertado fuera de bloques ocultos necesita un marcador de enmienda con fecha, y para que separe eso de las reglas de transición de supersesión. Terminado cuando el texto coincida con el script y python scripts/lint.py --all-files pase.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Go
Estrellas
7
Forks
9
Merge medio
22 h 37 min
PR fusionados (30 d)
118

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de redhat-et/ProtoBot

Todos los issues de redhat-et/ProtoBot

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.