feat(delivery): published SBOM versions reach the customers who accepted (#1028)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m25s
CI / Check (pull_request) Canceled after 19m10s

The second half of phase 4's customer side (step 5 of the plan on #1028):

- publishing a version delivers it to every accepted, active release of the
  target; accepting an offer delivers the latest version at once;
- the connection is asked again right before each write into the customer's
  workspace (`ConnectionState::peer_of`), so nothing arrives after it or
  the release ended;
- a delivery is attached the way a supplier's upload is (`attach_upload`):
  it replaces the component's supplier SBOM, sets the supplier version to
  the label, and starts a scan;
- the offer keeps the content hash, label and time last delivered, so the
  same content is never delivered twice (an acceptance and a publication
  that race); the supplier's release shows the label and time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-19 13:50:08 +01:00
1 parent 7bd2d784e9
commit 79826847bf
6 files changed
+412 -2

No files matched your search

+10
View File
@@ -246,6 +246,16 @@ lets nothing be accepted, and no component is created over it. A workspace
that does not hold Prüfwerk cannot be released to (`422`
`peer_not_entitled`).
Once an offer is accepted, published versions are delivered to it. The
latest version arrives as soon as the offer is accepted, and each later one
when it is published. A delivered version replaces the component's supplier
SBOM, as an upload does, sets the component's supplier version to its label,
and starts a scan. The connection is checked again before each delivery, so
nothing arrives after it or the release has ended. The customer sees the
version last delivered on the offer (`delivered_label`, `delivered_at`), and
the supplier sees it on the release. The same content is never delivered
twice.
Deleting either side ends the offer. If the supplier deletes the released
target, the customer's offer ends. If the customer deletes the component it
accepted into, the supplier sees `ended` as the answer.