Skip to content

fix(source-control): report an unreadable pass as verify:unreadable, not verify:missing #17377

Closed

Description

@kyle-sexton

Problem

The merge-queue verify reader reports verify:missing for a head that pr-verify passed, and ejects the PR.

  • Observed on feat(knowledge): hand course-digest rule candidates to corrections:codify #17216: head d8df3b9be915895ea442ee0082e9742a73c19e4b. pr-verify run 44450931035 judged it and uploaded pr-verify-17216-d8df3b9b…-pass-notes (artifact 14495188559) at 2026-11-19T03:24:58Z.
  • The ejection: merge-group CI Status run 44454279712 (job 135327490589) ejected the PR at 03:58:09Z with verify:missing.
  • Same reader, same inputs, different result: run locally, read-only, on base d72cf09 with identical scripts, it returns refusal: null, atHead: ["pass-notes"].

Likely cause (unverified)

  • CI made 1 runs/{} read and no compare or zip download. That fits a pass whose run read failed, possibly on the hourly GITHUB_TOKEN floor (The workflow token reaches its rate-limit floor each hour and its steps fail instead of waiting #16642).
  • _run_state turns any failed read into UNREAD without a word (plugins/source-control/skills/babysit-prs/scripts/babysit_verify_evidence.py:2715-2718).
  • For a pass, that file then adds it to ignored (:4072-4076), and _evidence falls through to verify:missing (:4200-4201). The result should be verify:unreadable.

Fix

  1. A pass whose run cannot be read reports verify:unreadable (retryable), not verify:missing.
  2. In index mode, pr-require-checks.yml:7256-7259 prints "refused … before listing artifacts" even though the reader did list artifacts (babysit-index-reads {"pr": 17216, "names": 7, "reads": 10}). Print that notice only when no listing was attempted.

Done when

  • A test where the pass's run read fails yields verify:unreadable.
  • The index-mode notice no longer claims no listing happened.

Refs: #16642

🤖 Generated with Claude Code

Activity

  1. added
    needs-triage
    on Nov 19, 2026
  2. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: the babysit verify-evidence reader, its tests, and one notice line in pr-require-checks.yml. It is read by the merge-queue CI Status check and by anyone babysitting PRs.
    Reversible: yes; revert the change.
    Open questions: none
    Understood: when a head's pr-verify pass has an unreadable run, the reader reports verify:missing and ejects the PR. It should report the retryable verify:unreadable. The index-mode notice also wrongly says "before listing artifacts" after artifacts were listed. The acceptance criteria in the refinement comment cover both. No duplicate or merged fix found. Related: #16642 (token floor, likely cause of the failed read).

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 19, 2026
  4. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited; intake's refinement of this body is due and may supply them.

  5. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    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: A head's pass whose run read fails is reported as retryable verify:unreadable instead of verify:missing, and the index-mode notice no longer says no listing happened when the reader did list artifacts.

    Acceptance criteria

    • In babysit_verify_evidence.py, the pass branch of the verdict loop (around :4064-4077) sets unreadable (for example run of {name}) when _run_state\(run_id\) returns UNREAD for a pass at the PR's head; a FOREIGN or non-counted run still only adds to ignored.
    • A new test in scripts/tests/test_babysit_verify_evidence.py has the head's pass artifact listed and its runs/{id} read fail, and asserts the Evidence refusal is verify:unreadable and not verify:missing.
    • A test or existing case shows a pass whose run reads as foreign or not counted still yields verify:missing, so that behavior does not regress.
    • A FAIL or EARLIER_FAIL refusal still takes precedence over the new unreadable pass, as the unreadable branch order at :4152-4179 already gives.
    • The ::notice::the verdict reader refused ... before listing artifacts line in .github/workflows/pr-require-checks.yml (now at :6889) is printed only when the reader attempted no artifact listing; an index-mode run that listed or read artifacts by name does not print it.
    • A check (workflow test or script test) shows the notice is absent in the index-mode refusal case and present when the refusal came from an unread config or commit list.
    • The module docstring or doc text in babysit_verify_evidence.py (around :83-129) states that a pass whose run cannot be read is verify:unreadable.
    • The existing tests in scripts/tests/test_babysit_verify_evidence.py and test_babysit_merge_skip.py pass.

    External state: none

    Dependencies

    • Related to #​16642 (hourly GITHUB_TOKEN floor, the likely cause of the failed read); the fix does not wait on it.

    Related work

    Sources read

    • plugins/source-control/skills/babysit-prs/scripts/babysit_verify_evidence.py:2717: _run_state sets and returns UNREAD for a failed run read.
    • plugins/source-control/skills/babysit-prs/scripts/babysit_verify_evidence.py:4072: a pass at the head counts only when the run state is COUNTED; any other state, UNREAD included, only increments ignored.
    • plugins/source-control/skills/babysit-prs/scripts/babysit_verify_evidence.py:4178: unreadable set gives refusal UNREADABLE; with no passes the code falls to MISSING at :4201.
    • plugins/source-control/skills/babysit-prs/scripts/babysit_verify_evidence.py:4082: a FAIL with an UNREAD run already sets unreadable when tied; the pass path has no equivalent.
    • .github/workflows/pr-require-checks.yml:6886: the notice is gated only on an empty listing file plus a string refusal.
    • .github/workflows/pr-require-checks.yml:6889: the notice text says refused before listing artifacts.
    • .github/workflows/pr-require-checks.yml:6890: FAIL index mode saves no listing file, which is why the notice can appear after artifacts were read.
    • plugins/source-control/skills/babysit-prs/scripts/tests/test_babysit_verify_evidence.py: 37 existing verify:missing references, where the new test fits.

    Automated refinement by the lanes App. Intake triages the issue again with it.

  6. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"a3475e8a5039b7a57d80eaf0b084bb8cf19dd484b8ae01e3bde68a39f74aa470","body_sha256":"4482bc9daf161241aedb28b2e83ecf6a170031e177e491fbb5dfcb3d1df4fc4c"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    deferred

    Priority

    high

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions