Skip to content

Always compile after any workflow .md change to keep .lock.yml in sync#44565

Merged
pelikhan merged 1 commit into
mainfrom
copilot/ensure-instructions-call-compile
Jul 10, 2026
Merged

Always compile after any workflow .md change to keep .lock.yml in sync#44565
pelikhan merged 1 commit into
mainfrom
copilot/ensure-instructions-call-compile

Conversation

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Agents following the update instructions would skip gh aw compile for body-only changes, leaving .lock.yml metadata (e.g. body_hash) stale.

update-agentic-workflow.md

  • Validation Flow: compile after frontmatter changesalways compile after any change to keep .lock.yml in sync
  • First Decision: body-only changes don't require recompile for runtime behavior, but compile must always run to sync metadata
  • Added Final Steps: compile → fix errors → include .lock.yml in PR (mirrors create-agentic-workflow.md)

workflow-editing.md

  • Renamed section: No Recompile NeededNo Recompile Required for Runtime Behavior to preserve the accurate distinction while eliminating the misleading implication that compile can be skipped
  • Added bold rule: "Always run gh aw compile after any change (frontmatter or body) to keep .lock.yml metadata in sync"
  • Editing Rules: After frontmatter changes, review the generated .lock.ymlAfter any change, review the generated .lock.yml

…in sync

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Ensure create/update instructions always call compile to keep .lock.yml in sync Always compile after any workflow .md change to keep .lock.yml in sync Jul 9, 2026
Copilot AI requested a review from pelikhan July 9, 2026 14:33
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

PR Triage - Run 29041860272. Category: docs | Risk: Low | Score: 65/100 | Action: fast_track. DRAFT. Always compile after workflow .md changes to keep .lock.yml in sync (15+/4-, 2 files). Prevents stale lock files — operationally important. Undraft and fast-track after CI.

Generated by 🔧 PR Triage Agent · 78.2 AIC · ⌖ 8.53 AIC · ⊞ 5.4K ·

@github-actions

Copy link
Copy Markdown
Contributor

🤖 PR Triage — Run §29061171191

Field Value
Category docs
Risk 🟢 Low
Score 52/100 (Impact 25 + Urgency 18 + Quality 9)
Action fast_track

Auto-compile after workflow .md changes to keep .lock.yml in sync. DRAFT but high-value — prevents a common developer error. Undraft and fast-track for review.

Generated by 🔧 PR Triage Agent · 155.8 AIC · ⌖ 8.06 AIC · ⊞ 5.4K ·

@pelikhan pelikhan marked this pull request as ready for review July 10, 2026 04:04
Copilot AI review requested due to automatic review settings July 10, 2026 04:04
@pelikhan pelikhan merged commit 2de7b73 into main Jul 10, 2026
@pelikhan pelikhan deleted the copilot/ensure-instructions-call-compile branch July 10, 2026 04:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates gh-aw’s agent-facing workflow editing/update guidance to clarify that even when body-only workflow edits don’t require recompilation for runtime behavior, gh aw compile must still be run to keep generated .lock.yml metadata (e.g., body_hash) in sync.

Changes:

  • Reframed the “no recompile” guidance to explicitly scope it to runtime behavior while adding an explicit “always compile” rule for metadata sync.
  • Updated the update prompt’s validation flow and added final steps to ensure compilation happens and .lock.yml is included in PRs.
Show a summary per file
File Description
.github/aw/workflow-editing.md Clarifies runtime vs metadata implications and adds an “always compile” rule after any change.
.github/aw/update-agentic-workflow.md Updates decision/validation guidance and adds final steps to ensure .lock.yml stays in sync via compilation.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Low

Comment on lines 39 to +42
Body changes take effect on the next run.

**Always run `gh aw compile` after any change** (frontmatter or body) to keep `.lock.yml` metadata in sync.

Comment on lines 98 to 103
## Validation Flow

- always inspect the workflow before editing
- compile after frontmatter changes
- always compile after any change to keep `.lock.yml` in sync
- keep the workflow valid at every step
- summarize what changed and whether recompilation was needed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants