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
docs: add implementation plan for issue-3825 attestation progress events
docs: issue-3825 keep describe working against older control planes
migmartri commentedon Nov 30, 2026
Spec and implementation plan for this issue are in draft PR #3857 (
docs/specs/issue-3825-attestation-progress-events.md,docs/plans/issue-3825-attestation-progress-events.md). Two milestones: M1 automatic progress events andworkflow run describe(R-001 to R-008), M2 thechainloop attestation eventcommand (R-009).🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri
fix: address review of the run events
feat(controlplane): bound the size of run event fields
feat(cli): record one summary event for a large archive add
feat(cli): record the evidence material of an archive add
feat(cli): show the run timeline as a tree in workflow run describe
7 remaining items
feat(controlplane): bound the size of run event fields
feat(cli): record one summary event for a large archive add
feat(cli): record the evidence material of an archive add
feat(cli): show the run timeline as a tree in workflow run describe
feat: record the push in the closing event of the store
refactor: take the push result from the attestation, not the closing …
feat: return the run progress and events in the workflow run view
feat: serve the run progress and events in their own GetProgress call
feat: attestation progress events, M1 automatic progress (#3825) (#3859)
feat: record custom steps with chainloop attestation event (#3825)
feat: attestation progress events, M2 custom events (#3825) (#3865)
fix(cli): validate attestation event input like the other commands
refactor(events): make progress a top-level optional field of run events
fix(cli): validate attestation event input like the other commands
fix(cli): validate attestation event input like the other commands