spec: issue-3825 Attestation progress events (spec and plan)

MI
3m ago
+630-0

Summary

While an attestation is in progress, the control plane knows only that its workflow run is initialized. This spec adds run events: short, timestamped entries that the CLI records on each action of the attestation. The control plane keeps them with the run. chainloop workflow run describe uses them to show the evidence that is in, the evidence that is missing, and the policy results so far. A second milestone adds chainloop attestation event. With it, a pipeline can record its own steps, for example a security scan. Run events are operational progress data. They are not part of the signed attestation, and they are not an audit trail.

The UI view is described in the spec and is a follow-up in the UI repository.

This PR also holds the implementation plan (docs/plans/issue-3825-attestation-progress-events.md). It has two milestones: automatic progress (R-001 to R-008) and custom events (R-009). Run events add no new permission. The write call uses the checks of storing the attestation of the run, and the read call uses the checks of the run view.

Open questions for reviewers

  • Do the limits of R-008 (1,000 events for each run, 64-character keys, 1 KB messages) fit real pipelines?
  • Does the error text of a failed add stay in the event, cut to 1 KB? Some validation errors can quote a part of the file.

We would like two reviewers to approve this spec before it merges.

Refs #3825

This spec was drafted with AI assistance (Claude Code).

🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri