Skip to content

fix: stop completed CI task redispatch loops - #2968

Merged
numnx merged 5 commits into
devfrom
fix/orchestration-completed-invocation-loop
Jul 12, 2026
Merged

fix: stop completed CI task redispatch loops#2968
numnx merged 5 commits into
devfrom
fix/orchestration-completed-invocation-loop

Conversation

@numnx

@numnx numnx commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • Sync the feature branch with the current main release history.
  • Normalize GitHub PR check rollups so newer reruns supersede older cancelled or failed observations for the same workflow/check.
  • Select CI repair evidence only when the newest branch-matched run is failed.
  • Preserve CI-owned and explicit handoff states through status derivation so completed coding work cannot become pending coding again.
  • Suppress merge-attention churn while CI owns a task, separate guardrail handoff deduplication by purpose, and resolve stale guardrail handoffs after a task settles.
  • Update canonical and published CI troubleshooting documentation.

Why

A completed coding task could enter an orchestration loop when GitHub returned both an older cancelled check run and a newer successful rerun. The gate treated the historical failure as current, marked the task blocked, and a later derivation pass converted that post-coding blocker back to pending work. That launched the coding provider repeatedly and created merge-attention rows that were opened and resolved in the same watch cycle.

Impact

Latest green CI now advances the existing completed work without another coding invocation. Current CI failures remain owned by CI repair or their human handoff, and the dashboard no longer accumulates stale merge or guardrail interventions for settled tasks.

Validation

  • pnpm run ci
  • Focused regression suites for PR check normalization, CI run selection, task state derivation, attention coordination/deduplication, and guardrail cleanup
  • Live runtime restart against an affected non-test task: invocation and dispatch counts remained stable across multiple watch cycles; the task advanced to completed/merged and its stale handoff resolved

Risk and rollback

Risk is limited to CI status normalization and post-coding state/attention transitions. Roll back this commit to restore the prior behavior; no schema migration is involved.

@numnx
numnx marked this pull request as ready for review July 12, 2026 08:58
@numnx
numnx merged commit ee57873 into dev Jul 12, 2026
40 checks passed
@numnx
numnx deleted the fix/orchestration-completed-invocation-loop branch July 12, 2026 08:58
@numnx numnx mentioned this pull request Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant