fix: recompile optimizer lock files to match current .md sources#3073
Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses failing “token optimizer” workflows by recompiling their generated .lock.yml files so the embedded frontmatter_hash matches the current .md workflow sources on main, unblocking the activation job hash check.
Changes:
- Recompiled
.github/workflows/copilot-token-optimizer.lock.ymlagainst the current.mdsource (updatedfrontmatter_hashand regenerated compiled content). - Recompiled
.github/workflows/claude-token-optimizer.lock.ymlagainst the current.mdsource (updatedfrontmatter_hashand regenerated compiled content).
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/copilot-token-optimizer.lock.yml | Updates generated lock content (notably frontmatter_hash) to match current copilot-token-optimizer.md. |
| .github/workflows/claude-token-optimizer.lock.yml | Updates generated lock content (notably frontmatter_hash) to match current claude-token-optimizer.md. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
Smoke Test Results
Status: 3/4 PASS (gh CLI unavailable)
|
🤖 Smoke Test Results
Overall: PARTIAL — File I/O passed; GitHub MCP and HTTP tests could not be fully verified due to sandbox credential isolation.
|
Smoke Test: Copilot BYOK (Offline) Mode
Note: Running in BYOK offline mode ( Overall: FAIL — GitHub MCP auth failed; pre-step template variables were not expanded.
|
Recompiled all workflows and found 6 lock files with hashes that don't match their .md source frontmatter: - claude-token-optimizer.lock.yml (skip-if-match removal) - copilot-token-optimizer.lock.yml (skip-if-match removal) - issue-monster.lock.yml (github-script v8→v9 action drop) - secret-digger-codex.lock.yml (frontmatter change) - smoke-chroot.lock.yml (setup-go SHA update) - actions-lock.json (setup-go version update) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
18d4be1 to
f8cae56
Compare
Problem
Both token optimizer workflows fail at the
activationjob with:Root cause: PR #3057 removed
skip-if-matchfrom both.mdfiles, then PR #3071 recompiled all workflows — but #3071's branch was based on main before #3057 merged. The lock files got compiled with the old frontmatter hash, so the hash check fails on the current.mdsources.Fix
Recompile both optimizer lock files against the current
.mdsources on main.