Skip to content

upstreaming: recover controller post-commit steps - #5012

Merged
luhenry merged 1 commit into
mainfrom
upstreaming-pipeline
Nov 20, 2026
Merged

luhenry merged 1 commit into
mainfrom
upstreaming-pipeline

Conversation

@luhenry

@luhenry luhenry commented Nov 20, 2026

Copy link
Copy Markdown
Member

Summary

Restore controller continuation after state publication and make command completion reactions self-healing.

The post-merge controller run failed after successfully publishing state because Mark accepted commands complete iterated a null top-level .commands field. Reconciliation reports nest command decisions under .controller, so the failure skipped status publication and dispatcher launch/recovery.

Rather than depending on the current report, this change scans durable command receipts after the state commit:

  • every accepted receipt receives an idempotent App-authored +1;
  • prior accepted commands missing completion reactions are backfilled automatically;
  • rejected commands remain excluded;
  • reaction API failures use four bounded exponential-backoff attempts;
  • the accepted py-webrtcvad resume command 7049424669 will be recovered by the next controller tick;
  • commandless controller ticks succeed and continue to dispatcher recovery.

Validation

  • 230 upstreaming tests pass.
  • Added accepted/rejected, backfill, and idempotence coverage.
  • Workflow contract verifies post-state-commit ordering and durable scanner invocation.
  • git diff --check passes.

@luhenry
luhenry merged commit 3fc1289 into main Nov 20, 2026
4 checks passed
@luhenry
luhenry deleted the upstreaming-pipeline branch November 20, 2026 21:43
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