Skip to content

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

Open
migmartri wants to merge 2 commits into
mainfrom
issue-3825-spec-attestation-progress-events
Open

migmartri wants to merge 2 commits into
mainfrom
issue-3825-spec-attestation-progress-events

Conversation

@migmartri

@migmartri migmartri commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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

Design spec for run events: a timeline of attestation progress that the
CLI records and the control plane keeps with the workflow run, shown by
workflow run describe, plus a custom event command.

Refs #3825

Assisted-by: Claude Code
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>

Chainloop-Trace-Sessions: 3eeeeacd-8df3-4b29-bf84-7ab6e5c86691
@migmartri migmartri added the spec Design spec label Nov 30, 2026
@migmartri
migmartri requested a review from a team November 30, 2026 17:59
@chainloop-platform

chainloop-platform Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

PR validation — ⚠️ 1 failing

Status Policy Material Messages
⚠️ Failed pr-min-approvals pr-info PR/MR #3857 has 0 approving reviews, 1 required.
✅ Passed pr-description-required pr-info -
✅ Passed pr-user-story-linked pr-info -

View attestation ↗

AI Session Checks — 🟢 89% · ✅ 0 failing

Avg score Sessions Failing policies Attribution Files Lines Total Duration
🟢 89% 1 ✅ 0 100% AI / 0% Human 2 +629 / -0 1h25m20s

🟢 89% — 100% AI — ✅ All policies passing

Nov 30, 2026 17:10 UTC · 1h25m20s · $41.71 · 992 in / 701.4k out · claude-code 2.1.332 (claude-opus-5-5)

View session details ↗

Change Summary

Adds an attestation progress events specification and implementation plan; no runtime behavior changes.

AI Session Overall Score

🟢 89% — Focused documentation delivery with strong collaboration; several draft design choices needed earlier confirmation.

AI Session Analysis Breakdown

🟢 97% · scope-discipline

🟢 The diff adds only the requested spec and plan, with no production changes. · High Impact

🟢 93% · user-trust-signal

No notes.

🟢 90% · alignment

🟢 The assistant reversed its command placement recommendation after the user identified the run-targeting problem. · High Impact

🟡 75% · context-and-planning

🟢 Code research and scope interviews established the event model before the first spec was written. · High Impact

🟠 The first spec draft included unconfirmed write-window, API-shape, limits, and message choices. · Medium Severity

💡 Confirm consequential design choices before turning them into normative draft requirements.

abstained · solution-quality

🟡 solution-quality not assessed — reviewer should confirm coverage · Low Severity

abstained · verification

🟡 verification not assessed — reviewer should confirm coverage · Low Severity


File Attribution

████████████████████ 100% AI / 0% Human

Status Attribution File Lines
created ai docs/plans/issue-3825-attestation-progress-events.md +394 / -0
created ai docs/specs/issue-3825-attestation-progress-events.md +235 / -0

Policies (4)

Status Policy Material Messages
✅ Passed ai-config-ai-agents-allowed ai-coding-session-3eeeea -
✅ Passed ai-config-no-dangerous-commands ai-coding-session-3eeeea -
✅ Passed ai-config-no-secrets ai-coding-session-3eeeea -
✅ Passed ai-config-mcp-servers-allowed ai-coding-session-3eeeea -

Security Checks — ✅ 6 passing

✅ AI Security Analysis

Nothing this change touches re-opens a recorded security fix.

View in Chainloop ↗ · How this works ↗

✅ Secret Scan

Status Policy Messages
✅ Passed secrets-detection -

✅ SAST Scan

Status Policy Messages
✅ Passed owasp-top10-2025 -
✅ Passed sast -
✅ Passed cwe-top25 -
✅ Passed cwe-top26-40-cusp -
Scans not applied (3)
Scan Reason
Vulnerability Scan no manifest/lockfile changed
GitHub Actions Scan no workflow files changed
IaC Scan no IaC files changed

View attestation ↗


Powered by Chainloop and Chainloop Trace

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 1 file

Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

View guided diff | Re-trigger cubic

Add the implementation plan in docs/plans with two milestones: automatic
progress events with describe output and retention (R-001 to R-008), and
the custom event command (R-009). Run events reuse the access checks of
storing and viewing the run, so no new permission is added.

Spec updates: the 64-character key limit applies to custom keys only
(R-008), custom keys use the annotation name format (R-009), and the
Access constraint states the real store and view checks.

Refs #3825

Assisted-by: Claude Code
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>

Chainloop-Trace-Sessions: 3eeeeacd-8df3-4b29-bf84-7ab6e5c86691
@migmartri migmartri changed the title spec: issue-3825 Attestation progress events spec: issue-3825 Attestation progress events (spec and plan) Nov 30, 2026
@migmartri
migmartri marked this pull request as ready for review November 30, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

spec Design spec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant