Repository navigation
Conversation
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
PR validation —
|
| Status | Policy | Material | Messages |
|---|---|---|---|
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 |
- |
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)
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% HumanStatus 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-allowedai-coding-session-3eeeea- ✅ Passed ai-config-no-dangerous-commandsai-coding-session-3eeeea- ✅ Passed ai-config-no-secretsai-coding-session-3eeeea- ✅ Passed ai-config-mcp-servers-allowedai-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 |
Powered by Chainloop and Chainloop Trace
There was a problem hiding this comment.
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
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 describeuses them to show the evidence that is in, the evidence that is missing, and the policy results so far. A second milestone addschainloop 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
addstay 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