Repository navigation
feat(cli): show the contract and runner of a run in the describe table - #3868
Conversation
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
PR validation —
|
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | pr-min-approvals |
pr-info |
- |
| ✅ Passed | pr-description-required |
pr-info |
- |
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]+\\]"] |
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)
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% HumanStatus 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-allowedai-coding-session-b57281- ✅ Passed ai-config-no-dangerous-commandsai-coding-session-b57281- ✅ Passed ai-config-no-secretsai-coding-session-b57281- ✅ Passed ai-config-mcp-servers-allowedai-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 |
Powered by Chainloop and Chainloop Trace
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
The
initializedline of the run timeline inchainloop workflow run describerepeated 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 aschainloop attestation status:The contract comes from the contract version that the run used, not from the current contract of the workflow.
The
initializedline of the timeline now shows only the result of the attestation policies, like the push line:Before:
After:
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