Skip to content

feat(agent): per-artifact vulnerabilities/violations in agent release show - #26

Merged
taleodor merged 1 commit into
mainfrom
2026-05-agent-release-per-artifact-vulns
May 29, 2026
Merged

feat(agent): per-artifact vulnerabilities/violations in agent release show#26
taleodor merged 1 commit into
mainfrom
2026-05-agent-release-per-artifact-vulns

Conversation

@taleodor-claude

Copy link
Copy Markdown
Contributor

Summary

A release carries multiple SBOMs / scan results — a (typically clean) source-code SBOM and the (often vulnerable) deliverable/container SBOM, plus SARIF (CODE_SCANNING_RESULT) and VDR. The release-level aggregate alone left agents unable to localize findings (the reported confusion: "source SBOM is clean but the deliverable isn't, and the agent didn't know there was a deliverable SBOM").

agent release show now walks every artifact's own metrics, mirroring the UI's artifact set:

  • sourceCodeEntryDetails.artifactDetails — source-code SBOMs / SARIF;
  • artifactDetails — release-level artifacts;
  • variantDetails[].outboundDeliverableDetails[].artifactDetails — deliverable SBOMs / scan results;

each with severity counts + vulnerabilityDetails[] + violationDetails[]. The release-level metrics (with details) stays on top.

Kept duplication on purpose: release-level metrics reflect release-scope vuln suppressions while per-artifact metrics are raw, so the two detail lists can legitimately differ — surfacing both is the v1 behavior (documented in orientation).

No backend change — agenticReleaseProgrammatic already returns the full Release; this only expands the query selection. Covers all artifact types (BOM / SARIF / VDR), not just BOMs.

Test plan

  • go build passes.
  • Validated against a real session-built release: sourceCodeEntryDetails.artifactDetails (4) and variantDetails[].outboundDeliverableDetails[].artifactDetails resolve, each with metrics; no GraphQL errors.
  • On a release whose deliverable has findings, per-artifact vulnerabilityDetails localizes them while the source SBOM shows clean.

Pairs with an orientation.md update (rearm-saas) explaining the multi-SBOM structure + the suppression quirk.

… show

A release carries multiple SBOMs/scan results — a clean source-code
SBOM and a vulnerable deliverable/container SBOM (plus SARIF / VDR) —
so the release-level aggregate alone left agents unable to localize
findings. agent release show now walks every artifact's own metrics:
sourceCodeEntryDetails.artifactDetails (source SBOMs), artifactDetails
(release-level), and variantDetails[].outboundDeliverableDetails[]
.artifactDetails (deliverable SBOMs / scan results) — each with its
counts + vulnerabilityDetails + violationDetails. Release-level metrics
(with details) stay on top.

Release-level metrics reflect release-scope vuln suppressions while
per-artifact metrics are raw, so the two detail lists can differ — both
are kept on purpose. agenticReleaseProgrammatic already returned the
full Release; this only expands the selection. Validated against a real
session-built release (source SBOMs + deliverable artifacts resolve).

ReARM-Agentic-Session: agent-per-artifact-vulns-1780060789
ReARM-Agent: 62df357e-a3a4-4df5-82d4-049e629d1c6b
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@taleodor
taleodor merged commit 86b7449 into main May 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants