Skip to content

Accept deprecated max_tokens for MCP audit/compile and remove conflicting guidance#27783

Merged
pelikhan merged 3 commits intomainfrom
copilot/fix-mcp-tools-max-tokens-parameter
Apr 22, 2026
Merged

Accept deprecated max_tokens for MCP audit/compile and remove conflicting guidance#27783
pelikhan merged 3 commits intomainfrom
copilot/fix-mcp-tools-max-tokens-parameter

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 22, 2026

agentic-workflows MCP audit and compile rejected max_tokens as an unknown argument, while workflow guidance explicitly instructed callers to send it. This caused deterministic tool-call failures for documented usage paths.

  • MCP input schema compatibility (audit, compile)

    • Added max_tokens to both MCP tool argument schemas as a deprecated, ignored field.
    • This keeps calls backward-compatible without changing command execution semantics.
  • Documentation/workflow prompt alignment

    • Removed max_tokens guidance for audit and compile in daily-cli-tools-tester.md.
    • Kept logs token-limiting guidance unchanged.
  • Regression coverage

    • Added focused MCP tests asserting:
      • audit accepts max_tokens without schema rejection.
      • compile accepts max_tokens without schema rejection.
      • max_tokens is not forwarded into CLI subprocess args.
type compileArgs struct {
    Workflows []string `json:"workflows,omitempty"`
    // ...
    MaxTokens int `json:"max_tokens,omitempty" jsonschema:"Deprecated: accepted for backward compatibility but ignored."`
}

type auditArgs struct {
    RunIDOrURL string `json:"run_id_or_url"`
    // ...
    MaxTokens int `json:"max_tokens,omitempty" jsonschema:"Deprecated: accepted for backward compatibility but ignored."`
}

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 gh repo view --json owner,name --jq .owner.login + "/" + .name 64/pkg/tool/linux_amd64/compile GOINSECURE ntio/asm/ascii 3384465/b011/symabis 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh repo view owner/repo env 3384465/b223/_pkg_.a GO111MODULE 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/compile 3384�� g_.a EgAi/JW5fl0E13YyEocudEgAi .cfg --format=%H:%ct GOWORK 64/bin/go ache/go/1.25.8/x64/pkg/tool/linuTest User (http block)
    • Triggering command: /usr/bin/gh gh repo view owner/repo env 1145938317 ahb4/lZep-2MiwczJtV1iahb4 .cfg GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/xremote.origin.url -c 3520012/b394/_pkg_.a uvTv/8YYGT_gSIAc5Hh4AuvTv .cfg -n1 b/gh-aw/pkg/actiremote --end-of-options-v ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (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 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 /orgs/test-owner/actions/secrets --jq .secrets[].name ec60a5549ccaf28dGOINSECURE GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE 3ChZaxU4tgCH env -json GO111MODULE 6f085b31ee0789e7-d GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name 738118f635fe1b35GOINSECURE GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile 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, .object.type] | @tsv --paginate repos/{owner}/{repo}/actions/runs/5/artifacts /usr/bin/infocmp .artifacts[].namgit .cfg 64/pkg/tool/linu--show-toplevel infocmp -1 xterm-color 64/pkg/tool/linux_amd64/vet /usr/bin/git 1754380063 k-ff/hcoMcb4nJlD/opt/hostedtoolcache/node/24.14.1/x64/bin/npm 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 go /usr/bin/git ck 'scripts/**/*git GO111MODULE 64/bin/go git rev-�� --show-toplevel go /usr/bin/git mpiledOutput2295node 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 go /usr/bin/git ck 'scripts/**/*git GO111MODULE 64/bin/go git rev-�� --show-toplevel go /usr/bin/git ut3881582877/001node GO111MODULE 64/bin/go /usr/bin/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 --get-regexp ^remote\..*\.gh-resolved$ /usr/bin/git -json GO111MODULE x_amd64/vet git conf�� --get remote.origin.url /usr/bin/git successfully" GO111MODULE x_amd64/vet git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv /tmp/compile-all-instructions-test-3091462981/.github/workflows config /usr/bin/infocmp remote.origin.urgit GO111MODULE 64/bin/go infocmp -1 xterm-color go /usr/bin/git -json GO111MODULE ode git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv user.email test@example.com /opt/hostedtoolcache/node/24.14.1/x64/bin/node -json GO111MODULE 64/bin/go node /tmp�� /home/REDACTED/work/gh-aw/gh-aw/.github/workflows/ai-moderator.md go /usr/bin/git -json GO111MODULE tions/setup/js/n--show-toplevel 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 se 3520012/b187/vet.cfg ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet -p strconv -lang=go1.25 ache/go/1.25.8/x--name-only -o /tmp/go-build3053384465/b204/_pkg_.a -trimpath /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/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/linu-trimpath /usr/bin/git se 3520012/b005/vet\n .cfg git rev-�� --show-toplevel ache/go/1.25.8/x^remote\..*\.gh-resolved$ /usr/bin/git 0601-33367/test-git -trimpath ache/go/1.25.8/x--show-toplevel 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 x_amd64/vet 1/x64/bin/npm 3520012/b450/stygit rev-parse 3520012/b450/imp--show-toplevel 1/x64/bin/npm rev-�� --show-toplevel StImIOC-NY5wN/IagaKIu7mbq9KJf595N_/MhA652aEkSuR8^remote\..*\.gh-resolved$ /usr/bin/git ry=1 rev-parse 3520012/b450/_pk--show-toplevel git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv 3520012/b465/_pkg_.a remote 3520012/b465=> -json b/gh-aw/pkg/typerev-parse x_amd64/compile git -C 88qG/8AJ7Y7dVpgtqOdVA88qG git /opt/hostedtoolcache/node/24.14.1/x64/bin/node -json GO111MODULE x_amd64/vet 3520012/b465/importcfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows/approach-validator.md -tests /usr/bin/git 7a5c473262148548git GO111MODULE x_amd64/compile git rev-�� --show-toplevel x_amd64/compile /usr/bin/git ted-objects.md GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv origin my-default /opt/hostedtoolcache/node/24.14.1/x64/bin/node -json GO111MODULE 64/bin/go node /tmp�� /tmp/TestHashStability_SameInputSameOutput4013373682/001/stability-test.md go /usr/bin/git template-expressgit GO111MODULE oFiles,IgnoredOt--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, .object.type] | @tsv --show-toplevel ache/go/1.25.8/x64/pkg/tool/linuupstream /usr/bin/git se 3520012/b272/vetcheckout ache/go/1.25.8/x-b git rev-�� --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /usr/bin/git -unreachable=falgit /tmp/go-build418rev-parse ache/go/1.25.8/x--show-toplevel 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 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /usr/bin/git 1333-63631/test-git -trimpath ache/go/1.25.8/x-b git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE /opt/hostedtoolc--show-toplevel 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 /opt/hostedtoolcache/go/1.25.8/x.github/workflows/test.md /usr/bin/git 1916-90939/test-git -trimpath ache/go/1.25.8/x-b git rev-�� v1.0.0 go /usr/bin/git st-2728863801/.ggit GO111MODULE /opt/hostedtoolc--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 -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/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile abi/�� -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv -json r/common.go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_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, .object.type] | @tsv --show-toplevel x_amd64/link /usr/bin/git -json .cfg 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel Ae/u4W9uGpwJR2ifconfig /usr/bin/git y-test.md mLsRemoteWithRearev-parse 64/pkg/tool/linu--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 user.name Test User /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --show-toplevel go /usr/bin/git ck '**/*.cjs' '*git GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel go /usr/bin/git NLQAfL7-L GO111MODULE 64/bin/go git rev-�� --show-toplevel rtcfg /usr/bin/git 1243926c601af34bgit GO111MODULE 64/bin/go 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 3520012/b466/_pkg_.a config 3520012/b466=> remote.origin.urgit x86.go x_amd64/asm infocmp -1 ZFWo/sMr_w3qRcZY0wv0fZFWo l /usr/bin/git -json GO111MODULE x_amd64/vet git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /home/REDACTED/work/gh-aw/gh-aw/.github/workflows/archie.md x_amd64/vet /usr/bin/git -json .cfg 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linuremote.origin.url /usr/bin/git ortcfg .cfg 64/pkg/tool/linu--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 ErrorFormatting2649483832/001 -buildtags /usr/bin/git -errorsas -ifaceassert -nilfunc git -C /tmp/TestGuardPolicyTrustedUsersCompiledOutput1452823040/001 l /usr/bin/git -json GO111MODULE 64/bin/go /usr/bin/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 -bool -buildtags /usr/bin/git -errorsas -ifaceassert -nilfunc git conf�� runs/20260422-060601-33367/test-2139311499 test@example.com ache/node/24.14.1/x64/bin/node -json o x_amd64/compile gh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv GOPATH GOPROXY /usr/bin/git GOSUMDB GOWORK 64/bin/go git -C /tmp/gh-aw-test-runs/20260422-061333-63631/test-2814512390/.github/workflows rev-parse "warnings":[]}] th .prettierignogit GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmain_branch1431415293/001 /tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmain_branch1431415293/002/work /usr/bin/git GOSUMDB GOWORK 64/bin/go git -C /tmp/gh-aw-test-runs/20260422-061916-90939/test-56420920/.github/workflows (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 7bc40da7efefc5a121d2aae961d6f9eb0baa5878..full-mode-branch 6c416e6e..HEAD $name) { hasDiscussionsEnabled } } ion-test..token-git git /home/REDACTED/noduser.name git rev-�� HEAD 6c416e6e..HEAD it -m (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv 6c416e6e..HEAD --stdout modules/@npmcli/run-script/lib/node-gyp-bin/go ion-test..token-/bin/sh Initial commit k/node_modules/.git commit -m 'Initial commit' git rev-�� HEAD 6c416e6e..HEAD 64/bin/node -m Token option basapi n-dir/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv ithub/workflows config $name) { hasDiscussionsEnabled } } remote.origin.urgcc iles,SysoFiles,C-### $name) { has-x git -C ithub/workflows config x_amd64/asm remote.origin.urgit 6c416e6e..HEAD $name) { has/home/REDACTED/work/gh-aw/gh-aw/.github/workflows x_amd64/asm (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 /tmp/go-build4183520012/b466/_testmain.go /usr/bin/git -json .cfg 64/pkg/tool/linu--show-toplevel git rev-�� --git-dir 64/pkg/tool/linux_amd64/vet /usr/bin/git 3384465/b159/_pkgit GO111MODULE 64/pkg/tool/linu--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 go /usr/bin/git XRj62d7g_ GO111MODULE 64/bin/go git init�� GOMODCACHE rtcfg /usr/bin/git f5683c832978bf18git GO111MODULE 64/bin/go 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 --git-dir go /usr/bin/git aM9JEugn0 GO111MODULE 64/bin/go git init�� GOMODCACHE rtcfg /usr/bin/git 8a4d6322e6ecc3d6git 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, .object.type] | @tsv /tmp/gh-aw-test-runs/20260422-060601-33367/test---workflow config /usr/bin/git remote.origin.urgit -nolocalimports -importcfg git rev-�� --show-toplevel l 64/pkg/tool/linux_amd64/vet -json GO111MODULE x_amd64/compile 64/pkg/tool/linux_amd64/vet (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 git-receive-pack '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmaster_branch761825167/001' git-receive-pack '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmaster_branch761825167/001' /usr/bin/git json' --ignore-pgit GO111MODULE 64/bin/go git rev-�� --show-toplevel (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 origin l e/git json' --ignore-pgit GO111MODULE 64/bin/go e/git -C /tmp/gh-aw-test-runs/20260422-061916-90939/test-3561166487/.github/workflows config /usr/bin/git remote.origin.urgit GO111MODULE 64/bin/go 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 --show-toplevel -tests /usr/bin/git -json GO111MODULE x_amd64/compile git -C /tmp/gh-aw-test-runs/20260422-060601-33367/test-782598533 config /opt/hostedtoolcache/node/24.14.1/x64/bin/node remote.origin.urgit g.go x_amd64/compile node (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 run --auto /usr/bin/git --detach GO111MODULE 64/bin/go git -C /tmp/gh-aw-test-runs/20260422-061333-63631/test-372999805/.github/workflows config /opt/hostedtoolcache/node/24.14.1/x64/bin/node remote.origin.urinfocmp GO111MODULE 64/bin/go node (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 GOPATH GOPROXY /usr/bin/git GOSUMDB GOWORK 64/bin/go git -C /tmp/gh-aw-test-runs/20260422-061916-90939/test-310374338/.github/workflows remote /usr/bin/git th .prettierignoinfocmp GO111MODULE 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 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env 1754380063/.github/workflows 7Ps3/Xuna8G_bMUX3GMM57Ps3 ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE b/gh-aw/pkg/giturev-parse GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE sysrand GOMODCACHE 64/pkg/tool/linux_amd64/vet env 3384465/b225/_pkg_.a REzZ/UVSmm-gThuyfG0BeREzZ ache/go/1.25.8/x64/pkg/tool/linu-lang=go1.25 GOINSECURE ce GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-dwarf=false (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name GOPROXY x_amd64/vet GOSUMDB GOWORK 64/bin/go x_amd64/vet /hom�� (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 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE fips140/sha256 GOMODCACHE 64/pkg/tool/linux_amd64/vet env 1058038423 t2Bi/LbyKJAzlPTfrrG8ct2Bi x_amd64/compile GOINSECURE g/x/net/http2/hprev-parse GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 om/modelcontextp-w 64/pkg/tool/linu-buildmode=exe GOINSECURE fips140/check GOMODCACHE 64/pkg/tool/linu-extld=gcc ortc�� 1145938317 stmain.go util.test GOINSECURE contextprotocol/init GOMODCACHE util.test (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name GO111MODULE ache/go/1.25.8/x64/bin/go GOINSECURE GOMOD GOMODCACHE node /hom�� --check **/*.cjs ache/go/1.25.8/x64/bin/go **/*.json --ignore-path ../../../.pretti--show-toplevel 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 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE fips140/sha3 GOMODCACHE 64/pkg/tool/linux_amd64/vet env 1058038423 Ldjv/q8rDzC5dO2KyVIFwLdjv .cfg GOINSECURE g/x/text/secure//tmp/js-hash-test-3071201485/test-hash.js GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-buildtags (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 om/modelcontextprotocol/go-sdk@v1.5.0/internal/x-ifaceassert 64/pkg/tool/linux_amd64/vet GOINSECURE fips140/aes GOMODCACHE 64/pkg/tool/linux_amd64/vet env 1145938317 qrnP/bIu9B-2Kyy25-yTJqrnP .cfg GOINSECURE contextprotocol/rev-parse GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-trimpath (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name rty ache/go/1.25.8/x64/bin/go GOINSECURE GOMOD GOMODCACHE node ranc�� --check **/*.cjs ache/go/1.25.8/x-test.short=true **/*.json --ignore-path ../../../.pretti--show-toplevel 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 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE hlite 3384465/b013/sym-c 64/pkg/tool/linux_amd64/vet env til.go til_test.go ache/go/1.25.8/x64/pkg/tool/linu-buildmode=exe GOINSECURE g/x/net/http/httrev-parse GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-extld=gcc (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE fips140cache GOMODCACHE Vgol9MA/jtMHmSR1PwQ4sKWnT8ry env 3384465/b237/_pkg_.a bmPh/U3cD-KndS88JWpi-bmPh ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE t/message 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/2/artifacts --jq .artifacts[].name GOPROXY ortcfg.link GOSUMDB GOWORK 64/bin/go kWDUpVqeDQCuWFp6EO/4B9FkggMYmfiKysJJW9S/yz3xaNEuremote /hom�� approach-validator.md scripts/**/*.js 1/x64/bin/node -d /opt/hostedtoolcrev-parse 64/bin/go go (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 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD 3384465/b013/sym--show-toplevel 64/pkg/tool/linux_amd64/vet env 1754380063/.github/workflows 3384465/b013/importcfg ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE t/internal/strinrev-parse GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-buildtags (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE fips140/edwards2rev-parse ache/go/1.25.8/x--show-toplevel 64/pkg/tool/linux_amd64/vet env 3384465/b236/_pkg_.a .cfg ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE osh-tekuri/jsonsrev-parse 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 GOPROXY ache/go/1.25.8/x64/bin/go GOSUMDB GOWORK 64/bin/go node /hom�� api-consumption-report.md scripts/**/*.js .cfg -d ache/go/1.25.8/xrev-parse 64/bin/go go (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 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD 3384465/b007/sym--show-toplevel 64/pkg/tool/linux_amd64/vet ache�� 1754380063/.github/workflows r73k/ZR15bOYtzO_sNGC5r73k 64/pkg/tool/linux_amd64/compile GOINSECURE g/x/net/http/httinit GOMODCACHE 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env 3384465/b235/_pkg_.a aFt_/WeZ-gWqCt5YqbNVEaFt_ ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE osh-tekuri/jsonsrev-parse 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/4/artifacts --jq .artifacts[].name GOPROXY ache/go/1.25.8/x64/bin/go GOSUMDB GOWORK 64/bin/go node /hom�� api-consumption-report.md scripts/**/*.js .cfg -d ache/go/1.25.8/xrev-parse 64/bin/go 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 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env 1754380063 k-ff/hcoMcb4nJlDk1Ubnk-ff ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE /semver GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-buildtags (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE fips140/drbg 3384465/b029/sym--show-toplevel 64/pkg/tool/linux_amd64/vet env 4095811112/custom/workflows NNuM/NZNs7zEf3uyY_7BzNNuM 64/pkg/tool/linux_amd64/vet GOINSECURE th2/internal GOMODCACHE 64/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 GOPROXY ache/go/1.25.8/x64/bin/go GOSUMDB GOWORK 64/bin/go node /hom�� approach-validator.md scripts/**/*.js .cfg -d ache/go/1.25.8/xremote 64/bin/go 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 -c=4 -nolocalimports -importcfg /tmp/go-build4183520012/b423/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/gitutil/gitutil.go /home/REDACTED/work/gh-aw/gh-aw/pkg/gitutil/gitutil_test.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 100 GOMOD GOMODCACHE x_amd64/vet env o actions/setup-cli/install.sh..." GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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 64/pkg/tool/linu-goversion env 3384465/b200/_pk-c=4 O8a-/w8uJjXynBhC-nolocalimports ache/go/1.25.8/x-importcfg GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x/home/REDACTED/work/gh-aw/gh-aw/scripts/lint_error_messages_test.go (http block)
  • https://api.github.com/repos/github/gh-aw/contents/.github/workflows/shared/reporting.md
    • Triggering command: /tmp/go-build4183520012/b404/cli.test /tmp/go-build4183520012/b404/cli.test -test.testlogfile=/tmp/go-build4183520012/b404/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true GOINSECURE GOMOD GOMODCACHE x_amd64/asm env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /tmp/go-build1442968227/b404/cli.test /tmp/go-build1442968227/b404/cli.test -test.testlogfile=/tmp/go-build1442968227/b404/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true GOINSECURE GOMOD GOMODCACHE go env mportMap,TestImpGOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /tmp/go-build3325262366/b404/cli.test /tmp/go-build3325262366/b404/cli.test -test.testlogfile=/tmp/go-build3325262366/b404/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true GOINSECURE GOMOD GOMODCACHE go env 0bb9c5eade785091GOINSECURE GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (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 x_amd64/vet /usr/bin/git 3384465/b196/impgit -trimpath ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /usr/bin/git /tmp/go-build305ls -trimpath ache/go/1.25.8/x/tmp/gh-aw/aw-feature-branch.patch 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 -v node /usr/bin/git --check **/*.cjs ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel go /usr/bin/git 1333-63631/test-ls GO111MODULE /opt/hostedtoolc/tmp/gh-aw/aw-feature-branch.patch 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 WorkflowFiles_SimpleWorkflow2247895800/001 node /usr/bin/git l **/*.cjs ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE /opt/hostedtoolc/tmp/gh-aw/aw-feature-branch.patch 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, .object.type] | @tsv se 3520012/b009/vet.cfg k GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet sRem�� se 3520012/b139/vet.cfg x_amd64/compile -I /tmp/go-build305run -I 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, .object.type] | @tsv ck 'scripts/**/*.js' --ignore-path .prettierignoGOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env 33/001/test-inlined-imports-enabled-with-body-content.md GO111MODULE 64/pkg/tool/linux_amd64/asm GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/asm (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 -json GO111MODULE 64/bin/go GOINSECURE GOMOD erignore go env 3682/001/stability-test.md GO111MODULE ache/go/1.25.8/x64/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, .object.type] | @tsv -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env g_.a GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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 -json GO111MODULE de_modules/.bin/node GOINSECURE GOMOD GOMODCACHE go tion�� 61825167/001 61825167/002/work 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv s/data/action_pi-errorsas GO111MODULE de_modules/.bin/-nilfunc GOINSECURE GOMOD GOMODCACHE go tion�� -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, .object.type] | @tsv -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env g_.a GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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 bin/node GOINSECURE GOMOD GOMODCACHE go 6182�� -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet 8545�� -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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 -json GO111MODULE ache/go/1.25.8/x64/bin/go GOINSECURE GOMOD GOMODCACHE go tion�� -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv ./cmd/gh-aw GO111MODULE tions/setup/node_modules/.bin/noGOMODCACHE GOINSECURE GOMOD GOMODCACHE go tion�� -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, .object.type] | @tsv se 3520012/b013/vet.cfg 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 /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv itbranch_with_hy--detach itbranch_with_hyphen3566523778/002/work 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json n.go 64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env y_with_repos=public_3458746365/001 GO111MODULE ache/go/1.25.8/x64/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 /go-yaml/lexer 3384465/b087/sym--git-dir 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion .prettierignore 3357877/b082/imprev-parse 64/bin/go go env ExpressionCompiledOutput3265477779/001 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 run view 12345 --repo nonexistent/repo --json status,conclusion -- unsafe 64/bin/go go env -json GO111MODULE /opt/hostedtoolcache/go/1.25.8/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (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 x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json age/compact/comp-ifaceassert x_amd64/compile GOINSECURE GOMOD cpu/cpu.s x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo x_amd64/compile GOINSECURE GOMOD GOMODCACHE uVsL8NFDM1C9 env -json age.go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh workflow list --repo owner/repo --json name,path,state .cfg GOINSECURE hpke GOMODCACHE ache/go/1.25.8/xtest@example.com (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 x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json age/common.go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name 597b4e3336ccd9ceGOINSECURE 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 api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name on' --ignore-patGOINSECURE 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/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch 3384465/b237/_pkg_.a bmPh/U3cD-KndS88JWpi-bmPh ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE t/message GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch --pack_header=2,3 -q /usr/bin/git -json GO111MODULE 64/bin/go git -C /tmp/TestGuardPolicyMinIntegrityOnlymin-integrity_with_repos=public_682494627/001 rev-parse /opt/hostedtoolcache/node/24.14.1/x64/bin/node -json GO111MODULE -d node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch v1.0.0 -buildtags /usr/bin/git -errorsas -ifaceassert -nilfunc git -C /tmp/TestGuardPolicyBlockedUsersCommaSeparatedCompiledOutput3113753402/001 s/test.md /opt/hostedtoolcache/node/24.14.1/x64/bin/node remote.origin.urgit GO111MODULE 64/bin/go node (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 git conf�� --local --get ode_modules/.bin/git cal/bin/git git /git git add . git tions/setup/node_modules/.bin/git -M main bin/git git (dns block)
    • Triggering command: /usr/lib/git-core/git-remote-https /usr/lib/git-core/git-remote-https origin https://invalid.example.invalid/nonexistent-repo.git git conf�� --local --get ode_modules/.bin/git 64/bin/git git /git git add . git tions/setup/node_modules/.bin/git -M main bin/git git (dns block)

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

Copilot AI changed the title [WIP] Fix MCP tools to accept undocumented max_tokens parameter Accept deprecated max_tokens for MCP audit/compile and remove conflicting guidance Apr 22, 2026
Copilot AI requested a review from pelikhan April 22, 2026 06:24
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the lgtm label Apr 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Hey @Copilot 👋 — great work on this backward-compatibility fix! Accepting the deprecated max_tokens parameter and cleaning up the contradictory guidance is exactly the kind of targeted, low-risk improvement that keeps the MCP tooling reliable for callers following the documented paths.

The PR is well-structured: focused scope, clear description of the problem and solution, regression tests for both audit and compile, and no new dependencies. This looks ready for maintainer review. ✅

Generated by Contribution Check · ● 1.4M ·

@pelikhan pelikhan marked this pull request as ready for review April 22, 2026 13:19
Copilot AI review requested due to automatic review settings April 22, 2026 13:19
@github-actions github-actions Bot mentioned this pull request Apr 22, 2026
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

Updates the agentic-workflows MCP audit and compile tool schemas to accept the previously documented (but rejected) max_tokens argument as a deprecated no-op, and aligns workflow guidance accordingly.

Changes:

  • Added deprecated max_tokens fields to MCP input schemas for compile and audit (accepted but ignored).
  • Removed max_tokens guidance for audit/compile from daily-cli-tools-tester.md while keeping logs guidance.
  • Added unit tests asserting max_tokens is accepted and not forwarded into subprocess CLI args.
Show a summary per file
File Description
pkg/cli/mcp_tools_readonly.go Adds deprecated max_tokens to the compile tool schema.
pkg/cli/mcp_tools_privileged.go Adds deprecated max_tokens to the audit tool schema.
pkg/cli/mcp_tools_privileged_test.go Adds an audit regression test for accepting/ignoring max_tokens.
pkg/cli/mcp_tools_output_streams_test.go Adds a compile regression test for accepting/ignoring max_tokens.
.github/workflows/daily-cli-tools-tester.md Removes conflicting max_tokens guidance for audit/compile.

Copilot's findings

Tip

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

Comments suppressed due to low confidence (2)

pkg/cli/mcp_tools_privileged_test.go:330

  • result.Content[0] is accessed without first asserting len(result.Content) > 0, which can panic if the tool ever returns an empty content array (e.g., on unexpected handler failure). Add a require.NotEmpty(result.Content) / require.Len check before indexing to make the test robust.
	textContent, ok := result.Content[0].(*mcp.TextContent)
	require.True(t, ok, "expected text content in audit response")
	assert.JSONEq(t, expectedStdout, textContent.Text, "audit tool should return subprocess stdout")

pkg/cli/mcp_tools_privileged_test.go:332

  • The assertion only checks that the captured CLI args don’t contain the literal string max_tokens. If max_tokens were ever accidentally forwarded as a flag, it would more likely appear as --max-tokens, which this test wouldn’t catch. Consider asserting against --max-tokens (and/or --max_tokens) instead of (or in addition to) max_tokens to match how CLI flags would be passed.
	assert.NotContains(t, strings.Join(capturedArgs, " "), "max_tokens", "audit command args should ignore max_tokens")
}
  • Files reviewed: 5/5 changed files
  • Comments generated: 2

Comment on lines +304 to +310
func TestAuditTool_AcceptsDeprecatedMaxTokensParameter(t *testing.T) {
const expectedStdout = `{"overview":{"run_id":"1234567890"}}`

var capturedArgs []string
mockExecCmd := func(ctx context.Context, args ...string) *exec.Cmd {
capturedArgs = slices.Clone(args)
return exec.CommandContext(ctx, "sh", "-c", `printf '%s' "$1"`, "sh", expectedStdout)
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test uses exec.CommandContext(..., "sh", "-c", ...) to mock subprocess output, which makes the unit test shell-dependent. In the same file, other tests avoid Unix-specific commands to stay cross-platform. Consider switching this mock to the existing helper-process pattern (invoke the test binary via os.Args[0] and an env var) so the test runs on Windows too.

This issue also appears in the following locations of the same file:

  • line 328
  • line 331
Suggested change
func TestAuditTool_AcceptsDeprecatedMaxTokensParameter(t *testing.T) {
const expectedStdout = `{"overview":{"run_id":"1234567890"}}`
var capturedArgs []string
mockExecCmd := func(ctx context.Context, args ...string) *exec.Cmd {
capturedArgs = slices.Clone(args)
return exec.CommandContext(ctx, "sh", "-c", `printf '%s' "$1"`, "sh", expectedStdout)
func TestAuditTool_AcceptsDeprecatedMaxTokensParameterHelperProcess(t *testing.T) {
if os.Getenv("GH_AW_AUDIT_MAX_TOKENS_HELPER_PROCESS") != "1" {
return
}
_, _ = fmt.Fprint(os.Stdout, os.Getenv("GH_AW_AUDIT_MAX_TOKENS_HELPER_STDOUT"))
os.Exit(0)
}
func TestAuditTool_AcceptsDeprecatedMaxTokensParameter(t *testing.T) {
const expectedStdout = `{"overview":{"run_id":"1234567890"}}`
var capturedArgs []string
mockExecCmd := func(ctx context.Context, args ...string) *exec.Cmd {
capturedArgs = slices.Clone(args)
cmd := exec.CommandContext(ctx, os.Args[0], "-test.run=TestAuditTool_AcceptsDeprecatedMaxTokensParameterHelperProcess")
cmd.Env = append(
os.Environ(),
"GH_AW_AUDIT_MAX_TOKENS_HELPER_PROCESS=1",
"GH_AW_AUDIT_MAX_TOKENS_HELPER_STDOUT="+expectedStdout,
)
return cmd

Copilot uses AI. Check for mistakes.

output := extractTextResult(t, result)
assert.JSONEq(t, expectedStdout, output, "compile tool should still return subprocess stdout")
assert.NotContains(t, strings.Join(capturedArgs, " "), "max_tokens", "compile command args should ignore max_tokens")
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test asserts the CLI args don’t include max_tokens, but an accidental forwarding would more likely show up as a flag like --max-tokens. Strengthen the assertion to check for the actual flag forms (e.g., --max-tokens) so the test will fail on the intended regression.

Suggested change
assert.NotContains(t, strings.Join(capturedArgs, " "), "max_tokens", "compile command args should ignore max_tokens")
joinedArgs := strings.Join(capturedArgs, " ")
assert.NotContains(t, joinedArgs, "--max-tokens", "compile command args should ignore max_tokens")
assert.NotContains(t, joinedArgs, "--max_tokens", "compile command args should ignore max_tokens")

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

🧪 Test Quality Sentinel Report

Test Quality Score: 80/100

Excellent

Metric Value
New/modified tests analyzed 2
✅ Design tests (behavioral contracts) 2 (100%)
⚠️ Implementation tests (low value) 0 (0%)
Tests with error/edge cases 2 (100%)
Duplicate test clusters 0
Test inflation detected Yes (mechanical — minimal prod diff)
🚨 Coding-guideline violations None

Test Classification Details

View Per-Test Classification
Test File Classification Notes
TestCompileTool_AcceptsDeprecatedMaxTokensParameter pkg/cli/mcp_tools_output_streams_test.go:55 ✅ Design Verifies backward-compat contract: deprecated max_tokens accepted, not forwarded to CLI, output correct
TestAuditTool_AcceptsDeprecatedMaxTokensParameter pkg/cli/mcp_tools_privileged_test.go:304 ✅ Design Same contract for audit tool

Analysis

Both new tests enforce clear behavioral contracts:

  1. The MCP tool must not reject a call that includes max_tokens (backward-compatibility guarantee).
  2. The max_tokens parameter must be silently ignored — it must not be forwarded to the underlying CLI subprocess.
  3. The tool's observable output must be unchanged regardless of whether max_tokens is present.

Each test exercises the exact behavior being introduced by this PR (stripping max_tokens from the tool schema while still accepting it gracefully). They use require.NoError on the parameter-acceptance assertion and assert.NotContains on the captured CLI args — both are behavioral, not structural.

Build tags: Both files correctly have //go:build !integration on line 1. ✅
Assertion messages: All assertions carry descriptive messages. ✅
Mock usage: mockExecCmd is a subprocess/external-I/O stub — a legitimate and accepted pattern in this codebase (replaces exec.Cmd). No mock libraries (gomock, testify/mock) are used. ✅

Test inflation note: The inflation ratio is mechanically triggered (≈29–32 test lines vs. 1 production line changed each), but this reflects that the production fix is intentionally minimal (removing a parameter from the MCP tool schema) while the tests are properly thorough. This is not a quality concern.


Language Support

Tests analyzed:

  • 🐹 Go (*_test.go): 2 tests — unit (//go:build !integration)
  • 🟨 JavaScript (*.test.cjs, *.test.js): 0 tests

Verdict

Check passed. 0% of new tests are implementation tests (threshold: 30%). Both tests enforce behavioral contracts with proper assertions, build tags, and error coverage.


📖 Understanding Test Classifications

Design Tests (High Value) verify what the system does:

  • Assert on observable outputs, return values, or state changes
  • Cover error paths and boundary conditions
  • Would catch a behavioral regression if deleted
  • Remain valid even after internal refactoring

Implementation Tests (Low Value) verify how the system does it:

  • Assert on internal function calls (mocking internals)
  • Only test the happy path with typical inputs
  • Break during legitimate refactoring even when behavior is correct
  • Give false assurance: they pass even when the system is wrong

Goal: Shift toward tests that describe the system's behavioral contract — the promises it makes to its users and collaborators.

References: §24780560461

🧪 Test quality analysis by Test Quality Sentinel · ● 718.5K ·

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Test Quality Sentinel: 80/100. Test quality is excellent — 0% of new tests are implementation tests (threshold: 30%). Both tests enforce clear behavioral contracts with proper build tags, assertion messages, and edge-case coverage.

@pelikhan pelikhan merged commit 527886f into main Apr 22, 2026
116 of 119 checks passed
@pelikhan pelikhan deleted the copilot/fix-mcp-tools-max-tokens-parameter branch April 22, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cli-tools-test] audit and compile MCP tools reject undocumented max_tokens parameter

3 participants