Skip to content

Unblock daily workflow startup failures in doc-healer (Claude model) and model-inventory (Copilot SDK auth)#37040

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/aw-failures-fix-workflows
Closed

Unblock daily workflow startup failures in doc-healer (Claude model) and model-inventory (Copilot SDK auth)#37040
Copilot wants to merge 2 commits into
mainfrom
copilot/aw-failures-fix-workflows

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 5, 2026

Two scheduled workflows were failing before first agent turn due to startup config regressions: Documentation Healer hit an unsupported Claude effort path, and Model Inventory Checker lost token auth in Copilot SDK driver execution. This PR removes the failing model path in doc-healer and restores runtime auth token availability for copilot-sdk agent startup.

  • Documentation Healer: remove unsupported small-agent execution path

    • Pin .github/workflows/daily-doc-healer.md to engine.model: "agent".
    • Remove the model_size experiment block that introduced small-agent.
    • Recompile lockfile to remove experiment wiring and ensure the runtime model resolves to agent.
  • Model Inventory Checker: restore auth token plumbing for Copilot SDK agent runs

    • In pkg/workflow/copilot_engine_execution.go, stop emitting --exclude-env COPILOT_GITHUB_TOKEN when engine.copilot-sdk: true.
    • Keep existing BYOK behavior unchanged; this adjustment is specific to copilot-sdk mode where the driver must access auth in-process to create the session.
    • Recompile daily-model-inventory.lock.yml so the generated AWF command reflects the new exclusion behavior.
  • Regression guard

    • Add a focused test in pkg/workflow/copilot_engine_test.go asserting copilot-sdk mode does not exclude COPILOT_GITHUB_TOKEN.
// copilot-sdk mode must keep COPILOT_GITHUB_TOKEN visible to the driver runtime.
if !isBYOKMode && !isCopilotSDKMode {
	copilotCoreSecrets = []string{"COPILOT_GITHUB_TOKEN"}
}

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix daily workflows failing at agent start Unblock daily workflow startup failures in doc-healer (Claude model) and model-inventory (Copilot SDK auth) Jun 5, 2026
Copilot AI requested a review from pelikhan June 5, 2026 03:05
@pelikhan pelikhan closed this Jun 5, 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-failures] Two daily workflows fail at agent start: Documentation Healer (effort-param 400) & Model Inventory Checker (BYOK auth)

2 participants