Repository navigation
feat(fabric-provider): stop the Fabric agent when fabric_agent is removed - #13298
Merged
Merged
Conversation
…ion feature Removing mod external_inference left its feature gate on the next line, gating gateway_source. Without the installation feature, as fabric-provider depends on it, openshell-provider failed to compile.
…oved Removing a fabric_agent forgot its binding and left the agent running. Removal now calls the host's existing prepare operation, which stops the runtime through Fabric's own stop and clears its configuration, leaving the sandbox. A sandbox that is already gone needs nothing; a failed stop keeps the binding for the next apply or destroy to retry.
cv
enabled auto-merge (squash)
October 16, 2026 00:26
This was referenced Oct 16, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #13234. Part of #13131.
Failure
Removing a
fabric_agentforgot its binding but left the agent running in the sandbox, with its configuration applied. OpenTofu users expect removing an attachment-style resource to stop what it started and leave the thing it's attached to.Decision
Fabric stops its own runtime, using an operation the bridge host already has, so the agent image needs no change.
prepareoperation with the agent's last applied configuration and the host's current generation.preparestops the Fabric runtime through Fabric's nativestop()and clears the applied configuration. The sandbox and its host stay.readrefuses it.prepare.provider.md,agents.mdanddesign/fabric-management.mddescribe the new removal.Stacked on #13296, which fixes a build error in
openshell-providerwithout itsinstallationfeature. The Fabric contract tests hit that error when built on their own.Validation
removing_an_agent_stops_it_and_keeps_its_sandbox. Removal stops the agent, clears its configuration, and keeps the sandbox. With the sandbox already gone, removal succeeds. It failed before the change at "removal stops the agent".pi_configuration_updates_without_replacing_the_sandbox. Destroy now stops Pi once (oneprepare) before removing its sandbox, and never reconfigures it. The fake gateway's exec truncation, set earlier in that test, is turned off before the destroy.cargo cipasses locally: 1530 unit tests, 144 lifecycle tests.cargo ci live-dockerpasses: 11 tests.fern check: 0 errors, the same single warning as before.