Skip to content

chore: sync workflow templates#143

Closed
stranske wants to merge 1 commit intomainfrom
sync/workflows-3ad5d39a380a
Closed

chore: sync workflow templates#143
stranske wants to merge 1 commit intomainfrom
sync/workflows-3ad5d39a380a

Conversation

@stranske
Copy link
Copy Markdown
Owner

@stranske stranske commented Jan 3, 2026

Sync Summary

Files Updated

  • agents-keepalive-loop.yml: Keepalive loop - continues agent work until tasks complete
  • keepalive_loop.js: Core keepalive loop logic

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: 3ad5d39a380a

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

github-actions bot commented Jan 3, 2026

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

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

github-actions bot commented Jan 3, 2026

🤖 Keepalive Loop Status

PR #143 | 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/0 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
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 3, 2026

Status | ✅ no new diagnostics
History points | 0
Timestamp | 2026-01-03 23:07:39 UTC
Report artifact | autofix-report-pr-143
Remaining | ∅
New | ∅
No additional artifacts

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 template files from the central stranske/Workflows repository, focusing on improvements to the keepalive loop's task reconciliation functionality.

  • Fixes a string escaping issue in the GitHub Actions workflow by using environment variables instead of inline template literals for JSON data
  • Adds defensive validation checks to prevent errors when repository context is missing
  • Refactors source counting logic to be more maintainable and consistent across return paths

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/agents-keepalive-loop.yml Introduces environment variable approach for LLM_COMPLETED_TASKS to avoid JavaScript string escaping issues when passing JSON data to the script
.github/scripts/keepalive_loop.js Adds validation for repo context, refactors source counting to track LLM vs commit-based task completions more consistently, and ensures all return statements include source tracking data

Comment on lines 1815 to 1831
*/
async function autoReconcileTasks({ github, context, prNumber, baseSha, headSha, llmCompletedTasks, core }) {
const log = (msg) => core?.info?.(msg) || console.log(msg);
const sources = { llm: 0, commit: 0 };

if (!context?.repo?.owner || !context?.repo?.repo || !prNumber) {
log('Skipping reconciliation: missing repo context or PR number.');
return {
updated: false,
tasksChecked: 0,
details: 'Missing repo context or PR number',
sources,
};
}

// Get current PR body
let pr;
Copy link

Copilot AI Jan 3, 2026

Choose a reason for hiding this comment

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

The JSDoc return type documentation is incomplete. The function now returns an object with a sources property (containing llm and commit counts), but this is not documented in the return type annotation. The return type should be updated to include the sources field.

Copilot uses AI. Check for mistakes.
@stranske stranske closed this Jan 4, 2026
@stranske stranske deleted the sync/workflows-3ad5d39a380a branch January 17, 2026 17:47
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