Skip to content

fix(openshell-provider): compile gateway_source without the installation feature - #13296

Merged
cv merged 1 commit into
v1from
fix/gateway-source-cfg
Oct 16, 2026
Merged

cv merged 1 commit into
v1from
fix/gateway-source-cfg

Conversation

@cv

@cv cv commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Failure

#13291 removed mod external_inference; but left the #[cfg(feature = "installation")] attribute above it. The attribute now applies to mod gateway_source;. Without the installation feature, which is how fabric-provider depends on it, openshell-provider no longer compiles: unresolved import crate::gateway_source. cargo ci builds the workspace with features unified, so it didn't catch this. Building fabric-provider on its own does.

Decision

Remove the stray attribute; gateway_source was never feature-gated.

Validation

  • cargo build -p fabric-provider --all-targets and cargo clippy -p openshell-provider --no-default-features --all-targets -- -D warnings both compile again.
  • They failed on v1 before the change.

…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.
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit bda0b01 into v1 Oct 16, 2026
@cv
cv deleted the fix/gateway-source-cfg branch October 16, 2026 00:26
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.
@wscurran wscurran added area: architecture Architecture, design debt, major refactors, or maintainability bug-fix PR fixes a bug or regression v1 NemoClaw v1 branch labels Oct 26, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: architecture Architecture, design debt, major refactors, or maintainability bug-fix PR fixes a bug or regression v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants