Skip to content

chore: sync workflow templates - #137

Merged
stranske merged 2 commits into
mainfrom
sync/workflows-c26961eecfeb
Jan 8, 2026
Merged

chore: sync workflow templates#137
stranske merged 2 commits into
mainfrom
sync/workflows-c26961eecfeb

Conversation

@stranske

@stranske stranske commented Jan 8, 2026

Copy link
Copy Markdown
Owner

Sync Summary

Files Updated

  • agents-verify-to-issue.yml: Verify to issue - creates follow-up issues from verification feedback with LLM curation (Phase 4E)
  • autofix-versions.env: Autofix tool version pins - shared dev tool versions (synced)
  • issue_formatter.py: Issue formatter - converts raw text to AGENT_ISSUE_TEMPLATE format

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: c26961eecfeb

Changes synced from sync-manifest.yml
Copilot AI review requested due to automatic review settings January 8, 2026 20:32
@stranske stranske added sync Automated sync from Workflows automated Automated sync from Workflows labels Jan 8, 2026
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

⚠️ Action Required: Unable to determine source issue for PR #137. 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 commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

🤖 Keepalive Loop Status

PR #137 | 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/6 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 autofix Let bots format/lint automatically autofix:patch Autofix patch available labels Jan 8, 2026
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

Status | ✅ no new diagnostics
History points | 0
Timestamp | 2026-01-08 20:33:51 UTC
Report artifact | autofix-report-pr-137
Remaining | ∅
New | ∅
No additional artifacts

@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

Autofix updated these files:

  • scripts/langchain/issue_formatter.py

@github-actions github-actions Bot removed the autofix:patch Autofix patch available label Jan 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 central stranske/Workflows repository. The main change is a significant refactoring of the agents-verify-to-issue.yml workflow that transforms verification feedback into follow-up issues.

Key Changes:

  • Enhanced workflow now uses LLM-based analysis via Python script to generate structured follow-up issues
  • Added fallback mechanism for when the LLM script fails, using simple regex-based extraction
  • Simplified data collection to focus on verification comments and linked issues
  • Minor whitespace formatting improvements in Python script and environment file

Reviewed changes

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

File Description
.github/workflows/agents-verify-to-issue.yml Major refactor: replaced complex manual extraction logic with LLM-based issue generation and simpler fallback; streamlined verification data collection
scripts/langchain/issue_formatter.py Added blank line after import for PEP 8 compliance
.github/workflows/autofix-versions.env Added trailing newline at end of file

Comment on lines +217 to +220
const taskItems = concerns.split('\n')
.filter(l => l.trim())
.map(c => `- [ ] ${c.replace(/^[-*]\s*/, '')}`)
.join('\n');

Copilot AI Jan 8, 2026

Copy link

Choose a reason for hiding this comment

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

When no concerns are extracted (line 204), the fallback string 'No specific concerns extracted.' is later processed on lines 217-220 where it's split by newlines and converted into task items. This will create a task checkbox with that message, which isn't actionable. Consider checking if concerns equals the default message before creating taskItems, and use an empty string or a more appropriate placeholder instead.

Copilot uses AI. Check for mistakes.
--output followup_issue.json

# Extract title and body for GitHub Actions
echo "issue_title=$(jq -r '.title' followup_issue.json)" >> "$GITHUB_OUTPUT"

Copilot AI Jan 8, 2026

Copy link

Choose a reason for hiding this comment

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

The workflow uses jq to parse JSON output but doesn't install it as a dependency. While jq is pre-installed on ubuntu-latest runners, it's better to explicitly install it for reliability and clarity. Add a step to install jq before the "Generate follow-up issue" step, or add it to the pip install command if using a Python alternative like jq Python package.

Copilot uses AI. Check for mistakes.
'',
'**Next steps:**',
'1. Review the generated issue',
'2. Add `agents:apply-suggestions` label to format for agent work',

Copilot AI Jan 8, 2026

Copy link

Choose a reason for hiding this comment

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

There's an inconsistency in label naming between what the comment suggests and what the workflow actually uses. Line 288 uses 'agents:optimize' but line 313 in the comment instructs users to add 'agents:apply-suggestions'. These labels should be consistent to avoid confusion. Consider either updating the label on line 288 to match the instruction, or updating the instruction to match the label used.

Suggested change
'2. Add `agents:apply-suggestions` label to format for agent work',
'2. Add `agents:optimize` label to format for agent work',

Copilot uses AI. Check for mistakes.
Comment on lines +267 to +272
ISSUE_TITLE: >-
${{ steps.generate.outputs.issue_title ||
steps.fallback.outputs.issue_title }}
ISSUE_BODY: >-
${{ steps.generate.outputs.issue_body ||
steps.fallback.outputs.issue_body }}

Copilot AI Jan 8, 2026

Copy link

Choose a reason for hiding this comment

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

The multiline YAML output syntax using >- on lines 267-272 will collapse all newlines into spaces, which may corrupt the issue body formatting. The >- operator is a folded scalar that joins lines with spaces. Since issue_body contains markdown with intentional line breaks, this will break the formatting. Use the | (literal) operator instead to preserve newlines, or avoid the multiline syntax entirely.

Suggested change
ISSUE_TITLE: >-
${{ steps.generate.outputs.issue_title ||
steps.fallback.outputs.issue_title }}
ISSUE_BODY: >-
${{ steps.generate.outputs.issue_body ||
steps.fallback.outputs.issue_body }}
ISSUE_TITLE: ${{ steps.generate.outputs.issue_title || steps.fallback.outputs.issue_title }}
ISSUE_BODY: ${{ steps.generate.outputs.issue_body || steps.fallback.outputs.issue_body }}

Copilot uses AI. Check for mistakes.
@stranske
stranske merged commit 52c80ed into main Jan 8, 2026
27 checks passed
@stranske
stranske deleted the sync/workflows-c26961eecfeb branch January 8, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autofix Let bots format/lint automatically 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