You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Daily make golint-custom surfaced a concentrated long-function cluster in workflow safe outputs and adjacent compiler internals. This issue tracks one focused remediation slice from the broader function-length refactoring backlog.
Primary targets in this slice:
pkg/workflow/safe_outputs_config_extraction.go:45 — extractSafeOutputsConfig is 376 lines
pkg/workflow/safe_outputs_config_global.go:13 — extractGlobalConfigFields is 289 lines
pkg/workflow/safe_outputs_max_validation.go:58 — validateSafeOutputsMax is 269 lines
pkg/workflow/safe_outputs_config_generation.go:30 — generateSafeOutputsConfig is 196 lines
pkg/workflow/safe_outputs_tools_computation.go:10 — computeEnabledToolNames is 188 lines
Validation command: make golint-custom
Expected outcome
Break these functions into smaller helpers with clear responsibilities so the custom largefunc linter no longer flags the addressed functions, while preserving generated workflow behavior.
Remediation checklist
Keep remediation scoped to the workflow safe outputs cluster only.
Prefer minimal helper extraction and local reorganization over cross-package redesign.
Preserve current behavior and existing tests.
Run make golint-custom after changes.
Leave unrelated largefunc findings for other slices.
Copilot instructions
Focus only on the workflow safe outputs cluster listed above.
Extract small private helpers for parsing, field collection, validation branches, and rendering branches.
Avoid changing public interfaces unless required by the refactor.
Keep edits minimal and behavior-preserving.
Validate with make golint-custom before finishing.
Activity
github-actions commentedon Aug 17, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
github-actions commentedon Aug 24, 2026
This issue was automatically closed because it expired on 2026-08-24T02:53:07.073Z.