Skip to content

State publisher serialization leaves completed reviews queued for hours #603

Closed

Description

@hxy91819

Summary

Completed review runs can wait for hours in Publish review artifacts because multiple publication lanes share the global clawsweeper-state-publisher concurrency group. Review work has already completed, but the workflow remains pending until it can enter the serialized state publication lane.

This is distinct from #601, which preserves pending Durable Object backlog across dispatcher pauses. The observed bottleneck is the GitHub Actions state-publication concurrency group.

Live evidence

At 2026-07-15 16:40 UTC, the external monitor reported 72 operational runs queued for at least 30 minutes and one run active for at least 150 minutes.

The sweep workflow assigns Publish review artifacts to:

concurrency:
  group: clawsweeper-state-publisher
  cancel-in-progress: false
  queue: max

Exact-review publication also uses this global group, so unrelated publication work can create head-of-line blocking.

Impact

  • Successfully completed reviews remain operationally pending for hours.
  • New work arrives faster than the serialized publisher drains it; the over-age count increased from 65 to 72 during observation.
  • Workflow-level queue health obscures the fact that the expensive review phase already succeeded.

Expected direction

Preserve state-publication correctness and exclusivity while preventing unrelated publication lanes from producing multi-hour head-of-line blocking. Make publisher queue age and throughput observable separately from review execution.

Acceptance criteria

  • A regression test reproduces multiple completed reviews waiting on the shared publisher lane.
  • Publication correctness and collision protection remain fail-closed.
  • Unrelated publication work cannot indefinitely postpone a completed review artifact.
  • Existing queued runs have a documented recovery/rollout path.
  • Operational health distinguishes review execution pressure from state publisher pressure.

Activity

  1. hxy91819 commented on Jul 15, 2026

    @hxy91819
    MemberAuthor

    Follow-up live sample at 2026-07-15 16:45:59 UTC:

    • Over-age operational queue increased to 80.
    • Observed sequence: 65 at 16:19 UTC → 72 at 16:40 UTC → 80 at 16:45 UTC.
    • The oldest queued run remains steipete/research from 12:52 UTC: https://github.com/openclaw/clawsweeper/actions/runs/29416867659
    • The over-age in-progress run rotated from steipete/releasebar to another same-batch hot-target run between samples. This proves the publisher lane is making some forward progress; it is not a complete deadlock.
    • Net queue growth nevertheless exceeds publisher throughput, so the operational outcome is sustained backlog growth and multi-hour head-of-line delay.
    • Durable-state freshness was healthy at the same sample (state_age_minutes: 0.2), so the signal is not explained by stale dashboard state.
  2. brokemac79 commented on Jul 16, 2026

    @brokemac79
    Contributor

    Thanks, Mason — the incident evidence here was useful.

    The shared publisher bottleneck described here has since been superseded by the maintainer queue and publication changes in #610, #611, #614, and #616. Live production is now draining and completing target-side ClawSweeper reviews and labels, so we are closing this report as resolved.

    Any future publisher-architecture work will be handled as a separate maintainer-led follow-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions