Skip to content

feat(cli): show the contract and runner of a run in the describe table - #3868

Merged
migmartri merged 1 commit into
mainfrom
cli-run-describe-contract-runner
Dec 1, 2026
Merged

migmartri merged 1 commit into
mainfrom
cli-run-describe-contract-runner

Conversation

@migmartri

@migmartri migmartri commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

The initialized line of the run timeline in chainloop workflow run describe repeated the contract, its revision, the runner type and the state location. That data belongs to the run itself, so the Workflow Run table now shows it, in the same way as chainloop attestation status:

│ Contract       │ chainloop-platform-backend-release-canary (revision 14) │
│ Runner Type    │ GitHub                                                  │
│ Runner Link    │ https://github.com/...                                  │

The contract comes from the contract version that the run used, not from the current contract of the workflow.

The initialized line of the timeline now shows only the result of the attestation policies, like the push line:

Before:

├─ 18:58:53  ✓ initialized   contract chainloop-platform-backend-release-canary rev 14 · GITHUB_ACTION · local state · policies: 4 passed, 2 violated

After:

├─ 18:58:53  ✓ initialized   policies: 4 passed, 2 violated

The JSON output does not change: the events keep their contract, runner and state fields.

AI disclosure: this change was made with the assistance of Claude Code.

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

View guided diff

The initialized line of the run timeline repeated the contract, its
revision, the runner type and the state location. The workflow run
table now shows the contract and the runner type, in the same way as
attestation status, and the initialized line shows only the result of
the attestation policies.

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

Chainloop-Trace-Sessions: b57281c5-0538-4cf8-b301-8d6f160b7355
@chainloop-platform

chainloop-platform Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

PR validation — ⚠️ 1 failing

Status Policy Material Messages
✅ Passed pr-min-approvals pr-info -
✅ Passed pr-description-required pr-info -
⚠️ Failed pr-user-story-linked pr-info PR/MR #3868 does not reference a user story or issue in title, description, or branch 'feat(cli): show the contract and runner of a run in the describe table'. Expected patterns: ["(?i)[A-Z]+-[0-9]+", "#[0-9]+", "(?i)gh-[0-9]+", "(?i)\\[[A-Z]+-[0-9]+\\]"]

View attestation ↗

AI Session Checks — 🟢 88% · ✅ 0 failing

Avg score Sessions Failing policies Attribution Files Lines Total Duration
🟢 88% 1 ✅ 0 94% AI / 6% Human 5 +38 / -40 17m45s

🟢 88% — 94% AI — ✅ All policies passing

Dec 1, 2026 19:05 UTC · 17m45s · $5.24 · 194 in / 47.8k out · claude-code 2.1.333 (claude-opus-5-5)

View session details ↗

Change Summary

Simplifies initialization timeline entries to policy counts. Adds recorded contract revision and runner metadata to the describe table, sharing contract row formatting with attestation status.

AI Session Overall Score

🟢 88% — Approved display simplification is well scoped; direct coverage of the new metadata rows remains missing.

AI Session Analysis Breakdown

🟢 95% · scope-discipline

No notes.

🟢 94% · alignment

🟢 Explained that describe lacked the metadata and obtained approval before moving it into table rows. · High Impact

🟢 94% · solution-quality

🟢 Propagates the recorded contract name through the existing converter instead of deriving it from current workflow configuration. · High Impact

🟢 93% · context-and-planning

No notes.

🟢 90% · user-trust-signal

No notes.

🟡 70% · verification

🟢 Observed timeline expectations fail before implementation, then command tests pass after implementation and final cleanup. · High Impact

🔴 The diff adds contract and runner table branches without tests asserting their displayed values or converter mapping. · High Severity

💡 Add display assertions for populated and absent metadata, including the recorded contract name and revision.

🟡 User approval preceded implementation; no captured follow-up confirms the resulting display works. · Low Severity


File Attribution

██████████████████░░ 94% AI / 6% Human

Status Attribution File Lines
modified ai app/cli/cmd/workflow_run_timeline.go +5 / -22
modified ai app/cli/pkg/action/workflow_contract_list.go +10 / -9
modified ai app/cli/cmd/workflow_run_timeline_test.go +8 / -8
modified ai app/cli/cmd/attestation_status.go +8 / -1
modified ai app/cli/cmd/workflow_workflow_run_describe.go +7 / -0

Policies (4)

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

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 5 files

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

View guided diff | Re-trigger cubic

@migmartri
migmartri merged commit 452f64e into main Dec 1, 2026
15 of 16 checks passed
@migmartri
migmartri deleted the cli-run-describe-contract-runner branch December 1, 2026 22:12
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.

2 participants