Skip to content

Avoid canceling concurrent codex runs (#1103)#1103

Merged
stranske merged 4 commits intomainfrom
fix/models-read-langchain
Jan 26, 2026
Merged

Avoid canceling concurrent codex runs (#1103)#1103
stranske merged 4 commits intomainfrom
fix/models-read-langchain

Conversation

@stranske
Copy link
Copy Markdown
Owner

@stranske stranske commented Jan 26, 2026

Source: Issue #1103

Automated Status Summary

Scope

After merging PR #103 (multi-agent routing infrastructure), we need to:

Context for Agent

Design Decisions & Constraints

    1. Clean up comment patterns to avoid a mix of old UI-agent and new CLI-agent comments
  • The keepalive loop now:
  • | <!-- keepalive-loop-summary --> | github-actions[bot] | NEW: CLI agent iteration tracking | ✅ Keep for CLI agents |
  • | <!-- keepalive-state:v1 --> | agents-workflows-bot[bot] | State tracking | ⚠️ Multiple copies accumulate |
  • | <!-- keepalive-round: N --> | stranske | OLD: Instruction comment | ❌ CLI agents dont need this |
  • The goal: For CLI agents (agent:* label), we should have exactly one updating comment (<!-- keepalive-loop-summary -->) instead of accumulating 10+ comments per PR.
  • Requires PR #103 to be merged first
  • This round you MUST:
  • Review the Scope/Tasks/Acceptance below, identify the next incomplete task that requires code, implement it, then post a reply comment with the completed items using their exact original text.
  • | Keepalive E2E | ❔ startup failure | View run |
  • ⚠️ Action Required: Unable to determine source issue for PR #1103. The PR title, branch name, or body must contain the issue number (e.g. #123, branch: issue-123, or the hidden marker ).
  • | Keepalive | ❌ disabled |
  • This PR modifies files that should be synced to consumer repos, but the sync manifest is incomplete.
    1. If the file should NOT be synced, add it to excluded: with a reason

Related Issues/PRs

References

Blockers & Dependencies

  • After merging PR #103 (multi-agent routing infrastructure), we need to:
  • After merging PR #103 (multi-agent routing infrastructure), we need to:
    1. Mark a task checkbox complete ONLY after verifying the implementation works.

Tasks

  • 1. Validate the CLI agent pipeline works end-to-end with the new task-focused prompts
  • 2. Add GITHUB_STEP_SUMMARY output so iteration results are visible in the Actions UI
  • 3. Streamline the Automated Status Summary to reduce clutter when using CLI agents
  • 4. Clean up comment patterns to avoid a mix of old UI-agent and new CLI-agent comments

Acceptance criteria

  • CLI agent receives explicit tasks in prompt and works on them
  • Iteration results visible in Actions workflow run summary
  • PR body shows checkboxes but not workflow clutter when using CLI agents
  • UI Codex path (no agent label) continues to show full status summary
  • CLI agent PRs have ≤3 bot comments total (summary, one per iteration update) instead of 10+
  • State tracking is consolidated in the summary comment, not scattered
  • Head SHA: e0a34c2
  • Latest Runs: ❌ failure — Gate
  • Required: gate: ❌ failure
  • | Workflow / Job | Result | Logs |
  • |----------------|--------|------|
  • | Agents PR meta manager | ❔ in progress | View run |
  • | CI Autofix Loop | ✅ success | View run |
  • | Gate | ❌ failure | View run |
  • | Health 40 Sweep | ✅ success | View run |
  • | Health 44 Gate Branch Protection | ✅ success | View run |
  • | Health 45 Agents Guard | ✅ success | View run |
  • | Health 50 Security Scan | ✅ success | View run |
  • | Health 72 Template Sync | ✅ success | View run |
  • | Health 73 Template Completeness | ✅ success | View run |
  • | Keepalive E2E | ❔ startup failure | View run |
  • | Maint 52 Validate Workflows | ✅ success | View run |
  • | PR 11 - Minimal invariant CI | ✅ success | View run |
  • | Selftest CI | ✅ success | View run |
  • | Validate Sync Manifest | ✅ success | View run |

Head SHA: e0a34c2
Latest Runs: ❌ failure — Gate
Required: gate: ❌ failure

Workflow / Job Result Logs
Agents PR meta manager ❔ in progress View run
CI Autofix Loop ✅ success View run
Gate ❌ failure View run
Health 40 Sweep ✅ success View run
Health 44 Gate Branch Protection ✅ success View run
Health 45 Agents Guard ✅ success View run
Health 50 Security Scan ✅ success View run
Health 72 Template Sync ✅ success View run
Health 73 Template Completeness ✅ success View run
Keepalive E2E ❔ startup failure View run
Maint 52 Validate Workflows ✅ success View run
PR 11 - Minimal invariant CI ✅ success View run
Selftest CI ✅ success View run
Validate Sync Manifest ✅ success View run

Copilot AI review requested due to automatic review settings January 26, 2026 07:40
@agents-workflows-bot
Copy link
Copy Markdown
Contributor

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

Automated Status Summary

Head SHA: 46fba70
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / Enforce agents workflow protections
Required: core tests (3.11): ⏳ pending, core tests (3.12): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Coverage Overview

  • Coverage history entries: 1

Coverage Trend

Metric Value
Current 93.12%
Baseline 85.00%
Delta +8.12%
Minimum 70.00%
Status ✅ Pass

Top Coverage Hotspots (lowest coverage)

File Coverage Missing
src/cli_parser.py 81.8% 4
src/percentile_calculator.py 95.0% 1
src/aggregator.py 95.0% 2
src/__init__.py 100.0% 0
src/ndjson_parser.py 100.0% 0

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

No scope information available

Tasks

  • No tasks defined

Acceptance criteria

  • No acceptance criteria defined

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 modifies the concurrency configuration in the reusable Codex workflow to allow different Codex modes (keepalive, autofix, verifier) to run concurrently on the same pull request without canceling each other.

Changes:

  • Updated concurrency group to include the mode parameter, allowing different modes to run in parallel
  • Changed cancel-in-progress from true to false to prevent cancellation of concurrent runs
  • Added pr_number as the primary identifier with github.ref as fallback for cases where pr_number is not provided

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

🤖 Keepalive Loop Status

PR #1103 | 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/0 complete
Timeout 45 min (default)
Timeout usage 2m elapsed (5%, 43m 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). |

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: 71898181e1

ℹ️ 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".

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
group: codex-${{ inputs.mode }}-${{ inputs.pr_number || github.ref }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Serialize runs across modes for the same PR branch

The new concurrency group includes inputs.mode, so keepalive and autofix runs for the same PR no longer share a group. Both .github/workflows/agents-keepalive-loop.yml and .github/workflows/agents-autofix-loop.yml call this reusable workflow with the same pr_number/pr_ref but different mode values, which now allows simultaneous runs that both push to the same branch. That increases the chance of push rejections or conflicting rebases in the commit step, causing failed runs or interleaved commits. Consider keying the group only by PR/target branch (or pr_ref) so different modes still serialize on the same branch.

Useful? React with 👍 / 👎.

@github-actions
Copy link
Copy Markdown
Contributor

❌ Sync Manifest Validation Failed

This PR modifies files that should be synced to consumer repos, but the sync manifest is incomplete.

Required action: Update .github/sync-manifest.yml to include the new/modified files.

Why this matters

Files not declared in the manifest won't be synced to consumer repos (Template, Manager-Database, trip-planner, Travel-Plan-Permission), causing features to silently not work in those repos.

How to fix

  1. Open .github/sync-manifest.yml
  2. Add your new files to the appropriate section (workflows, prompts, scripts, etc.)
  3. Include a description explaining what the file does
  4. If the file should NOT be synced, add it to excluded: with a reason

See the workflow logs for specific files that need to be added.

@stranske stranske temporarily deployed to agent-high-privilege January 26, 2026 08:04 — with GitHub Actions Inactive
@stranske stranske temporarily deployed to agent-high-privilege January 26, 2026 08:18 — with GitHub Actions Inactive
@stranske stranske temporarily deployed to agent-high-privilege January 26, 2026 08:23 — with GitHub Actions Inactive
@github-actions github-actions bot added the autofix Opt-in automated formatting & lint remediation label Jan 26, 2026
@stranske stranske changed the title Avoid canceling concurrent codex runs Avoid canceling concurrent codex runs (#1103) Jan 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Status | ✅ no new diagnostics
History points | 1
Timestamp | 2026-01-26 08:25:31 UTC
Report artifact | autofix-report-pr-1103
Remaining | 0
New | 0
No additional artifacts

@stranske stranske merged commit dd4e9e5 into main Jan 26, 2026
115 of 116 checks passed
@stranske stranske deleted the fix/models-read-langchain branch January 26, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autofix Opt-in automated formatting & lint remediation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants