feat: add Guard Status Tracker workflow for issue #1711#1938
Merged
Conversation
Daily workflow (weekdays 8 AM UTC) that scans the codebase and posts a status update comment on the Guards and Integrity tracking issue. Each run: - Inventories DIFC, guard framework, Rust guard, and config source lines - Finds guard-related PRs from the last 14 days - Compares with previous state via cache-memory - Posts a concise table + delta comment on issue #1711 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new gh-aw agentic workflow that periodically summarizes the current “Guards and Integrity” implementation state and posts updates to tracking issue #1711.
Changes:
- Introduces a scheduled/manual “Guard Status Tracker” agent prompt to inventory guard-related code/tests and recent PR activity.
- Adds the compiled
.lock.ymlworkflow generated bygh aw compileto run the agent safely in GitHub Actions.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
.github/workflows/guard-status-tracker.md |
Defines the agent workflow prompt, tool configuration, and expected issue comment format. |
.github/workflows/guard-status-tracker.lock.yml |
Generated, executable GitHub Actions workflow that runs the above agent prompt on schedule/dispatch. |
Comments suppressed due to low confidence (1)
.github/workflows/guard-status-tracker.md:170
- This bullet says to use
add-comment, but the safe output tool exposed to the agent isadd_comment. Please rename the tool reference here as well to avoid inconsistent instructions leading to failed tool calls.
- **Be concise**: The comment should fit on one screen. Use the table for numbers, bullet points for changes.
- **Only report real changes**: If nothing changed since the last update, still post a brief "No changes" status with updated line counts.
- **Link PRs**: Reference PRs by number (e.g., #1234) so they're clickable.
- **Use the exact `item_number: 1711`** parameter when calling `add-comment`.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+128
to
+131
| ## Step 5: Post Status Update | ||
|
|
||
| Add a comment to issue #1711 using `add-comment` with `item_number: 1711`. | ||
|
|
| echo "=== Guard Framework ===" && find internal/guard -name '*.go' ! -name '*_test.go' | sort | xargs wc -l | ||
| echo "=== Guard Config ===" && wc -l internal/config/guard_policy.go | ||
| echo "=== Rust Guard ===" && find guards/github-guard/rust-guard/src -name '*.rs' | sort | xargs wc -l | ||
| echo "=== Test Files ===" && find internal/difc internal/guard -name '*_test.go' | xargs wc -l |
|
|
||
| safe-outputs: | ||
| add-comment: | ||
| max: 1 |
Comment on lines
+28
to
+29
| noop: | ||
|
|
| repos: ["github/gh-aw-mcpg"] | ||
| min-integrity: unapproved | ||
| bash: | ||
| - "*" |
This was referenced Mar 15, 2026
Closed
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.
Adds a daily agentic workflow that keeps the Guards and Integrity tracking issue (#1711) up to date with the current codebase state.
What it does
Runs weekdays at 8 AM UTC (also manually triggerable). Each run:
Status comment format
Plus: recent PR list, architecture summary, and open items check.
Configuration
strict: true, scoped togithub/gh-aw-mcpgwithmin-integrity: unapprovedadd-commentsafe output (max 1 per run) targeting issue Guards and Integrity: tracking issue #1711cache-memoryfor state tracking between runs