Skip to content

Migrate Engine and Harness onto shared gateway-types - #93

Merged
vinniefalco merged 2 commits into
cppalliance:masterfrom
vinniefalco:master
Dec 2, 2026
Merged

vinniefalco merged 2 commits into
cppalliance:masterfrom
vinniefalco:master

Conversation

@vinniefalco

@vinniefalco vinniefalco commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Replace runvil-model-client and local error, model, and metrics definitions in runvil-types with gateway-types and gateway-client at commit 5315394ac4e44c00f727e0e69789c34c6dfc86b5. Re-export GatewayClient, GatewayEndpoint, and SecretString in crates/harness-gateway-client/src/lib.rs and remove convert.rs and broker.rs. Update ModelInfo and ModelBinding call sites for optional context and thinking values.

  • InferenceBroker and OfflineBroker stay in crates/harness-internal/runner/src/performers.rs beside Delta and PieceSink from gateway-types so IntoShared in harness-runner keeps all nine blanket and Arc implementations, and GatewayBroker forwards InferenceBroker calls directly to GatewayClient.
  • fill_model_set and failed_thinking in crates/runvil-internal/runtime/src/execute/context.rs report none when a model with None for context or thinking misses a declared min_context or thinking requirement, and prepare_chat in crates/runvil-internal/runtime/src/execute/scheduler/chat.rs skips precheck when binding.context() is None.
  • FACADES in crates/build-xtask/src/api/load.rs adds gateway-types to public for runvil-engine and runvil, and crates/runvil-engine/public-api.txt and crates/runvil/public-api.txt record the updated surface.

Summary by CodeRabbit

  • New Features
    • Model information can now omit context-window and thinking-mode details. When context is unavailable, model listings leave it out; prompt requirements report unspecified capabilities as “none.”
  • Bug Fixes
    • Requests without a known context window are no longer blocked by context-size prechecks.
    • Models with unspecified thinking capabilities are correctly treated as not meeting prompts that require a specific thinking mode.

Replace `runvil-model-client` and local error, model, and metrics definitions in `runvil-types` with `gateway-types` and `gateway-client` at commit `5315394ac4e44c00f727e0e69789c34c6dfc86b5`. Re-export `GatewayClient`, `GatewayEndpoint`, and `SecretString` in `crates/harness-gateway-client/src/lib.rs` and remove `convert.rs` and `broker.rs`. Update `ModelInfo` and `ModelBinding` call sites for optional `context` and `thinking` values.

- `InferenceBroker` and `OfflineBroker` stay in `crates/harness-internal/runner/src/performers.rs` beside `Delta` and `PieceSink` from `gateway-types` so `IntoShared` in `harness-runner` keeps all nine blanket and `Arc` implementations, and `GatewayBroker` forwards `InferenceBroker` calls directly to `GatewayClient`.
- `fill_model_set` and `failed_thinking` in `crates/runvil-internal/runtime/src/execute/context.rs` report `none` when a model with `None` for `context` or `thinking` misses a declared `min_context` or `thinking` requirement, and `prepare_chat` in `crates/runvil-internal/runtime/src/execute/scheduler/chat.rs` skips `precheck` when `binding.context()` is `None`.
- `FACADES` in `crates/build-xtask/src/api/load.rs` adds `gateway-types` to `public` for `runvil-engine` and `runvil`, and `crates/runvil-engine/public-api.txt` and `crates/runvil/public-api.txt` record the updated surface.
Set `default-features = false` on `gateway-client` in `[workspace.dependencies]` in `Cargo.toml` and inherit `gateway-client.workspace = true` in `crates/harness-gateway-client/Cargo.toml` so Cargo 1.95 accepts the workspace manifest.
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Explain Change →

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@vinniefalco vinniefalco closed this Dec 2, 2026
@vinniefalco vinniefalco reopened this Dec 2, 2026
@vinniefalco
vinniefalco merged commit a506470 into cppalliance:master Dec 2, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant