Skip to content

refactor(pr-pipeline): fold the admission window into check-wip-cap with a queued-work count #8794

Closed

Description

@kyle-sexton

Problem

Admission pacing lives in two places: admission-window.mjs (release point from the 24h merge count, admission-window-hours, admission_cap) and check-wip-cap (open lane PRs vs the merge-rate cap). Neither counts queued work: open agent-ready issues that have no open lane PR yet.

Intent

Owner decision (2026-10-21 /planning:interview; record .work/lane-flow-policy/SUMMARY.md in the Issue Triage session): one pacing gate.

Acceptance

  • check-wip-cap counts queued work (open agent-ready issues with no open lane PR) and held lane PRs.
  • Pace = merge rate x factor, with the 1/h floor from fix(pr-pipeline): give the admission release point a 1-per-hour floor #8793.
  • admission-window.mjs, limits.admission-window-hours and admission_cap are deleted, with their callers and tests.
  • This replaces owner decisions Q2, Q17 and Q22 once it lands; the README/convention text says so.

Precondition (from the research)

A Large or Knowable issue the lane skips but which keeps agent-ready stays in the queued count forever and pins pacing shut. Those skips must remove or relabel the issue first; #8725 (issue-lane dimension skips report nothing) is related.

Owner merges (HIGH floor). Values are starting points; GitHub Support's metrics drive tuning.

Observability (GitHub Support, 2026-10-21)

Every pause is machine-readable: one step-summary line and annotation per pause, e.g. admission paused: reason=held-cap held=N cap=10 (and reason=wip with its counts for the WIP fold), so the after-measure counts pauses instead of inferring them from run durations.

Activity

  1. added
    needs-triage
    on Oct 21, 2026
  2. github-actions commented on Oct 21, 2026

    @github-actions
    Contributor

    Thanks for the report. Automated triage handed this issue to a maintainer.

    Proposed work class: work-class: structural
    Basis: automated intake triage; a maintainer confirms or changes it.

    Automated triage. A maintainer reviews it.

  3. added
    needs-human
    and removed
    needs-triage
    on Oct 21, 2026
  4. kyle-sexton commented on Oct 22, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision Q-C (2026-10-22, Automation Lanes session: "Go with recommendations"): keep admission_cap / wip.opened-to-merged-ratio (the opened-vs-merged guard, README:1465, distinct from the admission window). The acceptance criterion's deletion of admission_cap is amended: #8967 deletes admission-window.mjs and limits.admission-window-hours and keeps the opened-vs-merged check.

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

    needs-human

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions