ADR 0066: A notice before a seal turns orange or grey, and a label the run gives

  • Status: Accepted on 2026-12-02 by the owner.
  • Date: 2026-12-02
  • SDD: 12; ADR 0056, 0057
  • Prompted by: the owner's requirement that a participant hears before its seal stops being green, early enough to fix it; and that the seal's "checks mandates itself" came from the entry's word, not from the run.

Context

The seal of a week is judged from the first scheduled or hand-started run of the participant's workflow on its branch in that week, and it is final (ADR 0056). A participant learns what its week came to when the seal is issued, too late to change it. The causes are often not the gate at all: a workflow without the job that attests the report, a schedule GitHub has turned off, scheduled runs on another branch than the entry names, an artifact that holds no report. Most of them can be seen in the runs the participant already makes.

The seal also said what the system checks itself (signed mandates, or signed exact steps) from capabilities in its entry. A gate run without ADC_GATE_VERIFIES_MANDATES was labelled as checking mandates all the same.

Decision

1. A preview, every day, judged as the seal is. After the seals are issued, tools/weekly_seals.py notify looks at each enrolled system with ci: (the same systems that are sealed). First what makes a counted run impossible whatever the gate does, from the repository and the workflow file on the entry's branch: the file is not there; the schedule runs on a default branch other than ci.branch; the workflow is turned off; the repository is private, so the report is not attested; no step attests weekly_run.json; no Monday schedule. Then the newest weekly report of a scheduled or hand-started run of the last fifteen days, on any branch (the previous week's counted run included), judged with the seal's own functions: problems(), attested() (against the branch the run ran on), the recount from its decisions where the seal recounts, and weekly_seal.judge. Nothing of this is a second rule: a preview that is green is green by the seal's rule.

2. One comment, once. When the preview would not be green, or would be green without the label the entry declares, one comment is posted on the system's registration issue (the enrolled.issue of its entry, in this repository only), naming the one who opened it. It says what would happen, why (the first reason, in plain words), what to change, and by when: before the next counted run, the Monday run on the system's own schedule in Europe/Oslo time and in UTC, or, when the week has no counted run yet, any run started by hand on the branch. It says how to try a change without it counting: on another branch.

3. After a seal is issued orange or grey. The same comment is posted for the week after it, with why the seal was not green and what to change before that week's counted run. The seal stays as it was issued.

4. Idempotent. What was told is kept in seals/<id>/notices.json in the registry, beside the seals, as (week, reason); the comment carries a hidden mark with the same, and a mark already on the issue is not posted again. A notice after an issued seal and the preview of the same week for the same reason are one notice. At most one comment a day for a system. A report's recount is kept by its hash, so it runs once.

5. Nothing when it is green again. No comment says a warning is resolved. The next seal says it, at the fixed address every participant already has; a "resolved" line from a preview could be read as a promise about a run not made yet.

6. The workflow's own token. Comments are written with GITHUB_TOKEN, never with ADC_SEALS_TOKEN; the job that issues seals is given issues: write, and nothing else more. --dry-run prints each comment and posts and keeps nothing. Text of a participant's report never reaches a comment, except the names of the scenario runs that did not pass, as on the seal.

7. The label comes from the run. weekly run records in each gate's row what the gate was run as checking itself, checks_itself: mandates when the control path treated it as verifying mandates (ADC_GATE_VERIFIES_MANDATES, or a package gate's own verifies_mandates), actions for signed exact steps alone, empty otherwise. The seal shows "checks mandates itself" or "checks signed steps itself" only when the report says the gate was run so and the entry declares it (uses). A gate run verifying mandates also verifies signed steps, so it carries an entry that declares only the second. A report made before this change says nothing, and gives no label. An entry that declares it while its report says otherwise is one of the reasons a notice is posted.

What it does not do

  • It does not change the rule, the counted run or a seal: a preview is never a seal, and a seal is never changed after it is issued.
  • It does not read a monthly result; tools/fetch_results.py already tells the registration issue, once, why a result was not taken.
  • A reason only this project can fix (GitHub could not be read, the beacon could not be read) is printed in the job and not posted.