[aw] Contract test: verify context separation has stale lock file
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 62/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, typescript, yaml
研究方向
Start by checking the failed run’s “Check workflow lock file” logs for [hash-debug] lines to identify what caused the mismatch. Then inspect .github/workflows/issue-triage.md and its corresponding lock file, and run gh aw compile --validate to verify the result. Done means the lock file matches the workflow source and validation succeeds.
由索引模型根據 Issue 內容生成。
描述
Workflow Failure
Workflow: Contract test: verify context separation
Branch: main
Run: https://github.com/Azure/apiops-cli/actions/runs/37310082906
[!WARNING]
Lock File Out of Sync: The workflow could not start because its compiled lock file no longer matches the source markdown.
This means the workflow's .md file was edited but gh aw compile was not run afterwards to regenerate the corresponding .lock.yml file. The agent is prevented from running against a stale configuration to avoid unexpected behaviour.
To fix, recompile the workflow:
gh aw compile
Then commit and push the updated .lock.yml file.
More ways to recompile
Using the gh-aw MCP server (if configured):
{ "tool": "compile", "arguments": { "validate": true } }
Recompile all workflows at once:
gh aw compile --all
Verify the result:
gh aw compile --validate
How to investigate the mismatch
The workflow run logs contain a verbose debug pass that shows exactly what was hashed. Search the Check workflow lock file step logs for lines starting with [hash-debug] to see:
- The raw frontmatter text that was used as input
- Any imported files that were included in the hash
- The canonical JSON that was fed to SHA-256
- The resulting hash value
This makes it easy to spot accidental whitespace changes, encoding differences, or import path drift.
This mismatch can also happen on a fresh install (even without any manual edits) if gh aw add <path>@<ref> could not resolve the ref to an exact commit SHA during installation. In that case, rerun the add command with an exact SHA (or retry when API/rate-limit conditions recover), then recompile:
gh aw add <path>@<exact-sha>
gh aw compile
How to disable this check
[!CAUTION]
Disabling this check means the agent can run against an out-of-date compiled workflow. Only disable it if you have an alternative mechanism to keep lock files in sync.
Set stale-check: false in the on: section of your workflow frontmatter:
on:
issues:
types: [opened]
stale-check: false
After editing, recompile the workflow: gh aw compile
Action Required
Assign this issue to an agent to debug and fix the issue.
Debug with any coding agent
Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):
Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md
The failed workflow run is at https://github.com/Azure/apiops-cli/actions/runs/37310082906
Manually invoke the agent
Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.
- Start your agent
- Load the
agentic-workflowsskill from.github/skills/agentic-workflows/SKILL.mdor https://github.com/github/gh-aw/blob/main/.github/skills/agentic-workflows/SKILL.md - Type
debug the agentic workflow issue-triage failure in https://github.com/Azure/apiops-cli/actions/runs/37310082906
[!TIP]
Stop reporting this workflow as a failure
To stop a workflow from creating failure issues, set
report-failure-as-issue: falsein its frontmatter:safe-outputs: report-failure-as-issue: false
Generated from Contract test: verify context separation · ◷
- expires on Oct 12, 2026, 12:31 PM UTC
- 主要語言
- TypeScript
- 星號
- 29
- 分支
- 11
- 平均合併
- 1 天 15 小時
- 30 天內合併 PR
- 15
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Azure/apiops-cli 的其他 Issue
-
type:question
難度 2/5 1-3 小時 新手友好度 76/100
Azure/apiops-cli#277 ·
維護者通常 1 天內回覆
-
stale type:documentation
難度 1/5 1 小時以內 新手友好度 94/100
Azure/apiops-cli#250 · 1 則留言 ·
維護者通常 1 天內回覆
-
Documentation P2 stale
難度 2/5 1-3 小時 新手友好度 70/100
Azure/apiops-cli#24 · 2 則留言 ·
維護者通常 1 天內回覆
-
type:bug
難度 3/5 1-2 天 新手友好度 55/100
Azure/apiops-cli#317 ·
維護者通常 1 天內回覆
-
type:feature
難度 3/5 1-2 天 新手友好度 55/100
Azure/apiops-cli#316 ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
platformatic/mcp#208 ·
維護者通常 1 天內回覆
-
🐛 bug
難度 2/5 1-3 小時 新手友好度 66/100
margelo/react-native-vision-camera#4211 ·
維護者通常 4 天內回覆