Repository navigation
Description
Problem
While an attestation is in progress, the control plane (and so the UI) only knows that the workflow run is initialized. The UI shows a spinner until the attestation is pushed. Users get no information about:
- when the attestation started and how long it has been running,
- which pieces of evidence were already added and which ones are still missing,
- the result of the policy evaluations done so far (for example, how many policies failed).
The CLI already has this information. chainloop attestation status shows the contract requirements, the materials that were added, and the policy evaluations. The UI has no equivalent, so a user who watches a long pipeline, or who debugs a stuck run, must go to the CI logs.
Proposal
Add real-time feedback about the progress of an attestation, both in the CLI and in the UI. The CLI sends a progress signal to the control plane during the attestation process (for example on init, on each add, and on policy evaluation). The control plane stores the latest progress of the workflow run and exposes it through the API, so that the UI can show a view similar to chainloop attestation status.
The first deliverable is a spec (br:eng-spec) that defines how this works. Implementation follows the spec.
Questions the spec must answer
- Data model: what a progress snapshot contains. For example: start time, last update time, contract requirements and their state (provided, missing, optional), materials that were added, and a summary of policy evaluations (passed, failed, skipped).
- Contractless evidence: an attestation can have materials that are not in the contract, or no contract requirements at all. The progress must show these materials too, not only the contract requirements.
- Transport: a new RPC or an extension of the existing attestation RPCs. When the CLI sends the signal (each
add, or batched), and what happens when the call fails. A failure to send progress must never fail the attestation. - Relation to remote attestation state: the
AttestationStateServicealready stores the crafting state for remote state. That state can be encrypted on the client side, so the control plane cannot read it. The spec must decide if progress is a separate, readable summary, and what data it is safe to keep in it (no secrets, no material contents). - Storage and lifecycle: where the snapshot is kept on the workflow run, and what happens to it when the run is pushed, canceled, or expires.
- Trust: the progress is unsigned data reported by the client. It is informational only. The signed attestation stays the source of truth after the push.
- API and UI: how the workflow run view API returns the progress, and how the UI shows a run in progress (requirements checklist, added evidence, policy results, elapsed time).
- CLI: whether
chainloop attestation statuscan also read the progress from the control plane, for example from another machine or CI step. - Compatibility: behavior with older CLIs that do not send progress, and with older control planes that do not support it.
Acceptance
- A spec in
docs/specs/that answers the questions above, approved. - Implementation issues created from the spec.
AI disclosure: this issue was drafted with Claude Code.
Activity