🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(pricing): publish audit memory snapshot changes (#15042)
Hassieb Pakzad7f0c3687580c
diff --git a/.github/workflows/model-price-audit.yml b/.github/workflows/model-price-audit.ymlindex bc7fd8017e..935633f1ce 100644--- a/.github/workflows/model-price-audit.yml+++ b/.github/workflows/model-price-audit.yml@@ -36,6 +36,7 @@ on:options:- disabled- no_changes+ - mock_memory_diff- mock_workflow_diffpermissions:@@ -100,12 +101,12 @@ jobs:ficase "$AUDIT_DRY_RUN_MODE" in- disabled | no_changes | mock_workflow_diff) ;;+ disabled | no_changes | mock_memory_diff | mock_workflow_diff) ;;false)AUDIT_DRY_RUN_MODE="disabled";;*)- echo "::error::dry_run_mode must be one of: disabled, no_changes, mock_workflow_diff"+ echo "::error::dry_run_mode must be one of: disabled, no_changes, mock_memory_diff, mock_workflow_diff"exit 1;;esac@@ -230,7 +231,7 @@ jobs:- Set `priceConfirmed` to `yes` only when an official source fetched during this run confirms the exact current prices. Otherwise set it to `no` and explain why in `comments`.- Set `tieringCorrect` to `yes` only when all applicable price tiers, thresholds, and tier-specific prices are confirmed. Use `not_applicable` only when the provider has no applicable tiering dimension, otherwise use `no` and explain the gap in `comments`.- Put the official evidence URLs used for each model in that row. Comments should capture price units and conversions, tier thresholds, corrections, uncertainty, or why no change was made.- - If there is no diff, set `pullRequestTitle` to an empty string, say that no pricing changes were made, and list notable unresolved findings.+ - Treat every allowed repository edit as a diff, including an audit snapshot written to `model-audit-memory.md` when no model prices changed. If there is no repository diff at all, set `pullRequestTitle` to an empty string, say that no pricing changes were made, and list notable unresolved findings.- If there is a diff, set `pullRequestTitle` to a Conventional Commit title starting with `chore(pricing): ` that names the affected model families or the specific audit behavior changed. Never use a generic title such as `update default model prices`.- If there is a diff, also list every changed model, every workflow or skill-reference improvement, and the validation commands run.claude_args: |@@ -254,6 +255,11 @@ jobs:echoecho "# Dry-run mock diff generated by workflow_dispatch; publish job is skipped."} >> .github/workflows/model-price-audit.yml+ elif [ "$DRY_RUN_MODE" = "mock_memory_diff" ]; then+ {+ echo+ echo "<!-- Dry-run mock audit-memory diff; publish job is skipped. -->"+ } >> .agents/skills/add-model-price/references/model-audit-memory.mdfinode <<'NODE' > "$RUNNER_TEMP/claude-model-price-audit-mock.json"@@ -262,6 +268,8 @@ jobs:summary:mode === "mock_workflow_diff"? "Dry run: skipped Claude and created a mock workflow diff to exercise validation, commit, patch, and artifact upload steps."+ : mode === "mock_memory_diff"+ ? "Dry run: skipped Claude and created a mock audit-memory diff to exercise the memory-table PR path.": "Dry run: skipped Claude and created no repository diff to exercise the no-change path.",auditDate: new Date().toISOString().slice(0, 10),pullRequestTitle:@@ -282,7 +290,12 @@ jobs:},],changedModels: [],- skillReferenceUpdates: [],+ skillReferenceUpdates:+ mode === "mock_memory_diff"+ ? [+ ".agents/skills/add-model-price/references/model-audit-memory.md - created a synthetic memory-only diff with an intentionally empty model title.",+ ]+ : [],workflowUpdates:mode === "mock_workflow_diff"? [@@ -312,9 +325,30 @@ jobs:run: |set -euo pipefail- printf '%s\n' "$STRUCTURED_OUTPUT" > "$RUNNER_TEMP/claude-model-price-audit.json"+ mapfile -t changed_files < <(+ {+ git diff --name-only+ git ls-files --others --exclude-standard+ } | sort -u+ )+ MEMORY_SNAPSHOT_ONLY=false+ if [ "${#changed_files[@]}" -eq 1 ] && [ "${changed_files[0]}" = ".agents/skills/add-model-price/references/model-audit-memory.md" ]; then+ MEMORY_SNAPSHOT_ONLY=true+ fi++ STRUCTURED_OUTPUT_PATH="$RUNNER_TEMP/claude-model-price-audit.json"+ export MEMORY_SNAPSHOT_ONLY STRUCTURED_OUTPUT_PATHnode <<'NODE' | tee "$RUNNER_TEMP/claude-model-price-audit.txt"+ const fs = require("node:fs");const output = JSON.parse(process.env.STRUCTURED_OUTPUT);+ if (+ process.env.MEMORY_SNAPSHOT_ONLY === "true" &&+ output.pullRequestTitle.trim() === ""+ ) {+ output.pullRequestTitle =+ "chore(pricing): record model price audit snapshot";+ }+ fs.writeFileSync(process.env.STRUCTURED_OUTPUT_PATH, JSON.stringify(output));const escapeCell = (value) =>String(value ?? "").replace(/&/g, "&")