feat: add agentic workflows for CI doctor, doc updater, and code simplifier#18
Open
digitarald wants to merge 3 commits intomainfrom
Open
feat: add agentic workflows for CI doctor, doc updater, and code simplifier#18digitarald wants to merge 3 commits intomainfrom
digitarald wants to merge 3 commits intomainfrom
Conversation
…lifier Add three GitHub Agentic Workflows (gh-aw): - ci-doctor: Investigates CI failures, creates diagnostic issues - daily-doc-updater: Scans merged PRs daily, updates documentation - code-simplifier: Analyzes recently modified code, proposes simplifications All workflows use strict mode, scoped safe-outputs, tightened bash allowlists, and skip-if-match to prevent stacking open PRs.
There was a problem hiding this comment.
Pull request overview
Adds GitHub Agentic Workflows (gh-aw) to automate routine repository maintenance for @microsoft/agentrc (TypeScript CLI + VS Code extension), including CI-failure triage, daily documentation updates, and automated code simplification PRs.
Changes:
- Adds 3 agentic workflow source definitions (
.md) for CI Doctor, Daily Doc Updater, and Code Simplifier. - Adds the corresponding compiled GitHub Actions workflows (
*.lock.yml) plus the gh-aw maintenance workflow. - Adds gh-aw lock metadata and marks compiled lock workflows as generated in
.gitattributes.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/daily-doc-updater.md |
Defines the doc-update agent workflow, safe outputs, and tool allowlist. |
.github/workflows/daily-doc-updater.lock.yml |
Compiled Actions workflow for the doc updater (generated by gh-aw). |
.github/workflows/code-simplifier.md |
Defines the code-simplification agent workflow, safe outputs, and tool allowlist. |
.github/workflows/code-simplifier.lock.yml |
Compiled Actions workflow for the code simplifier (generated by gh-aw). |
.github/workflows/ci-doctor.md |
Defines the CI failure investigation agent workflow and safe outputs. |
.github/workflows/ci-doctor.lock.yml |
Compiled Actions workflow for CI Doctor (generated by gh-aw). |
.github/workflows/agentics-maintenance.yml |
Adds the gh-aw maintenance workflow to close expired issues/PRs/discussions. |
.github/aw/actions-lock.json |
Pins action SHAs used by the generated workflows. |
.gitattributes |
Marks *.lock.yml as linguist-generated and resolves merges using ours. |
- Include 'cancelled' in ci-doctor if-condition to match protocol text - Remove cat-on-directory entries (cat docs/, cat src/, cat vscode-extension/src/) - Fix incomplete grep allowlists with explicit pattern and path args - Recompile all lock files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds three GitHub Agentic Workflows to automate repository maintenance:
Workflows
main.ts/.tsxfiles, proposes simplification PRs validated by test/lint/typecheck/buildSecurity & Safety
strict: trueand read-onlypermissionssafe-outputsconstrain what each workflow can create (issues, PRs)skip-if-matchprevents stacking open PRsauto-merge— all PRs require human reviewci-doctorscopesupdate-issueto its own issues viatitle-prefixci-doctorscopesadd-commentto issues only (not PRs)Files
.github/workflows/ci-doctor.md— CI Doctor workflow source.github/workflows/daily-doc-updater.md— Doc Updater workflow source.github/workflows/code-simplifier.md— Code Simplifier workflow source.github/workflows/*.lock.yml— Compiled GitHub Actions (auto-generated bygh aw compile).github/workflows/agentics-maintenance.yml— gh-aw maintenance workflow.github/aw/actions-lock.json— gh-aw lock metadata.gitattributes— Marks*.lock.ymlas linguist-generated.prettierignore— Excludes auto-generated files from prettierNote on lock file permissions
The compiled
.lock.ymlfiles use--allow-all-pathsand broad shell tool grants — this is howgh aw compilegenerates lock files from the source.mdfrontmatter. The source files define the intended scoping; the lock files are the runtime implementation produced by the compiler.