Skip to content

Mark a pr-verify pass stale when the standards trusted-actor list changes #18784

Description

@kyle-sexton

Context

A pr-verify pass judges a pull request with the trusted-actor list it read from melodic-software/standards (components/trusted-actors/trusted-actors.json). Nothing marks that pass stale when the list changes afterwards, so once the repositories' .github/standards/ copies are deleted, a pass judged under an older list keeps counting. The owner decided how such a verdict goes stale (owner decision row 383, recorded in docs/owner-decisions.md): option (c), accepted as A2 of the standards track-main accept of 2026-11-24. Owner, verbatim: "/session-flow:go-with-recommendations".

Proposed work

  • pr-verify's verdict records trusted_actors_blob, the git blob id of the standards list the run read (git rev-parse HEAD:components/trusted-actors/trusted-actors.json at the run's standards checkout).
  • The babysit gate (babysit_verify_evidence.py _pass_refusal) compares the recorded blob with the live list's exactly, for a repository whose trusted_actors_source is standards, using the same standards_repository the list readers use. A pass with no recorded blob counts as fresh while the repository's .github/standards/trusted-actors/ copy exists, and as stale once it is gone.
  • resolve-pr.mjs specChanged and the lost-run reconciler's prefilterSpec treat a pass that started before the committer time of the newest standards commit touching that file (at the run's standards SHA; standards squash-merges, so that is its merge time) as spec-changed, so the head is judged again. The time is one commits API read a run.

Acceptance criteria

  • A changed list after the pass refuses the pass verify:spec-changed in the gate, and the resolver and reconciler re-judge the head.
  • A change to another standards file leaves the pass fresh in all three.
  • A pass with no recorded blob is fresh while the copy is present, and stale in the gate once it is gone.
  • One fixture shows the resolver and the gate agree on the same standards history.

References

  • .github/scripts/pr-verify/write-verdict.mjs, .github/scripts/pr-verify/resolve-pr.mjs, .github/scripts/maintenance-reconcile-lost-runs/reconcile.mjs, plugins/source-control/skills/babysit-prs/scripts/babysit_verify_evidence.py
  • #18697 (the gate reads the list from standards for opted-in repositories)

Activity

  1. added
    session-owned
    on Nov 24, 2026
  2. added theissue type on Nov 24, 2026
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

    session-owned

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions