You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: add guard filtering summary to repo-assist monthly activity issue
Add a 'Guard Filtering Summary' section to the Monthly Activity Issue
template (Task 11) that renders which objects were filtered by the
guard policy during each run.
Changes to repo-assist.md:
- New 'Guard Filtering Summary' section in the issue body template
showing filtered issues, PRs, and other resources in a table
- New step 6 in Task 11 instructions: agent reads
/tmp/gh-aw/mcp-logs/rpc-messages.jsonl via bash and parses
DIFC_FILTERED entries to populate the summary
- Python one-liner groups filtered items by type (issues, PRs, other)
and deduplicates across multiple tool calls
This gives maintainers visibility into what the guard policy blocked
during each run, helping them understand the guard's impact and tune
policies as needed.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .github/workflows/repo-assist.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -339,6 +339,21 @@ Maintain a single open issue titled `[Repo Assist] Monthly Activity {YYYY}-{MM}`
339
339
340
340
*(If nothing pending, skip this section.)*
341
341
342
+
## Guard Filtering Summary
343
+
344
+
{Summary of objects filtered by the guard policy during this run. Read the JSONL log (see step 6 below) and render a table of filtered resources grouped by type.}
@@ -367,6 +382,32 @@ Maintain a single open issue titled `[Repo Assist] Monthly Activity {YYYY}-{MM}`
367
382
- Any strategic suggestions (goals, priorities)
368
383
Use repo memory and the activity log to compile this list. Include direct links for every item. Keep entries to one line each.
369
384
5. Do not update the activity issue if nothing was done in the current run. However, if you conclude "nothing to do", first verify this by checking: (a) Are there any open issues without a Repo Assist comment? (b) Are there issues in your memory flagged for attention? (c) Are there any bugs that could be investigated or fixed? If any of these are true, go back and do that work instead of concluding with no action.
385
+
6.**Guard filtering summary**: Before writing the activity issue, read the MCP Gateway's JSONL log to discover which objects were filtered by the guard policy. Run this bash command:
num = desc.split('#')[-1] if '#' in desc else desc
401
+
filtered['Issues'].add(num)
402
+
elif desc.startswith('pr:'):
403
+
num = desc.split('#')[-1] if '#' in desc else desc
404
+
filtered['PRs'].add(num)
405
+
else:
406
+
filtered['Other'].add(desc or tool)
407
+
print(json.dumps({'total': total, 'groups': {k: sorted(v) for k, v in filtered.items()}}, indent=2))
408
+
"||echo'{"total":0,"groups":{}}'
409
+
```
410
+
Use the output to populate the "Guard Filtering Summary" section. If `total` is 0, state that no objects were filtered. If the log file doesn't exist, skip the section entirely.
0 commit comments