Skip to content

fix(cache): persist meaningful state and add hit-history tracking in Smoke Codex#29479

Merged
pelikhan merged 3 commits intomainfrom
copilot/fix-cache-miss-smoke-codex
May 1, 2026
Merged

fix(cache): persist meaningful state and add hit-history tracking in Smoke Codex#29479
pelikhan merged 3 commits intomainfrom
copilot/fix-cache-miss-smoke-codex

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 1, 2026

Smoke Codex had a 100% cache-miss rate over 14 days because the agent never wrote any files to /tmp/gh-aw/cache-memory/, leaving each run as a perpetual cold start even though cache-memory: true was set.

Changes

  • setup_cache_memory_git.sh: Detect cache hit vs cold start from .git presence before any git ops; log non-git file listings before and after setup; on a hit, write cache-hit-history.json (run ID, UTC timestamp, file count) so future runs can observe restore success
  • commit_cache_memory_git.sh: Log non-git files being committed so upload contents are visible in CI logs
  • smoke-codex.md: Add test Weekly Research Report: AI Workflow Automation Landscape and Strategic Opportunities - August 2025 #9 — Cache Memory Testing — which reads the previous run's smoke-codex-history.json (if present) and writes current results to it:
    {"run_id": "25203411968", "timestamp": "2026-05-01T09:00:00Z", "status": "PASS", "tests_passed": 9, "tests_failed": 0}
    This guarantees at least one user-space file is always written to cache-memory, ensuring the update_cache_memory job saves a non-empty cache on every successful run.

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 (http block)
    • Triggering command: /usr/bin/gh gh repo view --json owner,name --jq .owner.login + "/" + .name x_amd64/link GOINSECURE GOMOD GOMODCACHE x_amd64/link env XAe_-DMg6 GO111MODULE x_amd64/compile GOINSECURE fips140deps/byteapi GOMODCACHE x_amd64/compile (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 GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linuremote.origin.url ortc�� 5309684/b106/_pkg_.a om/goccy/go-yaml@v1.19.2/context.go .cfg GOINSECURE l GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (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 go env on' --ignore-pat-o GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name st.cjs --output=/tmp/git-patch-utils-MQG4Q7/.diffsize.tmp n-dir/git -- k/gh-aw/gh-aw/acremote-https rgo/bin/git git add test-7euo2p/no-input.go k/gh-aw/gh-aw/actest@example.com _modules/.bin/git tc/passwd git 35ce35c63b827d25fe ache/node/24.14.1/x64/bin/node (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, .object.type] | @tsv abis 64/pkg/tool/linux_amd64/compile /usr/bin/git ata/action_pins.git DFryr79XR ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel ache/go/1.25.8/x64/pkg/tool/linutest@example.com /usr/bin/git 0196/001/stabilinode GO111MODULE ache/go/1.25.8/xinstall git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git api-consumption-git .test.cjs 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git 4270603240/.githnode main:main ache/go/1.25.8/xinstall 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, .object.type] | @tsv --show-toplevel x_amd64/asm /opt/hostedtoolcache/node/24.14.1/x64/bin/node -json GO111MODULE x_amd64/compile node /tmp�� /home/REDACTED/work/gh-aw/gh-aw/.github/workflows/agent-persona-explorer.md x_amd64/compile /usr/bin/git run check:pkg-jsgit r/common.go x_amd64/compile git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/node/24.14.Update"; echo hacked /usr/bin/infocmp user.email k/gh-aw/gh-aw/acrev-parse 64/bin/git infocmp -1 xterm-color k/gh-aw/gh-aw/ac--jq /usr/bin/git test-dYbP4h/compgit --output=/tmp/girev-parse bin/bash 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, .object.type] | @tsv agent-persona-explorer.md g/constants/engine_constants.go outil.test iles use Prettiegit contextprotocol/rev-parse 64/bin/go outil.test 6634�� 1650738044 log 1/x64/bin/node --format=%H:%ct b/gh-aw/pkg/envurev-parse 64/bin/go /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/go/1.25.8/x64/pkg/tool/linuInitial commit /usr/bin/git agent-performancgit V4ci/NWzImF-917Hrev-parse ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel ache/go/1.25.8/x--repo /usr/bin/git 3460712/b406/_pkgit TWRl/eDvIxLANZ0crev-parse 3460712/b406=> git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git --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/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv 3 -trimpath trepo.git -p crypto/internal/rev-parse -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -o licyBlockedUsersCommaSeparatedCompiledOutput3068815366/001 -trimpath /usr/bin/git -p net/http/internarev-parse -lang=go1.25 git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv sistency_GoAndJavaScript3803378270/001/test-empty-frontmatter.md -importcfg /bin/sh -s -w -buildmode=exe /bin/sh -c git-upload-pack '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmain_branch2492134650/001' git-upload-pack '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmain_branch2492134650/001' /usr/bin/git -json GO111MODULE 64/bin/go 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, .object.type] | @tsv --show-toplevel 64/pkg/tool/linux_amd64/link /usr/bin/git les.test -trimpath r: $owner, name: $name) { has--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/git g_.a -trimpath 1/x64/bin/node git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/asm /usr/bin/git feature | cat /egit /usr/lib/git-corstatus /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git feature"; curl egit git /node_modules/.b--show-toplevel git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv go1.25.8 -c=4 -nolocalimports -importcfg /tmp/go-build1005309684/b240/importcfg -pack /home/REDACTED/go/pkg/mod/golang.org/x/text@v0.36.0/language/coverage.go env -json GO111MODULE es/.bin/node GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv go1.25.8 -c=4 -nolocalimports -importcfg /tmp/go-build1005309684/b141/importcfg -pack /home/REDACTED/go/pkg/mod/github.com/modelcontextprotocol/go-sdk@v1.5.0/oauthex/auth_meta.go env -json GO111MODULE es/.bin/sh GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (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, .object.type] | @tsv --git-dir 64/pkg/tool/linux_amd64/compile /usr/bin/gh g_.a rotocol/go-sdk@vrev-parse 64/pkg/tool/linu--show-toplevel gh run view 12345 /usr/bin/git nonexistent/repogit --json status,conclusio--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel bash /usr/bin/git add-source-path-git vil.com ndor/bin/git git rev-�� --show-toplevel git /usr/bin/git feature | cat /egit forks.js 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, .object.type] | @tsv /tmp/compile-all-instructions-test-3907112381/.github/workflows s/4/artifacts /usr/bin/git on' --ignore-patgit GO111MODULE 64/bin/go git init�� GOMODCACHE resolved$ /opt/hostedtoolcache/node/24.14.1/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel 64/pkg/tool/linu/tmp/go-build1663460712/b444/_testmain.go /usr/bin/git g_.a 5.0/deviceauth.grev-parse 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linustatus /usr/bin/git 88820339/001 GO111MODULE At,event,headBra--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /tmp/gh-aw-test-runs/20260501-092351-59800/test-source-field-variant-4183645600/.github/workflowgit remote (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, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv 5309684/b194/importcfg tname) /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -p crypto/internal/rev-parse -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/xsh -o licyBlockedUsersCommaSeparatedCompiledOutput3068815366/001 -trimpath 3460712/b441/sliceutil.test -p golang.org/x/oaurev-parse -lang=go1.24 3460712/b441/sliceutil.test (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv 2104-47380/test-1650738044 -buildtags "warnings":[]}] -errorsas -ifaceassert -nilfunc git add . -tests /usr/bin/git -json GO111MODULE 64/bin/go 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, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows/architecture-guardian.md remote /usr/bin/git latted/flatted.ggit GO111MODULE 64/bin/go git -C /tmp/gh-aw-test-runs/20260501-092104-47380/test-994547448/custom/workflows remote om/other/repo.git th .prettierignogit GO111MODULE x_amd64/asm git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv 1853352995 -buildtags /usr/bin/git -errorsas -ifaceassert -nilfunc git rev-�� --show-toplevel -tests /usr/bin/git github/workflowsgit tions/setup/js/nconfig /git git (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .default_branch (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0.1.2
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/gh g_.a 0/internal/interrev-parse 64/pkg/tool/linu--show-toplevel gh secr�� list --json /usr/bin/git mpiledOutput2716git gNtEbmW0N ache/go/1.25.8/x--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv --show-toplevel /opt/hostedtoolcache/node/24.14.git-upload-pack '/tmp/TestParseDefaultBranchFromLsRemoteWithReal-C /usr/bin/git --require (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, .object.type] | @tsv /tmp/TestGuardPolicyBlockedUsersCommaSeparatedCompiledOutput3068815366/001 rev-parse /usr/bin/git -json GO111MODULE 64/bin/go git -C /home/REDACTED/work/gh-aw/gh-aw/.github/workflows rev-parse om/org2/repo.git i-lint >/dev/nulgit GO111MODULE x_amd64/asm git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv ue.number -buildtags /usr/bin/git -errorsas -ifaceassert -nilfunc git ls-r�� --symref origin /usr/bin/git .github/workflowgit tions/setup/js/nrev-parse tions/setup/js/n--show-toplevel git (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, .object.type] | @tsv /tmp/TestGuardPolicyBlockedUsersExpressionCompildiagnostic noise should not be returned remote /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --show-toplevel go me: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -json GO111MODULE x_amd64/asm git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv -bool -buildtags /usr/lib/git-core/git -errorsas -ifaceassert -nilfunc /usr/lib/git-core/git main�� run --auto /usr/bin/git --detach tions/setup/js/nrev-parse ache/node/24.14.--show-toplevel git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-04-24 GOMOD GOMODCACHE 64/pkg/tool/linu-extld=gcc env g_.a GO111MODULE 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linutest-branch (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-04-01 GOMOD GOMODCACHE 64/pkg/tool/linu-test.v=true itma�� g_.a GO111MODULE 64/pkg/tool/linu-test.short=true GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-01-31 GOMOD GOMODCACHE Bq/aMwv_nfK75JUCd43tsyO/DAaZteIL-3lxG0HoYBiF env g_.a GO111MODULE 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuInitial commit (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE erignore abis 64/pkg/tool/linux_amd64/vet env -json pKmvAbdZx ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/xorigin (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 InX8DV7o_ ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE pguts erignore ache/go/1.25.8/xtest@example.com env ortcfg N5EVshPW9 ache/go/1.25.8/x64/pkg/tool/linu-lang=go1.25 GOINSECURE e/rtcov GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu/tmp/go-build1663460712/b114/vet.cfg (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name -q /usr/bin/git u9-aSKNKy --output=/tmp/girev-parse 1/x64/lib/node_m--show-toplevel git -C /tmp/TestGuardPolicyMinIntegrityOnlyrepos_only_without_min-integrity110186999/001 rev-parse /usr/bin/git commit.gpgsign lex.go ode_modules/.bin-v git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name Cy4PJHJpH 64/pkg/tool/linu-nolocalimports GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linu/tmp/go-build1663460712/b462/_testmain.go env ortcfg b-AbBFuh- 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 12345 --dir test-logs/run-12345 z-hV-eFae ntdrain.test GOINSECURE GOMOD GOMODCACHE ntdrain.test 6634�� ortcfg RG6vPflge ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linuremote.origin.url (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name remote /usr/bin/git -q tions/setup/js/nrev-parse tions/setup/js/n--show-toplevel git -C /tmp/gh-aw-test-runs/20260501-092351-59800/test-2212266275/.github/workflows remote /usr/bin/gh -q git 1/x64/bin/git gh (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD abis 64/pkg/tool/linux_amd64/vet env aw/actions-lock.json ]; then \ cp .github/aw/actions-lock.json -p 4Gx5UXvR1 x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 6D-KwQuTc x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env ortcfg S-MkVro-o ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name --jq /usr/bin/git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE a20poly1305 abis 64/pkg/tool/linu--json env (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/asm GOINSECURE pproxy erignore ache/go/1.25.8/x64/pkg/tool/linu--jq ortc�� -json O_2Lfc9jA ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE 5309684/b007/ GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-buildtags (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name develop /usr/bin/git ub/workflows --output=/tmp/giapi bin/git git -C /tmp/TestGuardPolicyMinIntegrityOnlymin-integrit.github/workflows/test.md rev-parse /usr/bin/git commit.gpgsign false DiscussionsEnabl--show-toplevel git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name hOYFQ3cxW 64/pkg/tool/linux_amd64/vet GOINSECURE /bidi erignore 64/pkg/tool/linux_amd64/vet env 70/001/test-empty-frontmatter.md JmzP4TwGo ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/xTest User (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 KjIdi_zAe ache/go/1.25.8/x64/pkg/tool/linux_amd64/asm GOINSECURE GOMOD erignore ache/go/1.25.8/x64/pkg/tool/linu-importcfg env iCGQRg9lJ GO111MODULE x_amd64/compile GOINSECURE 5309684/b013/ GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name git-receive-pack '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitcustom_branch1980807504/001'rev-parse /usr/bin/git ub/workflows --output=/tmp/gi-1 it git -C /tmp/TestGuardPolicyMinIntegrityOnlymin-integrity_with_repos_array_c1308909730/001 config /usr/bin/git remote.origin.urinfocmp false ache/go/1.25.8/xxterm-color git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name 06SIChxms 64/pkg/tool/linux_amd64/link GOINSECURE rm GOMODCACHE 64/pkg/tool/linu^remote\..*\.gh-resolved$ env 70/001/test-empty-frontmatter.md BIoY6_isA ortcfg.link GOINSECURE %H %ct %D (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 sNGC5r73k 64/pkg/tool/linux_amd64/compile GOINSECURE gset erignore 64/pkg/tool/linux_amd64/compile env g_.a GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linurev-parse (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name git /usr/bin/git --binary --output=/tmp/giapi ache/node/24.14./repos/actions/setup-node/git/ref/tags/v6 git -C /tmp/TestGuardPolicyMinIntegrityOnlymin-integrit@{u} remote /usr/bin/git commit.gpgsign false ache/go/1.25.8/x--show-toplevel git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name m0O72i2Jk 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD erignore 64/pkg/tool/linu^remote\..*\.gh-resolved$ env g_.a Y9sJvruy0 ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/xtest@example.com (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 LamLkoYmy ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD erignore ache/go/1.25.8/xTest User env 70/001/test-simple-frontmatter.m-test.timeout=10m0s cjNZiRS1g ache/go/1.25.8/x64/pkg/tool/linu-test.short=true GOINSECURE eader GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu/tmp/go-build1663460712/b115/vet.cfg (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name --stdin /usr/bin/git --exclude-hiddengit --all --quiet git -C /tmp/TestGuardPolicyMinIntegrityOnlyrepos_only_without_min-integrity110186999/001 config /opt/hostedtoolcache/node/24.14.1/x64/bin/node remote.origin.ur/usr/bin/git k/gh-aw/gh-aw/acconfig _modules/.bin/gi--get-regexp /opt/hostedtoolc^remote\..*\.gh-resolved$ (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 64/bin/go GOINSECURE GOMOD GOMODCACHE go env on' --ignore-pat-errorsas 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 100 GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (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 clr_wasm.o 64/src/runtime/mremove 64/pkg/tool/linuremote1 env 820197394 nXnE_1jro 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuTest User (http block)
  • https://api.github.com/repos/github/gh-aw/contents/.github/workflows/shared/reporting.md
    • Triggering command: /tmp/go-build1663460712/b404/cli.test /tmp/go-build1663460712/b404/cli.test -test.testlogfile=/tmp/go-build1663460712/b404/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true -nolocalimports -importcfg /tmp/go-build1005309684/b223/importcfg -pack env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /tmp/go-build2550615500/b404/cli.test /tmp/go-build2550615500/b404/cli.test -test.testlogfile=/tmp/go-build2550615500/b404/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true --count 2da93765e6b265a7fetch tions/node_modulREDACTED && echo hacked git rev-�� HEAD git n-dir/git --verify b18161859da0e2eecommit /git ache/node/24.14.Update"; echo hacked (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.47.4
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/go/1.25.8/xremote /usr/bin/git /ref/tags/v9 scripts/**/*.js sv git rev-�� --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /usr/bin/git 3460712/b430/_pkdu pkg/mod/github.c-k 3460712/b430=> git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv --show-toplevel l (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, .object.type] | @tsv tzQPU-Nb0 GO111MODULE ache/go/1.25.8/x64/pkg/tool/linu-importcfg GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu/home/REDACTED/work/gh-aw/gh-aw/pkg/stats/spec_test.go ortc�� 5309684/b188/_pkg_.a rg/x/text@v0.36.0/feature/plural/common.go ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOSUMDB fips140/edwards2rev-parse 64/bin/go ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv | curl evil.com k/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs k/gh-aw/gh-aw/node_modules/.bin/git ch-that-does-notgit git ache/go/1.25.8/x/tmp/gh-aw-test-runs/20260501-092351-59800/test-2212266275/.github/workflows k/gh-aw/gh-aw/acremote --ex�� / /home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs rgo/bin/git node --conditions development /opt/hostedtoolcremote.origin.url (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, .object.type] | @tsv -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE BSZlvZg/MJCed_FVconfig env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv | curl evil.com k/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs odules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/git ch-that-does-notgit morJ/.diffsize.trev-parse odules/npm/node_--show-toplevel k/gh-aw/gh-aw/actions/setup/js/nUpdate malicious command mcp_�� lGitcustom_branch1980807504/001' lGitcustom_branch1980807504/001' n-dir/git modules/@npmcli/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, .object.type] | @tsv -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile _bra�� -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv iant-1865215608 GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json age/compact/compact.go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (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, .object.type] | @tsv -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile 2134�� -json 1.5.0/internal/jsonrpc2/conn.go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv iant-3910937240/--exclude-hidden=receive false git tions/setup/nodegit 827d25fe..03de1frev-parse de_modules/.bin/--git-dir ps n@gi�� n@github.com/test-owner/test-repo.git /home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs it node --conditions development /opt/hostedtoolcache/go/1.25.8/xTest User (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, .object.type] | @tsv -RlDlG6ki GO111MODULE ck GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linurev-parse sRem�� 5309684/b090/_pkg_.a om/santhosh-tekuri/jsonschema/v6@v6.0.2/kind/kind.go ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOSUMDB GOWORK 64/bin/go ache/go/1.25.8/xsh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv le-frontmatter.md k/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs k/node_modules/.bin/git ch-that-does-notgit git /opt/hostedtoolc/tmp/gh-aw-test-runs/20260501-092351-59800/test-2212266275/.github/workflows k/gh-aw/gh-aw/acconfig 6717�� / /home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs odules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/git node --conditions development 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 go-sdk/mcp GOMODCACHE 64/pkg/tool/linux_amd64/link ortc�� 2613145728/001 rg/x/sys@v0.43.0/cpu/byteorder.go ortcfg.link GOINSECURE 5309684/b036/ GOMODCACHE 3JL8ddMPoqaiAM618n/W7nDXlF-2wrJGrRo2mzy/Er_eZaAbconfig (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion test-3rsQmE/testgit false 64/bin/git git rev-�� --show-toplevel git /usr/bin/git ; rm -rf / /opt/hostedtoolcrev-parse k/gh-aw/gh-aw/ac--show-toplevel 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 go env on' --ignore-pat-errorsas GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --repo owner/repo --json name,path,state ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE ole GOMODCACHE ache/go/1.25.8/xremote.origin.url env zkoQkwabs GO111MODULE 64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo ache/node/24.14.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/go -- origin/main de_modules/.bin/--noprofile git add test-7euo2p/no-input.go node tions/node_modules/.bin/git tc/passwd git 35ce35c63b827d25--show-toplevel ache/node/24.14.1/x64/bin/node (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 go env on' --ignore-pat- GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name st.cjs --output=/tmp/git-patch-utils-MQG4Q7/.diffsize.tmp es/.bin/sh -- k/gh-aw/gh-aw/acfetch /git git add test-7euo2p/no-input.go k/gh-aw/gh-aw/actest@example.com ode_modules/.bin/git tc/passwd git 35ce35c63b827d25/tmp/TestHashConsistency_GoAndJavaScript1797635302/001/test-inlined-imports-enabled-with-body-content.md ache/node/24.14.1/x64/bin/node (http block)
  • https://api.github.com/repos/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch 5309684/b106/_pkg_.a om/goccy/go-yaml@v1.19.2/context.go .cfg GOINSECURE l GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /opt�� 5309684/b138/_pkg_.a I_fS/lEXOLD1Q0N_qtyQmI_fS 64/pkg/tool/linux_amd64/vet **/*.ts e/jsonschema-go/-1 --ignore-path 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch --show-toplevel s/test.md /usr/bin/git (http block)
  • invalid.example.invalid
    • Triggering command: /usr/lib/git-core/git-remote-https /usr/lib/git-core/git-remote-https origin https://invalid.example.invalid/nonexistent-repo.git e/git init�� ndor/bin/git git ode_modules/.bin/git =receive test@example.com--git-dir=/tmp/bare-incremental-qgd3F0 /git (dns block)

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

Copilot AI linked an issue May 1, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits May 1, 2026 09:21
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
… test to Smoke Codex

- setup_cache_memory_git.sh: detect and log cache hit/cold-start, log
  non-git file listing before and after git setup, write
  cache-hit-history.json on successful restore
- commit_cache_memory_git.sh: log non-git files being committed so
  upload content is visible in CI logs
- smoke-codex.md: add test #9 (Cache Memory Testing) that reads previous
  run state and writes smoke-codex-history.json, ensuring meaningful
  state is persisted across runs

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/27b77111-360c-4f7c-8dc0-205ee5ea2a37

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix cache miss in Smoke Codex fix(cache): persist meaningful state and add hit-history tracking in Smoke Codex May 1, 2026
Copilot AI requested a review from pelikhan May 1, 2026 09:25
@pelikhan pelikhan marked this pull request as ready for review May 1, 2026 09:27
Copilot AI review requested due to automatic review settings May 1, 2026 09:27
@pelikhan pelikhan merged commit 9ca9dbe into main May 1, 2026
19 checks passed
@pelikhan pelikhan deleted the copilot/fix-cache-miss-smoke-codex branch May 1, 2026 09:27
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

Improves Smoke Codex cache-memory persistence and observability so restored cache state is visible in logs and at least one user-space file is always written, avoiding perpetual cold starts.

Changes:

  • Detect cache hit vs cold start early in cache-memory setup and persist hit-history metadata.
  • Add logging of cache-memory non-git files before/after setup and before committing.
  • Extend Smoke Codex smoke test instructions to write a run history file into cache-memory each run.
Show a summary per file
File Description
actions/setup/sh/setup_cache_memory_git.sh Detects cache hits early; logs restored/ready non-git files; writes cache-hit-history.json on hits.
actions/setup/sh/commit_cache_memory_git.sh Logs non-git cache-memory files prior to staging/commit for CI visibility.
.github/workflows/smoke-codex.md Adds a cache-memory test that reads/writes smoke-codex-history.json to ensure persistent state is created.

Copilot's findings

Tip

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

Comments suppressed due to low confidence (1)

actions/setup/sh/setup_cache_memory_git.sh:194

  • This post-setup listing also prints raw filenames from the cache directory. Since the cache can include untrusted filenames, consider escaping/sanitizing filenames (or printing a count + a bounded sample) to avoid CI log injection via control characters/newexpected line breaks.
# --- Log cache directory contents after full setup ---
echo "=== Cache directory: non-git files available for agent after setup ==="
_post_files=$(find . -not -path './.git/*' -type f 2>/dev/null | sort || true)
if [ -n "$_post_files" ]; then
  echo "$_post_files"
  • Files reviewed: 3/3 changed files
  • Comments generated: 2

Comment on lines +32 to +35
_commit_files=$(find . -not -path './.git/*' -type f 2>/dev/null | sort || true)
if [ -n "$_commit_files" ]; then
echo "$_commit_files"
else
Comment on lines +46 to +49
_pre_files=$(find . -not -path './.git/*' -type f 2>/dev/null | sort || true)
if [ -n "$_pre_files" ]; then
echo "$_pre_files"
else
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.

[cache-strategy] Fix cache miss in Smoke Codex

3 participants