Skip to content

Promote 'pull request contract' to a required status check (sweep #756 first) #810

Closed

Description

@athvin

pull request contract shipped in #809 not required, deliberately: a context
made required before it has reported blocks every open pull request whose body
predates the template. Two of its three preconditions are already met.

gh api -X PATCH repos/athvin/entity-resolution-engine/branches/main/protection/required_status_checks \
  -f 'contexts[]=pull request contract'   # plus the existing 14 — read them first, never replace blind

Read the existing contexts and append, because that endpoint replaces the
list. The current set is 14; dropping one silently removes a gate.

Worth deciding at the same time: whether the exemptions are right. Today they
are merge-bus/*, Dependabot, a Revert title prefix, and the no-ticket
label. The merge-bus one is load-bearing — merge-bus-verdict.sh reads the bus
pull request's rollup, so a failing context there would stop every batch.

One known cosmetic wart to keep in mind while deciding: because a body edit
re-triggers the check, one head SHA can carry several check-runs of the same
name, and statusCheckRollup returns all of them. Branch protection reads
the latest, so merging is unaffected, but gh pr checks will show a healed red.

Activity

  1. added
    ci-backlog
    on Nov 7, 2026
  2. athvin commented on Nov 7, 2026

    @athvin
    OwnerAuthor

    One more item for whoever takes this, found by using the ledger rather than reading it — #809's was the first one ever closed:

    The ledger vocabulary has no word for "deferred to a tracked ticket". land-pr Phase 4 defines two annotations — n/a — <why> (counts as done) and blocked — <why> (leaves the box empty, gets reported) — and the #756 sweep is neither. It is not inapplicable and nothing blocks it; it is simply owned by this ticket instead. I ticked it n/a with the reason spelled out, which is defensible but blurs a distinction the mechanism depends on: an empty box has exactly one meaning today, and that is worth keeping.

    Suggested fix, one line in each place: add deferred — <ticket> as a third annotation that ticks the box, since the work is tracked elsewhere and the audit should not report it as owed. Touches .claude/skills/land-pr/SKILL.md (Phase 4's four rules) and the comment in .github/pull_request_template.md.

  3. self-assigned this
    on Nov 7, 2026
  4. athvin commented on Nov 7, 2026

    @athvin
    OwnerAuthor

    Claimed — working the vocabulary half in the draft PR above. Session 4bc5a8d3-968f-421f-97af-274d64ddb944 on brians-MacBook-Pro.

    The promotion half is done: pull request contract is now the 15th required context (the 14 existing ones preserved verbatim, strict still false). The sweep precondition resolved itself — the #756 session added the ledger after being notified, and #811 was opened from the new template, so both open PRs pass the check and neither is blocked by it (each is waiting only on its own Rust jobs).

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

Metadata

Metadata

Assignees

Labels

ci-backlog

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions