Skip to content

Comments

Qualify default repo-memory branch by workflow ID#17657

Merged
pelikhan merged 2 commits intomainfrom
copilot/update-repo-memory-branch
Feb 22, 2026
Merged

Qualify default repo-memory branch by workflow ID#17657
pelikhan merged 2 commits intomainfrom
copilot/update-repo-memory-branch

Conversation

Copy link
Contributor

Copilot AI commented Feb 22, 2026

All workflows using repo-memory without an explicit branch-name defaulted to the same memory/default branch, causing collisions. The default branch should be scoped per-workflow.

Changes

  • repo_memory.go: extractRepoMemoryConfig now accepts a workflowID string parameter. A defaultMemoryBranchID() closure selects workflowID when available, falling back to "default". Applied to all auto-generated branch name paths: nil, boolean-true, object-notation (no explicit branch-name), and array-notation (no explicit id).
  • compiler_orchestrator_workflow.go: Call site updated to pass workflowData.WorkflowID.
  • repo_memory_test.go: Test assertions updated to reflect the new qualified branch names.
  • daily-code-metrics.lock.yml: Recompiled — branch updated from daily/defaultdaily/daily-code-metrics.

Behavior

# repo-assist.md
tools:
  repo-memory: true
# Before: branch = memory/default
# After:  branch = memory/repo-assist

# Explicit branch-name is unchanged
tools:
  repo-memory:
    branch-name: memory/custom  # still memory/custom

Explicit branch-name and array id values are unaffected. When workflowID is unavailable, falls back to "default".

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 64/bin/go git conf�� user.name Test User 4668492/b433/scripts.test -json GO111MODULE 64/bin/go 4668492/b433/scripts.test (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 GO111MODULE ules/.bin/sh git rev-�� --show-toplevel go /usr/bin/git '**/*.ts' '**/*.git GO111MODULE ode 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 --check /usr/bin/make git rev-�� --show-toplevel make /usr/bin/gh /opt/hostedtoolc/opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet git /usr/bin/git gh (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 runs/20260222-051633-27774/test-1546530352/.github/workflows GO111MODULE ache/node/24.13.0/x64/bin/node l GOMOD GOMODCACHE go t-36�� sistency_GoAndJavaScript2190567514/001/test-simple-frontmatter.mremote.origin.url GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha user.name resolved$ /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/11bd71901bbe5b1630ceea73d27597364c9af683
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/11bd71901bbe5b1630ceea73d27597364c9af683 --jq .object.sha --show-toplevel git /usr/bin/git 2133-41260/test-git rev-parse om/testorg/testr/home/REDACTED/work/gh-aw/gh-aw/.github/workflows git rev-�� --show-toplevel git /usr/bin/git /tmp/shared-actigit rev-parse ache/node/24.13./home/REDACTED/work/gh-aw/gh-aw/.github/workflows 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 g_.a GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env 1633-27774/test-1627597178/.github/workflows GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE ortcfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha 999 GO111MODULE /home/REDACTED/go/bin/node GOINSECURE GOMOD GOMODCACHE node /opt�� k/gh-aw/gh-aw/.github/workflows lint:cjs ache/node/24.13.0/x64/bin/node GOSUMDB GOWORK 64/bin/go sh (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha /test1.md /test2.lock.yml 0272447/b001/importcfg.link GOINSECURE d1X3KlacBogIu/hFrev-parse GOMODCACHE go env runs/20260222-051633-27774/test-517388569/.github/workflows GO111MODULE 4668492/b410/repoutil.test GOINSECURE GOMOD GOMODCACHE 4668492/b410/repoutil.test (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha bQ29M6A5H 4668492/b125/vet.cfg /opt/hostedtoolcache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go ortc�� 1633-27774/test-1421657586 stmain.go /opt/hostedtoolcache/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/v4 --jq .object.sha /home/REDACTED/work/gh-aw/gh-aw/pkg/cli rev-parse /usr/bin/git -json GO111MODULE 64/bin/go git conf�� user.name Test User /usr/bin/git "prettier" --chegit GOPROXY 64/bin/go 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 -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuREDACTED (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha ithub/workflows/brave.md GOPROXY /usr/bin/git GOSUMDB GOWORK 64/bin/go git rev-�� runs/20260222-051633-27774/test-1421657586 ortcfg /tmp/go-build3504668492/b406/parser.test g/logger/examplegit GO111MODULE 64/bin/go /tmp/go-build3504668492/b406/parser.test (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --git-dir /tmp/go-build3504668492/b416/_testmain.go /usr/bin/git --check **/*.cjs 64/bin/go git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/go /usr/bin/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 infocmp e/git xterm-color sh /usr/bin/infocmpgraphql e/git rev-�� --show-toplevel infocmp /usr/bin/git xterm-color resolved$ /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v7
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v7 --jq .object.sha --show-toplevel sh /usr/bin/git "prettier" --chenode (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v7 --jq .object.sha --show-toplevel sh ache/go/1.25.0/x64/bin/node "prettier" --chenode l 64/pkg/tool/linux_amd64/link git ache�� --show-toplevel nly /usr/bin/infocmp .test bash 0/x64/bin/node infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v7 --jq .object.sha 40\} ature-branch.patch $name) { hasDiscussionsEnabled } } --show-toplevel go r,url,status,con/home/REDACTED/work/gh-aw/gh-aw/.github/workflows git rev-�� --show-toplevel git (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 GOSUMDB GOWORK 64/bin/go GOINSECURE GOMOD GOMODCACHE go m/_n�� -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha ck 'scripts/**/*GOINSECURE 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/actions/github-script/git/ref/tags/v8 --jq .object.sha -c=4 -nolocalimports -importcfg /tmp/go-build3504668492/b394/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/fileutil/fileutil.go /home/REDACTED/work/gh-aw/gh-aw/pkg/fileutil/fileutil_test.go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/4dc6199c7b1a012772edbd06daecab0f50c9053c
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/4dc6199c7b1a012772edbd06daecab0f50c9053c --jq .object.sha ature-branch.patch git /usr/bin/git /tmp/TestCompilegit config /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git 815860388 go /opt/hostedtoolc/home/REDACTED/work/gh-aw/gh-aw/.github/workflows git (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 Co7lHavXW GO111MODULE /opt/hostedtoolcache/go/1.25.0/x-buildmode=exe GOINSECURE GOMOD GOMODCACHE ortcfg env g/styles/theme.go g/styles/theme_test.go ache/node/24.13.0/x64/bin/node l GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha 2133-41260/test-3989621686 go /usr/bin/git h ../../../.pretgit GO111MODULE 64/bin/go git rev-�� --show-toplevel go /opt/hostedtoolcache/node/24.13.0/x64/bin/node -json GO111MODULE 64/bin/go /opt/hostedtoolcache/node/24.13.0/x64/bin/node (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v5 --jq .object.sha nner/work/gh-aw/gh-aw/actions/setup/sh/sanitize_path.sh' '/usr/bin:/usr/local/bin:' && echo "$PAgit git $name) { hasDiscussionsEnabled } } --show-toplevel sh /usr/bin/git git rev-�� --show-toplevel git /usr/bin/gh 2133-41260/test-/usr/bin/gh sh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v5 --jq .object.sha --show-toplevel git $name) { hasDiscussionsEnabled } } --show-toplevel sh /usr/bin/gh git rev-�� --show-toplevel gh /usr/bin/git brave.md l /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v6 --jq .object.sha --show-toplevel sh /usr/bin/git 3168413815/.githnode GOPROXY /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git log.showsignaturbash log /usr/bin/git /usr/bin/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v6 --jq .object.sha --show-toplevel node /usr/bin/git k/gh-aw/gh-aw/.gnode **/*.cjs /opt/hostedtoolcache/go/1.25.0/x--show-toplevel git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linu./pkg/logger/ /opt/hostedtoolcache/node/24.13.0/x64/bin/node runs/20260222-05git -buildtags /usr/bin/git /opt/hostedtoolcache/node/24.13.0/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v6 --jq .object.sha --show-toplevel ch /usr/bin/gh --check **/*.cjs clusion,workflowName,createdAt,s--show-toplevel gh run list --json /opt/hostedtoolcache/node/24.13.0/x64/bin/node --workflow nonexistent-workrev-parse --limit /opt/hostedtoolcache/node/24.13.0/x64/bin/node (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 -json GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env 1633-27774/test-1421657586 GO111MODULE ache/go/1.25.0/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/x64/pkg/tool/linux_amd64/compile (http block)
    • 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/.g@{u} go ache/node/24.13.0/x64/bin/node h ../../../.pretgit GO111MODULE 64/bin/go git t-18�� sistency_GoAndJavaScript116064973/001/test-complex-frontmatter-with-tools.md go /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq .object.sha --show-toplevel sh /usr/bin/git 3168413815/.githnode GOPROXY ache/node/24.13.0/x64/bin/node git rev-�� --show-toplevel git /opt/hostedtoolcache/node/24.13.0/x64/bin/node k/gh-aw/gh-aw/.gbash log 0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq .object.sha ch node /usr/bin/git v1.0.0 **/*.cjs clusion,workflowName,createdAt,s--show-toplevel git rev-�� --show-toplevel infocmp /usr/lib/git-core/git xterm-color sh 0/x64/bin/node /usr/lib/git-core/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq .object.sha --show-toplevel git r: $owner, name:-f --show-toplevel go /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git GOMODCACHE go /usr/bin/git git (http block)
  • https://api.github.com/repos/anchore/sbom-action/git/ref/tags/v0
    • Triggering command: /usr/bin/gh gh api /repos/anchore/sbom-action/git/ref/tags/v0 --jq .object.sha --show-toplevel git $name) { hasDiscussionsEnabled } } --get remote.origin.ur-C /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git .github/workflowgit go /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/anchore/sbom-action/git/ref/tags/v0 --jq .object.sha ature-branch.patch docker /usr/bin/git test/race-image:git go r,url,status,con/home/REDACTED/work/gh-aw/gh-aw/.github/workflows git rev-�� --show-toplevel git /usr/bin/git ithub/workflows go ache/node/24.13./home/REDACTED/work/gh-aw/gh-aw/.github/workflows git (http block)
  • https://api.github.com/repos/docker/build-push-action/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/docker/build-push-action/git/ref/tags/v6 --jq .object.sha --show-toplevel git $name) { hasDiscussionsEnabled } } user.email test@example.comapi /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git /tmp/gh-aw-test-infocmp status /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/docker/build-push-action/git/ref/tags/v6 --jq .object.sha --show-toplevel (http block)
  • https://api.github.com/repos/docker/login-action/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq .object.sha 'origin' 'origin' /usr/bin/git .actor }}, Unsaf/usr/bin/gh go /usr/lib/git-corgraphql git rev-�� --show-toplevel /usr/lib/git-corowner=github (http block)
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq .object.sha --show-toplevel node /usr/bin/git /home/REDACTED/wor/usr/bin/gh go /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git /tmp/gh-aw-test-git rev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/docker/metadata-action/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/docker/metadata-action/git/ref/tags/v5 --jq .object.sha --show-toplevel ache/node/24.13.0/x64/bin/node /usr/bin/git --get remote.origin.ur-C /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/docker/metadata-action/git/ref/tags/v5 --jq .object.sha --show-toplevel /usr/bin/gh /usr/bin/git -- echo .cfg git rev-�� --show-toplevel git /usr/bin/git sistency_GoAndJagit go /usr/bin/git git (http block)
  • https://api.github.com/repos/docker/setup-buildx-action/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/docker/setup-buildx-action/git/ref/tags/v3 --jq .object.sha ./cmd/gh-aw git /usr/bin/git /usr/bin/git go /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --git-dir go /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/docker/setup-buildx-action/git/ref/tags/v3 --jq .object.sha --show-toplevel (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 x_amd64/link GOINSECURE GOMOD GOMODCACHE x_amd64/link env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE -j/NEbzTRrGx3Hf7l9Ai1Xn/DcrjArqg-importcfg (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 config /usr/bin/git remote.origin.urgit **/*.cjs 64/bin/go git conf�� 2133-41260/test-2606856158/.github/workflows remote.origin.url sh "prettier" --wrigit git de 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 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 run download 12345 --dir test-logs/run-12345 GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 config /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet remote.origin.urgit **/*.cjs 64/bin/go /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linuconfig -ato�� -bool -buildtags /opt/hostedtoolcache/node/24.13.0/x64/bin/node -errorsas -ifaceassert -nilfunc node (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 x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 GO111MODULE x_amd64/asm GOINSECURE GOMOD GOMODCACHE x_amd64/asm env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 node ache/node/24.13.0/x64/bin/node --write **/*.cjs 64/bin/go ache/node/24.13.0/x64/bin/node 9415�� --show-toplevel sh /usr/bin/git "prettier" --wrigit git 64/bin/go /systemd-executor (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 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 run download 2 --dir test-logs/run-2 GO111MODULE x_amd64/asm GOINSECURE GOMOD GOMODCACHE x_amd64/asm env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 --jq ache/node/24.13.0/x64/bin/node --write **/*.cjs 64/bin/go ache/node/24.13.0/x64/bin/node s-22�� 2133-41260/test-2606856158/.github/workflows remote.origin.url rgo/bin/bash "prettier" --wrigit git 64/bin/go 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 x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 GO111MODULE x_amd64/cgo GOINSECURE GOMOD GOMODCACHE x_amd64/cgo env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 -tests /usr/bin/git --write **/*.cjs 64/bin/go git conf�� --get remote.origin.url p/bin/bash "prettier" --wrigit git 64/bin/go /usr/lib/git-core/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 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 run download 4 --dir test-logs/run-4 -tests /usr/bin/git --write **/*.cjs 64/bin/go git rev-�� --show-toplevel sh nfig/composer/vendor/bin/bash "prettier" --wrigit git 64/bin/go 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 x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path g/envutil/envutiGOINSECURE g/envutil/envutiGOMOD 64/bin/go GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/xGO111MODULE env 5546970/b370/_pkGOINSECURE GO111MODULE 64/bin/go GOINSECURE b/gh-aw/cmd/gh-a-c GOMODCACHE o fix."; \ exitGOPROXY (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 b/gh-aw/pkg/pars-o GOMODCACHE go env N9LB/ts4O0_dn9Tb-p GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE 5546970/b397/imp-goversion (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 x_amd64/link env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE nl/FNpzewCnf1oAPIg7CzRN/Yr9O1M0S-test.v=true (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb --jq .object.sha nly git /usr/bin/git --show-toplevel bash /usr/bin/git /usr/bin/git remo�� -v git e /tmp/compile-all/usr/bin/gh config 0/x64/bin/node 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 -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env 2439998909/.github/workflows GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha REDACTED.temp git /usr/bin/git --show-toplevel sh ache/node/24.13.--git-dir git rev-�� --show-toplevel ache/node/24.13.0/x64/bin/node /usr/bin/git /usr/bin/git node /usr/bin/git 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 ty-test.md GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env 2987111671/.github/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 -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE tions/setup/js/node_modules/.bin/sh GOINSECURE GOMOD GOMODCACHE go (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 IKEP8dB/iAJz33n4qBSgoBRlrikz env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion ith-tools.md git 64/bin/go git conf�� --get remote.origin.url /usr/bin/git --diff git 64/bin/go 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 ache/go/1.25.0/xGO111MODULE env 5546970/b389/_pkGOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/xGO111MODULE env 5546970/b383/_pkGOINSECURE GO111MODULE 64/bin/go GOINSECURE bracelet/x/exp/gfor-each-ref GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go --show-toplevel go run-script/lib/n-json node /hom�� --write scripts/**/*.js 64/bin/go .prettierignore x_amd64/vet /usr/bin/git go (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: /tmp/go-build3504668492/b380/cli.test /tmp/go-build3504668492/b380/cli.test -test.testlogfile=/tmp/go-build3504668492/b380/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true GOINSECURE GOMOD GOMODCACHE go env ck 'scripts/**/*GOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /tmp/go-build1109578168/b380/cli.test /tmp/go-build1109578168/b380/cli.test -test.testlogfile=/tmp/go-build1109578168/b380/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true OUTPUT -d 168.63.129.16 node /hom�� --write **/*.cjs 64/bin/go ; \ else \ echo "golangci-lint is not installed. Run 'make deps-dev' to install dependencies." --ignore-path ../../../.pretti"prettier" --check '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.prettierignore node (http block)
    • Triggering command: /tmp/go-build3051979571/b356/cli.test /tmp/go-build3051979571/b356/cli.test -test.testlogfile=/tmp/go-build3051979571/b356/testlog.txt -test.paniconexit0 -test.short=true -test.timeout=2m0s th .prettierignore GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env 2542009403/.github/workflows GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (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 om/aymanbagabas/GOINSECURE om/aymanbagabas/GOMOD 64/bin/go GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/xGO111MODULE env 5546970/b386/_pkGOINSECURE GO111MODULE 64/bin/go GOINSECURE b/gh-aw/pkg/cons-c GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name run format:cjs 64/bin/go --show-toplevel go /usr/bin/git sh -c "prettier" --wriGOINSECURE git /sh tierignore x_amd64/vet /usr/bin/git go (http block)
    • 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 Ei/sRYFTJNVKxMnEwJm1gjT/Sa6RZGNhgPsBMlwBCSHX env -json GO111MODULE 50b5dd96d81b2e830944e5be75378d6ccd4e30b99a7f102a-d GOINSECURE GOMOD GOMODCACHE go (http block)

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

Original prompt

This section details on the original issue you should resolve

<issue_title>Default repo-memory should be qualified by workflow name</issue_title>
<issue_description>The repo memory feature uses memory/default branch by default. But better to qualifiy the branch by the workflow name, e.g. memory/repo-assist

For those who don't know about repo memory it's here https://github.github.com/gh-aw/reference/repo-memory/

Example memory state https://github.com/fsprojects/FSharp.Control.AsyncSeq/blob/memory/default/state.json </issue_description>

Comments on the Issue (you are @copilot in this section)

@pelikhan Use workflow id to mangle the repo branch, not the name

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

@github-actions
Copy link
Contributor

Hey @Copilot 👋 — thanks for working on the repo-memory feature improvement! This PR is off to a good start with a clear plan, but there are a few things to address before it's ready for review:

Current Status:

  • On-topic — Improving repo-memory branch naming aligns with the project's focus on workflow features
  • Focused — The PR has a single clear goal: update default repo-memory branch to use workflow ID
  • Has description — The PR body contains a detailed checklist and references the original issue
  • ⚠️ No code changes yet — The PR currently contains only the initial plan commit with no actual implementation
  • ⚠️ Missing tests — The checklist mentions updating tests, but they haven't been added yet

What's needed:

  1. Complete the implementation — The checklist shows several unchecked items:

    • Modify extractRepoMemoryConfig to accept workflowID parameter
    • Update call site in extractAdditionalConfigurations
    • Update existing tests
    • Add new test for the behavior
    • Run make agent-finish
    • Recompile workflows
  2. Follow the project workflow — According to CONTRIBUTING.md, this project uses agentic development exclusively. The PR was correctly created by the Copilot agent based on issue Default repo-memory should be qualified by workflow name #17631, which is the expected process.

  3. Implementation notes — Per the comment from @pelikhan on the original issue: use workflow ID (not name) to generate the branch name.

The PR follows the contribution process correctly — it was created by the agent after a maintainer assigned the issue. Once the implementation is complete and tests pass, this should be ready for review.

Generated by Contribution Check

When repo-memory is configured without an explicit branch-name,
the default branch is now memory/{workflow-id} instead of memory/default.
For example, a workflow named repo-assist.md uses memory/repo-assist.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update default repo-memory to use workflow id Qualify default repo-memory branch by workflow ID Feb 22, 2026
@pelikhan pelikhan marked this pull request as ready for review February 22, 2026 05:40
Copilot AI review requested due to automatic review settings February 22, 2026 05:40
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

This PR addresses the issue of repo-memory branch name collisions by qualifying the default branch name with the workflow ID instead of using a generic "default" identifier. Previously, all workflows using repo-memory without an explicit branch-name defaulted to memory/default, causing potential conflicts. Now they use workflow-specific branches like memory/repo-assist or memory/daily-code-metrics.

Changes:

  • Modified extractRepoMemoryConfig to accept a workflowID parameter and use it to qualify default branch names
  • Updated the single call site to pass workflowData.WorkflowID
  • Regenerated the daily-code-metrics.lock.yml file to reflect the new qualified branch name

Reviewed changes

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

File Description
pkg/workflow/repo_memory.go Added workflowID parameter to extractRepoMemoryConfig and implemented defaultMemoryBranchID closure to qualify default branch names by workflow ID across all configuration paths (nil, boolean, object, and array notations)
pkg/workflow/compiler_orchestrator_workflow.go Updated call site to pass workflowData.WorkflowID to extractRepoMemoryConfig
pkg/workflow/repo_memory_test.go Updated all test call sites with the new signature and adjusted assertions to match the new qualified branch name behavior
.github/workflows/daily-code-metrics.lock.yml Recompiled lock file with updated branch name from daily/default to daily/daily-code-metrics

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

@pelikhan pelikhan merged commit 24676b2 into main Feb 22, 2026
120 checks passed
@pelikhan pelikhan deleted the copilot/update-repo-memory-branch branch February 22, 2026 05:44
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.

Default repo-memory should be qualified by workflow name

2 participants