Skip to content

[deep-report] Add ToReceipt() projection on workqueue Assignment/AssignmentClaim instead of hand-duplicating CLI receipt types #67200

Description

@github-actions

Description

pkg/workqueue/types.go's core Assignment (line 218) and AssignmentClaim (line 229) types are hand-duplicated as WorkQueueAssignmentReceipt/WorkQueueClaimReceipt in pkg/cli/logs_work_queue_current.go:30,39, re-declaring ~60-70% of the same field names (DispatchID, RequestID, CommitID, Handle, ClaimID, WorkID) instead of projecting from the core types — confirmed via direct read of both declarations.

Expected Impact

Changes to the core work-queue identity fields currently require a second hand-edit in the CLI reporting view; a projection method removes that silent-drift risk.

Suggested Fix

Add a ToReceipt() method on workqueue.Assignment/AssignmentClaim (or factor out a shared identity sub-struct) instead of re-declaring the fields by hand in pkg/cli.

Suggested Agent

General Go-focused coding agent.

Estimated Effort

Medium (2-3 hours)

Data Source

Typist — Go Type Consistency Analysis, discussion #67180 (2026-10-09), Cluster 3 / Priority 3 item #5. Live-verified via direct source read of both declarations before filing.

Generated by 🔬 Deep Report · claude · agent · 270.5 AIC · ⌖ 8.95 AIC · ⊞ 7.1K · ◷

  • expires on Oct 11, 2026, 4:47 AM UTC-08:00

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions