Skip to content

test(engine): live-confirm the OpenAI leg of Rig-backed completion#207

Merged
DavidSouther merged 1 commit into
main_twofrom
feature/c-openai-live-confirm
Jul 8, 2026
Merged

test(engine): live-confirm the OpenAI leg of Rig-backed completion#207
DavidSouther merged 1 commit into
main_twofrom
feature/c-openai-live-confirm

Conversation

@DavidSouther

Copy link
Copy Markdown
Owner

Summary

  • Adds tests/rig_engine_openai.rs, a live integration test confirming openai_from_env completes a real round trip against gpt-4o-mini, gated on OPENAI_API_KEY (silently skipped when absent).
  • Feature-step C (OpenAI leg) of the ailly-evals project (session 2026-07-06-A-ailly-evals). Production code already existed and was unit-tested — this is the first live confirmation, per the parent design's "no code dependency, run whenever credentials land" framing.
  • Confirms both flagged rough edges hold today: a system+user turn round-trips (system-prompt placement under Responses API churn), and the gen_ai.system OpenTelemetry attribute correctly reads "openai" end to end (not just for the already-tested Anthropic leg).
  • Deliberately does not exercise tool-calling — CompletionRequest has no tools field on any provider yet, a pre-existing gap already tracked in docs/developer/TASKS.md ("live tool-definition wiring is completely missing").
  • Gemini and Bedrock legs are out of scope for this PR (Gemini blocked on credentials; Bedrock explicitly paused per a standing project decision).

Test plan

  • cargo test --test rig_engine_openai (live, passes with OPENAI_API_KEY set)
  • cargo test (full suite, green)
  • cargo test --no-default-features
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo fmt --check (only pre-existing, unrelated drift in calibration.rs remains, confirmed present on main_two before this change)

Co-Authored-By: "Ailly developer@ailly.dev"

Feature C (OpenAI leg) of the ailly-evals project. openai_from_env
and its ContentBlock/AssistantContent mapping already existed and
were unit-tested; this is the first live round trip against OpenAI,
mirroring tests/rig_engine.rs's Anthropic shape. Confirms both
flagged rough edges hold today: a system+user turn round-trips
(system-prompt placement), and gen_ai.system correctly reads "openai"
end to end. Does not exercise tool-calling — CompletionRequest has no
tools field on any provider yet (tracked separately in TASKS.md).

Co-Authored-By: "Ailly <developer@ailly.dev>"
@DavidSouther
DavidSouther merged commit 3db6afa into main_two Jul 8, 2026
0 of 2 checks passed
@DavidSouther
DavidSouther deleted the feature/c-openai-live-confirm branch July 8, 2026 19:24
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