Skip to content

[BUG] Triage Panel sweep re-selects decided issues and stops before finishing the batch #3260

Open

Description

Summary

The scheduled Triage Panel (.github/workflows/triage-panel.md) has not produced useful output for most of the last week. Over 7 days only the 11 Oct run gave advice (20 items). The 9, 13 and 14 Oct runs reported incomplete, and the 10, 12 and 15 Oct runs produced no outputs.

Root cause

  1. The sweep re-picks issues that maintainers have already decided. The candidate query excludes only triage/recommended and status/triaged. Issues labelled status/accepted or status/declined, or carrying an <!-- apm-scope:v1 --> record, stay eligible. The prompt correctly forbids the panel from touching them, so it skips them, nothing changes, and the same oldest issues are selected again every day, crowding out issues that actually need triage.
  2. The model gives up early. With COPILOT_MODEL: auto (resolving to claude-sonnet-5.5), a local repro with writes off called noop after about 10 seconds in 2 of 3 sweeps, and the 14 Oct run cited a non-existent "budget" as its reason to stop. The same prompt on grok-4.7 completed the full batch in about 5 minutes.

Proposed fix

  1. Exclude decided issues from the sweep: status/accepted, status/declined, and issues with an apm-scope:v1 record.
  2. Have the helper scripts fetch labels and scope records up front, so the model does not look them up itself mid-run.
  3. State in the prompt that the only limit is the 30-minute job timeout, and that it must not stop until every selected issue is handled.
  4. Cap each scheduled sweep at 3 to 5 issues.
  5. Pin the model instead of auto.

Done when

A week of scheduled runs completes with advice on every selected issue, and no run re-selects an issue that already has a maintainer decision.

Activity

  1. added
    bug
    on Oct 16, 2026
  2. sergio-sisternes-epam commented on Oct 16, 2026

    @sergio-sisternes-epam
    ContributorAuthor

    Decision: approve
    Area: project
    Scope: Fix the scheduled Triage Panel in .github/workflows/triage-panel.md: exclude issues labelled status/accepted or status/declined, or carrying an apm-scope:v1 record, from the sweep; have the helper scripts fetch labels and scope records up front; state in the prompt that the only limit is the 30-minute timeout; cap each sweep at 3 to 5 issues; pin the model instead of auto.
    Done when: A week of scheduled runs completes with advice on every selected issue, and no run re-selects an issue that already has a maintainer decision.
    Out of scope: Changes to the per-issue triage/requested path or to triage criteria and labels.
    Review contact: Sergio Sisternes (@sergio-sisternes-epam)

  3. added
    status/accepted
    on Oct 16, 2026
  4. added 2 commits that reference this issue on Oct 21, 2026
  5. danielmeppiel commented on Nov 10, 2026

    @danielmeppiel
    Collaborator

    Status update. Maintainer backlog policy (2026-11-10): an accepted issue is closed as completed when a merged PR meets its done-when, and remaining work is filed as a new linked issue. This decision was approved by Daniel Meppiel (@danielmeppiel) at Gate B on 2026-11-10.

    Keeping this issue open as the verification tracker. #3277 (merge 6f691d2c8e76f11519bfcc1d5b371b0979138fe4) delivered the code part of the accepted scope: scheduled sweeps prefetch labels and scope records, exclude status/accepted, status/declined and apm-scope:v1 issues, and cap each sweep at five. The done-when is not yet met: every scheduled Triage Panel run since 2026-11-05 has failed on the inaccessible grok-4.7 model pin.

    The model pin is addressed by #3515. This issue will be closed as completed under P2 after #3515 merges and 7 consecutive scheduled runs complete with advice on every selected issue and no re-selection of an issue that already has a maintainer decision.


    Generated by issue-reduction-lane-a. This comment is AI-generated and may contain errors.

  6. added
    pillar/foundations
    on Nov 12, 2026
  7. danielmeppiel commented on Nov 25, 2026

    @danielmeppiel
    Collaborator

    Moved to 0.40.0 at the v0.39.0 scope freeze: v0.39.0 now takes only bug fixes. This item is a feature, design, research or tracking item, or still needs design.

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

Metadata

Metadata

Labels

bugpillar/foundationsstatus/accepted

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions