Skip to content

feat: add custom model token weights in engine frontmatter#24134

Merged
pelikhan merged 7 commits intomainfrom
copilot/add-custom-model-token-weights
Apr 2, 2026
Merged

feat: add custom model token weights in engine frontmatter#24134
pelikhan merged 7 commits intomainfrom
copilot/add-custom-model-token-weights

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 2, 2026

Summary

Adds support for users to provide custom model token weights in the workflow frontmatter under engine.token-weights. This allows custom model cost information to be used when computing effective token data via gh aw logs and gh aw audit.

Changes

Schema (pkg/parser/schemas/main_workflow_schema.json)

  • Added token-weights property to the engine configuration object schema with multipliers and token-class-weights sub-properties

Workflow parsing (pkg/workflow/engine.go)

  • Added EngineTokenWeights and EngineTokenClassWeights structs
  • Added TokenWeights *EngineTokenWeights field to EngineConfig
  • Added parseEngineTokenWeights helper to extract token-weights from frontmatter

Compilation (pkg/workflow/compiler_yaml.go)

  • Embeds custom token weights in the compiled YAML as GH_AW_INFO_TOKEN_WEIGHTS env var when specified

Runtime (actions/setup/js/generate_aw_info.cjs)

  • Reads GH_AW_INFO_TOKEN_WEIGHTS and writes it to aw_info.json as token_weights

CLI effective token computation (pkg/cli/effective_tokens.go)

  • Added CustomTokenWeights type (used for deserialization from aw_info.json)
  • Added populateEffectiveTokensWithCustomWeights function
  • Added resolveEffectiveWeights helper that merges custom weights with defaults
  • Added computeModelEffectiveTokensWithWeights for direct computation with provided weights

CLI token analysis (pkg/cli/token_usage.go, pkg/cli/logs_models.go)

  • AwInfo now includes TokenWeights *CustomTokenWeights to read from aw_info.json
  • analyzeTokenUsage automatically reads custom weights from aw_info.json in the run directory and applies them

Usage Example

---
engine:
  id: claude
  token-weights:
    multipliers:
      my-custom-model: 2.5      # 2.5x the cost of claude-sonnet-4.5
      experimental-llm: 0.8    # Override an existing model's multiplier
    token-class-weights:
      output: 6.0              # Override output token weight (default: 4.0)
      cached-input: 0.05       # Override cached input weight (default: 0.1)
---

How it works

  1. User specifies engine.token-weights in their .md workflow file
  2. gh aw compile parses the weights and embeds them as GH_AW_INFO_TOKEN_WEIGHTS in the compiled YAML
  3. At runtime, generate_aw_info.cjs reads the env var and writes the weights to aw_info.json
  4. When gh aw logs or gh aw audit analyzes a run, it reads the custom weights from aw_info.json and uses them instead of (or merged with) the built-in model_multipliers.json values

Copilot AI and others added 2 commits April 2, 2026 14:42
- Add `token-weights` field to engine schema (JSON Schema)
- Add `EngineTokenWeights` and `EngineTokenClassWeights` structs to `EngineConfig`
- Parse `token-weights` from frontmatter in `ExtractEngineConfig`
- Embed custom weights in compiled YAML via `GH_AW_INFO_TOKEN_WEIGHTS` env var
- Write token weights to `aw_info.json` in `generate_aw_info.cjs`
- Add `CustomTokenWeights` type and `populateEffectiveTokensWithCustomWeights` in effective_tokens.go
- Auto-read custom weights from `aw_info.json` in `analyzeTokenUsage`
- Add comprehensive tests for all new functionality

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/e8a47829-09aa-429e-b0a5-7b1d0d5c6e7a

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review April 2, 2026 14:55
Copilot AI review requested due to automatic review settings April 2, 2026 14:55
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

Adds support for specifying custom per-model multipliers and per-token-class weights in workflow frontmatter (engine.token-weights) so gh aw logs / gh aw audit can compute “effective tokens” using workflow-specific pricing data.

Changes:

  • Extend workflow engine frontmatter parsing and JSON schema to accept engine.token-weights (multipliers + token-class-weights).
  • Propagate parsed weights into the compiled workflow via GH_AW_INFO_TOKEN_WEIGHTS, then persist them into aw_info.json at runtime.
  • Update CLI effective-token computation and token usage analysis to merge custom weights with built-in defaults, with tests.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/workflow/engine.go Adds structs + parser for engine.token-weights and stores result on EngineConfig.
pkg/workflow/engine_test.go Adds unit tests for token-weights parsing and extraction into EngineConfig.
pkg/workflow/compiler_yaml.go Embeds token weights JSON into generated workflow env (GH_AW_INFO_TOKEN_WEIGHTS).
pkg/parser/schemas/main_workflow_schema.json Adds schema for engine.token-weights with multipliers + token-class-weights.
pkg/cli/token_usage.go Loads token weights from aw_info.json and applies them when computing effective tokens.
pkg/cli/token_usage_test.go Updates tests for new parseTokenUsageFile(..., customWeights) signature.
pkg/cli/logs_models.go Extends AwInfo to deserialize token_weights from aw_info.json.
pkg/cli/effective_tokens.go Adds custom-weight merge + effective-token computation using caller-provided weights.
pkg/cli/effective_tokens_test.go Adds tests for custom-weight merging and effective token computation.
actions/setup/js/generate_aw_info.cjs Reads GH_AW_INFO_TOKEN_WEIGHTS and writes it into aw_info.json as token_weights.

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

// Embed custom token weights when specified in engine.token-weights
if data.EngineConfig != nil && data.EngineConfig.TokenWeights != nil {
if tokenWeightsJSON, err := json.Marshal(data.EngineConfig.TokenWeights); err == nil {
fmt.Fprintf(yaml, " GH_AW_INFO_TOKEN_WEIGHTS: '%s'\n", string(tokenWeightsJSON))
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

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

The JSON string is emitted into YAML as a single-quoted scalar without escaping. If a user provides a model key containing a single quote (e.g. "bob's-model"), the generated workflow YAML becomes invalid. Escape single quotes for YAML (replace ' with '') or use a YAML-safe quoting/encoding helper before writing GH_AW_INFO_TOKEN_WEIGHTS.

Suggested change
fmt.Fprintf(yaml, " GH_AW_INFO_TOKEN_WEIGHTS: '%s'\n", string(tokenWeightsJSON))
escapedTokenWeightsJSON := strings.ReplaceAll(string(tokenWeightsJSON), "'", "''")
fmt.Fprintf(yaml, " GH_AW_INFO_TOKEN_WEIGHTS: '%s'\n", escapedTokenWeightsJSON)

Copilot uses AI. Check for mistakes.
Comment on lines +9159 to +9179
"minimum": 0,
"description": "Weight for input tokens (default: 1.0)"
},
"cached-input": {
"type": "number",
"minimum": 0,
"description": "Weight for cached input tokens (default: 0.1)"
},
"output": {
"type": "number",
"minimum": 0,
"description": "Weight for output tokens (default: 4.0)"
},
"reasoning": {
"type": "number",
"minimum": 0,
"description": "Weight for reasoning tokens (default: 4.0)"
},
"cache-write": {
"type": "number",
"minimum": 0,
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

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

Schema allows token-class-weights values of 0 (minimum: 0), but the implementation treats zero as “unset/use default” (see parseEngineTokenWeights + effective token merging). This makes a user-provided 0 silently ignored. Consider disallowing 0 in the schema (e.g. minimum > 0) or explicitly documenting that 0 is treated as not set / switching the Go structs to pointer fields so an explicit 0 can be distinguished from “missing”.

Suggested change
"minimum": 0,
"description": "Weight for input tokens (default: 1.0)"
},
"cached-input": {
"type": "number",
"minimum": 0,
"description": "Weight for cached input tokens (default: 0.1)"
},
"output": {
"type": "number",
"minimum": 0,
"description": "Weight for output tokens (default: 4.0)"
},
"reasoning": {
"type": "number",
"minimum": 0,
"description": "Weight for reasoning tokens (default: 4.0)"
},
"cache-write": {
"type": "number",
"minimum": 0,
"exclusiveMinimum": 0,
"description": "Weight for input tokens (default: 1.0)"
},
"cached-input": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Weight for cached input tokens (default: 0.1)"
},
"output": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Weight for output tokens (default: 4.0)"
},
"reasoning": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Weight for reasoning tokens (default: 4.0)"
},
"cache-write": {
"type": "number",
"exclusiveMinimum": 0,

Copilot uses AI. Check for mistakes.
@pelikhan
Copy link
Copy Markdown
Collaborator

pelikhan commented Apr 2, 2026

@copilot review comments

…eMinimum in schema

- Escape single quotes in GH_AW_INFO_TOKEN_WEIGHTS value using YAML single-quoted
  scalar convention ('' for ') to prevent YAML parse failures with model keys
  containing single quotes (e.g. "bob's-model")
- Change token-class-weights schema from minimum:0 to exclusiveMinimum:0 so that
  zero weight values are rejected by schema validation, consistent with the
  implementation treating zero as "use default"
- Add test TestTokenWeightsSingleQuoteEscapingInYAML to verify the escaping

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/bc515783-422c-49bf-af85-8b62c099cb73

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

Copilot AI commented Apr 2, 2026

@copilot review comments

Addressed both review comments in d927107:

  1. Single-quote escaping (compiler_yaml.go): Added strings.ReplaceAll(json, "'", "''") before embedding GH_AW_INFO_TOKEN_WEIGHTS in the YAML single-quoted scalar, plus a regression test TestTokenWeightsSingleQuoteEscapingInYAML.

  2. Schema zero-value (main_workflow_schema.json): Changed all five token-class-weights properties from "minimum": 0 to "exclusiveMinimum": 0, aligning schema validation with the implementation where a zero value means "use default".

@pelikhan
Copy link
Copy Markdown
Collaborator

pelikhan commented Apr 2, 2026

@copilot reuse types to represent model usage data. Ensure data can be imported from shared agentic workflows.

…across packages

- Create pkg/types/token_weights.go with shared TokenWeights and TokenClassWeights types
- Remove duplicate EngineTokenWeights/EngineTokenClassWeights from pkg/workflow/engine.go
- Remove duplicate CustomTokenWeights/customTokenClassWeights from pkg/cli/effective_tokens.go
- Update pkg/workflow/engine.go, compiler_yaml.go, engine_test.go to use types.TokenWeights
- Update pkg/cli/effective_tokens.go, logs_models.go, token_usage.go,
  effective_tokens_test.go to use types.TokenWeights

Follows the same pattern as pkg/types.BaseMCPServerConfig which is shared between
pkg/parser and pkg/workflow.

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/615a693d-9408-4a21-9496-66073a045646

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

Copilot AI commented Apr 2, 2026

@copilot reuse types to represent model usage data. Ensure data can be imported from shared agentic workflows.

Done in 56a2b4c. The duplicate EngineTokenWeights/EngineTokenClassWeights (in pkg/workflow) and CustomTokenWeights/customTokenClassWeights (in pkg/cli) have been consolidated into a single types.TokenWeights / types.TokenClassWeights in pkg/types/token_weights.go — following the same pattern as types.BaseMCPServerConfig. Both pkg/workflow and pkg/cli now import and use the shared types, so any shared agentic workflow that embeds token-weights data in aw_info.json uses the same type definition end-to-end.

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 6291555/b292/vetrev-parse 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/link /usr/bin/git ger.test /tmp/go-build208rev-parse ortcfg.link git (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw git /usr/bin/git git rev-�� --git-dir git /usr/bin/git --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/orgs/test-owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name ath ../../../.pr**/*.json (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name --show-toplevel /bin/sh /usr/bin/git echo &#34;��� JSON fgit tstrap.go ipts.test git rev-�� --show-toplevel ipts.test /usr/bin/git ErrorFormatting4git master /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha --show-toplevel 64/pkg/tool/linuremote.origin.url /usr/bin/git th .prettierignogit k/gh-aw/gh-aw/pkrev-parse 64/pkg/tool/linu--show-toplevel git init�� (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha --show-toplevel git e/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git e/git rev-�� --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha ithub/workflows/archie.md -buildtags ache/node/24.14.1/x64/bin/node -errorsas -ifaceassert -nilfunc /usr/lib/git-core/git t-40�� sistency_InlinedImports2496194236/001/inlined-b.md --revs /usr/bin/git --thin --delta-base-offrev-parse -q git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha --show-toplevel resolved$ /usr/bin/git --show-toplevel ceutil.test /usr/bin/git git rev-�� runs/20260402-152931-18852/test-1089615037/.github/workflows git /usr/lib/git-core/git-receive-pack --show-toplevel e/git /usr/bin/git git-receive-pack (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 ithub/workflows 6291555/b256/vet.cfg x_amd64/compile /home/REDACTED/wornode /home/REDACTED/wor/tmp/js-hash-test-3337693170/test-hash.js /home/REDACTED/wor/home/REDACTED/work/gh-aw/gh-aw/.github/workflows/auto-triage-issues.md x_amd64/compile --no�� g_.a /home/REDACTED/work/gh-aw/gh-aw/pkgithub.com/github/gh-aw/scripts ache/uv/0.11.3/x86_64/sh nore (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel kflow.test /usr/bin/git se 6291555/b020/vetrev-parse ode git rev-�� --show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git --noprofile /home/REDACTED/worrev-parse de_modules/.bin/--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel /opt/hostedtoolcowner=github /usr/bin/git ithub/workflows /tmp/go-build208rev-parse ache/go/1.25.0/x--show-toplevel git rev-�� --show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/link /usr/bin/git 6053854/b417/loggit format:cjs 6053854/b417/imp--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 k/gh-aw/gh-aw/.github/workflows/blog-auditor.md -tests /usr/bin/git g/cli/codemod_plgit g/cli/codemod_nerev-parse 64/pkg/tool/linu--show-toplevel git conf�� --get remote.origin.url /usr/bin/git on&#39; --ignore-patgit .cfg es/.bin/node git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha /tmp/TestHashStability_SameInputSameOutput2399450291/001/stability-test.md x_amd64/vet /usr/bin/git get .cfg 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git on&#39; --ignore-patgit user.email 64/pkg/tool/linu--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha --show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linu--jq /usr/bin/git 2828-13675/test-git -buildtags k/gh-aw/gh-aw/ac--show-toplevel git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git -bool on tutil.test 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 -dirty&#34; -o gh-awcmd/gh-aw/capitalization_test.go ow_validation.gocmd/gh-aw/command_groups_test.go x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha g/cli/compile_watch.go g/cli/devcontainer.go /sh g/cli/compile_cogcc g/cli/mcp_inspec-### g/cli/resolver_t-x x_amd64/vet g/cl�� js/**/*.json&#39; --- g/cli/codemod_network_firewall.g-ifaceassert 64/pkg/tool/linux_amd64/vet credential.helpe/usr/lib/git-core/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha (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 /tmp/file-tracker-test4095831814/existing.md x_amd64/compile /usr/bin/git g_.a g/cli/codemod_nerev-parse 64/pkg/tool/linu--show-toplevel git remo�� add origin /usr/bin/git on&#39; --ignore-patgit .cfg 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 /tmp/gh-aw-test-runs/20260402-152931-18852/test-1908802653/.github/workflows config /usr/bin/git remote.origin.urgit ache/go/1.25.0/xrev-parse /usr/bin/git git -C /tmp/compile-instructions-test-4163002275/.github/workflows config /usr/bin/git remote.origin.urgit git /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha g/cli/resolver_t--pack_header=2,3 x_amd64/vet /usr/bin/git g_.a g/cli/codemod_nerev-parse 64/pkg/tool/linu--show-toplevel git conf�� --get remote.origin.url /usr/bin/git on&#39; --ignore-patgit .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 /tmp/gh-aw-test-runs/20260402-152931-18852/test-1908802653/.github/workflows config /usr/bin/git remote.origin.urgit ch /usr/bin/git git -C /tmp/compile-instructions-test-4163002275/.github/workflows rev-parse /usr/bin/git --show-toplevel git /usr/bin/git git (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 -bool -buildtags /usr/bin/git -errorsas -ifaceassert -nilfunc git chec�� .github/workflows/test.md -tests 6053854/b453/vet.cfg on&#39; --ignore-patgit .cfg 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 --show-toplevel git /usr/bin/git --show-toplevel ache/go/1.25.0/xrev-parse ch git rev-�� --show-toplevel l /usr/bin/git /v0.47.4 git /usr/bin/git 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 licyMinIntegrityOnlymin-integrity_with_repos=public_3908843333/001 scripts/**/*.js /opt/hostedtoolcache/node/24.14.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/n--show-toplevel .prettierignore --log-level=errorev-parse ****** node /hom�� --write ../../../**/*.json 64/pkg/tool/linux_amd64/vet --ignore-path ../../../.prettirev-parse dof$ 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 --show-toplevel git /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git rev-�� &#39;/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitcustom_branch523352053/001&#39; &#39;/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitcustom_branch523352053/001&#39; /usr/bin/git --show-toplevel 64/pkg/tool/linurev-parse /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq .object.sha --show-toplevel (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 2828-13675/test-3080225742 --ignore-path /home/node_modules/.bin/node l (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq .object.sha 2931-18852/test-1538680123/.github/workflows git e/git-upload-pack --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git faul�� --show-toplevel git /usr/bin/git lcache -maxdepthgit ortcfg /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 git /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git rev-�� 2931-18852/test-740428979/custom/workflows git /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 git /usr/bin/git --show-toplevel Fj/loOf-cgjR6MKzrev-parse /usr/bin/git git rev-�� /ref/tags/v8 &#39;/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitbranch_with_hyphen1039104509/001&#39; /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 git e/git-receive-pack --show-toplevel lag_test.go /usr/bin/git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 git /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel 64/pkg/tool/linurev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 git /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git rev-�� 2931-18852/test-740428979/custom/workflows git /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 --jq /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git rev-�� /ref/tags/v8 git /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 git /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path ath ../../../.pr**/*.json (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 (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 (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 ache/go/1.25.0/x-tests /usr/bin/git mLsRemoteWithReagit mLsRemoteWithRearev-parse n-dir/sh git rev-�� --show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git 24436360.go 6291555/b243/vetfetch 64/pkg/tool/linuorigin git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq .object.sha user.email test@example.com /usr/bin/git --show-toplevel git /usr/bin/git git -C /tmp/shared-actions-test2876777460 rev-parse /usr/bin/git --show-toplevel ache/node/24.14.show-ref /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha se 6291555/b021/vet.cfg tions/setup/node_modules/.bin/node /home/REDACTED/worgit /home/REDACTED/worrev-parse /home/REDACTED/wor--git-dir ache/go/1.25.0/x64/pkg/tool/linurev-parse tion�� se 6291555/b151/vet.cfg ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /home/REDACTED/worgit /home/REDACTED/worrev-parse /home/REDACTED/wor--show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha --show-toplevel sh /usr/bin/git 2828-13675/test-git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git git rev-�� --show-toplevel git /usr/bin/docker --show-toplevel git /usr/bin/git docker (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 g/cli/compile_watch.go g/cli/devcontainer.go x_amd64/vet g/cli/compile_co/bin/sh g/cli/mcp_inspec-c g/cli/resolver_tgit-receive-pack &#39;/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmaster_branch1486382577/001&#39; x_amd64/vet g/cl�� g/cli/codemod_playwright_domains**/*.ts g/cli/codemod_network_firewall.g**/*.json 64/pkg/tool/linux_amd64/vet committer.email (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq .object.sha 40\} ster.patch /opt/hostedtoolcache/go/1.25.0/x64/bin/node /tmp/go-build100git -trimpath /usr/bin/git 4 -type d -nameconfig /opt�� ub/workflows --package-lock-only /usr/bin/git test.txt -dwarf=false /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha lassWeights g/workflow/engine_test.go x_amd64/vet g/cli/compile_co/opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/compile g/cli/mcp_inspec-o g/cli/resolver_t/tmp/go-build1006053854/b420/_pkg_.a x_amd64/vet g/cl�� g_.a g/cli/codemod_nemain 64/pkg/tool/linu-lang=go1.25 gpg.program util (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha js/**/*.json&#39; --ignore-path ../../../.prettierignore --get 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 js/**/*.json&#39; ---p g/cli/codemod_negithub.com/github/gh-aw/tmp 64/pkg/tool/linu-lang=go1.25 credential.helpe/bin/sh (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 --local --get x_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq .object.sha --show-toplevel node re-branch /tmp/TestHashCongit l /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git /tmp/gh-aw-test-git rev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/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 se 6291555/b028/vet.cfg de_modules/.bin/node /home/REDACTED/worgit /home/REDACTED/worrev-parse /home/REDACTED/wor--show-toplevel ache/go/1.25.0/x64/pkg/tool/linu--jq tion�� se 6291555/b152/vet.cfg tions/setup/js/node_modules/.bin/sh /home/REDACTED/worgit /home/REDACTED/worinit /home/REDACTED/work/gh-aw/gh-aw/pk-test.paniconexit0 ache/go/1.25.0/x64/pkg/tool/linu-test.v=true (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq /usr/bin/git 2828-13675/test-git --ignore-path /home/node_modul--show-toplevel git rev-�� --show-toplevel node /usr/bin/git --write ../../../**/*.jsrev-parse ache/node/24.14.--show-toplevel git (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion /home/REDACTED/wor/tmp/go-build1006053854/b454/scripts.test /home/REDACTED/wor-test.testlogfile=/tmp/go-build1006053854/b454/testlog.txt /home/REDACTED/wor-test.paniconexit0 64/pkg/tool/linu-test.v=true -V=f�� /home/REDACTED/wor-test.timeout=10m0s /home/REDACTED/wor-test.run=^Test ache/node/24.14.-test.short=true nore (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion --show-toplevel ortcfg /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel bash /usr/bin/git git (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo /usr/bin/git 2v6w/-vAgMhfKmVqiptables -trimpath /usr/bin/git git rev-�� --show-toplevel 6053854/b426/imp-d /usr/bin/git k/gh-aw/gh-aw/pkgit-upload-pack k/gh-aw/gh-aw/pk/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmaster_branch2408284069/001 /usr/bin/infocmp-m git (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo /usr/bin/git -test.paniconexibash -test.v=true /usr/bin/gh git rev-�� --show-toplevel gh /usr/bin/git list --json /usr/bin/git git (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: /tmp/go-build1006053854/b396/cli.test /tmp/go-build1006053854/b396/cli.test -test.testlogfile=/tmp/go-build1006053854/b396/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true (http block)
    • Triggering command: /tmp/go-build2355703888/b374/cli.test /tmp/go-build2355703888/b374/cli.test -test.paniconexit0 -test.timeout=10m0s -test.count=1 1/x6�� --show-toplevel node /usr/bin/git O_ks/4P_PQrc1qOlgit **/*.cjs /node_modules/.b--show-toplevel git rev-�� --show-toplevel sh /usr/bin/git &#34;prettier&#34; --wrigit 6053854/b411/_terev-parse ache/go/1.25.0/x--show-toplevel git (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name 21368593/001&#39; 21368593/001&#39; x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name --show-toplevel rk /usr/bin/git --write ../../../**/*.jsrev-parse /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git origin main e/git git (http block)
  • https://api.github.com/repos/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch --show-toplevel git /usr/bin/git --show-toplevel git /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git licyBlockedUsersnode git /bin/sh git (http block)

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

@pelikhan pelikhan merged commit c6b4bf9 into main Apr 2, 2026
56 checks passed
@pelikhan pelikhan deleted the copilot/add-custom-model-token-weights branch April 2, 2026 15:48
Copilot stopped work on behalf of pelikhan due to an error April 2, 2026 16:04
github-actions bot added a commit that referenced this pull request Apr 2, 2026
- Add engine.token-weights reference section to engines.md (PR #24134)
- Update frontmatter-full.md with token-weights schema and fix memory
  default (documents 6g default, closes #23950)
- Add new audit.md reference page for gh aw audit/diff/report (closes #23957)
- Add audit diff/report cross-references to debugging.md and cost-management.md
- Quick Start: define frontmatter on first use, clarify COPILOT_GITHUB_TOKEN
  distinction from GITHUB_TOKEN (from issue #24115)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

3 participants