Skip to content

refactor: semantic function clustering — move functions to better-aligned files#21908

Merged
pelikhan merged 2 commits intomainfrom
copilot/refactor-semantic-function-clustering-36c716ef-a3bb-4069-ad06-eaafe2dcc30f
Mar 20, 2026
Merged

refactor: semantic function clustering — move functions to better-aligned files#21908
pelikhan merged 2 commits intomainfrom
copilot/refactor-semantic-function-clustering-36c716ef-a3bb-4069-ad06-eaafe2dcc30f

Conversation

Copy link
Contributor

Copilot AI commented Mar 20, 2026

Resolves persistent outliers from the semantic function clustering analysis: generic utilities buried in wrong files, compiler step-generators mixed with config accessors, and file names that misrepresent their scope.

Moved functions

  • collectPackagesFromWorkflow runtime_validation.gopackage_extraction.go — completes the package extraction consolidation around PackageExtractor
  • ConvertToInt / ConvertToFloat / PrettifyToolName metrics.gostrings.go — generic type/string utilities shouldn't require callers to import a metrics file
  • computeEffectivePRCheckoutToken / computeEffectiveProjectToken / computeProjectURLAndToken / buildCustomSafeOutputJobsJSON compiler_safe_outputs_steps.gosafe_outputs_config_helpers.go — config-computation helpers belong with the other config-generation helpers
  • CopilotEngine.GetFirewallLogsCollectionStep / GetSquidLogsSteps / GetCleanupStep copilot_logs.gocopilot_engine.go — restores symmetry with ClaudeEngine and CodexEngine, which define these methods in their main engine files

New files (extracted from mixed-responsibility files)

  • compiler_github_mcp_steps.go(*Compiler).generateGitHubMCPLockdownDetectionStep, generateGitHubMCPAppTokenMintingStep, generateGitHubMCPAppTokenInvalidationStep extracted from mcp_github_config.go, leaving it as a clean config-accessor module
  • compiler_github_actions_steps.gogenerateGitHubScriptWithRequire, generateInlineGitHubScriptStep, generatePlaceholderSubstitutionStep extracted from compiler_yaml_helpers.go, separating step-builders from YAML/path utilities

Renamed files

Old New Reason
codemod_yaml_utils.go yaml_frontmatter_utils.go Used across 31+ files; codemod_ prefix implied single-codemod scope
compile_helpers.go compile_file_operations.go Clearer role: low-level file ops
compile_orchestration.go compile_pipeline.go Clearer role: multi-file pipeline stages

Logger namespace strings updated to match new file names.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw GO111MODULE ache/go/1.25.0/x--show-toplevel /usr/bin/git remo�� -v go /usr/bin/git 5506-29238/test-git GO111MODULE ndor/bin/bash git (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw nonexistent-workrev-parse --limit /opt/hostedtoolcache/node/24.14.0/x64/bin/node /tmp�� github.prop.prop.prop.prop.prop.prop.prop.prop.prop.prop.prop.prop.prop.prop.prop.prop.prop.propgit git /usr/bin/git user.name Test User /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw git 0/x64/bin/node git rev-�� --show-toplevel git /usr/bin/git --show-toplevel gh 0/x64/bin/node git (http block)
  • https://api.github.com/orgs/test-owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE node /hom�� --check **/*.cjs 64/bin/go **/*.json --ignore-path ../../../.pretti/tmp/gh-aw-test-runs/20260320-045506-29238/test-4989386/.github/workflows go (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name test/concurrent-image:v1.0.0 go /usr/bin/git -json GO111MODULE /home/REDACTED/wor--show-toplevel git rev-�� --show-toplevel bash /usr/bin/git --noprofile GOPROXY ache/node/24.14.--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name --show-toplevel git /usr/bin/git -aw/git/ref/tagsnode git ache/node/24.14.0/x64/bin/node git rev-�� --show-toplevel gh /usr/bin/git k/gh-aw/gh-aw/.gnode 5225334/b433/_tejs/fuzz_sanitize_output_harness.cjs /opt/hostedtoolcache/go/1.25.0/x--show-toplevel git (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha steps.test.outputs.result go /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --git-dir go /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha user.email test@example.com /usr/bin/git --show-toplevel git /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git tmatter-with-envgit gh /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha --show-toplevel git /usr/bin/git --show-toplevel git /opt/hostedtoolc--show-toplevel git conf�� --get remote.origin.url /usr/bin/git install --package-lock-orev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha /tmp/gh-aw-test-runs/20260320-045506-29238/test-3736022510/.github/workflows rev-parse ache/node/24.14.0/x64/bin/node -json GO111MODULE 64/bin/go bash t-21�� k/gh-aw/gh-aw/.github/workflows/artifacts-summary.md go /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha --show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha runs/20260320-045837-41364/test-872310312/.github/workflows git /opt/hostedtoolcache/node/24.14.0/x64/bin/node l git /usr/bin/git node js/f�� /usr/bin/git git /usr/bin/git --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha hub/workflows GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env 39/001/test-frontmatter-with-arrays.md GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE ache/go/1.25.0/x--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel go /usr/bin/git vaScript42284569git GO111MODULE bash git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE /opt/hostedtoolc--show-toplevel git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --show-toplevel l /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha --show-toplevel -tests /usr/bin/git -json GO111MODULE 64/bin/go git conf�� user.email test@example.com /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha --show-toplevel go /usr/bin/git artifacts-summargit GO111MODULE ash git rev-�� --show-toplevel go (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha 3382875/b405/_pkGOINSECURE GO111MODULE 64/bin/go GOINSECURE b/gh-aw/pkg/consenv GOMODCACHE go env zVqJ/Q9zDyIL3GQSGOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE 3382875/b405/impGOPROXY (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha 3382875/b412/_pkGOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env HLph/lqQXEWYqp5rGOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE 3382875/b412/impGOPROXY (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE node (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha --show-toplevel go /opt/hostedtoolcache/node/24.14.0/x64/bin/node -json GO111MODULE 64/bin/go node /tmp�� /home/REDACTED/work/gh-aw/gh-aw/.github/workflows/bot-detection.md go /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha r/repo.git git /usr/bin/git --show-toplevel git ache/go/1.25.0/x--show-toplevel git conf�� user.name Test User /usr/bin/git --show-toplevel nly /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha ErrorFormatting606506405/001 git /usr/bin/git l git /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha /home/REDACTED/work/gh-aw/gh-aw/.github/workflows/agent-persona-explorer.md go /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha user.email test@example.com /opt/hostedtoolcache/node/24.14.0/x64/bin/node --show-toplevel ache/go/1.25.0/xrev-parse cal/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node /tmp�� github.repository git /usr/bin/git --show-toplevel nly /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha user.email test@example.com /usr/bin/git --show-toplevel git e/git git rev-�� --show-toplevel e/git /usr/bin/git --show-toplevel 0/x64/bin/node /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha --noprofile GOPROXY 0/x64/bin/node GOSUMDB GOWORK 64/bin/go 0/x64/bin/node --no�� --noprofile go ache/node/24.14.0/x64/bin/node -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha --show-toplevel git /usr/bin/git --show-toplevel 64/pkg/tool/linurev-parse /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel sTZoZHR5F6Ak6rUirev-parse /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha --show-toplevel git /opt/hostedtoolcache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git node js/f�� ache/go/1.25.0/x--show-toplevel git /opt/hostedtoolcache/node/24.14.0/x64/bin/node sions.md git /usr/bin/git node (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq .object.sha t0 -buildtags (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq .object.sha runs/20260320-045624-34355/test-3037578552/.github/workflows git /usr/bin/git --show-toplevel 64/pkg/tool/linurev-parse /usr/bin/git git rev-�� runs/20260320-045624-34355/test-1812076370/.github/workflows git /usr/sbin/iptables --show-toplevel go /usr/bin/git iptables (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq .object.sha /ref/tags/v8 git /opt/hostedtoolcache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git node js/f�� ache/go/1.25.0/x--show-toplevel git /opt/hostedtoolcache/node/24.14.0/x64/bin/node --show-toplevel ${{ github.acto /usr/bin/git node (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq .object.sha -bool -buildtags /usr/local/bin/bash -errorsas -ifaceassert -nilfunc bash --no�� --noprofile -tests /usr/bin/infocmp -json GO111MODULE 64/bin/go infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq .object.sha --show-toplevel git /usr/bin/git --show-toplevel 64/pkg/tool/linurev-parse /usr/bin/git git rev-�� --show-toplevel l /usr/local/sbin/iptables --show-toplevel go /usr/bin/git iptables (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq .object.sha --show-toplevel git /opt/hostedtoolc--limit --show-toplevel git /usr/bin/git node js/f�� ache/go/1.25.0/x--show-toplevel git /opt/hostedtoolcache/node/24.14.0/x64/bin/node --show-toplevel ache/go/1.25.0/xrev-parse /usr/bin/git node (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 git /usr/bin/git --show-toplevel go /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel go /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 git ache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git git _inc�� 5837-41364/test-872310312/.github/workflows git ache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE /opt/hostedtoolcache/go/1.25.0/x-test.short=true GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 git /usr/bin/git --show-toplevel go /usr/bin/git git rev-�� --show-toplevel git eutil.test --show-toplevel x_amd64/compile /usr/bin/git eutil.test (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 git ache/node/24.14.0/x64/bin/node l_request_branchgit git /usr/bin/git git _har�� --show-toplevel git ache/node/24.14.0/x64/bin/node --show-toplevel 64/pkg/tool/linurev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env 5506-29238/test-4989386/.github/-test.timeout=10m0s GO111MODULE 64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 git /usr/bin/git --show-toplevel go /usr/bin/git git rev-�� --show-toplevel git 64/pkg/tool/linux_amd64/vet --show-toplevel x_amd64/asm /usr/bin/git 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 git ache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git git _inc�� --show-toplevel git ache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE ortcfg.link GOINSECURE GOMOD GOMODCACHE HtZx1GlSnxr6rzJuYE/SGdj5ttLyCjBiJJBPvdO/GBgf4jmN_xRYlLvM2_go env 06952911/001 GO111MODULE 041288b230f4f76f19acc478a17084e657cb99ad222c7fb7b0554a6ecafd4fe3-d GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 git At,event,headBranch,headSha,displayTitle /tmp/gh-aw-test-git rev-parse /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel go /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 git ache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git git _inc�� --show-toplevel git ache/node/24.14.0/x64/bin/node --show-toplevel 64/pkg/tool/linurev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 GO111MODULE stCodemod|TestReconstruct|TestParseFrontmatter GOINSECURE GOMOD GOMODCACHE go env 06952911/001 GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 git /usr/bin/git /tmp/gh-aw-test-git status /usr/bin/git git rev-�� --show-toplevel git 64/pkg/tool/linux_amd64/compile --show-toplevel go /usr/bin/git 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 git ache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git git _inc�� --show-toplevel git ache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 git er: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabl--show-toplevel --show-toplevel go /usr/bin/git git rev-�� --show-toplevel git hutil.test --git-dir go /usr/bin/git hutil.test (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 git ache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git git _inc�� --show-toplevel git ache/node/24.14.0/x64/bin/node --show-toplevel hutil.test /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 git /usr/bin/git HEAD .github/workflowrev-parse /usr/bin/git git rev-�� --show-toplevel git 64/pkg/tool/linux_amd64/link --show-toplevel go /usr/bin/git 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 /opt/hostedtoolcache/node/24.14.--package-lock-only ache/node/24.14.0/x64/bin/node Secret: ${{ secrgit git /usr/bin/git git _inc�� 5837-41364/test-264905503/.github/workflows git ache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path -json GO111MODULE b0554a6ecafd4fe3-d GOINSECURE GOMOD GOMODCACHE node /hom�� --check **/*.cjs 64/bin/go **/*.json --ignore-path ../../../.pretti--show-toplevel go (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100 /tmp/go-build404-V=full 64/bin/go go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6 GOMOD GOMODCACHE go env -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/contents/.github/workflows/shared/reporting.md
    • Triggering command: /tmp/go-build3905772533/b001/cli.test /tmp/go-build3905772533/b001/cli.test -test.testlogfile=/tmp/go-build3905772533/b001/testlog.txt -test.paniconexit0 -test.short=true -test.timeout=2m0s --show-toplevel git /usr/bin/git --show-toplevel git 0/x64/bin/node git rev-�� --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git git (http block)
    • Triggering command: /tmp/go-build1391667935/b001/cli.test /tmp/go-build1391667935/b001/cli.test -test.testlogfile=/tmp/go-build1391667935/b001/testlog.txt -test.paniconexit0 -test.short=true -test.timeout=2m0s -test.v=true node 0/x64/bin/node ache/go/1.25.0/xgit git /opt/hostedtoolc--show-toplevel git ance�� --show-toplevel node 0/x64/bin/node /opt/hostedtoolcgit git /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha --show-toplevel git /usr/bin/git /tmp/gh-aw-test-git l /usr/bin/git git rev-�� b/workflows git /usr/bin/git /tmp/gh-aw-test-git config /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha d6668fb8..HEAD git /usr/bin/git --show-toplevel git /opt/hostedtoolcache/go/1.25.0/x--show-toplevel git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/compile /usr/bin/git /tmp/go-build208node -trimpath /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq .object.sha /tmp/go-build307remote.origin.url -trimpath 64/bin/go -p github.com/githu-test.testlogfile=/tmp/go-build753528021/b412/testlog.txt -lang=go1.25 go env m/workflows GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq .object.sha --show-toplevel bash /usr/bin/git runs/20260320-04git go /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel go /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq .object.sha xterm-color 0/x64/bin/node /usr/bin/git user.name Test User 0/x64/bin/node git rev-�� --show-toplevel 0/x64/bin/node /usr/bin/git --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha /tmp/go-build3073382875/b421/_pkGOINSECURE -trimpath 64/bin/go -p github.com/githu-atomic -lang=go1.25 go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha /tmp/go-build307remote.origin.url -trimpath 64/bin/go -p main -lang=go1.25 go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha /tmp/go-build3073382875/b406/_pkGOINSECURE -trimpath 64/bin/go -p main -lang=go1.25 go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq .object.sha /tmp/go-build307remote.origin.url -trimpath rseFrontmatter -p main -lang=go1.25 go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq .object.sha --show-toplevel bash /usr/bin/git --noprofile go /usr/bin/gh git rev-�� --show-toplevel gh /usr/bin/git /repos/actions/gnode (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq .object.sha --show-toplevel git /usr/bin/tr --get remote.origin.urrev-parse /usr/bin/git tr \n : git /usr/bin/git test.txt git ache/node/24.14.--show-toplevel git (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env b/workflows GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha --show-toplevel bash /usr/bin/git --noprofile go /opt/hostedtoolcxterm-color git rev-�� --show-toplevel node /usr/bin/git /tmp/TestHashCongit sh /opt/hostedtoolcache/node/24.14.--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha /repos/actions/checkout/git/ref/tags/v3 --jq bin/node --show-toplevel git (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env -json GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion --show-toplevel go /usr/bin/git git rev-�� archie.md git /usr/bin/git user.name Test User /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion --show-toplevel git /usr/bin/git git _lab�� --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go GOINSECURE GOMOD GOMODCACHE node /hom�� --check **/*.cjs 64/bin/go **/*.json --ignore-path ../../../.pretti/tmp/gh-aw-test-runs/20260320-045506-29238/test-2503318363/custom/workflows go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go GOINSECURE GOMOD GOMODCACHE node /opt�� prettier --check 64/bin/go --ignore-path .prettierignore 64/bin/go go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo /usr/bin/git ithub/workflows/git GO111MODULE /usr/sbin/bash git rev-�� --show-toplevel bash /usr/bin/git runs/20260320-04git GOPROXY /usr/bin/git git (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: /tmp/go-build753528021/b400/cli.test /tmp/go-build753528021/b400/cli.test -test.testlogfile=/tmp/go-build753528021/b400/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true GOINSECURE GOMOD GOMODCACHE 3382875/b392/impGOPROXY -c che/go-build/52/GOSUMDB GOPROXY 64/bin/go GOSUMDB GOWORK 64/bin/go /opt/hostedtoolcache/go/1.25.0/xGO111MODULE (http block)
    • Triggering command: /tmp/go-build2085225334/b001/cli.test /tmp/go-build2085225334/b001/cli.test -test.testlogfile=/tmp/go-build2085225334/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s rev-�� --show-toplevel go otOrdering4091659493/001/go/1.25.0/x64/bin/go -json GO111MODULE (http block)
    • Triggering command: /tmp/go-build487137749/b376/cli.test /tmp/go-build487137749/b376/cli.test -test.testlogfile=/tmp/go-build487137749/b376/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.short=true --show-toplevel git /usr/bin/git --show-toplevel git /opt/hostedtoolcache/node/24.14.--show-toplevel git rev-�� --show-toplevel bash /usr/bin/git :latest git /opt/hostedtoolcache/go/1.25.0/x--show-toplevel git (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE node /hom�� --check **/*.cjs 64/bin/go **/*.json --ignore-path ../../../.pretti/tmp/gh-aw-test-runs/20260320-045506-29238/test-3064559162/.github/workflows go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name --show-toplevel go /usr/bin/git -json GO111MODULE 0/x64/bin/node git rev-�� --show-toplevel 0/x64/bin/node /usr/bin/git runs/20260320-04git GOPROXY /usr/bin/head git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name --show-toplevel git ache/go/1.25.0/x64/bin/node -aw/git/ref/tagsnode git /usr/bin/git git ache�� --show-toplevel nly /usr/bin/git --show-toplevel git /opt/hostedtoolcache/node/24.14.--show-toplevel git (http block)
  • https://api.github.com/repos/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch --show-toplevel node /usr/bin/git ache/node/24.14.git git /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel node /usr/bin/git ache/node/24.14./usr/bin/git git /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch --show-toplevel git /opt/hostedtoolcache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git node js/f�� licyMinIntegrityOnlyCompiledOutpremote.origin.url git /opt/hostedtoolcache/node/24.14.0/x64/bin/node --show-toplevel git /usr/bin/git node (http block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Refactor semantic function clustering analysis for persistent outliers refactor: semantic function clustering — move functions to better-aligned files Mar 20, 2026
Copilot AI requested a review from pelikhan March 20, 2026 05:05
@pelikhan pelikhan marked this pull request as ready for review March 20, 2026 05:05
Copilot AI review requested due to automatic review settings March 20, 2026 05:05
Copy link
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

Refactors the workflow compiler and CLI utilities by relocating functions into semantically aligned files, introducing clearer step-builder modules, and updating logger namespaces to match renamed/extracted files.

Changes:

  • Moved generic conversion/string helpers into strings.go, and relocated package collection logic into package_extraction.go.
  • Extracted GitHub MCP and GitHub Actions step generators into dedicated compiler files, and moved safe-outputs config/token helpers into safe_outputs_config_helpers.go.
  • Added focused unit tests for YAML frontmatter utilities and updated logger namespaces for renamed modules.

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/workflow/strings.go Adds generic conversion helpers and tool name prettification utilities.
pkg/workflow/safe_outputs_config_helpers.go Centralizes safe-outputs token/config computation helpers and custom-jobs JSON building.
pkg/workflow/runtime_validation.go Removes package-collection helper now housed in package extraction.
pkg/workflow/package_extraction.go Adds shared package collection helper alongside PackageExtractor.
pkg/workflow/metrics.go Removes generic conversion/tool-name helpers (now in strings.go).
pkg/workflow/mcp_github_config.go Removes compiler step generators extracted into a dedicated compiler file.
pkg/workflow/copilot_logs.go Moves Copilot engine interface methods out of logs module.
pkg/workflow/copilot_engine.go Hosts Copilot engine step methods for parity with other engines.
pkg/workflow/compiler_yaml_helpers.go Removes GitHub Actions step-builder helpers extracted into a dedicated file.
pkg/workflow/compiler_safe_outputs_steps.go Removes config-computation helpers relocated to config helper module.
pkg/workflow/compiler_github_mcp_steps.go New: dedicated GitHub MCP compiler step generator implementations.
pkg/workflow/compiler_github_actions_steps.go New: dedicated GitHub Actions step-builder utilities (github-script, placeholder substitution).
pkg/cli/yaml_frontmatter_utils_test.go New: unit tests for YAML frontmatter parsing/editing helpers.
pkg/cli/yaml_frontmatter_utils.go Updates logger namespace to match renamed module.
pkg/cli/compile_pipeline.go Updates logger namespace to match renamed module.
pkg/cli/compile_file_operations.go Updates logger namespace to match renamed module.

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

@pelikhan pelikhan merged commit 641d855 into main Mar 20, 2026
114 of 115 checks passed
@pelikhan pelikhan deleted the copilot/refactor-semantic-function-clustering-36c716ef-a3bb-4069-ad06-eaafe2dcc30f branch March 20, 2026 05:10
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.

[refactor] Semantic Function Clustering Analysis: Persistent Outliers and New Findings

3 participants