Repository navigation
Description
Refs: #9205
Problem
This is slice 2 of #9205; #11596 delivered slice 1. It builds element 4 of the posture in #9205's body (owner decision Q677, record):
- Demote or file a failure only on positive evidence from a complete read. A record a lane filed is closed by the lane when a later complete read contradicts it.
The #9205 body names the case: "a post-merge-failure record such as #9177 closing itself when main's next full run is green".
On origin/main 403185fdab, the alert job files that record only when no merge in the failing range came from the lanes App. It is labeled needs-human, "but no reader treats it as a demotion" (alert workflow header, lines 15-19). The babysit check says the same: "The alert's post-merge-failure record never holds the gate" (plugins/source-control/skills/babysit-prs/scripts/babysit_postmerge.py:3474). Closing it when main goes green therefore lifts no merge stop. Today nothing closes one: the alert workflow files it (post-merge-demotion-alert.yml:643, :842) and reopens a closed one (:909).
Out of scope: babysit-merge-demotion records. The merge-policy reader holds the rung off on them (alert workflow header, lines 6-9), and the 2026-10-16 decision on #7531 (comment) keeps them "the babysit-merge-demotion issues that only a person closes".
Done when
- An open
post-merge-failurerecord for a signal and SHA is closed by the alert job when a later complete read finds a green full run of that signal on main after that SHA. A failed, partial or over-budget read closes nothing. - The close comment names the green run that contradicted the record.
- The PR lists the other kinds of record a lane files on this tracker. For each kind it gives the filing script, the marker, and whether a reader treats an open record as a merge stop. Each kind that stops no merge gets the same close-on-contradiction rule, or is named under "Remaining".
- Canary and revert
babysit-merge-demotionrecords keep today's person-only close. Schedule and dispatch demotion records close once main is green at a later commit, per the owner's later Q3 answer (2026-10-30, recorded on #11022; see this decision). - For each kind that closes, a test shows the record closing after a contradicting complete read and staying open after an unknown read.
Build: host session (host-run). The record is filed and reopened in .github/workflows/post-merge-demotion-alert.yml, so the close lands there too; any helper can sit under .github/scripts/post-merge-demotion-alert/.
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Activity
github-actions commentedon Nov 2, 2026
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Understood: slice 2 of #9205. The alert job should close an open post-merge-failure record when a later complete read finds a green full run of that signal on main after the SHA. The close comment names that run, and a failed or partial read closes nothing. The PR also inventories the other lane-filed record kinds and tests the close path.
Note: the comment by kyle-sexton says item 4 (person-only close for babysit-merge-demotion) is superseded for schedule and dispatch records. Its first line isn't exactly
**Decision recorded.**, so I haven't treated it as a recorded decision. Triage proceeds on the issue text. The implementer should reconcile item 4 with it. The comment also says a claim is in progress via #12416 and #12279.No duplicates found.
Automated triage, applied by the lanes App.
melodic-automation-lanes commentedon Nov 2, 2026
Not admitted to the issue lane: it carries host-run. 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 Nov 2, 2026
The latest triage verdict holds nothing: admission moved the issue to
status: confirmed; its comment says why.kyle-sexton commentedon Nov 2, 2026
Claim. Backlog HITL host-run worker is taking this now: #12416 adds the close-cleared failed-read tests; the close itself shipped in #12279.
test(pr-pipeline): run close-cleared's failed-read cases over demotio…
kyle-sexton commentedon Nov 2, 2026
Decision recorded. (agent; restates an owner decision, not a new one)
Done-when item 4 ("
babysit-merge-demotionrecords keep today's person-only close") is superseded for schedule and dispatch demotion records by the owner's later answer to Q3 on 2026-10-30, recorded on #11022: "Should a demotion caused by a post-merge failure clear itself, closing once main is green again at a later commit?" "yes". #12279 built that answer as theclose-clearedjob. The #7531 decision of 2026-10-16 that item 4 cites predates it.Item 4 still holds for canary and revert demotion records: they keep the person-only close until #11022 item 5 lands. Closing a schedule or dispatch demotion record lifts no hold by itself, because
babysit_merge_policy.py_recovered_atdecides whether a record holds (post-merge-demotion-alert.yml:1291-1294).Basis: the owner comment linked above;
post-merge-demotion-alert.yml:1295-1373at main. Tests: #12416.