Skip to content

Commit c44e8a5

Browse files
authored
Remove dollar-denominated cost references from agentic-ops workflows and docs
2 parents 55d918b + 8587d92 commit c44e8a5

9 files changed

Lines changed: 65 additions & 81 deletions

.github/workflows/agentic-token-audit.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ You are the Agentic Workflow Token Auditor — a workflow that tracks daily toke
7979

8080
1. Parse the pre-downloaded agentic workflow logs and compute per-workflow token usage metrics.
8181
2. Persist today's snapshot to repo-memory so the optimizer (and future runs of this audit) can read historical data.
82-
3. Publish a concise audit issue summarizing today's usage, trends, and cost highlights.
82+
3. Publish a concise audit issue summarizing today's usage and trend highlights.
8383

8484
## Data Sources
8585

@@ -89,7 +89,7 @@ The workflow logs are at `/tmp/gh-aw/token-audit/workflow-logs.json`. The file i
8989

9090
```json
9191
{
92-
"summary": { "total_runs": N, "total_tokens": N, "total_cost": F, ... },
92+
"summary": { "total_runs": N, "total_tokens": N, ... },
9393
"runs": [ ... ],
9494
"tool_usage": [ ... ],
9595
"mcp_tool_usage": { ... },
@@ -104,8 +104,7 @@ Each element of `.runs` is a `RunData` object with (among others):
104104
| `workflow_name` | string | Human-readable name |
105105
| `workflow_path` | string | `.github/workflows/....lock.yml` |
106106
| `token_usage` | int | Total tokens (`omitempty` — treat missing/null as 0) |
107-
| `effective_tokens` | int | Cost-normalized tokens |
108-
| `estimated_cost` | float | USD cost (`omitempty` — treat missing/null as 0) |
107+
| `effective_tokens` | int | Normalized token metric |
109108
| `action_minutes` | float | Billable GitHub Actions minutes |
110109
| `turns` | int | Number of agent turns |
111110
| `duration` | string | Human-readable duration |
@@ -129,8 +128,8 @@ Write a Python script to `/tmp/gh-aw/token-audit/process_audit.py` and run it. T
129128
1. Load `/tmp/gh-aw/token-audit/workflow-logs.json` and extract `.runs`.
130129
2. Filter to `status == "completed"` runs only.
131130
3. Group by `workflow_name` and compute per-workflow aggregates:
132-
- `run_count`, `total_tokens`, `avg_tokens`, `total_cost`, `avg_cost`, `total_turns`, `avg_turns`, `total_action_minutes`, `error_count`, `warning_count`
133-
4. Compute an overall summary: total runs, total tokens, total cost, total action minutes.
131+
- `run_count`, `total_tokens`, `avg_tokens`, `total_turns`, `avg_turns`, `total_action_minutes`, `error_count`, `warning_count`
132+
4. Compute an overall summary: total runs, total tokens, total action minutes.
134133
5. Sort workflows descending by `total_tokens`.
135134
6. Save the result to `/tmp/gh-aw/token-audit/audit_snapshot.json` with this shape:
136135

@@ -141,7 +140,6 @@ Write a Python script to `/tmp/gh-aw/token-audit/process_audit.py` and run it. T
141140
"overall": {
142141
"total_runs": N,
143142
"total_tokens": N,
144-
"total_cost": F,
145143
"total_action_minutes": F
146144
},
147145
"workflows": [
@@ -150,8 +148,6 @@ Write a Python script to `/tmp/gh-aw/token-audit/process_audit.py` and run it. T
150148
"run_count": N,
151149
"total_tokens": N,
152150
"avg_tokens": N,
153-
"total_cost": F,
154-
"avg_cost": F,
155151
"total_turns": N,
156152
"avg_turns": F,
157153
"total_action_minutes": F,
@@ -163,15 +159,15 @@ Write a Python script to `/tmp/gh-aw/token-audit/process_audit.py` and run it. T
163159
}
164160
```
165161

166-
Handle null/missing `token_usage` and `estimated_cost` by treating them as 0.
162+
Handle null/missing `token_usage` by treating them as 0.
167163

168164
## Phase 2 — Persist Snapshot to Repo-Memory
169165

170166
1. Read the snapshot from `/tmp/gh-aw/token-audit/audit_snapshot.json`.
171167
2. Copy it to `/tmp/gh-aw/repo-memory/default/YYYY-MM-DD.json` (today's UTC date).
172168
3. This file is what the optimizer workflow reads to identify high-usage workflows.
173169

174-
Also maintain a rolling summary file at `/tmp/gh-aw/repo-memory/default/rolling-summary.json` that contains an array of daily overall totals (date, total_tokens, total_cost, total_runs, total_action_minutes) for the last 90 entries. Load the existing file, append today's entry, trim to 90, and save.
170+
Also maintain a rolling summary file at `/tmp/gh-aw/repo-memory/default/rolling-summary.json` that contains an array of daily overall totals (date, total_tokens, total_runs, total_action_minutes) for the last 90 entries. Load the existing file, append today's entry, trim to 90, and save.
175171

176172
Do not append a synthetic zero-valued entry to `rolling-summary.json` when either of these conditions is true:
177173

@@ -218,15 +214,14 @@ Create an issue with these sections:
218214
- **Period**: last 24 hours (YYYY-MM-DD to YYYY-MM-DD)
219215
- **Total runs**: N
220216
- **Total tokens**: N (formatted with commas)
221-
- **Total cost**: $X.XX
222217
- **Total Actions minutes**: X.X min
223218
- **Active workflows**: N
224219
225220
### 🏆 Top 5 Workflows by Token Usage
226221
227-
| Workflow | Runs | Total Tokens | Avg Tokens | Total Cost | Avg Cost |
228-
|---|---|---|---|---|---|
229-
| ... | ... | ... | ... | ... | ... |
222+
| Workflow | Runs | Total Tokens | Avg Tokens |
223+
|---|---|---|---|
224+
| ... | ... | ... | ... |
230225
231226
### 📈 Trends
232227
@@ -236,7 +231,7 @@ Embed chart images using uploaded asset URLs when available:
236231
237232
![Historical Token Trend](UPLOAD_URL_TREND_PLACEHOLDER)
238233
239-
Summarize token and cost changes from `rolling-summary.json` when historical data is available.
234+
Summarize token changes from `rolling-summary.json` when historical data is available.
240235
241236
<details>
242237
<summary><b>Full Per-Workflow Breakdown</b></summary>

.github/workflows/agentic-token-optimizer.lock.yml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/agentic-token-optimizer.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ steps:
7272
| {
7373
workflow_name: .workflow_name,
7474
tokens: (.token_usage // 0),
75-
cost: (.estimated_cost // 0),
7675
turns: (.turns // 0),
7776
action_minutes: (.action_minutes // 0)
7877
}
@@ -83,7 +82,6 @@ steps:
8382
run_count: length,
8483
total_tokens: (map(.tokens) | add),
8584
avg_tokens: ((map(.tokens) | add) / length),
86-
total_cost: (map(.cost) | add),
8785
total_turns: (map(.turns) | add),
8886
total_action_minutes: (map(.action_minutes) | add)
8987
})
@@ -111,7 +109,7 @@ steps:
111109

112110
# Agentic Workflow Token Usage Optimizer
113111

114-
You are the Agentic Workflow Token Optimizer. Pick one high-cost workflow, audit recent runs, and create a conservative optimization issue with measurable savings. Your recommendations may include prompt, tool, reliability, setup-prefix, and inline sub-agent improvements when the evidence supports them.
112+
You are the Agentic Workflow Token Optimizer. Pick one high-token workflow, audit recent runs, and create a conservative optimization issue with measurable improvements. Your recommendations may include prompt, tool, reliability, setup-prefix, and inline sub-agent improvements when the evidence supports them.
115113

116114
## Objectives
117115

@@ -154,7 +152,7 @@ Prefer `--jq` on `gh api` calls over a separate `| jq` step when the filter is s
154152
- `/tmp/gh-aw/repo-memory/default/YYYY-MM-DD.json`: daily audit snapshots.
155153
- `/tmp/gh-aw/repo-memory/default/optimization-log.json`: prior optimizations (if present).
156154

157-
Treat missing numeric fields (`token_usage`, `estimated_cost`, `turns`, `action_minutes`) as `0`.
155+
Treat missing numeric fields (`token_usage`, `turns`, `action_minutes`) as `0`.
158156

159157
## Phase 1 — Select Target
160158

@@ -168,7 +166,6 @@ Then collect run-level data for the selected workflow:
168166

169167
- run count
170168
- total and average tokens
171-
- total and average cost
172169
- total and average turns
173170
- conclusions/error patterns
174171

@@ -282,7 +279,7 @@ Create one issue with:
282279

283280
- **Target workflow + reason selected**
284281
- **Analysis period + runs analyzed**
285-
- **Token profile table** (total tokens, avg tokens/run, total cost, avg turns/run, cache efficiency)
282+
- **Token profile table** (total tokens, avg tokens/run, avg turns/run, cache efficiency)
286283
- **Ranked recommendations** with:
287284
- title
288285
- estimated token savings per run

.github/workflows/agentics-maintenance.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
await main();
175175
176176
- name: Install gh-aw
177-
uses: github/gh-aw-actions/setup-cli@bc56a0cad2f450c562810785ef38649c04db812a # v0.72.1
177+
uses: github/gh-aw-actions/setup-cli@v0.72.1
178178
with:
179179
version: v0.72.1
180180

@@ -309,7 +309,7 @@ jobs:
309309
await main();
310310
311311
- name: Install gh-aw
312-
uses: github/gh-aw-actions/setup-cli@bc56a0cad2f450c562810785ef38649c04db812a # v0.72.1
312+
uses: github/gh-aw-actions/setup-cli@v0.72.1
313313
with:
314314
version: v0.72.1
315315

@@ -355,7 +355,7 @@ jobs:
355355
await main();
356356
357357
- name: Install gh-aw
358-
uses: github/gh-aw-actions/setup-cli@bc56a0cad2f450c562810785ef38649c04db812a # v0.72.1
358+
uses: github/gh-aw-actions/setup-cli@v0.72.1
359359
with:
360360
version: v0.72.1
361361

@@ -489,7 +489,7 @@ jobs:
489489
await main();
490490
491491
- name: Install gh-aw
492-
uses: github/gh-aw-actions/setup-cli@bc56a0cad2f450c562810785ef38649c04db812a # v0.72.1
492+
uses: github/gh-aw-actions/setup-cli@v0.72.1
493493
with:
494494
version: v0.72.1
495495

.github/workflows/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ The notes must be user-facing:
209209
Selection rubric for whether a change belongs in the release notes or changelog:
210210

211211
- include it when a user would notice it by using the workflow, reading its issue/report output, configuring it, upgrading it, or debugging it
212-
- include it when it changes expectations around compatibility, migration, deprecation, stability, security, or operating cost
212+
- include it when it changes expectations around compatibility, migration, deprecation, stability, security, or operating overhead
213213
- omit it when it only affects how the repository is built, tested, compiled, organized, or maintained internally
214214
- omit it when it is merely a prerequisite for other work and has no standalone user-facing effect
215215
- collapse related low-level changes into one user-facing outcome when they support the same improvement

0 commit comments

Comments
 (0)