Repository navigation
fix(antigravity): preserve protocol fidelity and fail closed - #8098
nguyenha935 wants to merge 3 commits into
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
Ready for review. The description now includes privacy-safe operational soak evidence (53,997 real model calls across five accounts, 99.92% HTTP 2xx, zero HTTP 403) together with the exact automated and artifact-deployment validation. The soak is explicitly scoped as supporting evidence rather than a guarantee against provider-side enforcement. |
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
…e#8013) with protocol-fidelity + fail-closed (cheaper-inference#8098) Merges the two overlapping Antigravity PRs into one: - cheaper-inference#8013 (backryun): catalog rebuild + IDE/CLI/IDE-Node client-identity split + profile-aware headers. - cheaper-inference#8098 (nguyenha935): fail-closed safety-settings, credits-retry-state, signal/abort propagation, tool-cloaking (no synthetic includeServerSideToolInvocations flag), dedicated bootstrap URL list. User-Agent hybrid (owner decision): OS/arch token pinned to darwin/arm64 (the native macOS client fingerprint the upstream expects, cheaper-inference#8098) while keeping the IDE/CLI/IDE-Node UA split (cheaper-inference#8013). Bootstrap uses cheaper-inference#8098's dedicated single production loadCodeAssist URL + cheaper-inference#8013's logic + cheaper-inference#8098's abort signal. cheaper-inference#6914 reversed per cheaper-inference#8098 protocol fidelity. cheaper-inference#8098's onboard-tier detection is NOT ported (architecturally incompatible with cheaper-inference#8013's antigravityClientProfile rewrite) — follow-up. Full antigravity suite 303/303 green; needs a VPS fingerprint smoke before merge (Hard Rule cheaper-inference#18). Co-authored-by: nguyenha935 <nguyenha935@users.noreply.github.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
|
Obrigado, @nguyenha935 — excelente trabalho de protocol fidelity. Este PR foi fundido com o #8013 (@backryun) numa entrega única, já que os dois reescreviam o mesmo subsistema Antigravity com designs opostos (decisão do dono). Todo o seu trabalho foi preservado no #8013 com sua co-autoria: fail-closed nas safety-settings, credits-retry-state, propagação de Fechando este em favor do #8013 (que carrega a fusão + sua co-autoria). Uma ressalva: o fluxo de onboard-tier (harness profile + |
Summary
off, one-shotretry, and credit-firstalwaysmodes_toolNameMapnever leaks into serialized upstream requestsRoot cause and impact
The previous path mixed request compatibility with prompt/tool mutation, reused discovery/bootstrap surfaces as runtime fallbacks, and allowed some abort/credits state to affect later requests. That could change caller semantics, send internal metadata upstream, repeat project bootstrap work, or disable credits after a client-side cancellation.
This change keeps compatibility at the protocol/header/endpoint layer while preserving user content, making paid-credit behavior explicit, and ensuring client aborts do not count as upstream credits failures.
Validation
Validation on production-code commit e5c8c55 (the only follow-up commit renames and formats the PR-numbered changelog fragment):
check-public-creds,check-test-discovery, and changelog integrity passed29902026734High-volume operational soak evidence
Before opening this PR, the same Antigravity provider path and patch lineage was used for a real translation workload through both OmniRoute and 9router. Aggregate, privacy-safe counters from the self-hosted OmniRoute
call_logstable cover2026-07-21T04:50:03Zthrough2026-07-22T08:41:57Z:antigravity/gemini-3.5-flash-lowcallsThe accounts continued serving requests across the day boundary. No prompts, responses, credentials, or account identifiers are included in this PR.
This soak is supporting operational evidence from the same provider path and pre-PR patch lineage, not a claim that a client can guarantee protection from provider-side bans. Most of the workload preceded the final review-only fixes on this exact commit; exact-commit correctness is covered by the automated regression suite and the attested deployment gates above. Operators must still follow the upstream terms, keep paid credits opt-in, and apply sensible per-account rate limits.
Changed test coverage
The PR adds or updates regression coverage for: