Skip to content

fix(triage): drop inaccessible grok-4.7 pin from scheduled Triage Panel - #3515

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
lane-a/unpin-triage-model
Nov 10, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
lane-a/unpin-triage-model

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

fix(triage): drop the inaccessible grok-4.7 pin from the scheduled Triage Panel

TL;DR

Every scheduled Triage Panel sweep has failed since 2026-10-21 because the workflow hard-codes COPILOT_MODEL to grok-4.7, which the Copilot endpoint rejects. This PR removes the pin so all runs use the repository model variable like the other agentic workflows. Part of the 2026-11-10 issue-reduction program (Atlas: documents/2026-11-10-issue-reduction-program.md in danielmeppiel/apm-atlas), approved by Daniel Meppiel (@danielmeppiel).

Problem (WHY)

Approach (WHAT)

Remove the engine.env.COPILOT_MODEL override in .github/workflows/triage-panel.md. Agent runs then fall back to the compiler default, vars.GH_AW_MODEL_AGENT_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto', which is already used by perf-scan, pr-review-panel and the other gh-aw workflows. The detection job gets the compiler default detection. Scheduled-sweep scoping (prefetch, five-issue cap, 30-minute timeout) is unchanged.

Implementation (HOW)

File Change
.github/workflows/triage-panel.md Drop the two-line engine.env block.
.github/workflows/triage-panel.lock.yml Recompiled with gh-aw v0.89.15, the version recorded in the lock header. The diff is only the frontmatter hash and the two COPILOT_MODEL lines.
tests/unit/test_triage_panel_lock.py Assert that there is no model pin in the source, the agent step uses the default expression, and detection uses detection.
docs/src/content/docs/contributing/development-guide.md Replace "uses pinned grok-4.7" with the default-model behavior.

Trade-offs

Validation

Commands and results
  • gh aw compile triage-panel (gh-aw v0.89.15): recompiling unchanged main first produced no diff. After the edit, only the expected lines changed.
  • uv run --frozen --extra dev pytest tests/unit/test_triage_panel_lock.py -q: 22 passed.
  • uv run --frozen --extra dev ruff check src/ tests/: All checks passed.
  • uv run --frozen --extra dev ruff format --check src/ tests/: 2007 files already formatted.
  • grep -rn grok-4.7 .: no remaining references.

How to test

  • After merge, wait for the next scheduled run (daily, around 12:2x UTC) or dispatch Triage Panel with a blank issue_number -> the agent step no longer fails with the grok-4.7 400 error.
  • Check the run's COPILOT_MODEL env -> it shows the repository variable or auto.

Issue and approved scope

Issue: Refs #3511 | Refs #3260

Human scope-approval comment: approved by Daniel Meppiel (@danielmeppiel) as part of the 2026-11-10 issue-reduction program (Atlas decision decisions/2026-11-10-issue-reduction-policies.md and program documents/2026-11-10-issue-reduction-program.md in danielmeppiel/apm-atlas; the census names the grok-4.7 pin as a leak to fix).

Does this PR complete the issue, or what remains? It removes the root cause of the failures tracked in #3511. Close #3511 only after a scheduled run succeeds on main. #3260 still needs a week of real scheduled outcomes.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Spec conformance (OpenAPM v0.1)

If this PR changes behaviour that an OpenAPM v0.1 req-XXX covers,
confirm the three-step ritual in the
development guide:

  • Spec edit: docs/src/content/docs/specs/openapm-v0.1.md updated
    (new/changed <a id="req-XXX"></a> anchor + prose + Appendix C
    row).
  • Manifest edit: docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.yml
    updated.
  • Test edit: a @pytest.mark.req("req-XXX") test under
    tests/spec_conformance/ added or extended.
  • CONFORMANCE.{md,json} regenerated via
    uv run --extra dev python -m tests.spec_conformance.gen_statement
    and committed.
  • N/A -- this PR does not change OpenAPM-observable behaviour.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Scheduled and blank-dispatch Triage Panel runs hard-coded COPILOT_MODEL
to grok-4.7, which has returned 400 'model is not accessible' since
2026-11-04, so every daily sweep failed and opened an [aw] failure issue.
Remove the engine.env override so all modes use the repository model
variable (GH_AW_MODEL_AGENT_COPILOT, else GH_AW_DEFAULT_MODEL_COPILOT,
else auto) like the other agentic workflows, and the detection job uses
the compiler default. Recompiled with gh-aw v0.89.15 (recorded version).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the model-default update, although scheduled runs are still needed to validate recovery.

No open issues 🎉

What changed in this PR

This PR removes the inaccessible grok-4.7 model pin that caused scheduled Triage Panel failures, aligning model selection with the repository defaults. Sweep limits and issue-selection behavior remain unchanged; successful scheduled runs are still needed to validate recovery for #3511 and #3260.

Changes:

  • Remove the source model override and regenerate the workflow with the default agent-model fallback and detection model.
  • Update regression assertions for source and compiled model settings.
  • Document the default-model behavior.
File Description
tests/​unit/​test_triage_panel_lock.py Assert the absence of the model override and expected compiled defaults.
docs/​src/​content/​docs/​contributing/​development-guide.md Replace the pinned-model description with default-model behavior.
.github/​workflows/​triage-panel.md Remove the COPILOT_MODEL override.
.github/​workflows/​triage-panel.lock.yml Update the generated hash and agent/detection model settings.

Review effort: Balanced

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 0bed860 into main Nov 10, 2026
36 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the lane-a/unpin-triage-model branch November 10, 2026 18:12
This was referenced Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Triage Panel failed

2 participants