# Reading post-merge CI The wait cap is 45 minutes for this whole step, shared. Note the start time (`date +%s`); every later wait gets what is left, in whole minutes. Invoke `delivery-ci-checks` on the merge commit with the check list and the cap. `malformed: ` → stop with ``. Otherwise work from its table, one row per check. ## Cancelled runs A cancelled run says nothing about the change, so it is never a `failure`. For each `failure` row, read the merge commit's statuses with `mcp__gitea__commit_read` `get_status` and take that check's raw `status` and `description`. The row is **cancelled** when the status is `error` or `warning`, or the description mentions "cancel" in any case. How Gitea Actions reports a cancelled job on a commit status is not certain: `delivery-ci-checks` maps `error` and `warning` to `failure`, and a cancelled job may also read `failure` with a "Has been cancelled" description, so both are treated as cancelled. ## Later commits Section 7 lists only cumulative checks: a green run on a later default-branch commit re-applies everything since its last success, this change included (`delivery-repo-doc`'s `references/format.md` §7). So a later commit can settle a row the merge commit could not. Settle checks per **workflow**: a status name's prefix before ` / ` (`Provision / apply (push)` → `Provision`). A workflow whose rows are all `success` or `skipped` passes as it stands. In any other workflow a `skipped` row is **not run**: a failed or cancelled job before it may have skipped it, so it says nothing about the change. Its not-run rows go through this section together with its other rows not `success`. For each such workflow, run `references/already-reverted.md` again (a revert → stop), then list the default branch's first-parent commits after the merge commit, oldest first: ```bash git log --first-parent --reverse --format=%H ..origin/ # ADR-0023: parsed ``` Bare `git`, per ADR-0023: rtk filters `git log` and this output is parsed. That check's fetch found no revert, so none of these is at or after one. Read each SHA's statuses with `mcp__gitea__commit_read` `get_status`: 1. The first commit carrying every one of the workflow's checks, each `success` or `skipped`, **covers** the workflow: each of its rows becomes `pass`, "covered by ``", and that SHA is a **covering commit**. One row green beside a failed one covers nothing: the failure may have skipped this change's job. 2. None covers, and the newest commit carrying one of the workflow's checks reads `pending` on it: a later run is under way. Invoke `delivery-ci-checks` on that SHA with the workflow's checks and the minutes left; none left → it reads `pending`, unread. Every row `success` or `skipped` → covered by that SHA, once `references/already-reverted.md` again finds no revert. Still `pending`, at the cap or unread → the workflow's not-run and `pending` rows are `pending`; and when each of its other rows not `success` is cancelled or a `failure` `references/attribution.md` §CI check calls always untied (a refusal, a runner error), every row of the workflow is `pending`. The later run may yet cover it, so that ends in the relaunch stop, not in an unattributable one. Anything else leaves the rows as the merge commit had them. A later run's `failure` never replaces the merge commit's row: it may be a later commit's. ## Verdict Over the rows as they now stand, first match wins: | Rows | Result | |---|---| | any `failure` | each failed check `fail`, with its cause and job link, each cancelled one `fail untied — run cancelled`, each not-run one `fail untied — never ran`, and each `pending` one `pending`; go on | | any cancelled | stop: "post-merge CI cancelled at ``: ``; re-run it, then relaunch" | | any not run | stop: "post-merge CI never ran `` for ``" | | any `missing` | stop: "post-merge CI check missing at ``: ``" | | any `pending` | stop: "post-merge CI still pending at ``" | | else | each check `pass` |