Skip to content

fix: align token workflows with gh-aw logs --json schema and add shared log caching#24395

Merged
pelikhan merged 6 commits intomainfrom
fix/token-workflow-json-schema
Apr 3, 2026
Merged

fix: align token workflows with gh-aw logs --json schema and add shared log caching#24395
pelikhan merged 6 commits intomainfrom
fix/token-workflow-json-schema

Conversation

@lpcox
Copy link
Copy Markdown
Collaborator

@lpcox lpcox commented Apr 3, 2026

Problem

The Copilot Token Optimizer workflow failed in run 23962678922 with:

jq: error: Cannot index array with string "workflowName"

All 4 token workflows (copilot/claude analyzers and optimizers) assumed gh aw logs --json outputs a bare JSON array with camelCase field names. In reality, it outputs an object with a .runs array, and run objects use snake_case field names.

Additionally, each workflow independently called gh aw logs --json, causing redundant API calls and potential rate-limiting when all 4 workflows run in sequence each day.

Fix

  • Extract .runs array from the JSON object before processing
  • Replace camelCase field references with snake_case:
    • workflowNameworkflow_name
    • tokenUsagetoken_usage
    • databaseIddatabase_id
    • createdAtcreated_at
  • Replace non-existent estimatedCost with 0 placeholder
  • Update documentation sections with correct field names
  • Add sort_by(.workflow_name) before group_by(.workflow_name) in optimizers for deterministic grouping
  • Extract a new token-logs-fetch.md shared agentic workflow that pre-fetches both Copilot and Claude logs once daily (~08:45) and caches them via cache-memory
  • Update all 4 token workflows to check for and use the pre-fetched cached logs (falling back to direct gh aw logs --json if no valid cache exists)

Files Changed

  • .github/workflows/token-logs-fetch.md (new)
  • .github/workflows/copilot-token-optimizer.md
  • .github/workflows/claude-token-optimizer.md
  • .github/workflows/copilot-token-usage-analyzer.md
  • .github/workflows/claude-token-usage-analyzer.md
  • All corresponding .lock.yml files (recompiled)

Testing

  • All 184 workflows compile successfully
  • make fmt && make lint pass with 0 issues

gh aw logs --json returns an object with a .runs array (not a bare
array), and run objects use snake_case field names. All 4 token
workflows (copilot/claude analyzers and optimizers) assumed a bare
array with camelCase fields, causing jq errors like:
  Cannot index array with string "workflowName"

Changes:
- Extract .runs array from JSON object before processing
- Replace camelCase fields with snake_case (workflow_name,
  token_usage, database_id, created_at)
- Replace non-existent estimatedCost with 0 placeholder
- Update documentation sections with correct field names

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 3, 2026 22:38
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

This PR fixes the token analyzer/optimizer workflows by updating their gh aw logs --json parsing to match the actual output schema (top-level object with a .runs array and snake_case fields), preventing jq indexing failures during workflow execution.

Changes:

  • Write gh aw logs --json output to a raw file and extract .runs into the array file consumed by subsequent jq steps.
  • Update jq field references from camelCase to snake_case (e.g., databaseIddatabase_id, workflowNameworkflow_name).
  • Recompile the corresponding .lock.yml workflow files.
Show a summary per file
File Description
.github/workflows/copilot-token-usage-analyzer.md Extracts .runs and updates run field names in analyzer + embedded docs
.github/workflows/copilot-token-usage-analyzer.lock.yml Recompiled lock with the updated download/parsing logic
.github/workflows/copilot-token-optimizer.md Extracts .runs and updates optimizer jq aggregation to snake_case fields
.github/workflows/copilot-token-optimizer.lock.yml Recompiled lock with the updated optimizer logic
.github/workflows/claude-token-usage-analyzer.md Extracts .runs and updates run field names in analyzer + embedded docs
.github/workflows/claude-token-usage-analyzer.lock.yml Recompiled lock with the updated download/parsing logic
.github/workflows/claude-token-optimizer.md Extracts .runs and updates optimizer jq aggregation to snake_case fields
.github/workflows/claude-token-optimizer.lock.yml Recompiled lock with the updated optimizer logic

Copilot's findings

Tip

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

  • Files reviewed: 8/8 changed files
  • Comments generated: 2

@pelikhan
Copy link
Copy Markdown
Collaborator

pelikhan commented Apr 3, 2026

@copilot Extract a shared agentic workflow that downloads logs and stores them in a common cache to avoid rate-limiting when running these workflows.

lpcox and others added 3 commits April 3, 2026 15:56
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Recompile copilot-token-optimizer and claude-token-optimizer lock
files to match the sort_by(.workflow_name) additions made via UI.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan
Copy link
Copy Markdown
Collaborator

pelikhan commented Apr 3, 2026

@lpcox wait for copilot. We need to refactor the logs download. It's killing our gh api usage

Copilot AI and others added 2 commits April 3, 2026 23:12
…d rate-limiting

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/37b38e9c-5938-4c6f-a082-9bc64b2a8b7b

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…into fix/token-workflow-json-schema

# Conflicts:
#	.github/workflows/claude-token-optimizer.lock.yml
#	.github/workflows/copilot-token-optimizer.lock.yml

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

@copilot Extract a shared agentic workflow that downloads logs and stores them in a common cache to avoid rate-limiting when running these workflows.

Added a new token-logs-fetch.md workflow (commit 908f796) that:

  • Runs daily at ~08:45 (before the analyzers at 09:00/09:30) and on workflow_dispatch
  • Fetches both Copilot and Claude logs in a single pre-agent step
  • Has the agent cache them to cache-memory (uploaded as an artifact)

All 4 token workflows now check for the cached artifact first (gh run download from the latest successful token-logs-fetch run), validating it matches today's date and is non-empty before using it. They fall back to a direct gh aw logs --json call if no valid cache is found. This reduces up to 4 redundant API calls per day to 1.

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 /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 security-compliafetch smoke-agent-all-origin agentic-observabfix/token-workflow-json-schema func�� smoke-project.lock.yml org-health-report.md ache/node/24.14.1/x64/bin/git r (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 security-compliafetch smoke-agent-all-origin agentic-observabfix/token-workflow-json-schema func�� smoke-project.lock.yml org-health-report.md tnet/tools/git r (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 &#34;prettier&#34; --che-p sh 64/bin/go tierignore /opt/hostedtoolc-o 64/bin/go go env -json 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 --write ../../../**/*.jsGOMOD 64/bin/go --ignore-path ../../../.pretti-c /usr/bin/git go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (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 --git-dir x_amd64/compile /usr/bin/git ub/workflows 1.4.1/internal/xrev-parse x_amd64/compile git conf�� user.name Test User /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 --show-toplevel go /usr/bin/git matter-with-nestgit GO111MODULE 64/bin/go git chec�� -b feature-branch /usr/bin/git y-test.md GO111MODULE 64/bin/go 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 -bool -buildtags (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha --noprofile sh /usr/bin/git &#34;prettier&#34; --wrigit git 64/bin/go git push�� origin (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/pkg/tool/linux_amd64/asm GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuInitial commit env 75/001/test-empty-frontmatter.md-test.timeout=10m0s GO111MODULE 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel x_amd64/vet r,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,disp--show-toplevel -json flow-ci-test-678rev-parse 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/git g_.a GO111MODULE 64/pkg/tool/linu--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /usr/bin/git 9465890/b204/_pkgit gNV_/-ERQMY_tDmUrev-parse 7492120/b417/log--show-toplevel git rev-�� --show-toplevel 7492120/b417/log12345 /usr/bin/git t0 -Eee/499QsILxkBjrev-parse (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 graphql .cfg 64/pkg/tool/linu../../../.prettierignore -f owner=github -f 64/pkg/tool/linux_amd64/vet -C k/gh-aw/gh-aw/.github/workflows rev-parse 64/pkg/tool/linux_amd64/vet data/action_pinsgit (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha k/gh-aw/gh-aw/.g!../../../pkg/workflow/js/**/*.json .cfg 64/pkg/tool/linu../../../.prettierignore .json...&#34; (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha k/gh-aw/gh-aw/.github/workflows .cfg 64/pkg/tool/linux_amd64/vet l owner=github -f 64/pkg/tool/linux_amd64/vet imag�� k/gh-aw/gh-aw/.github/workflows ghcr.io/github/serena-mcp-server:latest 64/pkg/tool/linux_amd64/vet l org-health-reporrev-parse DiscussionsEnabl--show-toplevel 64/pkg/tool/linux_amd64/vet (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 k/gh-aw/gh-aw/.g!../../../pkg/workflow/js/**/*.json .cfg 64/pkg/tool/linu../../../.prettierignore (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha /home/REDACTED/wor!../../../pkg/workflow/js/**/*.json .cfg 64/pkg/tool/linu../../../.prettierignore remote.origin.urnode (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha /home/REDACTED/work/gh-aw/gh-aw/.github/workflows .cfg 64/pkg/tool/linux_amd64/vet 0 -j ACCEPT 64/pkg/tool/linux_amd64/vet -1 k/gh-aw/gh-aw/.github/workflows .cfg 64/pkg/tool/linux_amd64/vet l agent-persona-exrev-parse $name) { has--show-toplevel 64/pkg/tool/linux_amd64/vet (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 k/gh-aw/gh-aw/.g!../../../pkg/workflow/js/**/*.json .cfg 64/pkg/tool/linu../../../.prettierignore -f owner=github -f 64/pkg/tool/linux_amd64/vet imag�� inspect ghcr.io/github/serena-mcp-server:latest node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha -test.paniconexit0 -test.v=true /opt/hostedtoolcache/node/24.14.1/x64/bin/node -test.timeout=10git -test.run=^Test -test.short=true--show-toplevel /opt/hostedtoolcache/node/24.14.1/x64/bin/node /tmp�� github.repository x_amd64/asm /usr/bin/git -json GO111MODULE x_amd64/compile git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha --get remote.origin.url /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --show-toplevel (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 k/gh-aw/gh-aw/.g!../../../pkg/workflow/js/**/*.json .cfg 64/pkg/tool/linu../../../.prettierignore (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha /tmp/shared-actions-test2363023936 config /usr/bin/git remote.origin.urgit GO111MODULE x_amd64/compile git conf�� user.name Test User /usr/bin/git -json GO111MODULE x_amd64/compile git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha user.name Test User /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --show-toplevel go /opt/hostedtoolcache/node/24.14.1/x64/bin/node -json GO111MODULE odules/npm/node_--show-toplevel /opt/hostedtoolcache/node/24.14.1/x64/bin/node (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 runs/20260403-230315-35547/test-1887265709/.github/workflows -trimpath ache/node/24.14.1/x64/bin/node l crypto/internal/rev-parse -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile t-43�� sistency_WithImports239561311/001/main.md -trimpath /usr/bin/git -p golang.org/x/texrev-parse -lang=go1.25 git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha runs/20260403-230424-49280/test-491526968/.github/workflows GO111MODULE /opt/hostedtoolcache/go/1.25.8/x64/bin/node l GOMOD GOMODCACHE node /opt�� prettier --check 1/x64/bin/node --ignore-path .prettierignore 64/bin/go 1/x64/bin/node (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 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha e-token-optimizer.lock.yml git /usr/bin/git --show-toplevel go /usr/bin/git git rev-�� -logs-fetch.md git /usr/bin/git --show-toplevel go /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env on&#39; --ignore-path ../../../.prettierignore GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .visibility --get-regexp --local tnet/tools/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .visibility /workflows/copil-f git /usr/bin/git --show-toplevel go /usr/bin/infocmp/home/REDACTED/work/gh-aw/gh-aw/.github/workflows git rev-�� /workflows/token-logs-fetch.lockOUTPUT infocmp r: $owner, name: $name) { hasDiscussionsEnabled } } xterm-color go /usr/lib/git-corinspect git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .visibility -json GO111MODULE tions/node_modul-f GOINSECURE GOMOD GOMODCACHE go env */*.ts&#39; &#39;**/*.json&#39; --ignore-path ../../../.prettierignore GO111MODULE r: $owner, name: $name) { hasDiscussionsEnabled } } GOINSECURE GOMOD GOMODCACHE go (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 GOMODCACHE go /usr/bin/git -json GO111MODULE x_amd64/asm git bran�� --show-current W1fr5uG/E4bT4qLCconfig /usr/bin/git -json GO111MODULE d1144b9e78d79f3b--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 --show-toplevel go ache/node/24.14.1/x64/bin/node -json GO111MODULE 64/bin/go ache/node/24.14.1/x64/bin/node 2074�� --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/go git (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 sistency_GoAndJavaScript3650225175/001/test-frontmatter-with-arrays.md pkg/mod/golang.org/x/text@v0.35.0/internal/internal.go /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile 001&#39; 001&#39; -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -o /tmp/go-build4119465890/b183/_pkg_.a -trimpath /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/link -p crypto/tls -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq .object.sha npx prettier --check &#39;**/*.cjs&#39; &#39;**/*.ts&#39; &#39;**/*.json&#39; --ignore-path ../../../.pr**/*.json GOPROXY ache/node/24.14.1/x64/bin/node GOSUMDB GOWORK 64/bin/go sh t-23�� sistency_InlinedImports2965103911/001/inlined-b.md sh /bin/sh tierignore git 64/bin/go /bin/sh (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 /tmp/go-build4119465890/b133/_pkg_.a pkg/mod/golang.org/x/text@v0.35.0/internal/number/common.go /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -p math/rand -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -o k/gh-aw/gh-aw/.github/workflows -trimpath 7492120/b445/vet.cfg -p github.com/modelrev-parse -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linutest@example.com (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq .object.sha runs/20260403-230424-49280/test-2605898375/.github/workflows GOPROXY /opt/hostedtoolcache/node/24.14.1/x64/bin/sh GOSUMDB GOWORK 64/bin/go sh -c runs/20260403-230424-49280/test-1834839999/custom/workflows sh /usr/bin/git tierignore git 64/bin/go git (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 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 ortc�� Onlymin-integrity_with_repos_array_c2461210960/001 om/santhosh-tekuri/jsonschema/v6@v6.0.2/kind/kind.go ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE fips140/drbg GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 GO111MODULE 1/x64/bin/node GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linuorigin t-ha�� vaScript3650225175/001/test-inlined-imports-enabled-with-env-template-expressions-in-body.md enpy/Bq-sVaQ5wUFNgK5Xenpy ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE boring/bbig GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name GO111MODULE 1/x64/bin/node GOINSECURE erignore GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/link t-ha�� ithub/workflows/ace-editor.md GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (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 gmGb0FnMM ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu--auto env 0315-35547/test-437356522/.githu--detach GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE fips140deps/goderev-parse GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 Ffa_H-Eee 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 env 0315-35547/test-917867052/.github/workflows GO111MODULE 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/12345/artifacts --jq .artifacts[].name GO111MODULE At,event,headBranch,headSha,displayTitle GOINSECURE GOMOD GOMODCACHE erignore env -json GO111MODULE eTags}} GOINSECURE GOMOD GOMODCACHE go (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 sRemoteWithRealGitmain_branch4146641516/002/work 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 env 0315-35547/test-437356522/.github/workflows GO111MODULE 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 run download 12346 --dir test-logs/run-12346 EocudEgAi 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 env 0315-35547/test-253873786/.github/workflows bpQE/c2CKE9Q4x2aSUy_HbpQE .cfg 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 GO111MODULE ache/go/1.25.8/x64/bin/go GOINSECURE GOMOD GOMODCACHE erignore env -json GO111MODULE }} {{context.Compiler}} GOINSECURE GOMOD GOMODCACHE go (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 ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE /math GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu.github/workflows/test.md ortc�� Onlymin-integrity_with_repos_array_c2461210960/001 edcfg 64/pkg/tool/linux_amd64/vet GOINSECURE fips140/aes/gcm GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE .cfg GOINSECURE b/gh-aw/pkg/typerev-parse GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile env 725832485/.github/workflows GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/link GOINSECURE fips140/nistec GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD erignore ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet env -json GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/link (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 Ak5qHtlUh At,event,headBranch,headSha,displayTitle GOINSECURE 9465890/b021/ GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile env ortcfg GO111MODULE 1/x64/bin/node GOINSECURE fips140only ache/go/1.25.8/x--show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 GO111MODULE 1e938b5f3dc095bfd88a650c3c31e15f1ea8bfa1e78feadf13f5e8452a2353cc-d GOINSECURE contextprotocol/rev-parse GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile env /ref/tags/v8 GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name GO111MODULE 3d101969a7ce397d6fe2317fa5daaf0aba4932bef29968af61a7bde732648995-d GOINSECURE GOMOD erignore ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet env -json GO111MODULE 3737685/b424/parser.test GOINSECURE GOMOD GOMODCACHE 3737685/b424/parser.test (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 DefaultBranchFromLsRemoteWithRealGitcustom_branch3222634785/001&#39; ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE /exithook GOMODCACHE ache/go/1.25.8/xremote.origin.url env Onlyrepos_only_without_min-integrity4106932205/001 lTSd/ZFYjfXmGnzDCY7t-lTSd 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 run download 4 --dir test-logs/run-4 GO111MODULE 1/x64/bin/node GOINSECURE g/x/crypto/cryptrev-parse GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile t-ha�� SameOutput1473549090/001/stability-test.md bft1/1yO0RzBmJIVi0dFibft1 ache/go/1.25.8/x64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name GO111MODULE .cfg GOINSECURE GOMOD erignore ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet env /v2.0.0 GO111MODULE /opt/hostedtoolcache/go/1.25.8/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (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 GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE /sys GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile ortc�� Onlyrepos_only_without_min-integrity4106932205/001 rg/x/oauth2@v0.34.0/internal/doc.go ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE boring 9465890/b029/sym--show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE fips140deps/cpu GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile env ExpressionCompiledOutput4233994328/001 MOYT/g9jV8Gh5jOq4GDF0MOYT ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name GO111MODULE 1/x64/bin/node GOINSECURE GOMOD erignore ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet t-ha�� ithub/workflows/ace-editor.md GO111MODULE ache/node/24.14.1/x64/bin/node GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path &#34;prettier&#34; --che-p (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 go 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 go-sdk/jsonrpc GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/asm env efaultBranchFromLsRemoteWithRealGitmaster_branch1785469533/001&#39; efaultBranchFromLsRemoteWithRealGitmaster_branch1785469533/001&#39; 1/x64/bin/node GOINSECURE 9465890/b012/ GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/asm (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 --show-toplevel resolved$ /usr/bin/git g_.a @v1.19.2/internarev-parse 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/infocmp 61662717/001 7JGiP3oGe 64/pkg/tool/linugit-upload-pack &#39;origin&#39; infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq .object.sha --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/node git rev-�� --show-toplevel go /usr/bin/git edOutput16689222/bin/sh GO111MODULE ache/go/1.25.8/xgit-upload-pack &#39;origin&#39; 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 Gitmain_branch4146641516/001&#39; Gitmain_branch4146641516/001&#39; x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env tmatter-with-nested-objects.md ase64.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/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)
  • 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 -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env to pkg/workflow/data/action_pins-p 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 -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/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 -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go 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 -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE x_amd64/asm GOINSECURE GOMOD GOMODCACHE x_amd64/asm (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha -json GO111MODULE 88c67f2359ddb5fe-d GOINSECURE GOMOD GOMODCACHE go env -dirty&#34; -o gh-aw-errorsas GO111MODULE 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 -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go 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/v3.0.0 --jq .object.sha re 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/githubnext/agentics/git/ref/tags/
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha (http block)
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha ot-token-usage-analyzer.md git $name) { hasDiscussionsEnabled } } --show-toplevel resolved$ /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel go /usr/bin/infocmpgraphql git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha on&#39; --ignore-path ../../../.prettierignore GO111MODULE $name) { hasDiscussionsEnabled } } GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (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 x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha re 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/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion GOINSECURE GOMOD 9465890/b029/sym--show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile env 9465890/b178/_pkg_.a Kv-X/SrddFjc3EqPBzwz7Kv-X 9465890/b178=&gt; GOINSECURE GOMOD GOMODCACHE /opt/hostedtoolcrepos/{owner}/{repo}/actions/runs/4/artifacts (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 3737685/b382/vet.cfg GOINSECURE GOMOD GOMODCACHE node (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 tierignore /opt/hostedtoolc-o 64/bin/go go env -json 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 -d **/*.cjs 64/bin/go go env -json context/xcontext.go 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: /tmp/go-build2457492120/b396/cli.test /tmp/go-build2457492120/b396/cli.test -test.testlogfile=/tmp/go-build2457492120/b396/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true -nolocalimports -importcfg /tmp/go-build4119465890/b171/importcfg -pack -c &#34;prettier&#34; --che-p node 64/bin/go tierignore **/*.cjs 64/bin/go go (http block)
    • Triggering command: /tmp/go-build3943737685/b396/cli.test /tmp/go-build3943737685/b396/cli.test -test.testlogfile=/tmp/go-build3943737685/b396/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true tierignore /opt/hostedtoolcenv /usr/bin/git go env -json 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 &#34;prettier&#34; --che-p sh 64/bin/go &#34;prettier&#34; --wri/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /opt/hostedtoolc-o 64/bin/go go env -json 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 --write ../../../**/*.jsGOMOD 64/bin/go --ignore-path ../../../.pretti-c /usr/bin/git mWeQdRYXmAgk env -json GO111MODULE efdf58ede3856220-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:

Copilot AI changed the title fix: align token workflows with gh-aw logs --json schema fix: align token workflows with gh-aw logs --json schema and add shared log caching Apr 3, 2026
Copilot AI requested a review from pelikhan April 3, 2026 23:14
@pelikhan
Copy link
Copy Markdown
Collaborator

pelikhan commented Apr 3, 2026

@lpcox ready

@pelikhan pelikhan merged commit d688a4a into main Apr 3, 2026
82 checks passed
@pelikhan pelikhan deleted the fix/token-workflow-json-schema branch April 3, 2026 23:18
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.

4 participants