[aw] AI Moderator: has stale lock file
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 82/100
Research direction
Read .github/workflows/ai-moderator.md and inspect the linked run’s “Check workflow lock file” logs for [hash-debug] details. Run gh aw compile to regenerate the compiled lock file, then validate with gh aw compile --validate. Done when the lock file matches the workflow source and validation succeeds.
Written by the indexing model from the issue text.
Description
What happened
AI Moderator has stale lock file.
View run #42080745147 · Workflow source · Previous failures
Branch: main
Next step
Review the failure details below for a targeted fix, or assign this issue to a coding agent to investigate.
Failure details
[!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
Copy a debugging prompt
Paste this into your coding agent:
Debug the agentic workflow "ai-moderator" failure.
Follow https://raw.githubusercontent.com/github/gh-aw/main/debug.md
Failed run: https://github.com/github/gh-aw/actions/runs/42080745147
If the repository includes the agentic-workflows skill, load it before investigating.
Manage failure notifications
To stop creating failure issues for this workflow, set this in its frontmatter and recompile:
safe-outputs:
report-failure-as-issue: false
This only disables issue reporting; it does not fix the failure.
Generated from AI Moderator · ◷
- expires on Nov 6, 2026, 6:09 AM UTC
- Dominant language
- Go
- Stars
- 5.6k
- Forks
- 615
- Avg merge
- 5h 36m
- Merged PRs (30d)
- 805
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/gh-aw
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
automation cli cookie documentation
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
automation cookie documentation
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
automation observability optimization traces
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
cookie improvement refactoring shared-component
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
Similar issues
-
Logging into a locally started instance clears its container reference, causing stop to do nothingOpen
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
microcks/microcks-cli#620 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
teradata-labs/loom#574 ·
Maintainers usually reply within 1 day
-
cli: name the CRID when saved link limits fail after publish; soften plain-republish mint warningOpenenhancement pr-polish-followup priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
layervai/qurl-integrations#1994 ·
Maintainers usually reply within 1 day
-
bug needs-acceptance wg/router-models-inference-runtime
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vllm-project/semantic-router#5891 ·
Maintainers usually reply within 1 day
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day