Repository navigation
feat(showcase): forward probe mock headers onto google-antigravity model calls - #7664
Merged
Merged
Conversation
mme
requested review from
jpr5,
marthakelly,
ranst91 and
tylerslaton
as code owners
October 6, 2026 09:44
Contributor
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords (4)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
Production Digest-Pinning AuditAll 42 services digest-pinned. Run 2026-10-06 05:01:41 PDT — 0 finding(s). |
mme
force-pushed
the
mme/pni-576-forward-mock-headers
branch
from
October 6, 2026 10:08
2b098fb to
ed3b714
Compare
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-core
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-telegram
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/intelligence-langgraph
@copilotkit/intelligence-mastra
@copilotkit/learning
@copilotkit/mcp-apps-renderer
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
…del calls Google's Go harness, not the Python agent, makes Antigravity's model calls, so a probe's X-AIMock-Strict, x-test-id and x-diag-* headers stopped at the agent hop. A fixture miss then proxied to the real provider instead of failing, and the harness could only match the run's model calls in aimock's journal by integration, not by run. Pass the adapter `endpoint` as a callable (ag-ui-antigravity 0.2.1). It is resolved per session, inside the conversation's first request, where the header middleware has captured the inbound headers. aimock_headers() forwards x-aimock-*, x-test-id and x-diag-* when present, always sets this package's x-aimock-context, and is reused by the two Python-side Gemini calls (subagents, a2ui_dynamic). Headers are fixed per conversation; PARITY_NOTES records that limit. Until 0.2.1 is released, requirements.txt pins the adapter to ag-ui-protocol/ag-ui#2969's head commit (archive URL, no git needed in the image), with a matching documented override in showcase-canonical-pins.json. Both are swapped for ==0.2.1 before merge. Refs PNI-576
0.2.1 is the release of ag-ui-protocol/ag-ui#2969 (per-session endpoint factory). Replaces the preview archive pin and drops its temporary validate-pins override.
mme
force-pushed
the
mme/pni-576-forward-mock-headers
branch
from
October 6, 2026 12:01
ed3b714 to
39828fe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Forwards a probe's mock and diagnostic headers onto Google Antigravity's model calls (PNI-576).
Pins
ag-ui-antigravity==0.2.1, the release of ag-ui-protocol/ag-ui#2969 (per-session endpoint factory). The preview archive pin used while 0.2.1 was unreleased has been replaced, and its temporaryvalidate-pinsoverride removed.Problem
Google's Go harness, not the Python agent, makes Antigravity's model calls, so the probe's
X-AIMock-Strict,x-test-idandx-diag-*headers stopped at the agent hop. A fixture miss therefore proxied to the real provider instead of failing, and the harness could only match a run's model calls in aimock's journal by integration, not by run.Change
endpointis passed to the adapter as a callable (ag-ui#2969). It's resolved per session, inside the conversation's first request, whereHeaderForwardingHTTPMiddlewarehas captured the inbound headers.aimock_headers()forwardsx-aimock-*,x-test-idandx-diag-*when present, and always sets this package'sx-aimock-context, which can't be overridden by the request. Otherx-*headers (x-forwarded-for, …) aren't forwarded, and plain demo traffic is never made strict.subagents.py,a2ui_dynamic.py) use the same headers.PARITY_NOTES.md"LLM path" is rewritten to match. Remaining limit: headers are fixed per conversation (the SDK sets the model config when a conversation starts). Probes use a fresh thread per conversation, so per-run correlation holds.Verification
aimock_headers()and the callable endpoint.validate-pins: google-antigravity[OK], repo FAIL count at the baseline of 26.--proxy-onlywith an unreachable provider: a probe-style request's model call carried strict, test and diagnostic headers, and droppedx-forwarded-for. A strict miss got 503 with no proxy attempt; a non-strict miss still proxied.X-AIMock-Strict: true,x-test-idandx-diag-run-id, with zero fixture misses.