Skip to content

Troubleshooting

When something goes wrong, start here:

  1. Is the gate authenticated?FORGECROFT_API_KEY must be set to a valid key. Confirm the key in the Forgecroft console under Settings → API keys.
  2. Is the repository connected? — Confirm the GitHub App is installed on the repository.
  3. Has the repository’s evidence been ingested? — Without a system map, there is nothing to evaluate a change against. Ingest evidence through the Forgecroft console or the ontologize tool over MCP (Model Context Protocol).
  4. Is your subscription active?GET /billing shows the subscription status.

Symptoms: forgecroft-gate or the CI gate returns insufficient_context for a change.

Likely CauseHow to VerifyHow to Fix
The repository has not been ingestedThe map has no Components for the touched pathsIngest evidence through the Forgecroft console or the ontologize tool over MCP (Model Context Protocol) to build the map
The change touches paths outside the mapped surfaceThe blast radius reports thin coverage for the touched areaIngest the missing layer, or treat the verdict as advisory until coverage grows
No Controls scope the touched ComponentsGET /describe shows no Controls for the areaThis is expected — the gate reports honestly rather than faking certainty

Symptoms: A pull request opens but no gate comment appears.

Likely CauseHow to VerifyHow to Fix
The gate workflow isn’t installedNo forgecroft-gate job in the PR checksAdd the Forgecroft Gate GitHub Action workflow — see CI Gate
The API key in CI is missing or invalidThe workflow logs show a 401Set FORGECROFT_API_KEY in the CI secrets
The GitHub App lacks comment permissionThe app isn’t installed, or was removedRe-install the GitHub App

Evidence Ingest Produces an Empty or Thin Map

Section titled “Evidence Ingest Produces an Empty or Thin Map”

Symptoms: Evidence ingest runs but few or no Components appear.

Likely CauseHow to VerifyHow to Fix
Ingest ran against the wrong repositoryThe map has no Components for the repository you expectedRe-run ingest against the repository root
Proposals awaiting reviewProposals were created but not yet approvedApprove the pending proposals in the Forgecroft console

Symptoms: 401 or 403 responses when using an API key.

Likely CauseHow to VerifyHow to Fix
Key is suspendedGET /api-keys/{id} shows suspended: truePATCH /api-keys/{id} with {"suspended": false}
Key has expiredGET /api-keys/{id} shows past expires_atCreate a new key
Key scope doesn’t match resourceKey is project-scoped but you’re accessing a different projectCreate an org- or project-scoped key
Missing capability scopeKey has scoped capabilities but lacks the needed oneCreate a new key with the required capabilities
Wrong auth headerUsing a cookie instead of a Bearer tokenUse Authorization: Bearer fc_live_...

Symptoms: An event occurs but no notification arrives.

Likely CauseHow to VerifyHow to Fix
No notification config attachedCheck the project’s notification_config_idsAdd a notification config
User notification preference is noneGET /me/notification-preferencesPUT /me/notification-preferences with email or slack_dm
Slack not connectedGET /slack-connections returns emptyConnect Slack via the OAuth flow