Why did Polarity fail?
Polarity may fail for one of the following reasons:-
Your original code doesn’t compile or run.
- Ensure the repository builds and tests pass locally. Fix baseline issues before re‑running Polarity.
-
Your code only runs with local secrets or environment restrictions Polarity can’t access.
- Avoid relying on local
.envfiles or machine‑specific configuration. Use safe mock values or CI‑compatible defaults.
- Avoid relying on local
-
Polarity made a mistake and the Verifier can’t repair it.
- In this case, Polarity will not push changes to avoid breaking your codebase. Review the PR or logs, and re‑run after addressing constraints.
Where can I find my API key?
To find your Polarity API key:- Navigate to the Polarity dashboard
- Click on your user profile menu in the top right corner
- Select “Copy API Key” from the dropdown menu

- Authenticating with the Polarity CLI (
pt auth login <your-api-key>) - Integrating with CI/CD pipelines
- Using the Polarity API directly
Keep your API key secure and never commit it to version control. Treat it like a password.
General troubleshooting
- Confirm the GitHub App is installed and has required permissions.
- Make sure the repository and branch are enabled in the dashboard.
- Re‑run the analysis after addressing compile/test errors.

