OpenShell: gateway providers holding model keys outlive a daemon crash #1970

Closed
opened 2026-11-13 16:34:39 +00:00 by sam · 2 comments
Owner

Problem

On the OpenShell runtime each task's model keys are registered as gateway providers when the task starts and deleted when it ends. If archied stops between the two (crash, kill, host restart), those providers stay on the gateway with real keys in them. Nothing removes them: the boot sweep removes only sandboxes.

Wanted

Mark the providers archie creates as this instance's, and delete leftovers at boot alongside the sandbox sweep.

Done when

After archied is killed mid-task and restarted, no provider it created for that task remains on the gateway.

## Problem On the OpenShell runtime each task's model keys are registered as gateway providers when the task starts and deleted when it ends. If archied stops between the two (crash, kill, host restart), those providers stay on the gateway with real keys in them. Nothing removes them: the boot sweep removes only sandboxes. ## Wanted Mark the providers archie creates as this instance's, and delete leftovers at boot alongside the sandbox sweep. ## Done when After archied is killed mid-task and restarted, no provider it created for that task remains on the gateway.
sam added the bughigh labels 2026-11-13 16:34:39 +00:00
Author
Owner

Landed on main; task check passed on the merged tree. Not yet proven live.

Landed on main; task check passed on the merged tree. Not yet proven live.
Author
Owner

Verified live: after several archied restarts under the OpenShell runtime, the gateway lists no providers, so the boot sweep leaves no keys behind. Sweep covered by TestOpenShellModelEgressSweepsOnlyItsOwnLeftovers.

Verified live: after several archied restarts under the OpenShell runtime, the gateway lists no providers, so the boot sweep leaves no keys behind. Sweep covered by TestOpenShellModelEgressSweepsOnlyItsOwnLeftovers.
sam closed this issue 2026-11-14 06:36:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1970