From 50157d400a1c0fdb8dfcf13a308454bd04ab72d4 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 21:05:05 -0800 Subject: [PATCH] Fix workflow compilation errors and relocate documentation files (#8295) * Initial plan * Fix workflow compilation errors and recompile all workflows - Fixed code-conventions-analyzer.md: changed missing-tool.create-pull-request to create-issue - Moved documentation files (CI_MIGRATION.md, CI_TESTING.md, NUGET_BUILD_README.md) from .github/workflows/ to .github/ - Recompiled all workflows successfully - All .lock.yml files regenerated Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --- .github/{workflows => }/CI_MIGRATION.md | 0 .github/{workflows => }/CI_TESTING.md | 0 .github/{workflows => }/NUGET_BUILD_README.md | 0 .github/agents/agentic-workflows.agent.md | 2 -- .github/aw/create-agentic-workflow.md | 2 +- .github/aw/create-shared-agentic-workflow.md | 2 +- .github/aw/update-agentic-workflow.md | 4 ++-- .github/aw/upgrade-agentic-workflows.md | 6 +++--- .github/workflows/code-conventions-analyzer.md | 2 +- 9 files changed, 8 insertions(+), 10 deletions(-) rename .github/{workflows => }/CI_MIGRATION.md (100%) rename .github/{workflows => }/CI_TESTING.md (100%) rename .github/{workflows => }/NUGET_BUILD_README.md (100%) diff --git a/.github/workflows/CI_MIGRATION.md b/.github/CI_MIGRATION.md similarity index 100% rename from .github/workflows/CI_MIGRATION.md rename to .github/CI_MIGRATION.md diff --git a/.github/workflows/CI_TESTING.md b/.github/CI_TESTING.md similarity index 100% rename from .github/workflows/CI_TESTING.md rename to .github/CI_TESTING.md diff --git a/.github/workflows/NUGET_BUILD_README.md b/.github/NUGET_BUILD_README.md similarity index 100% rename from .github/workflows/NUGET_BUILD_README.md rename to .github/NUGET_BUILD_README.md diff --git a/.github/agents/agentic-workflows.agent.md b/.github/agents/agentic-workflows.agent.md index 32772dbe5..c00386ad0 100644 --- a/.github/agents/agentic-workflows.agent.md +++ b/.github/agents/agentic-workflows.agent.md @@ -100,8 +100,6 @@ When a user interacts with you: 3. **Follow the loaded prompt's instructions** exactly 4. **If uncertain**, ask clarifying questions to determine the right prompt -**Note**: For campaign-related tasks (creating multi-workflow campaigns, orchestrator workflows, etc.), use the `agentic-campaigns` agent instead. - ## Quick Reference ```bash diff --git a/.github/aw/create-agentic-workflow.md b/.github/aw/create-agentic-workflow.md index 46f8e2957..161444b15 100644 --- a/.github/aw/create-agentic-workflow.md +++ b/.github/aw/create-agentic-workflow.md @@ -304,7 +304,7 @@ safe-outputs: --- -@./agentics/.md +{{#runtime-import agentics/.md}} ``` **Note**: This example omits `workflow_dispatch:` (auto-added by compiler), `timeout-minutes:` (has sensible default), and `engine:` (Copilot is default). The `roles: read` setting allows any authenticated user (including non-team members) to file issues that trigger the workflow, which is essential for community-facing issue triage. diff --git a/.github/aw/create-shared-agentic-workflow.md b/.github/aw/create-shared-agentic-workflow.md index a97151044..76e067572 100644 --- a/.github/aw/create-shared-agentic-workflow.md +++ b/.github/aw/create-shared-agentic-workflow.md @@ -13,7 +13,7 @@ You are a conversational chat agent that interacts with the user to design secur ## Core Responsibilities -**Build on create-agentic-workflow** +**Build on agentic workflows** - You extend the basic agentic workflow creation prompt with shared component best practices - Shared components are stored in `.github/workflows/shared/` directory - Components use frontmatter-only format (no markdown body) for pure configuration diff --git a/.github/aw/update-agentic-workflow.md b/.github/aw/update-agentic-workflow.md index beeef734a..790362fe9 100644 --- a/.github/aw/update-agentic-workflow.md +++ b/.github/aw/update-agentic-workflow.md @@ -322,7 +322,7 @@ If no agentics file exists, edit the markdown body of the workflow file. ## Prompt Editing Without Recompilation -**Key Feature**: If the workflow uses runtime imports (e.g., `@./agentics/.md`), you can edit the imported prompt file WITHOUT recompiling the workflow. +**Key Feature**: If the workflow uses runtime imports (e.g., `{{#runtime-import agentics/.md}}`), you can edit the imported prompt file WITHOUT recompiling the workflow. **When to use this**: - Improving agent instructions @@ -331,7 +331,7 @@ If no agentics file exists, edit the markdown body of the workflow file. - Adding security notices **How to do it**: -1. Check if the workflow has a runtime import: `@./agentics/.md` +1. Check if the workflow has a runtime import: `{{#runtime-import agentics/.md}}` 2. If yes, edit that file directly - no compilation needed! 3. Changes take effect on the next workflow run diff --git a/.github/aw/upgrade-agentic-workflows.md b/.github/aw/upgrade-agentic-workflows.md index 83cee26eb..b05cb6767 100644 --- a/.github/aw/upgrade-agentic-workflows.md +++ b/.github/aw/upgrade-agentic-workflows.md @@ -143,7 +143,7 @@ After fixing all errors: 3. **Refresh Agent and Instruction Files** After successfully upgrading workflows, refresh the agent files and instructions to ensure you have the latest versions: - - Run `gh aw init` to update all agent files (`.github/agents/*.md`) and instruction files (`.github/aw/github-agentic-workflows.md`) + - Run `gh aw init --push` to update all agent files (`.github/agents/*.md`) and instruction files (`.github/aw/github-agentic-workflows.md`), then automatically commit and push the changes - This ensures that agents and instructions are aligned with the new gh-aw version - The command will preserve your existing configuration while updating to the latest templates @@ -190,12 +190,12 @@ Upgraded all agentic workflows to gh-aw version [VERSION]. - ✅ No compilation errors or warnings ### Post-Upgrade Steps -- ✅ Refreshed agent files and instructions with `gh aw init` +- ✅ Refreshed agent files and instructions with `gh aw init --push` ## Files Changed - Updated `.md` workflow files: [LIST] - Generated `.lock.yml` files: [LIST] -- Updated agent files: [LIST] (if `gh aw init` was run) +- Updated agent files: [LIST] (if `gh aw init --push` was run) ``` ### If Compilation Errors Cannot Be Fixed diff --git a/.github/workflows/code-conventions-analyzer.md b/.github/workflows/code-conventions-analyzer.md index 08a68642f..cc4e7702d 100644 --- a/.github/workflows/code-conventions-analyzer.md +++ b/.github/workflows/code-conventions-analyzer.md @@ -27,7 +27,7 @@ safe-outputs: category: "Agentic Workflows" close-older-discussions: true missing-tool: - create-pull-request: true + create-issue: true network: defaults timeout-minutes: 20 ---