[aw] Contract test: verify context separation has stale lock file
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 62/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github-actions, typescript, yaml
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 29
- Forks
- 11
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 15
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Azure/apiops-cli
-
type:question
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Azure/apiops-cli#277 ·
Maintainer antworten meist innerhalb von 1 Tag
-
stale type:documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 94/100
Azure/apiops-cli#250 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Documentation P2 stale
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Azure/apiops-cli#24 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
type:bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
Azure/apiops-cli#317 ·
Maintainer antworten meist innerhalb von 1 Tag
-
type:feature
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
Azure/apiops-cli#316 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in Azure/apiops-cli
Ähnliche Issues
-
bot:ai-assisted status:untriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
midnightntwrk/midnight-js#1424 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
mksglu/context-mode#1268 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
Edit:Offencheck:failed streams:edit
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 60/100
iptv-org/iptv#54352 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Table] reserveSelectedRowOnPaginate=false 时表头全选包含其他页数据Evtl. vergeben @dvd233 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Tencent/tdesign-react#4416 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:widget bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
interledger/publisher-tools#894 ·
Maintainer antworten meist innerhalb von 1 Tag