Skip to content

feat: add Guard Status Tracker workflow for issue #1711#1938

Merged
lpcox merged 1 commit intomainfrom
feat/guard-status-tracker-workflow
Mar 15, 2026
Merged

feat: add Guard Status Tracker workflow for issue #1711#1938
lpcox merged 1 commit intomainfrom
feat/guard-status-tracker-workflow

Conversation

@lpcox
Copy link
Collaborator

@lpcox lpcox commented Mar 15, 2026

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:

  1. Inventories source code — counts files, lines, and tests across all 4 guard components (DIFC engine, guard framework, guard config, Rust GitHub Guard)
  2. Scans recent PRs — finds guard-related merged/open PRs from the last 14 days
  3. Compares with previous run — uses cache-memory to detect deltas (new PRs, LOC changes)
  4. Posts a status comment on issue Guards and Integrity: tracking issue #1711 with a table + delta summary

Status comment format

Component Files Lines Tests
DIFC Engine X Y Z
Guard Framework X Y Z
... ... ... ...

Plus: recent PR list, architecture summary, and open items check.

Configuration

  • strict: true, scoped to github/gh-aw-mcpg with min-integrity: unapproved
  • add-comment safe output (max 1 per run) targeting issue Guards and Integrity: tracking issue #1711
  • cache-memory for state tracking between runs

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>
Copilot AI review requested due to automatic review settings March 15, 2026 00:16
@lpcox lpcox merged commit a7412fa into main Mar 15, 2026
4 checks passed
@lpcox lpcox deleted the feat/guard-status-tracker-workflow branch March 15, 2026 00:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.yml workflow generated by gh aw compile to 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 is add_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:
- "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants