fix(archied): the live-apply watch goroutine never reconnects #1680

Closed
opened 2026-10-27 13:41:22 +00:00 by sam · 0 comments
Owner

Found by the Wave 0R claims audit (c3, P1).

internal/app/archied/control_plane.go:101 returns on the first watch-stream error. The goroutine is launched once (internal/app/archied/main.go:386 is the sole caller) with no reconnect, so a single transient stream error permanently ends live applies for workflow-execution-settings, with no error record.

The apply-status reporter keeps re-stamping the previously applied version every 30s (internal/domain/applystatus/applystatus.go:127), so the UI reads the kind as healthy while nothing is being applied. Recovery is a daemon restart.

Fix direction: re-establish the watch with backoff, and report the gap through the apply-status surface instead of re-stamping the old version as current.

Close reason

Fixed in b8ec491d (2026-09-21): keepWatch re-establishes the control-plane watch streams after they end.


Imported from beads archie-core-yrmr · GitHub #1050 · type bug · priority P1 · created 2026-09-21 · closed 2026-09-26

Found by the Wave 0R claims audit (c3, P1). internal/app/archied/control_plane.go:101 returns on the first watch-stream error. The goroutine is launched once (internal/app/archied/main.go:386 is the sole caller) with no reconnect, so a single transient stream error permanently ends live applies for workflow-execution-settings, with no error record. The apply-status reporter keeps re-stamping the previously applied version every 30s (internal/domain/applystatus/applystatus.go:127), so the UI reads the kind as healthy while nothing is being applied. Recovery is a daemon restart. Fix direction: re-establish the watch with backoff, and report the gap through the apply-status surface instead of re-stamping the old version as current. ### Close reason Fixed in b8ec491d (2026-09-21): keepWatch re-establishes the control-plane watch streams after they end. --- _Imported from beads `archie-core-yrmr` · GitHub #1050 · type bug · priority P1 · created 2026-09-21 · closed 2026-09-26_
sam added the highbug labels 2026-10-27 13:41:22 +00:00
sam self-assigned this 2026-10-27 13:41:22 +00:00
sam closed this issue 2026-10-27 13:41:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1680