Skip to content

chore: sync workflow templates#296

Closed
stranske wants to merge 1 commit intomainfrom
sync/workflows-0896ae6b2b2f
Closed

chore: sync workflow templates#296
stranske wants to merge 1 commit intomainfrom
sync/workflows-0896ae6b2b2f

Conversation

@stranske
Copy link
Copy Markdown
Owner

@stranske stranske commented Mar 1, 2026

Sync Summary

Files Updated

  • agents_pr_meta_update_body.js: Updates PR body with agent metadata
  • issue_optimizer.py: Issue optimizer - analyzes issues and suggests improvements
  • capability_check.py: Capability check - pre-flight agent feasibility assessment
  • langchain_client.py: LangChain client builder - multi-provider client with slot-based fallback and configuration
  • CLAUDE.md: Context file for Claude/AI assistants

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: 0896ae6b2b2f

Changes synced from sync-manifest.yml
Copilot AI review requested due to automatic review settings March 1, 2026 00:23
@stranske stranske added sync Automated sync from Workflows automated Automated sync from Workflows labels Mar 1, 2026
@stranske stranske temporarily deployed to agent-standard March 1, 2026 00:23 — with GitHub Actions Inactive
@stranske stranske temporarily deployed to agent-standard March 1, 2026 00:23 — with GitHub Actions Inactive
@stranske stranske temporarily deployed to agent-standard March 1, 2026 00:23 — with GitHub Actions Inactive
@stranske-keepalive
Copy link
Copy Markdown
Contributor

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

@agents-workflows-bot
Copy link
Copy Markdown
Contributor

agents-workflows-bot bot commented Mar 1, 2026

🤖 Keepalive Loop Status

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

Current State

Metric Value
Iteration progress [----------] 0/5
Action wait (missing-agent-label)
Disposition skipped (transient)
Gate failure
Tasks 0/9 complete
Timeout 45 min (default)
Timeout usage 9m elapsed (20%, 36m 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). |

@agents-workflows-bot
Copy link
Copy Markdown
Contributor

agents-workflows-bot bot commented Mar 1, 2026

Keepalive Work Log (click to expand)
# Time (UTC) Agent Action Result Files Tasks Progress Commit Gate
0 2026-03-01 00:24:18 Codex wait (missing-agent-label-transient) skipped 0 0/9
0 2026-03-01 00:25:17 Codex wait (missing-agent-label-transient) skipped 0 0/9 cancelled
0 2026-03-01 00:26:03 Codex wait (missing-agent-label-transient) skipped 0 0/9 cancelled
0 2026-03-01 00:32:30 Codex wait (missing-agent-label-transient) skipped 0 0/9 failure

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

Syncs workflow/template-related utilities from stranske/Workflows, updating shared LangChain helpers and PR-metadata automation logic used by the repo’s agent/keepalive workflows.

Changes:

  • Updated PR body upsert logic to replace the first managed block and attempt to remove duplicate marker blocks from concurrent writes.
  • Minor refactor in LangChain scripts to simplify issue_or_pr metadata construction.
  • Removed slot catalog helper functions from tools/langchain_client.py and removed the “Slow Test Strategy” section from CLAUDE.md.

Reviewed changes

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

Show a summary per file
File Description
tools/langchain_client.py Removes previously-exposed slot catalog helpers (currently breaks existing imports).
scripts/langchain/issue_optimizer.py Minor refactor to simplify nested conditional for issue_or_pr.
scripts/langchain/capability_check.py Minor refactor to simplify nested conditional for issue_or_pr.
CLAUDE.md Removes documentation about slow test strategy.
.github/scripts/agents_pr_meta_update_body.js Enhances managed-block replacement to dedupe duplicate marker blocks and normalize extra newlines.

@@ -148,29 +148,6 @@ def _resolve_slots() -> list[SlotDefinition]:
return _apply_slot_env_overrides(_load_slot_config())


Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

get_provider_model_catalog() was removed, but it is still imported/used by src/counter_risk/chat/providers/base.py (and patched in tests/test_chat_provider_clients.py). This will cause an ImportError at runtime/test time. Either restore get_provider_model_catalog() (and keep its behavior consistent with slot resolution/defaults) or update all call sites to use the new intended API.

Suggested change
def get_provider_model_catalog() -> list[SlotDefinition]:
"""Return the resolved provider/model slot catalog.
This applies the same configuration loading and environment overrides as used
by the LangChain client helpers, ensuring consistent defaults and slot order.
"""
return _resolve_slots()

Copilot uses AI. Check for mistakes.
Comment on lines +715 to +724
while (limit-- > 0) {
const dupStart = result.indexOf(start, startIndex + replacement.length);
const dupEnd = result.indexOf(end, dupStart + start.length);
if (dupStart !== -1 && dupEnd !== -1 && dupEnd > dupStart) {
result = `${result.slice(0, dupStart)}${result.slice(dupEnd + end.length)}`;
hadDuplicates = true;
} else {
break;
}
}
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

The duplicate-removal loop can miss duplicates after the first deletion: removing a later block shifts subsequent duplicates left, potentially to an index before startIndex + replacement.length, so the next indexOf(start, ...) search may skip them. Consider restarting the search from just after the first block’s start marker (e.g., startIndex + 1) each iteration (or otherwise re-scanning until no more matches) so all duplicates are reliably removed.

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

stranske commented Mar 1, 2026

Closing: superseded by the newer sync PR on branch sync/workflows-d4ac30fbde51 which includes review feedback fixes.

@stranske stranske closed this Mar 1, 2026
@stranske stranske deleted the sync/workflows-0896ae6b2b2f branch March 1, 2026 00:33
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