-
Notifications
You must be signed in to change notification settings - Fork 308
Description
Problem Description
When using the logs tool (or gh aw logs) with a workflow_name filter, the safe_items_count field is missing from all individual run objects and the summary's total_safe_items shows 0, even though the same runs correctly show safe item counts when retrieved via an unfiltered query.
Steps to Reproduce
- Run an unfiltered logs query (last 24h) — observe that Plan Command runs show
safe_items_count: 3,4,5 - Run a filtered query:
logs(workflow_name="Plan Command", count=5) - Compare the same run objects —
safe_items_countis missing and the summary showstotal_safe_items: 0
Unfiltered result (run 23221689861):
{
"database_id": 23221689861,
"workflow_name": "Plan Command",
"safe_items_count": 4,
...
}Filtered result (same run, workflow_name="Plan Command"):
{
"database_id": 23221689861,
"workflow_name": "Plan Command",
// safe_items_count field ABSENT
...
}Summary (filtered): "total_safe_items": 0
Summary (unfiltered, same runs): "total_safe_items": 62
Expected Behavior
Filtering by workflow_name should return the same per-run data quality as unfiltered queries, including safe_items_count in each run object and a correct total_safe_items in the summary.
Actual Behavior
safe_items_count is absent from all run objects in a workflow-filtered response and the summary total_safe_items is always 0.
Environment
- Repository: github/gh-aw
- Run ID: 23221938718 (Daily CLI Tools Exploratory Tester)
- Date: 2026-03-17
- Test run IDs: 23221639491, 23221674278, 23221617811, 23221689861
Impact
- Severity: Medium
- Frequency: Always (reproducible)
- Workaround: Use unfiltered query and manually filter by workflow name client-side
Additional Context
The workflow_path field is correctly populated in filtered results, confirming the data retrieval pipeline works for other fields. The issue appears to be specific to the safe items aggregation step when a workflow_name filter is applied.
Generated by Daily CLI Tools Exploratory Tester · ◷
- expires on Mar 24, 2026, 11:58 PM UTC