Skip to content

fix(supervisor): preserve streams across queued authority renewals - #5869

Open
TaylorMutch wants to merge 1 commit into
mainfrom
fix/5868-app-listener-lease-renewal/TaylorMutch
Open

TaylorMutch wants to merge 1 commit into
mainfrom
fix/5868-app-listener-lease-renewal/TaylorMutch

Conversation

@TaylorMutch

@TaylorMutch TaylorMutch commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Keep application streams open when serving authority was renewed before the previous deadline. A queued renewal and an expired old timer can both be ready when the stream task resumes; choosing that timer currently closes a stream whose lease remains valid.

Related Issue

Closes #5868

Changes

  • Recheck current route and lease validity when the timer fires before deciding to close the stream.
  • Add a paused-time regression covering a queued renewal across the old deadline and closure at the renewed deadline. Existing expiry and revocation checks remain intact.

Release Notes

Testing

  • All 304 supervisor library tests pass after rebasing onto main at 96f407a85.
  • Strict supervisor Clippy across all targets and Rust formatting pass.
  • Rust regression test added.

Two isolated GKE partition runs also passed with this fix on the feature-stack build, including peer WebSocket survival, old-owner fencing, takeover, and gateway fallback. The Kubernetes qualification harness is separate and is not included in this PR.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 20, 2026
@TaylorMutch TaylorMutch added area:runtime Sandbox execution, isolation, supervision, policy enforcement, networking, and provider lifecycle. topic:networking General network transport, connectivity, and proxy behavior. topic:reliability High availability, recovery, retries, graceful degradation, and correctness across restarts. labels Nov 20, 2026
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
@TaylorMutch
TaylorMutch force-pushed the fix/5868-app-listener-lease-renewal/TaylorMutch branch from 5f8d946 to c1aea5b Compare November 23, 2026 17:27

This branch has not been deployed

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

Labels

area:runtime Sandbox execution, isolation, supervision, policy enforcement, networking, and provider lifecycle. state:accepted A maintainer decided OpenShell should pursue this issue topic:networking General network transport, connectivity, and proxy behavior. topic:reliability High availability, recovery, retries, graceful degradation, and correctness across restarts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: renewed app-listener authority can close a valid stream

1 participant