The first half of phase 4's customer side (step 5 of the plan on #1028):
- releasing a target (#1063) now writes an offer into the customer's
database, right after the registry confirms the connection joins exactly
the two workspaces (`ConnectionState::peer_of`, #1062); without the offer
the release is taken back;
- `GET /api/v1/sbom-offers`: the workspace's offers, open first, naming the
supplier and its product only;
- `POST /api/v1/sbom-offers/{id}/accept`: into an existing supplier
component, or a new one (named after the product unless named, in the
given projects); the connection is checked again first, and an ended one
ends the offer and creates nothing; a new component goes through the same
insert as `POST /api/v1/targets` (`insert_target`), so it is counted;
- `POST /api/v1/sbom-offers/{id}/decline`;
- the answer is written back to the supplier's release (`answer`); ending a
release ends the customer's offer; accepting and declining are audited.
Delivering published versions to accepted offers is the second half.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9