Skip to content

[dead-code] chore: remove dead functions — 4 functions removed - #76529

Merged
pelikhan merged 1 commit into
mainfrom
chore/remove-dead-functions-42831976347-57bda63a834e41fd
Nov 10, 2026
Merged

pelikhan merged 1 commit into
mainfrom
chore/remove-dead-functions-42831976347-57bda63a834e41fd

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Functions Removed

Function File
Compiler.warnRoutedModelOverrides pkg/workflow/model_routing.go
validateOpenAIWIFEngineAuth pkg/workflow/compiler_validators.go
expandModelRoutingAlias pkg/workflow/model_routing_candidates.go
ClaudeEngine.computeAllowedClaudeToolsString pkg/workflow/claude_tools.go

Test-only callers were repointed to the live equivalents (validateOpenAIWIFEngineAuthAtPath, expandModelRoutingAliasInNamespace, computeAllowedClaudeToolsStringWithDynamicWorkflows(..., false)).

Tests Removed

  • TestWarnRoutedModelOverrides

Verification

  • go build ./...
  • go vet ./...

https://github.com/github/gh-aw/actions/runs/42831976347

Generated by 🧹 Dead Code Removal Agent · copilot · routed: sonnet55 high · ~68 AIC · ⌖ ~2 AIC · ⊞ 5.1K · ◷

  • expires on Nov 13, 2026, 6:26 AM UTC-08:00

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added chore cookie Issue Monster Loves Cookies! dead-code labels Nov 10, 2026
@github-actions
github-actions Bot requested an adaptive review from Copilot November 10, 2026 14:26
@pelikhan
pelikhan marked this pull request as ready for review November 10, 2026 14:32
@pelikhan
pelikhan merged commit 5b88ec0 into main Nov 10, 2026
13 checks passed
@pelikhan
pelikhan deleted the chore/remove-dead-functions-42831976347-57bda63a834e41fd branch November 10, 2026 14:32

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.

🟡 Changes recommended

Active issues remain because the rename left stale function references in code and ADR documentation, and removing a test eliminated direct coverage of a still-live warning diagnostic.

2 open issues
What changed in this PR

This pull request removes four unused workflow helper functions and updates affected tests to call the canonical implementations directly.

Changes:

  • Removes redundant model-routing, alias-expansion, OpenAI WIF validation, and Claude tool helpers.
  • Repoints unit and integration tests to the live implementations.
  • Removes the obsolete routed-model override test and updates related documentation and comments.
File Description
pkg/​workflow/​reported_tool_permissions_test.go Updates Claude tool permission tests to use the dynamic workflow implementation.
pkg/​workflow/​neutral_tools_simple_test.go Repoints neutral-tool tests to the live Claude tool helper.
pkg/​workflow/​model_routing.go Removes the unused routed-model warning method.
pkg/​workflow/​model_routing_test.go Removes the test for the deleted routed-model warning method.
pkg/​workflow/​model_routing_candidates.go Removes the redundant model alias expansion wrapper.
pkg/​workflow/​model_routing_aliases_test.go Updates alias expansion tests to call the namespace-aware implementation.
pkg/​workflow/​git_commands_test.go Updates Claude tool permission tests to use the canonical helper.
pkg/​workflow/​git_commands_integration_test.go Updates integration setup to use the live Claude tool implementation.
pkg/​workflow/​compiler_validators.go Removes the redundant OpenAI WIF validation wrapper.
pkg/​workflow/​codex_azure_oidc_test.go Updates tests to call path-aware OpenAI WIF validation directly.
pkg/​workflow/​claude_tools.go Removes the unused Claude tool computation wrapper.
pkg/​workflow/​claude_permissions_test.go Updates scoped Claude permission tests to use the live helper.
pkg/​workflow/​claude_engine.go Updates an explanatory comment to reference the remaining Claude tool helper.
pkg/​workflow/​claude_engine_tools_test.go Repoints Claude tool computation tests to the canonical implementation.
pkg/​workflow/​bash_defaults_consistency_test.go Updates cross-engine default consistency tests to use the live helper.

Review effort: Lite (auto)

}

// computeAllowedClaudeToolsString generates the tool specification string for Claude's --allowed-tools flag.
// computeAllowedClaudeToolsStringWithDynamicWorkflows generates the tool specification string for Claude's --allowed-tools flag.
require.Equal(t, 1, compiler.GetWarningCount())
}

func TestGenerateModelRoutingConversationStep(t *testing.T) {
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from PR Specification Reviewer · gpt56 · ~1 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

Generated by PR Specification Reviewer for #76529

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · routed: gpt61 medium · ~3 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 181 · ◷

Generated by Ponytail Reviewer for #76529

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.5K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 7.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.2.3

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

Labels

chore cookie Issue Monster Loves Cookies! dead-code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants