mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-24 10:53:12 +08:00
Without a protobuf wrapper, the ciphertext after the Tink prefix byte is indistinguishable from uniform random bytes. Matching only the 0x01 prefix byte claimed about 1/256 of unenveloped payloads as Gemini: xAI encrypted_content starting with 0x01 was then rejected by the Grok validator and dropped from replay, and Kimi signatures were misclassified. - require the observed Vertex key id (8f3d6b5f) in addition to the prefix byte; a rotated key falls back to the bypass sentinel, which is the behavior before bare-Tink recognition - expose IsGeminiVertexBareTinkSignature and scope the Gemini Interactions sanitizer: the public endpoint drops bare-Tink thought steps, the Vertex Interactions endpoint keeps them - restore the xAI seed and Kimi ordering tests that had been adjusted around the false positive, and add regressions for a 0x01-leading Grok payload and an unknown key id