Skip to content

fix(translator): drop invalid reasoning signatures in interactions→Responses - #4

Merged
warelik merged 1 commit into
warelik/mission-integrationfrom
ao/airouters-17-gpt-codex-reasoning
Aug 22, 2026
Merged

fix(translator): drop invalid reasoning signatures in interactions→Responses#4
warelik merged 1 commit into
warelik/mission-integrationfrom
ao/airouters-17-gpt-codex-reasoning

Conversation

@warelik

@warelik warelik commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Interactions → OpenAI Responses response translator was copying foreign reasoning signatures (thoughtSignature, signature, encrypted_content from non-GPT providers) into reasoning.encrypted_content without validation.
  • This violates the GPT/Codex doctrine: only GPT/Codex encrypted_content can round-trip through Responses reasoning items.
  • Now interactionsReasoningEncryptedContent validates the candidate with signature.InspectGPTReasoningSignature and drops invalid/foreign blobs while preserving the visible summary.
  • Tests updated: valid gAAAA... GPT signature is preserved; invalid foreign signature is dropped.

Cross-links

Verification

  • go build -o /tmp/cli-proxy-api ./cmd/server
  • go test ./... (7686 passed)
  • go test ./internal/translator/openai/interactions/responses/

…sponses

Interactions thought signatures can come from non-GPT providers
(Gemini thoughtSignature, Claude signature, etc.). When translating
an interactions stream into OpenAI Responses, only a valid GPT/Codex
reasoning encrypted_content should appear in the reasoning item.
Foreign signatures are now filtered through InspectGPTReasoningSignature.

Tests updated: valid gAAAA signature is preserved, invalid foreign
signature is dropped.
@warelik
warelik force-pushed the ao/airouters-17-gpt-codex-reasoning branch from 9552176 to 119b955 Compare August 22, 2026 05:01
@warelik
warelik merged commit 550f407 into warelik/mission-integration Aug 22, 2026
2 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