Skip to content

feat(cli): record skipped steps with chainloop attestation event - #3877

Merged
migmartri merged 2 commits into
mainfrom
feat/attestation-event-skipped
Dec 2, 2026
Merged

migmartri merged 2 commits into
mainfrom
feat/attestation-event-skipped

Conversation

@migmartri

@migmartri migmartri commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Adds a skipped status to run events, for a pipeline step that did not run, for example a scan with no target or a cached test suite.

  • Record: chainloop attestation event --name <key> --status skipped records the step. The control plane accepts skipped for custom events only and rejects it for automatic events.
  • Describe: chainloop workflow run describe shows a skipped step in the timeline with its own symbol (↷).
  • API: new STATUS_SKIPPED value in WorkflowRunEvent.Status. The event status column is a varchar, so there is no migration.

Spec issue-3825: R-013 supersedes R-012, and new decision D-013 records why skipped is for custom events only (#3825).

This change was written with AI assistance (Claude Code).

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

View guided diff

chainloop attestation event accepts --status skipped for a step that
did not run, and workflow run describe shows it with its own symbol.
The control plane accepts the skipped status for custom events only.

Supersedes R-012 with R-013 and adds D-013 in spec issue-3825.

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

Chainloop-Trace-Sessions: c03da24e-dd81-4c92-a924-d170a48094f1
@chainloop-platform

chainloop-platform Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

PR validation — ✅ 3 passing

Status Policy Material Messages
✅ Passed pr-min-approvals pr-info -
✅ Passed pr-description-required pr-info -
✅ Passed pr-user-story-linked pr-info -

View attestation ↗

AI Session Checks — 🟢 92% · ✅ 0 failing

Avg score Sessions Failing policies Attribution Files Lines Total Duration
🟢 92% 1 ✅ 0 100% AI / 0% Human 13 +102 / -10 12m21s

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

Dec 2, 2026 21:04 UTC · 12m21s · $4.43 · 166 in / 42.8k out · claude-code 2.1.334 (claude-opus-5-5)

View session details ↗

Change Summary

Adds skipped as a custom-event status and rejects it for automatic events. Displays skipped steps with a distinct timeline symbol, with related status bindings, tests and documentation updated.

AI Session Overall Score

🟢 92% — Focused extension with passing tests; complete CLI acceptance and human reaction remain unobserved.

AI Session Analysis Breakdown

🟢 98% · scope-discipline

No notes.

🟢 96% · solution-quality

🟢 Added explicit status mappings and validation rather than bypassing enum checks. · High Impact

🟢 90% · alignment

No notes.

🟢 90% · verification

🟢 Confirmed named integration passes for skipped recording/read-back and non-custom rejection. · High Impact

🟢 Reran CLI suites successfully after fixing spacing; the timeline test retains skipped symbols, messages and duration. · High Impact

🟡 Separate integration and timeline tests passed; the complete CLI recording-to-describe acceptance flow was not observed. · Low Severity

🟢 85% · context-and-planning

🟡 The type-versus-status interpretation was explained only after implementation. · Low Severity

abstained · user-trust-signal

🟡 user-trust-signal not assessed — reviewer should confirm coverage · Low Severity


File Attribution

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

Status Attribution File Lines
modified ai docs/specs/issue-3825-attestation-progress-events.md +19 / -4
modified ai app/controlplane/internal/service/workflowrunevent_integration_test.go +22 / -0
modified ai app/cli/cmd/workflow_run_timeline_test.go +18 / -0
modified ai app/controlplane/pkg/biz/workflowrunevent_test.go +14 / -0
modified ai app/controlplane/pkg/biz/workflowrunevent.go +8 / -0
modified ai app/cli/cmd/attestation_event.go +5 / -2
modified ai app/cli/pkg/action/attestation_event.go +4 / -2
modified ai app/cli/documentation/cli-reference.md +4 / -1
modified ai app/cli/cmd/workflow_run_timeline.go +2 / -0
modified ai app/controlplane/api/controlplane/v1/workflow_run.proto +2 / -0
modified ai app/controlplane/internal/service/workflowrun.go +2 / -0
modified ai app/controlplane/pkg/data/ent/migrate/schema.go +1 / -1
modified ai app/cli/pkg/action/attestation_event_test.go +1 / -0

Policies (4)

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

Security Checks — ✅ 7 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 -

✅ IaC Scan

Status Policy Messages
✅ Passed iac-misconfiguration -
Scans not applied (2)
Scan Reason
Vulnerability Scan no manifest/lockfile changed
GitHub Actions Scan no workflow 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 18 files

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

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

Chainloop-Trace-Sessions: c03da24e-dd81-4c92-a924-d170a48094f1
@matiasinsaurralde
matiasinsaurralde requested a review from a team December 2, 2026 21:52
@jiparis

jiparis commented Dec 2, 2026

Copy link
Copy Markdown
Member

what's the use case for this? if it's custom, what's the difference between sending it and sending it with skipped attribute? is it a UX feature?

@migmartri
migmartri merged commit d840125 into main Dec 2, 2026
21 of 22 checks passed
@migmartri
migmartri deleted the feat/attestation-event-skipped branch December 2, 2026 22:03
@migmartri

Copy link
Copy Markdown
Member Author

Merged by eng-autopilot: approved by matiasinsaurralde; no change request; CI passed (16 check runs, 3 workflow runs); GitHub merge state clean; no Greptile review.

🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri, using the eng-autopilot skill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants