ADR-0024: Each radar review supersedes the last, and only main owns review issues#
- Status: accepted. Not yet in force: it takes effect when merged, with no
apply (see Current status).
- Date: 2026-11-25
Context#
The tech-radar-review workflow opens an issue on the first of each month with the radar's checklist. Nothing closed one. The August, September and October issues (#1 to #3) were never worked, and were still open beside November's (#4) when the review of 24 November 2026 found them. Each repeats the whole checklist, so theirs were stale as well as unworked. The review recommended closing them as not planned and making the workflow do it (roadmap item 9). Scheduled probes open issues so that someone acts on them (principle 6); a queue that only grows teaches everyone to ignore it.
Two other facts shaped the decision:
- Any run could open a review. The job that opened the issue held
issues: write, checked out the repository and ran Python from it, on any branch a manual run chose. The four scheduled runs so far ran from a former default branch, not main. Scheduled runs always use the default branch, which is now main.
- The
tech-radarlabel is not exclusive. Only the workflow applies it
today, but nothing stops a person labelling their own issue about the radar with it. The title is free text that people edit.
ADR-0022 settled the same questions for the dns-health incident issue: only a run from main owns it, and the only job that can write issues runs no repository code. Drift detection (ADR-0021) also keeps issue writes in a job of their own.
Decision#
- A new review supersedes every older open review. When the workflow
opens a review issue, it closes each older open review issue as not planned, with a comment linking the new one. Not planned, because the older review was not done; a review that was done is closed as completed by the person who did it.
- The new issue is opened first. Closing starts only once the new issue
exists, and closes only issues numbered below it. A failure at any point leaves too many reviews open, never none. If choosing what to close fails, the new review is still opened, nothing is closed, and the run fails.
- A review issue is identified by label and author, never by title. An
issue is a review issue only if it is an open issue (not a pull request), carries the tech-radar label, and was opened by the workflow (github-actions[bot]). A person's issue is never closed by this automation, whatever its label.
- Only a run from
mainowns review issues. It alone may open or close
them. A manual run from any other branch is a preview: its run summary shows the checklist and which issues a run from main would close, and it touches no issue. A scheduled run that is not on main fails instead, because it would otherwise pass while opening nothing. Runs from main share a concurrency group and queue; previews get a group of their own.
- **The job that writes issues holds only
issues: writeand runs no
repository code.** A read-only job (contents: read, issues: read) builds the checklist, lists the open issues, and chooses which to close with scripts/radar-review-supersede.py, a standard-library script. The review-issue job runs only pinned actions/github-script with the script inline in the workflow.
- A re-run never opens a second review. Each issue carries a hidden marker
with its run ID. A re-run keeps the run ID, so it finds and reuses the issue its first attempt opened, and the script never chooses it for closing.
- It is tested.
make test-radar, inmake checkand in CI, tests the
script's choices and reads the workflow to assert that only the review-issue job can write issues, only for a run from main, without a checkout, and that it opens the new issue before it comments on or closes any other. Each test was shown to fail by reintroducing the fault it covers.
Alternatives considered#
Close older reviews as completed. Wrong: they were not done, and a completed issue that was not done is a false record.
Close only the immediately previous review. It would leave #1 to #3 open for ever, and any review that slipped past one month.
Identify review issues by title, as roadmap item 9 originally implied. A title is free text, and a person may write one that looks like it.
Identify review issues by label alone. Simpler, but it would close a person's issue labelled tech-radar. Requiring the workflow as author costs one comparison. If the issue-opening token ever changes (a GitHub App instead of GITHUB_TOKEN), the author changes and the workflow closes nothing: the backlog becomes visible again, rather than the wrong issues closing.
A dedicated label for review issues. Cleaner in the long run, but #1 to #4 carry tech-radar and chore only, and would need relabelling by hand first. Label plus author gives the same protection with no migration.
Let any branch open and close reviews. A manual run from a branch would open a review with that branch's checklist and close main's. The branch half is what ADR-0022 found had already happened to the incident issue.
Keep the closing logic inline in the workflow, untested. It would be a few lines of JavaScript, but the choices that matter (never a person's issue, never a pull request, never this run's own) are exactly the ones a later edit could lose without anyone noticing. The script makes them testable without GitHub.
Run the script in the issue-writing job. It would need a checkout in the job that holds issues: write, which ADR-0022's pattern avoids. Choosing in the read-only job costs passing a list between jobs; the issue job still checks that nothing it closes is numbered at or above the new issue.
Three jobs: open, then choose with the new issue's number, then close. It would let the script see the new number, at the cost of two jobs holding issues: write and a third runner. The run-ID marker and the issue job's own number check cover the same case.
Consequences#
Positive:
- At most one review issue is open after each run from
main, so the open one
is always the current checklist.
- Superseded reviews are closed honestly, as not planned, and each links its
successor.
- A branch run cannot open, close or reorder the review queue, and holds no
token that can write issues.
- 28 tests (
make test-radar) keep it so.
Negative:
- A review someone is part-way through is closed when the next month's opens.
The work is not lost (the issue is closed, not deleted, and can be reopened), but it has to be finished within the month or carried over.
- The issue handling can no longer be exercised from a branch. Seeing it open
and close issues means a run from main.
- The workflow tests read the workflow as text, as ADR-0022's do: they fail
closed if it is restructured, but cannot execute the JavaScript.
- After a partial failure, a re-run posts the "superseded" comment again on an
issue it had already commented on.
- Issue #4, the November review, was done on 24 November but is still open. The
workflow cannot tell a finished review from an abandoned one, so it would close #4 as not planned. It should be closed as completed by hand first.
Neutral:
- The issue body now ends with a hidden HTML comment naming its run ID.
- The checklist gains one routine item: add a row to the radar's review log.
Current status#
Merged changes take effect on the next run from main, which is the scheduled run on 1 December 2026 unless one is started by hand; there is nothing to apply. Until then the old behaviour is in force: nothing closes review issues.
Revisit when#
- The workflow opens issues with a token other than
GITHUB_TOKEN, which
changes their author.
- The
tech-radarlabel is used for anything other than the monthly reviews in
a way that should be closed with them, or a dedicated review label is introduced.
- Reviews stop repeating the whole checklist, so an older review holds
something the newer one does not.
- The default branch is renamed from
main: scheduled runs would then fail
and open no review until the ownership check names the new branch.