feat: add agentic workflows for CI doctor, doc updater, and code simplifier#18
feat: add agentic workflows for CI doctor, doc updater, and code simplifier#18digitarald merged 4 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
|
|
||
| ## Repository Context | ||
|
|
||
| This is **@microsoft/agentrc** — a TypeScript CLI + VS Code extension for priming repositories for AI-assisted development. |
There was a problem hiding this comment.
The PR description states "This is @microsoft/agentrc" in line 58, but the package name has been changed from "@microsoft/agentrc-vscode" to "agentrc-vscode" (without the @microsoft scope) in both vscode-extension/package.json and release-please-config.json. This creates an inconsistency between the documentation and the actual package naming. Update this reference to match the new package name or clarify whether the CLI remains @microsoft/agentrc while only the VS Code extension was descoped.
| This is **@microsoft/agentrc** — a TypeScript CLI + VS Code extension. | ||
|
|
There was a problem hiding this comment.
The repository context states "This is @microsoft/agentrc", but the package has been renamed from "@microsoft/agentrc-vscode" to "agentrc-vscode" in this PR. Update this reference to reflect the current package naming convention, or clarify if only the VS Code extension was descoped while the CLI retains the @microsoft scope.
|
|
||
| ## Repository Context | ||
|
|
||
| This is **@microsoft/agentrc** — a TypeScript CLI + VS Code extension for priming repositories for AI-assisted development. |
There was a problem hiding this comment.
The repository context states "This is @microsoft/agentrc", but the package has been renamed from "@microsoft/agentrc-vscode" to "agentrc-vscode" in this PR. Update this reference to reflect the current package naming, or clarify if the CLI remains scoped while only the VS Code extension was descoped.
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.