Skip to content

Troubleshooting

Impact Analysis Returns Almost Nothing

Common causes:

  • no route-families.json yet
  • changed files are not represented in the manifest
  • --path or --tests-root points at the wrong place
  • the diff base from --since is not what you expected

Start with:

Terminal window
npx impact-gate impact --path . --since origin/main
npx impact-gate train --no-enrich --path .

Advisory Planning Recommends Everything

That is the current pilot behavior for every nonempty diff. Read advisory.fileAssessments and fullSuiteFallbackReasons: CI/E2E, dependencies and unknown mappings require full fallback. Declaring a manifest entry human-reviewed does not authenticate it. Do not reduce execution based on that declaration or a successful report. See the Mattermost guide.

For validation errors, verify the full base ref exists in the clone, HEAD matches the intended source, the tracked checkout is clean, and every configured spec/config path is committed and present. Sparse or hidden-index changes cannot silently shrink the inventory. Fetch missing history; do not substitute an invalid ref with an empty diff.

Confidence Feels Too Low

Ordinary confidence is a heuristic score, not a measured accuracy rate. Advisory reports deliberately use null with confidenceKind: "unavailable"; this is not a calibration failure.

Improve confidence by:

  • refining route-families.json
  • ingesting traceability data from CI
  • narrowing the diff base
  • fixing unmapped source paths

Too Many Files Show Up As Unmapped

This usually points to a manifest-quality problem.

Review:

  • missing frontend/server paths
  • renamed directories
  • new features without family coverage
  • helper files that should be attached through dependency or name matching

generated-needs-review/ Keeps Filling Up

That means the hallucination guardrails are doing their job.

Common reasons:

  • missing or incomplete page-object extraction
  • stale route-family context
  • generation being asked to cover flows with weak evidence
  • project-specific helpers not reflected in the local API surface

Treat this as a signal to improve grounding, not as a reason to disable the guardrails.

AI Provider Problems

Check the configured provider first:

Terminal window
npx impact-gate llm-health

Then verify that the correct environment variable is actually set for your shell or CI runtime.

CI Output Is Hard To Interpret

Look at the written artifacts instead of relying only on console output:

  • .e2e-ai-agents/plan.json
  • .e2e-ai-agents/ci-summary.md
  • .e2e-ai-agents/metrics-summary.json

For plan --advisory, these files are not written. Save stdout to a JSON file and check the exit status; diagnostics go to stderr. Execution evidence and full-worker completeness must be evaluated separately.

Release Diff Looks Too Broad

This usually means the release comparison is correct but your knowledge layer is too coarse.

Try:

  • tightening route-family scopes
  • improving spec directory mappings
  • adding traceability data
  • checking whether the chosen base tag is too old

What To Fix First

If you are onboarding a repository, improve things in this order:

  1. route-family manifest quality
  2. tests-root and framework detection
  3. traceability ingestion
  4. CI artifacts and gate thresholds
  5. optional AI generation and healing