Repository navigation
fix(openshell-provider): compile gateway_source without the installation feature - #13296
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.
Contributor
cv
added a commit
that referenced
this pull request
Oct 16, 2026
…oved (#13298) Closes #13234. Part of #13131. ## Failure Removing a `fabric_agent` forgot 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. - **What removal does:** it calls the host's existing `prepare` operation with the agent's last applied configuration and the host's current generation. `prepare` stops the Fabric runtime through Fabric's native `stop()` and clears the applied configuration. The sandbox and its host stay. - **Edge cases:** - If the sandbox is already gone, removal succeeds. - If the host is already stopped with no configuration, nothing changes. - If stopping fails, removal fails and keeps the binding, so the next apply or destroy retries. - A different sandbox under the same name is refused, as `read` refuses it. - **No compatibility handling:** the issue's "image without the operation" case doesn't apply, because every agent image already has `prepare`. - **Docs:** `provider.md`, `agents.md` and `design/fabric-management.md` describe the new removal. Stacked on #13296, which fixes a build error in `openshell-provider` without its `installation` feature. The Fabric contract tests hit that error when built on their own. ## Validation - **New contract test** `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". - **Updated test:** `pi_configuration_updates_without_replacing_the_sandbox`. Destroy now stops Pi once (one `prepare`) 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 ci` passes locally: 1530 unit tests, 144 lifecycle tests. - `cargo ci live-docker` passes: 11 tests. - `fern check`: 0 errors, the same single warning as before.
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.
Failure
#13291 removed
mod external_inference;but left the#[cfg(feature = "installation")]attribute above it. The attribute now applies tomod gateway_source;. Without theinstallationfeature, which is howfabric-providerdepends on it,openshell-providerno longer compiles:unresolved import crate::gateway_source.cargo cibuilds the workspace with features unified, so it didn't catch this. Buildingfabric-provideron its own does.Decision
Remove the stray attribute;
gateway_sourcewas never feature-gated.Validation
cargo build -p fabric-provider --all-targetsandcargo clippy -p openshell-provider --no-default-features --all-targets -- -D warningsboth compile again.v1before the change.