Skip to content

chore: sync workflow templates#146

Closed
stranske wants to merge 1 commit intomainfrom
sync/workflows-5ffae5632ff0
Closed

chore: sync workflow templates#146
stranske wants to merge 1 commit intomainfrom
sync/workflows-5ffae5632ff0

Conversation

@stranske
Copy link
Copy Markdown
Owner

@stranske stranske commented Jan 5, 2026

Sync Summary

Files Updated

  • keepalive_instruction_template.js: Generates keepalive instructions for Codex
  • keepalive_loop.js: Core keepalive loop logic
  • error_classifier.js: Classifies CI errors for agent handling
  • agents-guard.js: Guards against unauthorized agent workflow file changes

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

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: 5ffae5632ff0

Changes synced from sync-manifest.yml
Copilot AI review requested due to automatic review settings January 5, 2026 02:58
@stranske stranske added sync Automated sync from Workflows automated Automated sync from Workflows labels Jan 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 5, 2026

⚠️ Action Required: Unable to determine source issue for PR #146. The PR title, branch name, or body must contain the issue number (e.g. #123, branch: issue-123, or the hidden marker ).

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 5, 2026

🤖 Keepalive Loop Status

PR #146 | 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/7 complete
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). |

@github-actions github-actions bot added the autofix Triggers autofix on PR label Jan 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 5, 2026

Status | ✅ no new diagnostics
History points | 0
Timestamp | 2026-01-05 02:59:31 UTC
Report artifact | autofix-report-pr-146
Remaining | ∅
New | ∅
No additional artifacts

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dbde2b9d4f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 6 to 9
const { parseScopeTasksAcceptanceSections } = require('./issue_scope_parser');
const { loadKeepaliveState, formatStateComment } = require('./keepalive_state');
const { resolvePromptMode } = require('./keepalive_prompt_routing');
const { classifyError, ERROR_CATEGORIES } = require('./error_classifier');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add missing keepalive_prompt_routing module

The new prompt-routing imports point to ./keepalive_prompt_routing, but that module does not exist anywhere in the repository (rg keepalive_prompt_routing finds nothing). Any workflow step that loads this script will throw Cannot find module './keepalive_prompt_routing' before it can run, so keepalive loop execution (and the instruction template helper, which has the same import) will fail immediately rather than processing tasks.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
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

This PR syncs workflow templates from the upstream stranske/Workflows repository, introducing enhanced keepalive loop functionality with prompt routing, task tracking, and verification support.

Key Changes:

  • Adds dynamic prompt routing system with support for fix_ci, verify, and normal modes
  • Implements attempt history and task tracking to avoid repeating recently attempted tasks
  • Enhances transient error detection for dirty git state and infrastructure issues

Reviewed changes

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

File Description
.github/scripts/keepalive_loop.js Adds prompt routing, attempt/task history tracking, verification flow, improved transient error classification, and focus task suggestion
.github/scripts/keepalive_instruction_template.js Refactors to support multiple template paths with dynamic mode-based resolution and fallback handling
.github/scripts/error_classifier.js Adds transient patterns for git workspace state issues (unexpected changes, untracked files, workflow artifacts)
.github/scripts/agents-guard.js Allows automated PRs (dependabot, renovate) to bypass codeowner approval when they have the allow label


const { parseScopeTasksAcceptanceSections } = require('./issue_scope_parser');
const { loadKeepaliveState, formatStateComment } = require('./keepalive_state');
const { resolvePromptMode } = require('./keepalive_prompt_routing');
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

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

This import references a module 'keepalive_prompt_routing' that doesn't exist in the repository. The file .github/scripts/keepalive_prompt_routing.js is missing but is required by both keepalive_loop.js (line 8) and keepalive_instruction_template.js (line 5). This will cause a runtime error when the script attempts to load. The missing module should be added to the PR, or the import should be removed and the functionality implemented locally.

Copilot uses AI. Check for mistakes.

const fs = require('fs');
const path = require('path');
const { resolvePromptMode } = require('./keepalive_prompt_routing');
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

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

This import references a module 'keepalive_prompt_routing' that doesn't exist in the repository. The file .github/scripts/keepalive_prompt_routing.js is missing but is required. This will cause a runtime error when the script attempts to load. The missing module should be added to the PR, or the import should be removed and the functionality implemented locally.

Copilot uses AI. Check for mistakes.
@stranske
Copy link
Copy Markdown
Owner Author

stranske commented Jan 5, 2026

Superseded by newer sync PR that was merged.

@stranske stranske closed this Jan 5, 2026
@stranske stranske deleted the sync/workflows-5ffae5632ff0 branch January 5, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autofix Triggers autofix on PR 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