Skip to content

chore: sync workflow templates - #267

Closed
stranske wants to merge 1 commit into
mainfrom
sync/workflows-9ec595328ed8
Closed

stranske wants to merge 1 commit into
mainfrom
sync/workflows-9ec595328ed8

Conversation

@stranske

Copy link
Copy Markdown
Owner

Sync Summary

Files Updated

  • agents-weekly-metrics.yml: Weekly metrics - aggregates auto-pilot, keepalive, autofix and verifier metrics into summary reports
  • aggregate_agent_metrics.py: Aggregates downloaded weekly agent metrics - required by agents-weekly-metrics.yml
  • bot_comment_auth_coverage.js: Warning-only bot-comment App auth coverage preflight
  • weekly_metrics_artifacts.js: Bounded weekly metrics artifact selection contract

Files Skipped

  • pr-00-gate.yml: File exists and sync_mode is create_only
  • ci.yml: File exists and sync_mode is create_only
  • dependabot.yml: File exists and sync_mode is create_only
  • llm_slots.json: None

Review Checklist

  • CI passes with updated workflows
  • No repo-specific customizations were overwritten

Source: stranske/Workflows
Manifest: .github/sync-manifest.yml

Automated sync from stranske/Workflows
Template hash: 9ec595328ed8

Changes synced from sync-manifest.yml
@stranske stranske added sync Automated sync from Workflows automated Automated sync from Workflows labels Apr 25, 2026
Copilot AI review requested due to automatic review settings April 25, 2026 22:12
@stranske stranske added sync Automated sync from Workflows automated Automated sync from Workflows labels Apr 25, 2026
@stranske-keepalive

stranske-keepalive Bot commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

🤖 Keepalive Loop Status

PR #267 | Agent: Codex | Iteration 0/5

Current State

Metric Value
Iteration progress [----------] 0/5
Action wait (missing-agent-label)
Disposition skipped (transient)
Gate success
Tasks 0/8 complete
Timeout 45 min (default)
Timeout usage 6m elapsed (14%, 39m remaining)
Keepalive ❌ disabled
Autofix ❌ disabled

🔍 Failure Classification

| Error type | infrastructure |
| Error category | resource |
| Suggested recovery | Confirm the referenced resource exists (repo, PR, branch, workflow, or file). |

@stranske-keepalive

stranske-keepalive Bot commented Apr 25, 2026

Copy link
Copy Markdown
Contributor
Keepalive Work Log (click to expand)
# Time (UTC) Agent Action Result Files Tasks Progress Commit Gate
0 2026-04-25 22:14:56 Codex wait (missing-agent-label-transient) skipped 0 0/8 cancelled
0 2026-04-25 22:17:08 Codex wait (missing-agent-label-transient) skipped 0 0/8 cancelled
0 2026-04-25 22:19:05 Codex wait (missing-agent-label-transient) skipped 0 0/8 success

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Syncs in the latest weekly agent-metrics workflow templates, adding bot-comment auth coverage reporting and updating the weekly aggregation pipeline.

Changes:

  • Adds scripts/aggregate_agent_metrics.py to aggregate downloaded NDJSON metrics into a markdown summary.
  • Extends the weekly metrics workflow to run a new bot-comment auth coverage preflight and honor both coverage hard-blocks.
  • Updates weekly artifact selection logic to recognize the new bot-comment auth coverage artifact families.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
scripts/aggregate_agent_metrics.py New Python aggregator that buckets NDJSON metrics and emits a markdown summary for the weekly report.
.github/workflows/agents-weekly-metrics.yml Updates the scheduled workflow to set up Node via setup-node, run bot-comment auth coverage preflight, upload new artifacts, and enforce combined hard-block logic.
.github/scripts/weekly_metrics_artifacts.js Expands artifact-family detection to include bot-comment auth coverage artifacts via regex patterns and adds them to priority selection.
.github/scripts/bot_comment_auth_coverage.js New script to scan downloaded artifacts for auth coverage JSON, summarize/enforce policy, and emit JSON+markdown reports.

Comment on lines +428 to +432
files = _gather_metrics_files(metrics_paths, metrics_dir)
if not files:
print("No metrics files found to aggregate.", file=sys.stderr)
return 1

Copilot AI Apr 25, 2026

Copy link

Choose a reason for hiding this comment

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

main() returns exit code 1 when no .ndjson files are found. In the agents-weekly-metrics workflow, the download step explicitly tolerates having no artifacts, so this will cause the scheduled workflow to fail on weeks with no metrics. Consider writing a minimal markdown summary (e.g., with a generated timestamp and “no records found”) and returning 0, or gate the non-zero exit behind an opt-in env var (e.g., FAIL_ON_EMPTY=1).

Copilot uses AI. Check for mistakes.
f"- Issues: {autopilot['issues']}",
f"- Total step executions: {autopilot['total_steps']}",
f"- Escalations: {autopilot['escalation_count']}",
f"- Needs-human rate: {_format_rate(autopilot['needs_human_count'], autopilot['issues'] or 1)}",

Copilot AI Apr 25, 2026

Copy link

Choose a reason for hiding this comment

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

The needs-human rate denominator uses autopilot['issues'] or 1, which can silently report an incorrect percentage when there are auto-pilot records but no issue numbers were captured (issues=0). Since _format_rate() already handles 0/negative denominators by returning n/a, pass the actual issues count instead of forcing the denominator to 1.

Suggested change
f"- Needs-human rate: {_format_rate(autopilot['needs_human_count'], autopilot['issues'] or 1)}",
f"- Needs-human rate: {_format_rate(autopilot['needs_human_count'], autopilot['issues'])}",

Copilot uses AI. Check for mistakes.
@stranske

Copy link
Copy Markdown
Owner Author

Closing as stale: newer sync workflow templates PR #339 is open for this repo.

@stranske stranske closed this Apr 29, 2026
@agents-workflows-bot
agents-workflows-bot Bot deleted the sync/workflows-9ec595328ed8 branch May 14, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated Automated sync from Workflows sync Automated sync from Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants