Skip to content

Add bounded inference-attempt observation contract - #519

Closed
GraciousGazelles wants to merge 4 commits into
mainfrom
agent/w10937-provider-observation-protocol-bounds
Closed

GraciousGazelles wants to merge 4 commits into
mainfrom
agent/w10937-provider-observation-protocol-bounds

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • add a payload-free inference_call event contract with exact call, thread, turn, and optional spawn-request correlation
  • keep configured provider, requested model and tier, and provider-observed provider/model/snapshot/tier as distinct evidence
  • define started, completed, failed, and cancelled shapes with optional exact per-response usage
  • enforce UTF-8-safe per-field and 4096-byte aggregate bounds with explicit truncation and omission provenance
  • accept unknown future event types without failing event consumption
  • register the focused hosted contract lane and the required downstream carry records

Scope

This stage defines and bounds the protocol only. It does not add provider HTTP or WebSocket emission, terminal arbitration, persistence or query projection, pricing, prompts, outputs, headers, error bodies, or secrets.

Validation

  • git diff --check
  • focused hosted lane: codex.inference-observation-contract-targeted (dispatch pending on this exact PR head)

Local Rust build, test, format, check, and code generation were intentionally not run; repository policy routes that proof to GitHub-hosted runners.

@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 a payload-free InferenceCall protocol event and an Unknown fallback variant to observe client-side provider inference attempts. It defines the event structure, serialization limits (under a 4096-byte cap), and lifecycle shapes, along with comprehensive unit tests, documentation, and a new CI validation lane. I have no feedback to provide as there are no review comments.

@GraciousGazelles
GraciousGazelles force-pushed the agent/w10937-provider-observation-protocol-bounds branch from a42fbc0 to 0ef43ff Compare July 28, 2026 07:37
@GraciousGazelles
GraciousGazelles marked this pull request as ready for review July 28, 2026 07:43
@GraciousGazelles
GraciousGazelles force-pushed the agent/w10937-provider-observation-protocol-bounds branch from 0ef43ff to 4344797 Compare July 28, 2026 07:49
@GraciousGazelles
GraciousGazelles force-pushed the agent/w10937-provider-observation-protocol-bounds branch from 4344797 to 2b2dbc4 Compare July 28, 2026 08:05
@GraciousGazelles
GraciousGazelles force-pushed the agent/w10937-provider-observation-protocol-bounds branch from 2b2dbc4 to 44a7ddb Compare July 28, 2026 17:10
@GraciousGazelles
GraciousGazelles enabled auto-merge (squash) July 29, 2026 04:58
@GraciousGazelles

Copy link
Copy Markdown
Collaborator Author

Superseded by #548, the signed replacement for this inference-observation change; #548 has merged through the native queue.

sedna-release-publisher Bot pushed a commit that referenced this pull request Sep 15, 2026
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