Stabilize provider compatibility integration verification

Keep integrated G008 provider changes formatted and compile-ready so worker follow-up commits can merge against a clean leader baseline.

Constraint: G008 provider verification must pass before ultragoal checkpointing.
Confidence: high
Scope-risk: narrow
Directive: Keep provider compatibility follow-ups rebased on this formatted baseline before retrying failed cherry-picks.
Tested: cargo test --manifest-path rust/Cargo.toml -p api providers:: -- --nocapture; cargo test --manifest-path rust/Cargo.toml -p api --test openai_compat_integration -- --nocapture --test-threads=1
Not-tested: full workspace clippy; known pre-existing runtime policy_engine LaneContext clippy warning remains outside this change.

Co-authored-by: OmX <omx@oh-my-codex.dev>
This commit is contained in:
bellman
2026-05-15 10:28:50 +09:00
parent 1a110bd870
commit 2cac66cd38
3 changed files with 14 additions and 7 deletions

View File

@@ -851,7 +851,10 @@ mod tests {
fn provider_capability_matrix_snapshots_openai_compat_differences() {
let openai = provider_capabilities_for_model("openai/gpt-4.1-mini");
assert_eq!(openai.provider, ProviderKind::OpenAi);
assert_eq!(openai.wire_protocol, ProviderWireProtocol::OpenAiChatCompletions);
assert_eq!(
openai.wire_protocol,
ProviderWireProtocol::OpenAiChatCompletions
);
assert_eq!(openai.auth_env, "OPENAI_API_KEY");
assert_eq!(openai.streaming_usage, ProviderFeatureSupport::Supported);
assert_eq!(openai.reasoning_effort, ProviderFeatureSupport::Supported);
@@ -872,7 +875,10 @@ mod tests {
let anthropic = provider_capabilities_for_model("claude-sonnet-4-6");
assert_eq!(anthropic.provider, ProviderKind::Anthropic);
assert_eq!(anthropic.wire_protocol, ProviderWireProtocol::AnthropicMessages);
assert_eq!(
anthropic.wire_protocol,
ProviderWireProtocol::AnthropicMessages
);
assert_eq!(anthropic.prompt_cache, ProviderFeatureSupport::Supported);
assert_eq!(
anthropic.custom_parameters,
@@ -911,9 +917,9 @@ mod tests {
assert!(codes.contains(&"deepseek_v4_reasoning_history"));
assert!(codes.contains(&"web_search_passthrough_tool"));
assert!(codes.contains(&"web_fetch_passthrough_tool"));
assert!(diagnostics.iter().any(|diagnostic| diagnostic
.action
.contains("provider adapter")));
assert!(diagnostics
.iter()
.any(|diagnostic| diagnostic.action.contains("provider adapter")));
}
#[test]