You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make RentnerProxy automatically recover when Desired State could not be applied because the controller/runtime was temporarily unavailable.
Today the in-process reconciler retries only for a limited period. A failed apply can remain pending indefinitely until another user action triggers reconciliation.
Beta 1 should self-heal.
Required Behavior
When:
PostgreSQL Desired State
!=
Controller/OpenResty Active State
RentnerProxy must eventually retry automatically.
Examples:
controller temporarily unavailable
OpenResty temporarily unavailable
transient networking issue
temporary apply failure
application restarted while state is pending
Scope
durable/persistent knowledge that reconciliation is required
The durable source is PostgreSQL desired state. A single Web worker reads it at startup, coalesces concurrent changes, retries failed applies with 1–60 second backoff, and checks for drift without reapplying a healthy runtime. Caller deadlines return pending while the owned worker continues. Shutdown stops new applies and drains the in-flight operation.
Real proxy smoke checks now stop the controller, commit a desired-state change, and verify automatic reconciliation after recovery without a manual apply. A separate freshly started Web worker process also restores persisted pending state without a user request. The status changes from pending to synced after confirmation. Native Caddy rejection and controlled probe failure preserve the previous live route/revision.
Unit tests cover coalescing, bounded acknowledgements, transient recovery, idle drift checks, stop during a database read, and draining an in-flight apply. Full local checks and GitHub CI/security workflows passed. All acceptance criteria are covered; production smoke execution in CI remains #13.
Activity
refactor(runtime): replace openresty with caddy
RentnerKev commentedon Sep 8, 2026
Implemented in 755e7d5, verified on
main.The durable source is PostgreSQL desired state. A single Web worker reads it at startup, coalesces concurrent changes, retries failed applies with 1–60 second backoff, and checks for drift without reapplying a healthy runtime. Caller deadlines return
pendingwhile the owned worker continues. Shutdown stops new applies and drains the in-flight operation.Real proxy smoke checks now stop the controller, commit a desired-state change, and verify automatic reconciliation after recovery without a manual apply. A separate freshly started Web worker process also restores persisted pending state without a user request. The status changes from pending to synced after confirmation. Native Caddy rejection and controlled probe failure preserve the previous live route/revision.
Unit tests cover coalescing, bounded acknowledgements, transient recovery, idle drift checks, stop during a database read, and draining an in-flight apply. Full local checks and GitHub CI/security workflows passed. All acceptance criteria are covered; production smoke execution in CI remains #13.