Skip to content

feat(protocol): preserve inference wire evidence - #712

Merged
GraciousGazelles merged 2 commits into
mainfrom
feat/inference-wire-evidence-w13328
Sep 5, 2026
Merged

GraciousGazelles merged 2 commits into
mainfrom
feat/inference-wire-evidence-w13328

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • add forward-compatible open scalar values for inference status, transport, and receipt fields
  • preserve tagged inference source objects and future fields across decode/encode
  • retain conservative lifecycle shaping and durable size bounds

Ops reference: w13328

Validation

  • cargo fmt --manifest-path codex-rs/Cargo.toml --package codex-protocol
  • cargo test -p codex-protocol inference_call_ --lib (12 passed)

Base: d79f6761d3e55ee23a7a622b7192b57962c73ae6
Candidate: 54bc6aa316288345284b2dd4663fb390bf1f9008

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the InferenceCallSource enum to track the local provenance of inference attempts and refactors several existing enums (InferenceCallStatus, InferenceCallTransport, and InferenceCallField) to support open-ended variants with an Unknown fallback. This ensures forward compatibility and lossless round-tripping of newer wire tokens. Comprehensive unit tests are also added to validate serialization, deserialization, and schema generation. The review feedback points out a forward-compatibility issue in the deserialization of the "code_mode" source type, where missing or malformed fields trigger a hard error instead of falling back to the Unknown variant, and provides a code suggestion to resolve it.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 5, 2026
Merged via the queue into main with commit 65f7640 Sep 5, 2026
163 of 171 checks passed
@GraciousGazelles
GraciousGazelles deleted the feat/inference-wire-evidence-w13328 branch September 5, 2026 19:33
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