AI recommendations
AI output appears in two places in the Dependencies (SCA) dashboard:
| What | Where | Source |
|---|---|---|
| Replacement recommendations for packages with restrictive or unknown licenses | Inventory → Licenses | Generated on request from the latest dependency inventory |
| AI insights on a single advisory | The advisory page, /dashboard/sca/vulnerability/<id> | Written by AI triage during the scan |
License replacement recommendations
Which packages get recommendations
A dependency is flagged when its declared license matches one of these groups:
| Group | Matches a license containing |
|---|---|
| Copyleft | GPL, AGPL or LGPL |
| Restricted | MPL, EPL or CDDL |
| Unknown | No license, or Unknown |
Matching is by substring, so LGPL licenses fall into the copyleft group. To set which licenses your policy allows, see License compliance.
What each recommendation contains
The AI is asked for one to three permissively licensed (MIT or Apache-2.0) alternatives per package. Each alternative has:
- Name and license
- Description and the reason it is recommended
- Install command
- Weekly downloads, when the model supplies it
At the package level you also get a migration difficulty (shown as Easy, Medium or Hard migration) and migration notes.
Generation and caching
- The first visit for a scan generates recommendations and stores them. Later visits read the stored copy.
- Regenerate analysis discards every stored recommendation for that scan, including ignored ones, and generates them again.
- Each generation sends at most 15 flagged packages to the AI. Packages beyond the first 15 are still listed, but with no alternatives.
- If the AI call fails, flagged packages are still listed, with no alternatives.
Ecosystem commands
Uninstall, verify-license and registry links are shown when the package manager is recognised: npm-compatible managers (npm, yarn, pnpm), Python (pip, pipenv, poetry, conda), Maven, Gradle, Go, Cargo, Composer, RubyGems and NuGet. When the ecosystem cannot be determined, no command is shown rather than a guessed one.
Status
A recommendation is open, mitigated, closed or ignored. Ignore hides it from the list. To reopen one, call the API:
PATCH /api/sca/recommendations/{recommendation_id}/status?status=openFor an upgrade to a fixed version of the same package, rather than a replacement, use Remediation → Fixes (/dashboard/sca/remediation?show=fixes). See Auto-updates & fix PRs.
AI insights on an advisory
Open any advisory from Vulnerabilities. The AI insights panel shows whatever the scan’s AI triage produced for that finding:
- AI analysis - the model’s reasoning
- Exploitability
- Risk assessment
- Compliance impact
- AI fix draft - a suggested fix, optional code, and a CLI command (review before running)
If triage produced nothing for the finding, the panel reads No AI enrichment data available for this vulnerability. See AI fixes for how fix drafts work across finding types.
API-only endpoints
These have no dashboard control:
| Endpoint | What it does |
|---|---|
GET /api/sca/recommendations/{repository_id} | Stored license recommendations (generates them on first call). ?force_refresh=true regenerates. |
POST /api/sca/recommendations/{repository_id}/generate | Regenerate (what Regenerate analysis calls) |
POST /api/sca/recommendations/check-resolved/{repository_id} | Marks open recommendations mitigated when the package is no longer flagged in the latest scan |
GET /api/sca/ai-insights/{repository_id} | All AI triage output for the latest dependency scan, with exploitability and confidence distributions |
POST /api/sca/alternatives | Alternatives for a list of packages you supply |
GET /api/sca/alternatives/{package_name}?license=<license>&package_manager=npm | Alternatives for one package |
GET /api/sca/pinning-recommendations/{repository_id} | Unpinned dependencies and lock-file suggestions (not AI-generated) |
The recommendation and alternatives endpoints need the Member role or above (API keys: write:sca). ai-insights and pinning-recommendations need read access (read:sca).