adr check: enforce sign-off on decided records #661

Open
opened 2026-09-29 16:40:53 +00:00 by hexajon · 0 comments
Owner

What to build

  • The token: ADR-ACCEPT NNNN, ADR-REJECT NNNN, or ADR-DEPRECATE NNNN, for the record's status. NNNN may carry a repo prefix, such as rubric/0007; a prefix that names another repo does not match.
  • With two or more contributors, a decided record passes when one of its decision issues holds the token in a comment from a contributor who is not the author of the status change. This applies to old records too.
  • With one contributor, the rule reports NOT APPLICABLE, exits 0, and warns on every run.
  • The check prints one posture line on every run: ENFORCED or NOT APPLICABLE.
  • When the forge checks are off, the check says that it did not check the sign-off rule or the posture.

Depends on

  • #655, to know the author of each status change.
  • #656, to know who counts as a contributor.

Acceptance

Tests against the live forge API and a test repo: a token from a second contributor passes; no token fails; a token for another record fails; a token from the author fails; one contributor gives NOT APPLICABLE and exit 0.

## What to build - The token: `ADR-ACCEPT NNNN`, `ADR-REJECT NNNN`, or `ADR-DEPRECATE NNNN`, for the record's status. `NNNN` may carry a repo prefix, such as `rubric/0007`; a prefix that names another repo does not match. - With two or more contributors, a decided record passes when one of its decision issues holds the token in a comment from a contributor who is not the author of the status change. This applies to old records too. - With one contributor, the rule reports NOT APPLICABLE, exits 0, and warns on every run. - The check prints one posture line on every run: ENFORCED or NOT APPLICABLE. - When the forge checks are off, the check says that it did not check the sign-off rule or the posture. ## Depends on - #655, to know the author of each status change. - #656, to know who counts as a contributor. ## Acceptance Tests against the live forge API and a test repo: a token from a second contributor passes; no token fails; a token for another record fails; a token from the author fails; one contributor gives NOT APPLICABLE and exit 0.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
sixfold-space/madtea#661
No description provided.