You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(pr-pipeline): alert when pr-merge's post-merge check stays unreadable #9170
S&C finding on #9167. When pr-merge's post-merge check is unreadable (exit 3), merges hold and the workflow prints only a ::warning (.github/workflows/pr-merge.yml, "Check earlier lane merges" step: "the post-merge check exited $code ... no full CI run started from it"). A hold that lasts many sweeps (a capped listing, a degraded API, a persistent read error) is therefore silent.
Fix
After N consecutive unreadable post-merge sweeps (a setting under merge: in docs/conventions/pr-pipeline.yaml, default for example 4, about one hour at the 15-minute cron), emit ::error and file or update one tracking issue that names the read error. Clear it on the next readable sweep. The count can be derived from the pr-merge-summary artifacts of recent runs, or from a marker comment on the issue.
Verification
Four unreadable sweeps in a row produce one ::error and one issue. A readable sweep closes or comments on it, and an isolated unreadable sweep files nothing.
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Small
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Decision recorded (amendment):
Decision recorded. This amends this issue's earlier decision record. The owner, in the Refinement session (2026-10-26), after dropping #9087 as overengineering:
[...]
Build the unreadable-sweep alert as a signal in the existing maintenance-monitor-signals, which already reads pr-merge sweeps every hour and keeps one rolling issue per signal. The owner's threshold of 4 is a constant in that signal. Drop the new merge: config key and the separate counter and issue filing in pr-merge. The alert still never demotes.
[quote truncated; the full decision is at the link] ci(pr-pipeline): alert when pr-merge's post-merge check stays unreadable #9170 (comment)
This settles the open questions. Understood: add an unreadable-post-merge-sweep signal to maintenance-monitor-signals, firing after 4 consecutive unreadable sweeps, notify-only, and clearing itself on a readable sweep.
Decision recorded. The owner set the threshold (2026-10-22, Q678, "Yes, go with recommendations."): after 4 consecutive unreadable pr-merge sweeps (about 1 hour), emit ::error and post a notice. It only notifies: it never demotes, and it clears itself when a sweep reads complete again. Security & Cost asked for the same bound so that an unreadable hold is never silent. Related: #9204 (automatic recovery from the unlisted-record hold), #9205 (outage posture for every lane).
Released for re-triage under the owner's 2026-10-24 rule: an issue stops for a person only for an intent or vision question, a security call, a host or attended run, or spend outside prepaid credit. The hold label came off and intake triage runs again now; it re-applies a hold, with a numbered question, when one of those applies.
To hold this issue again, add needs-human (or status: needs-decision) and say why in a comment.
Not admitted to the issue lane: a criterion names .github/workflows/pr-merge.yml, which the issue lane cannot push (patch-protected-path); a builder session takes it. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: After N consecutive unreadable (exit 3) post-merge sweeps in pr-merge, the workflow emits one ::error and files or updates one tracking issue naming the read error, and the next readable sweep clears it; it only notifies and never demotes.
Acceptance criteria
docs/conventions/pr-pipeline.yaml has a documented setting under merge: for the consecutive-unreadable-sweep threshold, default 4
The 'Check earlier lane merges' step in .github/workflows/pr-merge.yml keeps a count of consecutive exit-3 sweeps (from prior run artifacts such as pr-merge-lane-records or a marker comment) and resets it on any readable sweep
When the count reaches the threshold the step prints one ::error naming the read error from the post-merge JSON reason
At the threshold exactly one tracking issue is filed, or the existing open one is updated, naming the read error; no duplicate is filed on later unreadable sweeps
A readable sweep (exit other than 3) comments on and closes the tracking issue, or clears the notice
An isolated or fewer-than-N unreadable sweep files no issue and emits no ::error (the existing ::warning stays)
The alert never demotes pr-merge or changes the hold behavior or exit codes
A test or script check covers: 3 unreadable sweeps file nothing, the 4th files one issue, a 5th updates it, and a readable sweep clears it
Existing workflow lint/validation checks for pr-merge.yml still pass
Dependencies
#9204 and #9205 are related but not blocking; the alert only notifies
context.json: the owner's Decision recorded comment sets threshold 4, ::error plus a notice, never demotes, self-clearing
/home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/workflows/pr-merge.yml:184-221: 'Check earlier lane merges' prints only ::warning for exit 2, 3 or 4 and saves code and JSON in the post-merge report
/home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/workflows/pr-merge.yml:176-182: lane-records artifact from the last run is already read across runs, a precedent for carrying state
/home/runner/work/claude-code-plugins/claude-code-plugins/.base/docs/conventions/pr-pipeline.yaml:820-842: the merge: block where the new setting goes
Automated refinement by the lanes App. Admission counts only criteria a listed human wrote: to confirm these, post them as your own comment whose first line is **Decision recorded.**, which sends the issue back through intake.
Decision recorded. Intake's newest refinement (#9170 (comment)) asks no open questions. The owner set the threshold and the action on 2026-10-22. Nothing new is decided here.
after 4 consecutive unreadable pr-merge sweeps (about 1 hour), emit ::error and post a notice.
It only notifies: it never demotes, and it clears itself when a sweep reads complete again.
The owner's Q677 outage posture (poteto-review ledger :722, 2026-10-22) says "lane-filed records close themselves", so a readable sweep closes the issue rather than commenting on it.
How the count is kept (run artifacts or a marker comment) is not decided; it is an implementation choice.
Acceptance criteria (the body's Verification paragraph converted, wording unchanged except splitting it into lines; the threshold and the never-demotes line come from the decision):
A setting under merge: in docs/conventions/pr-pipeline.yaml holds the threshold, default 4.
Four unreadable sweeps in a row produce one ::error and one issue.
Decision recorded. This amends this issue's earlier decision record. The owner, in the Refinement session (2026-10-26), after dropping #9087 as overengineering:
We have /goal for that sort of stuff anyway - make sure we don't/didn't add any other bullshit like that
A review of the earlier record found a mechanism that an existing control already covers, or that nothing acts on. The change below replaces only the named criteria; the rest of the record stands.
Build the unreadable-sweep alert as a signal in the existing maintenance-monitor-signals, which already reads pr-merge sweeps every hour and keeps one rolling issue per signal (.github/workflows/maintenance-monitor-signals.yml:1-12). The owner's threshold of 4 is a constant in that signal. Drop the new merge: config key and the separate counter and issue filing in pr-merge. The alert still never demotes.
Activity
github-actions commentedon Oct 22, 2026
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Small
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Decision recorded (amendment):
This settles the open questions. Understood: add an unreadable-post-merge-sweep signal to maintenance-monitor-signals, firing after 4 consecutive unreadable sweeps, notify-only, and clearing itself on a readable sweep.
Automated triage, applied by the lanes App.
kyle-sexton commentedon Oct 22, 2026
Decision recorded. The owner set the threshold (2026-10-22, Q678, "Yes, go with recommendations."): after 4 consecutive unreadable pr-merge sweeps (about 1 hour), emit
::errorand post a notice. It only notifies: it never demotes, and it clears itself when a sweep reads complete again. Security & Cost asked for the same bound so that an unreadable hold is never silent. Related: #9204 (automatic recovery from the unlisted-record hold), #9205 (outage posture for every lane).kyle-sexton commentedon Oct 24, 2026
Released for re-triage under the owner's 2026-10-24 rule: an issue stops for a person only for an intent or vision question, a security call, a host or attended run, or spend outside prepaid credit. The hold label came off and intake triage runs again now; it re-applies a hold, with a numbered question, when one of those applies.
To hold this issue again, add
needs-human(orstatus: needs-decision) and say why in a comment.melodic-automation-lanes commentedon Oct 24, 2026
Not admitted to the issue lane: a criterion names .github/workflows/pr-merge.yml, which the issue lane cannot push (patch-protected-path); a builder session takes it. Admission takes the issue once each of those is met, when intake triages it again (
.github/actions/resolve-config/admission-rules.json).melodic-automation-lanes commentedon Oct 24, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: After N consecutive unreadable (exit 3) post-merge sweeps in pr-merge, the workflow emits one ::error and files or updates one tracking issue naming the read error, and the next readable sweep clears it; it only notifies and never demotes.
Acceptance criteria
merge:for the consecutive-unreadable-sweep threshold, default 4Dependencies
Related work
Sources read
Automated refinement by the lanes App. Admission counts only criteria a listed human wrote: to confirm these, post them as your own comment whose first line is
**Decision recorded.**, which sends the issue back through intake.kyle-sexton commentedon Oct 26, 2026
Decision recorded. Intake's newest refinement (#9170 (comment)) asks no open questions. The owner set the threshold and the action on 2026-10-22. Nothing new is decided here.
Source, quoted verbatim, #9170 (comment):
The owner's Q677 outage posture (poteto-review ledger :722, 2026-10-22) says "lane-filed records close themselves", so a readable sweep closes the issue rather than commenting on it.
How the count is kept (run artifacts or a marker comment) is not decided; it is an implementation choice.
Acceptance criteria (the body's Verification paragraph converted, wording unchanged except splitting it into lines; the threshold and the never-demotes line come from the decision):
merge:in docs/conventions/pr-pipeline.yaml holds the threshold, default 4.::errorand one issue.kyle-sexton commentedon Oct 26, 2026
Decision recorded. This amends this issue's earlier decision record. The owner, in the Refinement session (2026-10-26), after dropping #9087 as overengineering:
A review of the earlier record found a mechanism that an existing control already covers, or that nothing acts on. The change below replaces only the named criteria; the rest of the record stands.
maintenance-monitor-signals, which already reads pr-merge sweeps every hour and keeps one rolling issue per signal (.github/workflows/maintenance-monitor-signals.yml:1-12). The owner's threshold of 4 is a constant in that signal. Drop the newmerge:config key and the separate counter and issue filing in pr-merge. The alert still never demotes.melodic-automation-lanes commentedon Oct 28, 2026
The latest triage verdict holds nothing: admission moved the issue to
status: confirmed; its comment says why.fix(pr-pipeline): read post-merge reports from pr-merge runs still in…