Skip to content

[aw] Pin Daily Go Function Namer experiment to concrete Claude models#37325

Merged
pelikhan merged 4 commits into
mainfrom
copilot/aw-daily-go-function-namer-failed
Jun 6, 2026
Merged

[aw] Pin Daily Go Function Namer experiment to concrete Claude models#37325
pelikhan merged 4 commits into
mainfrom
copilot/aw-daily-go-function-namer-failed

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 6, 2026

Daily Go Function Namer failed because the experiment alias path selected a model/config combination that sent unsupported effort/adaptive-thinking parameters. This change removes alias ambiguity in that workflow by using explicit Claude model IDs.

  • Workflow change (source of truth)

    • Updated /home/runner/work/gh-aw/gh-aw/.github/workflows/daily-function-namer.md to replace alias variants:
      • from agent, small-agent
      • to claude-sonnet-4-6, claude-haiku-4-5-20251001
    • Kept experiment intent intact (quality vs token-cost comparison), but made model selection deterministic for Claude runs.
  • Compiled workflow sync

    • Regenerated /home/runner/work/gh-aw/gh-aw/.github/workflows/daily-function-namer.lock.yml so GH_AW_EXPERIMENT_SPEC carries the concrete model variants at runtime.
  • Regression guard

    • Added/updated TestDailyFunctionNamerUsesConcreteClaudeModelsForExperiment in pkg/workflow/prompts_test.go:
      • parses frontmatter structurally
      • asserts exact concrete variants
      • asserts aliases (agent, small-agent) are not present
experiments:
  model_size:
    variants: [claude-sonnet-4-6, claude-haiku-4-5-20251001]

Copilot AI linked an issue Jun 6, 2026 that may be closed by this pull request
Copilot AI and others added 3 commits June 6, 2026 14:54
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix daily Go Function Namer workflow failure [aw] Pin Daily Go Function Namer experiment to concrete Claude models Jun 6, 2026
Copilot AI requested a review from pelikhan June 6, 2026 15:03
@pelikhan pelikhan marked this pull request as ready for review June 6, 2026 15:05
Copilot AI review requested due to automatic review settings June 6, 2026 15:05
@pelikhan pelikhan merged commit 04317af into main Jun 6, 2026
@pelikhan pelikhan deleted the copilot/aw-daily-go-function-namer-failed branch June 6, 2026 15:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Pins the Daily Go Function Namer workflow experiment to explicit Claude model IDs to avoid alias-driven configuration drift (e.g., unsupported effort / adaptive-thinking params), and adds a regression test to ensure the frontmatter stays deterministic.

Changes:

  • Updated .github/workflows/daily-function-namer.md experiment variants to concrete Claude model IDs.
  • Regenerated .github/workflows/daily-function-namer.lock.yml so GH_AW_EXPERIMENT_SPEC carries the concrete variants at runtime.
  • Added TestDailyFunctionNamerUsesConcreteClaudeModelsForExperiment to enforce exact variants and disallow aliases.
Show a summary per file
File Description
pkg/workflow/prompts_test.go Adds a frontmatter-parsing regression test for concrete Claude experiment variants.
pkg/workflow/data/action_pins.json Updates embedded action pins (includes removal/downgrade changes that appear unrelated to the PR’s stated goal).
pkg/actionpins/data/action_pins.json Same embedded action pin updates in the actionpins package copy.
.github/workflows/daily-function-namer.md Replaces agent/small-agent experiment variants with concrete Claude model IDs and updates experiment text accordingly.
.github/workflows/daily-function-namer.lock.yml Regenerates compiled workflow to reflect the updated experiment variants in GH_AW_EXPERIMENT_SPEC.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 5/5 changed files
  • Comments generated: 3

Comment on lines +270 to +281
variants, ok := modelSize["variants"].([]any)
if !ok {
t.Fatal("Expected daily-function-namer workflow to define experiments.model_size.variants")
}
if len(variants) != 2 || variants[0] != "claude-sonnet-4-6" || variants[1] != "claude-haiku-4-5-20251001" {
t.Fatalf("Expected concrete Claude variants [claude-sonnet-4-6, claude-haiku-4-5-20251001], got %#v", variants)
}
for _, variant := range variants {
if variant == "agent" || variant == "small-agent" {
t.Fatalf("Expected concrete model variants, found alias %q", variant)
}
}
Comment on lines +176 to +179
"github/gh-aw-actions/setup@v0.76.1": {
"repo": "github/gh-aw-actions/setup",
"version": "v0.78.2",
"sha": "268bf92726cb8153337c07166f382ee46e4fd897"
},
"github/gh-aw/actions/setup-cli@v0.78.2": {
"repo": "github/gh-aw/actions/setup-cli",
"version": "v0.78.2",
"sha": "a7d4043a8224182262356a32931099b76fd332eb"
"version": "v0.76.1",
"sha": "46d564922b082d0db93244972e8005ea6904ee5f"
Comment on lines +176 to +179
"github/gh-aw-actions/setup@v0.76.1": {
"repo": "github/gh-aw-actions/setup",
"version": "v0.78.2",
"sha": "268bf92726cb8153337c07166f382ee46e4fd897"
},
"github/gh-aw/actions/setup-cli@v0.78.2": {
"repo": "github/gh-aw/actions/setup-cli",
"version": "v0.78.2",
"sha": "a7d4043a8224182262356a32931099b76fd332eb"
"version": "v0.76.1",
"sha": "46d564922b082d0db93244972e8005ea6904ee5f"
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] Daily Go Function Namer failed

3 participants