Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(grok-llm-proxy): require invalid_tool_arguments in the frozen taxonomy (#739)
Alfredo Lopezf36ced3a0492
diff --git a/grok-llm-proxy/test/contractFreeze.test.ts b/grok-llm-proxy/test/contractFreeze.test.tsindex cf525ba98..0654bb447 100644--- a/grok-llm-proxy/test/contractFreeze.test.ts+++ b/grok-llm-proxy/test/contractFreeze.test.ts@@ -108,4 +108,17 @@ describe('grok-subscription contract freeze', () => {expect(constant('GROK_OAUTH_REVOKE_URL')).toBe(fixture.origins.oauthRevoke)expect(fixture.origins.oauthRevoke).toBe('https://auth.x.ai/oauth2/revoke')})++ it('T-R9-9b-grok lists invalid_tool_arguments in the frozen error taxonomy', () => {+ // R9-9 (N-4): the proxy answers a malformed tool call with this code, as the+ // Codex fixture already records.+ const fixture = JSON.parse(readFileSync(fixturePath, 'utf8')) as {+ errorTaxonomy: unknown+ }+ const errors = fixture.errorTaxonomy+ // Witness: the taxonomy was read and is a non-empty list of codes.+ expect(Array.isArray(errors) && errors.length > 0).toBe(true)+ expect(errors).toContain('provider_unavailable')+ expect(errors).toContain('invalid_tool_arguments')+ })})