DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to trace which provider and policy handled a bad AI answer with Synapass

Look up a request ID to see the routing reason, policy verdict, and answering provider.

Short answer: Copy the request_id from the synapass block of the response that needs review; then run curl -s $GATEWAY/admin/v1/requests/<request_id>/explain -H "Authorization: Bearer $SYNAPASS_ADMIN_KEY"; check the policy verdict, cache decision, and routing reason in the explain output. All steps.

Who it is forAn engineer investigating a complaint about a wrong or slow AI answer and needing to know which model produced it.

The problemWithout a central record, it is hard to tell which model, provider, or fallback produced a specific answer.

The outcomeThe engineer gets the routing explanation for one request ID, including the provider that actually answered.

What you need first

  • Docker with Docker Compose, curl, and jq, or Go and Make for the native build
  • At least one provider API key such as OPENAI_API_KEY or ANTHROPIC_API_KEY in .env
  • A host with ports 8080 and 3000 free, or a changed GATEWAY_PORT

Steps

  1. Copy the request_id from the synapass block of the response that needs review.
  2. Run curl -s $GATEWAY/admin/v1/requests/<request_id>/explain -H "Authorization: Bearer $SYNAPASS_ADMIN_KEY". (inferred, check the README)
  3. Check the policy verdict, cache decision, and routing reason in the explain output.
  4. Compare provider with requested_model and routed_model in the original response to confirm what answered.

Prompt for your agent

In the ShadowSafin/Synapass repo, call GET /admin/v1/requests/<request_id>/explain with the admin key and summarize the routing reason and the answering provider. Verify that the summary names the same provider as the synapass.provider field in the original response.

Caveat. The explain endpoint is described in the README, but its exact response fields are not shown there, so check the output format against the documentation before you build automation on it.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for ShadowSafin/Synapass and "Trace which provider and policy handled a bad AI answer"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer